:root {
  /* Load Alike font globally so all pages that include styles.css get it */
  @import url("https://fonts.googleapis.com/css2?family=Alike&display=swap");
}
:root {
  --lal-rang: #ff0b0b;
  --peela-rang: #ffc107;
  --halka-rang: #e8f4fd;
  --gehra-rang: #0b0d0f;
  --halka-text: #6c757d;
  --safed: #ffffff;
  --header-height: 96px; /* increased header height reserved for the fixed header */
  --rang-gradiant: linear-gradient(
    135deg,
    #f13131 20%,
    #fd0909 100%
  ); /* Color gradiant */
  --chhaya: 0 4px 20px rgba(252, 15, 15, 0.918); /* Box shadow */
  --transition: all 0.3s ease; /* Smooth transition */
}

/* Alike font utility (imported from Google Fonts near the top of index.php head)
   Use class="alike-regular" on elements to apply the Alike serif face. */
.alike-regular {
  font-family: "Alike", serif;
  font-style: normal;
}

/* ================================
   Header / Navigation
   ================================ */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background: var(--lal-rang);
  color: var(--safed);
  z-index: 1100;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

/* Make header a fixed-height bar so child elements can use 100% height for vertical centering */
.header {
  height: var(--header-height);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  /* use full header height so children can use height:100% to center vertically */
  height: 100%;
  padding: 0 1rem;
}

.brand {
  display: flex;
  align-items: center;
  text-decoration: none;
  color: var(--safed);
}

.hamburger {
  display: none;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 6px;
}

.hamburger-line {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--safed);
  margin: 4px 0;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.brand-logo {
  height: 72px; /* larger logo for better visibility */
  width: auto;
  display: block;
  background: var(--safed); /* white background behind logo */
  /* padding: 6px 8px; */
  border-radius: 6px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
}

.nav ul {
  margin-top: 3%;
  list-style: none;
  display: flex;
  gap: 1.25rem;
  align-items: center;
  justify-content: center; /* center options horizontally */
}

/* Make the nav fill available space so its items appear centered in the header */
.nav {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 1;
  margin-left: 0; /* removed large left margin so nav centers reliably on all widths */
}

.nav a {
  color: var(--safed);
  text-decoration: none;
  font-weight: 600;
  /* larger, more readable nav text */
  font-size: 1.2rem;
  /* vertically center links inside the taller header by making them inline-flex
     and giving them the available content height (header minus header-inner padding) */
  display: inline-flex;
  align-items: center;
  height: 100%;
  padding: 0 12px; /* horizontal padding only; vertical space handled by height */
  border-radius: 6px;
  transition: background 0.2s ease;
}

.nav a:hover,
.nav a:focus {
  background: rgba(255, 255, 255, 0.08);
  color: var(--safed);
}

/* Hamburger open -> transform into an X for clear affordance */
.hamburger[aria-expanded="true"] .hamburger-line:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}
.hamburger[aria-expanded="true"] .hamburger-line:nth-child(2) {
  opacity: 0;
}
.hamburger[aria-expanded="true"] .hamburger-line:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

/* Mobile styles */
@media (max-width: 768px) {
  /* On small screens make header height flexible */
  .header {
    height: auto;
  }

  .header-inner {
    flex-direction: column;
    align-items: center;
    gap: 6px;
    padding: 12px 1rem;
  }

  .brand {
    justify-content: center;
  }

  .brand-logo {
    margin-bottom: 6px;
  }

  .hamburger {
    display: inline-block;
    order: 2;
    margin: 6px auto 0 auto;
  }

  .nav {
    order: 3;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: var(--lal-rang);
    transform: scaleY(0);
    transform-origin: top;
    transition: transform 0.2s ease;
  }

  .nav.open {
    transform: scaleY(1);
  }

  .nav ul {
    flex-direction: column;
    gap: 0;
    padding: 0.5rem 0;
    align-items: center;
    justify-content: center;
  }

  .nav a {
    display: block;
    padding: 12px 16px;
    height: auto;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    text-align: center;
  }
}
@media (max-width: 480px) {
  .nav {
    margin: 0;
  }
}

/* Keep page content visible under header */
@supports (padding-top: 1px) {
  body {
    padding-top: var(--header-height); /* space for fixed header */
  }
}

/* End header styles */

/* Carousel styles */

.carousel-section {
  position: relative;
  width: 100%;
  height: calc(100vh - var(--header-height)); /* fill viewport minus header */
  overflow: hidden;
}

.carousel-section .carousel-inner,
.carousel-section .carousel-item {
  height: 100%;
}

.carousel-section .carousel-item {
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  position: relative;
  z-index: 0;
}

.slide-img {
  position: relative;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  z-index: 0;
}

/* translucent overlay placed above slides but beneath captions/controls */
.carousel-section .overlay {
  position: absolute;
  inset: 0; /* top:0; right:0; bottom:0; left:0; */
  background: rgba(0, 0, 0, 0.493);
  z-index: 1; /* images are at 0, caption at 5, controls at 6 */
  pointer-events: none; /* allow clicks to pass through to controls */
}

