/* Custom CSS */
:root {
  --primary: #1e40af;
  --primary-dark: #0A2F70;
  --primary-light: #26AFE4;
  --secondary: #ffc107;
  --secondary-dark: #e0a800;
  --matte-color-darkblue: #0a2f70;
}

body {
  font-family: 'Poppins', sans-serif;
  color: #333;
  padding-top: 0;
  /* Space removed for sticky navbar */
}

@media (max-width: 991px) {
  body {
    padding-top: 0;
    /* Adjusted for sticky navbar */
  }
}

/* Top Bar */
.top-bar {
  font-size: 0.9rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.hover-warning:hover {
  color: #ffc107 !important;
  transition: color 0.3s ease;
}

/* Updated Navbar Styles */
.navbar {
  background-color: white !important;
  transition: all 0.3s ease;
}

.navbar .nav-link {
  color: #333 !important;
  font-weight: 500;
  position: relative;
  padding-bottom: 5px;
}

.navbar .nav-link:hover {
  color: #ef5c32 !important;
}

.navbar .nav-link.active {
  color: #ef5c32 !important;
  border-bottom: 2px solid #ef5c32;
}


/* Utility Classes */
.z-index-1 {
  z-index: 1;
}

.bg-light-opacity {
  background-color: rgba(255, 255, 255, 0.2);
}

.bg-primary-dark {
  background-color: rgba(10, 88, 202, 0.8);
}

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

.border-primary-light {
  border-color: rgb(13, 109, 253);
}

.bg-dark {
  --bs-bg-opacity: 1;
  background-color: rgb(13 1 77) !important;
}

.section-title {
  color: var(--primary);
  font-weight: 700;
  margin-bottom: 2rem;
}

.nav-link {
  color: #f39c12;

}

.navbar-nav {
  --bs-nav-link-hover-color: rgb(227 227 227 / 94%);
}

.navbar-nav .nav-link.active,
.navbar-nav .show>.nav-link {
  color: #f39c12;
  font-weight: bold;
  border-bottom: 2px solid #f39c12;
}

/* Hero Section */
.hero {
  position: relative;
  min-height: 100vh;
  background: linear-gradient(to right, #0a58ca, #0d6efd);
  padding-top: 80px;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgb(15, 46, 117);
  /* background-image: url('https://images.pexels.com/photos/267885/pexels-photo-267885.jpeg'); */
  background-size: cover;
  background-position: center;
  background-blend-mode: overlay;
  z-index: 0;
}

.dark-blue {
  background-color: var(--matte-color-darkblue);
}

/* Carousel / Hero Section */
.carousel-item {
  background-color: var(--matte-color-darkblue);
  text-align: center;
}

.hero-slide {
  position: relative;
  overflow: hidden;
}

.hero-slide img {
  height: 85vh;
  width: 100%;
  object-fit: cover;
  transition: transform 8s ease-out;
}

/* Ken Burns Zoom on Active Slide */
.carousel-item.active .hero-zoom {
  animation: kenBurns 8s ease-out forwards;
}

@keyframes kenBurns {
  0% {
    transform: scale(1);
  }

  100% {
    transform: scale(1.08);
  }
}

/* Gradient Overlay on Bottom */
.hero-overlay-gradient {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 60%;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.65) 0%, transparent 100%);
  pointer-events: none;
  z-index: 1;
}

/* Caption Styling */
.hero-caption {
  z-index: 2;
  bottom: 0;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
}

.hero-caption-title {
  font-size: 2.5rem;
  font-weight: 800;
  color: white;
  letter-spacing: 1px;
  margin-bottom: 0.5rem;
}

.hero-caption-sub {
  font-size: 1.2rem;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 1.5rem;
}

