/* CSS RESET & NORMALIZE */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
html {
  scroll-behavior: smooth;
  font-size: 16px;
}
body {
  font-family: 'Open Sans', Arial, sans-serif;
  color: #183D5D;
  background: #FBFBFD;
  min-height: 100vh;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img {
  max-width: 100%;
  height: auto;
  display: block;
}
a {
  color: #24AADD;
  text-decoration: none;
  transition: color 0.2s;
}
a:hover,
a:focus {
  color: #bfa056;
}
ul, ol {
  margin-left: 1.4em;
}
li + li {
  margin-top: 0.5em;
}

/* BRAND COLORS AND TYPOGRAPHY */
:root {
  --fw-primary: #183D5D;
  --fw-secondary: #24AADD;
  --fw-accent: #F7F7F9;
  --fw-gold: #bfa056;
  --fw-light: #FFFFFF;
  --fw-footer: #152b41;
  --fw-headline: 'Montserrat', Arial, Helvetica, sans-serif;
  --fw-body: 'Open Sans', Arial, sans-serif;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--fw-headline);
  font-weight: 700;
  color: #183D5D;
  letter-spacing: -0.5px;
  margin-bottom: 16px;
}
h1 { font-size: 2.5rem; line-height: 1.1; margin-bottom: 24px; }
h2 { font-size: 2rem; margin-bottom: 20px; }
h3 { font-size: 1.35rem; margin-bottom: 16px; }
h4 { font-size: 1.12rem; margin-bottom: 12px; }
p, ul, ol, li, span, strong { font-family: var(--fw-body); font-size: 1rem; }
p { margin-bottom: 14px; color: #29465a; }

strong { font-weight: 700; color: #183D5D; }

/* CONTAINER */
.container {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  flex-direction: column;
  gap: 0;
}

/* HEADER & NAV */
header {
  background: var(--fw-light);
  border-bottom: 1px solid #f0e9dc;
  box-shadow: 0 2px 8px 0 rgba(31,40,74,0.04);
  position: sticky;
  top: 0;
  z-index: 100;
}
header .container {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 18px;
  justify-content: space-between;
  min-height: 76px;
}
.logo img {
  height: 48px;
  width: auto;
  display: block;
}
.main-nav {
  display: flex;
  align-items: center;
  gap: 28px;
}
.main-nav a {
  font-family: var(--fw-headline);
  font-weight: 600;
  font-size: 1rem;
  color: #183D5D;
  letter-spacing: 0.02em;
  position: relative;
  transition: color 0.2s;
  padding: 4px 0;
}
.main-nav a:after {
  content: '';
  display: block;
  margin: 0 auto;
  width: 0;
  height: 2px;
  background: var(--fw-gold);
  border-radius: 2px;
  transition: width 0.3s;
}
.main-nav a:hover:after,
.main-nav a:focus:after {
  width: 100%;
}
.main-nav a:hover,
.main-nav a:focus {
  color: var(--fw-gold);
  outline: none;
}
.cta-btn {
  display: inline-block;
  font-family: var(--fw-headline);
  font-weight: 700;
  font-size: 1.13rem;
  padding: 12px 36px;
  border: none;
  border-radius: 40px;
  color: #fff;
  background: linear-gradient(90deg, var(--fw-gold) 30%, #f0d79a 100%);
  box-shadow: 0 2px 12px 0 rgba(191,160,86,0.10);
  cursor: pointer;
  letter-spacing: 0.04em;
  text-align: center;
  transition: background 0.2s, box-shadow 0.2s, transform 0.15s;
  margin-left: 16px;
  margin-right: 0;
  text-shadow: 0 1px 2px rgba(24,61,93,0.10);
}
.cta-btn:hover, .cta-btn:focus {
  background: linear-gradient(90deg, #f0d79a 20%, var(--fw-gold) 100%);
  color: #183D5D;
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 4px 20px 0 rgba(191,160,86,0.16);
  text-decoration: none !important;
}

/* MOBILE NAV */
.mobile-menu-toggle {
  display: none;
  background: #fff;
  border: none;
  font-size: 2rem;
  color: #183D5D;
  padding: 8px 16px;
  border-radius: 50%;
  transition: background 0.15s;
  z-index: 120;
}
.mobile-menu-toggle:focus {
  background: #f0e9dc;
  outline: none;
}
.mobile-menu {
  position: fixed;
  inset: 0 0 0 0;
  background: rgba(24,61,93,0.90);
  transform: translateX(100%);
  transition: transform 0.33s cubic-bezier(.55,.09,.68,.53);
  z-index: 300;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  justify-content: flex-start;
  padding-top: 36px;
}
.mobile-menu.open {
  transform: translateX(0);
}
.mobile-menu-close {
  background: none;
  border: none;
  color: #fff;
  font-size: 2.1rem;
  cursor: pointer;
  padding: 18px 24px 18px 18px;
  margin-bottom: 20px;
  transition: color 0.2s, background 0.15s;
}
.mobile-menu-close:hover, .mobile-menu-close:focus {
  color: var(--fw-gold);
  background: rgba(191,160,86,0.12);
  border-radius: 24px;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  width: 100%;
  gap: 18px;
  margin-top: 36px;
  align-items: flex-start;
  padding-left: 40px;
}
.mobile-nav a {
  color: #fff;
  font-family: var(--fw-headline);
  font-weight: 600;
  font-size: 1.21rem;
  padding: 12px 0 12px 8px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  width: 100%;
  transition: color 0.2s, background 0.18s;
  border-radius: 4px;
}
.mobile-nav a:focus, .mobile-nav a:hover {
  background: rgba(191,160,86,0.14);
  color: var(--fw-gold);
  outline: none;
}
/* Hide main desktop nav on mobile */
@media (max-width: 992px) {
  .main-nav, .cta-btn {
    display: none;
  }
  .mobile-menu-toggle {
    display: block;
  }
}
@media (min-width: 993px) {
  .mobile-menu {
    display: none !important;
  }
}

/* LUXURY ACCENTS */
hr {
  border: none;
  border-top: 1px solid #e5d5b1;
  margin: 36px 0;
}

.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 2px 16px 0 rgba(27,48,76,0.05);
  display: flex;
  flex-direction: column;
  gap: 0;
}

.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.text-section {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 14px;
}

.text-image-section {
  display: flex;
  align-items: center;
  gap: 30px;
  flex-wrap: wrap;
}
@media (max-width: 768px) {
  .text-image-section {
    flex-direction: column;
    gap: 22px;
  }
}

.feature-grid, .detailed-course-grid, .instructor-bio-list, .course-list, .article-list {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  align-items: stretch;
  justify-content: flex-start;
}
.feature-grid > div,
.course-list > .course-summary,
.detailed-course-grid > .course-detail,
.instructor-bio-list > .instructor-bio {
  background: var(--fw-accent);
  border-radius: 16px;
  flex: 1 1 270px;
  min-width: 240px;
  max-width: 320px;
  padding: 26px 22px;
  box-shadow: 0 1px 8px 0 rgba(191,160,86,0.07);
  margin-bottom: 20px;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 16px;
  border: 1.5px solid #f3e8c8;
  transition: box-shadow 0.23s;
}
.feature-grid > div:hover,
.course-list > .course-summary:hover,
.detailed-course-grid > .course-detail:hover,
.instructor-bio-list > .instructor-bio:hover {
  box-shadow: 0 8px 24px 0 rgba(191,160,86,0.17);
  border-color: var(--fw-gold);
  z-index: 2;
  transform: translateY(-4px) scale(1.012);
}

.course-summary .course-price,
.course-detail span {
  display: block;
  font-size: 1.1rem;
  color: var(--fw-gold);
  font-weight: 700;
  margin-top: 2px;
  margin-bottom: 12px;
}
.enroll-cta {
  display: inline-block;
  background: none;
  border: 2px solid var(--fw-gold);
  border-radius: 40px;
  color: #183D5D;
  font-family: var(--fw-headline);
  font-weight: 600;
  font-size: 1rem;
  padding: 9px 22px;
  transition: all 0.22s;
  margin-top: 2px;
}
.enroll-cta:hover, .enroll-cta:focus {
  background: var(--fw-gold);
  color: #fff;
  border-color: var(--fw-gold);
  outline: none;
}

/* Testimonials Styles */
.testimonial-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
  background: #f6f6fa;
  border: 1.5px solid #e9e3d3;
  box-shadow: 0 4px 16px 0 rgba(24,61,93,0.05);
  border-radius: 16px;
  padding: 26px 28px;
  margin-bottom: 20px;
  font-size: 1.07rem;
  max-width: 630px;
  color: #1e2836;
  transition: box-shadow 0.22s;
}
.testimonial-card:hover {
  box-shadow: 0 8px 28px 0 rgba(191,160,86,0.13);
  border-color: var(--fw-gold);
}
.testimonial-card strong {
  color: var(--fw-gold);
  font-size: 1.1em;
}
.testimonial-card span {
  color: #7a6b4c;
  font-size: 0.99em;
  margin-left: 8px;
}
.testimonial-card p {
  color: #29465a;
  font-style: italic;
}

/* Card Layouts */
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  margin-bottom: 20px;
  position: relative;
  background: #fff;
  border-radius: 15px;
  box-shadow: 0 2px 12px 0 rgba(31,40,74,0.07);
  padding: 24px 22px;
  border: 1.5px solid #f3e8c8;
}

.content-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: space-between;
}

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

