/* ============================================================
   ECO-SMILE | الأنماط الرئيسية | PHP 8.1 + MySQL 8.0
   RTL Arabic Design | Environmental Green Theme
   ============================================================ */

:root {
  --primary:       #1b5e20;
  --primary-light: #2e7d32;
  --primary-mid:   #388e3c;
  --secondary:     #4caf50;
  --accent:        #8bc34a;
  --accent-light:  #c5e1a5;
  --yellow:        #f9a825;
  --orange:        #ff8f00;
  --bg-light:      #f1f8e9;
  --bg-card:       #ffffff;
  --text-dark:     #1a2e1a;
  --text-muted:    #6c757d;
  --border:        #c8e6c9;
  --shadow:        0 4px 20px rgba(27,94,32,.12);
  --shadow-hover:  0 8px 32px rgba(27,94,32,.22);
  --radius:        14px;
  --radius-sm:     8px;
  --transition:    all .3s cubic-bezier(.4,0,.2,1);
}

/* ---- Reset & Base ---- */
*,*::before,*::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Cairo', 'Segoe UI', Arial, sans-serif;
  background: #fafff7;
  color: var(--text-dark);
  line-height: 1.8;
  font-size: 16px;
  overflow-x: hidden;
}
a { color: var(--primary-light); text-decoration: none; transition: var(--transition); }
a:hover { color: var(--secondary); }
img { max-width: 100%; height: auto; }
ul { list-style: none; padding: 0; margin: 0; }

/* ---- Scrollbar ---- */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: #f1f8e9; }
::-webkit-scrollbar-thumb { background: var(--secondary); border-radius: 4px; }

/* ============================================================
   TOP BAR
   ============================================================ */
