/* ============================================================
   Al-Musteqim Model School — Main Stylesheet
   ============================================================ */

/* 1. Custom Properties
   ============================================================ */
:root {
  --green-dark:    #0b4422;
  --green-primary: #196b38;
  --green-mid:     #2a8f50;
  --green-light:   #e8f5ee;
  --green-pale:    #f0faf4;
  --gold:          #c9a030;
  --gold-dark:     #9e7c1f;
  --gold-light:    #fef3c7;
  --white:         #ffffff;
  --off-white:     #f9f6f0;
  --dark:          #111827;
  --text:          #1f2937;
  --text-muted:    #6b7280;
  --border:        #e5e7eb;
  --shadow-sm:     0 1px 3px rgba(0,0,0,.1);
  --shadow:        0 4px 12px rgba(0,0,0,.1);
  --shadow-lg:     0 12px 30px rgba(0,0,0,.12);
  --shadow-xl:     0 24px 50px rgba(0,0,0,.15);
  --font-heading:  'Playfair Display', Georgia, serif;
  --font-body:     'Inter', 'Segoe UI', system-ui, sans-serif;
  --radius:        8px;
  --radius-lg:     14px;
  --radius-full:   9999px;
  --transition:    all 0.3s ease;
  --max-width:     1200px;
}

/* 2. Reset & Base
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: var(--font-body);
  color: var(--text);
  background: var(--white);
  line-height: 1.7;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a  { text-decoration: none; color: inherit; }
ul { list-style: none; }

/* 3. Typography
   ============================================================ */
h1, h2, h3, h4, h5 {
  font-family: var(--font-heading);
  line-height: 1.25;
  color: var(--dark);
}

h1 { font-size: clamp(2rem, 5vw, 3.5rem); font-weight: 700; }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.4rem); font-weight: 700; }
h3 { font-size: clamp(1.2rem, 2.5vw, 1.6rem); font-weight: 600; }
h4 { font-size: 1.15rem; font-weight: 600; }

p { margin-bottom: 1rem; color: var(--text); }
p:last-child { margin-bottom: 0; }

/* 4. Utility Classes
   ============================================================ */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

.section-pad { padding: 80px 0; }
.section-pad-sm { padding: 60px 0; }

.text-center { text-align: center; }
.text-white  { color: var(--white) !important; }
.text-gold   { color: var(--gold) !important; }
.text-green  { color: var(--green-primary) !important; }
.text-muted  { color: var(--text-muted) !important; }

.bg-green-dark  { background-color: var(--green-dark); }
.bg-green       { background-color: var(--green-primary); }
.bg-green-light { background-color: var(--green-light); }
.bg-off-white   { background-color: var(--off-white); }
.bg-gold-light  { background-color: var(--gold-light); }

.grid { display: grid; gap: 2rem; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.flex { display: flex; }
.flex-center { display: flex; align-items: center; justify-content: center; }
.gap-1 { gap: 1rem; }
.gap-2 { gap: 2rem; }

.mt-1 { margin-top: 1rem; }
.mt-2 { margin-top: 2rem; }
.mb-1 { margin-bottom: 1rem; }
.mb-2 { margin-bottom: 2rem; }

.hidden { display: none !important; }

/* Section Header */
.section-header { text-align: center; margin-bottom: 3rem; }
.section-header .label {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
  background: var(--gold-light);
  padding: 6px 16px;
  border-radius: var(--radius-full);
  margin-bottom: 1rem;
}
.section-header h2 { margin-bottom: 1rem; }
.section-header p  { max-width: 640px; margin: 0 auto; color: var(--text-muted); font-size: 1.05rem; }

/* Decorative Divider */
.divider {
  width: 60px;
  height: 3px;
  background: linear-gradient(90deg, var(--gold), var(--green-primary));
  margin: 1rem auto 1.5rem;
  border-radius: 2px;
}
.divider-left { margin-left: 0; }

/* Islamic Ornament */
.ornament {
  text-align: center;
  font-size: 1.5rem;
  color: var(--gold);
  letter-spacing: 0.4em;
  margin-bottom: 0.5rem;
  opacity: 0.7;
}

/* 5. Buttons
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 14px 32px;
  border-radius: var(--radius-full);
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  border: 2px solid transparent;
  cursor: pointer;
  transition: var(--transition);
  text-align: center;
  line-height: 1;
}
.btn:hover { transform: translateY(-2px); box-shadow: var(--shadow); }

.btn-primary {
  background: var(--green-primary);
  color: var(--white);
  border-color: var(--green-primary);
}
.btn-primary:hover { background: var(--green-dark); border-color: var(--green-dark); }

.btn-gold {
  background: var(--gold);
  color: var(--dark);
  border-color: var(--gold);
}
.btn-gold:hover { background: var(--gold-dark); border-color: var(--gold-dark); color: var(--white); }

.btn-outline-white {
  background: transparent;
  color: var(--white);
  border-color: var(--white);
}
.btn-outline-white:hover { background: var(--white); color: var(--green-primary); }

.btn-outline-green {
  background: transparent;
  color: var(--green-primary);
  border-color: var(--green-primary);
}
.btn-outline-green:hover { background: var(--green-primary); color: var(--white); }

.btn-sm { padding: 10px 22px; font-size: 0.85rem; }
.btn-lg { padding: 16px 40px; font-size: 1.05rem; }

/* 6. Navigation
   ============================================================ */
#navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(255,255,255,0.97);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: var(--transition);
}
#navbar.scrolled {
  border-color: var(--border);
  box-shadow: var(--shadow);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}
