/* ========================================================================
   STURDY CHASSIS - GRADIENT MODERN THEME CSS (Mobile-first, Flexbox Only)
   ======================================================================== */

/* === CSS RESET & NORMALIZE === */
html, body, div, span, applet, object, iframe, h1, h2, h3, h4, h5, h6, p, blockquote,
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,
menu, nav, output, ruby, section, summary, time, mark, audio, video {
  margin: 0;
  padding: 0;
  border: 0;
  vertical-align: baseline;
  font-size: 100%;
  font: inherit;
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
body {
  min-height: 100vh;
  background: linear-gradient(145deg, #FDFCF9 0%, #e3e8f0 100%);
  color: #25395B;
  font-family: 'Open Sans', Arial, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  background-attachment: fixed;
}
img {
  max-width: 100%;
  height: auto;
  display: block;
}
button, input, select, textarea {
  font-family: inherit;
  font-size: inherit;
  outline: none;
  border: none;
}
a {
  color: #25395B;
  text-decoration: none;
  transition: color 0.2s;
}
a:focus, a:hover {
  color: #E89230;
  text-decoration: underline;
}

/* === TYPOGRAPHY === */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 700;
  color: #25395B;
  margin-bottom: 16px;
  letter-spacing: 0.01em;
}
h1 {
  font-size: 2.4rem;
  margin-bottom: 20px;
  line-height: 1.18;
}
h2 {
  font-size: 1.6rem;
  margin-bottom: 16px;
}
h3 {
  font-size: 1.2rem;
  margin-bottom: 10px;
}
p {
  font-size: 1rem;
  margin-bottom: 16px;
  color: #25395B;
}
strong {
  font-weight: 700;
  color: #25395B;
}

/* === LAYOUT CONTAINERS === */
.container {
  width: 100%;
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 16px;
  display: flex;
  flex-direction: column;
  align-items: stretch;
}
.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.text-section {
  display: flex;
  flex-direction: column;
  gap: 15px;
}
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: none;
  border-radius: 16px;
}

@media (min-width: 992px) {
  .section {
    padding: 60px 0 60px 0;
  }
}

/* === CARDS & FLEX LAYOUTS === */
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  margin-bottom: 20px;
  position: relative;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 2px 16px 0 rgba(37,57,91,0.08);
  transition: box-shadow 0.2s;
  padding: 32px 20px;
  flex: 1 1 280px;
}
.card:hover {
  box-shadow: 0 6px 24px 0 rgba(37,57,91,0.16);
  z-index: 2;
}
.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;
  margin-bottom: 20px;
  background: #FDFCF9;
  border-left: 6px solid #E89230;
  border-radius: 12px;
  box-shadow: 0 2px 8px 0 rgba(37,57,91,0.06);
  color: #25395B;
  max-width: 600px;
}
.testimonial-card p {
  color: #25395B;
  font-size: 1.06rem;
  font-style: italic;
  margin-bottom: 8px;
}
.testimonial-card span {
  color: #25395B;
  font-size: 1rem;
  font-weight: 600;
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}

/* Service List (Programs/Courses) */
.service-list {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 24px;
}
.service-item {
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 2px 16px 0 rgba(37,57,91,0.08);
  padding: 28px 20px 24px 20px;
  margin-bottom: 20px;
  flex: 1 1 260px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: box-shadow 0.2s, border 0.2s;
}
.service-item:hover {
  box-shadow: 0 8px 28px 0 rgba(37,57,91,0.16);
  border: 2px solid #E89230;
  z-index: 2;
}

