/* =========================
   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;
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
  font-size: 16px;
}
body {
  background: #fff;
  color: #28313E;
  font-family: 'Georgia', 'Times New Roman', Times, serif;
  font-size: 1rem;
  line-height: 1.7;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img {
  max-width: 100%;
  height: auto;
  display: block;
}
a {
  color: #17508C;
  text-decoration: underline;
  transition: color 0.18s cubic-bezier(0.4,0,0.2,1);
}
a:hover,
a:focus {
  color: #63A375;
  text-decoration: none;
}
ul, ol {
  margin-left: 24px;
  margin-bottom: 16px;
}
li {
  margin-bottom: 10px;
}
h1, h2, h3, h4, h5, h6 {
  font-family: 'Playfair Display', 'Georgia', serif;
  color: #17508C;
  font-weight: 700;
  letter-spacing: 0.01em;
  margin-bottom: 18px;
  line-height: 1.15;
}
h1 {
  font-size: 2.25rem;
  margin-bottom: 24px;
}
h2 {
  font-size: 1.625rem;
  margin-bottom: 22px;
}
h3 {
  font-size: 1.25rem;
}
strong {
  font-weight: 700;
  color: #28313E;
}
p {
  margin-bottom: 16px;
  font-size: 1rem;
}
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: #fff;
}
.container {
  max-width: 1144px;
  margin: 0 auto;
  padding: 0 16px;
  width: 100%;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
}
.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 18px;
  align-items: flex-start;
}
/* ========================
   BRANDING & COLORS
======================== */
:root {
  --primary: #17508C;
  --primary-dark: #133f70;
  --primary-light: #dee6ef;
  --secondary: #63A375;
  --accent: #F7ECE1;
  --neutral-bg: #FAFAF7;
  --surface: #fff;
  --border: #e3e6ef;
  --text: #28313E;
  --text-light: #7294bf;
  --shadow: rgba(22,45,68,0.07);
}
/* ========================
   HEADER & NAVIGATION
======================== */
header {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  position: relative;
  z-index: 100;
}
header .container {
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  padding: 15px 16px 15px 16px;
  gap: 18px;
}
.logo img {
  height: 42px;
  width: auto;
  display: block;
}
.main-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 24px;
}
.main-nav a {
  font-family: 'Georgia', 'Times New Roman', Times, serif;
  font-size: 1.08rem;
  color: var(--text);
  text-decoration: none;
  padding: 5px 4px;
  border-radius: 3px;
  transition: background 0.18s, color 0.18s;
}
.main-nav a.btn-primary {
  background: var(--primary);
  color: #fff !important;
  padding: 10px 24px;
  font-family: 'Playfair Display', 'Georgia', serif;
  font-weight: 700;
  font-size: 1.07rem;
  border-radius: 24px;
  box-shadow: 0 2px 8px var(--shadow);
  margin-left: 18px;
  border: none;
  text-decoration: none;
  transition: background 0.18s;
}
.main-nav a.btn-primary:hover,
.main-nav a.btn-primary:focus {
  background: var(--secondary);
  color: #fff;
}
.main-nav a:hover,
.main-nav a:focus {
  background: var(--accent);
  color: var(--secondary);
}
.mobile-menu-toggle {
  background: var(--accent);
  border: none;
  color: var(--primary-dark);
  font-size: 2rem;
  border-radius: 8px;
  padding: 6px 14px;
  display: none;
  align-items: center;
  justify-content: center;
  transition: background 0.14s, color 0.14s;
  cursor: pointer;
  margin-left: 12px;
}
.mobile-menu-toggle:focus,
.mobile-menu-toggle:hover {
  background: var(--primary);
  color: #fff;
}
/* ======================
   MOBILE MENU OVERLAY
====================== */
.mobile-menu {
  position: fixed;
  top: 0;
  right: 0;
  width: 92vw;
  max-width: 340px;
  height: 100vh;
  background: var(--surface);
  box-shadow: -2px 0 20px 1px var(--shadow);
  z-index: 1500;
  transform: translateX(105%);
  transition: transform 0.36s cubic-bezier(0.65,0,0.35,1);
  display: flex;
  flex-direction: column;
  padding: 40px 26px 20px 26px;
  gap: 24px;
}
.mobile-menu.open {
  transform: translateX(0);
}
.mobile-menu-close {
  background: none;
  border: none;
  color: var(--primary);
  font-size: 2.1rem;
  align-self: flex-end;
  margin-bottom: 30px;
  cursor: pointer;
  transition: color 0.2s;
}
.mobile-menu-close:hover,
.mobile-menu-close:focus {
  color: var(--secondary);
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 22px;
  align-items: flex-start;
}
.mobile-nav a {
  font-size: 1.16rem;
  color: var(--primary);
  padding: 11px 0 11px 0;
  font-family: 'Playfair Display', 'Georgia', serif;
  font-weight: 700;
  text-decoration: none;
  border-bottom: 1px solid var(--border);
  width: 100%;
  transition: color 0.18s, background 0.14s;
}
.mobile-nav a:hover,
.mobile-nav a:focus {
  background: var(--accent);
  color: var(--secondary);
}
@media (max-width: 1020px) {
  .main-nav {
    gap: 18px;
  }
}
@media (max-width: 900px) {
  .main-nav {
    display: none;
  }
  .mobile-menu-toggle {
    display: flex;
  }
}
@media (max-width: 600px) {
  header .container {
    gap: 6px;
    padding: 8px 8px 8px 8px;
  }
  .logo img {
    height: 35px;
  }
}
/* =======================
   HERO/BANNER SECTION
======================= */
.hero {
  background: linear-gradient(140deg, var(--accent) 65%, #fff 100%);
  padding: 60px 0 56px 0;
}
.hero .container {
  align-items: flex-start;
}
.hero .content-wrapper {
  align-items: flex-start;
  gap: 22px;
}
.hero h1 {
  color: var(--primary);
  font-size: 2.3rem;
}
.hero p {
  font-size: 1.13rem;
  color: #3a455a;
  max-width: 680px;
  margin-bottom: 6px;
}
@media (max-width: 900px) {
  .hero {
    padding: 45px 0 32px 0;
  }
  .hero .content-wrapper {
    gap: 15px;
  }
  .hero h1 {
    font-size: 1.7rem;
  }
}
/* =======================
   BUTTONS
======================= */
.btn-primary,
.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: none;
  outline: none;
  padding: 12px 34px;
  font-family: 'Playfair Display', 'Georgia', serif;
  font-weight: 700;
  font-size: 1.11rem;
  border-radius: 24px;
  cursor: pointer;
  transition: background 0.2s, color 0.18s, box-shadow 0.16s;
  box-shadow: 0 2px 6px var(--shadow);
  margin-top: 10px;
  margin-bottom: 6px;
  text-decoration: none;
}
.btn-primary {
  background: var(--primary);
  color: #fff;
  box-shadow: 0 3px 18px var(--shadow);
}
.btn-primary:hover,
.btn-primary:focus {
  background: var(--secondary);
  color: #fff;
}
.btn-secondary {
  background: var(--accent);
  color: var(--primary);
  border: 1px solid var(--primary);
}
.btn-secondary:hover,
.btn-secondary:focus {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}
.read-more {
  font-size: 0.98rem;
  font-family: 'Playfair Display', 'Georgia', serif;
  color: var(--secondary);
  border-bottom: 1px solid var(--secondary);
  text-decoration: none;
  margin-top: 8px;
  transition: color 0.14s, border-color 0.12s;
}
.read-more:hover,
.read-more:focus {
  color: var(--primary);
  border-color: var(--primary);
}
/* ========================
   FLEX CARDS/SECTIONS
======================== */
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 24px;
}
.card {
  background: var(--surface);
  border-radius: 18px;
  box-shadow: 0px 2px 12px var(--shadow);
  margin-bottom: 20px;
  position: relative;
  filter: none;
  display: flex;
  flex-direction: column;
  padding: 28px 22px;
  min-width: 270px;
  max-width: 390px;
}
.card:hover,
.card:focus-within {
  box-shadow: 0 6px 26px var(--shadow);
}
.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;
  margin-bottom: 28px;
}
@media (max-width: 768px) {
  .text-image-section {
    flex-direction: column;
    gap: 18px;
  }
}
.testimonial-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
  padding: 20px 28px;
  margin-bottom: 20px;
  background: #f7f9fc;
  border-radius: 12px;
  border-left: 4px solid var(--primary);
  box-shadow: 0 2px 10px var(--shadow);
  transition: box-shadow 0.17s, border-color 0.22s;
}
.testimonial-card:hover,
.testimonial-card:focus-within {
  border-left-color: var(--secondary);
  box-shadow: 0 4px 18px var(--shadow);
}
.testimonial-card p {
  font-size: 1.08rem;
  color: #253552;
  margin-bottom: 6px;
  quotes: "\201E" "\201C";
}
.testimonial-card strong {
  color: var(--primary);
}
.testimonial-card span:last-child {
  color: #ffb700;
  font-size: 1.18rem;
  margin-left: 12px;
  letter-spacing: 0.05em;
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}
.feature-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 16px;
}
.feature-grid > div {
  background: #f7f9fc;
  border-radius: 12px;
  padding: 22px 22px 26px 22px;
  min-width: 240px;
  flex: 1 1 220px;
  box-shadow: 0 1px 10px var(--shadow);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 12px;
  border-left: 4px solid var(--primary-light);
  transition: border-color 0.22s, box-shadow 0.15s;
}
.feature-grid > div:hover,
.feature-grid > div:focus-within {
  border-left: 4px solid var(--secondary);
  box-shadow: 0 7px 20px var(--shadow);
}
.feature-grid img {
  height: 38px;
}
.course-preview {
  display: flex;
  flex-wrap: wrap;
  gap: 36px;
  margin-bottom: 12px;
}
.course-preview > div {
  background: var(--neutral-bg);
  border-radius: 11px;
  flex: 1 1 240px;
  padding: 18px 22px;
  box-shadow: 0 1px 8px var(--shadow);
  border-left: 4px solid var(--secondary);
  margin-bottom: 10px;
  min-width: 250px;
}
.course-list {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: flex-start;
  margin-bottom: 18px;
}
.course-list > div {
  flex: 1 1 210px;
  background: var(--accent);
  border-radius: 13px;
  padding: 23px 24px 28px 22px;
  margin-bottom: 12px;
  min-width: 230px;
  box-shadow: 0 1px 10px var(--shadow);
  border-bottom: 3px solid var(--secondary);
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.course-list > div:hover {
  box-shadow: 0 4px 22px var(--shadow);
}
.course-price {
  font-family: 'Playfair Display', 'Georgia', serif;
  color: var(--primary);
  font-size: 1.19rem;
  font-weight: 700;
  margin-top: 12px;
}
.blog-list {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-top: 10px;
  margin-bottom: 18px;
}
.blog-list article {
  background: var(--neutral-bg);
  padding: 18px 19px 22px 19px;
  border-radius: 11px;
  box-shadow: 0 1px 8px var(--shadow);
  min-width: 240px;
  flex: 1 1 270px;
  display: flex;
  flex-direction: column;
  margin-bottom: 8px;
  transition: box-shadow 0.19s;
}
.blog-list article:hover {
  box-shadow: 0 4px 18px var(--shadow);
}
@media (max-width: 1020px) {
  .feature-grid {
    gap: 16px;
  }
  .card-container, .content-grid, .blog-list, .course-list {
    gap: 14px;
  }
}
@media (max-width: 800px) {
  .feature-grid,
  .card-container,
  .content-grid,
  .blog-list,
  .course-list,
  .course-preview {
    flex-direction: column;
    gap: 12px;
  }
  .feature-grid > div,
  .card,
  .blog-list article,
  .course-list > div,
  .course-preview > div {
    min-width: 0;
    width: 100%;
    max-width: none;
    padding: 16px 15px;
  }
  .card {
    padding: 18px 10px;
  }
  .testimonial-card,
  .feature-grid > div,
  .course-preview > div {
    padding: 14px 10px 16px 15px;
  }
}
@media (max-width: 600px) {
  .section, section {
    padding: 20px 5px;
    margin-bottom: 38px;
  }
}
/* =========================
   ADDITIONAL COMPONENTS
========================= */
.contact-details {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 18px;
  margin-left: 0;
  padding-left: 0;
}
.contact-details img {
  width: 22px;
  vertical-align: middle;
  margin-right: 10px;
  filter: grayscale(90%);
  opacity: 0.8;
}
.guidance-notes {
  background: var(--accent);
  color: var(--text);
  border-left: 3px solid var(--primary);
  border-radius: 5px;
  padding: 12px 16px;
  font-size: 1rem;
}
/* ===================
   FOOTER
=================== */
footer {
  background: #fafafd;
  border-top: 1px solid var(--border);
  padding: 36px 0 24px 0;
}
footer .container {
  flex-direction: row;
  justify-content: space-between;
  align-items: flex-start;
  gap: 36px;
}
.footer-logo img {
  height: 39px;
  margin-bottom: 8px;
}
.footer-nav {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.footer-nav a {
  color: var(--primary);
  text-decoration: none;
  font-size: 1rem;
  font-family: 'Georgia', serif;
  letter-spacing: 0.01em;
  transition: color 0.15s;
}
.footer-nav a:hover,
.footer-nav a:focus {
  color: var(--secondary);
}
.footer-contact {
  font-size: 1rem;
  color: #28313E;
  line-height: 1.6;
  margin-top: 8px;
}
.footer-contact strong {
  color: var(--primary);
}
@media (max-width: 900px) {
  footer .container {
    flex-direction: column;
    gap: 22px;
    align-items: flex-start;
    padding: 0 6px;
  }
  .footer-logo img {
    height: 33px;
  }
}
/* =========================
   COOKIE CONSENT BANNER
========================= */
.cookie-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100vw;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 34px;
  background: #f4f6fa;
  border-top: 1px solid var(--border);
  box-shadow: 0 -3px 18px var(--shadow);
  padding: 18px 10vw 18px 10vw;
  z-index: 3000;
  font-size: 1rem;
  transition: transform 0.5s cubic-bezier(0.7,0,0.3,1), opacity 0.3s;
}
.cookie-banner.hide {
  transform: translateY(100%);
  opacity: 0;
  pointer-events: none;
}
.cookie-banner__text {
  flex: 1 1 0px;
  color: var(--text);
}
.cookie-banner__actions {
  display: flex;
  flex-direction: row;
  gap: 14px;
}
.cookie-banner button {
  min-width: 52px;
  padding: 8px 22px;
  border: none;
  border-radius: 20px;
  font-family: 'Playfair Display', 'Georgia', serif;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s, color 0.15s, border 0.13s;
  box-shadow: 0 1px 8px var(--shadow);
}
.cookie-banner__accept {
  background: var(--secondary);
  color: #fff;
}
.cookie-banner__accept:hover {
  background: var(--primary);
}
.cookie-banner__reject {
  background: #eee2d6;
  color: var(--primary);
  border: 1px solid var(--primary);
}
.cookie-banner__reject:hover {
  background: #fff2eb;
  color: var(--secondary);
  border-color: var(--secondary);
}
.cookie-banner__settings {
  background: var(--accent);
  color: var(--primary);
  border: 1px solid var(--primary);
}
.cookie-banner__settings:hover {
  background: #fff;
  color: var(--secondary);
  border-color: var(--secondary);
}
@media (max-width: 700px) {
  .cookie-banner {
    flex-direction: column;
    gap: 18px;
    align-items: flex-start;
    padding: 11px 10px 13px 10px;
    font-size: 0.97rem;
  }
  .cookie-banner__actions {
    gap: 8px;
  }
}
/* =========================
   COOKIE PREFERENCES MODAL
========================= */
.cookie-modal {
  position: fixed;
  left: 0; top: 0; right: 0; bottom: 0;
  z-index: 4000;
  background: rgba(38,49,62,0.16);
  display: none;
  align-items: center;
  justify-content: center;
}
.cookie-modal.open {
  display: flex;
  animation: cookieModalFadeIn 0.3s cubic-bezier(.4,0,.2,1);
}
@keyframes cookieModalFadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}
.cookie-modal__window {
  background: #fff;
  border-radius: 20px;
  box-shadow: 0 4px 24px var(--shadow);
  min-width: 280px;
  max-width: 96vw;
  padding: 38px 34px 32px 34px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  position: relative;
}
.cookie-modal__close {
  position: absolute;
  top: 12px; right: 18px;
  background: none;
  border: none;
  color: var(--primary);
  font-size: 2rem;
  cursor: pointer;
  transition: color 0.15s;
}
.cookie-modal__close:hover { color: var(--secondary); }
.cookie-modal__title {
  font-size: 1.4rem;
  color: var(--primary);
  font-family: 'Playfair Display', 'Georgia', serif;
  font-weight: 700;
  margin-bottom: 12px;
}
.cookie-modal__category {
  display: flex;
  align-items: center;
  gap: 15px;
  font-size: 1.08rem;
  margin-bottom: 6px;
}
.cookie-modal__category input[type="checkbox"] {
  width: 22px;
  height: 22px;
  accent-color: var(--secondary);
}
.cookie-modal__category input[disabled] {
  opacity: 0.7;
}
.cookie-modal__desc {
  font-size: 1rem;
  color: #464646;
  margin-left: 2px;
  margin-bottom: 15px;
}
.cookie-modal__footer {
  display: flex;
  flex-direction: row;
  gap: 18px;
  margin-top: 12px;
}
.cookie-modal__save {
  background: var(--primary);
  color: #fff;
  border-radius: 18px;
  padding: 8px 24px;
  border: none;
  font-family: inherit;
  font-size: 1.04rem;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.18s;
}
.cookie-modal__save:hover {
  background: var(--secondary);
}
@media (max-width: 440px) {
  .cookie-modal__window {
    padding: 18px 6px 22px 12px;
    min-width: unset;
  }
}
/* ===============================
   MICRO-INTERACTIONS / TRANSITIONS
=============================== */
.card, .feature-grid > div, .testimonial-card, .course-list > div, .blog-list article {
  transition: box-shadow 0.19s, border-color 0.18s, transform 0.11s;
}
.card:hover,
.feature-grid > div:hover,
.testimonial-card:hover,
.course-list > div:hover,
.blog-list article:hover {
  transform: translateY(-4px) scale(1.012);
}
.btn-primary, .btn-secondary {
  transition: background 0.19s, color 0.17s;
}
/* =============================
   MISC UTILITY CLASSES/SUPPORT
============================= */
.mt-1 { margin-top: 8px; }
.mt-2 { margin-top: 16px; }
.mb-1 { margin-bottom: 8px; }
.mb-2 { margin-bottom: 16px; }
.hide { display: none !important; }
.text-center { text-align: center; }
.text-right { text-align: right; }
.w-100 { width: 100%; }
/* ===============
   TYPO DESIGN
================ */
.display-font { font-family: 'Playfair Display', 'Georgia', serif; }
.body-font { font-family: 'Georgia', serif; }
.text-muted { color: #8192ad; }
/* =============================
   SCROLLBAR TWEAK for Elegance
============================= */
::-webkit-scrollbar {
  width: 9px;
  background: #f6f6f2;
  border-radius: 5px;
}
::-webkit-scrollbar-thumb {
  background: #e8e8e4;
  border-radius: 5px;
}
::-webkit-scrollbar-thumb:hover {
  background: #ccc;
}
/* ================================
   PRINT/ACCESSIBILITY CLEANUP
================================ */
@media print {
  header, nav, footer, .cookie-banner, .mobile-menu, .mobile-menu-toggle {
    display: none !important;
  }
  body { background: #fff; color: #000; }
}
/* ================================
     FINAL MEDIA QUERIES
================================ */
@media (max-width: 440px) {
  h1 { font-size: 1.18rem; }
  h2 { font-size: 1.04rem; }
  .btn-primary, .btn-secondary { font-size: 0.98rem; padding: 11px 8px; }
}