.nav-logo-icon {
  width: 46px;
  height: 46px;
  background: linear-gradient(135deg, var(--green-dark), var(--green-mid));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  color: var(--gold);
  flex-shrink: 0;
  box-shadow: 0 2px 8px rgba(26,107,56,.3);
}
.nav-logo-text { line-height: 1.2; }
.nav-logo-text strong {
  display: block;
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--green-dark);
}
.nav-logo-text span {
  font-size: 0.72rem;
  color: var(--text-muted);
  letter-spacing: 0.05em;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}
.nav-links a {
  padding: 8px 14px;
  border-radius: var(--radius);
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--text);
  transition: var(--transition);
}
.nav-links a:hover,
.nav-links a.active {
  color: var(--green-primary);
  background: var(--green-light);
}
.nav-links .btn-primary {
  padding: 9px 20px;
  border-radius: var(--radius-full);
  font-size: 0.85rem;
}
.nav-links .btn-primary:hover { transform: none; }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--green-primary);
  border-radius: 2px;
  transition: var(--transition);
}
.nav-toggle.open span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* Mobile Nav */
.nav-mobile {
  display: none;
  flex-direction: column;
  background: var(--white);
  border-top: 1px solid var(--border);
  padding: 1rem 1.5rem 1.5rem;
  gap: 0.25rem;
}
.nav-mobile.open { display: flex; }
.nav-mobile a {
  padding: 12px 16px;
  border-radius: var(--radius);
  font-weight: 500;
  color: var(--text);
  transition: var(--transition);
}
.nav-mobile a:hover,
.nav-mobile a.active { color: var(--green-primary); background: var(--green-light); }
.nav-mobile .btn-primary { margin-top: 0.5rem; text-align: center; border-radius: var(--radius-full); }

/* Top Bar */
.top-bar {
  background: var(--green-dark);
  color: rgba(255,255,255,0.85);
  font-size: 0.78rem;
  padding: 7px 0;
}
.top-bar-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}
.top-bar a { color: rgba(255,255,255,0.85); transition: var(--transition); }
.top-bar a:hover { color: var(--gold); }
.top-bar .left, .top-bar .right {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}
.top-bar i { margin-right: 5px; color: var(--gold); }

/* 7. Hero Sections
   ============================================================ */
/* Islamic geometric SVG pattern as base64 data URL */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: linear-gradient(160deg, var(--green-dark) 0%, #0f5c2e 40%, #1a6b3a 70%, #0d4f26 100%);
  padding-top: 110px;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 15% 85%, rgba(201,160,48,.15) 0%, transparent 50%),
    radial-gradient(circle at 85% 15%, rgba(201,160,48,.1) 0%, transparent 50%),
    url("data:image/svg+xml,%3Csvg width='80' height='80' viewBox='0 0 80 80' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none'%3E%3Cpath d='M40 5 L47 27 L70 27 L52 41 L59 63 L40 50 L21 63 L28 41 L10 27 L33 27 Z' fill='rgba(255,255,255,0.03)' stroke='rgba(201,160,48,0.08)' stroke-width='0.5'/%3E%3C/g%3E%3C/svg%3E");
  background-size: auto, auto, 80px 80px;
}
.hero::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 120px;
  background: linear-gradient(to top, var(--white), transparent);
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
  text-align: center;
  margin: 0 auto;
  padding: 4rem 0;
}
.hero-bismillah {
  font-size: 1.8rem;
  color: var(--gold);
  letter-spacing: 0.1em;
  margin-bottom: 1.5rem;
  opacity: 0.9;
  font-family: 'Times New Roman', serif;
}
.hero-label {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gold);
  border: 1px solid rgba(201,160,48,0.5);
  padding: 6px 18px;
  border-radius: var(--radius-full);
  margin-bottom: 1.5rem;
}
.hero h1 {
  color: var(--white);
  margin-bottom: 1.25rem;
  text-shadow: 0 2px 20px rgba(0,0,0,.3);
}
.hero h1 span { color: var(--gold); }
.hero-sub {
  font-size: clamp(1rem, 2vw, 1.2rem);
  color: rgba(255,255,255,.85);
  max-width: 600px;
  margin: 0 auto 2.5rem;
  line-height: 1.7;
}
.hero-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}
.hero-scroll {
  position: absolute;
  bottom: 130px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: rgba(255,255,255,.6);
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  animation: fadeUp 2s ease infinite;
}
.hero-scroll i { font-size: 1.2rem; }

