/* ------------------------------
   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%;
  vertical-align: baseline;
  box-sizing: border-box;
}
html {
  height: 100%;
  font-size: 16px;
  scroll-behavior: smooth;
  background: #fff;
}
body {
  min-height: 100vh;
  font-family: 'Open Sans', Arial, Helvetica, sans-serif;
  color: #21345F;
  background: #F9F7F2;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
}
*, *:before, *:after {
  box-sizing: inherit;
}
ul, ol {
  list-style: none;
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; height: auto; border: 0; }
button {
  font: inherit;
  color: inherit;
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
}

/* ------------------------------
   FONT IMPORTS
------------------------------ */
@import url('https://fonts.googleapis.com/css?family=Montserrat:700,800,900&display=swap');
@import url('https://fonts.googleapis.com/css?family=Open+Sans:400,600,700&display=swap');

:root {
  --primary: #21345F;
  --secondary: #F5B24B;
  --accent: #F9F7F2;
  --text-dark: #21345F;
  --text-light: #fff;
  --gray: #F4F5F7;
  --shadow: 0 4px 16px 0 rgba(33, 52, 95, 0.10);
  --radius: 14px;
  --radius-sm: 8px;
  --spacing: 20px;
  --font-display: 'Montserrat', Arial, Helvetica, sans-serif;
  --font-body: 'Open Sans', Arial, Helvetica, sans-serif;
}

/* ------------------------------
   CONTAINER & SPACING
------------------------------ */
.container {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 20px;
}

.section {
  margin-bottom: 60px;
  padding: 40px 20px;
}
main > section:first-child { margin-top: 36px; }
main > section {
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.content-wrapper {
  max-width: 920px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 32px;
}

/* ---- Common Flex Layouts ---- */
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  margin-bottom: 20px;
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow);
  background: #fff;
  position: relative;
}
.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;
}

/* Feature grid in homepage & courses */
.feature-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: flex-start;
}
.feature-item, .service-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  min-width: 240px;
  flex: 1 1 260px;
  background: var(--accent);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 28px 24px 24px 24px;
  margin-bottom: 20px;
  transition: box-shadow .18s cubic-bezier(.47,1.64,.41,.8),
              transform .18s cubic-bezier(.47,1.64,.41,.8);
}
.feature-item:hover, .service-item:hover {
  box-shadow: 0 8px 32px 0 rgba(245,178,75,0.19), 0 4px 24px 0 rgba(33,52,95,0.11);
  transform: translateY(-3px) scale(1.03);
}
.feature-item img, .service-item img {
  width: 44px;
  height: 44px;
  margin-bottom: 10px;
}

.service-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: flex-start;
}
.service-item {
  background: #fff;
  border: 2px solid var(--secondary);
  color: var(--primary);
}

.article-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 20px;
}
.article-item {
  background: var(--accent);
  border-radius: var(--radius-sm);
  padding: 20px 20px 18px 20px;
  box-shadow: var(--shadow);
  flex: 1 1 270px;
  min-width: 210px;
  margin-bottom: 20px;
  transition: box-shadow .18s, transform .18s;
}
.article-item:hover {
  box-shadow: 0 8px 32px 0 rgba(245,178,75,0.13), 0 4px 12px 0 rgba(33,52,95,0.09);
  transform: translateY(-2px) scale(1.02);
}
.event-list {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.event-item {
  flex: 1 1 290px;
  background: var(--accent);
  padding: 20px 20px;
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow);
  margin-bottom: 20px;
  transition: box-shadow .18s, transform .18s;
}
.event-item:hover {
  box-shadow: 0 8px 32px 0 rgba(33,52,95,0.12), 0 4px 14px 0 rgba(33,52,95,0.10);
  transform: translateY(-2px);
}

/* Testimonial cards */
.testimonial-slider {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.testimonial-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
  background: #fff;
  border-left: 8px solid var(--secondary);
  box-shadow: var(--shadow);
  border-radius: var(--radius);
  padding: 20px 32px 20px 24px;
  min-width: 270px;
  margin-bottom: 20px;
  color: var(--primary);
  font-size: 1.1rem;
  line-height: 1.6;
}
.testimonial-card .rating-stars {
  color: var(--secondary);
  font-size: 1.2em;
  font-family: var(--font-display);
}

