/* =========================================================
  Spark Cash Academy — 'Elegant Classic' Style CSS
  Responsive, Accessible, Mobile First — Flexbox Only
  Brand: #263375, #F3F6FC, #1BC47D | Montserrat, Roboto
========================================================= */

/* --------------------
   0. CSS RESET
---------------------- */
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: inherit;
  vertical-align: baseline;
  box-sizing: border-box;
}
html { box-sizing: border-box; }
*, *:before, *:after { box-sizing: inherit; }
body {
  background: #F3F6FC;
  color: #263375;
  line-height: 1.6;
  font-family: 'Roboto', 'Georgia', serif;
  font-size: 16px;
  font-weight: 400;
}
img { max-width: 100%; height: auto; display: block; }
a { color: #263375; text-decoration: none; transition: color .2s; }
a:focus, a:hover { color: #1BC47D; outline: none; }
ul, ol { list-style: none; }

/* ---- Typography & Headings ---- */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', 'Georgia', serif;
  color: #263375;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 16px;
}
h1 { font-size: 2.5rem; margin-bottom: 24px;  }
h2 { font-size: 2rem; margin-bottom: 20px; }
h3 { font-size: 1.35rem; margin-bottom: 16px; }
h4 { font-size: 1.15rem; }
p, li, blockquote, span, td, th { font-size: 1rem; }
blockquote {
  font-family: 'Georgia', serif;
  font-style: italic;
  color: #4a567d;
  background: #f7faff;
  border-left: 4px solid #263375;
  padding: 16px 24px 16px 20px;
  margin-bottom: 16px;
  border-radius: 6px;
}

/* ---- BUTTON STYLE ---- */
.cta-button, .cookie-accept, .cookie-reject, .cookie-settings {
  font-family: 'Montserrat', 'Georgia', serif;
  display: inline-block;
  background: #263375;
  color: #fff;
  border: none;
  border-radius: 34px;
  padding: 13px 32px;
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  box-shadow: 0 2px 12px 0 rgba(38,51,117,0.08);
  transition: background 0.18s, color 0.18s, box-shadow 0.2s;
  cursor: pointer;
  margin-right: 12px;
  margin-bottom: 10px;
  outline: none;
}
.cta-button:hover, .cta-button:focus,
.cookie-accept:hover, .cookie-accept:focus {
  background: #1BC47D;
  color: #263375;
  box-shadow: 0 4px 16px 0 rgba(27,196,125,0.12);
}
.cookie-reject {
  background: #e4e8f5;
  color: #263375;
}
.cookie-reject:hover, .cookie-reject:focus {
  background: #ccd2e6;
}
.cookie-settings {
  background: transparent;
  color: #263375;
  border: 1px solid #263375;
  font-weight: 500;
  transition: background 0.2s, color 0.2s;
}
.cookie-settings:hover, .cookie-settings:focus {
  background: #263375;
  color: #fff;
}


/* ---- General Containers ---- */
.container {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding-left: 20px;
  padding-right: 20px;
}
.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.text-section {
  align-items: flex-start;
  max-width: 700px;
  margin: 0 auto;
}


/* =====================
   HEADER & NAVBAR
======================= */
header {
  background: #fff;
  border-bottom: 1px solid #e4e8f5;
  box-shadow: 0 2px 10px 0 rgba(38,51,117,0.05);
  position: relative;
  z-index: 20;
}
header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 68px;
  gap: 24px;
  padding-top: 10px;
  padding-bottom: 10px;
}
.logo img {
  height: 44px;
  width: auto;
  margin-right: 12px;
}
.main-nav {
  display: flex;
  align-items: center;
  gap: 28px;
}
.main-nav a {
  font-family: 'Montserrat', 'Georgia', serif;
  color: #263375;
  font-weight: 500;
  font-size: 1rem;
  transition: color 0.18s;
  padding: 7px 0;
  position: relative;
}
.main-nav a:hover, .main-nav a:focus {
  color: #1BC47D;
}
.cta-button {
  margin-left: 16px;
}
.mobile-menu-toggle {
  display: none;
  font-size: 2rem;
  background: transparent;
  border: none;
  color: #263375;
  cursor: pointer;
  margin-left: 24px;
  z-index: 21;
}
.mobile-menu {
  display: none;
}