/* Page Hero (for inner pages) */
.page-hero {
  background: linear-gradient(135deg, var(--green-dark) 0%, #0f5c2e 50%, #1a6b3a 100%);
  padding: 140px 0 70px;
  position: relative;
  overflow: hidden;
}
.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg width='80' height='80' viewBox='0 0 80 80' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M40 5 L47 27 L70 27 L52 41 L59 63 L40 50 L21 63 L28 41 L10 27 L33 27 Z' fill='rgba(255,255,255,0.02)' stroke='rgba(201,160,48,0.06)' stroke-width='0.5'/%3E%3C/svg%3E");
  background-size: 80px 80px;
}
.page-hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
}
.page-hero-content h1 { color: var(--white); margin-bottom: 0.75rem; }
.page-hero-content p  { color: rgba(255,255,255,.8); font-size: 1.05rem; max-width: 560px; margin: 0 auto; }
.breadcrumb {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.82rem;
  color: rgba(255,255,255,.6);
  margin-bottom: 1rem;
}
.breadcrumb a { color: var(--gold); }
.breadcrumb i { font-size: 0.65rem; }

/* 8. Cards
   ============================================================ */
.card {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  border: 1px solid var(--border);
}
.card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); }

.card-body { padding: 1.75rem; }
.card-body h3 { margin-bottom: 0.75rem; color: var(--green-dark); }

.feature-card {
  padding: 2rem;
  border-radius: var(--radius-lg);
  background: var(--white);
  border: 1px solid var(--border);
  text-align: center;
  transition: var(--transition);
  box-shadow: var(--shadow-sm);
}
.feature-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: var(--green-light); }
.feature-card .icon {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  background: var(--green-light);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.25rem;
  font-size: 1.6rem;
  color: var(--green-primary);
  transition: var(--transition);
}
.feature-card:hover .icon { background: var(--green-primary); color: var(--white); }
.feature-card h3 { font-size: 1.1rem; margin-bottom: 0.6rem; color: var(--green-dark); }
.feature-card p  { font-size: 0.92rem; color: var(--text-muted); }

.news-card .card-img {
  height: 200px;
  background: linear-gradient(135deg, var(--green-light), var(--green-dark));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  color: rgba(255,255,255,.4);
  position: relative;
  overflow: hidden;
}
.news-card .card-img::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, transparent 50%, rgba(0,0,0,.3));
}
.news-card .card-img .news-icon { position: relative; z-index: 1; }
.news-card .card-img .category {
  position: absolute;
  bottom: 12px;
  left: 16px;
  z-index: 2;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: var(--gold);
  color: var(--dark);
  padding: 4px 10px;
  border-radius: var(--radius-full);
}
.news-card .card-body .date {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
}
.news-card .card-body h3 { font-size: 1.05rem; margin-bottom: 0.6rem; }
.news-card .card-body p  { font-size: 0.88rem; color: var(--text-muted); }
.news-card .read-more {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--green-primary);
  margin-top: 0.75rem;
  transition: var(--transition);
}
.news-card .read-more:hover { gap: 10px; }

/* 9. Stats Bar
   ============================================================ */