.top-bar {
  background: var(--primary);
  color: #a5d6a7;
  font-size: 13px;
  padding: 6px 0;
  border-bottom: 1px solid rgba(255,255,255,.1);
  position: relative;
  z-index: 1010;
}
.top-bar a { color: #a5d6a7; }
.top-bar a:hover { color: #fff; }
.top-bar .social-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px; height: 28px;
  border-radius: 50%;
  background: rgba(255,255,255,.1);
  margin-inline-start: 5px;
  transition: var(--transition);
}
.top-bar .social-links a:hover { background: var(--secondary); color: white; }

/* ============================================================
   NAVIGATION
   ============================================================ */
.navbar-main {
  background: #fff;
  box-shadow: 0 2px 20px rgba(27,94,32,.1);
  position: sticky;
  top: 0;
  z-index: 1000;
  padding: 0;
}
.navbar-main .container { display: flex; align-items: center; justify-content: space-between; height: 72px; gap: 16px; }
.navbar-brand { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.navbar-brand .logo-img { height: 60px; width: auto; max-width: 220px; object-fit: contain; }
.navbar-brand .brand-text { display: flex; flex-direction: column; line-height: 1.2; }
.navbar-brand .brand-name { font-size: 20px; font-weight: 900; color: var(--primary); letter-spacing: -0.3px; }
.navbar-brand .brand-tagline { font-size: 10px; color: var(--text-muted); white-space: nowrap; }
.navbar-nav {
  display: flex !important;
  flex-direction: row !important;
  align-items: center;
  gap: 2px;
  flex-wrap: nowrap;
  list-style: none;
  margin: 0;
  padding: 0;
}
.navbar-nav > li { position: relative; }
.nav-link {
  display: inline-flex;
  align-items: center;
  padding: 8px 11px !important;
  border-radius: 8px;
  color: var(--text-dark) !important;
  font-weight: 600;
  font-size: 13.5px;
  transition: var(--transition);
  position: relative;
  white-space: nowrap;
  background: none;
  border: none;
  cursor: pointer;
  font-family: 'Cairo',sans-serif;
}
.nav-link::after {
  content: '';
  position: absolute;
  bottom: 3px;
  right: 50%; left: 50%;
  height: 2px;
  background: var(--secondary);
  border-radius: 2px;
  transition: var(--transition);
}
.nav-link:hover::after,
.nav-link.active::after { right: 10px; left: 10px; }
.nav-link:hover,
.nav-link.active { color: var(--primary) !important; background: var(--bg-light); }
/* Dropdown toggle */
.nav-dropdown-toggle::after { display: none; }
.nav-dropdown-toggle { gap: 4px; }
/* Dropdown menu */
.nav-dropdown { position: relative; }
.nav-dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  right: 0;
  min-width: 210px;
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 8px 32px rgba(27,94,32,.18);
  border: 1px solid var(--border);
  padding: 8px;
  padding-top: 16px;   /* extra invisible top area to bridge button→menu gap */
  margin-top: 0;
  z-index: 999;
  list-style: none;
}
.nav-dropdown-menu li a {
  display: flex;
  align-items: center;
  padding: 10px 14px;
  border-radius: 8px;
  color: var(--text-dark);
  font-size: 13.5px;
  font-weight: 600;
  transition: var(--transition);
  white-space: nowrap;
}
.nav-dropdown-menu li a:hover,
.nav-dropdown-menu li a.active { background: var(--bg-light); color: var(--primary); }
.nav-dropdown.open > .nav-dropdown-menu { display: block; }
/* Buttons */
.nav-btn-register {
  background: linear-gradient(135deg, var(--secondary), var(--primary-mid)) !important;
  color: #fff !important;
  border-radius: 22px !important;
  padding: 9px 20px !important;
  font-weight: 700;
  box-shadow: 0 4px 15px rgba(76,175,80,.35);
}
.nav-btn-register:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(76,175,80,.5); }
.nav-btn-register::after { display: none; }
.nav-btn-login { border: 2px solid var(--primary-light) !important; border-radius: 22px !important; padding: 7px 18px !important; color: var(--primary) !important; font-weight: 700; }
.nav-btn-login:hover { background: var(--primary) !important; color: #fff !important; }
.nav-btn-login::after { display: none; }
/* Hamburger */
.mobile-toggle {
  display: none;
  border: none;
  background: none;
  padding: 6px;
  cursor: pointer;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 38px;
  height: 38px;
  border-radius: 8px;
  transition: var(--transition);
}
.mobile-toggle:hover { background: var(--bg-light); }
.mobile-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--primary);
  border-radius: 2px;
  transition: var(--transition);
  transform-origin: center;
}
.mobile-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.mobile-toggle.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.mobile-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ============================================================
   HERO SLIDER
   ============================================================ */
