/* 1. THE MAIN CONTAINER */

.hero-du {
  position: relative !important;
  width: 100%;
  height: 100%;
  min-height: 100vh !important;
  display: flex !important;
  flex-direction: column !important;
  justify-content: space-between !important;
  padding-bottom: 3rem !important;
  background-image: linear-gradient(to right, rgba(75, 40, 117, 0.90) 20%, rgba(75, 40, 117, 0.60) 60%, rgba(75, 40, 117, 0.30) 100%) !important;
  background-blend-mode: multiply !important;
  overflow: hidden !important;
}

/* 2. THE VIDEO BACKGROUND */

.hero-video-bg {
  position: absolute !important;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -1;
}

/* 3. KEEPING CONTENT ON TOP */

.hero-du > * {
  position: relative;
  z-index: 1;
}

/* 4. TEXT READABILITY (Optional but highly recommended for video backgrounds) */

.hero-du h1, .hero-du p {
  text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.7);
}

img {
}

/* Styling for the main heading */

.du-hero-heading {
  font-family: 'Playfair Display', Georgia, serif !important;
  font-weight: 700 !important;
  font-size: 2.8rem !important;
  line-height: 1.2 !important;
  margin-bottom: 1.5rem !important;
}

/* Styling for the subtext description */

.du-hero-subtext {
  font-family: 'Inter', 'Montserrat', sans-serif !important;
  font-size: 1.2rem !important;
  color: rgba(255, 255, 255, 0.85) !important;
  font-weight: 300 !important;
  margin-bottom: 2rem !important;
}

/* Styling for the primary Action Button */

.du-hero-btn {
  background-color: #00d2ff !important;
  color: #1e1e24 !important;
  font-weight: 600 !important;
  border-radius: 4px !important;
  padding: 0.75rem 1.5rem !important;
  border: none !important;
  text-transform: uppercase !important;
  letter-spacing: 0.5px !important;
  transition: background 0.2s ease-in-out !important;
}

.du-hero-btn:hover {
  background-color: #00bce2 !important;
  color: #ffffff !important;
}

.campus-life-section {
  position: relative !important;
  background-color: transparent !important;
  overflow: hidden !important;
}

/* Creating the large ghosted logo watermark */

.campus-life-section::before {
  content: "" !important;
  position: absolute !important;
  top: 50% !important;
  left: -10% !important;
  transform: translateY(-50%) !important;
  width: 500px !important;
  height: 500px !important;
  background-image: url('assets/img/du-logo.png') !important;
  background-size: contain !important;
  background-repeat: no-repeat !important;
  opacity: 0.04 !important;
  pointer-events: none !important;
  z-index: 1;
}

.campus-life-section .container {
  position: relative !important;
  z-index: 2;
}

/* Styling for the left section header */

.cl-main-heading {
  font-family: 'Playfair Display', Georgia, serif !important;
  font-weight: 700 !important;
  color: #4a154b !important;
  font-size: 2.2rem !important;
}

.cl-main-heading2 {
  font-family: 'Playfair Display', Georgia, serif !important;
  font-weight: 700 !important;
  color: #ffffff !important;
  font-size: 2.2rem !important;
}

.edu-card {
  background-color: #4b2875;
  padding: 30px;
  margin-top: 50px;
  color: white;
}

.overlap-img {
  position: relative;
  top: -50px;
  left: -45px;
  width: calc(100% + 60px);
  height: 220px;
  object-fit: cover;
  box-shadow: 5px 5px 15px rgba(0,0,0,0.3);
}

/* Clear, elegant button style for the three CTAs */

.cl-cta-btn {
  font-family: 'Inter', sans-serif !important;
  background-color: #ffffff !important;
  color: #4a154b !important;
  border: 2px solid rgba(74, 21, 75, 0.15) !important;
  font-weight: 600 !important;
  padding: 0.85rem 1.25rem !important;
  border-radius: 8px !important;
  text-align: left !important;
  display: flex !important;
  justify-content: space-between !important;
  align-items: center !important;
  transition: all 0.25s ease-in-out !important;
  box-shadow: 0 4px 12px rgba(0,0,0,0.02) !important;
}

/* Hover effect to give that high-end interactive feel */

.cl-cta-btn:hover {
  background-color: #4a154b !important;
  color: #ffffff !important;
  border-color: #4a154b !important;
  transform: translateX(5px) !important;
}

