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

:root {
  --red: #e3042e;
  --dark: #021460;
  --white: #ffffff;
  --light: #f5f5f5;
  --gray: #666666;
  --text: #333333;
  --border: #e0e0e0;
  --font-main: 'Barlow', sans-serif;
  --font-body: 'Roboto', sans-serif;
  --transition: 0.3s ease;
  --shadow: 0 4px 20px rgba(0,0,0,0.08);
}

html { scroll-behavior: smooth; }

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

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

/* ===== PRE-HEADER ===== */
.pre-header {
  background: var(--dark);
  color: var(--white);
  padding: 8px 0;
  font-size: 13px;
}
.pre-header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.pre-header-left a { color: var(--white); }
.pre-header-left i { margin-right: 6px; color: var(--red); }
.pre-header-right {
  display: flex;
  align-items: center;
  gap: 12px;
}
.pre-header-right span { font-size: 13px; }
.social-links { display: flex; gap: 10px; }
.social-links a {
  color: var(--white);
  width: 28px; height: 28px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.3);
  font-size: 13px;
  transition: var(--transition);
}
.social-links a:hover { background: var(--red); border-color: var(--red); }

/* ===== MAIN HEADER ===== */
.main-header {
  background: var(--white);
  box-shadow: 0 2px 10px rgba(0,0,0,0.08);
  position: sticky;
  top: 0;
  z-index: 1000;
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 15px 0;
}
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-main);
  font-size: 22px;
  font-weight: 700;
  color: var(--dark);
}
.logo img { height: 50px; width: auto; }

/* ===== NAVIGATION ===== */
.nav-menu { display: flex; align-items: center; gap: 5px; }
.nav-menu > li { position: relative; }
.nav-menu > li > a {
  display: block;
  padding: 10px 16px;
  font-family: var(--font-main);
  font-size: 15px;
  font-weight: 500;
  color: var(--dark);
  border-radius: 4px;
  transition: var(--transition);
}
.nav-menu > li > a:hover,
.nav-menu > li.active > a { color: var(--red); }

/* Dropdown */
.sub-menu {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  background: var(--white);
  min-width: 220px;
  box-shadow: 0 8px 30px rgba(0,0,0,0.12);
  border-radius: 6px;
  border-top: 3px solid var(--red);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: var(--transition);
  z-index: 999;
}
.nav-menu > li:hover .sub-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.sub-menu li a {
  display: block;
  padding: 10px 18px;
  font-size: 14px;
  color: var(--text);
  border-bottom: 1px solid var(--border);
  transition: var(--transition);
}
.sub-menu li:last-child a { border-bottom: none; }
.sub-menu li a:hover { color: var(--red); padding-left: 24px; }

/* Header CTA */
.header-cta {
  background: var(--red);
  color: var(--white) !important;
  padding: 10px 22px !important;
  border-radius: 30px !important;
  font-weight: 600 !important;
  transition: var(--transition);
}
.header-cta:hover { background: var(--dark) !important; transform: translateY(-2px); }

/* Hamburger */
.menu-toggle { display: none; background: none; border: none; cursor: pointer; }
.menu-toggle span {
  display: block;
  width: 25px; height: 2px;
  background: var(--dark);
  margin: 5px 0;
  transition: var(--transition);
}

/* ===== CONTAINER ===== */
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }

/* ===== HERO / SLIDER ===== */
.hero {
  position: relative;
  min-height: 620px;
  overflow: hidden;
}
.hero-slide {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  opacity: 0;
  transition: opacity 0.8s ease;
  background: linear-gradient(135deg, #f0f4ff 0%, #e8eaf8 100%);
}
.hero-slide.active { opacity: 1; position: relative; }
.hero-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 620px;
  width: 100%;
}
.hero-text {
  flex: 1;
  padding: 60px 40px 60px 0;
  max-width: 560px;
}
.hero-text h1 {
  font-family: var(--font-main);
  font-size: clamp(36px, 5vw, 62px);
  font-weight: 700;
  color: var(--dark);
  line-height: 1.15;
  text-transform: capitalize;
  margin-bottom: 24px;
}
.hero-text h1 span { color: var(--red); }
.hero-text p { font-size: 16px; color: var(--gray); margin-bottom: 32px; line-height: 1.8; }
.btn-primary {
  display: inline-block;
  background: var(--red);
  color: var(--white);
  padding: 14px 32px;
  border-radius: 30px;
  font-family: var(--font-main);
  font-weight: 600;
  font-size: 15px;
  transition: var(--transition);
}
.btn-primary:hover { background: var(--dark); transform: translateY(-3px); box-shadow: 0 8px 20px rgba(227,4,46,0.3); }
.btn-outline {
  display: inline-block;
  background: transparent;
  color: var(--dark);
  padding: 13px 30px;
  border-radius: 30px;
  border: 2px solid var(--dark);
  font-family: var(--font-main);
  font-weight: 600;
  font-size: 15px;
  transition: var(--transition);
  margin-left: 12px;
}
.btn-outline:hover { background: var(--dark); color: var(--white); }
.hero-image {
  flex: 1;
  display: flex;
  justify-content: flex-end;
  align-items: flex-end;
  align-self: flex-end;
}
.hero-image img {
  max-height: 560px;
  width: auto;
  object-fit: contain;
  animation: float 4s ease-in-out infinite;
}
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}