/* Article List & Blog */
.article-list {
  width: 100%;
  flex-direction: column;
  gap: 20px;
  margin-bottom: 28px;
}
.article-list li {
  display: flex;
  align-items: center;
  gap: 14px;
}
.article-list .tag {
  font-size: 0.93em;
  background: #24AADD;
  color: #fff;
  padding: 3px 12px 2px 12px;
  border-radius: 8px;
  margin-left: 10px;
}
.featured-article {
  background: #f7f1e2;
  padding: 24px 20px;
  border-radius: 16px;
  border-left: 4px solid var(--fw-gold);
  margin-top: 6px;
  box-shadow: 0 2px 8px 0 rgba(191,160,86,0.06);
}
.newsletter-signup {
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: flex-start;
}
.comment-cta {
  margin-top: 22px;
  color: #25435f;
}

/* Footer */
footer {
  background: var(--fw-footer);
  color: #fff;
  padding: 48px 0 24px 0;
  border-top: 2.5px solid var(--fw-gold);
}
footer .container {
  flex-direction: column;
  align-items: center;
  gap: 24px;
}
.footer-logo img {
  height: 54px;
  width: auto;
}
.footer-nav {
  display: flex;
  flex-direction: row;
  gap: 20px;
  margin-bottom: 10px;
}
.footer-nav a {
  color: #fff9ed;
  font-family: var(--fw-headline);
  font-weight: 600;
  letter-spacing: 0.02em;
  padding: 6px 8px;
  border-radius: 6px;
  transition: background 0.18s, color 0.18s;
}
.footer-nav a:hover, .footer-nav a:focus {
  background: var(--fw-gold);
  color: #183D5D;
}
footer p {
  font-size: 0.97rem;
  color: #eae2ce;
}