/* ---- Footer ---- */
footer {
  background: #fff;
  border-top: 1px solid #dddff0;
  padding: 45px 0 32px 0;
  font-size: 1rem;
  color: #263375;
}
footer .container {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
}
.footer-logo-socials img {
  width: 52px;
  height: auto;
}
.footer-nav {
  display: flex;
  flex-direction: column;
  gap: 16px;
  min-width: 140px;
}
.footer-nav a {
  color: #263375;
  font-weight: 500;
  font-family: 'Montserrat', 'Georgia', serif;
  font-size: 1rem;
}
.footer-nav a:hover {
  color: #1BC47D;
}
.footer-contact {
  font-size: 0.98rem;
  color: #636e8c;
}

/* ---------------------------------
   1. SECTIONS & SPACING PATTERNS
---------------------------------- */
.section, .hero-section, .features-section, .services-overview-section,
.testimonials-preview-section, .call-to-action, .services-section, .benefits-section,
.pricing-hero-section, .pricing-table-section, .cta-section,
.about-hero-section, .team-section, .values-section, .contact-hero-section, .contact-info-section,
.faq-hero-section, .faq-section, .cookies-policy-section, .gdpr-section,
.privacy-policy-section, .terms-section, .thank-you-section
{
  margin-bottom: 60px;
  padding: 40px 20px;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 2px 16px 0 rgba(38,51,117,0.05);
}

.section:last-child,
.hero-section:last-child,
.features-section:last-child,
.services-overview-section:last-child,
.testimonials-preview-section:last-child,
.call-to-action:last-child {
  margin-bottom: 0;
}

/* -------------------------------------
   2. FLEXBOX LAYOUT CONTAINERS
-------------------------------------- */
.card-container, .card-grid, .service-card-grid, .content-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: space-between;
}
.feature-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: space-between;
}
.service-list { /* for / */
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 20px;
}
.service-list > div {
  flex: 1 1 280px;
  min-width: 220px;
  background: #f7f9fd;
  border-radius: 9px;
  box-shadow: 0 2px 10px 0 rgba(38,51,117,.07);
  padding: 28px 20px;
  margin-bottom: 22px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  border: 1px solid #e6eaf5;
  transition: box-shadow .2s, border-color .2s;
}
.service-list > div:hover {
  border-color: #b3bfd7;
  box-shadow: 0 4px 18px 0 rgba(27,196,125,0.09);
}
.service-card-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 24px;
}
.service-card {
  background: #f5f7fa;
  border-radius: 13px;
  box-shadow: 0 2px 12px 0 rgba(38,51,117,0.06);
  flex: 1 1 320px;
  min-width: 250px;
  padding: 28px 20px 28px 24px;
  display: flex;
  flex-direction: column;
  margin-bottom: 20px;
  border: 1px solid #e6eaf5;
  transition: border .2s, box-shadow .2s;
}
.service-card:hover {
  border-color: #1BC47D;
  box-shadow: 0 4px 20px 0 rgba(27,196,125,0.11);
}
.price {
  color: #1BC47D;
  font-size: 1.12rem;
  font-weight: bold;
  margin-bottom: 12px;
  margin-top: 9px;
  letter-spacing: 0.01em;
  font-family: 'Montserrat', serif;
}
.text-image-section {
  display: flex;
  align-items: center;
  gap: 30px;
  flex-wrap: wrap;
}
.card {
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 2px 10px 0 rgba(38,51,117,0.06);
  margin-bottom: 20px;
  position: relative;
  padding: 24px 20px;
}
.card-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 10px;
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  flex: 1 1 210px;
}
/* Team and value lists */
.team-briefs, .value-list, .benefit-list, .faq-list {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin-bottom: 20px;
}
.team-briefs > div, .faq-list > div {
  flex: 1 1 340px;
  min-width: 260px;
  background: #f8fafc;
  border-radius: 10px;
  border: 1px solid #e4eaf7;
  padding: 25px 18px 16px 24px;
  box-shadow: 0 1px 10px 0 rgba(38,51,117,.03);
  transition: box-shadow .2s, border-color .2s;
}
.team-briefs > div:hover, .faq-list > div:hover {
  box-shadow: 0 4px 16px 0 rgba(38,51,117,.09);
  border-color: #b3bfd7;
}
.value-list li, .benefit-list li {
  display: flex;
  align-items: center;
  gap: 18px;
  font-size: 1.02rem;
  background: #f7faff;
  padding: 10px 18px;
  border-radius: 6px;
  border: 1px solid #e6eaf5;
  margin-bottom: 8px;
}
.value-list img, .benefit-list img {
  width: 30px;
  height: 30px;
  margin-right: 8px;
}

