:root {
  --primary-blue: rgb(29, 78, 216);
  --white: #ffffff;
  --offwhite: #f8f9fa;
  --muted: #6b7280;
  --shadow: 0 12px 30px rgba(15, 23, 42, 0.08);
}

/* Base */
html,
body {
  height: 100%;
}
body {
  font-family: "Roboto", sans-serif;
  background: var(--offwhite);
  color: #222;
  margin: 0;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: "Poppins", sans-serif;
  margin: 0;
}
a {
  text-decoration: none;
}

/* Premium Navbar */
.premium-nav {
  background-color: #0a4275;
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  padding: 0.7rem 0;
  transition: all 0.3s ease;
}

.nav-logo {
  height: 50px;
  width: auto;
}

.small-title {
  font-size: 1.2rem;
  letter-spacing: 0.3px;
}

/* Hover underline animation */
.nav-animate {
  position: relative;
  transition: 0.3s;
}

.nav-animate::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -3px;
  width: 0;
  height: 2px;
  background: white;
  transition: 0.6s ease;
}

.nav-animate:hover::after {
  width: 100%;
}

/* Premium Donate button */
.donate-btn {
  background: linear-gradient(135deg, #ff7a45, #ff3d3d);
  color: #ffffff !important;
  border-radius: 50px;
  font-weight: 700;
  border: none;
  box-shadow: 0 4px 16px rgba(255, 61, 61, 0.35);
  transition: all 0.3s ease;
}

.donate-btn:hover {
  background: linear-gradient(135deg, #ff6a30, #ff2828);
  color: #ffffff !important;
  box-shadow: 0 6px 22px rgba(255, 61, 61, 0.5);
  transform: translateY(-2px);
}

@keyframes pulse-glow {
  0%,
  100% {
    box-shadow: 0 4px 16px rgba(255, 61, 61, 0.35);
  }
  50% {
    box-shadow: 0 4px 20px rgba(255, 61, 61, 0.6);
  }
}
/* HERO */
.hero-carousel {
  margin-top: 5rem;
  position: relative;
}

.hero-carousel .carousel-item {
  position: relative;
  overflow: hidden;
}

/* FIXED — maintain full aspect ratio and reduce stretch */
.hero-carousel img {
  width: 100%;
  height: auto;
  max-height: 89vh;
  object-fit: cover;
  filter: brightness(0.82) contrast(1.08);
  object-position: center;
  transition: transform 10s linear;
  transform: scale(1.03);
}

.hero-carousel img.custom-slider-2 {
  object-fit: contain !important;
  object-position: center;
  transform: scale(1);        /* REMOVE zoom */
  background-color: #000;    /* optional – prevents empty edges looking odd */
}

/* Responsive adjustment for Mobile */
@media (max-width: 768px) {
  .custom-carousel-img {
    height: 40vh; /* Shorter height on phones so it doesn't take the whole screen */
  }
}

.hero-carousel .carousel-item.active img {
  transform: scale(1);
}

/* PREMIUM overlay */
.hero-carousel .carousel-item::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(0, 0, 0, 0.6) 0%,
    rgba(0, 0, 0, 0.32) 50%,
    rgba(0, 0, 0, 0.15) 100%
  );
  z-index: 1;
}

/* CAPTION */
.carousel-caption {
  z-index: 2;
  text-align: left;
  left: 6%;
  right: auto;
  bottom: 20%;
  max-width: 650px;
}

.carousel-caption h2 {
  color: #fff;
  font-size: clamp(1.8rem, 3.5vw, 3.2rem);
  font-weight: 700;
  letter-spacing: -0.5px;
  margin-bottom: 0.6rem;
}

.carousel-caption h2 span {
  color: #0a4275; /* golden highlight */
}

.carousel-caption p {
  color: rgba(255, 255, 255, 0.94);
  font-size: 1.1rem;
  margin-bottom: 1rem;
  line-height: 1.45;
}

/* CTA Button */
.cta-btn {
  display: inline-block;
  background-color: #0a4275;
  color: white;
  padding: 10px 26px;
  border-radius: 50px;
  font-family: "Poppins";
  font-weight: 500;
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.25);
  transition: all 0.22s ease;
}

.cta-btn:hover {
  transform: translateY(-3px);
  color: #0a4275;
  background-color: white;
}

/* Indicators */
.carousel-indicators [data-bs-target] {
  height: 2px;
  width: 20px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.55);
  transition: transform 0.2s ease;
}

.carousel-indicators .active {
  background: #0a4275;
  transform: scale(1.28);
}

/* Controls */
.carousel-control-prev,
.carousel-control-next {
  width: 60px;
  height: 60px;
  top: 50%;
  transform: translateY(-50%);
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.28);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease;
}

.carousel-control-prev:hover,
.carousel-control-next:hover {
  background: rgba(255, 255, 255, 0.9);
}

.carousel-control-prev i,
.carousel-control-next i {
  font-size: 1.7rem;
  color: #fff;
}

