/* =======================================================
   CSS RESET & NORMALIZATION
   ======================================================= */

html, body, div, span, applet, object, iframe,
h1, h2, h3, h4, h5, h6, p, blockquote, pre,
a, abbr, acronym, address, big, cite, code,
del, dfn, em, img, ins, kbd, q, s, samp,
small, strike, strong, sub, sup, tt, var,
b, u, i, center,
dl, dt, dd, ol, ul, li,
fieldset, form, label, legend,
table, caption, tbody, tfoot, thead, tr, th, td,
article, aside, canvas, details, embed, 
figure, figcaption, footer, header, hgroup, 
menu, nav, output, ruby, section, summary,
time, mark, audio, video {
  margin: 0;
  padding: 0;
  border: 0;
  font-size: 100%;
  font: inherit;
  vertical-align: baseline;
  box-sizing: border-box;
}
/* HTML5 display-role reset for older browsers */
article, aside, details, figcaption, figure, 
footer, header, hgroup, menu, nav, section {
  display: block;
}
body {
  line-height: 1.5;
  font-family: 'Roboto', Arial, sans-serif;
  color: #F7F7F7;
  background-color: #19161A;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  min-height: 100vh;
}
img {
  max-width: 100%;
  height: auto;
  display: block;
}
a {
  color: #FF8C42;
  text-decoration: none;
  transition: color 0.2s;
}
a:hover, a:focus {
  color: #fff;
}
ul, ol {
  padding-left: 24px;
}
table {
  border-collapse: collapse;
  width: 100%;
}
th, td {
  padding: 12px 16px;
  text-align: left;
  border-bottom: 1px solid #2D2735;
}
th {
  background: #241C15;
  font-weight: 600;
  color: #FF8C42;
}

/* =======================================================
   TYPOGRAPHY
   ======================================================= */

h1, h2, h3, h4, h5, h6 {
  font-family: 'Oswald', Arial, sans-serif;
  color: #FF8C42;
  letter-spacing: 0.01em;
  line-height: 1.1;
  margin-bottom: 16px;
  font-weight: 700;
}
h1 {
  font-size: 2.5rem;
  color: #FF8C42;
  margin-bottom: 24px;
}
h2 {
  font-size: 2rem;
  margin-bottom: 20px;
}
h3 {
  font-size: 1.375rem;
  color: #fff;
  margin-bottom: 12px;
}
h4, h5, h6 {
  font-size: 1.1rem;
}
p, ul, ol, li {
  font-family: 'Roboto', Arial, sans-serif;
  color: #F7F7F7;
  font-size: 1rem;
  margin-bottom: 12px;
}
strong {
  color: #FF8C42;
  font-weight: 700;
}
blockquote {
  padding: 16px 32px;
  color: #FF8C42;
  background: #241C15;
  border-left: 4px solid #FF8C42;
  border-radius: 16px 6px 24px 6px;
  margin: 16px 0 24px 0;
  font-style: italic;
}

/* =======================================================
   BRANDING & COLORS
   ======================================================= */

:root {
  --color-primary: #241C15;
  --color-secondary: #FF8C42;
  --color-accent: #F7F7F7;
  --color-bg-dark: #19161A;
  --color-bg-section: #211E28;
  --color-text-main: #F7F7F7;
  --color-heading: #FF8C42;
  --color-neon: #FF570A;
  --shadow-card: 0 6px 32px 0 rgba(39,30,55,0.2), 0 1.5px 6px 0 rgba(255,140,66,0.12);
}

/* =============================
    CONTAINERS & SECTIONS
   ============================= */

.container {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  gap: 0;
}
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: var(--color-bg-section);
  border-radius: 24px;
  box-shadow: 0 4px 24px 0 rgba(32, 16, 35, 0.13);
}

.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 16px;
  width: 100%;
  align-items: flex-start;
}
.text-section {
  max-width: 660px;
  align-self: center;
  text-align: left;
}

/* =============================
   FLEXBOX LAYOUTS as per MANDATORY
   ============================= */

.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  margin-bottom: 20px;
  position: relative;
}
.content-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: space-between;
}
.text-image-section {
  display: flex;
  align-items: center;
  gap: 30px;
  flex-wrap: wrap;
}
.testimonial-card {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 20px;
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}

/* Helper for responsiveness on all flex wrappers */
@media (max-width: 768px) {
  .container {
    padding: 0 10px;
  }
  .text-image-section {
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
  }
  .content-grid {
    flex-direction: column;
    gap: 24px;
  }
  .feature-grid,
  .teacher-bios,
  .testimonial-list,
  .card-container {
    flex-direction: column !important;
    gap: 20px !important;
  }
}