/* make sure carousel section doesn't get a white background from other rules */
.carousel-section,
.carousel-section .carousel-inner {
  background: transparent !important;
}

.custom-carousel-caption {
  width: 650px;
  position: absolute;
  top: 45%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: var(--safed);
  text-align: center;
  z-index: 5;
}

/* Simplified caption layout: 3 stacked rows (title -> date -> button) */
.custom-carousel-caption {
  position: absolute;
  top: 45%;
  left: 50%;
  transform: translate(-50%, -50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  row-gap: 18px; /* space between title, date and button */
  z-index: 20; /* above overlay */
  text-align: center;
  padding: 6px 12px;
}

.custom-carousel-caption h1 {
  margin: 0;
  line-height: 1.05;
  font-weight: 700;
  color: var(--safed);
  text-shadow: 0 6px 18px rgba(0, 0, 0, 0.45);
  font-size: 2.2rem;
  margin-bottom: 0.8rem;
  text-shadow: 0 6px 18px rgba(0, 0, 0, 0.45);
}

/* date badge: single centered row */
.custom-carousel-caption .carousel-date-badge,
.carousel-mobile-caption .carousel-date-badge {
  display: inline-block;
  padding: 8px 16px;
  background: #fff3cd;
  color: #856404;
  border-radius: 10px;
  font-weight: 700;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.12);
}

/* register button: single centered row */
.custom-carousel-caption .btn-register,
.carousel-mobile-caption .btn-register {
  display: inline-block;
  min-width: 160px;
  padding: 12px 20px;
  border-radius: 10px;
  font-weight: 700;
}

/* keep mobile caption simple and stacked too */
.carousel-mobile-caption {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
}

.carousel-section .carousel-control-prev,
.carousel-section .carousel-control-next {
  /* align vertically with the carousel caption */
  top: 30%;
  transform: translateY(-50%);
  width: 3.5rem;
  height: 3.5rem;
  opacity: 0.95;
  z-index: 6;
}

.carousel-section .carousel-control-prev {
  left: 1rem;
}
.carousel-section .carousel-control-next {
  right: 1rem;
}

.carousel-section .carousel-control-prev-icon,
.carousel-section .carousel-control-next-icon {
  background-size: 1.6rem 1.6rem;
}

/* Date badge used in carousel captions (desktop overlay and mobile below-carousel) */
.carousel-date-badge {
  margin-top: 40px;
  font-weight: 700;
  background: #fff3cd; /* pale warning */
  color: #856404; /* dark warning text */
  display: inline-block;
  padding: 6px 12px;
  border-radius: 8px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
  font-size: 0.95rem;
}

@media (min-width: 768px) {
  .carousel-date-badge {
    font-size: 1rem;
  }
}

/* Enhanced spacing and visual tweaks for caption content */
.custom-carousel-caption {
  gap: 20px; /* increase spacing between rows */
  padding: 10px 18px; /* gentle padding so elements breathe */
}

.custom-carousel-caption h1 {
  font-size: 2rem; /* slightly larger headline */
  line-height: 1.05;
  letter-spacing: 0.6px;
  font-weight: 800;
  margin: 0; /* gap controls spacing */
  text-shadow: 0 8px 26px rgba(0, 0, 0, 0.55);
}

.carousel-date-badge {
  padding: 8px 16px; /* larger touch target */
  font-size: 1.03rem;
  background: linear-gradient(90deg, #fff9e6, #fff3cd);
  border-left: 4px solid var(--peela-rang);
  border-radius: 10px;
}

.btn-register {
  padding: 14px 26px;
  font-size: 1.05rem;
  border-radius: 12px;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.22);
  transition: transform 200ms ease, box-shadow 200ms ease, opacity 200ms ease,
    background 200ms ease;
  background: var(--lal-rang);
  color: var(--safed);
  border: none;
}

.btn-register:hover,
.btn-register:focus {
  background: #c70000; /* slightly darker red */
  color: #ffffff;
  transform: translateY(-4px);
  box-shadow: 0 16px 44px rgba(0, 0, 0, 0.28);
}

/* mobile-specific spacing */
@media (max-width: 767px) {
  .carousel-mobile-caption {
    gap: 10px;
    padding-top: 14px;
    padding-bottom: 14px;
  }
  .carousel-mobile-caption .carousel-date-badge {
    width: auto;
    margin-top: 4px;
    margin-bottom: 6px;
    padding: 8px 14px;
  }
  .carousel-mobile-caption .btn-register {
    width: 86%;
    padding: 12px 18px;
    font-size: 1rem;
  }
  .custom-carousel-caption h1 {
    font-size: 1.6rem;
  }
}

/* small polish: increase gap slightly on very large screens */
@media (min-width: 1200px) {
  .custom-carousel-caption {
    gap: 10px;
  }
  .custom-carousel-caption h1 {
    font-size: 3rem;
  }
}