.carousel-control-prev:hover i,
.carousel-control-next:hover i {
  color: #0a4275;
}

/* Mobile */
@media (max-width: 768px) {
  .hero-carousel img {
    max-height: 70vh;
  }
  .carousel-caption {
    bottom: 17%;
    left: 4%;
    max-width: 92%;
  }
  .carousel-caption h2 {
    font-size: 1.7rem;
  }
  .carousel-caption p {
    font-size: 1rem;
  }
  .cta-btn {
    padding: 8px 20px;
    margin-top: 10px;
  }
  .carousel-control-prev,
  .carousel-control-next {
    width: 46px;
    height: 46px;
  }
}

/* ABOUT */
.about-section {
  background: var(--white);
  border-radius: 14px;
  padding: 48px 28px;
  box-shadow: var(--shadow);
  text-align: center;
}
.about-section h1 {
  font-family: "Poppins";
  color: var(--primary-blue);
  font-size: 1.9rem;
  margin-bottom: 14px;
}
.about-section p {
  color: #2b2b2b;
  font-family: "Ubuntu", sans-serif;
  font-weight: 400;
  font-style: normal;
  max-width: 980px;
  margin: 0 auto;
}

/* FEATURE CARDS */
.feature-card {
  border-radius: 12px;
  overflow: hidden;
  transition: transform 0.28s ease, box-shadow 0.28s ease;
  background: var(--white);
}
.feature-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 18px 45px rgba(10, 20, 60, 0.08);
}
.feature-card img {
  height: 220px;
  object-fit: cover;
  width: 100%;
}
.feature-card .card-body h5 {
  color: var(--primary-blue);
  font-weight: 700;
  margin-bottom: 6px;
}
.feature-card .card-body p {
  color: #333;
  font-size: 0.95rem;
}

/* =========================
   PREMIUM TESTIMONIALS
========================= */

.testimonial-section {
  padding: 90px 20px;
  background: linear-gradient(135deg, #f9fafb, #eef2ff);
  text-align: center;
}

.testimonial-heading {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 60px;
  color: #111827;
}

.testimonial-slider {
  max-width: 900px;
  margin: 0 auto;
  position: relative;
}

/* Slides */
.testimonial-item {
  display: none;
  position: relative;
  padding: 70px 30px 40px;
  animation: fadeUp 0.9s ease forwards;
}

.testimonial-item.active {
  display: block;
}

/* Quote watermark — BEHIND CONTENT */
.quote-watermark {
  position: absolute;
  top: 40%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 200px;
  color: rgba(79, 70, 229, 0.06);
  font-family: serif;
  z-index: 0;
  pointer-events: none;
}

/* Avatar */
.testimonial-avatar {
  width: 82px;
  height: 82px;
  margin: 0 auto 28px;
  padding: 6px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.4);
  backdrop-filter: blur(12px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.15);
  position: relative;
  z-index: 1;
}

.testimonial-avatar img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
}

/* Text */
.testimonial-quote {
  font-size: 1.2rem;
  font-style: italic;
  line-height: 1.8;
  color: #1f2937;
  max-width: 760px;
  margin: 0 auto 30px;
  position: relative;
  z-index: 1;
}

.testimonial-author {
  position: relative;
  z-index: 1;
}

.testimonial-author .name {
  font-weight: 600;
  color: #111827;
}

.testimonial-author .location {
  font-size: 0.9rem;
  color: #6b7280;
}

/* Dots */
.testimonial-dots {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-top: 30px;
}

.dot {
  width: 11px;
  height: 11px;
  background: #c7d2fe;
  border-radius: 50%;
  cursor: pointer;
  transition: all 0.3s ease;
}

.dot.active {
  background: #4f46e5;
  transform: scale(1.2);
}

/* Animation */
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Responsive */
@media (max-width: 768px) {
  .testimonial-heading {
    font-size: 2rem;
  }

  .testimonial-quote {
    font-size: 1.05rem;
  }

  .quote-watermark {
    font-size: 140px;
  }
}