/* Slide-Up Animation */
.animate-slide-up {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.carousel-item.active .animate-slide-up {
  opacity: 1;
  transform: translateY(0);
}

.carousel-item.active .animate-slide-up.delay-1 {
  transition-delay: 0.3s;
}

.carousel-item.active .animate-slide-up.delay-2 {
  transition-delay: 0.6s;
}

/* Custom Indicators */
.hero-indicators button {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: 2px solid white;
  background-color: transparent;
  opacity: 0.7;
  transition: all 0.3s ease;
  margin: 0 5px;
}

.hero-indicators button.active {
  background-color: #ef5c32;
  border-color: #ef5c32;
  opacity: 1;
  width: 30px;
  border-radius: 10px;
}

/* Custom Navigation Arrows */
.hero-arrow {
  width: 50px;
  height: 50px;
  top: 50%;
  transform: translateY(-50%);
  opacity: 0.7;
  transition: opacity 0.3s ease;
}

.hero-arrow:hover {
  opacity: 1;
}

.hero-arrow-icon {
  width: 45px;
  height: 45px;
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(4px);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  color: white;
  transition: background 0.3s ease;
}

.hero-arrow:hover .hero-arrow-icon {
  background: rgba(239, 92, 50, 0.8);
}

/* Mobile Hero Adjustments */
@media (max-width: 768px) {
  .hero-slide img {
    height: auto;
    max-height: 50vh;
    object-fit: contain;
  }

  .hero-caption-title {
    font-size: 1.4rem;
  }

  .hero-caption-sub {
    font-size: 0.9rem;
  }

  .hero-arrow {
    display: none;
  }

  .navbar-brand {
    max-width: 75%;
    margin-right: 0;
  }

  .logo-container img {
    max-height: 50px;
    width: auto;
  }
}

/* Service Cards */
.service-card {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1) !important;
}

/* Benefit Number */
.benefit-number {
  width: 40px;
  height: 40px;
  background-color: var(--primary);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
}

/* Tabs */
.nav-pills .nav-link {
  color: var(--primary);
  font-weight: 600;
}

.nav-pills .nav-link.active {
  background-color: var(--primary);
  color: white;
}

/* Social Links */
.social-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  transition: all 0.3s ease;
}

.social-links a:hover {
  background-color: var(--secondary);
  color: var(--primary-dark) !important;
}

/* Form Styles */
.form-control:focus,
.form-select:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25);
}

.form-message.success {
  color: #0f5132;
  background-color: #d1e7dd;
  padding: 10px;
  border-radius: 4px;
}

.form-message.error {
  color: #842029;
  background-color: #f8d7da;
  padding: 10px;
  border-radius: 4px;
}

.navbar .nav-link {
  color: #fff;
  font-weight: 500;
  transition: color 0.3s ease-in-out;
}

.navbar .nav-link:hover {
  color: #f39c12;
}

.navbar .nav-link.active {
  color: #f39c12 !important;
  font-weight: bold;
  border-bottom: 2px solid #f39c12;
}

.gradient-border-box {
  background: linear-gradient(white, white) padding-box,
    linear-gradient(to right, rgb(10, 47, 112), rgb(254, 209, 5)) border-box;
  border-radius: .50em;
  border: 4px solid transparent;
}

.card {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  overflow: hidden;
}

.card:hover {
  transform: scale(1.05);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1) !important;
  z-index: 10;
}

/* Optional: Add a subtle background color change on hover */
.card:hover .card-body {
  /* background-color: #f8f9fa; */
}

/* To make the number more prominent on hover */
.card:hover .benefit-number {
  color: #0d6efd;
}

/* Full-Width Admission Banner */
.admission-banner {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background: linear-gradient(90deg, #f39c12, #da8702);
  color: white;
  text-align: center;
  font-size: 1.4rem;
  font-weight: bold;
  padding: 12px;
  z-index: 1050;
  display: flex;
  justify-content: center;
  align-items: center;
  animation: bouncePopup 1.5s infinite;
}

/* Close Button for Banner */
.close-banner {
  position: absolute;
  right: 15px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  font-size: 1.8rem;
  color: white;
  cursor: pointer;
}

/* Infinite Popup Bounce Animation */
@keyframes bouncePopup {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-5px);
  }
}

.zoom-in-out {
  animation: zoom-in-zoom-out 2s ease-out infinite;
}

@keyframes zoom-in-zoom-out {
  0% {
    transform: scale(1, 1);
  }

  50% {
    transform: scale(1.5, 1.5);
  }

  100% {
    transform: scale(1, 1);
  }
}

/* Adjust Navbar Position */
.navbar {
  /*  margin-top: 60px; Adjust so the navbar doesn't overlap */
}

/* Active Navbar Link */
.navbar .nav-link {
  color: white;
  font-weight: 500;
  transition: color 0.3s ease-in-out;
}

.navbar .nav-link.active {
  color: #f39c12 !important;
  font-weight: bold;
  border-bottom: 2px solid #f39c12;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
  .admission-banner {
    font-size: 1rem;
    padding: 10px 40px;
  }

  .close-banner {
    font-size: 1.5rem;
  }

  .navbar {
    /* margin-top: 60px; */
    /* Adjust for mobile */
  }
}

/* Popup Overlay */
.popup-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease-in-out, visibility 0.3s ease-in-out;
  z-index: 1050;
}

/* Show Popup */
.popup-overlay.active {
  opacity: 1;
  visibility: visible;
}