/* Visual hierarchy for headers */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 900;
  color: var(--primary);
  margin-bottom: 8px;
  letter-spacing: -.015em;
}
h1 { font-size: 2.6rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.25rem; }
h4 { font-size: 1.1rem; }
p, li, dd {
  font-family: var(--font-body);
  color: var(--primary);
  font-size: 1rem;
  line-height: 1.6;
  margin-bottom: 10px;
}
strong {
  font-weight: 700;
  color: var(--primary);
}

/* ------------------------------
   HEADER & NAVIGATION
------------------------------ */
header {
  background: #fff;
  box-shadow: 0 4px 14px 0 rgba(33,52,95,0.05);
  border-bottom: 3px solid var(--secondary);
  z-index: 20;
  position: sticky;
  top: 0;
}
header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 86px;
  min-height: 60px;
  gap: 32px;
  position: relative;
}
header nav {
  display: flex;
  gap: 18px;
}
header nav a {
  font-family: var(--font-display);
  font-weight: bold;
  color: var(--primary);
  padding: 8px 0;
  border-bottom: 2px solid transparent;
  font-size: 1rem;
  transition: color .15s, border-color .16s;
  letter-spacing: 0.01em;
}
header nav a:hover, header nav a:focus {
  color: var(--secondary);
  border-bottom: 2px solid var(--secondary);
  outline: none;
}
.cta-button {
  background: var(--secondary);
  color: var(--primary);
  padding: 12px 32px;
  border-radius: var(--radius-sm);
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: bold;
  letter-spacing: 0.02em;
  border: none;
  box-shadow: 0 3px 12px 0 rgba(245,178,75,0.06);
  transition: background .18s cubic-bezier(.45,1.1,.41,.86), box-shadow .14s;
  outline: none;
  position: relative;
}
.cta-button:hover, .cta-button:focus {
  background: #ffd07a;
  color: var(--primary);
  transform: translateY(-1px) scale(1.04);
  box-shadow: 0 8px 32px 0 rgba(245,178,75,0.19);
}
/* Burger button (only visible on mobile) */
.mobile-menu-toggle {
  display: none;
  background: var(--primary);
  color: var(--secondary);
  border-radius: var(--radius-sm);
  font-size: 2.1rem;
  padding: 5px 18px 2px 18px;
  z-index: 1003;
  border: 2px solid var(--secondary);
  margin-left: 16px;
  transition: background .16s, color .18s;
}
.mobile-menu-toggle:hover, .mobile-menu-toggle:focus {
  background: var(--secondary);
  color: var(--primary);
}

/* ------------------------------
    MOBILE MENU OVERLAY
------------------------------ */
.mobile-menu {
  display: none;
  position: fixed;
  z-index: 1000;
  top: 0; left: 0; right: 0; bottom: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(33,52,95,0.95);
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-start;
  padding: 0;
  transform: translateX(100vw);
  transition: transform .28s cubic-bezier(.51,.86,.56,.98);
}
.mobile-menu.active {
  display: flex;
  transform: translateX(0vw);
}
.mobile-menu-close {
  align-self: flex-end;
  margin: 26px 26px 0 0;
  font-size: 2.3rem;
  color: var(--secondary);
  background: rgba(33,52,95,0.52);
  border-radius: 50%;
  padding: 4px 18px 2px 18px;
  border: 2px solid var(--secondary);
  transition: background .16s, color .18s;
  z-index: 1003;
}
.mobile-menu-close:hover, .mobile-menu-close:focus {
  background: var(--secondary);
  color: var(--primary);
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  width: 100vw;
  margin-top: 36px;
  gap: 10px;
  padding-left: 32px;
}
.mobile-nav a {
  font-size: 1.3rem;
  color: #fff;
  padding: 16px 0 16px 0;
  font-family: var(--font-display);
  font-weight: 800;
  border-bottom: 2px solid transparent;
  transition: color .13s, border-color .14s;
  min-width: 160px;
  max-width: 320px;
  letter-spacing: .03em;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  color: var(--secondary);
  border-bottom: 2px solid var(--secondary);
  outline: none;
}

