/* ======= BASE ======= */
:root {
  --primary: #0B5ED7;
  --secondary: #198754;
  --accent: #FFC107;
  --bg-light: #f8f9fa;
  --dark: #212529;
  --gray: #6c757d;
  --gradient: linear-gradient(135deg, #198754, #0B5ED7);
  --shadow: 0 4px 20px rgba(0,0,0,0.08);
  --shadow-lg: 0 8px 40px rgba(0,0,0,0.12);
  --radius: 16px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  color: var(--dark);
  overflow-x: hidden;
  padding-top: 76px;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Inter', sans-serif;
  letter-spacing: -0.02em;
}

.section-padding {
  padding: 100px 0;
}

.bg-light {
  background-color: var(--bg-light) !important;
}

/* ======= NAVBAR ======= */
#mainNav {
  background: rgba(11, 94, 215, 0.95);
  backdrop-filter: blur(10px);
  padding: 12px 0;
  transition: all 0.3s ease;
  box-shadow: 0 2px 15px rgba(0,0,0,0.1);
}

#mainNav .navbar-brand {
  font-weight: 800;
  font-size: 1.4rem;
  letter-spacing: 1px;
}

#mainNav .nav-link {
  font-weight: 500;
  font-size: 0.9rem;
  padding: 8px 16px !important;
  border-radius: 8px;
  transition: all 0.3s ease;
  color: rgba(255,255,255,0.85);
}

#mainNav .nav-link:hover,
#mainNav .nav-link.active {
  color: #fff;
  background: rgba(255,255,255,0.15);
}

/* ======= HERO SECTION ======= */
.hero-section {
  position: relative;
  min-height: 90vh;
  background: url('https://images.unsplash.com/photo-1559027615-cd4628902d4a?w=1920&q=80') center center / cover no-repeat fixed;
  overflow: hidden;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(11,94,215,0.85), rgba(25,135,84,0.75));
  z-index: 1;
}

.hero-section .container {
  z-index: 2;
}

.hero-title {
  font-family: 'Playfair Display', serif;
  text-shadow: 0 4px 20px rgba(0,0,0,0.3);
  animation: fadeInDown 1s ease;
}

.hero-subtitle {
  text-shadow: 0 2px 10px rgba(0,0,0,0.3);
  animation: fadeInUp 1s ease 0.3s both;
}

.hero-section .btn {
  animation: fadeInUp 1s ease 0.6s both;
  border-radius: 12px;
}

.hero-wave {
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 100%;
  z-index: 2;
  line-height: 0;
}

.hero-wave svg {
  width: 100%;
  height: 60px;
}

/* ======= ABOUT ======= */
.about-image-wrapper {
  position: relative;
}

.about-image-wrapper img {
  width: 100%;
  transition: transform 0.5s ease;
}

.about-image-wrapper:hover img {
  transform: scale(1.02);
}

.about-badge {
  position: absolute;
  bottom: -15px;
  right: -15px;
  background: var(--gradient);
  color: #fff;
  padding: 12px 24px;
  border-radius: 12px;
  box-shadow: var(--shadow-lg);
}

.vision-box,
.mission-box {
  background: #fff;
  box-shadow: var(--shadow);
  transition: all 0.3s ease;
  border-left: 4px solid transparent;
}

.vision-box { border-left-color: var(--secondary); }
.mission-box { border-left-color: var(--primary); }

.vision-box:hover,
.mission-box:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

/* ======= CORE VALUES ======= */
.value-card {
  background: #fff;
  border: 1px solid rgba(0,0,0,0.04);
  transition: all 0.35s ease;
  cursor: default;
}

.value-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
  border-color: transparent;
}

.value-icon {
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 16px;
  background: var(--gradient);
  color: #fff;
  font-size: 1.3rem;
  transition: transform 0.3s ease;
}

.value-card:hover .value-icon {
  transform: rotateY(180deg);
}

/* ======= PROGRAMS ======= */
.program-card {
  background: #fff;
  border: 1px solid rgba(0,0,0,0.04);
  transition: all 0.35s ease;
  position: relative;
  overflow: hidden;
}

.program-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 0;
  background: var(--gradient);
  transition: height 0.4s ease;
}

.program-card:hover::before {
  height: 100%;
}

.program-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}