/* Policy/Legal Pages */
main section h1, main section h2, main section h3 {
  color: var(--fw-gold);
}
main section h1 {
  font-size: 2.1rem;
}
main section h2 {
  font-size: 1.35rem;
}

/* THANK YOU PAGE */
.cta-block {
  background: #fff8ea;
  border: 2px solid var(--fw-gold);
  border-radius: 19px;
  box-shadow: 0 3px 22px 0 rgba(191,160,86,0.08);
  padding: 42px 32px;
  text-align: center;
  margin: 0 auto;
  max-width: 570px;
}
.cta-block h1 {
  color: var(--fw-gold);
  font-size: 2rem;
  margin-bottom: 20px;
}
.cta-block a.cta-btn {
  font-size: 1.13rem;
  margin: 22px auto 0 auto;
  display: block;
}

/* Course/Instructor Pages */
.instructor-bio-list, .course-list, .detailed-course-grid {
  gap: 24px;
}
.instructor-bio {
  border-left: 3px solid var(--fw-gold);
  background: #f2f7fb;
  box-shadow: 0 3px 17px 0 rgba(24,61,93,0.07);
  border-radius: 13px;
  padding: 24px 18px 20px 24px;
  margin-bottom: 20px;
  transition: border-color 0.22s, box-shadow 0.22s;
}
.instructor-bio:hover {
  border-color: #e0b43c;
  box-shadow: 0 6px 28px 0 rgba(191,160,86,0.14);
}