/* ===== Hero size & CTA overrides (stronger visual presence) ===== */
/* These rules intentionally override earlier, more general rules to increase
   the hero heading, date badge and register button sizes on desktop while
   keeping mobile comfortable. */
.custom-carousel-caption h1 {
  font-size: 3.6rem !important;
  line-height: 1.03;
  font-weight: 800;
  text-shadow: 0 10px 34px rgba(0, 0, 0, 0.55);
}

.custom-carousel-caption .carousel-date-badge,
.carousel-mobile-caption .carousel-date-badge,
.carousel-date-badge {
  padding: 10px 20px !important;
  font-size: 1.18rem !important;
  border-radius: 10px !important;
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.14) !important;
}

.btn-register,
.custom-carousel-caption .btn-register,
.carousel-mobile-caption .btn-register {
  padding: 16px 34px !important;
  min-width: 190px !important;
  font-size: 1.25rem !important;
  border-radius: 14px !important;
  font-weight: 800 !important;
}

@media (max-width: 767px) {
  .custom-carousel-caption h1 {
    font-size: 1.8rem !important;
  }
  .carousel-mobile-caption .carousel-date-badge {
    padding: 10px 16px !important;
    font-size: 1.06rem !important;
  }
  .carousel-mobile-caption .btn-register {
    padding: 14px 18px !important;
    font-size: 1.08rem !important;
  }
}

@media (max-width: 768px) {
  .carousel-section .carousel-control-prev,
  .carousel-section .carousel-control-next {
    width: 2.6rem;
    height: 2.6rem;
    left: 0.5rem;
    right: 0.5rem;
  }
}

/* Mobile-specific carousel behavior and sizing */
@media (max-width: 768px) {
  /* reduce hero height so content below is reachable on small viewports */
  .carousel-section {
    height: 55vh; /* shorter on mobile */
  }

  /* slightly lighter overlay on mobile for better visibility */
  .carousel-section .overlay {
    background: rgba(0, 0, 0, 0.18);
  }

  /* make mobile caption elements larger and more touch friendly */
  .carousel-mobile-caption {
    gap: 12px;
    padding: 14px 16px;
  }

  .carousel-mobile-caption h2 {
    font-size: 1.15rem;
    margin: 0;
  }

  .carousel-mobile-caption .carousel-date-badge {
    font-size: 1.02rem;
    padding: 10px 16px;
    min-width: 160px;
  }

  .carousel-mobile-caption .btn-register {
    width: 92%;
    padding: 14px 18px;
    font-size: 1.03rem;
    border-radius: 10px;
  }

  /* ensure slide images fill area consistently */
  .carousel-section .carousel-item img {
    height: 100%;
    object-fit: cover;
  }

  /* move controls a bit inward and vertically centered */
  .carousel-section .carousel-control-prev,
  .carousel-section .carousel-control-next {
    top: 45%;
    transform: translateY(-50%);
    width: 2.4rem;
    height: 2.4rem;
  }

  .carousel-section .carousel-control-prev-icon,
  .carousel-section .carousel-control-next-icon {
    background-size: 1.1rem 1.1rem;
  }
}

/* Very small screens: make hero shorter so caption sits comfortably */
@media (max-width: 420px) {
  .carousel-section {
    height: 50vh;
  }
  .custom-carousel-caption h1 {
    font-size: 2.4rem !important;
  }
  .carousel-mobile-caption .btn-register {
    width: 95%;
  }
  /* slightly reduce logo on very small screens so header stays compact */
  .brand-logo {
    height: 52px;
    padding: 4px 6px;
  }
}

/* Very small screens (<=480px): make carousel full-width, taller and increase text/button sizes */
@media (max-width: 480px) {
  .carousel-section {
    height: 90vh; /* taller hero so caption fits comfortably */
    min-height: 68vh;
    width: 100%;
    left: 0;
    right: 0;
  }

  .carousel-section .carousel-inner,
  .carousel-section .carousel-item {
    min-height: 90vh;
  }

  .carousel-section .carousel-item img {
    min-height: 90vh;
    height: auto;
    width: 100%;
    object-fit: cover;
  }

  .custom-carousel-caption {
    width: calc(100% - 28px);
    max-width: none;
    padding: 16px 14px;
    border-radius: 10px;
    top: 60%;
    transform: translate(-50%, -52%);
    box-shadow: 0 12px 34px rgba(0, 0, 0, 0.45);
  }

  .custom-carousel-caption h1 {
    font-size: 2.45rem !important;
    line-height: 1.06;
  }

  .custom-carousel-caption .carousel-date-badge {
    font-size: 1.04rem;
    padding: 10px 18px;
  }

  .custom-carousel-caption .btn-register {
    width: 96%;
    padding: 14px 20px;
    font-size: 1.06rem;
    border-radius: 10px;
  }

  /* Ensure controls remain visible and smaller on very small screens */
  .carousel-section .carousel-control-prev,
  .carousel-section .carousel-control-next {
    width: 2.2rem;
    height: 2.2rem;
    top: 45%;
  }

  /* Small improvement to spacing below carousel */
  .carousel-mobile-caption {
    display: none; /* we use overlay caption */
  }
}