/* =============================
   HEADER, LOGO, NAV
   ============================= */

header {
  background: #19161A;
  box-shadow: 0 2px 20px 0 rgba(20,14,17,0.1);
  z-index: 90;
  position: relative;
}
header .container {
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  min-height: 72px;
  gap: 0;
}
.logo img {
  height: 48px;
  width: auto;
  display: block;
}
.main-nav {
  display: flex;
  gap: 24px;
  align-items: center;
}
.main-nav a {
  font-family: 'Oswald', Arial, sans-serif;
  font-size: 1.05rem;
  padding: 8px 14px;
  border-radius: 6px;
  color: #F7F7F7;
  position: relative;
  transition: background 0.2s, color 0.2s;
}
.main-nav a.cta.primary {
  background: #FF8C42;
  color: #19161A;
  font-weight: 700;
  box-shadow: 0 2px 18px 0 rgba(255, 140, 66, 0.14);
  border-radius: 18px 8px 18px 8px;
  margin-left: 12px;
  letter-spacing: 0.4px;
  text-shadow: 0 1px 8px #FF9130;
  border: 0;
}
.main-nav a.cta.primary:hover, .main-nav a.cta.primary:focus {
  color: #fff;
  background: #FF570A;
  box-shadow: 0 4px 24px 0 #FF8C42;
}
.main-nav a:hover, .main-nav a:focus {
  background: #231b17;
  color: #FF8C42;
}

.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  color: #FF8C42;
  font-size: 2rem;
  cursor: pointer;
  margin-left: 18px;
  line-height: 1;
  z-index: 1002;
}

@media (max-width: 990px) {
  .main-nav {
    display: none;
  }
  .mobile-menu-toggle {
    display: inline-flex;
    align-items: center;
  }
}

/* Mobile Menu Overlay */
.mobile-menu {
  position: fixed;
  top: 0;
  right: 0;
  left: 0;
  bottom: 0;
  background: #18141c;
  z-index: 2400;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  transform: translateX(100%);
  transition: transform 0.35s cubic-bezier(.77,0,.18,1);
}
.mobile-menu.open {
  transform: translateX(0%);
}
.mobile-menu-close {
  background: none;
  border: none;
  color: #FF8C42;
  font-size: 3rem;
  margin: 20px 18px 0 0;
  cursor: pointer;
  z-index: 1003;
  align-self: flex-end;
  transition: color 0.2s;
}
.mobile-menu-close:hover, .mobile-menu-close:focus {
  color: #fff;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 28px;
  margin-top: 54px;
  margin-right: 36px;
  align-items: flex-end;
  width: 90vw;
  max-width: 350px;
}
.mobile-nav a {
  font-family: 'Oswald', Arial, sans-serif;
  font-size: 1.45rem;
  color: #FF8C42;
  padding: 16px 24px;
  border-radius: 12px 8px;
  background: none;
  transition: background 0.2s, color 0.2s;
  width: 100%;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  background: #FF8C42;
  color: #19161A;
}

@media (min-width: 990px) {
  .mobile-menu, .mobile-menu-toggle {
    display: none !important;
  }
}

/* =============================
   HERO & CALL TO ACTIONS
   ============================= */

.cta {
  display: inline-block;
  font-family: 'Oswald', Arial, sans-serif;
  font-size: 1.1rem;
  font-weight: 600;
  color: #19161A;
  background: #FF8C42;
  border-radius: 20px 8px 20px 8px;
  padding: 14px 28px;
  margin-top: 18px;
  text-shadow: 0 1px 12px #FF9130;
  border: none;
  box-shadow: 0 2px 15px 0 rgba(255, 140, 66, 0.14);
  cursor: pointer;
  letter-spacing: 1px;
  transition: background 0.18s, color 0.18s, box-shadow 0.2s;
  position: relative;
}
.cta.primary {
  background: #FF570A;
  color: #F7F7F7;
  box-shadow: 0 4px 24px 0 #FF8C42, 0 1px 4px 0 #19161A;
  text-shadow: 0 1px 16px #FF8C42;
}
.cta:hover, .cta:focus {
  background: #19161A;
  color: #FF8C42;
  box-shadow: 0 8px 34px 0 #FF8C42;
}
.cta.primary:hover, .cta.primary:focus {
  background: #FF8C42;
  color: #19161A;
}