.stats-bar {
  background: linear-gradient(135deg, var(--green-dark), #1a5e30);
  padding: 60px 0;
  position: relative;
  overflow: hidden;
}
.stats-bar::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M30 3 L35 19 L52 19 L39 29 L44 46 L30 36 L16 46 L21 29 L8 19 L25 19 Z' fill='rgba(255,255,255,0.02)'/%3E%3C/svg%3E");
  background-size: 60px 60px;
}
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 2rem; position: relative; }
.stat-item { text-align: center; }
.stat-item .number {
  font-family: var(--font-heading);
  font-size: clamp(2.2rem, 4vw, 3rem);
  font-weight: 800;
  color: var(--gold);
  line-height: 1;
  margin-bottom: 0.4rem;
}
.stat-item .label {
  font-size: 0.88rem;
  color: rgba(255,255,255,.75);
  letter-spacing: 0.05em;
  line-height: 1.4;
}

/* 10. Welcome / Split Sections
   ============================================================ */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: center; }
.split.reverse { }

.img-frame {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-xl);
}
.img-frame .placeholder-img {
  width: 100%;
  height: 420px;
  background: linear-gradient(135deg, var(--green-light) 0%, var(--green-primary) 50%, var(--green-dark) 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,.5);
  font-size: 4rem;
}
.img-frame .placeholder-img span { font-family: var(--font-heading); font-size: 0.9rem; letter-spacing: 0.1em; margin-top: 1rem; }
.img-frame .badge {
  position: absolute;
  bottom: 24px;
  right: 24px;
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 14px 20px;
  box-shadow: var(--shadow-lg);
  text-align: center;
}
.img-frame .badge .number {
  font-family: var(--font-heading);
  font-size: 2rem;
  font-weight: 800;
  color: var(--green-primary);
  line-height: 1;
}
.img-frame .badge .text { font-size: 0.72rem; color: var(--text-muted); }

.content-block .eyebrow {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1rem;
}
.content-block h2 { margin-bottom: 1rem; color: var(--green-dark); }
.content-block .lead {
  font-size: 1.05rem;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
  line-height: 1.75;
}
.content-block .signature {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  color: var(--green-primary);
  font-style: italic;
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
}
.content-block .signature span { display: block; font-style: normal; font-size: 0.82rem; color: var(--text-muted); margin-top: 2px; }

.check-list { margin: 1.25rem 0; }
.check-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 8px 0;
  font-size: 0.95rem;
}
.check-list li i { color: var(--green-primary); font-size: 0.9rem; margin-top: 3px; flex-shrink: 0; }

/* 11. Testimonials
   ============================================================ */
.testimonials-section { background: var(--off-white); }

.testimonial-slider { position: relative; overflow: hidden; }
.testimonials-track { display: flex; transition: transform 0.5s ease; }
.testimonial-card {
  min-width: 100%;
  padding: 2.5rem;
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  text-align: center;
  border: 1px solid var(--border);
}
.testimonial-card .quote-icon {
  font-size: 3rem;
  color: var(--gold);
  opacity: 0.4;
  font-family: Georgia, serif;
  line-height: 1;
  margin-bottom: 0.5rem;
}
.testimonial-card p {
  font-size: 1.05rem;
  color: var(--text);
  font-style: italic;
  line-height: 1.8;
  max-width: 660px;
  margin: 0 auto 1.5rem;
}
.testimonial-card .stars { color: var(--gold); letter-spacing: 3px; margin-bottom: 1.25rem; }
.testimonial-card .author { font-weight: 700; color: var(--green-dark); }
.testimonial-card .role { font-size: 0.82rem; color: var(--text-muted); }

.slider-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 1.5rem;
}
.slider-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--border);
  cursor: pointer;
  transition: var(--transition);
  border: none;
}
.slider-dot.active { background: var(--green-primary); width: 28px; border-radius: 5px; }
.slider-nav { display: flex; justify-content: center; gap: 1rem; margin-top: 1.5rem; }
.slider-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 2px solid var(--green-primary);
  background: transparent;
  color: var(--green-primary);
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
}
.slider-btn:hover { background: var(--green-primary); color: var(--white); }

/* 12. CTA Section
   ============================================================ */
.cta-section {
  background: linear-gradient(135deg, var(--green-dark) 0%, var(--green-primary) 100%);
  padding: 80px 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg width='100' height='100' viewBox='0 0 100 100' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M50 6 L58 32 L85 32 L63 50 L71 76 L50 58 L29 76 L37 50 L15 32 L42 32 Z' fill='rgba(255,255,255,0.03)'/%3E%3C/svg%3E");
  background-size: 100px 100px;
}
.cta-section h2 { color: var(--white); margin-bottom: 1rem; position: relative; }
.cta-section p  { color: rgba(255,255,255,.8); max-width: 560px; margin: 0 auto 2rem; position: relative; }
.cta-actions { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; position: relative; }