/* Hide carousel previous/next controls on mobile to simplify UI */
@media (max-width: 768px) {
  .carousel-section .carousel-control-prev,
  .carousel-section .carousel-control-next {
    display: none !important;
    visibility: hidden !important;
  }
}

@media (max-width: 768px) {
  /* Keep the mobile hero reasonably short so page content is reachable */
  .carousel-section {
    height: 70vh; /* increased mobile hero so caption fits */
    min-height: 70vh; /* ensure the carousel stays tall on mobile browsers */
  }

  .carousel-section .carousel-item img {
    height: 100%;
  }

  /* Ensure carousel inner/items and images fill the mobile hero area reliably
     (address browsers where 100% height collapses). */
  .carousel-section .carousel-inner,
  .carousel-section .carousel-item {
    min-height: 70vh;
  }

  .carousel-section .carousel-item img {
    min-height: 70vh;
    height: auto;
    width: 100%;
    object-fit: cover;
    display: block;
  }

  /* Show the desktop-style overlay caption on mobile as an inset card
     so title/date/button sit on top of the carousel (not below it). */
  .custom-carousel-caption {
    display: flex;
    position: absolute;
    top: 45%; /* center vertically */
    left: 50%;
    transform: translate(-50%, -50%);
    flex-direction: column;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    background: rgba(0, 0, 0, 0.45); /* semi-opaque card for readability */
    color: var(--safed);
    border-radius: 12px;
    width: calc(100% - 36px);
    max-width: 760px;
    z-index: 25; /* above overlay */
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.45);
  }

  .custom-carousel-caption h1 {
    font-size: 1.25rem;
    line-height: 1.08;
    margin: 0;
  }

  /* Hide the duplicate mobile caption block (we're using the overlay instead) */
  .carousel-mobile-caption {
    display: none;
  }

  /* strengthen overlay on mobile for better text contrast (beneath the caption card)
     keep it slightly darker so text remains readable on busy images */
  .carousel-section .overlay {
    background: rgba(0, 0, 0, 0.5);
  }

  /* Make the register button comfortable to tap on small screens */
  .custom-carousel-caption .btn-register {
    width: 86%;
    max-width: 360px;
    padding: 12px 18px;
    font-size: 1rem;
    border-radius: 10px;
  }

  /* Ensure date badge remains visible inside the overlay card */
  .custom-carousel-caption .carousel-date-badge {
    padding: 8px 14px;
    font-size: 0.98rem;
  }
}
/* Sabhi elements ke liye basic settings */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box; /* Box size calculation */
}

/* Body ki basic styling */
body {
  font-family: "Montserrat", sans-serif;
  line-height: 1.6;
  color: var(--gehra-rang);
  overflow-x: hidden; /* Horizontal scroll band */
}

/* Headings ki styling */
h1,
h2,
h3,
h4,
h5,
h6 {
  /* Use Alike for all headings with Playfair as fallback */
  font-family: "Alike", "Playfair Display", serif;
  font-weight: 700;
}

/* Standardize section headings across the site and center them */
.section-title {
  display: block;
  text-align: center;
  /* Use Alike for section titles too */
  font-family: "Alike", "Playfair Display", serif;
  font-weight: 700;
  /* Standardized appearance for all section headings */
  --section-title-color: var(--lal-rang);
  color: var(--section-title-color);
  font-size: clamp(1.4rem, 2.6vw, 2.2rem);
  margin-bottom: 1rem;
  line-height: 1.12;
  letter-spacing: 0.2px;
}

@media (max-width: 576px) {
  .section-title {
    font-size: clamp(1.8rem, 4.5vw, 1.6rem);
    margin-bottom: 0.75rem;
  }
}

/* Section title styling */
.countdown-section {
  /* animated red gradient with subtle warm highlights */
  background: linear-gradient(135deg, #6b0000 0%, #c70000 50%, #ff6b6b 100%);
  background-size: 200% 200%;
  animation: countdownGradient 12s ease infinite;
  color: var(--safed);
  position: relative;
  overflow: hidden;
  padding: 3.5rem 0;
}

@keyframes countdownGradient {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

/* subtle textured overlays for depth (blue/gold tone) */
.countdown-section::before {
  content: "";
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.015) 0 2px,
    rgba(0, 0, 0, 0) 2px 8px
  );
  mix-blend-mode: overlay;
  pointer-events: none;
}

.countdown-section::after {
  content: "";
  position: absolute;
  width: 60%;
  height: 60%;
  top: -6%;
  left: -4%;
  background: radial-gradient(
      circle at 10% 20%,
      rgba(255, 230, 170, 0.06),
      transparent 30%
    ),
    radial-gradient(
      circle at 85% 80%,
      rgba(255, 255, 255, 0.02),
      transparent 30%
    );
  pointer-events: none;
}
/* Back to top base styles (fixed circle button) */
.back-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 50px;
  height: 50px;
  background: var(--lal-rang);
  color: var(--safed);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
  box-shadow: var(--chhaya);
}

