/* ===== GLOBAL RESET & BASE ===== */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --blue:       #1a3c6e;
  --blue-light: #2563eb;
  --gold:       #f59e0b;
  --gold-light: #fde68a;
  --white:      #ffffff;
  --gray-50:    #f8fafc;
  --gray-100:   #f1f5f9;
  --gray-600:   #475569;
  --gray-800:   #1e293b;
  --radius:     12px;
  --shadow:     0 4px 24px rgba(26,60,110,.12);
  --shadow-lg:  0 12px 40px rgba(26,60,110,.18);
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Segoe UI', system-ui, sans-serif;
  color: var(--gray-800);
  line-height: 1.7;
  background: var(--white);
}

img { display: block; width: 100%; object-fit: cover; }
a  { text-decoration: none; color: inherit; }
ul { list-style: none; }

.container { max-width: 1180px; margin: 0 auto; padding: 0 24px; }
.section    { padding: 90px 0; }
.section-alt{ background: var(--gray-50); }

.section-label {
  display: inline-block;
  background: var(--gold-light);
  color: var(--blue);
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  padding: 4px 14px;
  border-radius: 999px;
  margin-bottom: 14px;
}

.section-title {
  font-size: clamp(1.75rem, 4vw, 2.6rem);
  font-weight: 800;
  color: var(--blue);
  line-height: 1.2;
  margin-bottom: 18px;
}

.section-subtitle {
  color: var(--gray-600);
  font-size: 1.05rem;
  max-width: 560px;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 32px;
  border-radius: 999px;
  font-weight: 700;
  font-size: .95rem;
  cursor: pointer;
  transition: transform .2s, box-shadow .2s;
  border: none;
}
.btn:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); }

.btn-primary { background: var(--blue-light); color: var(--white); }
.btn-outline  { background: transparent; color: var(--white); border: 2px solid rgba(255,255,255,.7); }
.btn-gold     { background: var(--gold); color: var(--blue); }

/* ===== NAVBAR ===== */
.navbar {
  position: sticky;
  top: 0;
  z-index: 999;
  background: var(--blue);
  box-shadow: 0 2px 16px rgba(0,0,0,.18);
}

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

.nav-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--white);
}

.nav-logo .logo-icon {
  width: 44px;
  height: 44px;
  background: var(--gold);
  border-radius: 10px;
  display: grid;
  place-items: center;
  font-size: 1.4rem;
}

.nav-logo .logo-text strong { display: block; font-size: 1.05rem; line-height: 1.1; }
.nav-logo .logo-text span   { font-size: .7rem; opacity: .75; letter-spacing: .08em; text-transform: uppercase; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 6px;
}

.nav-links a {
  color: rgba(255,255,255,.8);
  font-weight: 600;
  font-size: .9rem;
  padding: 8px 16px;
  border-radius: 8px;
  transition: background .2s, color .2s;
}

.nav-links a:hover,
.nav-links a.active { background: rgba(255,255,255,.12); color: var(--white); }

.nav-cta { background: var(--gold); color: var(--blue) !important; border-radius: 999px !important; }
.nav-cta:hover { background: #d97706 !important; color: var(--white) !important; }

.nav-hamburger { display: none; background: none; border: none; cursor: pointer; }
.nav-hamburger span {
  display: block; width: 24px; height: 2px;
  background: var(--white); margin: 5px 0; border-radius: 2px; transition: .3s;
}

/* ===== FOOTER ===== */
.footer { background: var(--gray-800); color: rgba(255,255,255,.75); padding: 70px 0 0; }

.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr repeat(3, 1fr);
  gap: 40px;
  padding-bottom: 50px;
}

.footer-brand p { margin-top: 14px; font-size: .88rem; line-height: 1.7; }

.footer-col h4 { color: var(--white); font-size: .9rem; margin-bottom: 18px; letter-spacing: .06em; text-transform: uppercase; }

.footer-col ul li { margin-bottom: 10px; }
.footer-col ul a  { font-size: .88rem; transition: color .2s; }
.footer-col ul a:hover { color: var(--gold); }

.footer-social { display: flex; gap: 10px; margin-top: 18px; }
.footer-social a {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: rgba(255,255,255,.08);
  display: grid; place-items: center;
  font-size: .85rem;
  transition: background .2s;
}
.footer-social a:hover { background: var(--blue-light); color: var(--white); }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.1);
  padding: 22px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: .82rem;
}

/* ===== HOME — HERO ===== */
.hero {
  min-height: 92vh;
  display: flex;
  align-items: center;
  background: linear-gradient(135deg, var(--blue) 0%, #0f2954 60%, #1a3c6e 100%);
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 70% 50%, rgba(37,99,235,.25) 0%, transparent 70%),
    url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.hero-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(245,158,11,.15);
  border: 1px solid rgba(245,158,11,.3);
  color: var(--gold-light);
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  padding: 6px 16px;
  border-radius: 999px;
  margin-bottom: 24px;
}