/* =============================
   FEATURES & CARD STYLES
   ============================= */

.feature-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
  margin-top: 28px;
}
.feature {
  background: #211E28;
  border: 1.5px solid #292331;
  border-radius: 16px 8px 16px 8px;
  padding: 30px 24px;
  width: 250px;
  min-width: 230px;
  box-shadow: 0 4px 28px -6px rgba(68,8,32,0.15), 0 2px 6px 0 #2C182B1a;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 14px;
  position: relative;
  transition: box-shadow 0.22s, border 0.19s;
}
.feature img {
  height: 38px;
  margin-bottom: 6px;
}
.feature:hover, .feature:focus-within {
  box-shadow: 0 8px 40px 0 #FF570A55, 0 2.5px 8px #241C15;
  border-color: #FF8C42;
}

/* =============================
   TEACHER BIOS
   ============================= */
.teacher-bios {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
  margin-bottom: 18px;
}
.teacher-profile {
  background: #211E28;
  border-radius: 14px 8px 20px 8px;
  padding: 32px 18px;
  box-shadow: 0 3px 14px 0 #18141c70;
  min-width: 200px;
  flex: 0 1 240px;
  font-size: 1rem;
  color: #fff;
  margin-bottom: 20px;
  border: 1.5px solid #31231b;
  transition: box-shadow 0.25s, border 0.18s;
}
.teacher-profile h3 {
  margin-bottom: 8px;
  color: #FF8C42;
}
.teacher-profile:hover {
  box-shadow: 0 6px 32px 0 #FF570A33, 0 2px 10px 0 #241C15;
  border-color: #FF8C42;
}

/* =============================
   TESTIMONIALS
   ============================= */
.testimonial-list {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-top: 20px;
}
.testimonial-card {
  background: #F7F7F7;
  color: #241C15;
  border-radius: 22px 8px 18px 8px;
  box-shadow: 0 4px 24px 0 #241C1535;
  padding: 20px 28px;
  font-size: 1.1rem;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  max-width: 370px;
  transition: box-shadow 0.2s, border 0.14s;
  margin-bottom: 20px;
  border: 2px solid #FF8C4240;
}
.testimonial-card strong {
  color: #FF8C42;
}
.testimonial-card p {
  color: #18141c;
}
.testimonial-card span {
  font-size: 1rem;
  color: #19161A;
}
.testimonial-card:hover, .testimonial-card:focus-within {
  box-shadow: 0 8px 34px 0 #FF570A33, 0 4px 14px 0 #241C15;
  border-color: #FF8C42;
}

@media (max-width: 600px) {
  .testimonial-card {
    padding: 16px 12px;
    font-size: 0.97rem;
    max-width: 100%;
  }
}

/* =============================
   BLOG PREVIEW LIST
   ============================= */

.blog-preview-list {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 14px;
}
.blog-preview-list li {
  background: #211E28;
  padding: 28px 18px;
  border-radius: 18px 8px 18px 8px;
  box-shadow: 0 3px 16px 0 #231B17a1;
  min-width: 210px;
  flex: 1 1 260px;
  margin-bottom: 20px;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 10px;
  border: 1.2px solid #31231be0;
  transition: box-shadow 0.19s, border 0.12s;
}
.blog-preview-list li:hover {
  border: 2px solid #FF8C42;
  box-shadow: 0 8px 38px 0 #FF570A22;
}
.tag {
  display: inline-block;
  background: #FF8C42;
  color: #19161A;
  font-family: 'Oswald', Arial, sans-serif;
  font-size: 0.9rem;
  font-weight: bold;
  padding: 6px 14px;
  border-radius: 37px 9px 19px 9px;
  margin-top: 8px;
}

/* =============================
   CONTACT INFO & MAP BOX
   ============================= */

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 12px;
}
.contact-info p {
  display: flex;
  align-items: center;
  gap: 12px;
  color: #F7F7F7;
}
.contact-info img {
  width: 22px;
  filter: drop-shadow(1px 0 3px #FF8C4290);
}
.box-map {
  background: #19161A;
  border-radius: 14px 7px 14px 7px;
  padding: 18px 18px;
  margin: 20px 0;
  color: #FF8C42;
  font-size: 1rem;
}

/* =============================
   FOOTER
   ============================= */

footer {
  background: #19161A;
  padding: 36px 0 32px 0;
  margin-top: 60px;
  border-top: 2px solid #241C15;
}
footer .container {
  justify-content: flex-between;
  align-items: center;
  flex-direction: column;
  gap: 14px;
}
.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: center;
  margin-bottom: 10px;
}
.footer-nav a {
  color: #FF8C42;
  font-weight: 600;
  font-size: 1rem;
  border-radius: 5px;
  padding: 6px 13px;
  transition: background 0.16s, color 0.16s;
}
.footer-nav a:hover, .footer-nav a:focus {
  background: #FF8C42;
  color: #19161A;
}
.footer-contact {
  color: #aaa;
  text-align: center;
  font-size: 0.98rem;
}
.footer-contact a {
  color: #FF8C42;
  text-decoration: underline;
}
.footer-contact a:hover,
.footer-contact a:focus {
  color: #fff;
}