/* -----------------------------------
   3. TESTIMONIALS
-------------------------------------- */
.testimonial-card {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 20px;
  min-width: 220px;
  background: #f3f8ff;
  border: 1.5px solid #dbe3fa;
  border-radius: 15px;
  box-shadow: 0 2px 14px 0 rgba(38,51,117,0.03);
  margin-bottom: 20px;
  color: #263375;
  font-family: 'Georgia', serif;
  transition: box-shadow 0.18s, border-color 0.18s;
}
.testimonial-card:hover {
  box-shadow: 0 6px 20px 0 rgba(38,51,117,0.11);
  border-color: #1BC47D;
}
.testimonial-card blockquote {
  background: none;
  border: none;
  padding: 0;
  color: #263375;
  font-size: 1.08rem;
}
.testimonial-card span {
  display: block;
  color: #1063a4;
  font-family: 'Montserrat', serif;
  font-size: 0.97rem;
  margin-top: 6px;
}
.stars {
  display: flex;
  gap: 2px;
  align-items: center;
  margin-left: 10px;
}
.stars img {
  width: 22px;
  height: 22px;
}

/* -----------------------------------
   4. PRICING TABLE
-------------------------------------- */
.pricing-table-section {
  overflow-x: auto;
}
.pricing-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 3px 14px 0 rgba(38,51,117,0.07);
  margin-top: 22px;
}
.pricing-table th, .pricing-table td {
  font-family: 'Roboto', 'Georgia', serif;
  padding: 17px 21px;
  text-align: left;
  border-bottom: 1px solid #e6eaf5;
}
.pricing-table th {
  background: #f3f6fc;
  font-family: 'Montserrat', serif;
  font-size: 1.06rem;
  font-weight: 700;
  color: #263375;
}
.pricing-table tr:last-child td {
  border-bottom: none;
}

/* -----------------------------------
   5. FORMS, CONTACT
-------------------------------------- */
.contact-details {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 18px;
}
.contact-details li {
  padding: 6px 0;
  font-size: 1rem;
}