/* SPACING UTILITIES */
.mb-24 { margin-bottom: 24px !important; }
.mt-24 { margin-top: 24px !important; }
.pt-14 { padding-top: 14px !important; }
.pb-24 { padding-bottom: 24px !important; }

/* Mobile Responsive */
@media (max-width: 960px) {
  .container {
    max-width: 96vw;
    padding: 0 10px;
  }
  .feature-grid, .course-list, .detailed-course-grid, .instructor-bio-list {
    flex-wrap: wrap;
    justify-content: flex-start;
    gap: 18px;
  }
  .feature-grid > div,
  .course-list > .course-summary,
  .detailed-course-grid > .course-detail,
  .instructor-bio-list > .instructor-bio {
    flex-basis: 95%;
    min-width: 180px;
  }
}
@media (max-width: 768px) {
  header .container {
    padding: 0 7px;
    gap: 10px;
  }
  .section {
    padding: 22px 4px;
    margin-bottom: 34px;
    border-radius: 10px;
  }
  .feature-grid > div,
  .course-list > .course-summary,
  .detailed-course-grid > .course-detail,
  .instructor-bio-list > .instructor-bio {
    min-width: 120px;
    padding: 18px 9px;
    font-size: 0.97rem;
  }
  h1 {
    font-size: 1.65rem;
  }
  h2 {
    font-size: 1.21rem;
  }
  h3 {
    font-size: 1.07rem;
  }
  .cta-btn {
    font-size: 1rem;
    padding: 10px 24px;
    margin-left: 0;
  }
  .footer-nav {
    flex-direction: column;
    gap: 5px;
    align-items: center;
  }
  .footer-logo img {
    height: 38px;
  }
  .testimonial-card {
    padding: 18px 10px;
    margin-bottom: 18px;
  }
  .cta-block {
    padding: 18px 7px;
    font-size: 0.97rem;
  }
}
@media (max-width: 480px) {
  h1 {
    font-size: 1.25rem;
    margin-bottom: 12px;
  }
  h2 {
    font-size: 1.01rem;
  }
  .cta-btn,
  .enroll-cta {
    font-size: 0.99rem;
    padding: 9px 14px;
  }
  footer .container {
    padding: 0 4px;
  }
  .footer-logo img {
    height: 32px;
  }
}

/* Animations */
.cta-btn, .enroll-cta, .main-nav a, .footer-nav a, .article-list li a, .card, .testimonial-card {
  transition: box-shadow 0.2s, background 0.17s, color 0.16s, transform 0.15s;
}
.section, .content-wrapper, .feature-grid > div, .testimonial-card, .card, .course-summary, .detailed-course-grid > .course-detail, .instructor-bio {
  transition: box-shadow 0.18s, border-color 0.18s, transform 0.16s;
}

