@import url('https://fonts.googleapis.com/css2?family=Nunito:wght@400;500;600;700;800;900&display=swap');

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --primary: #FF6B35;
  --primary-dark: #E55B28;
  --primary-light: #FF8C5A;
  --secondary: #42A5F5;
  --accent: #FFD54F;
  --success: #66BB6A;
  --bg: #FFFCF8;
  --surface: #FFFFFF;
  --text: #1A1A2E;
  --text-muted: #6B7280;
  --border: #E5E7EB;
  --shadow: 0 4px 24px rgba(0,0,0,0.07);
  --shadow-lg: 0 12px 40px rgba(0,0,0,0.13);
  --radius: 20px;
  --radius-sm: 12px;
  --header-height: 72px;
  --font: 'Nunito', system-ui, sans-serif;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  font-size: 16px;
}

/* ═══════════ HEADER ═══════════ */
header {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--header-height);
  background: rgba(255,255,255,0.97);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  z-index: 1000;
  display: flex;
  align-items: center;
  padding: 0 clamp(80px, 16%, 300px);
  justify-content: space-between;
  transition: box-shadow 0.3s;
}
header.scrolled { box-shadow: var(--shadow); }

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--text);
  flex-shrink: 0;
}
.logo-icon {
  width: 44px; height: 44px;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 22px; font-weight: 900; color: white;
  overflow: hidden;
  flex-shrink: 0;
}
.logo-icon img { width: 100%; height: 100%; object-fit: cover; display: block; }
.logo-name { font-weight: 900; font-size: 20px; color: var(--primary); line-height: 1; }
.logo-sub { font-size: 11px; color: var(--text-muted); font-weight: 600; text-transform: uppercase; letter-spacing: 0.5px; }

nav { display: flex; align-items: center; gap: 2px; }
nav a {
  text-decoration: none;
  color: var(--text);
  font-weight: 700;
  font-size: 14px;
  padding: 8px 13px;
  border-radius: 10px;
  transition: all 0.2s;
  white-space: nowrap;
}
nav a:hover { color: var(--primary); background: rgba(255,107,53,0.09); }
nav a.active { color: var(--primary); background: rgba(255,107,53,0.11); }

.header-right { display: flex; align-items: center; gap: 12px; }

.lang-switcher {
  display: flex;
  background: var(--border);
  border-radius: 20px;
  padding: 3px;
}
.lang-btn {
  border: none; background: none;
  padding: 4px 13px; border-radius: 16px;
  font-size: 13px; font-weight: 800;
  cursor: pointer; color: var(--text-muted);
  transition: all 0.2s; font-family: var(--font);
}
.lang-btn.active {
  background: white; color: var(--primary);
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.hamburger {
  display: none; flex-direction: column; gap: 5px;
  cursor: pointer; padding: 8px; border: none; background: none;
}
.hamburger span {
  display: block; width: 24px; height: 2px;
  background: var(--text); border-radius: 2px; transition: all 0.3s;
}

/* ═══════════ BUTTONS ═══════════ */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 14px 32px; border-radius: 50px;
  font-size: 16px; font-weight: 700;
  text-decoration: none; cursor: pointer; border: none;
  transition: all 0.3s; font-family: var(--font);
}
.btn-primary { background: white; color: var(--primary); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 8px 30px rgba(0,0,0,0.15); }
.btn-outline { background: transparent; color: white; border: 2px solid rgba(255,255,255,0.6); }
.btn-outline:hover { background: rgba(255,255,255,0.15); transform: translateY(-2px); }
.btn-orange { background: var(--primary); color: white; }
.btn-orange:hover { background: var(--primary-dark); transform: translateY(-2px); box-shadow: 0 8px 20px rgba(255,107,53,0.4); }
.btn-sm { padding: 9px 22px; font-size: 14px; }