/* Jab button dikhna chahiye */
.back-to-top.show {
  opacity: 1;
  visibility: visible;
}

/* Button par hover effect */
.back-to-top:hover {
  background: var(--peela-rang);
  color: var(--gehra-rang);
  transform: translateY(-5px);
}

/* About section ki content */
.about-content {
  display: flex;
  align-items: center;
  gap: 3rem;
  margin-top: 2rem;
}

.about-text {
  flex: 2; /* Zyada space lega */
}

.about-image {
  flex: 1; /* Kam space lega */
  display: flex;
  justify-content: center;
}

/* Image ke liye placeholder */
.image-placeholder {
  width: 300px;
  height: 300px;
  background: var(--halka-rang);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--chhaya);
}

.image-placeholder i {
  font-size: 6rem;
  color: var(--lal-rang);
}

/* Bade text ke liye */
.lead-text {
  font-size: 1.1rem;
  line-height: 1.8;
  color: var(--halka-text);
}

/* Countdown section (shared properties) */
.countdown-section {
  /* background/animation defined earlier to avoid duplicate gradients */
  color: var(--safed);
  position: relative;
  overflow: hidden;
  padding: 3.5rem 0;
}

/* subtle textured overlays for depth */
.countdown-section::before {
  content: "";
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.02) 0 2px,
    rgba(0, 0, 0, 0) 2px 8px
  );
  mix-blend-mode: overlay;
  pointer-events: none;
}

.countdown-section::after {
  content: "";
  position: absolute;
  width: 60%;
  height: 60%;
  top: -10%;
  left: -5%;
  background: radial-gradient(
      circle at 10% 20%,
      rgba(255, 255, 255, 0.06),
      transparent 30%
    ),
    radial-gradient(
      circle at 85% 80%,
      rgba(255, 255, 255, 0.03),
      transparent 30%
    );
  pointer-events: none;
}
/* Countdown items ko arrange karne ke liye */
.countdown-container {
  display: flex;
  justify-content: center;
  gap: 2rem;
  flex-wrap: wrap;
}

/* Har countdown item */
.countdown-item {
  text-align: center;
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.06),
    rgba(255, 255, 255, 0.03)
  );
  padding: 1.6rem 1.25rem;
  border-radius: 14px;
  min-width: 140px;
  backdrop-filter: blur(6px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.08);
  transition: transform 260ms ease, box-shadow 260ms ease;
}

/* Countdown value bada dikhane ke liye */
.countdown-value {
  font-size: clamp(2.4rem, 6.5vw, 3.6rem);
  font-weight: 900;
  margin-bottom: 0.3rem;
  font-family: "Montserrat", sans-serif;
  letter-spacing: 0.6px;
  color: var(--safed);
  text-shadow: 0 6px 18px rgba(0, 0, 0, 0.45);
}

/* Countdown label ke liye */
.countdown-label {
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 1.6px;
  color: rgba(255, 255, 255, 0.92);
}

/* animate on change */
.countdown-value.animate {
  animation: pop 600ms cubic-bezier(0.2, 0.9, 0.3, 1);
}

@keyframes pop {
  0% {
    transform: scale(1);
    filter: drop-shadow(0 0 0 rgba(0, 0, 0, 0));
  }
  30% {
    transform: scale(1.18);
  }
  60% {
    transform: scale(0.98);
  }
  100% {
    transform: scale(1);
  }
}

.countdown-item:hover {
  transform: translateY(-6px);
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.28);
}

/* small decorative accent lines */
.countdown-item::before {
  content: "";
  display: block;
  height: 3px;
  width: 44px;
  margin: 0 auto 10px auto;
  background: linear-gradient(
    90deg,
    rgba(255, 255, 255, 0.9),
    rgba(255, 255, 255, 0.4)
  );
  border-radius: 3px;
  opacity: 0.9;
}

/* Responsive: stack in narrow screens */
@media (max-width: 480px) {
  .countdown-container {
    gap: 1rem;
  }
  .countdown-item {
    min-width: 120px;
    padding: 1rem;
  }
  .countdown-value {
    font-size: 2rem;
  }
  .countdown-label {
    font-size: 0.82rem;
  }
}

/* Countdown entrance & polish */
.countdown-section .section-title {
  color: var(--safed);
  text-shadow: 0 6px 18px rgba(0, 0, 0, 0.45);
  position: relative;
}
.countdown-section .section-title::after {
  content: "";
  display: block;
  height: 4px;
  width: 80px;
  background: linear-gradient(
    90deg,
    rgba(255, 215, 0, 0.95),
    rgba(255, 215, 0, 0.55)
  );
  border-radius: 3px;
  margin: 12px auto 0 auto;
}