/* Slider nav bullets */
.slider-bullets {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
  z-index: 10;
}
.slider-bullet {
  width: 10px; height: 10px;
  border-radius: 50%;
  background: rgba(2,20,96,0.3);
  border: none;
  cursor: pointer;
  transition: var(--transition);
}
.slider-bullet.active { background: var(--red); transform: scale(1.3); }

/* ===== SECTION STYLES ===== */
section { padding: 80px 0; }
.section-title {
  font-family: var(--font-main);
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 700;
  color: var(--dark);
  line-height: 1.2;
  margin-bottom: 16px;
}
.section-desc { font-size: 15px; color: var(--gray); margin-bottom: 40px; }
.section-label {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 10px;
}

/* ===== ABOUT SECTION ===== */
.about-section { background: var(--white); }
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}
.about-img { border-radius: 12px; overflow: hidden; box-shadow: var(--shadow); }
.about-img img { width: 100%; height: 520px; object-fit: cover; }
.about-content { padding: 20px 0; }
.about-content p { color: var(--gray); margin-bottom: 20px; line-height: 1.9; font-size: 15px; }

/* ===== SERVICES / MORE JSR ===== */
.services-section { background: var(--dark); padding: 80px 0; }
.services-header {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 60px;
  margin-bottom: 50px;
}
.services-header .section-title { color: var(--white); }
.services-header .section-desc { color: rgba(255,255,255,0.6); }
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
}
.service-card {
  position: relative;
  overflow: hidden;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  transition: var(--transition);
}
.service-card:hover { background: rgba(255,255,255,0.08); }
.service-img { height: 260px; overflow: hidden; }
.service-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.service-card:hover .service-img img { transform: scale(1.05); }
.service-meta {
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.service-icon { font-size: 28px; color: var(--red); }
.service-title {
  font-family: var(--font-main);
  font-size: 18px;
  font-weight: 600;
  color: var(--white);
}
.service-text { font-size: 14px; color: rgba(255,255,255,0.55); line-height: 1.7; }
.service-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--red);
  font-size: 14px;
  font-weight: 600;
  margin-top: 8px;
  transition: var(--transition);
}
.service-link:hover { gap: 12px; }
.service-link::after { content: '→'; }

/* ===== LIFELINE SECTION ===== */
.lifeline-section { background: var(--white); }
.lifeline-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}
.lifeline-img { border-radius: 12px; overflow: hidden; box-shadow: var(--shadow); }
.lifeline-img img { width: 100%; height: 400px; object-fit: cover; }
.lifeline-content p { color: var(--gray); margin-bottom: 16px; font-size: 15px; line-height: 1.9; }

/* ===== CAREER SECTION ===== */
.career-section { background: var(--dark); }
.career-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: start;
}
.career-text .section-title { color: var(--white); }
.career-text p { color: rgba(255,255,255,0.65); margin-bottom: 16px; font-size: 15px; line-height: 1.9; }
.career-items { display: flex; flex-direction: column; gap: 20px; }
.career-item {
  display: flex;
  gap: 18px;
  align-items: flex-start;
  background: rgba(255,255,255,0.05);
  border-radius: 10px;
  padding: 20px;
  border: 1px solid rgba(255,255,255,0.08);
  transition: var(--transition);
}
.career-item:hover { background: rgba(255,255,255,0.09); }
.career-icon {
  width: 48px; height: 48px;
  background: var(--red);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  font-size: 20px;
  color: var(--white);
}
.career-info h4 {
  font-family: var(--font-main);
  font-size: 16px;
  font-weight: 600;
  color: var(--white);
  margin-bottom: 4px;
}
.career-info p { font-size: 13px; color: rgba(255,255,255,0.5); margin: 0; }