/* ------------------------------
    FOOTER
------------------------------ */
footer {
  background: var(--primary);
  color: #fff;
  padding: 0;
  font-size: 1rem;
}
footer .footer-main {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-start;
  gap: 46px;
  padding: 48px 16px 40px 16px;
  border-radius: var(--radius) var(--radius) 0 0;
}
.footer-main > a img {
  height: 62px; width: auto;
}
.footer-nav {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  font-family: var(--font-display);
  font-weight: bold;
  color: var(--secondary);
  padding: 6px 0;
  font-size: 1rem;
}
.footer-nav a {
  color: var(--secondary);
  font-weight: bold;
  letter-spacing: .01em;
  transition: color .13s;
}
.footer-nav a:hover, .footer-nav a:focus {
  color: #fff;
  text-decoration: underline;
}
footer .contact-info {
  color: #fff;
  font-size: .98rem;
  font-family: var(--font-body);
  margin-top: 4px;
}
footer .contact-info a {
  color: var(--secondary);
  text-decoration: underline;
  transition: color .12s;
}
footer .contact-info a:hover, .footer-nav a:focus {
  color: #fff;
}

/* ------------------------------
    TEXT ELEMENTS & LISTS
------------------------------ */
.text-section ul {
  padding-left: 24px;
  margin-bottom: 20px;
}
.text-section li {
  list-style: disc;
  margin-bottom: 10px;
  color: var(--primary);
}
.text-section h3 {
  margin-top: 24px;
  color: var(--secondary);
}
dd {
  margin-left: 0;
  margin-bottom: 16px;
  padding-left: 0;
}
dt {
  font-weight: bold;
  color: var(--secondary);
}
.faq {
  margin-top: 24px;
}
.expert-tips {
  margin-bottom: 30px;
  background: var(--gray);
  border-radius: var(--radius-sm);
  padding: 16px 20px 12px 20px;
  box-shadow: 0 2px 10px 0 rgba(33,52,95,0.04);
}
.expert-tips h3 {
  color: var(--primary);
  margin-bottom: 10px;
}

/* ------------------------------
    FORM/CONTACT
------------------------------ */
.contact-info p,
.contact-info a {
  font-size: 1.08rem;
}

/* ------------------------------
    COOKIE BANNER + MODAL
------------------------------ */
.cookie-banner {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 2000;
  background: #fff;
  border-top: 4px solid var(--secondary);
  box-shadow: 0 -2px 24px -4px rgba(33,52,95,0.12);
  padding: 22px 16px 18px 16px;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  gap: 18px;
  min-height: 80px;
  font-family: var(--font-body);
  font-size: 1rem;
  animation: slideInBottom .45s cubic-bezier(.36,1.6,.28,.98);
}
.cookie-banner p {
  color: var(--primary);
  margin-bottom: 0;
  text-align: center;
  font-size: 1.04rem;
}
.cookie-banner-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 4px;
}
.cookie-banner button,
.cookie-banner a {
  padding: 8px 22px;
  background: var(--secondary);
  color: var(--primary);
  font-family: var(--font-display);
  font-weight: 700;
  border-radius: var(--radius-sm);
  border: none;
  font-size: 1rem;
  box-shadow: 0 2px 8px 0 rgba(245,178,75,0.11);
  transition: background .15s, color .15s, transform .1s;
}
.cookie-banner button:hover, .cookie-banner button:focus {
  background: var(--primary);
  color: #fff;
  transform: translateY(-2px) scale(1.04);
}
.cookie-banner .secondary-btn {
  background: #eee;
  color: var(--primary);
  border: 1px solid #ccc;
}
.cookie-banner .secondary-btn:hover, .cookie-banner .secondary-btn:focus {
  background: var(--secondary);
  color: var(--primary);
}