.hero-title {
  font-size: clamp(2.2rem, 5vw, 3.8rem);
  font-weight: 900;
  color: var(--white);
  line-height: 1.1;
  margin-bottom: 22px;
}

.hero-title span { color: var(--gold); }

.hero-sub {
  color: rgba(255,255,255,.75);
  font-size: 1.1rem;
  max-width: 480px;
  margin-bottom: 36px;
}

.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; }

.hero-stats {
  display: flex;
  gap: 36px;
  margin-top: 48px;
  padding-top: 36px;
  border-top: 1px solid rgba(255,255,255,.12);
}

.hero-stats .stat strong {
  display: block;
  font-size: 2rem;
  font-weight: 900;
  color: var(--white);
}

.hero-stats .stat span { font-size: .8rem; color: rgba(255,255,255,.6); text-transform: uppercase; letter-spacing: .08em; }

.hero-image-wrap {
  position: relative;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  aspect-ratio: 4/3;
}

.hero-image-wrap::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom right, transparent 50%, rgba(26,60,110,.4));
}

.hero-card {
  position: absolute;
  bottom: 24px;
  left: 24px;
  background: var(--white);
  border-radius: 14px;
  padding: 16px 20px;
  box-shadow: var(--shadow-lg);
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 220px;
}

.hero-card .card-icon { font-size: 2rem; }
.hero-card strong { display: block; color: var(--blue); font-size: .95rem; }
.hero-card span   { font-size: .78rem; color: var(--gray-600); }

/* ===== HOME — FEATURES ===== */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  margin-top: 56px;
}

.feature-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 36px 30px;
  box-shadow: var(--shadow);
  border: 1px solid rgba(26,60,110,.06);
  transition: transform .25s, box-shadow .25s;
}
.feature-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }

.feature-icon {
  width: 58px; height: 58px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--blue), var(--blue-light));
  display: grid; place-items: center;
  font-size: 1.5rem;
  margin-bottom: 22px;
}

.feature-card h3 { font-size: 1.1rem; color: var(--blue); margin-bottom: 10px; }
.feature-card p  { color: var(--gray-600); font-size: .9rem; }

/* ===== HOME — NEWS ===== */
.news-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  margin-top: 56px;
}

.news-card {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform .25s;
}
.news-card:hover { transform: translateY(-5px); }

.news-card .news-img { height: 200px; }

.news-card .news-body { padding: 24px; background: var(--white); }

.news-tag {
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--blue-light);
  margin-bottom: 8px;
}

.news-card h3 { font-size: 1rem; color: var(--blue); margin-bottom: 8px; line-height: 1.4; }
.news-card p  { font-size: .86rem; color: var(--gray-600); }
.news-date    { font-size: .78rem; color: var(--gray-600); margin-top: 14px; display: flex; align-items: center; gap: 6px; }

/* ===== ABOUT ===== */
.about-hero {
  background: linear-gradient(135deg, var(--blue) 0%, #0f2954 100%);
  padding: 100px 0 80px;
  text-align: center;
  color: var(--white);
}
.about-hero h1 { font-size: clamp(2rem,5vw,3.2rem); font-weight: 900; margin-bottom: 16px; }
.about-hero p  { color: rgba(255,255,255,.7); font-size: 1.1rem; max-width: 560px; margin: 0 auto; }

.breadcrumb { display: flex; justify-content: center; gap: 8px; font-size: .82rem; color: rgba(255,255,255,.55); margin-bottom: 16px; }
.breadcrumb a { color: var(--gold); }

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 70px;
  align-items: center;
}

.about-img-wrap { border-radius: 20px; overflow: hidden; box-shadow: var(--shadow-lg); aspect-ratio: 4/3; position: relative; }

.about-img-badge {
  position: absolute;
  bottom: 20px; right: 20px;
  background: var(--gold);
  color: var(--blue);
  font-weight: 800;
  border-radius: 12px;
  padding: 14px 20px;
  text-align: center;
  line-height: 1.2;
}
.about-img-badge strong { font-size: 2rem; display: block; }
.about-img-badge span   { font-size: .72rem; text-transform: uppercase; letter-spacing: .06em; }

.about-list { margin-top: 24px; display: flex; flex-direction: column; gap: 14px; }
.about-list li {
  display: flex; align-items: flex-start; gap: 12px;
  font-size: .9rem; color: var(--gray-600);
}
.about-list .check {
  width: 22px; height: 22px; flex-shrink: 0;
  background: var(--gold-light); color: var(--blue);
  border-radius: 50%; display: grid; place-items: center; font-size: .75rem; font-weight: 900; margin-top: 2px;
}