/* ═══════════ HERO ═══════════ */
.hero {
  min-height: 100vh;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, #FF6B35 0%, #FF8C5A 50%, #FFD54F 100%);
  text-align: center;
  padding: calc(var(--header-height) + 40px) 24px 80px;
  position: relative; overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute; inset: 0;
  background-image: radial-gradient(circle at 20% 50%, rgba(255,255,255,0.06) 0%, transparent 50%),
                    radial-gradient(circle at 80% 20%, rgba(255,255,255,0.08) 0%, transparent 40%);
}
.hero-content { max-width: 720px; position: relative; z-index: 1; }
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(255,255,255,0.2); border: 1px solid rgba(255,255,255,0.3);
  border-radius: 50px; padding: 8px 22px;
  font-size: 14px; font-weight: 700; color: white;
  margin-bottom: 24px; backdrop-filter: blur(10px);
}
.hero h1 {
  font-size: clamp(32px, 6vw, 64px); font-weight: 900;
  color: white; line-height: 1.1; margin-bottom: 20px;
  text-shadow: 0 2px 20px rgba(0,0,0,0.1);
}
.hero p { font-size: clamp(16px, 2.5vw, 20px); color: rgba(255,255,255,0.9); margin-bottom: 40px; font-weight: 500; }
.hero-buttons { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }
.hero-stats {
  display: flex; gap: 48px; justify-content: center;
  margin-top: 64px; flex-wrap: wrap;
}
.hero-stat { color: white; text-align: center; }
.hero-stat-num { font-size: 40px; font-weight: 900; line-height: 1; }
.hero-stat-lbl { font-size: 13px; opacity: 0.8; font-weight: 600; margin-top: 4px; }

/* ═══════════ SECTIONS ═══════════ */
section { padding: 80px 24px; }
.container { max-width: 1200px; margin: 0 auto; }

.section-header { text-align: center; margin-bottom: 56px; }
.section-label {
  display: inline-block;
  background: rgba(255,107,53,0.1); color: var(--primary);
  font-size: 12px; font-weight: 800; text-transform: uppercase;
  letter-spacing: 1.5px; padding: 6px 18px; border-radius: 50px; margin-bottom: 14px;
}
.section-title { font-size: clamp(24px, 4vw, 40px); font-weight: 900; color: var(--text); margin-bottom: 14px; line-height: 1.2; }
.section-subtitle { font-size: 17px; color: var(--text-muted); max-width: 560px; margin: 0 auto; font-weight: 500; }

/* ═══════════ NEWS ═══════════ */
.news-section { background: white; }
.news-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 28px; }
.news-card {
  background: white; border-radius: var(--radius);
  overflow: hidden; box-shadow: var(--shadow); transition: all 0.3s;
  border: 1px solid var(--border);
}
.news-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); }
.news-card-img {
  width: 100%; height: 200px; object-fit: cover; display: block;
}
.news-card-img-ph {
  width: 100%; height: 200px;
  background: linear-gradient(135deg, var(--primary-light), var(--accent));
  display: flex; align-items: center; justify-content: center; font-size: 52px;
}
.news-card-body { padding: 24px; }
.news-date { font-size: 12px; color: var(--text-muted); font-weight: 700; text-transform: uppercase; letter-spacing: 1px; margin-bottom: 10px; }
.news-title { font-size: 18px; font-weight: 800; color: var(--text); margin-bottom: 10px; line-height: 1.3; }
.news-text { font-size: 14px; color: var(--text-muted); line-height: 1.6; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }

/* ═══════════ ABOUT ═══════════ */
.about-section { background: var(--bg); }
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.about-img-wrap { position: relative; }
.about-img { width: 100%; border-radius: var(--radius); object-fit: cover; height: 460px; }
.about-img-ph {
  width: 100%; height: 460px; border-radius: var(--radius);
  background: linear-gradient(135deg, var(--secondary), var(--primary-light));
  display: flex; align-items: center; justify-content: center; font-size: 80px;
}
.about-badge {
  position: absolute; bottom: -20px; right: -20px;
  background: var(--primary); color: white; padding: 22px 24px;
  border-radius: 16px; text-align: center; box-shadow: 0 8px 24px rgba(255,107,53,0.35);
}
.about-badge-num { font-size: 34px; font-weight: 900; line-height: 1; }
.about-badge-lbl { font-size: 12px; font-weight: 700; opacity: 0.85; margin-top: 4px; }
.about-content h2 { font-size: clamp(24px, 3.5vw, 36px); font-weight: 900; margin-bottom: 20px; line-height: 1.2; }
.about-content p { font-size: 16px; color: var(--text-muted); line-height: 1.75; margin-bottom: 32px; }
.groups-list { display: flex; flex-direction: column; gap: 12px; }
.group-item {
  display: flex; align-items: center; gap: 16px;
  padding: 16px 20px; background: white;
  border-radius: var(--radius-sm); border: 1px solid var(--border);
}
.group-icon {
  width: 44px; height: 44px; border-radius: 12px;
  display: flex; align-items: center; justify-content: center; font-size: 20px; flex-shrink: 0;
}
.gi-orange { background: rgba(255,107,53,0.12); }
.gi-blue   { background: rgba(66,165,245,0.12); }
.gi-green  { background: rgba(102,187,106,0.12); }
.group-img { width: 56px; height: 56px; border-radius: 12px; object-fit: cover; flex-shrink: 0; }
.group-name { font-size: 15px; font-weight: 800; color: var(--text); }
.group-sub  { font-size: 13px; color: var(--text-muted); font-weight: 500; }

