/* ===========================================================
   CSS Reset and Normalize
=========================================================== */
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,
main, 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;
}
article, aside, details, figcaption, figure,
footer, header, hgroup, main, menu, nav, section {
  display: block;
}
body { line-height: 1.5; }
ol, ul { list-style: none; }
a { text-decoration: none; color: inherit; }
img { border: 0; max-width: 100%; display: block; }
table { border-collapse: collapse; border-spacing: 0; }
button { background: none; border: none; cursor: pointer; font: inherit; }

/* ==========================
   Brand & Elegant Classic Base
========================== */
:root {
  --primary: #183153;
  --secondary: #69CA72;
  --accent: #F5F7FA;
  --dark: #101a26;
  --text: #202336;
  --text-light: #fafbfc;
  --muted: #e8eaf0;
  --shadow: rgba(24,49,83,0.09);
  --shadow-strong: rgba(24,49,83,0.17);
  --serif: 'Merriweather', 'Times New Roman', serif;
  --sans: 'Montserrat', 'Arial', sans-serif;
  --body: 'Roboto', 'Arial', sans-serif;
}
@media (max-width: 768px) {
  html { font-size: 15px; }
}

body {
  background: var(--accent);
  color: var(--text);
  font-family: var(--serif);
  font-size: 1.125rem; /* 18px */
  font-weight: 400;
  line-height: 1.7;
  min-height: 100vh;
  letter-spacing: 0.01em;
}

.container {
  width: 100%;
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 16px;
  display: flex;
  flex-direction: column;
}

/* =============================================
   Typography
============================================= */
h1, h2, h3, h4, h5, h6 {
  color: var(--primary);
  font-family: var(--serif);
  font-weight: 700;
  margin-bottom: 20px;
  line-height: 1.2;
  text-rendering: optimizeLegibility;
}
h1 { font-size: 2.7rem; letter-spacing: -0.5px; margin-bottom: 28px; }
h2 { font-size: 2.1rem; margin-bottom: 20px; }
h3 { font-size: 1.45rem; font-weight: 600; }
h4 { font-size: 1.19rem; font-weight: 600; }
p, li, blockquote { font-family: var(--body); font-size: 1rem; margin-bottom: 18px; }
blockquote {
  padding: 16px 24px;
  background: var(--muted);
  border-left: 4px solid var(--secondary);
  color: var(--primary);
  font-style: italic;
  border-radius: 8px 24px 24px 8px;
  margin-bottom: 18px;
  transition: box-shadow .18s;
}
strong, b { font-weight: 700; }
em, i { font-style: italic; }
.subheadline { font-size: 1.15rem; color: var(--dark); font-family: var(--body); margin-bottom: 18px; }

/* Layout Spacing & Sectioning ========================= */
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
}
.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.text-section {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* ================= Flexbox Grids and Layouts ================ */
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  position: relative;
  margin-bottom: 20px;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 4px 18px var(--shadow);
  padding: 32px;
  transition: box-shadow .20s, transform .22s;
  display: flex;
  flex-direction: column;
}
.card:hover {
  box-shadow: 0 8px 30px var(--shadow-strong);
  transform: translateY(-4px) scale(1.012);
}

.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;
}
@media (max-width: 768px) {
  .text-image-section {
    flex-direction: column;
    align-items: flex-start;
    gap: 22px;
  }
}

.feature-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 28px;
  justify-content: flex-start;
  margin-bottom: 16px;
}
.feature-grid > li {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 3px 12px var(--shadow);
  flex: 1 1 250px;
  min-width: 220px;
  padding: 24px 18px 22px 18px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  transition: box-shadow .17s, transform .19s;
}
.feature-grid > li:hover {
  box-shadow: 0 7px 26px var(--shadow-strong);
  transform: translateY(-2px) scale(1.012);
}

.testimonial-card {
  display: flex;
  align-items: center;
  gap: 20px;
  background: #fff;
  border-radius: 14px;
  padding: 24px 32px;
  margin-bottom: 20px;
  box-shadow: 0 2px 18px var(--shadow);
  flex-direction: column;
  max-width: 600px;
}
.testimonial-author {
  font-family: var(--body);
  color: var(--primary);
  font-size: 0.97rem;
  font-weight: 500;
  letter-spacing: 0.01em;
}