/* Cookie Consent Banner Styles */
.cookie-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 5000;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  border-top: 2px solid var(--fw-gold);
  box-shadow: 0 -4px 28px 0 rgba(24,61,93,0.12);
  padding: 28px 16px 24px 16px;
  animation: cookie-slide-in 0.6s cubic-bezier(.36,1.01,.39,1) 0s 1;
  gap: 18px;
}
@keyframes cookie-slide-in {
  from { transform: translateY(100%); opacity: 0; }
  to   { transform: translateY(0); opacity: 1; }
}
.cookie-banner__content {
  font-size: 1.05rem;
  color: #263e55;
  flex: 1 1 300px;
}
.cookie-banner .cookie-actions {
  display: flex;
  gap: 16px;
  margin-left: 18px;
}
.cookie-banner button {
  font-family: var(--fw-headline);
  font-size: 1rem;
  border: none;
  border-radius: 24px;
  padding: 9px 24px;
  margin: 0 2px;
  cursor: pointer;
  transition: background 0.22s, color 0.18s, box-shadow 0.18s;
}
.cookie-banner .accept-btn {
  background: var(--fw-gold);
  color: #fff;
  box-shadow: 0 1px 4px 0 rgba(191,160,86,0.08);
}
.cookie-banner .accept-btn:hover {
  background: #d4b04c;
}
.cookie-banner .reject-btn {
  background: #fff8ea;
  color: #bfa056;
  border: 1.5px solid var(--fw-gold);
}
.cookie-banner .reject-btn:hover {
  background: #f7e5c6;
}
.cookie-banner .settings-btn {
  background: none;
  color: #183D5D;
  border: 1.5px solid #e1e0da;
}
.cookie-banner .settings-btn:hover {
  background: #f6f5f2;
}

/* Cookie Modal */
.cookie-modal-overlay {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(34,38,48,0.70);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
}
.cookie-modal {
  background: #fffefb;
  border-radius: 18px;
  width: 95vw;
  max-width: 430px;
  box-shadow: 0 9px 32px 0 rgba(24,61,93,0.14);
  padding: 38px 34px 26px 34px;
  position: relative;
  animation: cookie-modal-in 0.4s cubic-bezier(.23,1.04,.53,1) 0s 1;
  display: flex;
  flex-direction: column;
  gap: 21px;
}
@keyframes cookie-modal-in {
  from { opacity: 0; transform: scale(0.86) translateY(80px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}
.cookie-modal h2 {
  color: var(--fw-gold);
  font-size: 1.26rem;
  margin-bottom: 6px;
}
.cookie-modal .cookie-category {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 13px;
}
.cookie-modal .cookie-category label {
  font-size: 1.04rem;
  color: #25435f;
  font-family: var(--fw-headline);
  font-weight: 600;
  margin-left: 6px;
}
.cookie-modal .cookie-category input[type='checkbox'] {
  accent-color: var(--fw-gold);
  width: 18px; height: 18px;
}
.cookie-modal .cookie-essential {
  color: #bfa056;
  font-size: 1.05rem;
  font-style: italic;
  margin-left: 7px;
}
.cookie-modal .modal-actions {
  display: flex;
  align-items: center;
  gap: 17px;
  margin-top: 6px;
}
.cookie-modal .save-btn {
  background: var(--fw-secondary);
  color: #fff;
  border: none;
  border-radius: 22px;
  padding: 10px 30px;
  font-family: var(--fw-headline);
  font-weight: 700;
  transition: background 0.18s, color 0.16s;
}
.cookie-modal .save-btn:hover {
  background: #bfa056;
  color: #fff;
}
.cookie-modal .close-modal-btn {
  position: absolute;
  top: 12px;
  right: 14px;
  background: none;
  border: none;
  font-size: 1.35rem;
  color: #29465a;
  cursor: pointer;
  transition: color 0.17s;
}
.cookie-modal .close-modal-btn:hover {
  color: var(--fw-gold);
}

/* Misc */
::-webkit-input-placeholder { color: #b7b6bb; }
::-moz-placeholder { color: #b7b6bb; }
:-ms-input-placeholder { color: #b7b6bb; }
::placeholder { color: #b7b6bb; }

/* Accessibility: Ensure readable text for testimonials and reviews */
.testimonial-card {
  background: #f6f6fa;
  color: #163041;
}
.testimonial-card strong,
.testimonial-card span,
.testimonial-card p {
  color: #163041;
}

/* Custom Scrollbar */
body::-webkit-scrollbar {
  width: 10px;
}
body::-webkit-scrollbar-thumb {
  background: #e8d7bb;
  border-radius: 7px;
}

@media (max-width: 400px) {
  .cookie-modal { padding: 14px 7px; }
}