.cookie-modal-backdrop {
  position: fixed;
  top: 0; left: 0; bottom: 0; right: 0;
  z-index: 2001;
  background: rgba(33,52,95, 0.38);
  animation: fadeInBg .3s;
}
.cookie-modal {
  position: fixed;
  left: 50%; top: 50%;
  transform: translate(-50%, -60%) scale(1);
  z-index: 2100;
  background: #fff;
  max-width: 420px;
  padding: 34px 34px 24px 34px;
  border-radius: var(--radius);
  box-shadow: 0 14px 64px -2px rgba(33,52,95,0.25);
  display: flex;
  flex-direction: column;
  gap: 24px;
  animation: zoomIn .39s;
}
.cookie-modal h2 {
  font-size: 1.5rem;
  margin-bottom: 10px;
}
.cookie-modal label {
  font-size: 1.04rem;
  margin-right: 12px;
}
.cookie-options {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.cookie-category {
  display: flex;
  align-items: center;
  gap: 10px;
}
.cookie-category input[type="checkbox"] {
  accent-color: var(--secondary);
  width: 20px; height: 20px;
  margin-right: 0;
}
.cookie-modal-actions {
  display: flex;
  gap: 16px;
  justify-content: flex-end;
}

@keyframes slideInBottom {
  0% { transform: translateY(80px); opacity: 0; }
  100% { transform: translateY(0); opacity: 1; }
}
@keyframes fadeInBg {
  0% { opacity: 0; } 100% { opacity: 1; }
}
@keyframes zoomIn {
  0% { opacity: 0; transform: scale(.95) translate(-50%, -60%); }
  70% { opacity: 1; transform: scale(1.05) translate(-50%, -52%); }
  100% { opacity: 1; transform: scale(1) translate(-50%, -60%); }
}


/* ------------------------------
    RESPONSIVE DESIGN
------------------------------ */
@media (max-width: 1180px) {
  .container { max-width: 98vw; }
}
@media (max-width: 980px) {
  .footer-main { gap: 26px; padding: 34px 8px 28px 8px; }
  .container { padding: 0 8px; }
  .content-wrapper { gap: 24px; }
}
@media (max-width: 820px) {
  .footer-main { flex-direction: column; align-items: flex-start; gap: 26px; }
}
@media (max-width: 768px) {
  .container { max-width: 100vw; }
  header .container {
    flex-direction: row;
    gap: 8px;
    padding-left: 0; padding-right: 4px;
    height: 64px;
  }
  /* Hide desktop nav and button */
  header nav {
    display: none;
  }
  .cta-button {
    display: none;
  }
  .mobile-menu-toggle {
    display: block;
  }
  .footer-main { flex-direction: column; align-items: flex-start; }

  .content-wrapper, .section {
    padding: 20px 2px;
  }
  .feature-grid, .service-grid, .card-container, .content-grid, .testimonial-slider, .article-grid, .event-list {
    flex-direction: column;
    gap: 18px;
  }
  .feature-item, .service-item, .card, .testimonial-card, .article-item, .event-item {
    min-width: 0;
    width: 100%;
    max-width: 460px;
    margin: 0 auto 18px auto;
    padding: 20px 12px 18px 14px;
  }
  .testimonial-card {
    padding: 16px 12px 16px 18px;
  }
  .text-image-section {
    flex-direction: column;
    align-items: flex-start;
    gap: 18px;
  }
  h1 { font-size: 2rem; }
  h2 { font-size: 1.35rem; }
  h3 { font-size: 1.08rem; }
  .cookie-modal {
    padding: 14px 8px 16px 14px;
    min-width: 92vw;
    left: 50%; right: auto;
    max-width: 99vw;
  }
}
@media (max-width: 510px) {
  h1 { font-size: 1.27rem; }
  h2 { font-size: 1.09rem; }
}

/* Ensure no overlapping by setting min/max widths for all cards */
.card, .feature-item, .service-item, .article-item, .testimonial-card, .event-item {
  min-width: 180px;
  max-width: 430px;
}

/* ------------------------------
    INTERACTIVE & STATES
------------------------------ */
::-webkit-scrollbar {
  width: 8px;
  background: #eee;
}
::-webkit-scrollbar-thumb {
  background: var(--secondary);
  border-radius: 5px;
}

/* Focus rings for accessibility */
a:focus, button:focus, .cta-button:focus, .mobile-menu-toggle:focus, .mobile-menu-close:focus {
  outline: 2px solid var(--secondary);
  outline-offset: 2px;
}

/* Misc geometric styles (for modern_bold vibe, e.g. accent bars) */
.section h2 {
  position: relative;
  display: inline-block;
  z-index: 2;
}
.section h2::before {
  content: '';
  display: inline-block;
  width: 36px; height: 8px;
  background: var(--secondary);
  border-radius: 4px;
  position: absolute;
  left: -46px; bottom: 6px;
  z-index: -1;
}
@media (max-width: 768px) {
  .section h2::before { left: -28px; width: 20px; height: 5px; bottom: 2px; }
}

/* List markers for bold bullet points */
.text-section ul li::marker, ul li::marker {
  color: var(--secondary);
  font-size: 1.3em;
  font-weight: bold;
}

/* Accent bar for blockquotes & testimonials (geom. style) */
.testimonial-card::before {
  display: none !important;
}

/* ------------------------------
    ACCESSIBILITY
------------------------------ */
[tabindex]:focus-visible,
a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--secondary) !important;
  outline-offset: 2px;
}

/*-------------------------------
   END OF STYLE.CSS
-------------------------------*/
