/* =============================================================
   CSS RESET & 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, 
menu, nav, output, ruby, section, summary,
time, mark, audio, video {
  margin: 0; padding: 0; border: 0;
  font-size: 100%; font: inherit; vertical-align: baseline;
}
html { box-sizing: border-box; }
*, *:before, *:after { box-sizing: inherit; }
body {
  background: #FAFAFA;
  color: #222;
  font-family: 'Open Sans', Arial, sans-serif;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  font-size: 16px;
}
img, svg { display: block; max-width: 100%; height: auto; }
a {
  color: #1F355B;
  text-decoration: none;
  transition: color .2s cubic-bezier(.4,0,.2,1);
}
a:focus { outline: 2px solid #F5B43C; outline-offset: 2px; }
ul, ol { list-style: none; }
table { border-collapse: collapse; width: 100%; }

/* =======================
   ROOT CUSTOM PROPERTIES
   ======================= */
:root {
  --primary: #1F355B;
  --secondary: #D0C7B7;
  --accent: #F5B43C;
  --bg-light: #FAFAFA;
  --bg-card: #fff;
  --on-primary: #fff;
  --on-secondary: #222;
  --shadow: 0 6px 24px 0 rgba(31,53,91,.10);
  --radius: 18px;
  --radius-btn: 8px;
  --radius-card: 22px;
  --gold-gradient: linear-gradient(90deg, #F5B43C 30%, #D09E32 100%);
  --font-display: 'Montserrat', sans-serif;
  --font-body: 'Open Sans', Arial, sans-serif;
  --text-dark: #222;
  --text-light: #fff;
  --text-secondary: #1F355B;
  --transition: all .25s cubic-bezier(.4,0,.2,1);
}

/* =======================
   TYPOGRAPHY
   ======================= */
h1 {
  font-family: var(--font-display);
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--primary);
  letter-spacing: 0.01em;
  margin-bottom: 28px;
}
h2 {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 600;
  color: var(--primary);
  margin-bottom: 24px;
}
h3 {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 600;
  color: var(--primary);
  margin-bottom: 16px;
}
h4, h5, h6 {
  font-family: var(--font-display);
  color: var(--primary);
}
p, li, span, label {
  font-family: var(--font-body);
  font-size: 1rem;
}
p, li {
  margin-bottom: 12px;
}
strong {
  font-weight: 700;
  color: var(--primary);
}

/* =======================
   LAYOUT CONTAINERS
   ======================= */
.container {
  width: 100%;
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 20px;
}
.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 32px;
  margin-bottom: 32px;
}
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: transparent;
}

.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 32px;
}
.card {
  background: var(--bg-card);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow);
  padding: 32px 28px;
  margin-bottom: 20px;
  position: relative;
  transition: box-shadow .22s cubic-bezier(.4,0,.2,1), transform .22s cubic-bezier(.4,0,.2,1);
  border: 1px solid #F6EFE7;
}
.card:hover {
  box-shadow: 0 12px 32px 0 rgba(31,53,91,0.18);
  transform: translateY(-2px) scale(1.015);
  border-color: var(--accent);
}

.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;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
  padding: 20px 30px;
  background: var(--bg-card);
  border-radius: var(--radius-card);
  box-shadow: 0 4px 16px 0 rgba(31,53,91,.12);
  border-left: 6px solid var(--accent);
  margin-right: 20px;
  margin-bottom: 20px;
  min-width: 280px;
  max-width: 390px;
  color: #222;
  transition: box-shadow .19s, border-color .19s;
}
.testimonial-card p {
  color: #1F355B;
  font-size: 1.08rem;
  font-style: italic;
  margin-bottom: 8px;
}
.testimonial-card:hover {
  box-shadow: 0 8px 36px 0 rgba(245,180,60,0.14);
  border-left-color: #FFD986;
}

.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}

/* ========================
   NAVIGATION
   ======================== */