/* Card baseline rules */

.ku-card {
  position: relative !important;
  overflow: hidden !important;
  border-radius: 12px !important;
  background-size: cover !important;
  background-position: center !important;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08) !important;
  transition: transform 0.3s ease !important;
  display: flex !important;
  align-items: flex-end !important;
}

.ku-card:hover {
  transform: translateY(-5px) !important;
}

/* Creating an automatic gradient filter over the bottom of the card photos */

.ku-card::before {
  content: "" !important;
  position: absolute !important;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 60%;
  background: linear-gradient(to top, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0) 100%) !important;
  z-index: 1;
}

/* Styling the image titles */

.ku-card-title {
  position: relative !important;
  z-index: 2 !important;
  color: #ffffff !important;
  font-weight: 600 !important;
  font-size: 0.95rem !important;
  padding: 1.25rem !important;
  margin: 0 !important;
}

/* Staggering the card heights exactly like Korea University */

.h-large {
  height: 420px !important;
}

.h-small {
  height: 200px !important;
}

/* Forces the carousel slides to match our high-end card styling heights */

.carousel-item {
  height: 420px !important;
  background-size: cover !important;
  background-position: center !important;
  position: relative !important;
}

/* Adds the automatic dark gradient overlay on top of slider images so text stays readable */

/* Keeps the slide caption text floating crisp and centered on top of the overlay */

.carousel-caption {
  z-index: 2 !important;
  bottom: 2rem !important;
  text-align: left !important;
  left: 5% !important;
}

.carousel-caption h3 {
  font-family: 'Playfair Display', serif !important;
  font-weight: 700 !important;
}

/* This forces every single image inside the slider to obey the same box size */

.carousel-inner img {
  width: 100%;
  height: 420px;
  object-fit: cover !important;
  object-position: center !important;
}

/* Responsive adjustment for small tablets and smartphones */

@media (max-width: 767px) {
  .carousel-inner img {
    height: 250px !important;
  }
}

body {
  position: relative !important;
}

/* Updated permanent, non-moving watermark */

body::before {
  content: "" !important;
  position: fixed !important;
  top: 50% !important;
  left: 50% !important;
  transform: translate(-50%, -50%) !important;
  width: 700px !important;
  height: 700px !important;
  background-image: url('../../assets/img/Others/Delhi_University.svg') !important;
  background-size: contain !important;
  background-repeat: no-repeat !important;
  opacity: 0.1 !important;
  pointer-events: none !important;
  z-index: 0 !important;
}

/* Forces all of your content containers to safely layer above the watermark */

.stat-box {
  background: rgba(255, 255, 255, 0.5) !important;
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
  border-radius: 4px !important;
  padding: 2rem 1rem !important;
  text-align: center !important;
  color: #1e1e24;
}

.stat-box h3 {
  color: #ff7675 !important;
  font-weight: 700 !important;
}

/* Draws the central timeline track line */

.timeline-spine::before {
  content: '' !important;
  position: absolute !important;
  top: 0 !important;
  bottom: 0 !important;
  left: 50% !important;
  width: 4px !important;
  background: rgba(255, 255, 255, 0.15) !important;
  transform: translateX(-50%) !important;
}

/* Base item block wrapper */

.timeline-item {
  position: relative !important;
  width: 100% !important;
}

/* Individual milestone content cards */

.timeline-card {
  width: 45% !important;
  background: rgba(255, 255, 255, 0.05) !important;
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
  padding: 2rem !important;
  border-radius: 12px !important;
  transition: all 0.3s ease !important;
}

.timeline-card:hover {
  transform: translateY(-5px) !important;
  border-color: #00bfff !important;
}

/* Alternating positioning framework loops */

.timeline-item:nth-child(odd) {
  justify-content: flex-start !important;
}

.timeline-item:nth-child(even) {
  justify-content: flex-end !important;
}

/* Center circle indicator pin nodes */

.timeline-item::after {
  content: '' !important;
  position: absolute !important;
  left: 50% !important;
  top: 30px !important;
  width: 18px !important;
  height: 18px !important;
  background: #00bfff !important;
  border: 4px solid #343a40 !important;
  border-radius: 50% !important;
  transform: translateX(-50%) !important;
  z-index: 2 !important;
}

/* Tablet & Mobile responsive snapping grid downscaling */

@media (max-width: 768px) {
  .timeline-spine::before {
    left: 20px !important;
  }
}

