/* =======================
 Zyntarx Academy - style.css
 Modern Gradient Style | Flexbox-only layout
 ======================= */

/* --- RESET & NORMALIZE --- */
*, *::before, *::after {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
body {
  margin: 0;
  padding: 0;
  font-family: 'Open Sans', Arial, Helvetica, sans-serif;
  font-size: 16px;
  color: #18465A;
  background: #F9F7F2;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
h1, h2, h3, h4, h5, h6 {
  margin: 0 0 16px 0;
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-weight: 700;
  line-height: 1.15;
  color: #18465A;
}
h1 { font-size: 2.25rem; }
h2 { font-size: 1.5rem; }
h3 { font-size: 1.25rem; }
h4 { font-size: 1.125rem; }
p, ul, ol, li, span, .content-wrapper a {
  margin: 0;
  font-size: 1rem;
  line-height: 1.6;
  color: #18465A;
}
ul, ol {
  padding-left: 20px;
  margin-bottom: 20px;
}
strong { font-weight: 700; }
a {
  color: #18465A;
  text-decoration: none;
  transition: color 0.2s;
}
a:hover, a:focus {
  color: #4FC99A;
}
img {
  max-width: 100%;
  display: block;
}
/* Remove tap highlight on mobile */
a, button {
  -webkit-tap-highlight-color: rgba(79,201,154,0.18);
}
button {
  font-family: inherit;
  font-size: 1rem;
  background: none;
  border: none;
  cursor: pointer;
  appearance: none;
  padding: 0;
}
/* --- LAYOUT CLASSES --- */
.container {
  width: 100%;
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  flex-direction: column;
}
.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: #fff;
  border-radius: 24px;
  box-shadow: 0 4px 24px 0 rgba(24,70,90,0.05);
  display: flex;
  flex-direction: column;
  gap: 24px;
}
@media (max-width: 768px) {
  .section {
    padding: 24px 10px;
    margin-bottom: 36px;
  }
}

/* --- HEADER --- */
header {
  width: 100%;
  padding: 0;
  background: linear-gradient(90deg, #18465A 0%, #4FC99A 100%);
  box-shadow: 0 4px 24px 0 rgba(24,70,90,0.07);
  z-index: 50;
}
header .container {
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 18px 20px 18px 20px;
}
.logo {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 120px;
}
.logo img {
  height: 38px;
  width: auto;
}
nav.main-nav {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 28px;
}
.main-nav a {
  color: #fff;
  font-size: 1rem;
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-weight: 500;
  padding: 8px 4px;
  border-radius: 6px;
  position: relative;
  transition: background 0.22s, color 0.22s;
}
.main-nav a:hover, .main-nav a:focus {
  background: #4FC99A;
  color: #18465A;
}
.cta-btn {
  background: linear-gradient(90deg, #4FC99A 0%, #18465A 100%);
  color: #fff;
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-weight: 700;
  letter-spacing: 0.03em;
  font-size: 1.03rem;
  border: none;
  border-radius: 14px;
  padding: 12px 32px;
  box-shadow: 0 2px 8px 0 rgba(24,70,90,0.11);
  transition: background 0.2s, box-shadow 0.2s, color 0.2s;
  outline: none;
  cursor: pointer;
}
.cta-btn:hover, .cta-btn:focus {
  background: linear-gradient(90deg, #18465A 0%, #4FC99A 100%);
  color: #F9F7F2;
  box-shadow: 0 4px 24px 0 rgba(79,201,154,0.14);
}

/* --- HERO --- */
.hero {
  width: 100%;
  background: linear-gradient(130deg, #4FC99A 0%, #F9F7F2 90%);
  border-bottom-left-radius: 40px;
  border-bottom-right-radius: 40px;
  box-shadow: 0 4px 40px 0 rgba(24,70,90,0.06);
  padding: 60px 0 40px 0;
  margin-bottom: 32px;
  display: flex;
  flex-direction: column;
}
.hero .container {
  flex-direction: column;
  align-items: flex-start;
}
.hero h1 {
  font-size: 2.4rem;
  color: #18465A;
  text-shadow: 0 4px 24px rgba(24,70,90,0.07);
  margin-bottom: 14px;
}
.hero p {
  font-size: 1.15rem;
  margin-bottom: 22px;
  color: #18465A;
}
@media (max-width: 900px) {
  .hero {
    padding: 38px 0 28px 0;
    border-radius: 0 0 26px 26px;
  }
  .hero h1 { font-size: 1.7rem; }
  .hero p { font-size: 1rem; }
}
@media (max-width: 600px) {
  .hero { padding: 22px 0 18px 0; border-radius: 0 0 16px 16px; }
  .hero .content-wrapper { gap: 16px; }
}

/* --- FLEX CARDS/GRIDS --- */
.card-container, .service-cards, .feature-list {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: flex-start;
}
.card {
  position: relative;
  margin-bottom: 20px;
  border-radius: 16px;
  box-shadow: 0 2px 18px 0 rgba(24,70,90,0.08);
  background: #fff;
  padding: 28px 20px;
  transition: box-shadow 0.25s, transform 0.22s;
}
.card:hover, .card:focus-within {
  box-shadow: 0 8px 32px 0 rgba(24,70,90,0.12);
  transform: translateY(-6px) scale(1.01);
}
.service-card {
  background: #F9F7F2;
  border-radius: 16px;
  box-shadow: 0 2px 8px 0 rgba(24,70,90,0.06);
  padding: 32px 22px;
  margin-bottom: 22px;
  min-width: 260px;
  flex: 1 1 310px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  justify-content: flex-start;
  align-items: flex-start;
  transition: box-shadow 0.22s, transform 0.18s;
}
.service-card:hover { box-shadow: 0 6px 22px rgba(24,70,90,0.11); transform: translateY(-3px) scale(1.02); }
.service-card h3 {
  color: #18465A;
  font-size: 1.2rem;
  margin-bottom: 4px;
}
.service-card p {
  color: #18465A;
}
.service-card a {
  margin-top: auto;
  color: #4FC99A;
  font-weight: bold;
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-size: 1rem;
  letter-spacing: 0.01em;
  transition: color 0.18s;
}
.service-card a:hover { color: #18465A; }
@media (max-width: 900px) {
  .service-cards { flex-direction: column; gap: 20px; }
  .service-card { min-width: 0; width: 100%; }
}

/* Feature List/Icons */
.feature-list {
  list-style: none;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 28px;
  margin: 0;
}
.feature-list li {
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 2px 8px 0 rgba(24,70,90,0.04);
  flex: 1 1 230px;
  min-width: 180px;
  max-width: 270px;
  padding: 24px 16px 18px 16px;
  margin-bottom: 20px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  transition: box-shadow 0.18s, transform 0.18s;
}
.feature-list li img {
  width: 36px;
  height: 36px;
  margin-bottom: 2px;
}
.feature-list li h3 { font-size: 1.08rem; margin-bottom: 2px; }
.feature-list li:hover {
  box-shadow: 0 8px 24px 0 rgba(79,201,154,0.11);
  transform: translateY(-3px) scale(1.01);
}
@media (max-width: 900px) {
  .feature-list { gap: 18px; }
  .feature-list li { flex: 1 1 60vw; max-width: 100%; }
}

/* --- ABOUT/IMPACT/STANDOUT --- */
.about-highlight, .about-section, .about-features, .impact, .cookies-policy, .privacy-policy, .gdpr-section, .terms-section, .what-next, .cta-contact, .cta-enrol, .cta-book, .cta-register, .cta-contact, .instructors, .course-overview, .consultation-overview, .workshop-details, .events-overview, .events-features, .participation-details, .contact-info {
  margin-bottom: 60px;
  padding: 40px 20px;
  border-radius: 22px;
  background: #fff;
  box-shadow: 0 2px 16px 0 rgba(24,70,90,0.05);
}
@media (max-width: 768px) {
  .about-highlight, .about-section, .impact, .about-features, .cookies-policy, .privacy-policy, .gdpr-section, .terms-section,
  .what-next, .cta-contact, .cta-enrol, .cta-book, .cta-register, .cta-contact, .instructors, .course-overview, .consultation-overview, .workshop-details, .events-overview, .events-features, .participation-details, .contact-info {
    margin-bottom: 36px;
    padding: 24px 10px;
    border-radius: 13px;
  }
}

/* --- TEXT-IMAGE SECTIONS --- */
.text-image-section {
  display: flex;
  align-items: center;
  gap: 30px;
  flex-wrap: wrap;
  justify-content: space-between;
}
@media (max-width: 768px) {
  .text-image-section {
    flex-direction: column;
    gap: 16px;
    align-items: flex-start;
  }
}
/* Feature Item (when used) */
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  margin-bottom: 24px;
}

/* --- TESTIMONIALS --- */
.testimonials, .testimonial-card {
  background: none;
  box-shadow: none;
  border-radius: 0;
}
.testimonials .content-wrapper {
  gap: 24px;
}
.testimonial-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
  padding: 24px 20px;
  margin-bottom: 20px;
  background: #fff;
  border: 2px solid #4FC99A;
  border-radius: 18px;
  box-shadow: 0 2px 20px 0 rgba(24,70,90,0.07);
  transition: box-shadow 0.18s, border-color 0.18s;
  max-width: 650px;
  color: #18465A;
}
.testimonial-card p, .testimonial-card span {
  color: #18465A;
  font-size: 1.06rem;
}
.testimonial-card span {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-size: 1rem;
  font-weight: 600;
  color: #4FC99A;
}
.testimonial-card:hover, .testimonial-card:focus-within {
  box-shadow: 0 6px 28px 0 rgba(24,70,90,0.19);
  border-color: #18465A;
}
@media (max-width: 768px) {
  .testimonial-card { padding: 16px 10px; max-width: 100%; }
}

/* --- CTA (Call-to-action) --- */
.cta-contact, .cta-enrol, .cta-book, .cta-register {
  background: linear-gradient(110deg, #4FC99A 0%, #18465A 120%);
  color: #fff;
  text-align: center;
  box-shadow: 0 4px 32px 0 rgba(24,70,90,0.10);
  border-radius: 22px;
}
.cta-contact h2, .cta-enrol h2, .cta-book h2, .cta-register h2,
.cta-contact p, .cta-enrol p, .cta-book p, .cta-register p {
  color: #fff;
}
.cta-contact a.cta-btn, .cta-enrol a.cta-btn, .cta-book a.cta-btn, .cta-register a.cta-btn {
  margin: 0 auto;
  margin-top: 22px;
  background: #fff;
  color: #18465A;
  box-shadow: 0 2px 10px rgba(24,70,90,0.08);
}
.cta-contact a.cta-btn:hover, .cta-enrol a.cta-btn:hover,
.cta-book a.cta-btn:hover, .cta-register a.cta-btn:hover {
  background: #4FC99A;
  color: #fff;
}

/* --- FOOTER --- */
footer {
  background: linear-gradient(90deg, #18465A 0%, #4FC99A 100%);
  color: #fff;
  padding: 40px 0 0 0;
}
footer .container {
  display: flex;
  flex-wrap: wrap;
  flex-direction: row;
  align-items: flex-start;
  gap: 40px;
  padding: 0 20px 20px 20px;
  max-width: 1160px;
  margin: 0 auto;
}
.footer-nav {
  flex: 1 1 220px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.footer-nav a {
  color: #F9F7F2;
  font-size: 1rem;
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  margin-bottom: 3px;
  transition: color 0.18s;
}
.footer-nav a:hover { color: #4FC99A; }
.footer-contact {
  flex: 2 1 290px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 1rem;
}
.footer-contact address { font-style: normal; color: #fff; }
.footer-social {
  flex: 1 1 150px;
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 16px;
  justify-content: flex-end;
}
.footer-social img {
  height: 32px;
  width: auto;
  filter: drop-shadow(0 1px 2px rgba(60,60,60,0.03));
}
@media (max-width: 900px) {
  footer .container { flex-direction: column; gap: 24px; align-items: flex-start; }
  .footer-social { justify-content: flex-start; gap: 12px; }
}
@media (max-width: 600px) {
  .footer-contact, .footer-nav { font-size: 0.97rem; }
}

/* --- MOBILE MENU (Hamburger Navigation) --- */
.mobile-menu-toggle {
  display: none;
  position: fixed;
  top: 22px;
  right: 18px;
  z-index: 120;
  background: #4FC99A;
  color: #fff;
  border-radius: 8px;
  padding: 10px 16px;
  font-size: 1.7rem;
  box-shadow: 0 2px 8px 0 rgba(24,70,90,0.12);
  outline: none;
  border: none;
  transition: background 0.18s, color 0.18s;
}
.mobile-menu-toggle:active, .mobile-menu-toggle:focus {
  background: #18465A;
  color: #4FC99A;
}
.mobile-menu {
  position: fixed;
  top: 0;
  left: 0;
  height: 100vh;
  width: 100vw;
  background: rgba(24,70,90,0.97);
  z-index: 200;
  transform: translateX(-100%);
  transition: transform 0.36s cubic-bezier(.5, 1.6, .4, .89);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding-top: 0;
  box-shadow: 0 4px 38px 0 rgba(24,70,90,0.21);
}
.mobile-menu.open {
  transform: translateX(0%) !important;
}
.mobile-menu-close {
  background: #4FC99A;
  color: #fff;
  border-radius: 8px;
  font-size: 2.1rem;
  position: absolute;
  top: 22px;
  right: 22px;
  z-index: 210;
  padding: 8px 16px;
  /* Add some shadow */
  box-shadow: 0 2px 6px 0 rgba(24,70,90,0.13);
  transition: background 0.17s;
}
.mobile-menu-close:focus, .mobile-menu-close:active {
  background: #18465A;
  color: #4FC99A;
}
.mobile-nav {
  margin-top: 65px;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 18px;
  padding: 0 32px;
}
.mobile-nav a {
  display: block;
  color: #fff;
  font-size: 1.25rem;
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  padding: 18px 0 8px 0;
  border-bottom: 1px solid rgba(79,201,154,0.12);
  width: 100%;
  transition: color 0.18s, background 0.18s;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  color: #4FC99A;
  background: rgba(79,201,154,0.08);
}
@media (max-width: 900px) {
  nav.main-nav {
    display: none;
  }
  .mobile-menu-toggle {
    display: block;
  }
  .cta-btn {
    padding: 10px 18px;
    font-size: 1rem;
  }
}
@media (max-width: 600px) {
  .mobile-nav {
    gap: 9px; padding: 0 12px;
  }
  .mobile-nav a { font-size: 1.09rem; padding: 13px 0 6px 0; }
}

/* --- COOKIE CONSENT BANNER --- */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100vw;
  background: linear-gradient(90deg, #18465A 0%, #4FC99A 100%);
  color: #fff;
  z-index: 5000;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding: 24px 10px 20px 18px;
  font-size: 1.08rem;
  box-shadow: 0 -2px 20px 0 rgba(24,70,90,0.18);
  opacity: 1; /* For fade in/out animation */
  pointer-events: all;
  transition: opacity 0.35s;
}
.cookie-banner.hide {
  opacity: 0;
  pointer-events: none;
}
.cookie-banner .cookie-btn {
  background: #fff;
  color: #18465A;
  border: none;
  border-radius: 8px;
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-size: 1rem;
  padding: 8px 20px;
  font-weight: 600;
  margin-left: 9px;
  margin-right: 2px;
  box-shadow: 0 2px 6px 0 rgba(24,70,90,0.10);
  transition: background 0.17s, color 0.17s;
  cursor: pointer;
}
.cookie-banner .cookie-btn:hover, .cookie-banner .cookie-btn:focus {
  background: #4FC99A;
  color: #fff;
}
.cookie-banner .cookie-settings-btn {
  background: transparent;
  color: #fff;
  border: 1.5px solid #fff;
  padding: 8px 18px;
  font-weight: 400;
  margin-left: 7px;
}
.cookie-banner .cookie-settings-btn:hover, .cookie-banner .cookie-settings-btn:focus {
  background: #fff;
  color: #18465A;
}

/* --- COOKIE SETTINGS MODAL --- */
.cookie-modal-backdrop {
  position: fixed;
  z-index: 6000;
  top: 0; left: 0;
  width: 100vw; height: 100vh;
  background: rgba(24,70,90,0.52);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 1;
  pointer-events: all;
  transition: opacity 0.36s;
}
.cookie-modal-backdrop.hide {
  opacity: 0;
  pointer-events: none;
}
.cookie-modal {
  background: #fff;
  color: #18465A;
  border-radius: 18px;
  box-shadow: 0 10px 40px 0 rgba(24,70,90,0.19);
  max-width: 480px;
  width: 95vw;
  padding: 38px 32px 30px 32px;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 25px;
  z-index: 7000;
  animation: fade-in 0.28s;
}
@keyframes fade-in { from { opacity: 0; transform: translateY(32px); } to { opacity: 1; transform: translateY(0);} }
.cookie-modal-close {
  position: absolute;
  top: 18px;
  right: 18px;
  background: #4FC99A;
  color: #fff;
  font-size: 1.7rem;
  padding: 6px 12px;
  border-radius: 7px;
  border: none;
  cursor: pointer;
  transition: background 0.16s;
}
.cookie-modal-close:hover, .cookie-modal-close:focus {
  background: #18465A;
}
.cookie-modal h2 {
  margin-bottom: 4px;
  color: #18465A;
}
.cookie-options {
  display: flex;
  flex-direction: column;
  gap: 17px;
}
.cookie-option {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 17px;
  padding: 6px 0;
}
.cookie-option label {
  font-size: 1rem;
  color: #18465A;
  font-weight: 600;
}
.cookie-option input[type="checkbox"], .cookie-option input[type="radio"] {
  width: 22px;
  height: 22px;
  accent-color: #4FC99A;
}
.cookie-option input[disabled] { accent-color: #bbb; }
.cookie-modal-actions {
  display: flex;
  flex-direction: row;
  gap: 18px;
  margin-top: 14px;
  justify-content: flex-end;
}
.cookie-modal-actions .cookie-btn {
  min-width: 90px;
}

@media (max-width: 480px) {
  .cookie-modal { padding: 22px 11px 16px 11px; }
  .cookie-modal h2 { font-size: 1.2rem; }
  .cookie-options label { font-size: 0.95rem; }
}

/* --- OTHER GENERAL CLASSES --- */
::-webkit-input-placeholder { color: #b2b2b2; opacity: 1; }
::-moz-placeholder { color: #b2b2b2; opacity: 1; }
:-ms-input-placeholder { color: #b2b2b2; opacity: 1; }
::placeholder { color: #b2b2b2; opacity: 1; }

hr {
  border: 0;
  height: 1px;
  background: linear-gradient(90deg, #4FC99A 10%, #18465A 90%);
  margin: 26px 0;
}

/* --- VISUAL HIERARCHY & SPACING --- */
h1, h2, h3, h4 { letter-spacing: 0.005em; }
h2, h3, h4 { margin-bottom: 12px; }
p, ul, ol { margin-bottom: 16px; }
.section + .section, .about-section + .about-features, .feature-list li + li, .testimonial-card + .testimonial-card {
  margin-top: 20px !important;
}

/* --- SCROLLBAR (modern browsers) --- */
::-webkit-scrollbar { width:9px; background: #eee; }
::-webkit-scrollbar-thumb { background: #4FC99A; border-radius: 5px; }

/* --- UTILITIES --- */
.text-center { text-align: center; }
.text-right { text-align: right; }
.text-left { text-align: left; }
.hide, .hidden { display: none !important; }

/* Responsive flex helpers */
.content-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: space-between;
  margin-bottom: 26px;
}

/* --- MEDIA QUERIES: Responsive adjustments --- */
@media (max-width: 880px) {
  .container { padding: 0 9px; }
  .footer-social { gap: 8px; }
}
@media (max-width: 600px) {
  h1 { font-size: 1.35rem; }
  h2 { font-size: 1.07rem; }
  h3 { font-size: 1.00rem; }
  p, .content-wrapper a, .footer-contact, .footer-nav, .footer-social { font-size: 0.97rem; }
}
@media (max-width: 440px) {
  .cookie-banner { padding: 14px 2px 10px 3px; font-size: 0.93rem; }
  .cta-btn { font-size: 0.97rem; padding: 7px 10px; }
}

/* --- FOCUS VISIBLE (Accessibility) --- */
:focus-visible { outline: 2px solid #4FC99A; outline-offset: 2px; }

/* --- MICRO-ANIMATIONS for buttons and cards --- */
.cta-btn, .service-card, .feature-list li, .mobile-menu-toggle, .cookie-btn, .mobile-menu-close, .cookie-modal-close {
  transition: box-shadow 0.16s, background 0.18s, color 0.18s, transform 0.16s;
}

/* === END === */
