:root {
  /* Brand Colors (Extracted from Value Shiksha Logo) */
  --brand: #128c8d; /* Teal */
  --fg-brand: #128c8d; /* Teal for text */
  --brand-navy: #0b1221; /* Deep Navy */
  --brand-gold: #b8974d; /* Gold */

  /* Neutral/Structural Colors (For Navbar Snippet & Layout) */
  --neutral-primary: #ffffff;
  --neutral-primary2: #90cece;

  --neutral-secondary-soft: #f9fafb;
  --neutral-tertiary: #f3f4f6;
  --heading: #0b1221;
  --body: #000;
  --default: #e5e7eb; /* Borders */
}

body {
  font-family: "Inter", sans-serif;
  background-color: var(--neutral-secondary-soft);
  color: var(--body);
  scroll-behavior: smooth;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  color: var(--heading);
  font-weight: 700;
}

input[type="checkbox"],
input[type="radio"] {
  border: 1px solid #000 !important;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: var(--neutral-tertiary);
}
::-webkit-scrollbar-thumb {
  background: var(--brand);
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: #0e7273;
}

/* Swiper Overrides */
.swiper-button-prev:after,
.swiper-rtl .swiper-button-next:after {
  content: "" !important;
}
.swiper-button-next:after,
.swiper-rtl .swiper-button-prev:after {
  content: "" !important;
}
.swiper-button-next svg,
.swiper-button-prev svg {
  width: 24px !important;
  height: 24px !important;
  color: var(--brand);
}
/* Swiper button position is handled by Swiper internally */

.swiper-slide.swiper-slide-active {
  border-color: var(--brand) !important;
  box-shadow:
    0 10px 15px -3px rgba(18, 140, 141, 0.1),
    0 4px 6px -2px rgba(18, 140, 141, 0.05) !important;
}
.swiper-slide.swiper-slide-active .swiper-slide-active\:text-brand {
  color: var(--brand) !important;
}

/* Gold Divider */
.gold-divider {
  width: 80px;
  height: 4px;
  background-color: var(--brand-gold);
  border-radius: 2px;
  margin-bottom: 1.5rem;
}

/* Vibrant Gradient Backgrounds */
.vibrant-gradient {
  background: linear-gradient(135deg, #0d9488 0%, #128c8d 40%, #06b6d4 100%);
  position: relative;
  overflow: hidden;
}

/* Decorative blurred shapes for gradient sections */
.vibrant-gradient::before {
  content: "";
  position: absolute;
  top: -10%;
  right: -5%;
  width: 500px;
  height: 500px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  filter: blur(60px);
  z-index: 0;
}
.vibrant-gradient::after {
  content: "";
  position: absolute;
  bottom: -15%;
  left: -10%;
  width: 400px;
  height: 400px;
  background: rgba(184, 151, 77, 0.25); /* Brand Gold glow */
  border-radius: 50%;
  filter: blur(80px);
  z-index: 0;
}

/* Glassmorphism Card */
.glass-card {
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.3);
  box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.1);
}

/* Timeline Styling */
.timeline-line {
  position: absolute;
  left: 1.5rem;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(to bottom, var(--brand), var(--brand-gold));
}
@media (min-width: 768px) {
  .timeline-line {
    left: 50%;
    transform: translateX(-50%);
  }
}

/* Floating Social Widget */
.floating-social {
  position: fixed;
  right: 1.5rem;
  top: 50%;
  transform: translateY(-50%);
  z-index: 60;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.social-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: white;
  color: var(--brand);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  border: 1px solid var(--default);
  text-decoration: none;
}

.social-btn:hover {
  background: var(--brand);
  color: white;
  transform: scale(1.1) translateX(-4px);
  box-shadow: 0 8px 20px rgba(18, 140, 141, 0.3);
}

/* Back to Home Button */
.back-home {
  position: fixed;
  left: 1.5rem;
  top: 50%;
  transform: translateY(-50%);
  z-index: 60;
}

.back-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: white;
  color: var(--brand-navy);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  border: 1px solid var(--default);
  text-decoration: none;
}

.back-btn:hover {
  background: var(--brand-navy);
  color: white;
  transform: scale(1.1) translateX(4px);
  box-shadow: 0 8px 20px rgba(11, 18, 33, 0.3);
}

/* Gallery Counter */
.gallery-counter {
  position: absolute;
  bottom: 2rem;
  right: 2rem;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
  padding: 0.5rem 1rem;
  border-radius: 50px;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--brand-navy);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  z-index: 10;
}