/* -------------------------------------
   6. MOBILE NAVIGATION STYLES
-------------------------------------- */
@media (max-width: 1024px) {
  .main-nav {
    gap: 18px;
  }
  header .container {
    padding-left: 13px;
    padding-right: 13px;
  }
}
@media (max-width: 900px) {
  .main-nav {
    display: none;
  }
  .mobile-menu-toggle {
    display: block;
  }
  .mobile-menu {
    display: flex;
    position: fixed;
    top: 0;
    left: 0;
    height: 100vh;
    width: 100vw;
    background: rgba(243,246,252,0.98);
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    padding: 36px 24px 16px 24px;
    transform: translateX(-100%);
    transition: transform 0.36s cubic-bezier(.4,.8,.2,1);
    z-index: 1010;
  }
  .mobile-menu.open {
    transform: translateX(0);
    box-shadow: 2px 0 24px 0 rgba(38,51,117, 0.13);
  }
  .mobile-menu-close {
    font-size: 2.1rem;
    background: transparent;
    border: none;
    color: #263375;
    align-self: flex-end;
    margin-bottom: 30px;
    cursor: pointer;
    z-index: 1110;
    transition: color .2s;
  }
  .mobile-menu-close:hover,
  .mobile-menu-close:focus {
    color: #1BC47D;
  }
  .mobile-nav {
    display: flex;
    flex-direction: column;
    gap: 24px;
    width: 100%;
    margin-top: 10px;
  }
  .mobile-nav a {
    color: #263375;
    font-family: 'Montserrat', serif;
    font-size: 1.18rem;
    font-weight: 600;
    padding: 14px 0;
    border-bottom: 1px solid #e6eaf5;
    transition: color .2s, background .18s;
    border-radius: 6px;
  }
  .mobile-nav a:hover, .mobile-nav a:focus {
    color: #1BC47D;
    background: #ecf7f0;
  }
}

/* ---------------------------------------
   7. RESPONSIVE ADJUSTMENTS (Mobile First)
---------------------------------------- */
@media (max-width: 768px) {
  .container {
    padding-left: 7px;
    padding-right: 7px;
  }
  .section, .hero-section, .features-section, .services-overview-section,
  .testimonials-preview-section, .call-to-action, .services-section, .benefits-section, .pricing-hero-section,
  .pricing-table-section, .cta-section, .about-hero-section, .team-section, .values-section, .contact-hero-section, .contact-info-section,
  .faq-hero-section, .faq-section, .cookies-policy-section, .gdpr-section, .privacy-policy-section, .terms-section, .thank-you-section {
    padding: 24px 6px;
    margin-bottom: 37px;
    border-radius: 10px;
  }
  header .container, footer .container {
    flex-direction: column;
    gap: 14px;
    align-items: flex-start;
  }
  .card-container, .service-card-grid, .card-grid, .feature-grid, .service-list,
  .team-briefs, .value-list, .benefit-list, .faq-list {
    flex-direction: column;
    gap: 15px;
  }
  .service-list > div, .service-card {
    min-width: unset;
  }
  .testimonial-card {
    flex-direction: column;
    gap: 10px;
    padding: 13px 9px;
  }
  .mobile-menu {
    padding: 32px 7px 12px 16px;
  }
}