/* 13. Accordion / FAQ
   ============================================================ */
.accordion-item {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: 0.75rem;
  transition: var(--transition);
}
.accordion-item.open { border-color: var(--green-primary); box-shadow: var(--shadow-sm); }
.accordion-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.1rem 1.4rem;
  cursor: pointer;
  background: var(--white);
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--text);
  transition: var(--transition);
  user-select: none;
}
.accordion-header:hover { background: var(--green-pale); color: var(--green-primary); }
.accordion-item.open .accordion-header { background: var(--green-pale); color: var(--green-primary); }
.accordion-icon {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--green-light);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: var(--transition);
}
.accordion-item.open .accordion-icon { background: var(--green-primary); color: var(--white); transform: rotate(45deg); }
.accordion-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease;
}
.accordion-body-inner { padding: 0 1.4rem 1.2rem; color: var(--text-muted); font-size: 0.93rem; line-height: 1.75; }

/* 14. Tabs
   ============================================================ */
.tab-nav {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  border-bottom: 2px solid var(--border);
  margin-bottom: 2rem;
}
.tab-btn {
  padding: 10px 22px;
  border: none;
  background: none;
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-muted);
  cursor: pointer;
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
  transition: var(--transition);
}
.tab-btn:hover { color: var(--green-primary); }
.tab-btn.active { color: var(--green-primary); border-bottom-color: var(--green-primary); }
.tab-panel { display: none; }
.tab-panel.active { display: block; }

/* 15. Department Cards
   ============================================================ */
.dept-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: var(--transition);
}
.dept-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-4px); }
.dept-card-header {
  background: linear-gradient(135deg, var(--green-dark), var(--green-mid));
  padding: 1.5rem;
  display: flex;
  align-items: center;
  gap: 1rem;
}
.dept-card-header .dept-icon {
  width: 52px;
  height: 52px;
  background: rgba(255,255,255,.15);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  color: var(--gold);
}
.dept-card-header h3 { color: var(--white); font-size: 1rem; }
.dept-card-header p  { color: rgba(255,255,255,.7); font-size: 0.78rem; }
.dept-card-body { padding: 1.5rem; }
.dept-card-body .subjects {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.dept-card-body .subject-tag {
  font-size: 0.75rem;
  padding: 4px 12px;
  border-radius: var(--radius-full);
  background: var(--green-light);
  color: var(--green-dark);
  font-weight: 500;
}

/* 16. Timeline
   ============================================================ */
.timeline { position: relative; padding-left: 2rem; }
.timeline::before {
  content: '';
  position: absolute;
  left: 0;
  top: 8px;
  bottom: 8px;
  width: 2px;
  background: linear-gradient(to bottom, var(--green-primary), var(--gold));
}
.timeline-item {
  position: relative;
  margin-bottom: 2rem;
  padding-left: 1.5rem;
}
.timeline-item::before {
  content: '';
  position: absolute;
  left: -2.5rem;
  top: 8px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--gold);
  border: 3px solid var(--white);
  box-shadow: 0 0 0 2px var(--gold);
}
.timeline-item h4 { color: var(--green-dark); margin-bottom: 0.3rem; }
.timeline-item p  { font-size: 0.9rem; color: var(--text-muted); }
.timeline-year {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--gold);
  background: var(--gold-light);
  padding: 3px 10px;
  border-radius: var(--radius-full);
  margin-bottom: 0.4rem;
}

/* 17. Team Cards
   ============================================================ */
.team-card {
  text-align: center;
  padding: 2rem 1.5rem;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  background: var(--white);
  transition: var(--transition);
}
.team-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-5px); }
.team-card .avatar {
  width: 90px;
  height: 90px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--green-primary), var(--green-dark));
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.25rem;
  font-size: 2.2rem;
  color: var(--gold);
  font-family: var(--font-heading);
  font-weight: 700;
  box-shadow: 0 4px 15px rgba(26,107,56,.3);
}
.team-card h4 { margin-bottom: 0.3rem; color: var(--green-dark); }
.team-card .position { font-size: 0.82rem; color: var(--gold-dark); font-weight: 600; margin-bottom: 0.75rem; }
.team-card p  { font-size: 0.88rem; color: var(--text-muted); }

/* 18. Values List
   ============================================================ */