@media (max-width: 768px) {
  .timeline-item {
    justify-content: flex-end !important;
    padding-left: 45px !important;
  }
}

@media (max-width: 768px) {
  .timeline-item::after {
    left: 20px !important;
  }
}

@media (max-width: 768px) {
  .timeline-card {
    width: 100% !important;
  }
}

/* Ensure the image component inside the timeline card fits flawlessly */

.timeline-card img {
  width: 120px !important;
  height: 120px !important;
  object-fit: cover !important;
  border-radius: 8px !important;
  margin-left: 20px !important;
  flex-shrink: 0 !important;
}

/* Make sure text elements take up the remaining space dynamically */

.timeline-card div:first-child {
  flex-grow: 1 !important;
}

/* Forces the student profile picture to render as a sharp, clean square block */

.review-profile-pic {
  width: 100% !important;
  height: 350px !important;
  object-fit: cover !important;
}

/* Stylizes the massive stylized quote decoration hanging above the content */

/* Elegant serif typography style for the main review text copy */

.review-main-text {
  font-family: Georgia, serif !important;
  font-size: 1.8rem !important;
  line-height: 1.4 !important;
  color: #1a1a1a !important;
  margin-bottom: 2rem !important;
}

/* Bold formatting adjustments for student credit lines */

.student-name {
  font-size: 1.1rem !important;
  color: #111111 !important;
}

.student-title {
  font-size: 0.9rem !important;
  line-height: 1.4 !important;
}

/* Responsive downscaling properties for small screens */

@media (max-width: 768px) {
  .review-profile-pic {
    height: 320px !important;
  }
}

@media (max-width: 768px) {
  .review-main-text {
    font-size: 1.4rem !important;
  }
}

/* Keeps the menu attached to your navbar link */

.hover-dropdown-wrapper {
  position: relative;
}

.hover-overlay-panel-small-card {
  position: fixed;
  top: 50%;
  left: 50%;
  width: 25%;
  height: auto;
  background-color: rgba(0, 18, 44, 0.9);
  color: white;
  padding: 40px;
  box-shadow: 0px 8px 24px rgba(0, 0, 0, 0.3);
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-15px);
  transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s;
}

.hover-overlay-panel {
  position: fixed;
  top: 80px;
  left: 12.5%;
  width: 75%;
  height: auto;
  background-color: rgba(0, 18, 44, 0.9);
  color: white;
  padding: 40px;
  box-shadow: 0px 8px 24px rgba(0, 0, 0, 0.3);
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-15px);
  transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s;
}

.hover-overlay-panel-otherpage {
  position: fixed;
  top: 20%;
  left: 2.5%;
  width: 50%;
  height: auto;
  background-color: rgba(123,61,145,0.9);
  border-radius: 0px 0px 20px 20px;
  color: white;
  padding: 40px;
  box-shadow: 0px 8px 24px rgba(0, 0, 0, 1);
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-15px);
  transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s;
}

/* Drops down and fades in perfectly when mouse hovers */