.program-icon {
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(11,94,215,0.1), rgba(25,135,84,0.1));
  color: var(--primary);
  font-size: 1.2rem;
}

/* ======= IMPACT ======= */
.impact-section {
  position: relative;
  background: url('https://images.unsplash.com/photo-1488521787991-ed7bbaae773c?w=1920&q=80') center center / cover no-repeat fixed;
}

.impact-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(11,94,215,0.9), rgba(25,135,84,0.85));
  z-index: 1;
}

.impact-section .container {
  z-index: 2;
}

.impact-item {
  transition: all 0.3s ease;
  border-radius: var(--radius);
}

.impact-item:hover {
  background: rgba(255,255,255,0.1);
  transform: scale(1.05);
}

/* ======= SUCCESS STORIES ======= */
.story-card {
  background: #fff;
  overflow: hidden;
  transition: all 0.35s ease;
}

.story-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
}

.story-img {
  overflow: hidden;
  height: 220px;
}

.story-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.story-card:hover .story-img img {
  transform: scale(1.08);
}

/* ======= GALLERY ======= */
.gallery-item {
  position: relative;
  cursor: pointer;
  height: 260px;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.gallery-item:hover img {
  transform: scale(1.1);
}

.gallery-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.7), transparent);
  display: flex;
  align-items: flex-end;
  padding: 20px;
  opacity: 0;
  transition: opacity 0.4s ease;
}

.gallery-item:hover .gallery-overlay {
  opacity: 1;
}

.gallery-overlay span {
  color: #fff;
  font-weight: 600;
  font-size: 1rem;
}

/* ======= PARTNERS ======= */
.partner-item {
  transition: all 0.3s ease;
}

.partner-item:hover {
  transform: scale(1.05);
  box-shadow: var(--shadow) !important;
}

/* ======= CONTACT ======= */
.contact-icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  background: var(--gradient);
  color: #fff;
  font-size: 1.1rem;
  flex-shrink: 0;
}

.social-icon {
  width: 42px;
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--gradient);
  color: #fff;
  text-decoration: none;
  transition: all 0.3s ease;
  font-size: 1rem;
}

.social-icon:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(25,135,84,0.4);
  color: #fff;
}

.form-control-lg {
  border-radius: 12px;
  border: 2px solid #e9ecef;
  padding: 14px 18px;
  transition: all 0.3s ease;
}

.form-control-lg:focus {
  border-color: var(--secondary);
  box-shadow: 0 0 0 3px rgba(25,135,84,0.15);
}

/* ======= FOOTER ======= */
.footer-section {
  background: linear-gradient(135deg, #0a2a5e, #0B5ED7);
}

.hover-opacity:hover {
  opacity: 1 !important;
}

.social-icon-sm {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(255,255,255,0.15);
  color: #fff;
  text-decoration: none;
  transition: all 0.3s ease;
  font-size: 0.85rem;
}

.social-icon-sm:hover {
  background: var(--secondary);
  color: #fff;
  transform: translateY(-2px);
}

/* ======= SCROLL TO TOP ======= */
#scrollTopBtn {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 50px;
  height: 50px;
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 999;
  border: none;
  font-size: 1.1rem;
  transition: all 0.3s ease;
}

#scrollTopBtn:hover {
  transform: translateY(-4px);
  box-shadow: 0 6px 25px rgba(25,135,84,0.5);
}

/* ======= ANIMATIONS ======= */
@keyframes fadeInDown {
  from { opacity: 0; transform: translateY(-30px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ======= RESPONSIVE ======= */
@media (max-width: 991px) {
  .section-padding { padding: 70px 0; }
  .hero-section { min-height: 70vh; }
  .hero-title { font-size: 2.5rem; }
}

@media (max-width: 767px) {
  .section-padding { padding: 50px 0; }
  .hero-section { min-height: 60vh; background-attachment: scroll; }
  .hero-title { font-size: 2rem; }
  .hero-subtitle { font-size: 1rem; }
  .story-img { height: 180px; }
  .gallery-item { height: 200px; }
  #scrollTopBtn { width: 42px; height: 42px; bottom: 20px; right: 20px; }
}

@media (max-width: 575px) {
  .hero-title { font-size: 1.7rem; }
  .impact-section { background-attachment: scroll; }
}

/* ======= SWEET ALERT OVERRIDES ======= */
.swal2-popup {
  border-radius: var(--radius) !important;
}