/* ═══════════ PROGRAMS ═══════════ */
.programs-section { background: white; }
.programs-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 28px; }
.program-card {
  background: var(--bg); border-radius: var(--radius);
  padding: 36px 28px; text-align: center;
  border: 2px solid var(--border); transition: all 0.3s;
}
.program-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: var(--primary); }
.program-icon { font-size: 52px; margin-bottom: 20px; display: block; }
.program-title { font-size: 19px; font-weight: 800; color: var(--text); margin-bottom: 12px; }
.program-desc { font-size: 14px; color: var(--text-muted); line-height: 1.65; }

/* ═══════════ TEAM ═══════════ */
.team-section { background: var(--bg); }
.team-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 28px; }
.team-card {
  background: white; border-radius: var(--radius);
  overflow: hidden; box-shadow: var(--shadow); transition: all 0.3s; text-align: center;
}
.team-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); }
.team-photo { width: 100%; height: 220px; object-fit: cover; object-position: top; }
.team-photo-ph {
  width: 100%; height: 220px;
  background: linear-gradient(135deg, var(--secondary), var(--accent));
  display: flex; align-items: center; justify-content: center; font-size: 70px;
}
.team-info { padding: 20px; }
.team-name { font-size: 15px; font-weight: 800; color: var(--text); margin-bottom: 6px; }
.team-role { font-size: 13px; color: var(--primary); font-weight: 700; }
.team-bio { font-size: 13px; color: var(--text-muted); margin-top: 10px; line-height: 1.5; }

/* ═══════════ GALLERY ═══════════ */
.gallery-section { background: white; }
.gallery-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 16px; }
.gallery-item { position: relative; border-radius: var(--radius-sm); overflow: hidden; cursor: pointer; aspect-ratio: 4/3; }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s; }
.gallery-item:hover img { transform: scale(1.06); }
.gallery-overlay {
  position: absolute; inset: 0;
  background: rgba(255,107,53,0.55);
  display: flex; align-items: center; justify-content: center;
  opacity: 0; transition: opacity 0.3s; font-size: 36px; color: white;
}
.gallery-item:hover .gallery-overlay { opacity: 1; }

.gallery-overlay-btns { display: flex; gap: 10px; }
.gal-btn {
  width: 44px; height: 44px; border-radius: 10px; border: none;
  cursor: pointer; display: flex; align-items: center; justify-content: center;
  font-size: 18px; transition: transform 0.2s; backdrop-filter: blur(6px);
}
.gal-btn-view { background: rgba(255,255,255,0.25); color: white; }
.gal-btn-dl   { background: rgba(255,255,255,0.9);  color: var(--primary); }
.gal-btn:hover { transform: scale(1.12); }

.att-file-link {
  display: inline-flex; align-items: center; gap: 7px;
  margin-top: 12px; padding: 8px 18px;
  background: rgba(255,107,53,0.1); color: var(--primary);
  border-radius: 8px; font-size: 13px; font-weight: 700;
  text-decoration: none; transition: background 0.2s;
}
.att-file-link:hover { background: rgba(255,107,53,0.2); }

/* Lightbox */
.lightbox {
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.92); z-index: 9999;
  display: flex; align-items: center; justify-content: center;
  padding: 20px; opacity: 0; pointer-events: none; transition: opacity 0.3s;
}
.lightbox.open { opacity: 1; pointer-events: auto; }
.lightbox img { max-width: 90vw; max-height: 90vh; object-fit: contain; border-radius: 12px; }
.lb-close {
  position: fixed; top: 20px; right: 20px;
  width: 48px; height: 48px;
  background: rgba(255,255,255,0.12); border: none; border-radius: 50%;
  color: white; font-size: 22px; cursor: pointer; display: flex;
  align-items: center; justify-content: center; transition: background 0.2s;
}
.lb-close:hover { background: rgba(255,255,255,0.25); }