/* =====================================
   HERO Section
===================================== */
.hero {
  background: linear-gradient(90deg, #f5f7fa 55%, #e9eff5 100%);
  border-bottom: 1px solid var(--muted);
  padding: 52px 0 44px 0;
}
.hero .content-wrapper {
  align-items: flex-start;
  gap: 18px;
  max-width: 700px;
}
.hero h1 {
  font-size: 2.8rem;
  color: var(--primary);
  margin-bottom: 16px;
}

a.btn-primary,
.btn-primary {
  display: inline-block;
  background: var(--primary);
  color: #fff;
  font-family: var(--sans);
  font-weight: 600;
  font-size: 1.18rem;
  padding: 14px 34px;
  border-radius: 32px;
  box-shadow: 0 2px 10px var(--shadow);
  border: 2px solid var(--primary);
  margin-top: 10px;
  transition: background .18s, color .18s, box-shadow .17s, border .19s;
  letter-spacing: 0.01em;
}
a.btn-primary:hover, .btn-primary:hover, a.btn-primary:focus, .btn-primary:focus {
  background: var(--secondary);
  color: var(--primary);
  border-color: var(--secondary);
  box-shadow: 0 6px 20px var(--shadow-strong);
  text-decoration: none;
}

/* ========= Course Cards/Previews =========== */
.course-cards {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 32px;
}
.course-card {
  flex: 1 1 250px;
  min-width: 230px;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 2px 18px var(--shadow);
  padding: 28px 22px 20px 22px;
  display: flex;
  flex-direction: column;
  transition: box-shadow .19s, transform .18s;
}
.course-card h2 {
  font-size: 1.33rem;
  margin-bottom: 9px;
  color: var(--primary);
}
.course-card:hover {
  box-shadow: 0 7px 22px var(--shadow-strong);
  transform: translateY(-3px) scale(1.008);
}

/* ========== Pricing Table ============== */
table.pricing-table {
  width: 100%;
  background: #fff;
  border-radius: 13px;
  box-shadow: 0 2px 18px var(--shadow);
  margin-bottom: 32px;
  overflow: hidden;
  font-family: var(--body);
}
table.pricing-table th, 
table.pricing-table td {
  padding: 15px 14px;
  text-align: left;
  border-bottom: 1px solid var(--muted);
  font-size: 1.01rem;
  color: var(--primary);
}
table.pricing-table th {
  background: var(--muted);
  font-weight: 600;
}
table.pricing-table tr:last-child td {
  border-bottom: none;
}

/* ================= FAQ Styles =============== */
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 22px;
}
.faq-item {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 1px 10px var(--shadow);
  padding: 18px 22px;
  margin-bottom: 4px;
  transition: box-shadow .17s, transform .13s;
}
.faq-item:hover {
  box-shadow: 0 4px 18px var(--shadow-strong);
  transform: translateY(-2px);
}
.faq-item h2 {
  font-size: 1.08rem;
  margin-bottom: 7px;
  color: var(--primary);
}

/* ========== Map and Footer Contact ========== */
.map-location {
  background: var(--muted);
  color: var(--primary);
  border-radius: 10px;
  padding: 14px 22px;
  margin-top: 10px;
  font-size: 1.04rem;
  display: flex;
  align-items: center;
  gap: 14px;
  font-family: var(--body);
}