/* -----------------------------------
   8. UTILS, MISCELLANEOUS
-------------------------------------- */
::-webkit-input-placeholder { color: #6f7bb2; }
::-moz-placeholder { color: #6f7bb2; }
:-ms-input-placeholder { color: #6f7bb2; }
::placeholder { color: #6f7bb2; }

hr {
  border: none;
  border-top: 1px solid #e6eaf5;
  margin: 20px 0;
}
dt { font-weight: 700; }
dd { margin-bottom: 10px; }

/* Cards & hover effects for index/courses/about/faq */
.section > *, .content-wrapper > *, .features-section .feature-grid > *, .services-section .service-card-grid > *, .about-hero-section .text-section > *, .faq-list > *, .team-briefs > *, .value-list > *, .benefit-list > * {
  margin-bottom: 20px;
}
.section > *:last-child, .content-wrapper > *:last-child { margin-bottom: 0; }

/* -----------------------------------
   9. COOKIE CONSENT BANNER & MODAL
-------------------------------------- */
.cookie-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  background: #fff;
  color: #263375;
  padding: 28px 24px 20px 24px;
  box-shadow: 0 -2px 22px 0 rgba(38,51,117,0.10);
  z-index: 1500;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  gap: 16px;
  border-top: 2px solid #e4e8f5;
  transition: transform 0.32s cubic-bezier(.4,.8,.2,1), opacity 0.2s;
}
.cookie-banner.hide {
  transform: translateY(110%);
  opacity: 0;
  pointer-events: none;
}
.cookie-banner span {
  font-size: 1rem;
  margin-bottom: 0.5rem;
}
.cookie-banner .cookie-controls {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}
/* Cookie Modal */
.cookie-modal {
  position: fixed;
  top: 0; left:0; right:0; bottom:0;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2000;
  background: rgba(38,51,117, 0.16);
  opacity: 1;
  pointer-events: auto;
  transition: opacity .32s cubic-bezier(.4,.8,.2,1);
}
.cookie-modal.hide {
  opacity: 0;
  pointer-events: none;
}
.cookie-modal-content {
  background: #fff;
  border-radius: 16px;
  padding: 34px 32px 20px 32px;
  box-shadow: 0 12px 40px 0 rgba(38,51,117,.19);
  min-width: 310px;
  min-height: 160px;
  max-width: 90vw;
  max-height: 92vh;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  position: relative;
}
.cookie-modal-close {
  position: absolute;
  top: 19px;
  right: 23px;
  background: transparent;
  border: none;
  font-size: 1.7rem;
  color: #263375;
  cursor: pointer;
  z-index: 1;
}
.cookie-categories {
  display: flex;
  flex-direction: column;
  gap: 22px;
  margin: 28px 0;
}
.cookie-category {
  display: flex;
  align-items: center;
  gap: 15px;
  font-family: 'Montserrat', serif;
}
.cookie-category input[type="checkbox"] {
  width: 19px; height: 19px; margin-right: 6px;
  accent-color: #1BC47D;
}
.cookie-category.essential input {
  accent-color: #263375;
}
.cookie-category.essential label {
  color: #263375;
  font-weight: 600;
}
.cookie-category label {
  font-size: 1rem;
  font-weight: 500;
}
.cookie-modal-actions {
  display: flex;
  gap: 13px;
  margin-top: 22px;
}
@media (max-width: 600px) {
  .cookie-banner {
    padding: 20px 7px 16px 7px;
    border-radius: 0;
  }
  .cookie-modal-content {
    padding: 20px 7px 17px 7px;
    min-width: unset;
  }
}

/* ==============
   MICRO-ANIMATIONS
================== */
.cta-button, button, .mobile-menu-toggle, .mobile-menu-close,
.service-card, .service-list > div, .testimonial-card, .card {
  transition: box-shadow .18s, border .18s, background .23s, color .18s, transform .27s cubic-bezier(.36,1.13,.1,1.09);
}
.cta-button:active, .cookie-accept:active, .cookie-reject:active, .cookie-settings:active {
  transform: scale(0.97);
}
.service-card:active, .service-list > div:active, .testimonial-card:active {
  transform: scale(0.98);
}
.mobile-menu.open {
  animation: mobileMenuSlideIn .33s cubic-bezier(.36,1.13,.1,1.09);
}
@keyframes mobileMenuSlideIn {
  from { transform: translateX(-100%); }
  to { transform: translateX(0); }
}
.cookie-banner {
  animation: cookieBannerIn .44s cubic-bezier(.32,1.11,.14,1.01);
}
@keyframes cookieBannerIn {
  from { transform: translateY(100%); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}
.cookie-modal {
  animation: fadeModalIn .28s cubic-bezier(.41,.75,.24,.91);
}
@keyframes fadeModalIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* -----------------------------------
   10. ACCESSIBILITY FOCUS STYLES
-------------------------------------- */
:focus-visible, .cta-button:focus, .main-nav a:focus, .mobile-nav a:focus, .cookie-modal-close:focus {
  outline: 2px solid #1BC47D;
  outline-offset: 2px;
  z-index: 2;
}