.values-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.5rem; }
.value-item {
  display: flex;
  gap: 1rem;
  padding: 1.25rem;
  border-radius: var(--radius);
  background: var(--white);
  border: 1px solid var(--border);
  transition: var(--transition);
}
.value-item:hover { border-color: var(--green-primary); box-shadow: var(--shadow); }
.value-item .icon {
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  border-radius: var(--radius);
  background: var(--green-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  color: var(--green-primary);
}
.value-item h4 { font-size: 0.95rem; margin-bottom: 0.3rem; color: var(--green-dark); }
.value-item p  { font-size: 0.84rem; color: var(--text-muted); }

/* 19. Steps / Process
   ============================================================ */
.steps { counter-reset: step; }
.step-item {
  display: flex;
  gap: 1.5rem;
  margin-bottom: 2rem;
  position: relative;
}
.step-item:not(:last-child)::after {
  content: '';
  position: absolute;
  left: 23px;
  top: 54px;
  width: 2px;
  bottom: -1rem;
  background: linear-gradient(to bottom, var(--green-primary), transparent);
}
.step-num {
  counter-increment: step;
  width: 48px;
  height: 48px;
  flex-shrink: 0;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--green-primary), var(--green-dark));
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.1rem;
  box-shadow: 0 4px 12px rgba(26,107,56,.3);
}
.step-content h4 { margin-bottom: 0.4rem; color: var(--green-dark); }
.step-content p  { font-size: 0.92rem; color: var(--text-muted); }

/* 20. Fee Table
   ============================================================ */
.fee-table { width: 100%; border-collapse: collapse; border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow); }
.fee-table thead { background: var(--green-dark); color: var(--white); }
.fee-table th { padding: 14px 20px; text-align: left; font-size: 0.88rem; font-weight: 600; letter-spacing: 0.05em; }
.fee-table td { padding: 14px 20px; border-bottom: 1px solid var(--border); font-size: 0.9rem; background: var(--white); }
.fee-table tr:last-child td { border-bottom: none; }
.fee-table tr:nth-child(even) td { background: var(--green-pale); }
.fee-table .amount { font-weight: 700; color: var(--green-primary); }
.fee-table .note { font-size: 0.78rem; color: var(--text-muted); font-style: italic; }

/* 21. Contact Section
   ============================================================ */
.contact-grid { display: grid; grid-template-columns: 1fr 1.4fr; gap: 3rem; }
.contact-info-list { display: flex; flex-direction: column; gap: 1.5rem; }
.contact-info-item {
  display: flex;
  gap: 1rem;
  padding: 1.25rem;
  border-radius: var(--radius-lg);
  background: var(--green-pale);
  border: 1px solid var(--green-light);
  transition: var(--transition);
}
.contact-info-item:hover { border-color: var(--green-primary); box-shadow: var(--shadow); }
.contact-info-item .icon {
  width: 46px;
  height: 46px;
  flex-shrink: 0;
  border-radius: 50%;
  background: var(--green-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  color: var(--white);
}
.contact-info-item h4 { font-size: 0.85rem; color: var(--text-muted); font-weight: 500; margin-bottom: 0.25rem; }
.contact-info-item p  { font-size: 0.95rem; font-weight: 600; color: var(--text); margin-bottom: 0; }
.contact-info-item a  { color: var(--green-primary); }

.contact-form { background: var(--white); border-radius: var(--radius-lg); padding: 2.5rem; box-shadow: var(--shadow); border: 1px solid var(--border); }
.form-group { margin-bottom: 1.25rem; }
.form-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 0.4rem;
}
.form-control {
  width: 100%;
  padding: 12px 16px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: 0.92rem;
  color: var(--text);
  background: var(--white);
  transition: var(--transition);
  outline: none;
}
.form-control:focus { border-color: var(--green-primary); box-shadow: 0 0 0 3px rgba(26,107,56,.1); }
textarea.form-control { resize: vertical; min-height: 130px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }

.map-container {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
  background: var(--green-light);
  height: 280px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border);
  margin-top: 2rem;
  color: var(--green-primary);
  font-size: 0.9rem;
  flex-direction: column;
  gap: 0.5rem;
}
.map-container i { font-size: 2rem; }

/* 22. Club / Activity Cards
   ============================================================ */