.values-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-top: 56px;
}

.value-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 32px 24px;
  text-align: center;
  box-shadow: var(--shadow);
  border-top: 4px solid var(--blue-light);
}
.value-card .val-icon { font-size: 2.2rem; margin-bottom: 14px; }
.value-card h3 { font-size: 1rem; color: var(--blue); margin-bottom: 8px; }
.value-card p  { font-size: .85rem; color: var(--gray-600); }

.team-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
  margin-top: 56px;
}

.team-card { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); text-align: center; background: var(--white); transition: transform .25s; }
.team-card:hover { transform: translateY(-5px); }
.team-card .team-photo { height: 220px; }
.team-card .team-info { padding: 20px; }
.team-card h3   { font-size: .95rem; color: var(--blue); margin-bottom: 4px; }
.team-card span { font-size: .8rem; color: var(--gray-600); }

/* ===== GALLERY ===== */
.gallery-hero {
  background: linear-gradient(135deg, var(--blue) 0%, #0f2954 100%);
  padding: 100px 0 80px;
  text-align: center;
  color: var(--white);
}
.gallery-hero h1 { font-size: clamp(2rem,5vw,3.2rem); font-weight: 900; margin-bottom: 16px; }
.gallery-hero p  { color: rgba(255,255,255,.7); max-width: 520px; margin: 0 auto; }

.gallery-filters {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-bottom: 50px;
  flex-wrap: wrap;
}

.filter-btn {
  padding: 10px 24px;
  border-radius: 999px;
  font-weight: 600;
  font-size: .85rem;
  cursor: pointer;
  border: 2px solid var(--blue);
  color: var(--blue);
  background: transparent;
  transition: .2s;
}
.filter-btn.active,
.filter-btn:hover { background: var(--blue); color: var(--white); }

.gallery-masonry {
  columns: 3;
  column-gap: 20px;
}

.gallery-item {
  break-inside: avoid;
  margin-bottom: 20px;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  position: relative;
  cursor: pointer;
  transition: transform .25s;
}
.gallery-item:hover { transform: scale(1.02); }
.gallery-item img   { width: 100%; display: block; }

.gallery-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(26,60,110,.75) 0%, transparent 60%);
  opacity: 0;
  transition: opacity .3s;
  display: flex;
  align-items: flex-end;
  padding: 20px;
}
.gallery-item:hover .gallery-overlay { opacity: 1; }
.gallery-overlay span { color: var(--white); font-size: .88rem; font-weight: 600; }

/* ===== CONTACT ===== */
.contact-hero {
  background: linear-gradient(135deg, var(--blue) 0%, #0f2954 100%);
  padding: 100px 0 80px;
  text-align: center;
  color: var(--white);
}
.contact-hero h1 { font-size: clamp(2rem,5vw,3.2rem); font-weight: 900; margin-bottom: 16px; }
.contact-hero p  { color: rgba(255,255,255,.7); max-width: 520px; margin: 0 auto; }

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 60px;
  align-items: start;
}

.contact-info-cards { display: flex; flex-direction: column; gap: 22px; }

.contact-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 26px;
  box-shadow: var(--shadow);
  display: flex;
  align-items: flex-start;
  gap: 18px;
}
.contact-card-icon {
  width: 50px; height: 50px; flex-shrink: 0;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--blue), var(--blue-light));
  display: grid; place-items: center;
  font-size: 1.3rem;
}
.contact-card h4 { color: var(--blue); font-size: .95rem; margin-bottom: 4px; }
.contact-card p  { color: var(--gray-600); font-size: .85rem; line-height: 1.6; }

.map-wrap { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); margin-top: 24px; height: 200px; background: var(--gray-100); display: grid; place-items: center; }
.map-wrap p { color: var(--gray-600); font-size: .88rem; text-align: center; }

.contact-form-card {
  background: var(--white);
  border-radius: 20px;
  padding: 44px;
  box-shadow: var(--shadow-lg);
}

.contact-form-card h3 { font-size: 1.4rem; color: var(--blue); margin-bottom: 6px; }
.contact-form-card > p { color: var(--gray-600); font-size: .9rem; margin-bottom: 32px; }

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }

.form-group { margin-bottom: 20px; }
.form-group label { display: block; font-size: .85rem; font-weight: 600; color: var(--blue); margin-bottom: 8px; }

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 13px 18px;
  border: 2px solid #e2e8f0;
  border-radius: 10px;
  font-size: .9rem;
  font-family: inherit;
  color: var(--gray-800);
  transition: border-color .2s;
  outline: none;
  background: var(--white);
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus { border-color: var(--blue-light); }
.form-group textarea { resize: vertical; min-height: 130px; }

.form-submit { width: 100%; padding: 16px; font-size: 1rem; border-radius: 12px; }