/* =============================
   COOKIE BANNER & CONSENT MODAL
   ============================= */

.cookie-banner {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  background: #241C15;
  color: #fff;
  box-shadow: 0 -4px 16px 0 #FF8C4255, 0 1px 4px 0 #19161A44;
  z-index: 2600;
  width: 100%;
  padding: 24px 20px 22px 20px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  align-items: center;
  animation: cookieBannerIn 0.5s cubic-bezier(.6,.16,.16,1) 0.1s backwards;
}
@keyframes cookieBannerIn {
  0% { opacity: 0; transform: translateY(140%); }
  100% { opacity: 1; transform: translateY(0); }
}
.cookie-banner-buttons {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}
.cookie-btn {
  font-family: 'Oswald', Arial, sans-serif;
  font-size: 1.06rem;
  font-weight: 600;
  padding: 12px 20px;
  border-radius: 16px 8px 16px 8px;
  border: none;
  cursor: pointer;
  background: #211E28;
  color: #FF8C42;
  box-shadow: 0 2px 10px 0 #FF8C4262;
  margin: 0;
  transition: background 0.17s, color 0.17s, box-shadow 0.2s;
}
.cookie-btn.accept {
  background: #FF8C42;
  color: #19161A;
  font-weight: 700;
}
.cookie-btn.accept:hover, .cookie-btn.accept:focus {
  background: #FF570A;
  color: #fff;
  box-shadow: 0 4px 14px #FF8C4290;
}
.cookie-btn.reject:hover, .cookie-btn.reject:focus {
  background: #19161A;
  box-shadow: 0 6px 15px 0 #FF570A44;
  color: #FF8C42;
}
.cookie-btn.settings:hover,
.cookie-btn.settings:focus {
  background: #FF8C42;
  color: #19161A;
}

@media (max-width: 550px) {
  .cookie-banner {
    padding: 18px 8px 16px 8px;
    gap: 10px;
  }
  .cookie-banner-buttons {
    flex-direction: column;
    gap: 12px;
    width: 100%;
    align-items: stretch;
  }
  .cookie-btn {
    width: 100%;
    min-width: unset;
  }
}