.activity-card {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--white);
  transition: var(--transition);
}
.activity-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-5px); }
.activity-card-header {
  padding: 2rem;
  background: linear-gradient(135deg, var(--green-primary), var(--green-dark));
  text-align: center;
}
.activity-card-header .icon { font-size: 2.5rem; margin-bottom: 0.75rem; }
.activity-card-header h3 { color: var(--white); font-size: 1.1rem; margin-bottom: 0.25rem; }
.activity-card-header p  { color: rgba(255,255,255,.7); font-size: 0.8rem; }
.activity-card-body { padding: 1.5rem; }
.activity-card-body ul li {
  padding: 6px 0;
  font-size: 0.88rem;
  color: var(--text-muted);
  border-bottom: 1px dashed var(--border);
  display: flex;
  align-items: center;
  gap: 8px;
}
.activity-card-body ul li::before {
  content: '◆';
  font-size: 0.4rem;
  color: var(--gold);
  flex-shrink: 0;
}
.activity-card-body ul li:last-child { border-bottom: none; }

/* 23. Event Items
   ============================================================ */
.event-item {
  display: flex;
  gap: 1.25rem;
  padding: 1.25rem;
  border-radius: var(--radius-lg);
  background: var(--white);
  border: 1px solid var(--border);
  transition: var(--transition);
  align-items: flex-start;
}
.event-item:hover { border-color: var(--green-primary); box-shadow: var(--shadow); }
.event-date {
  min-width: 60px;
  text-align: center;
  background: var(--green-primary);
  color: var(--white);
  border-radius: var(--radius);
  padding: 10px 8px;
  flex-shrink: 0;
}
.event-date .day { font-size: 1.5rem; font-weight: 800; font-family: var(--font-heading); line-height: 1; }
.event-date .month { font-size: 0.65rem; letter-spacing: 0.1em; text-transform: uppercase; }
.event-info h4 { margin-bottom: 0.3rem; font-size: 0.98rem; }
.event-info p  { font-size: 0.84rem; color: var(--text-muted); margin-bottom: 0.4rem; }
.event-info .meta { display: flex; gap: 1rem; font-size: 0.78rem; color: var(--text-muted); }
.event-info .meta i { color: var(--gold); margin-right: 4px; }

/* 24. Achievement Badges
   ============================================================ */
.achievement-item {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  padding: 1.25rem;
  border-radius: var(--radius-lg);
  background: var(--white);
  border: 1px solid var(--border);
  transition: var(--transition);
}
.achievement-item:hover { box-shadow: var(--shadow); border-color: var(--gold); }
.achievement-item .badge {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--gold), var(--gold-dark));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  color: var(--white);
  flex-shrink: 0;
  box-shadow: 0 4px 10px rgba(201,160,48,.3);
}
.achievement-item h4 { font-size: 0.95rem; margin-bottom: 0.25rem; color: var(--green-dark); }
.achievement-item p  { font-size: 0.84rem; color: var(--text-muted); margin-bottom: 0; }
.achievement-item .year { font-size: 0.75rem; font-weight: 700; color: var(--gold-dark); }

/* 25. Footer
   ============================================================ */
#footer {
  background: linear-gradient(160deg, #0b3d1f 0%, #0d4422 100%);
  color: rgba(255,255,255,.75);
  padding-top: 70px;
}
.footer-motto {
  text-align: center;
  padding: 1.5rem;
  border-bottom: 1px solid rgba(255,255,255,.08);
  font-family: var(--font-heading);
  font-size: 1rem;
  color: var(--gold);
  letter-spacing: 0.15em;
  font-style: italic;
}
.footer-motto span { color: rgba(255,255,255,.5); font-style: normal; font-size: 0.75rem; display: block; letter-spacing: 0.05em; margin-top: 4px; }
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 3rem;
  padding: 3rem 0;
}
.footer-brand .logo {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 1.25rem;
}
.footer-brand .logo-icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(201,160,48,.15);
  border: 1px solid rgba(201,160,48,.3);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  color: var(--gold);
}
.footer-brand .logo-text { font-family: var(--font-heading); color: var(--white); font-size: 1rem; }
.footer-brand .logo-text small { display: block; font-family: var(--font-body); font-size: 0.72rem; color: rgba(255,255,255,.5); }
.footer-brand p { font-size: 0.88rem; line-height: 1.7; color: rgba(255,255,255,.6); }
.social-links { display: flex; gap: 0.75rem; margin-top: 1.25rem; }
.social-link {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.12);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  color: rgba(255,255,255,.6);
  transition: var(--transition);
}
.social-link:hover { background: var(--gold); border-color: var(--gold); color: var(--dark); }