/* ===== ACHIEVEMENTS ===== */
.achievements-section { background: var(--white); }
.achievements-section .section-title { text-align: center; }
.achievements-section .section-desc { text-align: center; }
.achievements-carousel { position: relative; }
.achievement-slide {
  display: none;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow);
  min-height: 420px;
}
.achievement-slide.active { display: grid; }
.achievement-img { overflow: hidden; }
.achievement-img img { width: 100%; height: 100%; object-fit: cover; }
.achievement-content {
  background: var(--dark);
  padding: 50px 40px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.achievement-year {
  font-family: var(--font-main);
  font-size: 64px;
  font-weight: 800;
  color: rgba(255,255,255,0.12);
  line-height: 1;
  margin-bottom: 10px;
}
.achievement-title {
  font-family: var(--font-main);
  font-size: 22px;
  font-weight: 700;
  color: var(--white);
  line-height: 1.4;
}
.achievement-dots {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 30px;
}
.achievement-dot {
  width: 10px; height: 10px;
  border-radius: 50%;
  background: var(--border);
  border: none;
  cursor: pointer;
  transition: var(--transition);
}
.achievement-dot.active { background: var(--red); }

/* ===== MEDICAL CAMPS ===== */
.camps-section { background: var(--light); }
.camps-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}
.camps-img { border-radius: 12px; overflow: hidden; box-shadow: var(--shadow); }
.camps-img img { width: 100%; height: 460px; object-fit: cover; }
.accordion-item {
  border-bottom: 1px solid var(--border);
  overflow: hidden;
}
.accordion-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 0;
  cursor: pointer;
  font-family: var(--font-main);
  font-size: 16px;
  font-weight: 600;
  color: var(--dark);
  transition: var(--transition);
  gap: 12px;
}
.accordion-header:hover { color: var(--red); }
.accordion-header .icon {
  width: 24px; height: 24px;
  border: 2px solid currentColor;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 14px;
  flex-shrink: 0;
  transition: var(--transition);
}
.accordion-item.open .accordion-header { color: var(--red); }
.accordion-item.open .icon { background: var(--red); color: var(--white); border-color: var(--red); transform: rotate(180deg); }
.accordion-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, padding 0.3s ease;
}
.accordion-item.open .accordion-body { max-height: 300px; }
.accordion-body p { padding: 0 0 18px; font-size: 14px; color: var(--gray); line-height: 1.8; }

/* ===== FOUNDATION SECTION ===== */
.foundation-section {
  background: linear-gradient(135deg, var(--dark) 0%, #0a1f7a 100%);
  text-align: center;
  padding: 80px 0;
}
.foundation-section .section-title { color: var(--white); }
.foundation-section p { color: rgba(255,255,255,0.65); max-width: 700px; margin: 0 auto 36px; font-size: 15px; line-height: 1.9; }
.donate-amount-btns {
  display: flex;
  gap: 12px;
  justify-content: center;
  margin-bottom: 32px;
  flex-wrap: wrap;
}
.donate-btn {
  background: rgba(255,255,255,0.1);
  color: var(--white);
  border: 1px solid rgba(255,255,255,0.25);
  padding: 10px 24px;
  border-radius: 30px;
  font-size: 15px;
  cursor: pointer;
  transition: var(--transition);
}
.donate-btn:hover, .donate-btn.active { background: var(--red); border-color: var(--red); }

/* ===== FOOTER ===== */
footer {
  background: var(--dark);
  color: rgba(255,255,255,0.7);
  padding: 60px 0 0;
}
.footer-logo { margin-bottom: 30px; text-align: center; }
.footer-logo img { height: 60px; margin: 0 auto; }
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 2fr 2fr;
  gap: 40px;
  padding-bottom: 50px;
}
.footer-widget h3 {
  font-family: var(--font-main);
  font-size: 17px;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 20px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--red);
  display: inline-block;
}
.footer-widget p { font-size: 14px; line-height: 1.8; }
.footer-widget ul { display: flex; flex-direction: column; gap: 10px; }
.footer-widget ul a {
  font-size: 14px;
  color: rgba(255,255,255,0.6);
  transition: var(--transition);
  display: flex;
  align-items: center;
  gap: 8px;
}
.footer-widget ul a::before { content: '›'; color: var(--red); }
.footer-widget ul a:hover { color: var(--white); padding-left: 4px; }
.contact-item {
  display: flex;
  gap: 12px;
  margin-bottom: 14px;
  font-size: 14px;
}
.contact-item i { color: var(--red); font-size: 16px; margin-top: 2px; flex-shrink: 0; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding: 20px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
}
.footer-bottom a { color: var(--red); }

/* ===== SCROLL TO TOP ===== */
.scroll-top {
  position: fixed;
  bottom: 30px; right: 30px;
  width: 44px; height: 44px;
  background: var(--red);
  color: var(--white);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 18px;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
  z-index: 999;
  border: none;
}
.scroll-top.visible { opacity: 1; visibility: visible; }
.scroll-top:hover { background: var(--dark); transform: translateY(-4px); }

