/* ==========================================================================
   CSS RESET & BASE STYLES (Normalize & Box-Sizing)
   ==========================================================================
*/
html {
  box-sizing: border-box;
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
  -ms-text-size-adjust: 100%;
  scroll-behavior: smooth;
}
*, *::before, *::after {
  box-sizing: inherit;
}
body {
  margin: 0;
  padding: 0;
  font-family: 'Roboto', Arial, Helvetica, sans-serif;
  color: #183153;
  background: #f6f8fa;
  line-height: 1.69;
  min-height: 100vh;
}
img, picture, video {
  max-width: 100%;
  height: auto;
  display: block;
}
h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-weight: 700;
  color: #183153;
  margin: 0 0 16px 0;
}
h1 { font-size: 2.5rem; margin-bottom: 18px; }
h2 { font-size: 2rem; margin-bottom: 14px; }
h3 { font-size: 1.375rem; margin-bottom: 10px; }
h4 { font-size: 1.125rem; margin-bottom: 8px; }
h5, h6 { font-size: 1rem; margin-bottom: 6px; }
p, ul, ol { margin: 0 0 18px 0; }
strong { font-weight: 700; color: #183153; }
a { color: #183153; text-decoration: none; transition: color .2s; }
a:hover, a:focus { color: #29AA90; }
ul, ol {
  padding-left: 24px;
}
li { margin-bottom: 8px; }
table { border-collapse: collapse; width: 100%; font-size: 1rem; }
th, td { text-align: left; padding: 14px 10px; }
th { background: #e6ebf5; font-family: 'Montserrat', Arial, Helvetica, sans-serif; }
td { background: #fff; }

/* ==========================================================================
   LAYOUT CONTAINERS
   ==========================================================================
*/
.container {
  width: 100%;
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 18px;
}
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
}
.content-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  text-align: center;
}
.text-section {
  margin: 0 auto 36px auto;
  max-width: 730px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: flex-start;
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 2px 12px 0 rgba(24,49,83,.045);
  padding: 28px 22px;
}

/* FEATURES GRID / FLEX CARDS  */
.features-grid,
.features-list,
.teacher-profiles {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-top: 18px;
}
.feature, .teacher-profiles .text-section {
  background: #fafdff;
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(24,49,83,.04);
  padding: 28px 18px 22px 18px;
  flex: 1 1 245px;
  min-width: 212px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  margin-bottom: 20px;
  position: relative;
  transition: box-shadow .22s;
}
.feature:hover, .teacher-profiles .text-section:hover {
  box-shadow: 0 4px 24px rgba(24,49,83,.10);
}

/* ==========================================================================
   BUTTONS
   ==========================================================================
*/
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #183153;
  color: #fff;
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-size: 1.1rem;
  font-weight: 600;
  border: none;
  border-radius: 6px;
  padding: 14px 34px;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(24,49,83,.07);
  text-decoration: none;
  transition: background .2s, color .2s, box-shadow .22s, transform .12s;
}
.btn-primary:hover, .btn-primary:focus {
  background: #29AA90;
  color: #fff;
  transform: translateY(-1px) scale(1.03);
  box-shadow: 0 4px 20px rgba(41,170,144,.10);
}

.discount-badge {
  background: #29AA90;
  color: #fff;
  border-radius: 22px;
  padding: 7px 18px;
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-size: 1rem;
  font-weight: 600;
  margin-right: 16px;
  display: inline-flex;
  align-items: center;
  margin-bottom: 12px;
}
.badge-section { margin-bottom: 22px; }
.discount {
  background: #e8faf7;
  color: #29AA90;
  font-weight: 600;
  border-radius: 6px;
  padding: 4px 10px;
  font-size: .97em;
}

/* ==========================================================================
   HEADER & MAIN NAVIGATION
   ==========================================================================
*/
header {
  background: #fff;
  box-shadow: 0 2px 12px rgba(24, 49, 83, .05);
  position: sticky;
  top: 0;
  z-index: 1200;
}
.main-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 18px;
  min-height: 72px;
}
.main-nav a {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-size: 1.05rem;
  color: #183153;
  padding: 8px 14px;
  border-radius: 5px;
  transition: background .16s, color .17s;
}
.main-nav a.btn-primary {
  padding: 10px 22px;
  margin-left: 6px;
}
.main-nav a:hover:not(.btn-primary), 
.main-nav a:focus:not(.btn-primary) {
  background: #e6ebf5;
  color: #29AA90;
}
.main-nav img {
  height: 38px;
  width: auto;
  margin-right: 26px;
  vertical-align: middle;
  background: transparent;
}

/* ==========================================================================
   MOBILE MENU NAVIGATION
   ==========================================================================
*/
.mobile-menu-toggle {
  display: none;
  position: absolute;
  right: 18px;
  top: 16px;
  background: #183153;
  color: #fff;
  border: none;
  border-radius: 5px;
  width: 46px;
  height: 46px;
  font-size: 2rem;
  cursor: pointer;
  z-index: 1020;
  justify-content: center;
  align-items: center;
  transition: background .18s;
}
.mobile-menu-toggle:active,
.mobile-menu-toggle:focus {
  background: #29AA90;
  outline: none;
}
.mobile-menu {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: #183153;
  transform: translateX(100%);
  transition: transform .38s cubic-bezier(0.77,0,0.18,1);
  z-index: 3000;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  justify-content: flex-start;
  padding-top: 0;
}
.mobile-menu.open {
  transform: translateX(0);
}
.mobile-menu-close {
  background: none;
  color: #fff;
  border: none;
  font-size: 2.2rem;
  margin: 22px 24px 10px 0;
  cursor: pointer;
  z-index: 3222;
  align-self: flex-end;
  transition: color .15s;
  padding: 0 8px;
}
.mobile-menu-close:focus,
.mobile-menu-close:hover {
  color: #29AA90;
}
.mobile-nav {
  margin-top: 22px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  width: 100%;
  gap: 12px;
  padding: 0 34px;
}
.mobile-nav a {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-size: 1.35rem;
  padding: 16px 0 12px 0;
  color: #fff;
  border-bottom: 1px solid rgba(255,255,255, .07);
  width: 100%;
  transition: color .14s;
}
.mobile-nav a:last-child {
  border-bottom: none;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  color: #29AA90;
  background: none;
}

@media (max-width: 1080px) {
  .main-nav {
    max-width: 100%;
  }
}
@media (max-width: 900px) {
  .main-nav {
    gap: 8px;
    font-size: .98rem;
    padding: 0 11px;
  }
  .main-nav img { margin-right: 12px; height: 32px; }
}
@media (max-width: 768px) {
  .main-nav {
    display: none;
  }
  .mobile-menu-toggle {
    display: flex;
  }
}
@media (min-width:769px) {
  .mobile-menu {
    display: none !important;
  }
  .mobile-menu-toggle {
    display: none !important;
  }
}

/* ==========================================================================
   SECTION, CARD AND LIST STYLES
   ==========================================================================
*/
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  background: #fff;
  box-shadow: 0 2px 10px rgba(24, 49, 83, .05);
  border-radius: 10px;
  padding: 24px 18px;
  margin-bottom: 20px;
  position: relative;
  flex: 1 1 320px;
  transition: box-shadow .2s;
}
.card:hover { box-shadow: 0 4px 32px rgba(24, 49, 83, .10); }