/* Cookie settings modal */
.cookie-modal-backdrop {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  z-index: 2700;
  background: #19161A88;
  backdrop-filter: blur(3px);
  display: flex;
  align-items: center;
  justify-content: center;
  animation: cookieBackdropIn 0.25s cubic-bezier(.61,.3,.21,1) backwards;
}
@keyframes cookieBackdropIn {
  0% { opacity:0; }
  100% { opacity:1; }
}
.cookie-modal {
  background: #211E28;
  color: #fff;
  border-radius: 22px 8px 20px 8px;
  box-shadow: 0 8px 28px 0 #FF8C4275;
  max-width: 380px;
  padding: 34px 28px 26px 28px;
  z-index: 2702;
  animation: cookieModalPop 0.32s cubic-bezier(.79,0,.18,1) backwards;
  display: flex;
  flex-direction: column;
  gap: 18px;
}
@keyframes cookieModalPop {
  0% { opacity:0; transform: scale(0.92); }
  100% { opacity:1; transform: scale(1); }
}
.cookie-modal h2 {
  color: #FF8C42;
  font-size: 1.35rem;
  margin-bottom: 10px;
}
.cookie-category {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 10px;
}
.cookie-category label {
  color: #F7F7F7;
  font-size: 1rem;
  cursor: pointer;
}
.cookie-switch {
  appearance: none;
  width: 44px;
  height: 23px;
  background: #333;
  border-radius: 14px;
  position: relative;
  outline: none;
  box-shadow: 0 1px 5px #111a;
  transition: background 0.17s;
  border: 1.5px solid #211E28;
}
.cookie-switch:checked {
  background: #FF8C42;
}
.cookie-switch:before {
  content: '';
  display: block;
  width: 19px;
  height: 19px;
  background: #fff;
  border-radius: 100%;
  position: absolute;
  left: 2px;
  top: 1.5px;
  transition: left 0.15s, background 0.17s;
  box-shadow: 0 1px 4px #111a;
}
.cookie-switch:checked:before {
  left: 22px;
  background: #FF8C42;
}
.cookie-category .desc {
  color: #aaa;
  font-size: 0.91rem;
}
.cookie-modal .cookie-btn {
  margin-top: 18px;
}
.cookie-modal .cookie-btn.close {
  background: #221B16;
  color: #FF8C42;
  margin-left: 0;
}
.cookie-modal .cookie-btn.close:hover { background: #19161A; color: #fff; }

/* "Essential" always enabled category */
.cookie-category.essential label {
  color: #ccc;
  font-style: italic;
}
.cookie-category.essential .cookie-switch {
  background: #31251C;
  cursor: not-allowed;
}
.cookie-category.essential .cookie-switch:before {
  background: #bbb;
}
.cookie-category.essential .cookie-switch:checked {
  background: #FF8C4290;
}


/* =============================
   TABLES
   ============================= */
table {
  margin: 14px 0 24px 0;
  background: #241C15;
  border-radius: 12px 6px 14px 6px;
  overflow: hidden;
  color: #F7F7F7;
  box-shadow: 0 2px 10px 0 #18141c80;
}
th, td {
  font-size: 1rem;
}
tr {
  border-bottom: 1px solid #2D2735;
}
tr:last-child {
  border-bottom: 0;
}

/* =============================
   RESPONSIVE ADJUSTMENTS
   ============================= */
@media (max-width: 900px) {
  .feature-grid, .card-container, .teacher-bios, .testimonial-list, .content-grid {
    flex-direction: column;
    align-items: stretch !important;
    gap: 20px !important;
  }
  .feature {
    width: 100%;
    min-width: 0;
  }
}
@media (max-width: 500px) {
  h1 {
    font-size: 1.6rem;
  } 
  h2 {
    font-size: 1.18rem;
  }
  .section {
    padding: 18px 5px 24px 5px;
    margin-bottom: 34px;
  }
  .card, .feature, .teacher-profile {
    padding: 16px 10px;
  }
  .testimonial-card {
    padding: 13px 8px;
  }
}

/* =============================
   MODERN NEON EFFECTS & ACCENTS
   ============================= */
h1, h2, .cta, .main-nav a.cta.primary, .feature img {
  text-shadow: 0 2px 16px #FF8C4240, 0 0px 8px #FF8C42;
}
.feature img {
  filter: drop-shadow(0 1px 6px #FF8C4255);
}
.feature {
  box-shadow: 0 2.5px 8px 0 #FF570A28, 0 2px 10px 0 #19161A15;
}
.feature:hover, .teacher-profile:hover {
  box-shadow: 0 8px 34px 0 #FF570A2d, 0 5px 20px 0 #FF8C4299;
  border-color: #FF8C42;
}

/* Emphasize hover for buttons */
.cta:active, .main-nav a.cta.primary:active {
  background: #241C15;
  color: #fff;
  transform: translateY(2px) scale(0.99);
  box-shadow: 0 2px 12px #FF8C4291;
}

/* Animations for some micro-interactions */
.cta, .feature, .teacher-profile, .testimonial-card, .blog-preview-list li,
.main-nav a, .mobile-nav a, .footer-nav a {
  transition: box-shadow 0.22s, background 0.18s, color 0.18s, border 0.19s, transform 0.13s;
}

footer, header, .cookie-banner {
  will-change: box-shadow, background;
}

/* =============================
   SCROLLBAR STYLE (WEBKIT)
   ============================= */
::-webkit-scrollbar { width: 10px; background: #19161A; }
::-webkit-scrollbar-thumb { background: #FF8C42; border-radius: 12px 8px; }

/* ======== UTILITY & SPACING ======= */
.mt-2 { margin-top: 16px !important; }
.mt-3 { margin-top: 24px !important; }
.mb-2 { margin-bottom: 16px !important; }
.mb-3 { margin-bottom: 24px !important; }
.gap-8 { gap: 8px !important; }
.gap-16{ gap: 16px !important; }

/* SELECTED STATES */
:focus-visible {
  outline: 2px solid #FF8C42;
  outline-offset: 2px;
}