/* ═══════════ CONTACT SECTION (homepage) ═══════════ */
.contact-home { background: linear-gradient(135deg, #1A1A2E 0%, #2D2D5E 100%); }
.contact-home-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: start; }
.contact-home .section-title { color: white; }
.contact-home .section-subtitle { color: rgba(255,255,255,0.65); }
.contact-items { display: flex; flex-direction: column; gap: 20px; margin-top: 32px; }
.contact-item { display: flex; align-items: center; gap: 16px; }
.contact-icon {
  width: 50px; height: 50px;
  background: rgba(255,107,53,0.2); border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  font-size: 20px; flex-shrink: 0;
}
.contact-lbl { font-size: 12px; color: rgba(255,255,255,0.5); font-weight: 700; text-transform: uppercase; letter-spacing: 1px; }
.contact-val { font-size: 16px; color: white; font-weight: 600; margin-top: 2px; }
.contact-val a { color: white; text-decoration: none; }
.contact-val a:hover { color: var(--accent); }

.contact-form { display: flex; flex-direction: column; gap: 16px; }
.form-group { display: flex; flex-direction: column; gap: 8px; }
.form-group label { font-size: 13px; font-weight: 700; color: rgba(255,255,255,0.65); text-transform: uppercase; letter-spacing: 0.5px; }
.form-group input,
.form-group textarea,
.form-group select {
  padding: 14px 18px; border-radius: var(--radius-sm);
  border: 1px solid rgba(255,255,255,0.15);
  background: rgba(255,255,255,0.08);
  color: white; font-size: 15px; font-family: var(--font);
  transition: border-color 0.2s; outline: none;
}
.form-group input::placeholder,
.form-group textarea::placeholder { color: rgba(255,255,255,0.3); }
.form-group input:focus,
.form-group textarea:focus { border-color: var(--primary); }
.form-group textarea { resize: vertical; min-height: 120px; }

/* ═══════════ FOOTER ═══════════ */
footer { background: #111827; color: rgba(255,255,255,0.65); padding: 60px 24px 30px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 48px; max-width: 1200px; margin: 0 auto 48px; }
.footer-logo .logo-name { color: white; }
.footer-logo .logo-sub { color: rgba(255,255,255,0.35); }
.footer-desc { margin-top: 16px; font-size: 14px; line-height: 1.7; color: rgba(255,255,255,0.45); }
.footer-heading { font-size: 13px; font-weight: 800; color: white; text-transform: uppercase; letter-spacing: 1px; margin-bottom: 18px; }
.footer-links { display: flex; flex-direction: column; gap: 10px; }
.footer-links a { color: rgba(255,255,255,0.5); text-decoration: none; font-size: 14px; transition: color 0.2s; font-weight: 500; }
.footer-links a:hover { color: var(--primary); }
.footer-social { display: flex; gap: 12px; margin-top: 20px; }
.social-icon {
  width: 40px; height: 40px; border-radius: 10px;
  background: rgba(255,255,255,0.07);
  display: flex; align-items: center; justify-content: center;
  font-size: 18px; text-decoration: none;
  transition: background 0.2s;
}
.social-icon:hover { background: rgba(255,107,53,0.3); }
.footer-bottom {
  max-width: 1200px; margin: 0 auto;
  padding-top: 28px; border-top: 1px solid rgba(255,255,255,0.07);
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: 12px; font-size: 13px;
}
.footer-bottom a { color: var(--primary); text-decoration: none; }

/* ═══════════ PAGE BANNER ═══════════ */
.page-banner {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
  padding: calc(var(--header-height) + 60px) 24px 60px;
  text-align: center; color: white;
}
.page-banner h1 { font-size: clamp(28px, 5vw, 50px); font-weight: 900; margin-bottom: 12px; }
.page-banner p { font-size: 17px; opacity: 0.85; font-weight: 500; }
.breadcrumb { display: flex; align-items: center; justify-content: center; gap: 8px; margin-bottom: 16px; font-size: 14px; opacity: 0.8; }
.breadcrumb a { color: white; text-decoration: none; }
.breadcrumb a:hover { opacity: 0.7; }

/* ═══════════ ATTESTATION ═══════════ */
.att-list { display: flex; flex-direction: column; gap: 20px; max-width: 820px; margin: 0 auto; }
.att-item {
  background: white; border-radius: var(--radius);
  padding: 28px 32px; display: flex; gap: 22px;
  align-items: center; box-shadow: var(--shadow);
  border: 1px solid var(--border); transition: all 0.3s;
}
.att-item:hover { transform: translateX(6px); border-color: var(--primary); }
.att-icon {
  width: 58px; height: 58px; background: rgba(255,107,53,0.1);
  border-radius: 14px; display: flex; align-items: center;
  justify-content: center; font-size: 28px; flex-shrink: 0;
}
.att-title { font-size: 17px; font-weight: 800; color: var(--text); margin-bottom: 6px; }
.att-desc { font-size: 14px; color: var(--text-muted); line-height: 1.5; }
.att-date { font-size: 12px; color: var(--primary); font-weight: 700; margin-top: 8px; }

/* ═══════════ CONTACTS PAGE ═══════════ */
.contacts-page { background: white; }
.contacts-grid { display: grid; grid-template-columns: 1fr 1.4fr; gap: 60px; align-items: start; }
.contact-card {
  background: white; border-radius: var(--radius);
  padding: 40px; box-shadow: var(--shadow); border: 1px solid var(--border);
}
.contact-card h3 { font-size: 22px; font-weight: 900; margin-bottom: 28px; }
.contact-card .contact-item { margin-bottom: 20px; }
.contact-card .contact-icon { background: rgba(255,107,53,0.1); }
.contact-card .contact-lbl { color: var(--text-muted); }
.contact-card .contact-val { color: var(--text); }
.contact-card .contact-val a { color: var(--primary); }
.map-wrap { border-radius: var(--radius); overflow: hidden; height: 400px; box-shadow: var(--shadow); }
.map-wrap iframe { width: 100%; height: 100%; border: none; }
.contact-form-light .form-group label { color: var(--text-muted); }
.contact-form-light input,
.contact-form-light textarea {
  background: var(--bg); color: var(--text);
  border: 1px solid var(--border);
}
.contact-form-light input::placeholder,
.contact-form-light textarea::placeholder { color: var(--text-muted); }
.contact-form-light input:focus,
.contact-form-light textarea:focus { border-color: var(--primary); }

/* ═══════════ ANIMATIONS ═══════════ */
.fade-in { opacity: 0; transform: translateY(24px); transition: all 0.6s ease; }
.fade-in.visible { opacity: 1; transform: translateY(0); }

/* ═══════════ TOAST ═══════════ */
.toast {
  position: fixed; bottom: 28px; right: 28px;
  background: #1A1A2E; color: white;
  padding: 14px 24px; border-radius: 12px;
  font-size: 15px; font-weight: 600;
  box-shadow: var(--shadow-lg); z-index: 99999;
  transform: translateY(80px); opacity: 0;
  transition: all 0.4s; pointer-events: none;
}
.toast.show { transform: translateY(0); opacity: 1; }
.toast.success { border-left: 4px solid var(--success); }
.toast.error   { border-left: 4px solid #EF4444; }

/* ═══════════ EMPTY STATE ═══════════ */
.empty-state { text-align: center; padding: 60px 20px; color: var(--text-muted); }
.empty-state .icon { font-size: 64px; margin-bottom: 16px; }
.empty-state p { font-size: 16px; }

/* ═══════════ RESPONSIVE ═══════════ */
@media (max-width: 900px) {
  .about-grid, .contact-home-grid, .contacts-grid { grid-template-columns: 1fr; gap: 40px; }
  .about-badge { bottom: 16px; right: 16px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 768px) {
  nav {
    display: none; position: fixed;
    top: var(--header-height); left: 0; right: 0;
    background: white; flex-direction: column;
    padding: 12px; border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow); gap: 4px;
  }
  nav.open { display: flex; }
  nav a { width: 100%; padding: 12px 16px; }
  .hamburger { display: flex; }
  .logo-sub { display: none; }
  section { padding: 56px 16px; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .hero-stats { gap: 28px; }
  .map-wrap { height: 280px; }
}
@media (max-width: 480px) {
  .news-grid, .programs-grid, .team-grid, .gallery-grid { grid-template-columns: 1fr; }
}