/* =================== Footer ================== */
footer {
  background: var(--primary);
  color: #fff;
  padding: 50px 0 28px 0;
  border-top: 2px solid var(--secondary);
}
footer .container {
  flex-direction: row;
  flex-wrap: wrap;
  gap: 32px;
  justify-content: space-between;
  align-items: flex-start;
}
.footer-brand {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 13px;
  font-family: var(--serif);
  font-size: 1.15rem;
  font-weight: 700;
}
footer nav {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 16px;
}
footer nav a {
  color: #f5f7fa;
  font-family: var(--body);
  font-size: 1rem;
  opacity: 0.97;
  transition: color .17s, opacity .17s;
}
footer nav a:hover {
  color: var(--secondary);
  opacity: 1;
}
.footer-contact-short {
  margin-bottom: 20px;
  font-family: var(--body);
  font-size: 1.001rem;
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.footer-contact-short img {
  margin-right: 8px;
  max-width: 50px;
}
.footer-social {
  display: flex;
  flex-direction: row;
  gap: 16px;
  align-items: center;
  margin-top: 22px;
}
.footer-social a img {
  width: 28px; height: 28px;
  transition: opacity .18s;
  opacity: 0.85;
}
.footer-social a:hover img {
  opacity: 1;
}

/* =========================
   Header & Navigation
========================= */
header {
  background: #fff;
  border-bottom: 1px solid var(--muted);
  position: relative;
  z-index: 100;
  box-shadow: 0 3px 12px var(--shadow);
}
header .container {
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  min-height: 88px;
  gap: 0;
}
header img {
  height: 38px;
  margin-right: 14px;
}
.main-nav {
  display: flex;
  flex-direction: row;
  gap: 20px;
  align-items: center;
}
.main-nav a {
  font-family: var(--body);
  color: var(--primary);
  font-size: 1.01rem;
  opacity: 0.92;
  padding: 6px 8px;
  border-radius: 6px;
  transition: color .17s, background .16s, opacity .16s;
}
.main-nav a:hover {
  color: var(--secondary);
  background: var(--muted);
  opacity: 1;
}
.main-nav a.btn-primary {
  margin-left: 12px;
}

/* Hide burger menu on desktop, show on mobile */
.mobile-menu-toggle {
  display: none;
  font-size: 2.2rem;
  padding: 8px 16px;
  color: var(--primary);
  border-radius: 8px;
  background: transparent;
  margin-left: 12px;
  transition: background .15s;
  z-index: 102;
}
.mobile-menu-toggle:focus, .mobile-menu-toggle:hover {
  background: var(--muted);
  color: var(--secondary);
}

/* ============= Mobile Menu Overlay ============= */
.mobile-menu {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(24, 49, 83, 0.96);
  color: #fff;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  transform: translateX(-100%);
  transition: transform 0.28s cubic-bezier(0.45,0,0.55,1);
  pointer-events: none;
  opacity: 0;
}
.mobile-menu.active {
  transform: translateX(0%);
  pointer-events: all;
  opacity: 1;
}
.mobile-menu-close {
  font-size: 2rem;
  color: var(--secondary);
  background: none;
  align-self: flex-end;
  margin: 24px 26px 0 0;
  z-index: 1000;
  transition: color .15s;
}
.mobile-menu-close:focus, .mobile-menu-close:hover {
  color: #fff;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 26px;
  margin: 38px 0 0 34px;
}
.mobile-nav a {
  color: #fff;
  font-family: var(--sans);
  font-size: 1.45rem;
  opacity: 0.90;
  padding: 7px 14px;
  border-radius: 8px;
  transition: background .16s, color .16s, opacity .17s;
}
.mobile-nav a:focus, .mobile-nav a:hover {
  background: var(--secondary);
  color: var(--primary);
  opacity: 1;
}

@media (max-width: 1020px) {
  header .container { padding-left: 8px; padding-right: 8px; }
}
@media (max-width: 900px) {
  .main-nav a { font-size: 1rem; }
  .footer-brand span { display: none; }
  .footer-contact-short { font-size: 0.93rem; }
}
@media (max-width: 820px) {
  .main-nav { gap: 10px; }
  .feature-grid { gap: 16px; }
}
@media (max-width: 768px) {
  .main-nav { display: none; }
  .mobile-menu-toggle { display: block; }
  .container { padding-left: 9px; padding-right: 9px; }
  footer .container { flex-direction: column; gap: 24px; align-items: flex-start; }
  .course-cards, .feature-grid { flex-direction: column; gap: 18px; }
  .course-card, .feature-grid > li { min-width: 180px; }
  .testimonial-card { max-width: 100%; }
  .section { padding: 30px 5px; margin-bottom: 32px; }
}

/* ================= COOKIE CONSENT BANNER =============== */
.cookie-banner {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  width: 100vw;
  background: #fff;
  color: var(--primary);
  box-shadow: 0 -3px 20px var(--shadow-strong);
  z-index: 10000;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 38px;
  padding: 26px 16px 20px 16px;
  font-size: 1.09rem;
  font-family: var(--body);
  transition: transform .3s cubic-bezier(0.84,0,.18,1), opacity .24s;
  opacity: 1;
}
.cookie-banner.hide {
  transform: translateY(100%);
  opacity: 0;
  pointer-events: none;
}
.cookie-banner .cookie-banner-message {
  max-width: 600px;
  margin-right: 12px;
}
.cookie-banner .cookie-banner-actions {
  display: flex;
  gap: 15px;
  flex-shrink: 0;
}
.cookie-btn {
  border-radius: 22px;
  border: 2px solid var(--primary);
  padding: 10px 19px;
  background: #fff;
  color: var(--primary);
  box-shadow: 0 2px 6px var(--shadow);
  font-family: var(--sans);
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: background .14s, border .16s, color .14s, box-shadow .13s;
}
.cookie-btn:hover, .cookie-btn:focus {
  background: var(--secondary);
  color: var(--primary);
  border-color: var(--secondary);
}
.cookie-btn.accept {
  background: var(--secondary);
  color: var(--primary);
  border-color: var(--secondary);
}
.cookie-btn.accept:hover, .cookie-btn.accept:focus {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}

/* ================= COOKIE MODAL =============== */
.cookie-modal-overlay {
  position: fixed;
  top: 0; right: 0; bottom: 0; left: 0;
  background: rgba(24, 49, 83, 0.50);
  z-index: 10001;
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 1;
  transition: opacity .23s;
  pointer-events: all;
}
.cookie-modal-overlay.hide {
  opacity: 0;
  pointer-events: none;
}
.cookie-modal {
  background: #fff;
  color: var(--primary);
  padding: 36px 34px 30px 34px;
  border-radius: 18px;
  box-shadow: 0 7px 28px var(--shadow-strong);
  min-width: 300px;
  max-width: 410px;
  font-family: var(--body);
  display: flex;
  flex-direction: column;
  gap: 22px;
  position: relative;
}
.cookie-modal h3 {
  font-size: 1.53rem;
  margin-bottom: 6px;
  font-family: var(--serif);
}
.cookie-modal-category {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 11px;
  font-size: 1.07rem;
}
.cookie-modal-category label {
  font-family: var(--body);
}
.cookie-switch {
  position: relative;
  display: inline-block;
  width: 44px;
  height: 24px;
}
.cookie-switch input { display: none; }
.cookie-switch span {
  position: absolute;
  left: 0; top: 0;
  width: 44px; height: 24px;
  background: var(--muted);
  border-radius: 16px;
  transition: background .19s;
}
.cookie-switch input:checked + span {
  background: var(--secondary);
}
.cookie-switch span:after {
  content: '';
  position: absolute;
  left: 4px; top: 4px;
  width: 16px; height: 16px;
  background: #fff;
  border-radius: 16px;
  transition: left .18s;
  box-shadow: 0 1px 4px var(--shadow);
}
.cookie-switch input:checked + span:after {
  left: 24px;
}
.cookie-modal-actions {
  display: flex;
  gap: 12px;
  margin-top: 16px;
}
.cookie-modal-close {
  position: absolute;
  right: 17px; top: 17px;
  font-size: 1.38rem;
  background: none;
  color: var(--secondary);
  border-radius: 8px;
  transition: color .15s;
}
.cookie-modal-close:hover, .cookie-modal-close:focus {
  color: var(--primary);
  background: var(--muted);
}

@media (max-width: 768px) {
  .cookie-banner {
    flex-direction: column;
    gap: 16px;
    font-size: 0.97rem;
    padding: 19px 8px 14px 8px;
  }
  .cookie-banner .cookie-banner-message {
    margin-right: 0;
    text-align: left;
  }
  .cookie-modal {
    min-width: 0;
    max-width: 95vw;
    padding: 20px 10px 20px 14px;
  }
}

/* =================== General Forms ================ */
input, textarea, select {
  font-family: var(--body);
  font-size: 1rem;
  padding: 12px 16px;
  border-radius: 9px;
  border: 1px solid var(--muted);
  margin-bottom: 17px;
  background: #fff;
  color: var(--primary);
  transition: border .15s, box-shadow .14s;
}
input:focus, textarea:focus, select:focus {
  border-color: var(--secondary);
  outline: none;
  box-shadow: 0 1px 4px var(--shadow);
}
label { display: block; margin-bottom: 7px; font-family: var(--body); font-size: 1.07rem; }

/* ================== Utilities & Custom ================== */
ul, ol {
  margin-left: 24px;
  margin-bottom: 18px;
}
li { margin-bottom: 10px; }
a { color: var(--primary); transition: color .17s; }
a:hover { color: var(--secondary); }
.section > .container { padding: 0; }

::-webkit-scrollbar { width: 12px; background: var(--accent); }
::-webkit-scrollbar-thumb { background: var(--muted); border-radius: 13px; }

/* ======= Responsive Adjustments ======= */
@media (max-width: 1000px) {
  .container { max-width: 96vw; }
  .course-cards, .feature-grid { gap: 12px; }
}
@media (max-width: 600px) {
  h1 { font-size: 2.0rem; margin-bottom: 18px; }
  h2 { font-size: 1.3rem; }
  .course-cards, .feature-grid { flex-direction: column; }
  .hero { padding: 38px 0 29px 0; }
  .footer-brand { font-size: 0.98rem; }
  .footer-contact-short { font-size: 0.87rem; }
}

/* ===== Accessibility: Focus Styles ==== */
:focus-visible {
  outline: 2px solid var(--secondary);
  outline-offset: 2px;
}

/* ========== Minor Utility Classes ========== */
.hide { display: none !important; }
.text-center { text-align: center; }
.mt-1  { margin-top:   8px !important; }
.mt-2  { margin-top:  16px !important; }
.mt-3  { margin-top:  24px !important; }
.mb-1  { margin-bottom:  8px !important; }
.mb-2  { margin-bottom: 16px !important; }
.mb-3  { margin-bottom: 24px !important; }

/* END OF CSS */