header {
  padding: 0;
  border-bottom: 1px solid #EEEBE7;
  background: var(--on-primary);
  position: sticky;
  top: 0;
  z-index: 1000;
}
.main-nav {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 20px 0;
}
.main-nav > a {
  color: var(--primary);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 1.06rem;
  position: relative;
  padding: 6px 10px;
  border-radius: 6px;
  transition: background .2s, color .22s;
}
.main-nav > a:not(.btn-primary):hover {
  background: var(--secondary);
  color: var(--primary);
  text-decoration: none;
}
.main-nav img {
  height: 38px;
  margin-right: 22px;
}
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--accent);
  color: var(--on-primary);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.08rem;
  border: none;
  border-radius: var(--radius-btn);
  padding: 12px 28px;
  box-shadow: 0 2px 12px 0 rgba(245,180,60,0.10);
  cursor: pointer;
  transition: background .18s, color .18s, box-shadow .22s, transform .18s;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.btn-primary:hover, .btn-primary:focus {
  background: #e0a32c;
  color: #fff;
  box-shadow: 0 8px 32px 0 rgba(245,180,60,0.27);
  transform: translateY(-2px) scale(1.04);
  outline: none;
}

/* Hamburger Button */
.mobile-menu-toggle {
  display: inline-flex;
  font-size: 2rem;
  background: none;
  border: none;
  color: var(--primary);
  margin-left: auto;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  padding: 8px 14px;
  border-radius: 9px;
  transition: background .16s;
}
.mobile-menu-toggle:focus, .mobile-menu-toggle:hover {
  background: var(--secondary);
  color: var(--accent);
}

@media (min-width: 1024px) {
  .mobile-menu-toggle {
    display: none;
  }
}

/* =============================
   MOBILE MENU OVERLAY & NAV
   ============================= */
.mobile-menu {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(31,53,91,0.97);
  z-index: 1800;
  transform: translateX(100%);
  transition: transform .38s cubic-bezier(.53,0,.23,1);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 0;
  pointer-events: none;
}
.mobile-menu.active {
  transform: translateX(0);
  pointer-events: auto;
}
.mobile-menu-close {
  font-size: 2.1rem;
  color: var(--accent);
  background: none;
  border: none;
  align-self: flex-end;
  margin: 20px 22px 12px 0;
  cursor: pointer;
  transition: color .18s;
  z-index: 2;
}
.mobile-menu-close:focus, .mobile-menu-close:hover {
  color: #fffbe8;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 22px;
  width: 100%;
  align-items: flex-start;
  padding: 28px 36px;
}
.mobile-nav a {
  color: #fff;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.2rem;
  border-radius: 8px;
  padding: 10px 6px;
  width: 100%;
  transition: background .16s, color .16s;
}
.mobile-nav a:focus, .mobile-nav a:hover {
  background: var(--accent);
  color: var(--primary);
}
@media (min-width: 1024px) {
  .mobile-menu { display: none !important; }
  .main-nav { display: flex !important; }
}
@media (max-width: 1023px) {
  .main-nav {
    display: none !important;
  }
}

/* ================================
   HERO SECTION
   ================================ */
.hero {
  background: var(--primary);
  color: var(--on-primary);
  border-radius: 0 0 32px 32px;
  padding: 54px 0 44px 0;
  margin-bottom: 48px;
  box-shadow: 0 12px 64px 0 rgba(31,53,91,.08);
}
.hero .container {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}
.hero h1 {
  color: var(--on-primary);
  font-size: 2.4rem;
  margin-bottom: 18px;
}
.hero p {
  font-size: 1.15rem;
  color: #E7ECEF;
  margin-bottom: 26px;
  max-width: 550px;
}
.hero .btn-primary {
  background: var(--gold-gradient);
  color: var(--primary);
  font-family: var(--font-display);
}
.hero .btn-primary:hover {
  background: var(--accent);
  color: #fff;
}

/* ========================
   FEATURE GRID / LISTS
   ======================== */