.hero-slider { position: relative; overflow: hidden; height: 560px; }
.slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity .8s ease;
  display: flex;
  align-items: center;
}
.slide.active { opacity: 1; }
.slide-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(27,94,32,.85) 0%, rgba(27,94,32,.5) 50%, rgba(0,0,0,.2) 100%);
}
.slide-content { position: relative; z-index: 2; color: #fff; max-width: 700px; }
.slide-content .badge-eco {
  display: inline-block;
  background: rgba(255,255,255,.2);
  border: 1px solid rgba(255,255,255,.4);
  color: #fff;
  padding: 4px 16px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 16px;
  backdrop-filter: blur(8px);
}
.slide-content h1 { font-size: clamp(1.8rem, 4vw, 3rem); font-weight: 900; line-height: 1.3; margin-bottom: 16px; text-shadow: 0 2px 10px rgba(0,0,0,.3); }
.slide-content p { font-size: 1.1rem; opacity: .9; margin-bottom: 28px; }
.slide-controls { position: absolute; bottom: 24px; left: 50%; transform: translateX(-50%); display: flex; gap: 8px; z-index: 10; }
.slide-dot { width: 10px; height: 10px; border-radius: 50%; background: rgba(255,255,255,.5); cursor: pointer; transition: var(--transition); border: none; }
.slide-dot.active { width: 30px; border-radius: 5px; background: #fff; }
.slide-arrow { position: absolute; top: 50%; transform: translateY(-50%); z-index: 10; width: 44px; height: 44px; border-radius: 50%; background: rgba(255,255,255,.2); border: 2px solid rgba(255,255,255,.4); color: #fff; cursor: pointer; display: flex; align-items: center; justify-content: center; transition: var(--transition); backdrop-filter: blur(8px); }
.slide-arrow:hover { background: var(--secondary); border-color: var(--secondary); transform: translateY(-50%) scale(1.1); }
.slide-arrow.prev { right: 20px; }
.slide-arrow.next { left: 20px; }

/* ============================================================
   STATS RIBBON
   ============================================================ */
.stats-ribbon {
  background: var(--primary);
  color: #fff;
  padding: 20px 0;
}
.stat-item { text-align: center; border-inline-end: 1px solid rgba(255,255,255,.2); }
.stat-item:last-child { border: none; }
.stat-number { font-size: 2rem; font-weight: 900; color: var(--accent-light); }
.stat-label { font-size: 13px; opacity: .8; }

/* ============================================================
   SECTIONS
   ============================================================ */
section { padding: 80px 0; }
.section-header { text-align: center; margin-bottom: 60px; }
.section-badge {
  display: inline-block;
  background: var(--bg-light);
  color: var(--primary-light);
  border: 1px solid var(--border);
  padding: 5px 18px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 12px;
}
.section-title { font-size: clamp(1.6rem, 3vw, 2.4rem); font-weight: 900; color: var(--primary); margin-bottom: 12px; }
.section-title span { color: var(--secondary); }
.section-sub { color: var(--text-muted); font-size: 1rem; max-width: 600px; margin: 0 auto; }
.section-divider { width: 60px; height: 4px; background: linear-gradient(90deg, var(--secondary), var(--primary)); border-radius: 2px; margin: 16px auto 0; }

/* ============================================================
   CARDS
   ============================================================ */
.eco-card {
  background: #fff;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  overflow: hidden;
  transition: var(--transition);
  height: 100%;
}
.eco-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-hover); border-color: var(--accent-light); }
.eco-card .card-icon {
  width: 64px; height: 64px;
  border-radius: 16px;
  background: var(--bg-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  margin-bottom: 16px;
}
.eco-card .card-body { padding: 28px; }
.eco-card .card-title { font-size: 1.15rem; font-weight: 800; color: var(--primary); margin-bottom: 8px; }
.eco-card .card-text { color: var(--text-muted); font-size: .94rem; line-height: 1.7; }

/* ============================================================
   AGE GROUP CARDS
   ============================================================ */
.age-group-card {
  border-radius: var(--radius);
  overflow: hidden;
  transition: var(--transition);
  position: relative;
  cursor: pointer;
}
.age-group-card:hover { transform: translateY(-8px) scale(1.02); box-shadow: var(--shadow-hover); }
.age-group-card .ag-banner {
  padding: 40px 24px;
  text-align: center;
  color: #fff;
  position: relative;
  overflow: hidden;
}
.age-group-card .ag-banner::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,.1);
}
.age-group-card .ag-emoji { font-size: 4rem; margin-bottom: 12px; position: relative; z-index: 1; }
.age-group-card .ag-name { font-size: 1.4rem; font-weight: 900; position: relative; z-index: 1; }
.age-group-card .ag-range { font-size: 0.9rem; opacity: .85; position: relative; z-index: 1; margin-top: 4px; }
.age-group-card .ag-body { padding: 20px; background: #fff; }
.age-group-card .ag-features li { padding: 6px 0; color: var(--text-muted); font-size: .9rem; }
.age-group-card .ag-features li::before { content: '✓ '; color: var(--secondary); font-weight: 700; }

/* ============================================================
   ABOUT SECTION
   ============================================================ */
.about-img-wrap { position: relative; }
.about-img-wrap img { border-radius: 20px; box-shadow: var(--shadow); }
.about-badge {
  position: absolute;
  bottom: -20px;
  left: 30px;
  background: #fff;
  border: 2px solid var(--border);
  border-radius: 14px;
  padding: 16px 24px;
  box-shadow: var(--shadow);
  text-align: center;
}
.about-badge strong { display: block; font-size: 2rem; font-weight: 900; color: var(--primary); }
.feature-item { display: flex; align-items: flex-start; gap: 14px; margin-bottom: 20px; }
.feature-icon { width: 48px; height: 48px; border-radius: 12px; background: var(--bg-light); display: flex; align-items: center; justify-content: center; font-size: 22px; flex-shrink: 0; }
.feature-text h6 { font-weight: 800; color: var(--primary); margin-bottom: 4px; }
.feature-text p { color: var(--text-muted); font-size: .9rem; margin: 0; }

/* ============================================================
   ACTIVITIES
   ============================================================ */
.activity-card {
  background: #fff;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  overflow: hidden;
  transition: var(--transition);
}
.activity-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-hover); }
.activity-card .ac-image { height: 240px; background: var(--bg-light); position: relative; overflow: hidden; }
.activity-card .ac-image img { width: 100%; height: 100%; object-fit: cover; transition: var(--transition); }
.activity-card:hover .ac-image img { transform: scale(1.05); }
.activity-card .ac-type {
  position: absolute;
  top: 12px;
  right: 12px;
  background: var(--primary);
  color: #fff;
  padding: 3px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 700;
}
.activity-card .ac-body { padding: 20px; }
.activity-card .ac-date { font-size: 13px; color: var(--text-muted); margin-bottom: 8px; }
.activity-card h5 { font-weight: 800; color: var(--primary); margin-bottom: 8px; font-size: 1rem; }