/* Responsive */
@media (max-width: 768px) {
  .floating-social {
    right: 1rem;
    gap: 0.5rem;
  }
  .social-btn {
    width: 38px;
    height: 38px;
  }
  .back-home {
    left: 1rem;
  }
  .back-btn {
    width: 38px;
    height: 38px;
  }
  .gallery-image {
    height: 320px;
  }
  .slide-caption {
    padding: 1.5rem;
  }
  .gallery-counter {
    bottom: 1rem;
    right: 1rem;
    font-size: 0.75rem;
    padding: 0.35rem 0.75rem;
  }
}

@media (max-width: 480px) {
  .gallery-image {
    height: 260px;
  }
  .slide-caption h3 {
    font-size: 1rem;
  }
  .slide-caption p {
    font-size: 0.8rem;
  }
}

/* ============================================
   CONTACT US PAGE STYLES
   ============================================ */

/* Contact Form Styles */
.contact-input {
  width: 100%;
  background: var(--neutral-secondary-soft);
  border: 1px solid var(--default);
  color: var(--body);
  font-size: 0.875rem;
  border-radius: 0.5rem;
  padding: 0.875rem 1.25rem;
  transition: all 0.3s ease;
  font-family: "Inter", sans-serif;
}

.contact-input:focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 0 0 4px rgba(18, 140, 141, 0.15);
}

.contact-input::placeholder {
  color: #9ca3af;
}

.contact-label {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--heading);
  margin-bottom: 0.5rem;
}

.submit-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.875rem 2.5rem;
  background: linear-gradient(135deg, var(--brand), #0e7273);
  color: white;
  font-weight: 700;
  border-radius: 0.5rem;
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
  font-family: "Inter", sans-serif;
  font-size: 1rem;
}

.submit-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 30px rgba(18, 140, 141, 0.35);
}

.submit-btn:active {
  transform: translateY(0);
}

/* ============================================
   GALLERY PAGE STYLES
   ============================================ */

/* Gallery Image - base styles (missing, causing blank slides) */
.gallery-image {
  width: 100%;
  height: 480px;
  object-fit: cover;
  display: block;
}

/* Slide Caption - missing entirely, making captions invisible */
.slide-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 2rem;
  background: linear-gradient(
    to top,
    rgba(0, 0, 0, 0.78) 0%,
    rgba(0, 0, 0, 0.35) 55%,
    transparent 100%
  );
  color: white;
}

.slide-caption h3 {
  color: white;
  font-weight: 700;
}

/* Swiper Overrides for Gallery */
.gallerySwiper .swiper-button-prev:after,
.gallerySwiper .swiper-rtl .swiper-button-next:after {
  content: "" !important;
}
.gallerySwiper .swiper-button-next:after,
.gallerySwiper .swiper-rtl .swiper-button-prev:after {
  content: "" !important;
}

.gallerySwiper .swiper-button-next,
.gallerySwiper .swiper-button-prev {
  width: 48px !important;
  height: 48px !important;
  background: white;
  border-radius: 50%;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
  transition: all 0.3s ease;
}

.gallerySwiper .swiper-button-next:hover,
.gallerySwiper .swiper-button-prev:hover {
  background: var(--brand);
  box-shadow: 0 8px 30px rgba(18, 140, 141, 0.3);
}

.gallerySwiper .swiper-button-next:hover svg,
.gallerySwiper .swiper-button-prev:hover svg {
  color: white !important;
}

.gallerySwiper .swiper-button-next svg,
.gallerySwiper .swiper-button-prev svg {
  width: 20px !important;
  height: 20px !important;
  color: var(--brand);
  transition: color 0.3s ease;
}

.gallerySwiper .swiper-pagination-bullet {
  background: var(--default);
  opacity: 1;
  width: 12px;
  height: 12px;
  transition: all 0.3s ease;
}

.gallerySwiper .swiper-pagination-bullet-active {
  background: var(--brand);
  transform: scale(1.2);
  box-shadow: 0 0 20px rgba(18, 140, 141, 0.4);
}

.gallerySwiper .swiper-slide {
  opacity: 0.5;
  transform: scale(0.92);
  transition: all 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.gallerySwiper .swiper-slide-active {
  opacity: 1;
  transform: scale(1);
}

/* Calculator Card Styles */
.calculator-card {
  display: flex;
  flex-direction: column;
  background: var(--neutral-primary);
  border-radius: 1rem;
  padding: 1.5rem;
  border: 2px solid var(--default);
  transition: all 0.3s ease;
  text-decoration: none;
  height: 100%;
  position: relative;
  overflow: hidden;
}

.calculator-card::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(to right, var(--brand), var(--brand-gold));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
}

.calculator-card:hover {
  border-color: var(--brand);
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(18, 140, 141, 0.12);
}

.calculator-card:hover::after {
  transform: scaleX(1);
}