.features-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: space-between;
}
.features-grid > li, .features-grid > div {
  flex: 1 1 260px;
  background: var(--bg-card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 30px 22px;
  margin-bottom: 20px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  border-left: 5px solid var(--accent);
  transition: box-shadow .17s, border-color .17s;
}
.features-grid > li img, .features-grid > div img {
  height: 40px;
  margin-bottom: 20px;
}
.features-grid > li:hover, .features-grid > div:hover {
  box-shadow: 0 10px 32px 0 rgba(245,180,60,0.18);
  border-left-color: #FFD986;
}

.values-list {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 28px;
}
.values-list li {
  flex: 1 1 290px;
  background: var(--bg-card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 30px 22px;
  margin-bottom: 20px;
  transition: box-shadow .17s;
}
.values-list li:hover {
  box-shadow: 0 8px 32px 0 rgba(31,53,91,.12);
}

.benefits-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.benefits-list li {
  display: flex;
  align-items: center;
  gap: 18px;
  background: var(--bg-card);
  box-shadow: var(--shadow);
  border-radius: var(--radius);
  padding: 18px 20px;
}
.benefits-list img {
  height: 32px; width: 32px;
}

.categories-filter {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 28px;
}
.categories-filter span {
  font-weight: 600;
}
.categories-filter button {
  background: #fff;
  color: var(--primary);
  border: 1.5px solid var(--accent);
  border-radius: 30px;
  padding: 7px 16px;
  font-family: var(--font-body);
  font-weight: 600;
  cursor: pointer;
  margin-right: 6px;
  transition: background .15s, color .15s;
}
.categories-filter button:hover {
  background: var(--accent);
  color: #fff;
}

.courses-list {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 32px;
}
.courses-list > li {
  flex: 1 1 260px;
  background: var(--bg-card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 24px 20px;
  margin-bottom: 20px;
  border-left: 4.5px solid var(--primary);
  transition: box-shadow .18s, border-color .18s;
  min-width: 220px;
  max-width: 390px;
}
.courses-list > li:hover {
  box-shadow: 0 10px 28px 0 rgba(31,53,91,.13);
  border-color: var(--accent);
}

.modules-list {
  display: flex;
  flex-direction: column;
  gap: 17px;
  margin-bottom: 30px;
}

.resources-list {
  display: flex;
  flex-direction: column;
  gap: 17px;
  margin-bottom: 30px;
}

/* ========================
   TESTIMONIALS / SLIDER
   ======================== */
.testimonials-slider {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 34px;
}
.featured-alumni {
  margin-bottom: 30px;
}
.featured-alumni ul {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

/* =============================
   COMPARE TABLE FOR COURSES
   ============================= */
.course-compare {
  width: 100%;
  background: var(--bg-card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  margin: 30px 0 38px 0;
  font-size: 1rem;
}
.course-compare th,
.course-compare td {
  padding: 16px 13px;
  text-align: left;
  font-family: var(--font-body);
  border-bottom: 1px solid #EEEBE7;
}
.course-compare th {
  background: var(--secondary);
  color: var(--primary);
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: 0.04em;
}
.course-compare tbody tr:last-child td {
  border-bottom: none;
}
.course-compare tbody tr:hover {
  background: #F5F2EA;
}

/* =====================
   CTA (Call to Action)
   ===================== */
.cta {
  background: var(--primary);
  color: var(--on-primary);
  border-radius: 32px;
  padding: 48px 0 38px 0;
  margin: 46px auto 32px auto;
  box-shadow: 0 12px 44px 0 rgba(31,53,91,.09);
}
.cta h2, .cta p {
  color: var(--on-primary);
}
.cta .btn-primary {
  margin-top: 20px;
  background: var(--gold-gradient);
  color: var(--primary);
}

/* =====================
   CONTACT DETAILS
   ===================== */
.contact-details {
  background: var(--bg-card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 32px 24px;
  margin-bottom: 20px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  font-size: 1.08rem;
}
.contact-details img {
  width: 25px; height: 25px;
  margin-right: 10px;
  vertical-align: middle;
  display: inline-block;
}
.contact-details a {
  color: var(--accent);
  text-decoration: underline;
  font-weight: 700;
  transition: color .15s;
}
.contact-details a:hover {
  color: var(--primary);
}
.cta-section {
  background: var(--secondary);
  border-radius: var(--radius);
  padding: 28px 28px 24px 28px;
  box-shadow: 0 4px 18px 0 rgba(245,180,60,0.07);
  color: var(--primary);
  margin-bottom: 24px;
}
.cta-section h2 {
  margin-bottom: 12px;
}

.confirmation-message {
  background: var(--bg-card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 34px 24px;
  margin-bottom: 16px;
}

/* =======================
   BLOG TAGS & FEATURED
   ======================= */
.tags-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 12px 0 22px 0;
}
.tags-cloud span {
  background: var(--accent);
  color: #fff;
  font-family: var(--font-display);
  border-radius: 12px;
  font-size: .95rem;
  padding: 7px 16px;
  font-weight: 600;
  box-shadow: 0 2px 7px 0 rgba(245,180,60, 0.09);
}
.featured-post {
  background: var(--secondary);
  color: var(--primary);
  border-radius: var(--radius);
  padding: 24px 25px;
  margin-top: 18px;
  box-shadow: 0 4px 18px 0 rgba(245,180,60,0.09);
  max-width: 540px;
}
.featured-post h3 { color: var(--primary); }

/* =====================
   FOOTER
   ===================== */
footer {
  background: #191E29;
  color: var(--bg-card);
  padding: 0;
  margin-top: 64px;
}
footer section {
  padding: 40px 0 18px 0;
}
.footer-nav,
.footer-legal-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin: 18px 0 10px 0;
}
.footer-nav a, .footer-legal-nav a {
  color: var(--secondary);
  font-family: var(--font-body);
  font-size: .97rem;
  font-weight: 600;
  padding: 7px 9px;
  border-radius: 7px;
  transition: background .13s, color .13s;
}
.footer-nav a:hover, .footer-legal-nav a:hover {
  background: var(--accent);
  color: var(--primary);
}
.footer-contact {
  display: flex;
  flex-direction: column;
  gap: 7px;
  font-size: .97rem;
  color: #fff;
  margin-top: 10px;
}
.footer-contact img {
  width: 18px;
  height: 18px;
  margin-right: 7px;
  vertical-align: middle;
}
footer .content-wrapper:last-child {
  margin-bottom: 0;
  color: #C7BBAB;
  font-size: .98rem;
  margin-top: 18px;
}
footer img {
  height: 32px;
  margin-bottom: 10px;
  filter: brightness(110%) contrast(170%);
}

/* =====================
   COOKIE CONSENT BANNER
   ===================== */
.cookie-banner {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  justify-content: center;
  background: #fffbe8;
  color: #2D2B2B;
  box-shadow: 0 -2px 16px 0 rgba(31,53,91,.16);
  padding: 18px 22px;
  z-index: 2222;
  gap: 24px;
  font-size: 1rem;
  transition: transform .32s cubic-bezier(.53,0,.23,1), opacity .19s;
}
.cookie-banner button {
  margin-left: 8px;
}
.cookie-banner .cookie-btn {
  padding: 9px 22px;
  border: none;
  border-radius: 32px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: .99rem;
  background: var(--accent);
  color: #fff;
  margin-right: 4px;
  transition: background .13s, color .13s, box-shadow .13s;
  cursor: pointer;
  box-shadow: 0 1px 7px 0 rgba(245,180,60,.09);
}
.cookie-banner .cookie-btn.secondary {
  background: #EFE6D6;
  color: var(--primary);
  border: 1px solid var(--accent);
}
.cookie-banner .cookie-btn.secondary:hover {
  background: var(--secondary);
  color: var(--primary);
}
.cookie-banner .cookie-btn:focus, .cookie-banner .cookie-btn:hover {
  background: #FFD986;
  color: var(--primary);
}
.cookie-banner.hide {
  transform: translateY(100%);
  opacity: 0;
  pointer-events: none;
}

/* Cookie Settings Modal */
.cookie-modal {
  position: fixed;
  left: 50%;
  top: 50%;
  z-index: 3333;
  background: #fff;
  color: #191E29;
  box-shadow: 0 10px 32px 0 rgba(31,53,91,.19);
  border-radius: 24px;
  padding: 38px 32px 32px 32px;
  transform: translate(-50%,-50%) scale(.96);
  min-width: 340px;
  min-height: 210px;
  display: none;
  flex-direction: column;
  gap: 18px;
  animation: cookieModalFadeIn .3s cubic-bezier(.53,0,.23,1);
}
.cookie-modal.active { display: flex; }
@keyframes cookieModalFadeIn {
  from { opacity: 0; transform: translate(-50%,-46%) scale(.9); }
  to { opacity: 1; transform: translate(-50%,-50%) scale(1); }
}
.cookie-modal h3 {
  color: var(--primary);
  margin-bottom: 12px;
}
.cookie-options {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 12px;
}
.cookie-category {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 1.05rem;
  margin-bottom: 6px;
}
.cookie-category input[type='checkbox'] {
  width: 19px; height: 19px;
  accent-color: var(--accent);
}
.cookie-category.essential input {
  pointer-events: none;
  opacity: .5;
}
.cookie-modal .cookie-btn-row {
  display: flex;
  gap: 18px;
  margin-top: 18px;
  align-items: center;
  justify-content: flex-end;
}
.cookie-modal .cookie-btn {
  padding: 10px 24px;
  border-radius: 30px;
}
.cookie-modal .cookie-btn.cancel {
  background: #EFE6D6;
  color: var(--primary);
  border: 1px solid #E8D0BA;
}

@media (max-width: 500px) {
  .cookie-modal {
    min-width: 90vw;
    padding: 26px 10px 19px 10px;
  }
}

/* ===========================
   UTILITIES & MISC
   =========================== */
.text-section {
  display: flex;
  flex-direction: column;
  gap: 18px;
  margin-bottom: 26px;
}
.blog-intro {
  display: flex;
  flex-direction: column;
  gap: 22px;
}

@media (max-width: 1040px) {
  .container { max-width: 94vw; }
}
@media (max-width: 1023px) {
  .main-nav { display: none !important; }
}
@media (max-width: 900px) {
  .features-grid, .courses-list, .testimonials-slider, .card-container, .values-list {
    flex-direction: column;
    gap: 18px;
  }
  .features-grid > li, .courses-list > li, .card, .values-list li, .testimonial-card {
    max-width: 100%;
  }
}
@media (max-width: 768px) {
  .container { padding: 0 10px; }
  .content-wrapper { gap: 24px; margin-bottom: 20px; }
  .section { margin-bottom: 35px; padding: 28px 7px; }
  .hero { padding: 35px 0 28px 0; margin-bottom: 34px; }
  h1 { font-size: 1.6rem; margin-bottom: 16px; }
  h2 { font-size: 1.25rem; margin-bottom: 12px; }
  .cta { border-radius: 18px; padding: 28px 0 22px 0; margin: 26px 0 22px 0; }
  .cta .btn-primary { margin-top: 14px; }
  .testimonials-slider, .features-grid, .courses-list, .values-list {
    flex-direction: column;
    gap: 14px;
  }
  .testimonial-card { padding: 18px 10px; margin-right: 0; margin-bottom: 16px; }
  .card { padding: 18px 10px; }
  .text-image-section { flex-direction: column; gap: 18px; }
  .content-grid { flex-direction: column; gap: 10px; }
  .categories-filter { flex-direction: column; align-items: flex-start; gap: 6px; }
}
@media (max-width: 426px) {
  .hero { border-radius: 0 0 18px 18px; }
  .card, .testimonial-card, .modules-list, .confirmation-message {
    padding: 12px 5px !important;
  }
  .footer-nav, .footer-legal-nav {
    gap: 7px;
    flex-wrap: wrap;
  }
  .footer-contact {
    font-size: .9rem;
  }
  .cta, .section {
    border-radius: 9px !important;
  }
}

/* ===================================
   MICRO-INTERACTIONS & ANIMATIONS
   =================================== */
.btn-primary, .cookie-btn, .categories-filter button {
  transition: background .15s, color .15s, transform .2s, box-shadow .16s;
}
.btn-primary:active,
.cookie-btn:active,
.categories-filter button:active {
  transform: scale(0.97);
}

.card, .courses-list>li, .testimonial-card, .features-grid>li, .values-list li {
  will-change: box-shadow, transform;
}

/* Focus states for accessibility */
a:focus, button:focus {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

/* Hide visually but still accessible to screen readers */
.visually-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  margin: -1px !important;
  padding: 0 !important;
  overflow: hidden !important;
  clip: rect(0 0 0 0) !important;
  border: 0 !important;
}

/* For content separation and adequate spacing */
.section + .section { margin-top: 0px; }

/* Prevent elements overlapping */
.card, .testimonial-card, .courses-list>li, .features-grid>li, .values-list li { margin-bottom: 20px; }

/* ================================================
   END OF CSS  (No forbidden grid or columns)
   ================================================ */