/* ============================================================
   PARTNERS
   ============================================================ */
.partner-logo {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 110px;
  transition: var(--transition);
  filter: grayscale(40%);
  opacity: .7;
}
.partner-logo:hover { filter: grayscale(0); opacity: 1; transform: translateY(-4px); box-shadow: var(--shadow); border-color: var(--accent-light); }
.partner-logo img { max-height: 90px; max-width: 100%; object-fit: contain; }
.partner-name { text-align: center; margin-top: 10px; font-size: 13px; font-weight: 600; color: var(--text-muted); }

/* ============================================================
   BLOG CARDS
   ============================================================ */
.blog-card {
  background: #fff;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  overflow: hidden;
  transition: var(--transition);
  height: 100%;
}
.blog-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-hover); }
.blog-card .bc-image { height: 220px; overflow: hidden; position: relative; }
.blog-card .bc-image img { width: 100%; height: 100%; object-fit: cover; transition: var(--transition); }
.blog-card:hover .bc-image img { transform: scale(1.05); }
.blog-card .bc-category {
  position: absolute;
  bottom: 0;
  right: 0;
  background: var(--secondary);
  color: #fff;
  padding: 4px 14px;
  font-size: 12px;
  font-weight: 700;
  border-radius: 8px 0 0 0;
}
.blog-card .bc-body { padding: 20px; }
.blog-card .bc-meta { font-size: 12px; color: var(--text-muted); margin-bottom: 10px; display: flex; gap: 16px; }
.blog-card h5 { font-weight: 800; color: var(--primary); margin-bottom: 8px; font-size: 1rem; line-height: 1.5; }
.blog-card p { font-size: .88rem; color: var(--text-muted); line-height: 1.6; }
.read-more { font-weight: 700; font-size: 13px; color: var(--primary-light); }
.read-more::after { content: ' ←'; }

/* ============================================================
   CTA SECTION
   ============================================================ */