/* initial hidden state for reveal */
.countdown-section .countdown-container,
.countdown-section .countdown-item {
  opacity: 0;
  transform: translateY(18px);
  transition: transform 520ms cubic-bezier(0.22, 0.9, 0.32, 1),
    opacity 520ms ease;
}

/* when in view: reveal with stagger */
.countdown-section.in-view .countdown-container {
  opacity: 1;
  transform: none;
}
.countdown-section.in-view .countdown-item {
  opacity: 1;
  transform: none;
}
.countdown-section.in-view .countdown-item:nth-child(1) {
  transition-delay: 0.06s;
}
.countdown-section.in-view .countdown-item:nth-child(2) {
  transition-delay: 0.12s;
}
.countdown-section.in-view .countdown-item:nth-child(3) {
  transition-delay: 0.18s;
}
.countdown-section.in-view .countdown-item:nth-child(4) {
  transition-delay: 0.24s;
}

/* Subtle glow for numbers (blue/gold theme) */
.countdown-value {
  text-shadow: 0 8px 18px rgba(0, 0, 0, 0.35), 0 0 18px rgba(255, 215, 0, 0.04);
}

/* Accessibility: respect reduced motion */
@media (prefers-reduced-motion: reduce) {
  .countdown-section .countdown-container,
  .countdown-section .countdown-item,
  .countdown-section.in-view .countdown-item {
    transition: none !important;
    transform: none !important;
    opacity: 1 !important;
  }
  .countdown-section {
    animation: none !important;
  }
}

/* Login section */
.login-section {
  background: var(--halka-rang);
}

.convocation-info {
  font-size: 1.1rem;
  margin-bottom: 2rem;
  text-align: center;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

/* Login card styling */
.login-card {
  max-width: 700px;
  margin: 0 auto 3rem;
  background: var(--safed);
  padding: 2.5rem;
  border-radius: 10px;
  box-shadow: var(--chhaya);
}

/* Registration / Login section polish */
.login-section .section-title {
  text-align: center;
  color: var(--lal-rang);
  font-size: clamp(1.6rem, 3.2vw, 2rem);
  margin-bottom: 0.75rem;
}

.login-section .convocation-info {
  text-align: center; /* ensure descriptive text is centered beneath the title */
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
  color: var(--gehra-rang);
}

.login-card {
  text-align: left; /* keep form fields left-aligned for readability */
  max-width: 640px;
  padding: 2rem;
}

/* Responsive adjustments for the form on small screens */
@media (max-width: 576px) {
  .login-card {
    max-width: 94%;
    padding: 1.25rem;
  }

  .login-section .section-title {
    font-size: 1.8rem;
  }

  .convocation-info {
    font-size: 1rem;
    padding: 0 8px;
  }
}

/* Guidelines alignment: center and constrain width to match form */
.guidelines {
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
}

.guidelines h2 {
  text-align: center;
}

/* Form groups ke liye */
.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 600;
  color: var(--lal-rang);
}

.form-group input {
  width: 100%;
  padding: 12px 15px;
  border: 2px solid #e0e0e0;
  border-radius: 5px;
  font-size: 1rem;
  transition: var(--transition);
}

/* Input focus hone par */
.form-group input:focus {
  border-color: var(--lal-rang);
  outline: none;
  box-shadow: 0 0 0 3px rgba(255, 11, 11, 0.1);
}

/* Submit button */
.btn-submit {
  width: 100%;
  padding: 12px;
  background: var(--lal-rang);
  color: var(--safed);
  border: none;
  border-radius: 5px;
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
}

.btn-submit:hover {
  background: #fdc200;
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

/* Guidelines section */
.guidelines {
  max-width: 1000px;
  margin: 0 auto;
  background: var(--safed);
  padding: 2rem;
  border-radius: 10px;
  box-shadow: var(--chhaya);
}

.guidelines h2 {
  color: var(--lal-rang);
  margin-bottom: 1.5rem;
  font-size: 1.8rem;
}

.guidelines ul {
  list-style-type: none;
}

.guidelines li {
  margin-bottom: 1rem;
  padding-left: 1.5rem;
  position: relative;
}

/* List items ke aage bullet */
.guidelines li::before {
  content: "•";
  color: var(--peela-rang);
  font-weight: bold;
  position: absolute;
  left: 0;
}

.guidelines a {
  color: var(--lal-rang);
  text-decoration: none;
  transition: var(--transition);
}

/* FAQ section */
.faq-container {
  max-width: 900px;
  margin: 0 auto;
}

.faq-item {
  margin-bottom: 1rem;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  border: 1px solid #e0e0e0;
}

.faq-question {
  width: 100%;
  padding: 1rem 1.25rem;
  background: var(--safed);
  border: none;
  text-align: left;
  font-weight: 600;
  font-size: 1.03rem;
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  align-items: center;
  justify-content: space-between;
  text-decoration: none; /* remove underline from btn-link */
  color: red;
}

.faq-question:hover {
  background: var(--halka-rang);
  text-decoration: none;
}

/* Number badge on the left of each question */
.faq-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.faq-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 36px;
  height: 36px;
  background: var(--peela-rang);
  color: #222;
  font-weight: 800;
  border-radius: 999px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.08);
}