/* === BUTTONS === */
.cta-button, button, .cookie-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(90deg, #25395B 0%, #E89230 100%);
  color: #fff;
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1rem;
  font-weight: 600;
  padding: 12px 32px;
  border-radius: 24px;
  border: none;
  cursor: pointer;
  box-shadow: 0 2px 12px 0 rgba(37,57,91,0.09);
  transition: background 0.18s, transform 0.18s, box-shadow 0.18s;
  margin-top: 8px;
  outline: none;
  text-align: center;
  gap: 8px;
}
.cta-button:hover, .cta-button:focus, button:focus, button:hover, .cookie-btn:hover, .cookie-btn:focus {
  background: linear-gradient(90deg, #E89230 0%, #25395B 100%);
  color: #fff;
  transform: translateY(-2px) scale(1.04);
  box-shadow: 0 6px 24px 0 rgba(232,146,48,0.14);
}

/* Alternate button styles for Cookie banner */
.cookie-btn.reject {
  background: #fff;
  color: #25395B;
  border: 2px solid #25395B;
}
.cookie-btn.reject:hover, .cookie-btn.reject:focus {
  background: #25395B;
  color: #fff;
}
.cookie-btn.settings {
  background: #FDFCF9;
  color: #25395B;
  border: 2px solid #E89230;
}
.cookie-btn.settings:hover, .cookie-btn.settings:focus {
  background: #E89230;
  color: #fff;
}

/* === NAVIGATION === */
header {
  background: #fff;
  box-shadow: 0 2px 12px 0 rgba(37,57,91,0.04);
  position: sticky;
  top: 0;
  z-index: 40;
}
.main-nav {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 18px;
  padding: 20px 0 20px 0;
  max-width: 1080px;
  margin: 0 auto;
}
.main-nav a {
  color: #25395B;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 600;
  font-size: 1rem;
  letter-spacing: 0.02em;
  padding: 5px 10px;
  border-radius: 6px;
  transition: background 0.18s, color 0.18s;
}
.main-nav a:hover, .main-nav a:focus {
  background: #E89230;
  color: #fff;
}
.main-nav img {
  height: 32px;
  margin-right: 18px;
}

/* ==== MOBILE NAVIGATION ==== */
.mobile-menu-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #25395B;
  color: #fff;
  font-size: 2rem;
  border-radius: 50%;
  width: 48px;
  height: 48px;
  cursor: pointer;
  border: none;
  margin-left: auto;
  z-index: 52;
  transition: background 0.18s;
}
.mobile-menu-toggle:hover, .mobile-menu-toggle:focus {
  background: #E89230;
  color: #fff;
}
.mobile-menu {
  position: fixed;
  top: 0;
  right: 0;
  width: 85vw;
  max-width: 380px;
  height: 100vh;
  background: #fff;
  box-shadow: -4px 0 24px 0 rgba(37,57,91,0.12);
  transform: translateX(100%);
  transition: transform 0.36s cubic-bezier(.47,.25,.39,.81);
  z-index: 120;
  display: flex;
  flex-direction: column;
  gap: 0;
  padding-top: 16px;
}
.mobile-menu.open {
  transform: translateX(0%);
}
.mobile-menu-close {
  background: none;
  border: none;
  font-size: 2.2rem;
  color: #25395B;
  cursor: pointer;
  align-self: flex-end;
  margin: 10px 16px 8px 0;
  transition: color 0.18s;
}
.mobile-menu-close:hover, .mobile-menu-close:focus {
  color: #E89230;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: 24px 24px 0 32px;
}
.mobile-nav a {
  color: #25395B;
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1.1rem;
  font-weight: 600;
  padding: 10px 0;
  border-radius: 3px;
  background: none;
  transition: background 0.2s, color 0.2s;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  background: #FDFCF9;
  color: #E89230;
}

/* Hide desktop main nav on small screens */
@media (max-width: 992px) {
  .main-nav {
    display: none;
  }
  .mobile-menu-toggle {
    display: inline-flex;
  }
}
@media (min-width: 993px) {
  .mobile-menu, .mobile-menu-toggle {
    display: none !important;
  }
  .main-nav {
    display: flex;
  }
}

/* Overlay for mobile menu */
.mobile-menu-backdrop {
  content: '';
  position: fixed;
  inset: 0;
  background: rgba(37,57,91,0.18);
  z-index: 110;
  display: none;
}
.mobile-menu.open + .mobile-menu-backdrop {
  display: block;
}

/* === LISTS STYLES === */
ul, ol {
  margin-left: 20px;
  margin-bottom: 16px;
}
ul {
  list-style: disc inside;
}
ol {
  list-style: decimal inside;
}
ul li, ol li {
  padding-left: 0;
  margin-bottom: 12px;
  font-size: 1rem;
  line-height: 1.65;
}
ul li img, ol li img {
  height: 22px;
  width: 22px;
  vertical-align: middle;
  margin-right: 10px;
}