.hover-dropdown-wrapper:hover .hover-overlay-panel {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.hover-dropdown-wrapper:hover .hover-overlay-panel-otherpage {
  opacity: 1;
  z-index: 100;
  visibility: visible;
  background-color: rgba(123,61,145,0.9);
  transform: translateY(0);
}

.hover-dropdown-wrapper:hover .hover-overlay-panel-small-card {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

/* Styling for the mega menu text links */

.mega-menu-link {
  color: #ffffff;
  font-size: 2rem;
  font-weight: 500;
  text-decoration: none !important;
  position: relative;
  display: table;
  padding-bottom: 5px;
  margin-bottom: 15px;
}

/* Creating the hidden underline using a pseudo-element */

.mega-menu-link::after {
  content: '';
  position: absolute;
  width: 100%;
  transform: scaleX(0);
  height: 2px;
  bottom: 0;
  left: 0;
  background-color: #00a8ff;
  transform-origin: bottom left;
  transition: transform 0.3s ease-out;
}

/* When you hover over the link, expand the line to full size */

.mega-menu-link:hover::after {
  transform: scaleX(1);
}

/* Styling the main navbar menu trigger link */

.navbar-hover-link {
  color: #ffffff;
  text-decoration: none !important;
  position: relative;
  display: inline-block;
  padding-bottom: 4px;
}

/* Create the secret hidden line underneath the navbar text */

.navbar-hover-link::after {
  content: '';
  position: absolute;
  width: 100%;
  transform: scaleX(0);
  height: 2px;
  bottom: 0;
  left: 0;
  background-color: #00a8ff;
  transform-origin: bottom left;
  transition: transform 0.3s ease-out;
}

/* Expand the line when hovering over the link OR when the mega menu overlay is dropped down */

.navbar-hover-link:hover::after, .hover-dropdown-wrapper:hover .navbar-hover-link::after {
  transform: scaleX(1);
}

/* The main container limits the width and hides cards that overflow */

.college-carousel-wrapper {
  position: relative;
  width: 100%;
  max-width: 100%;
  margin: 0 auto;
  overflow: hidden;
  padding: 60px 0;
  perspective: 1000px;
}

/* The track holding all your cards in a row */

.college-cards-track {
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  width: 100%;
  height: 450px;
  transform-style: preserve-3d;
  transition: transform 0.5s cubic-bezier(0.25, 1, 0.5, 1);
}

/* Styling for every individual card */

/* Active Center Card styling: Giant, crisp, and in front */

.college-card.active-center {
  opacity: 1;
  filter: blur(0px);
  transform: translate3d(0, 0, 100px) scale(1.15);
  z-index: 5;
  pointer-events: auto;
}

/* First inner layer side cards (Left 1 & Right 1): Slightly smaller and semi-blurred */

.college-card.active-side-1 {
  opacity: 0.8;
  filter: blur(2px);
  z-index: 3;
  pointer-events: auto;
}

/* Second outer layer side cards (Left 2 & Right 2): Smallest visible and highly blurred */

.college-card.active-side-2 {
  opacity: 0.5;
  filter: blur(5px);
  z-index: 1;
  pointer-events: auto;
}

/* First inner layer side cards: Spreads out slightly further */

.college-card.active-side-1.left {
  transform: translate3d(-360px, 0, -50px) scale(0.95);
}

.college-card.active-side-1.right {
  transform: translate3d(360px, 0, -50px) scale(0.95);
}

/* Second outer layer side cards: Pushed even further to the edges */

.college-card.active-side-2.left {
  transform: translate3d(-670px, 0, -150px) scale(0.8);
}

.college-card.active-side-2.right {
  transform: translate3d(670px, 0, -150px) scale(0.8);
}

/* Base card container settings */

.college-card {
  position: absolute;
  width: 280px;
  height: 320px;
  background: #222;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 15px 35px rgba(0,0,0,0.25);
  transition: transform 0.5s ease, filter 0.5s ease, opacity 0.5s ease;
  flex-shrink: 0;
  opacity: 0;
  filter: blur(8px);
  pointer-events: none;
}

/* Force the internal image to cover the entire card background */

.college-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Create the dark gradient overlay box at the bottom of the card */

.college-card-info {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: 30px 20px 20px 20px;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.9) 0%, rgba(0, 0, 0, 0.4) 60%, transparent 100%);
  color: #ffffff;
  z-index: 2;
}

/* Style the text heading inside the card overlay */

.college-card-info h3 {
  font-size: 1.1rem !important;
  font-weight: 700;
  margin: 0;
  line-height: 1.3;
  color: #ffffff;
  text-shadow: 0 2px 4px rgba(0,0,0,0.4);
}

/* The main dark blue container box */

.course-search-container {
  background-color: #001f3f;
  padding: 40px;
  border-radius: 8px;
  color: #ffffff;
  margin: 30px auto;
  width: 100%;
  max-width: 1200px;
}

/* Heading style adjustments inside the box */

.course-search-container h2, .course-search-container h3 {
  font-family: Georgia, serif;
  font-size: 1.8rem;
  line-height: 1.4;
  color: #ffffff !important;
  margin: 0;
}

/* Radio button text layout */

.course-search-container .form-check {
  display: inline-block;
  margin-right: 20px;
  margin-bottom: 15px;
  font-weight: 500;
  cursor: pointer;
}

/* Styling the white input box */

.course-search-container .form-control {
  height: 50px;
  border-radius: 4px 0 0 4px !important;
  border: none;
  font-size: 1rem;
  padding-left: 15px;
}

/* Styling the cyan search button */