.footer-col h5 { color: var(--white); font-size: 0.95rem; font-family: var(--font-body); margin-bottom: 1.25rem; position: relative; padding-bottom: 0.75rem; }
.footer-col h5::after { content: ''; position: absolute; bottom: 0; left: 0; width: 30px; height: 2px; background: var(--gold); }
.footer-col ul li { margin-bottom: 0.6rem; }
.footer-col ul li a {
  font-size: 0.86rem;
  color: rgba(255,255,255,.6);
  transition: var(--transition);
  display: flex;
  align-items: center;
  gap: 6px;
}
.footer-col ul li a:hover { color: var(--gold); padding-left: 4px; }
.footer-col ul li a i { font-size: 0.65rem; color: var(--gold); opacity: 0.6; }
.footer-contact-item { display: flex; gap: 10px; margin-bottom: 0.9rem; font-size: 0.86rem; color: rgba(255,255,255,.6); align-items: flex-start; }
.footer-contact-item i { color: var(--gold); margin-top: 3px; flex-shrink: 0; width: 16px; }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.08);
  padding: 1.5rem 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.8rem;
  color: rgba(255,255,255,.4);
  flex-wrap: wrap;
  gap: 0.5rem;
}
.footer-bottom a { color: var(--gold); opacity: 0.8; }

/* 26. Back to Top
   ============================================================ */
#back-to-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 46px;
  height: 46px;
  background: var(--green-primary);
  color: var(--white);
  border: none;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  box-shadow: var(--shadow-lg);
  opacity: 0;
  transform: translateY(20px);
  transition: var(--transition);
  z-index: 999;
}
#back-to-top.visible { opacity: 1; transform: translateY(0); }
#back-to-top:hover { background: var(--green-dark); transform: translateY(-3px); }

/* 27. Animations
   ============================================================ */
@keyframes fadeUp {
  0%, 100% { transform: translateX(-50%) translateY(0); opacity: 0.6; }
  50%       { transform: translateX(-50%) translateY(-8px); opacity: 1; }
}
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes slideInLeft {
  from { opacity: 0; transform: translateX(-30px); }
  to   { opacity: 1; transform: translateX(0); }
}

.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}
.reveal.visible { opacity: 1; transform: translateY(0); }
.reveal-left {
  opacity: 0;
  transform: translateX(-28px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}
.reveal-left.visible { opacity: 1; transform: translateX(0); }
.reveal-right {
  opacity: 0;
  transform: translateX(28px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}
.reveal-right.visible { opacity: 1; transform: translateX(0); }

/* 28. Inline Banners
   ============================================================ */
.alert-banner {
  background: var(--gold-light);
  border: 1px solid var(--gold);
  border-radius: var(--radius);
  padding: 0.9rem 1.2rem;
  font-size: 0.88rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--gold-dark);
}
.alert-banner i { font-size: 1rem; }

/* 29. Section with quote
   ============================================================ */
.quote-block {
  border-left: 4px solid var(--gold);
  padding: 1.5rem 1.5rem 1.5rem 2rem;
  background: var(--green-pale);
  border-radius: 0 var(--radius-lg) var(--radius-lg) 0;
  margin: 2rem 0;
}
.quote-block p {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-style: italic;
  color: var(--green-dark);
  line-height: 1.7;
}
.quote-block cite { font-size: 0.82rem; color: var(--text-muted); font-style: normal; margin-top: 0.5rem; display: block; }

/* 30. Responsive
   ============================================================ */
@media (max-width: 1024px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 2rem 3rem; }
  .contact-grid { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  .section-pad { padding: 60px 0; }
  .section-pad-sm { padding: 40px 0; }

  .nav-links { display: none; }
  .nav-toggle { display: flex; }
  .top-bar .right { display: none; }

  h1 { font-size: clamp(1.8rem, 6vw, 2.4rem); }
  h2 { font-size: clamp(1.5rem, 4vw, 2rem); }

  .hero { min-height: auto; padding: 120px 0 80px; }
  .hero-content { padding: 2rem 0; }

  .split { grid-template-columns: 1fr; gap: 2.5rem; }
  .split .reveal-right { order: -1; }

  .grid-2, .grid-3 { grid-template-columns: 1fr; }
  .values-grid { grid-template-columns: 1fr; }

  .stats-grid { grid-template-columns: repeat(2, 1fr); }

  .contact-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }

  .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
  .footer-bottom { flex-direction: column; text-align: center; }

  .tab-nav { overflow-x: auto; }
  .tab-btn { white-space: nowrap; }

  .top-bar-inner { justify-content: center; }
}

@media (max-width: 480px) {
  .container { padding: 0 1rem; }
  .hero-actions { flex-direction: column; }
  .hero-actions .btn { width: 100%; justify-content: center; }
  .cta-actions { flex-direction: column; align-items: center; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr; }
}