/* === FOOTER === */
footer {
  background: linear-gradient(90deg, #25395B 65%, #E89230 180%);
  color: #fff;
  padding: 40px 20px 10px 20px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  margin-top: 60px;
}
.footer-menu {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  margin-bottom: 12px;
}
.footer-menu a {
  color: #fff;
  font-weight: 500;
  opacity: 0.88;
  font-size: 1rem;
  transition: color 0.18s, opacity 0.18s;
}
.footer-menu a:hover, .footer-menu a:focus {
  color: #E89230;
  opacity: 1;
}
.footer-contact {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  font-size: 0.95rem;
  opacity: 0.97;
}
footer > div:last-child {
  font-size: 0.9rem;
  opacity: 0.85;
  margin-top: 12px;
}

/* === FAQ & LOCATION MAP (Contact Page) === */
.faq-section {
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 1px 8px 0 rgba(37,57,91,0.06);
  padding: 24px;
  margin-top: 18px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 16px;
}
.location-map {
  margin-top: 16px;
  font-size: 1rem;
  color: #25395B;
  font-weight: 600;
}

/* === RESPONSIVE SPACING & LAYOUT === */
@media (max-width: 768px) {
  h1 { font-size: 1.7rem; }
  h2 { font-size: 1.2rem; }
  .section {
    padding: 28px 8px;
    margin-bottom: 45px;
  }
  .container {
    padding: 0 6px;
  }
  .content-wrapper, .text-section, .card-container {
    gap: 12px;
  }
  .service-list, .card-container, .testimonial-list {
    flex-direction: column;
    gap: 22px;
  }
  .service-item, .card {
    flex: 1 1 100%;
    min-width: 0;
  }
  .text-image-section {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }
  .footer-menu, .footer-contact {
    flex-direction: column;
    gap: 10px;
    align-items: flex-start;
  }
}
@media (min-width: 769px) {
  .service-list, .testimonial-list, .card-container {
    flex-direction: row;
    gap: 24px;
  }
  .footer-menu, .footer-contact {
    flex-direction: row;
    align-items: center;
  }
  .text-image-section {
    flex-direction: row;
    align-items: center;
    gap: 30px;
  }
}

/* === MICRO ANIMATIONS === */
.cta-button, .service-item, .card, .testimonial-card, .faq-section {
  transition: box-shadow 0.18s, border 0.18s, transform 0.18s, background 0.18s;
}
.cta-button:active {
  transform: scale(0.97);
}
.service-item:active { transform: scale(0.98); }
.card:active { transform: scale(0.98); }

/* === COOKIE CONSENT BANNER & MODAL === */
.cookie-consent-banner {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  background: #fff;
  box-shadow: 0 -2px 12px 0 rgba(37,57,91,0.08);
  padding: 22px 16px 16px 16px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
  z-index: 300;
  border-radius: 16px 16px 0 0;
  max-width: 96vw;
  margin: 0 auto;
  animation: cookieSlideUp 0.34s cubic-bezier(.58,.03,.49,.92);
}
@keyframes cookieSlideUp {
  0% { transform: translateY(100%); opacity: 0; }
  100% { transform: translateY(0); opacity: 1; }
}
.cookie-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 8px;
}

.cookie-consent-banner p { color: #25395B; font-size: 1rem; }

/* Cookie Preferences Modal */
.cookie-modal-overlay {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(37,57,91,0.36);
  z-index: 350;
  display: flex;
  justify-content: center;
  align-items: center;
  animation: fadeIn 0.18s;
}
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}
.cookie-modal {
  background: #fff;
  border-radius: 20px;
  box-shadow: 0 6px 32px 0 rgba(37,57,91,0.17);
  padding: 36px 28px 32px 28px;
  width: 95vw;
  max-width: 380px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  z-index: 360;
  animation: scaleUp 0.18s;
}
@keyframes scaleUp {
  from { transform: scale(0.92); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}
.cookie-modal h3 {
  font-size: 1.22rem;
  margin-bottom: 7px;
  color: #E89230;
}
.cookie-modal label {
  display: flex;
  align-items: center;
  font-size: 1.01rem;
  margin-bottom: 8px;
  gap: 12px;
  color: #25395B;
  font-weight: 500;
}
.cookie-modal input[type="checkbox"] {
  accent-color: #E89230;
  width: 18px;
  height: 18px;
}
.cookie-modal .modal-actions {
  display: flex;
  gap: 18px;
  margin-top: 10px;
  justify-content: flex-end;
}

/* === MISC UTILITIES === */
.bg-primary {
  background: #25395B !important;
  color: #fff !important;
}
.bg-secondary {
  background: #E89230 !important;
  color: #fff !important;
}
.bg-accent {
  background: #FDFCF9 !important;
  color: #25395B !important;
}
.rounded {
  border-radius: 14px !important;
}
.shadow {
  box-shadow: 0 2px 16px 0 rgba(37,57,91,0.12) !important;
}
.text-center {
  text-align: center !important;
}

/* === ACCESSIBLE FOCUS INDICATORS === */
a:focus, .cta-button:focus, button:focus, .mobile-menu-toggle:focus, .cookie-btn:focus {
  outline: 2px solid #E89230;
  outline-offset: 2px;
}

/* === GRADIENT HEADERS (Example usage) === */
h1, h2, h3 {
  background: linear-gradient(90deg, #25395B 0%, #E89230 120%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-fill-color: transparent;
}

/* === Misc Smaller Fixes === */
::-webkit-scrollbar {
  width: 9px;
  background: #E8923020;
}
::-webkit-scrollbar-thumb {
  background: #25395B20;
  border-radius: 999px;
}

/* === END === */