.faq-text {
  display: inline-block;
  text-align: left;
}

.faq-chevron i {
  transition: transform 250ms ease, color 200ms ease;
  color: var(--lal-rang);
  font-size: 0.95rem;
}

/* rotate chevron when active */
.faq-question.active .faq-chevron i {
  transform: rotate(180deg);
  color: var(--peela-rang);
}

/* Focus styles for keyboard users */
.faq-question:focus {
  outline: 3px solid rgba(11, 11, 11, 0.06);
  box-shadow: 0 6px 20px rgba(11, 11, 11, 0.06);
}

.faq-answer {
  padding: 0;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, padding 0.3s ease;
  background: var(--safed);
}

/* Jab answer open ho */
.faq-answer.open {
  padding: 1.5rem;
  max-height: 500px;
}

.faq-answer p {
  margin: 0;
}

/* Footer: simplified styling (only copyright bottom container used) */
.footer-section {
  background: linear-gradient(180deg, #e61b1b 0%, #c70000 100%);
  color: var(--safed);
  padding: 0.8rem 0;
  z-index: 1100;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding-top: 12px;
  padding-bottom: 12px;
  margin-top: 10px;
  color: rgba(255, 255, 255, 0.86);
}

/* Registration form header */
.registration-header {
  margin-bottom: 2rem;
}

.form-check {
  margin-bottom: 0.5rem;
}

.form-text {
  font-size: 0.875rem;
  color: #6c757d;
}

.table-sm td,
.table-sm th {
  padding: 0.5rem;
}

.confirmation-card {
  max-width: 800px;
  margin: 0 auto;
}

/* Confirmation icon animation */
.confirmation-icon {
  animation: bounce 1s ease-in-out;
  padding-top: 40px;
}

@keyframes bounce {
  0%,
  20%,
  60%,
  100% {
    transform: translateY(0);
  }
  40% {
    transform: translateY(-10px);
  }
  80% {
    transform: translateY(-5px);
  }
}

/* Print karne ke liye settings */
@media print {
  .header,
  .footer-section,
  .btn {
    display: none !important;
  }

  .confirmation-details {
    border: 2px solid #000 !important;
    box-shadow: none !important;
  }
}

/* Form elements ke liye */
.form-select,
.form-control {
  border: 2px solid #e0e0e0;
  transition: all 0.3s ease;
}

.form-select:focus,
.form-control:focus {
  border-color: var(--lal-rang);
  box-shadow: 0 0 0 0.2rem rgba(255, 11, 11, 0.25);
}

/* Alert messages ke liye */
.alert {
  border: none;
  border-radius: 8px;
}

.alert-info {
  background-color: #e3f2fd;
  color: #0b5394;
}

.alert-success {
  background-color: #e8f5e8;
  color: #2e7d32;
}

.alert-danger {
  background-color: #ffebee;
  /* color: #c62828; */
}

/* Important session banner (site-wide) */
.important-session-banner {
  background: linear-gradient(
    90deg,
    rgba(11, 11, 11, 0.88),
    rgba(255, 11, 11, 0.92)
  );
  color: #fff;
  border-radius: 12px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.22);
  align-items: center;
}

/* banner entrance animation */
.important-session-banner {
  opacity: 0;
  transform: translateY(-10px);
  animation: bannerEnter 520ms ease forwards;
}
@keyframes bannerEnter {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* banner hide animation when dismissed */
.important-session-banner.dismissing {
  animation: bannerExit 360ms ease forwards;
}
@keyframes bannerExit {
  to {
    opacity: 0;
    transform: translateY(-8px);
    height: 0;
    margin: 0;
    padding-top: 0;
    padding-bottom: 0;
  }
}

/* close button */
.important-session-banner .banner-close {
  background: transparent;
  border: none;
  color: rgba(255, 255, 255, 0.95);
  font-size: 1.4rem;
  line-height: 1;
  padding: 6px 8px;
  border-radius: 6px;
  cursor: pointer;
  margin-left: 12px;
}
.important-session-banner .banner-close:focus {
  outline: 2px solid rgba(255, 255, 255, 0.12);
}

.important-session-banner {
  background: #c70000; /* strong single color for clarity */
  color: #fff;
  border-radius: 10px;
  border-left: 6px solid var(--peela-rang);
  box-shadow: 0 6px 18px rgba(199, 0, 0, 0.18);
  padding: 12px 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  box-sizing: border-box; /* ensure padding included in width */
  margin-bottom: 18px; /* keep space below so following content isn't overlapped */
  position: relative; /* remain in document flow */
  z-index: 1; /* sit above background but below fixed header */
}

.important-session-banner .banner-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
  color: #fff6f6;
  font-size: 1.1rem;
}