.cta-section {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-mid) 50%, #1a6b1a 100%);
  position: relative;
  overflow: hidden;
}
.cta-section::before {
  content: '🌿';
  position: absolute;
  font-size: 200px;
  opacity: .05;
  right: -40px;
  top: -40px;
  line-height: 1;
}
.cta-section::after {
  content: '🌍';
  position: absolute;
  font-size: 180px;
  opacity: .05;
  left: -20px;
  bottom: -40px;
  line-height: 1;
}

/* ============================================================
   HUMANITARIAN SECTION
   ============================================================ */
.humanitarian-section { background: linear-gradient(135deg, #fff8e1, #fff3e0); }
.disease-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #fff;
  border: 1px solid #ffcc02;
  border-radius: 24px;
  padding: 8px 20px;
  font-weight: 700;
  color: var(--primary);
  margin: 6px;
  box-shadow: 0 2px 10px rgba(0,0,0,.06);
}

/* ============================================================
   FOOTER
   ============================================================ */
footer {
  background: linear-gradient(180deg, var(--primary) 0%, #0d2f0d 100%);
  color: #a5d6a7;
  padding-top: 60px;
}
.footer-logo { height: 60px; width: auto; max-width: 220px; object-fit: contain; }
.footer-brand .brand-name { color: #fff; font-size: 1.8rem; font-weight: 900; }
.footer-brand p { font-size: .9rem; line-height: 1.8; color: #81c784; }
.footer-title { color: #fff; font-size: 1rem; font-weight: 800; margin-bottom: 20px; position: relative; }
.footer-title::after { content: ''; display: block; width: 30px; height: 3px; background: var(--secondary); border-radius: 2px; margin-top: 8px; }
footer ul li { margin-bottom: 8px; }
footer ul li a { color: #81c784; font-size: .9rem; transition: var(--transition); }
footer ul li a:hover { color: #fff; padding-right: 6px; }
.footer-contact li { display: flex; align-items: center; gap: 10px; font-size: .9rem; margin-bottom: 10px; color: #81c784; }
.footer-bottom { background: rgba(0,0,0,.3); padding: 16px 0; margin-top: 40px; }
.footer-bottom p { color: #4caf50; font-size: 13px; margin: 0; }
.footer-social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px; height: 38px;
  border-radius: 50%;
  background: rgba(255,255,255,.1);
  color: #a5d6a7;
  margin-inline-start: 8px;
  transition: var(--transition);
}
.footer-social a:hover { background: var(--secondary); color: #fff; transform: translateY(-3px); }

/* ============================================================
   BUTTONS
   ============================================================ */
.btn-eco {
  background: linear-gradient(135deg, var(--secondary), var(--primary-mid));
  color: #fff;
  border: none;
  border-radius: 30px;
  padding: 12px 32px;
  font-weight: 700;
  font-size: .95rem;
  transition: var(--transition);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 4px 15px rgba(76,175,80,.35);
}
.btn-eco:hover { transform: translateY(-2px); box-shadow: 0 8px 25px rgba(76,175,80,.5); color: #fff; background: linear-gradient(135deg, var(--primary-mid), var(--primary)); }
.btn-eco-outline {
  background: transparent;
  color: #fff;
  border: 2px solid rgba(255,255,255,.7);
  border-radius: 30px;
  padding: 11px 32px;
  font-weight: 700;
  font-size: .95rem;
  transition: var(--transition);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.btn-eco-outline:hover { background: rgba(255,255,255,.15); border-color: #fff; color: #fff; transform: translateY(-2px); }
.btn-white {
  background: #fff;
  color: var(--primary);
  border: none;
  border-radius: 30px;
  padding: 12px 32px;
  font-weight: 700;
  font-size: .95rem;
  transition: var(--transition);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 4px 15px rgba(0,0,0,.15);
}
.btn-white:hover { transform: translateY(-2px); box-shadow: 0 8px 25px rgba(0,0,0,.2); color: var(--primary-light); }

/* ============================================================
   FORMS & AUTH
   ============================================================ */
.auth-wrapper {
  min-height: 100vh;
  background: linear-gradient(135deg, #e8f5e9 0%, #f1f8e9 50%, #e0f2f1 100%);
  display: flex;
  align-items: center;
  padding: 40px 0;
}
.auth-card {
  background: #fff;
  border-radius: 20px;
  box-shadow: 0 20px 60px rgba(27,94,32,.15);
  overflow: hidden;
  max-width: 900px;
  margin: 0 auto;
  width: 100%;
}
.auth-side {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-mid) 60%, var(--secondary) 100%);
  color: #fff;
  padding: 50px 40px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
  overflow: hidden;
}
.auth-side::before {
  content: '🌱';
  position: absolute;
  font-size: 160px;
  opacity: .07;
  bottom: -30px;
  left: -20px;
  line-height: 1;
}
.auth-form-wrap { padding: 50px 40px; }
.form-label { font-weight: 700; color: var(--primary); font-size: .9rem; margin-bottom: 6px; }
.form-control, .form-select {
  border: 1.5px solid #e0e0e0;
  border-radius: 10px;
  padding: 11px 16px;
  font-family: 'Cairo', sans-serif;
  font-size: .95rem;
  transition: var(--transition);
  background: #fafff7;
}
.form-control:focus, .form-select:focus {
  border-color: var(--secondary);
  box-shadow: 0 0 0 3px rgba(76,175,80,.15);
  background: #fff;
  outline: none;
}
.form-control.is-invalid { border-color: #dc3545; }
.form-section-title {
  font-size: .8rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-muted);
  border-bottom: 1px solid #eee;
  padding-bottom: 8px;
  margin-bottom: 16px;
  margin-top: 24px;
}
.verification-inputs { display: flex; gap: 10px; justify-content: center; direction: ltr; }
.verification-inputs input {
  width: 54px; height: 60px;
  text-align: center;
  font-size: 1.6rem;
  font-weight: 900;
  border: 2px solid #e0e0e0;
  border-radius: 10px;
  color: var(--primary);
}
.verification-inputs input:focus { border-color: var(--secondary); }

/* ============================================================
   PAGE HERO (inner pages)
   ============================================================ */
.page-hero {
  background: linear-gradient(135deg, var(--primary), var(--primary-mid));
  color: #fff;
  padding: 60px 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.page-hero::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 30px;
  background: #fafff7;
  clip-path: ellipse(55% 100% at 50% 100%);
}
.page-hero h1 { font-size: clamp(1.8rem, 4vw, 2.8rem); font-weight: 900; margin-bottom: 8px; }
.page-hero p { opacity: .85; font-size: 1rem; }
.breadcrumb-eco { display: flex; gap: 8px; justify-content: center; align-items: center; margin-top: 12px; }
.breadcrumb-eco a { color: rgba(255,255,255,.75); font-size: .85rem; }
.breadcrumb-eco a:hover { color: #fff; }
.breadcrumb-eco span { color: rgba(255,255,255,.5); }

/* ============================================================
   TIMELINE / GOALS
   ============================================================ */
.timeline { position: relative; padding: 20px 0; }
.timeline::before { content: ''; position: absolute; right: 50%; top: 0; bottom: 0; width: 3px; background: var(--border); }
.timeline-item { display: flex; gap: 30px; margin-bottom: 40px; align-items: flex-start; }
.timeline-item:nth-child(even) { flex-direction: row-reverse; }
.timeline-dot {
  width: 50px; height: 50px;
  border-radius: 50%;
  background: var(--secondary);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  flex-shrink: 0;
  box-shadow: 0 4px 15px rgba(76,175,80,.4);
  z-index: 1;
  position: relative;
}
.timeline-content { flex: 1; background: #fff; border-radius: var(--radius); padding: 24px; border: 1px solid var(--border); box-shadow: var(--shadow); }

/* ============================================================
   FAQ ACCORDION
   ============================================================ */
.faq-item { border: 1px solid var(--border); border-radius: var(--radius-sm); margin-bottom: 10px; overflow: hidden; }
.faq-question {
  padding: 18px 20px;
  font-weight: 700;
  color: var(--primary);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: var(--transition);
  background: #fff;
}
.faq-question:hover { background: var(--bg-light); }
.faq-question.open { background: var(--bg-light); }
.faq-answer { padding: 0 20px; max-height: 0; overflow: hidden; transition: max-height .3s ease, padding .3s ease; background: #fafff7; }
.faq-answer.open { max-height: 500px; padding: 16px 20px; }
.faq-icon { width: 24px; height: 24px; border-radius: 50%; background: var(--secondary); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 14px; flex-shrink: 0; transition: var(--transition); }
.faq-item.open .faq-icon { transform: rotate(45deg); }

/* ============================================================
   CONTACT
   ============================================================ */
.contact-info-card {
  background: linear-gradient(135deg, var(--primary), var(--primary-mid));
  color: #fff;
  border-radius: var(--radius);
  padding: 40px;
}
.contact-info-item { display: flex; gap: 16px; margin-bottom: 24px; align-items: flex-start; }
.contact-info-icon { width: 48px; height: 48px; background: rgba(255,255,255,.15); border-radius: 12px; display: flex; align-items: center; justify-content: center; font-size: 20px; flex-shrink: 0; }

/* ============================================================
   BLOG POST
   ============================================================ */
.blog-post-header { padding: 80px 0 40px; background: var(--bg-light); }
.blog-post-cover { border-radius: var(--radius); overflow: hidden; margin-bottom: 40px; height: 400px; }
.blog-post-cover img { width: 100%; height: 100%; object-fit: cover; }
.blog-post-content { font-size: 1rem; line-height: 2; color: #333; }
.blog-post-content h2,
.blog-post-content h3 { color: var(--primary); font-weight: 800; margin: 30px 0 15px; }
.blog-post-content ul, .blog-post-content ol { padding-right: 24px; }
.blog-post-content li { margin-bottom: 8px; }
.blog-post-content blockquote {
  border-right: 4px solid var(--secondary);
  background: var(--bg-light);
  padding: 16px 20px;
  border-radius: 0 8px 8px 0;
  margin: 20px 0;
  color: var(--primary);
  font-style: italic;
  font-weight: 600;
}

/* ============================================================
   ANIMATIONS
   ============================================================ */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(30px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-10px); }
}
@keyframes pulse-green {
  0%, 100% { box-shadow: 0 0 0 0 rgba(76,175,80,.4); }
  50%       { box-shadow: 0 0 0 12px rgba(76,175,80,0); }
}
.animate-fade-up { animation: fadeInUp .6s ease forwards; }
.animate-float   { animation: float 3s ease-in-out infinite; }
.scroll-reveal { opacity: 0; transform: translateY(30px); transition: opacity .6s ease, transform .6s ease; }
.scroll-reveal.visible { opacity: 1; transform: translateY(0); }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 992px) {
  .hero-slider { height: 420px; }
  .mobile-toggle { display: flex; }
  .navbar-nav {
    display: none !important;
    position: fixed;
    top: 72px; right: 0; left: 0; bottom: 0;
    background: #fff;
    flex-direction: column !important;
    align-items: stretch !important;
    padding: 16px 20px 40px;
    overflow-y: auto;
    z-index: 999;
    box-shadow: 0 10px 30px rgba(0,0,0,.12);
    gap: 4px;
  }
  .navbar-nav.show { display: flex !important; }
  .navbar-nav > li { width: 100%; }
  .nav-link { width: 100%; padding: 12px 16px !important; font-size: 15px; border-radius: 10px; }
  /* Mobile dropdown: always visible as submenu */
  .nav-dropdown-menu {
    display: block;
    position: static;
    box-shadow: none;
    border: none;
    background: var(--bg-light);
    border-radius: 10px;
    padding: 6px;
    margin-top: 4px;
  }
  .nav-dropdown-menu li a { padding: 10px 16px; font-size: 14px; }
  .nav-dropdown-toggle { width: 100%; }
  /* Buttons full width on mobile */
  .nav-btn-register, .nav-btn-login { width: 100%; justify-content: center; margin-top: 4px; }
  .timeline::before { display: none; }
  .timeline-item, .timeline-item:nth-child(even) { flex-direction: column; }
}
@media (max-width: 768px) {
  section { padding: 50px 0; }
  .hero-slider { height: 340px; }
  .slide-content h1 { font-size: 1.5rem; }
  .auth-side { display: none; }
  .auth-form-wrap { padding: 30px 20px; }
}

/* ============================================================
   UTILITY
   ============================================================ */
.bg-eco-light { background: var(--bg-light); }
.bg-eco       { background: var(--primary); }
.text-eco     { color: var(--primary); }
.text-eco-2   { color: var(--secondary); }
.border-eco   { border-color: var(--border) !important; }
.rounded-eco  { border-radius: var(--radius); }
.shadow-eco   { box-shadow: var(--shadow); }
.gap-eco      { gap: 16px; }
.fw-900       { font-weight: 900; }
.fw-800       { font-weight: 800; }

/* Custom Age Group Icons */
.ag-custom-icon {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 80px;
  height: 80px;
  margin-bottom: 12px;
}
.ag-custom-icon > i:first-child {
  font-size: 3.8rem;
  color: #fff;
  filter: drop-shadow(0 4px 6px rgba(0,0,0,0.15));
}
.ag-custom-icon .ag-icon-sub {
  position: absolute;
  bottom: -4px;
  right: -8px;
  font-size: 1.5rem;
  background: rgba(255, 255, 255, 0.25);
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: 50%;
  width: 38px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: #fff;
}

/* Custom Dropdown Styling */
.dropdown-menu {
  border-radius: 12px !important;
  border: 1px solid var(--border) !important;
  box-shadow: 0 10px 30px rgba(27,94,32,0.1) !important;
  padding: 6px !important;
  z-index: 1050 !important; /* Ensure it appears above navbar and other elements */
}
.dropdown-item {
  border-radius: 8px !important;
  padding: 8px 16px !important;
  font-family: 'Cairo', sans-serif !important;
  font-size: 0.9rem !important;
  font-weight: 600 !important;
  color: var(--text-dark) !important;
  transition: var(--transition) !important;
}
.dropdown-item:hover, .dropdown-item:focus {
  background-color: var(--bg-light) !important;
  color: var(--primary) !important;
}
.dropdown-item.active, .dropdown-item:active {
  background: var(--primary) !important; /* Green color theme */
  color: #fff !important;
}

/* ---- Video Section ---- */
.video-wrapper {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: var(--shadow);
  background: #000;
}
.video-cover-container {
  position: relative;
  cursor: pointer;
  overflow: hidden;
}
.video-cover-container img {
  transition: transform 0.5s ease;
  width: 100%;
  height: auto;
  display: block;
}
.video-cover-container:hover img {
  transform: scale(1.02);
}
.video-play-btn {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 80px;
  height: 80px;
  background: var(--primary-light);
  color: #fff;
  border: none;
  border-radius: 50%;
  font-size: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3), 0 0 0 0 rgba(46, 125, 50, 0.5);
  cursor: pointer;
  transition: all 0.3s ease;
  animation: pulse-play 2s infinite;
  z-index: 2;
}
.video-play-btn i {
  margin-inline-start: 4px;
}
.video-play-btn:hover {
  background: var(--secondary);
  transform: translate(-50%, -50%) scale(1.1);
}

@keyframes pulse-play {
  0% {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3), 0 0 0 0 rgba(46, 125, 50, 0.7);
  }
  70% {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3), 0 0 0 20px rgba(46, 125, 50, 0);
  }
  100% {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3), 0 0 0 0 rgba(46, 125, 50, 0);
  }
}