/* Popup Content */
.popup-content {
  background: white;
  padding: 25px;
  text-align: center;
  border-radius: 10px;
  max-width: 400px;
  width: 90%;
  position: relative;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  animation: fadeInPopup 0.3s ease-in-out;
}

/* Popup Close Button */
.popup-close {
  position: absolute;
  top: 10px;
  right: 15px;
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
}

/* Fade In Animation */
@keyframes fadeInPopup {
  from {
    transform: scale(0.8);
    opacity: 0;
  }

  to {
    transform: scale(1);
    opacity: 1;
  }
}

/* Responsive Adjustments */
@media (max-width: 480px) {
  .popup-content {
    max-width: 90%;
    padding: 20px;
  }

  .popup-close {
    font-size: 1.2rem;
  }
}

@keyframes paperBlast {
  0% {
    opacity: 0;
    transform: translateY(0) scale(0.5);
  }

  50% {
    opacity: 1;
    transform: translateY(-50px) scale(1.2);
  }

  100% {
    opacity: 0;
    transform: translateY(-100px) scale(0.5);
  }
}

/* Logo container with relative positioning */
.logo-container {
  position: relative;
  display: inline-block;
  width: 100%;
  max-width: 250px;
  /* Adjust based on your needs */
}

.logo-container img {
  width: 100%;
  height: auto;
  display: block;
}

/* AVINASHI text overlay */
.logo-text-overlay {
  position: absolute;
  top: -3px;
  /* Adjust to position above the circle */
  left: 10px;
  /* Adjust to position over the circular part */
  background: linear-gradient(135deg, #4a90e2, #7b68ee);
  color: white;
  padding: 4px 12px;
  border-radius: 15px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 4px;
  text-transform: uppercase;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
  z-index: 10;
  white-space: nowrap;
  transform: translateX(-50%);
  left: 135px;
  /* Adjust to center over circle */
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .logo-container {
    max-width: 250px;
  }

  .logo-text-overlay {
    font-size: 8px;
    padding: 2px 6px;
    top: 0px;
    left: 126px;
    border-radius: 10px;
    letter-spacing: 5px;
  }
}

@media (max-width: 576px) {
  .logo-container {
    max-width: 180px;
  }

  .logo-text-overlay {
    font-size: 8px;
    padding: 2px 6px;
    top: -4px;
    left: 40px;
    border-radius: 10px;
  }
}

@media (max-width: 400px) {
  .logo-container {
    max-width: 150px;
  }

  .logo-text-overlay {
    font-size: 7px;
    padding: 2px 5px;
    top: -3px;
    left: 35px;
  }
}

/* Alternative style - if you want it more integrated with the logo */
.logo-text-overlay.integrated {
  background: rgba(74, 144, 226, 0.9);
  backdrop-filter: blur(5px);
  border: 2px solid rgba(255, 255, 255, 0.3);
}

/* Animation effect (optional) */
.logo-text-overlay.animated {
  animation: fadeInDown 0.6s ease-out;
}

@keyframes fadeInDown {
  0% {
    opacity: 0;
    transform: translateX(-50%) translateY(-10px);
  }

  100% {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
  }
}

/* Partner School Cards */
.partner-school-card {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border-radius: 12px;
}

.partner-school-card:hover {
  transform: translateY(-5px) scale(1.02);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.12) !important;
}

.partner-logo-wrap {
  width: 70px;
  height: 70px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.partner-icon-placeholder {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Results Page — Stat Cards */
.stat-card {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.stat-number {
  font-size: 2.5rem;
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 0.5rem;
}

/* Avatar Placeholder */
.avatar-placeholder {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Rank Hero Card */
.rank-hero-card {
  border-radius: 16px;
  background: linear-gradient(135deg, #fff8f0 0%, #ffffff 100%);
}

.rank-badge {
  position: absolute;
  top: 15px;
  right: 15px;
  background: linear-gradient(135deg, #ffc107, #ff9800);
  color: white;
  font-weight: 800;
  font-size: 1rem;
  padding: 8px 16px;
  border-radius: 20px;
  box-shadow: 0 4px 12px rgba(255, 152, 0, 0.4);
}

/* Vedantu Branding */
.text-vedantu {
  color: #ef5c32 !important;
}

.bg-vedantu {
  background-color: #ef5c32 !important;
}

.btn-vedantu {
  background-color: #ef5c32 !important;
  color: white !important;
  border: none;
  transition: all 0.3s ease;
}

.btn-vedantu:hover {
  background-color: #d94e28 !important;
  color: white !important;
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(239, 92, 50, 0.3);
}