.important-session-banner .banner-message {
  font-size: 0.98rem;
  line-height: 1.35;
  margin: 0;
}

.important-session-banner .banner-subtext .convocation-title {
  display: inline-block;
  margin-top: 6px;
  font-weight: 700;
  color: #fff;
  font-size: 0.95rem;
}

@media (max-width: 767px) {
  .important-session-banner {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }
  .important-session-banner .banner-left {
    margin-bottom: 0;
  }
}
/* ================================
   Mobile override fixes (consolidated)
   Ensures header stays compact and carousel fills hero consistently
   ================================ */
@media (max-width: 768px) {
  /* On mobile, stack header elements so hamburger sits below the logo */
  .header-inner {
    flex-direction: column !important;

    /* Ensure the registration-section is pushed down when banner is present inside the same container */
    .important-session-banner + .registration-section,
    .important-session-banner + .container + .registration-section {
      margin-top: 8px;
    }

    /* Also ensure general sections (login/confirmation) are pushed down when banner precedes them */
    .important-session-banner + .login-section,
    .important-session-banner + .container + .login-section,
    .important-session-banner + section,
    .important-session-banner + .confirmation-section {
      margin-top: 12px;
    }
    align-items: center !important;
    justify-content: center !important;
    padding: 8px 12px !important;
    gap: 6px !important;
  }

  .brand {
    order: 1;
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .brand-logo {
    height: 56px;
  }

  .hamburger {
    order: 2;
    display: inline-flex !important;
    flex-direction: column; /* stack the three lines vertically */
    align-items: center;
    justify-content: center;
    gap: 4px;
    z-index: 1200;
    margin-top: 6px;
    background: rgba(255, 255, 255, 0.06);
    padding: 6px 8px;
    border-radius: 8px;
  }

  .hamburger-line {
    width: 28px;
    height: 3px;
    background: var(--safed);
  }

  /* nav should be collapsed by default and expand as an overlay when open */
  .nav {
    order: 3;
    position: absolute !important;
    top: 100% !important;
    left: 0 !important;
    width: 100% !important;
    transform-origin: top !important;
    background: var(--lal-rang) !important;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12) !important;
  }

  /* Carousel: consistent hero height and image behaviour */
  .carousel-section {
    height: 72vh !important; /* balance between visibility and reachability */
    min-height: 56vh !important;
  }

  .carousel-section .carousel-inner,
  .carousel-section .carousel-item {
    min-height: 72vh !important;
    height: auto !important;
  }

  .carousel-section .carousel-item img,
  .slide-img {
    width: 100% !important;
    min-height: 72vh !important;
    height: 100% !important;
    object-fit: cover !important;
    display: block !important;
  }

  /* overlay caption should be comfortable and fully visible */
  .custom-carousel-caption {
    top: 58% !important;
    transform: translate(-50%, -58%) !important;
    width: calc(100% - 28px) !important;
    padding: 14px 16px !important;
    font-size: 1rem !important;
  }

  .custom-carousel-caption h1 {
    font-size: 1.2rem;
    line-height: 1.12 !important;
  }

  /* hide duplicate below-carousel caption and prev/next controls on mobile */
  .carousel-mobile-caption {
    display: none !important;
  }
  .carousel-section .carousel-control-prev,
  .carousel-section .carousel-control-next {
    display: none !important;
  }
}

/* Mobile overlay improvements: ensure hero caption, date badge and CTA
   are clearly visible and well-sized on small viewports. This block is
   placed at the end to take precedence over earlier rules. */
@media (max-width: 768px) {
  .custom-carousel-caption {
    display: flex !important;
    position: absolute !important;
    top: 55% !important;
    left: 50% !important;
    transform: translate(-50%, -55%) !important;
    width: calc(100% - 28px) !important;
    max-width: 820px !important;
    padding: 16px !important;
    background: rgba(0, 0, 0, 0.62) !important;
    border-radius: 12px !important;
    box-shadow: 0 12px 34px rgba(0, 0, 0, 0.48) !important;
    z-index: 40 !important;
    flex-direction: column;
    align-items: center;
    gap: 12px;
  }

  .custom-carousel-caption h1 {
    font-size: 1.95rem !important;
    line-height: 1.06 !important;
    margin: 0 !important;
    font-weight: 800 !important;
  }

  .custom-carousel-caption .carousel-date-badge,
  .carousel-mobile-caption .carousel-date-badge,
  .carousel-date-badge {
    font-size: 1.06rem !important;
    padding: 10px 16px !important;
    border-radius: 10px !important;
  }

  .custom-carousel-caption .btn-register,
  .carousel-mobile-caption .btn-register,
  .btn-register {
    width: 86% !important;
    max-width: 380px !important;
    padding: 14px 18px !important;
    font-size: 1.08rem !important;
    border-radius: 12px !important;
    font-weight: 800 !important;
  }

  /* Hide the duplicate mobile caption element if present */
  .carousel-mobile-caption {
    display: none !important;
  }
}
.text-muted {
    color: inherit !important;
}