.calculator-icon {
  width: 48px;
  height: 48px;
  border-radius: 0.75rem;
  background: var(--neutral-secondary-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
  transition: all 0.3s ease;
  border: 1px solid var(--default);
  color: var(--brand);
  flex-shrink: 0;
}

.calculator-card:hover .calculator-icon {
  background: rgba(18, 140, 141, 0.1);
  border-color: var(--brand);
  color: var(--brand);
}

.calculator-title {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--heading);
  margin-bottom: 0.5rem;
  transition: color 0.3s ease;
  line-height: 1.3;
}

.calculator-card:hover .calculator-title {
  color: var(--brand);
}

.calculator-desc {
  color: var(--body);
  font-size: 0.9375rem;
  margin-bottom: 1.25rem;
  flex-grow: 1;
  line-height: 1.6;
}

.calculator-link {
  display: inline-flex;
  align-items: center;
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--brand-gold);
  transition: all 0.3s ease;
  margin-top: auto;
  width: fit-content;
}

.calculator-card:hover .calculator-link {
  color: var(--brand);
}

@media (max-width: 640px) {
  .calculator-card {
    padding: 1.25rem;
  }
  .calculator-title {
    font-size: 1rem;
  }
  .calculator-desc {
    font-size: 0.875rem;
  }
}

.research-card {
  background: var(--neutral-primary);
  border-radius: 1rem;
  padding: 1.5rem;
  border: 2px solid var(--default);
  transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  display: flex;
  flex-direction: column;
  height: 100%;
  position: relative;
  overflow: hidden;
}

.research-card:hover {
  transform: translateY(-6px);
  border-color: var(--brand);
  box-shadow: 0 20px 40px rgba(18, 140, 141, 0.12);
}

.research-card .icon-wrapper {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  background: var(--neutral-secondary-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
  border: 1px solid var(--default);
  transition: all 0.4s ease;
  flex-shrink: 0;
}

.research-card:hover .icon-wrapper {
  background: var(--brand);
  border-color: var(--brand);
}

.research-card:hover .icon-wrapper i {
  color: white;
}

.research-card .icon-wrapper i {
  font-size: 1.25rem;
  color: var(--brand);
  transition: all 0.4s ease;
}

.research-card h3 {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--heading);
  margin-bottom: 0.5rem;
  transition: color 0.3s ease;
  line-height: 1.3;
}

.research-card:hover h3 {
  color: var(--brand);
}

.research-card p {
  color: var(--body);
  font-size: 0.875rem;
  line-height: 1.6;
  margin-bottom: 1.25rem;
  flex-grow: 1;
}

.research-card .card-link {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--brand-gold);
  transition: all 0.3s ease;
  margin-top: auto;
  width: fit-content;
}

.research-card:hover .card-link {
  color: var(--brand);
}

.research-card .card-link svg {
  width: 16px;
  height: 16px;
  transition: transform 0.3s ease;
}

.research-card:hover .card-link svg {
  transform: translateX(4px);
}

.live-badge {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: #ecfdf5;
  color: #059669;
  border: 1px solid #a7f3d0;
  font-size: 0.6rem;
  font-weight: 700;
  padding: 0.25rem 0.625rem;
  border-radius: 9999px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  display: flex;
  align-items: center;
  gap: 0.375rem;
  z-index: 5;
}

.live-badge .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #059669;
  animation: pulse-dot 1.5s ease-in-out infinite;
}

@keyframes pulse-dot {
  0%,
  100% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 0.4;
    transform: scale(0.7);
  }
}

.research-card .card-decoration {
  position: absolute;
  bottom: -30px;
  right: -30px;
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: var(--brand);
  opacity: 0.03;
  pointer-events: none;
  transition: all 0.6s ease;
}

.research-card:hover .card-decoration {
  opacity: 0.08;
  transform: scale(1.2);
}

@media (max-width: 768px) {
  .floating-social {
    right: 1rem;
    gap: 0.5rem;
  }
  .social-btn {
    width: 38px;
    height: 38px;
  }
  .research-card {
    padding: 1.25rem;
  }
}

#tooltip {
    position: relative;
    cursor: pointer;
}

#tooltipText {
  position: absolute;
  left: 50%;
  top: -50px;
  /* Adjust based on your preference */
  transform: translateX(-50%);
  background-color: #000;
  color: #fff;
  white-space: nowrap;
  /* Allows text to wrap naturally */
  padding: 10px 15px;
  border-radius: 7px;
  visibility: hidden;
  opacity: 0;
  transition: opacity 0.5s ease;
  z-index: 100;
  /* Ensure it's on top of other elements */
}

#tooltipText::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 100%;
  transform: translateX(-50%);
  border: 10px solid transparent;
  border-top-color: #000;
}

#tooltip:hover #tooltipText {
  visibility: visible;
  opacity: 1;
}