/* ===== PAGE HERO (inner pages) ===== */
.page-hero {
  background: linear-gradient(135deg, var(--dark) 0%, #1a2d8f 100%);
  padding: 80px 0;
  text-align: center;
}
.page-hero h1 {
  font-family: var(--font-main);
  font-size: 42px;
  font-weight: 800;
  color: var(--white);
  margin-bottom: 16px;
}
.breadcrumb {
  display: flex;
  justify-content: center;
  gap: 10px;
  font-size: 14px;
  color: rgba(255,255,255,0.6);
}
.breadcrumb a { color: var(--red); }
.breadcrumb span { color: rgba(255,255,255,0.4); }

/* ===== CONTACT SECTION ===== */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 60px;
}
.contact-info-card {
  background: var(--dark);
  border-radius: 12px;
  padding: 40px;
  color: var(--white);
}
.contact-info-card h3 {
  font-family: var(--font-main);
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 30px;
  color: var(--white);
}
.contact-form { background: var(--white); border-radius: 12px; padding: 40px; box-shadow: var(--shadow); }
.contact-form h3 {
  font-family: var(--font-main);
  font-size: 24px;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 30px;
}
.form-group { margin-bottom: 20px; }
.form-group label { display: block; font-size: 13px; font-weight: 600; color: var(--dark); margin-bottom: 8px; }
.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-family: var(--font-body);
  font-size: 14px;
  color: var(--text);
  transition: var(--transition);
  background: var(--light);
}
.form-group input:focus,
.form-group textarea:focus { outline: none; border-color: var(--red); background: var(--white); }
.form-group textarea { min-height: 120px; resize: vertical; }
.form-submit {
  width: 100%;
  background: var(--red);
  color: var(--white);
  border: none;
  padding: 14px;
  border-radius: 30px;
  font-family: var(--font-main);
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition);
}
.form-submit:hover { background: var(--dark); transform: translateY(-2px); }

/* ===== GALLERY ===== */
.gallery-filter {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 40px;
}
.filter-btn {
  padding: 8px 22px;
  border-radius: 30px;
  border: 1px solid var(--border);
  background: var(--white);
  font-size: 14px;
  cursor: pointer;
  transition: var(--transition);
  color: var(--gray);
}
.filter-btn.active, .filter-btn:hover { background: var(--red); color: var(--white); border-color: var(--red); }
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.gallery-item {
  border-radius: 10px;
  overflow: hidden;
  position: relative;
  cursor: pointer;
  aspect-ratio: 4/3;
}
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s ease; }
.gallery-item:hover img { transform: scale(1.06); }
.gallery-overlay {
  position: absolute;
  inset: 0;
  background: rgba(2,20,96,0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: var(--transition);
}
.gallery-item:hover .gallery-overlay { opacity: 1; }
.gallery-overlay i { color: var(--white); font-size: 32px; }

/* ===== ABOUT PAGE ===== */
.about-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin: 60px 0;
}
.stat-box {
  text-align: center;
  background: var(--white);
  border-radius: 12px;
  padding: 30px 20px;
  box-shadow: var(--shadow);
  border-top: 4px solid var(--red);
}
.stat-number {
  font-family: var(--font-main);
  font-size: 42px;
  font-weight: 800;
  color: var(--dark);
  line-height: 1;
}
.stat-label { font-size: 14px; color: var(--gray); margin-top: 8px; }

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 768px) {
  .menu-toggle { display: flex; flex-direction: column; }
  .nav-menu {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0; right: 0;
    background: var(--white);
    padding: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    gap: 0;
  }
  .nav-menu.open { display: flex; }
  .nav-menu > li > a { padding: 12px 10px; }
  .sub-menu { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; border-top: none; background: var(--light); border-radius: 6px; margin-top: 4px; display: none; }
  .nav-menu > li.open .sub-menu { display: block; }
  .hero-content { flex-direction: column; padding: 40px 0; min-height: auto; }
  .hero-text { padding: 0; }
  .hero-image img { max-height: 320px; }
  .about-grid, .lifeline-grid, .career-grid, .camps-grid, .contact-grid { grid-template-columns: 1fr; }
  .services-grid { grid-template-columns: 1fr; }
  .services-header { grid-template-columns: 1fr; }
  .achievement-slide { grid-template-columns: 1fr; }
  .achievement-img { height: 200px; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; gap: 10px; text-align: center; }
  .about-stats { grid-template-columns: repeat(2, 1fr); }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .pre-header .container { flex-direction: column; gap: 8px; }
}
@media (max-width: 480px) {
  .about-stats { grid-template-columns: 1fr 1fr; }
  .gallery-grid { grid-template-columns: 1fr; }
}

/* ===== ANIMATIONS ===== */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}
.animate { animation: fadeInUp 0.6s ease forwards; }
.delay-1 { animation-delay: 0.1s; }
.delay-2 { animation-delay: 0.2s; }
.delay-3 { animation-delay: 0.3s; }