/* AD / DONATION placeholders */
.ad-placeholder {
  background: linear-gradient(180deg, #f6f9ff, #f2f5ff);
  border: 1px dashed rgba(29, 78, 216, 0.3);
  border-radius: 10px;
  padding: 28px;
  text-align: center;
  color: var(--primary-blue);
  font-weight: 600;
  box-shadow: 0 10px 30px rgba(10, 20, 60, 0.03);
}

/* Floating donate button */
.floating-donate {
  font-family: "Poppins";
  position: fixed;
  right: 18px;
  bottom: 18px;
  background: linear-gradient(135deg, #ff7a45, #ff3d3d);
  color: #ffffff;
  padding: 8px 20px;
  border-radius: 50px;
  box-shadow: 0 8px 30px rgba(255, 61, 61, 0.25);
  z-index: 1050;
  display: flex;
  gap: 10px;
  align-items: center;
  font-weight: 500;
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
  font-size: 0.95rem;
}

.floating-donate i {
  font-size: 1.1rem;
}

.floating-donate:hover {
  background: linear-gradient(135deg, #ff6a30, #ff2828);
  color: #ffffff;
  box-shadow: 0 10px 35px rgba(255, 61, 61, 0.4);
  transform: translateY(-3px);
}

/* FOOTER */
.footer-section {
  background-color: #0a4275;
  color: #ccc;
  border-top: 2px solid rgba(255, 255, 255, 0.1);
  margin-top: 10px;
}

.footer-title {
  color: #fff;
  font-weight: 700;
  margin-bottom: 10px;
}

.footer-subtitle {
  color: #ffffff;
  font-weight: 600;
  margin-bottom: 10px;
}

.footer-links a {
  display: block;
  color: #ccc;
  padding: 3px 0;
  text-decoration: none;
}

.footer-links a:hover {
  color: #fff;
}

.footer-text {
  color: #bbb;
}
/* Newsletter Input Focus Styling */
.newsletter-form .form-control:focus {
  box-shadow: 0 4px 12px rgba(10, 66, 117, 0.1) !important;
  background-color: #fff !important;
  z-index: 1;
}

/* Button Hover State */
.newsletter-form .btn:hover {
  background-color: #0e5695 !important;
  box-shadow: 0 6px 15px rgba(10, 66, 117, 0.25);
  transition: all 0.3s ease;
}

/* Typographic spacing */
.newsletter-form small i {
  color: #28a745; /* Green checkmark for trust */
}
.social-icons a {
  color: #ddd;
  margin-right: 10px;
  font-size: 1.2rem;
  transition: 0.3s;
}

.social-icons a:hover {
  color: #ffc107;
}

/* small focus outlines for accessibility */
:focus {
  outline: 3px solid rgba(29, 78, 216, 0.15);
  outline-offset: 2px;
}

/* Our Units Page */
/* =========================
   UNITS – PREMIUM DESIGN
========================= */

.units-section {
  background: linear-gradient(135deg, #f8fafc, #eef2ff);
  margin-top: 3rem;
}

.unit-glass-card {
  background: rgba(255, 255, 255, 0.75);
  backdrop-filter: blur(14px);
  border-radius: 22px;
  overflow: hidden;
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.08);
  transition: transform 0.4s ease, box-shadow 0.4s ease;
  height: 100%;
}

.unit-glass-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 35px 70px rgba(0, 0, 0, 0.12);
}

.unit-image {
  position: relative;
  height: 180px;
  overflow: hidden;
}

.unit-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.unit-badge {
  position: absolute;
  top: 14px;
  left: 14px;
  padding: 6px 14px;
  font-size: 0.75rem;
  border-radius: 50px;
  font-weight: 600;
  backdrop-filter: blur(6px);
}

.unit-badge.education {
  background: rgba(27, 24, 78, 0.15);
  color: white;
}

.unit-badge.healthcare {
  background: rgba(220, 38, 38, 0.15);
  color: #991b1b;
}

.unit-badge.wellness {
  background: rgba(22, 163, 74, 0.15);
  color: #065f46;
}

.unit-content {
  padding: 22px;
}

.unit-content h5 {
  font-weight: 600;
  margin-bottom: 6px;
}

.unit-content p {
  color: #6b7280;
  font-size: 0.95rem;
  margin-bottom: 0;
}


/* =========================
   OUR ACHIEVERS – PREMIUM
========================= */

.achievers-section {
  background: linear-gradient(135deg, #f8fafc, #eef2ff);
  margin-top: 3rem;
}

.achiever-card {
  background: rgba(255, 255, 255, 0.85);
  border-radius: 22px;
  padding: 30px 20px;
  text-align: center;
  box-shadow: 0 20px 45px rgba(0,0,0,0.08);
  transition: transform 0.4s ease, box-shadow 0.4s ease;
  height: 100%;
}

.achiever-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 35px 75px rgba(0,0,0,0.12);
}

.achiever-img {
  width: 95px;
  height: 95px;
  object-fit: cover;
  border-radius: 50%;
  margin-bottom: 15px;
  border: 4px solid #4f46e5;
}

.achiever-card h5 {
  font-weight: 600;
  margin-bottom: 6px;
  color: #0a4275;

}

.exam-badge {
  display: inline-block;
  padding: 5px 14px;
  font-size: 0.8rem;
  font-weight: 500;
  border-radius: 50px;
  background: rgba(79, 70, 229, 0.15);
  color: #3730a3;
  margin-bottom: 12px;
}

.exam-badge.neet {
  background: rgba(22, 163, 74, 0.15);
  color: #065f46;
}

.score {
  font-size: 1.1rem;
  font-weight: 600;
  color: #111827;
}

.neet-rank {
  font-size: 1.05rem;
  font-weight: 600;
  color: #111827;
}

.neet-rank small {
  display: block;
  color: #6b7280;
  font-weight: 400;
}