.card-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 12px;
}

.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;
  background: #fafdff;
  color: #183153;
  border-left: 6px solid #29AA90;
  border-radius: 10px;
  margin-bottom: 20px;
  box-shadow: 0 2px 10px rgba(24,49,83,.03);
  position: relative;
  transition: box-shadow .17s;
}
.testimonial-card:hover {
  box-shadow: 0 8px 32px rgba(24,49,83,.09);
}
.star-rating {
  color: #29AA90;
  font-size: 1.23rem;
  letter-spacing: 1px;
  margin-left: 6px;
}

.service-list, .features-list, .course-list {
  list-style: none;
  padding-left: 0;
  margin: 24px 0 24px 0;
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.service-list li, .features-list li, .course-list li {
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(24,49,83,.05);
  padding: 18px 16px 14px 22px;
  margin-bottom: 6px;
  font-size: 1.04rem;
  position: relative;
  transition: box-shadow .17s;
}
.service-list li:hover, .features-list li:hover, .course-list li:hover {
  box-shadow: 0 6px 18px rgba(24,49,83,.08);
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}

.faq-accordion {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.faq-item {
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 2px 7px rgba(24,49,83,.04);
  padding: 18px 18px 12px 20px;
  margin-bottom: 8px;
  transition: box-shadow .14s;
}
.faq-item:hover {
  box-shadow: 0 4px 20px rgba(41,170,144,.09);
}
.faq-item h2 {
  font-size: 1.12rem;
  color: #183153;
  margin-bottom: 4px;
}

.contact-details {
  margin: 24px 0 10px 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.contact-details img {
  width: 18px;
  height: 18px;
  margin-right: 8px;
  vertical-align: -3px;
}
.office-hours, .map-container {
  margin-bottom: 20px;
}
.map-container {
  display: flex;
  align-items: center;
  gap: 18px;
}

/* ==========================================================================
   PRICING TABLE
   ==========================================================================
*/
.pricing-table th, .pricing-table td {
  border-bottom: 1px solid #e6ebf5;
}
.pricing-table thead th {
  background: #e6ebf5;
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1.07rem;
  color: #183153;
  font-weight: 600;
}
.pricing-table tfoot td {
  background: #f6f8fa;
}

/* ==========================================================================
   FOOTER
   ==========================================================================
*/
footer {
  background: #183153;
  color: #fff;
  border-top: 4px solid #29AA90;
  padding-top: 40px;
  margin-top: 48px;
}
footer .container {
  display: flex;
  flex-wrap: wrap;
  gap: 36px;
  align-items: flex-start;
  justify-content: space-between;
  padding-bottom: 24px;
}
.footer-nav {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.footer-nav a {
  color: #fff;
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-size: 1.03rem;
  margin-bottom: 3px;
  transition: color .13s;
}
.footer-nav a:hover, .footer-nav a:focus {
  color: #29AA90;
}
.footer-contact {
  font-size: 0.95rem;
  color: #e7f2fb;
  margin-bottom: 12px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.footer-contact a { color: #29AA90; }
.footer-brand {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 9px;
}
.footer-brand img {
  height: 38px;
  width: auto;
  margin-bottom: 6px;
}
.footer-brand span {
  font-size: 0.93rem;
  color: #e7f2fb;
}

@media (max-width: 1000px) {
  footer .container {
    flex-direction: column;
    gap: 28px;
    align-items: flex-start;
  }
}
@media (max-width: 600px) {
  footer .container {
    padding-bottom: 12px;
  }
}

/* ==========================================================================
   RESPONSIVE DESIGN
   ==========================================================================
*/
@media (max-width: 1100px) {
  .container { max-width: 96vw; }
  .features-grid, .teacher-profiles { gap: 18px; }
}
@media (max-width: 900px) {
  .features-grid, .teacher-profiles {
    gap: 14px;
  }
  .feature, .teacher-profiles .text-section {
    min-width: 190px;
    padding: 20px 13px 15px 13px;
  }
}
@media (max-width: 768px) {
  h1 { font-size: 2rem; }
  h2 { font-size: 1.4rem; }
  .section {
    padding: 26px 8px;
    margin-bottom: 38px;
  }
  .features-grid, .features-list, .teacher-profiles, .content-grid {
    flex-direction: column;
    gap: 12px;
  }
  .card-container, .content-grid {
    flex-direction: column;
    gap: 16px;
  }
  .feature, .teacher-profiles .text-section, .card {
    width: 100%;
    min-width: unset;
    margin-bottom: 16px;
  }
  .testimonial-card {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    padding: 16px 12px;
  }
  .service-list, .features-list, .course-list {
    gap: 10px;
  }
  .text-image-section { flex-direction: column; gap: 18px;}
  .footer-brand img { height: 29px; }
  footer {
    padding-top: 24px;
    margin-top: 32px;
  }
}
@media (max-width: 470px) {
  h1 { font-size: 1.4rem;}
  h2, h3 { font-size: 1.12rem; }
  .discount-badge { font-size: .94rem; padding: 5px 10px;}
}

/* ==========================================================================
   ANIMATIONS & MICRO-INTERACTIONS
   ==========================================================================
*/
.btn-primary, .feature, .testimonial-card, .service-list li, .card {
  transition: box-shadow .2s, transform .15s, background .19s;
}
.btn-primary:active {
  transform: scale(.99);
}
.feature:focus, .testimonial-card:focus, .service-list li:focus, .card:focus {
  outline: 2px solid #29AA90;
  outline-offset: 2px;
}

/* ==========================================================================
   COOKIE CONSENT BANNER & MODAL
   ==========================================================================
*/
.cookie-banner {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  width: 100vw;
  background: #fafdff;
  box-shadow: 0 -8px 42px rgba(24,49,83,.13);
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 30px;
  z-index: 5000;
  padding: 18px 30px;
  font-size: 1rem;
  border-top: 3px solid #29AA90;
  animation: cookieBannerIn .37s cubic-bezier(0.66,0,0.14,1);
}
.cookie-banner.hide {
  display: none;
}
@keyframes cookieBannerIn {
  from { transform: translateY(110%); opacity: 0; }
  to   { transform: translateY(0); opacity: 1; }
}
.cookie-banner-message {
  flex: 1 1 340px;
  color: #183153;
  line-height: 1.5;
  margin-right: 18px;
}
.cookie-banner-actions {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
}
.cookie-btn {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  background: #183153;
  color: #fff;
  border: none;
  border-radius: 6px;
  padding: 10px 22px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: background .17s;
}
.cookie-btn.accept {
  background: #29AA90;
}
.cookie-btn.reject {
  background: #cfd8e5;
  color: #183153;
}
.cookie-btn.settings {
  background: #183153;
  color: #fff;
}
.cookie-btn:hover, .cookie-btn:focus {
  background: #156893;
  color: #fff;
}
.cookie-btn.accept:hover, .cookie-btn.accept:focus { background: #183153; }
.cookie-btn.reject:hover, .cookie-btn.reject:focus { background: #29AA90; color: #fff; }

@media (max-width: 700px) {
  .cookie-banner {
    flex-direction: column;
    align-items: flex-start;
    padding: 14px 10px;
    gap: 12px;
    font-size: .97rem;
  }
  .cookie-banner-actions { gap: 8px; }
}

/* Cookie Modal preference pop-up */
.cookie-modal {
  position: fixed;
  left: 0; right: 0; top: 0; bottom: 0;
  z-index: 5020;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(24,49,83, .18);
  animation: cookieModalIn .28s cubic-bezier(0.66,0,0.14,1) forwards;
}
@keyframes cookieModalIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}
.cookie-modal-content {
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 10px 55px rgba(24,49,83,.15);
  padding: 42px 30px 32px 30px;
  max-width: 420px;
  width: 92vw;
  font-size: 1.1rem;
  color: #183153;
  display: flex;
  flex-direction: column;
  gap: 24px;
  position: relative;
}
.cookie-modal-content h2 {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-size: 1.38rem;
  margin-bottom: 8px;
}
.cookie-modal-close {
  position: absolute;
  right: 18px;
  top: 10px;
  font-size: 1.6rem;
  color: #183153;
  background: none;
  border: none;
  cursor: pointer;
  transition: color .15s;
}
.cookie-modal-close:hover, .cookie-modal-close:focus {
  color: #29AA90;
}
.cookie-category {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-bottom: 10px;
}
.cookie-category input[type="checkbox"] {
  accent-color: #29AA90;
  width: 20px; height: 20px;
}
.cookie-category label {
  font-size: 1.07rem; color: #183153; font-family: 'Roboto', Arial, sans-serif;
}
.cookie-category.essential label { color: #999; }
.cookie-modal-actions {
  display: flex;
  gap: 14px;
  margin-top: 10px;
}
.cookie-modal-actions .cookie-btn {
  padding: 10px 22px;
}
@media (max-width: 500px) {
  .cookie-modal-content {
    padding: 22px 7vw 17px 7vw;
    font-size: .99rem;
    min-width: unset;
  }
  .cookie-modal-content h2 {
    font-size: 1rem; margin-bottom: 5px;
  }
  .cookie-modal-actions .cookie-btn {
    font-size: 0.95rem;
    padding: 8px 7vw;
  }
}

/* ==========================================================================
   UTILITIES (SPACING, .hide, .visually-hidden)
   ==========================================================================
*/
.hide { display: none !important; }
.visually-hidden { position: absolute;clip: rect(1px,1px,1px,1px);padding:0;border:0; height:1px;width:1px;overflow:hidden; }
.mt-2 { margin-top: 8px; }
.mt-3 { margin-top: 16px; }
.mt-4 { margin-top: 24px; }
.mb-2 { margin-bottom: 8px; }
.mb-3 { margin-bottom: 16px; }
.mb-4 { margin-bottom: 24px; }

/* ==========================================================================
   BRAND COLORS FOR DECORATIVE ELEMENTS
   ==========================================================================
*/
::-webkit-scrollbar { width: 10px; background: #e6ebf5; }
::-webkit-scrollbar-thumb { background: #183153; border-radius: 6px; }
::-webkit-selection { background: #29AA90; color: #fff; }
::selection { background: #29AA90; color: #fff; }

/* ==========================================================================
   ADAPTIVE TYPOGRAPHY FOR HEADINGS (mobile first)
   ==========================================================================
*/
@media (max-width: 600px) {
  h1 { font-size: 1.39rem; }
  h2 { font-size: 1.05rem; }
  h3, h4 { font-size: .99rem; }
}

/* ==========================================================================
   PRINT STYLES (to ensure clean prints)
   ==========================================================================
*/
@media print {
  body { color: #000; background: #fff; }
  header, footer, .cookie-banner, .mobile-menu, .mobile-menu-toggle { display: none !important; }
  .section, .container { margin-left: 0 !important; margin-right: 0 !important; }
}