.success-msg { display: none; text-align: center; padding: 20px; color: #16a34a; font-weight: 600; }

/* ===== NEW GRID CLASSES (used in HTML, responsive-controlled here) ===== */
.programs-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 70px;
  align-items: center;
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  margin-top: 50px;
}

.vision-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
}

.cta-actions {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

/* ===== RESPONSIVE ===== */

/* --- Tablet --- */
@media (max-width: 1024px) {
  .features-grid,
  .values-grid,
  .team-grid,
  .news-grid        { grid-template-columns: repeat(2, 1fr); }
  .footer-grid      { grid-template-columns: 1fr 1fr; }
  .gallery-masonry  { columns: 2; }
  .programs-grid    { gap: 44px; }
  .testimonials-grid { grid-template-columns: 1fr; max-width: 520px; margin-left: auto; margin-right: auto; }
}

/* --- Mobile --- */
@media (max-width: 768px) {
  /* Nav */
  .nav-links     { display: none; }
  .nav-hamburger { display: block; }

  .navbar.nav-open { position: relative; }
  .navbar.nav-open .nav-links {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 72px; left: 0; right: 0;
    background: var(--blue);
    padding: 16px 24px 28px;
    gap: 4px;
    box-shadow: 0 10px 30px rgba(0,0,0,.25);
    z-index: 998;
  }
  .navbar.nav-open .nav-links a { padding: 13px 16px; border-radius: 10px; display: block; }
  .navbar.nav-open .nav-hamburger span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
  .navbar.nav-open .nav-hamburger span:nth-child(2) { opacity: 0; transform: scaleX(0); }
  .navbar.nav-open .nav-hamburger span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

  /* Sections */
  .section { padding: 60px 0; }

  /* Hero */
  .hero            { min-height: auto; padding: 70px 0 60px; }
  .hero-inner      { grid-template-columns: 1fr; }
  .hero-image-wrap { display: none; }
  .hero-stats      { display: grid; grid-template-columns: 1fr 1fr; gap: 20px 24px; padding-top: 28px; margin-top: 36px; }
  .hero-stats .stat strong { font-size: 1.7rem; }

  /* Page heroes */
  .about-hero,
  .gallery-hero,
  .contact-hero { padding: 70px 0 56px; }

  /* Grids — override inline styles too */
  .about-grid,
  .contact-grid,
  .programs-grid,
  .vision-grid  { grid-template-columns: 1fr !important; gap: 36px !important; }

  .features-grid,
  .news-grid,
  .values-grid,
  .team-grid,
  .testimonials-grid { grid-template-columns: 1fr !important; }

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

  /* Footer */
  .footer-grid   { grid-template-columns: 1fr; gap: 28px; padding-bottom: 40px; }
  .footer        { padding-top: 50px; }
  .footer-bottom { flex-direction: column; gap: 8px; text-align: center; }

  /* Contact form */
  .contact-form-card { padding: 28px 22px; }

  /* CTA buttons */
  .cta-actions   { flex-direction: column; align-items: center; }

  /* Gallery: show overlay on touch devices (no hover available) */
  .gallery-overlay { opacity: 1; background: linear-gradient(to top, rgba(26,60,110,.65) 0%, transparent 55%); }
}

/* --- Small phones --- */
@media (max-width: 480px) {
  .container    { padding: 0 16px; }
  .section      { padding: 48px 0; }
  .hero         { padding: 56px 0 48px; }
  .hero-actions { flex-direction: column; }
  .hero-actions .btn { text-align: center; justify-content: center; width: 100%; }
  .hero-badge   { font-size: .7rem; padding: 5px 12px; }
  .hero-stats .stat strong { font-size: 1.5rem; }
  .about-hero,
  .gallery-hero,
  .contact-hero { padding: 56px 0 44px; }
  .section-title { font-size: 1.55rem; }
  .contact-form-card { padding: 22px 16px; }
  .feature-card,
  .value-card   { padding: 28px 22px; }
  .filter-btn   { padding: 9px 18px; font-size: .8rem; }
  .about-img-badge { bottom: 12px; right: 12px; padding: 10px 14px; }
  .about-img-badge strong { font-size: 1.6rem; }
  .news-card .news-body { padding: 18px; }
  .hero-card    { min-width: unset; padding: 12px 14px; }
  .nav-logo .logo-text strong { font-size: .9rem; }
  .nav-logo .logo-text span   { display: none; }
  .btn          { padding: 12px 22px; font-size: .88rem; }
}

/* ===== ANIMATIONS ===== */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(30px); }
  to   { opacity: 1; transform: translateY(0); }
}
.fade-up { animation: fadeUp .7s ease both; }
.delay-1 { animation-delay: .1s; }
.delay-2 { animation-delay: .2s; }
.delay-3 { animation-delay: .3s; }