.course-search-container .btn-primary, .course-search-container button {
  background-color: #00c3ff !important;
  border: none !important;
  color: #001f3f !important;
  font-weight: 700;
  padding: 0 30px;
  height: 50px;
  border-radius: 0 4px 4px 0 !important;
  transition: background-color 0.2s ease;
}

.course-search-container .btn-primary:hover, .course-search-container button:hover {
  background-color: #0099cc !important;
}

/* The main container box - now featuring the image background! */

.split-feature-banner {
  position: relative;
  width: 100%;
  max-width: 1200px;
  margin: 40px auto;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 15px 35px rgba(0,0,0,0.2);
  background: url('../../assets/img/Home/Heritage/LodgeColour.jpg') no-repeat center center;
  background-size: cover;
}

/* Force the right-side text column to have a dark overlay tint */

.split-feature-banner .col-md-6:last-child, .split-feature-banner .col-12:last-child {
  background: rgba(0, 31, 63, 0.85);
  padding: 60px 40px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  min-height: 400px;
}

/* Text styling tweaks for readability */

.split-feature-banner h2, .split-feature-banner h3 {
  font-family: Georgia, serif;
  font-size: 2.2rem;
  color: #ffffff !important;
  margin-bottom: 20px;
}

.split-feature-banner p {
  color: #e0e0e0 !important;
  font-size: 1.1rem;
  line-height: 1.6;
  margin-bottom: 30px;
}

/* Accent button styling */

.split-feature-banner .btn {
  background-color: #00c3ff !important;
  color: #001f3f !important;
  font-weight: 700;
  padding: 12px 24px;
  border: none;
  border-radius: 4px;
}

/* Adding the CSS in the timeline */

/* 1. The Wrapper */

.hover-stack {
  position: relative;
  width: 160px;
  height: 160px;
  cursor: pointer;
  margin: auto;
}

/* 2. All Images */

/* 2. All Images in the Stack */

.hover-stack img {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 140px;
  height: 140px;
  transform: translate(-50%, -50%);
  object-fit: cover;
  border-radius: 12px;
  transition: all 0.4s ease-in-out;
  box-shadow: 0 4px 8px rgba(0,0,0,0.3);
}

/* Base stack order: Main image on top (last image) */

.hover-stack img:nth-child(1) {
  z-index: 1;
  opacity: 0;
}

.hover-stack img:nth-child(2) {
  z-index: 2;
  opacity: 0;
}

.hover-stack img:nth-child(3) {
  z-index: 3;
  opacity: 0;
}

.hover-stack img:nth-child(4) {
  z-index: 4;
  opacity: 0;
}

.hover-stack img:nth-child(5) {
  z-index: 5;
  opacity: 1;
  transform: translate(-50%, -50%) scale(1.15);
}

/* 3. Hide the extra images by default */

.hover-stack img:nth-child(1) {
  z-index: 4;
}

.hover-stack img:nth-child(2), .hover-stack img:nth-child(3), .hover-stack img:nth-child(4) {
  opacity: 0;
  z-index: 1;
}

/* 4. THE PROFESSIONAL HOVER: 2x2 Grid Reveal */

/* 4. THE FAN-OUT EFFECT TRIGGERED BY THE OUTER PARENT */

.timeline-item:hover .hover-stack img {
  opacity: 1 !important;
}

/* Top Left */

.timeline-item:hover .hover-stack img:nth-child(1) {
  transform: translate(-170%, -50%) scale(1) !important;
  z-index: 4 !important;
}

/* Top Right */

.timeline-item:hover .hover-stack img:nth-child(2) {
  transform: translate(70%, -50%) scale(1) !important;
  z-index: 3 !important;
}

/* Bottom Left */

.timeline-item:hover .hover-stack img:nth-child(3) {
  transform: translate(-110%, 70%) scale(1) !important;
  z-index: 2 !important;
}

/* Bottom Right */

.timeline-item:hover .hover-stack img:nth-child(4) {
  transform: translate(10%, 70%) scale(1) !important;
  z-index: 1 !important;
}

/* Center Image (Pops up and stays in middle) */

.timeline-item:hover .hover-stack img:nth-child(5) {
  transform: translate(-50%, -50%) scale(1.15) !important;
  z-index: 6 !important;
  box-shadow: 0 12px 24px rgba(0,0,0,0.4) !important;
}

html {
  scroll-behavior: smooth !important;
}

.sticky-page-heading {
  position: sticky !important;
  top: 60px !important;
  z-index: 10 !important;
  align-self: flex-start;
}

