/* --- Global Variables --- */
:root {
  /* Colors */
  --default-color: #000;
  --primary-dark: #192a40; /* IIT Kanpur Deep Blue */
  --accent-cyan: #00d2ff; /* Highlight Cyan */
  --card-bg-light: #f2f5f9; /* Light grayish blue for feature cards */
  --btn-transcend: #1b4332; /* Deep Green */
  --btn-catapult: #1e3a8a; /* Mid Blue */
  --text-track-subtitle: #2e5a8e; /* Blue text used for track subtitle & numbers */
  --stat-card-bg: #3c5e55; /* Mid-tone green for cards and timeline boxes */
  --stat-card-dark: #3b4b60; /* Dark slate blue for catapult stats */
  --tranced-text: #3b665d;
  /* Typography */
  --display: "Fraunces", Georgia, serif;
  --body: "Inter", -apple-system, sans-serif;
}
html,
body {
  overflow-x: hidden;
}
/* --- Typography --- */
body {
  font-family: var(--body);
  color: #333;
  -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
h4,
h5,
h6,
.font-serif {
  font-family: var(--display);
  color: var(--default-color);
}

.tracking-wide {
  letter-spacing: 0.1em;
}

/* --- Color Utilities --- */
.bg-primary-dark {
  background-color: var(--primary-dark);
}
.text-primary-dark {
  color: var(--primary-dark) !important;
}
.bg-card-light {
  background-color: var(--card-bg-light);
}
.text-cyan {
  color: var(--accent-cyan);
}
.bg-cyan {
  background-color: var(--accent-cyan);
}
.bg-skublue {
  background-color: #d6eaff;
}
.bg-blue {
  background-color: #0ea5e9;
}
.bg-navyblue {
  background-color: #1e3a5f;
}
.bg-grey {
  background-color: #57534e;
}
.color-linkedin {
  color: #0077b5;
}
.text-track-subtitle {
  color: var(--text-track-subtitle);
}
.text-transcend {
  color: var(--btn-transcend) !important;
}

.fade-in-text {
  animation: easyFadeIn 0.8s cubic-bezier(0.25, 0.8, 0.25, 1) forwards;
}

@keyframes easyFadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}
/* --- Partner Page Specifics --- */

/* Custom Tab Buttons */
.custom-tab-btn {
  background-color: #fff;
  color: #333 !important; /* Ensure text is dark when inactive */
  border: 1px solid #dee2e6;
  transition: all 0.3s ease;
}

.custom-tab-btn:hover {
  background-color: #f8f9fa;
  border-color: #c1c9d0;
}

/* Active Tab State overridden to match primary-dark */
.nav-pills .nav-link.custom-tab-btn.active {
  background-color: var(--primary-dark);
  color: #fff !important;
  border-color: var(--primary-dark);
}

/* Primary Dark Button (Used inside the cards) */
.btn-primary-dark {
  background-color: var(--primary-dark);
  color: #fff;
  border: 1px solid var(--primary-dark);
  transition: all 0.3s ease;
}
.btn-primary-dark:hover {
  background-color: #0f1c2e;
  color: #fff;
  transform: translateY(-2px);
}

/* Soft purple/blue background for the main card */
.bg-partner-card {
  background-color: #f8f6fc; /* Very faint lavender/blue tint */
  border: 1px solid #eae5f2 !important; /* Subtle border to match */
}
/* --- Buttons --- */
.btn-cyan {
  background-color: var(--accent-cyan);
  color: #000;
  border: none;
  transition: all 0.3s ease;
}
@media (max-width: 768px) {
  .btn-cyan {
    margin-top: 15px;
  }
}
.btn-cyan:hover {
  background-color: #00b8e6;
  color: #000;
  transform: translateY(-2px);
}

/* Hero specific buttons */
.btn-hero-transcend {
  background-color: #e5e7eb;
  color: #1f2937;
  border: none;
  transition: all 0.3s ease;
}
.btn-hero-transcend:hover {
  background-color: #d1d5db;
  color: #000;
}

.btn-hero-catapult {
  background-color: #93c5fd;
  color: #1f2937;
  border: none;
  transition: all 0.3s ease;
}
.btn-hero-catapult:hover {
  background-color: #60a5fa;
  color: #000;
}

/* Card Buttons */
.btn-transcend {
  background-color: var(--btn-transcend);
  border: 1px solid var(--btn-transcend);
  transition: all 0.3s ease;
}
.btn-transcend:hover {
  background-color: #0f271d;
  color: #fff;
}

.btn-catapult {
  background-color: var(--btn-catapult);
  border: 1px solid var(--btn-catapult);
  transition: all 0.3s ease;
}
.btn-catapult:hover {
  background-color: #13275c;
  color: #fff;
}

/* --- Navbar --- */
.navbar {
  transition:
    background-color 0.3s ease,
    box-shadow 0.3s ease;
}

.navbar .nav-link {
  color: #333;
  font-weight: 500;
  margin: 0 10px;
  position: relative;
  font-size: 0.95rem;
}

.navbar .nav-link:hover,
.navbar .nav-link.active {
  color: var(--primary-dark);
}

.navbar .nav-link::after {
  content: "";
  position: absolute;
  width: 0;
  height: 2px;
  bottom: -4px;
  left: 50%;
  background-color: var(--accent-cyan);
  transition: all 0.3s ease;
  transform: translateX(-50%);
}

.navbar .nav-link:hover::after,
.navbar .nav-link.active::after {
  width: 100%;
}

/* --- Sections & Backgrounds --- */
.hero-section {
  background-color: var(--primary-dark);
  background-size: cover;
  background-position: center;
}

.hero-transcend {
  background-color: var(--btn-transcend);
}

.pattern-bg {
  background-image: radial-gradient(#e5e7eb 1px, transparent 1px);
  background-size: 20px 20px;
}

.campus-bg {
  background-image: url("../img/image-3.png");
  background-size: cover;
}

.mentorship-bg {
  background-image: url("../img/image-2.png");
  background-size: cover;
}
.catapult-programme-bg {
  background-image: url("../img/image-1.png");
  background-size: cover;
}
.transcend-bg {
  background-image: url("../img/image-3.png");
  background-size: cover;
}

.bg-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(255, 255, 255, 0.85);
  z-index: 1;
}

.z-index-2 {
  z-index: 2;
}

.max-w-900 {
  max-width: 900px;
}

.min-h-120 {
  min-height: 120px;
}

/* --- Cards & Features --- */
.hover-card {
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
}

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

.stat-card {
  background-color: var(--stat-card-bg);
  color: #fff;
  border: none;
  border-radius: 4px;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.stat-card h4 {
  border-bottom: 1px solid rgba(255, 255, 255, 0.4);
  padding-bottom: 0.5rem;
}

.stat-card-dark {
  background-color: var(--stat-card-dark);
  color: #fff;
  border: none;
  border-radius: 4px;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
}

.stat-card-dark h4 {
  border-bottom: 1px solid var(--accent-cyan);
  padding-bottom: 0.5rem;
}

/* --- Lists --- */
.feature-list li {
  margin-bottom: 0.85rem;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 0.95rem;
}

.feature-list i {
  margin-top: 4px;
  font-size: 0.9rem;
}

.list-start {
  list-style: none;
  padding: 0;
}
.list-start li {
  position: relative;
  padding-left: 1.25rem;
  margin-bottom: 0.75rem;
}
.list-start li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 10px;
  width: 6px;
  height: 6px;
  background-color: #000;
  border-radius: 50%;
}

.list-end {
  list-style: none;
  padding: 0;
}
.list-end li {
  position: relative;
  padding-right: 1.25rem;
  margin-bottom: 0.75rem;
}
.list-end li::after {
  content: "";
  position: absolute;
  right: 0;
  top: 10px;
  width: 6px;
  height: 6px;
  background-color: #000;
  border-radius: 50%;
}

/* Right-to-Left aligned text list specifically for Dual Mentorship section */
.list-end-rtl {
  list-style: none;
  padding: 0;
  text-align: right;
}
.list-end-rtl li {
  position: relative;
  padding-right: 1.25rem;
  margin-bottom: 0.75rem;
}
.list-end-rtl li::after {
  content: "";
  position: absolute;
  right: 0;
  top: 10px;
  width: 6px;
  height: 6px;
  background-color: #000;
  border-radius: 50%;
}

@media (max-width: 768px) {
  .list-end-rtl {
    text-align: left;
  }
  .list-end-rtl li {
    padding-right: 0;
    padding-left: 1.25rem;
  }
  .list-end-rtl li::after {
    right: auto;
    left: 0;
  }
}

/* --- Dividers --- */
.decorative-bracket {
  position: absolute;
  top: 0;
  left: 15%;
  right: 15%;
  height: 100%;
  border-top: 2px solid var(--accent-cyan);
  border-left: 2px solid var(--accent-cyan);
  border-right: 2px solid var(--accent-cyan);
  pointer-events: none;
}
.decorative-bracket::before,
.decorative-bracket::after {
  content: "";
  position: absolute;
  width: 6px;
  height: 6px;
  background-color: var(--accent-cyan);
  border-radius: 50%;
  bottom: -3px;
}
.decorative-bracket::before {
  left: -4px;
}
.decorative-bracket::after {
  right: -4px;
}

.vertical-cyan-line {
  width: 1px;
  background-color: var(--accent-cyan);
  height: 150px;
  margin: auto;
}
/* --- Accordian --- */
.custom-accordion-btn {
  background-color: #e9ecef !important;
  color: #333;
  font-size: 0.95rem;
  font-weight: 500;
  border-radius: 4px !important;
  padding: 0.75rem 1.25rem;
  box-shadow: none !important;
}

.custom-accordion-btn:not(.collapsed) {
  background-color: #e9ecef !important;
  color: #000;
  border-bottom-left-radius: 0 !important;
  border-bottom-right-radius: 0 !important;
}

.custom-accordion-btn:focus {
  outline-offset: 1px;
}

.custom-accordion-body {
  background-color: #e8f4ed;
  border-bottom-left-radius: 4px;
  border-bottom-right-radius: 4px;
  font-size: 0.9rem;
  color: #2c2c2c;
}

.accordion-button::after {
  background-size: 1rem;
}
/* =========================================
   PROGRAMME TIMELINE
========================================= */

.programme-timeline-section {
  position: relative;
  overflow: hidden;
  background-color: #fff;
}

/* Faint technical background */
.programme-timeline-section::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
}

.programme-timeline-section .container {
  position: relative;
  z-index: 1;
}

/* =========================================
   HEADING
========================================= */

.timeline-heading {
  padding-top: 20px;
  margin-bottom: 10px;
}

.timeline-heading h1 {
  margin: 0;
  font-family: var(--display);
  font-size: 2.6rem;
  font-weight: 700;
  color: #000;
}

/* =========================================
   TIMELINE WRAPPER
========================================= */

.timeline-wrapper {
  position: relative;
  width: 650px;
  max-width: 100%;
  margin: 0 auto;
  padding: 10px 0 25px;
}

/* =========================================
   CENTRAL VERTICAL LINE
========================================= */

.timeline-center-line {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 3px;
  background-color: #000;
  transform: translateX(-50%);
  z-index: 1;
}

/* Top and bottom horizontal caps */

.timeline-center-line::before,
.timeline-center-line::after {
  content: "";
  position: absolute;
  left: 50%;
  width: 14px;
  height: 3px;
  background-color: #000;
  transform: translateX(-50%);
}

.timeline-center-line::before {
  top: 0;
}

.timeline-center-line::after {
  bottom: 0;
}

/* =========================================
   TIMELINE ROW
========================================= */

.timeline-row {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 74px;
  margin-bottom: 4px;
  z-index: 2;
}

/* =========================================
   LEFT / RIGHT CONTENT
========================================= */

.timeline-date-wrap,
.timeline-box-wrap {
  display: flex;
  align-items: center;
  min-width: 0;
}

/* Left side */

.timeline-left {
  justify-content: flex-end;
  padding-right: 50px;
}

/* Right side */

.timeline-right {
  justify-content: flex-start;
  padding-left: 50px;
}

/* =========================================
   DATES
========================================= */

.timeline-date {
  margin: 0;
  /* color: #3b665d; */
  font-family: var(--display);
  font-size: 1.65rem;
  font-weight: 700;
  line-height: 1.15;
  white-space: nowrap;
}

/* =========================================
   GREEN EVENT BOX
========================================= */

.timeline-box {
  width: 296px;
  min-height: 49px;

  display: flex;
  align-items: center;
  justify-content: center;

  padding: 10px 20px;

  background-color: rgba(27, 67, 50, 0.88);
  color: #fff;

  border-radius: 4px;

  font-family: var(--body);
  font-size: 1.05rem;
  font-weight: 500;
  line-height: 1.2;

  text-align: center;

  box-shadow: none;
}

/* =========================================
   HORIZONTAL CONNECTOR
========================================= */

.timeline-connector {
  position: absolute;
  top: 50%;
  height: 2px;
  width: 45px;
  background-color: #000;
  transform: translateY(-50%);
  z-index: 0;
}

/* Left event → central line */

.timeline-row-left .timeline-connector {
  left: calc(50% - 45px);
}

/* Right event → central line */

.timeline-row-right .timeline-connector {
  left: 50%;
}

/* =========================================
   SMALL CONNECTOR DOT
========================================= */

.timeline-row::after {
  content: "";
  position: absolute;
  top: 50%;
  width: 6px;
  height: 6px;
  background-color: #000;
  border-radius: 50%;
  transform: translateY(-50%);
  z-index: 3;
}

/* Dot on central line */

.timeline-row-left::after,
.timeline-row-right::after {
  left: calc(50% - 3px);
}

/* =========================================
   ALTERNATING LAYOUT
========================================= */

.timeline-row-left .timeline-date-wrap {
  grid-column: 1;
  grid-row: 1;
}

.timeline-row-left .timeline-box-wrap {
  grid-column: 2;
  grid-row: 1;
}

.timeline-row-right .timeline-box-wrap {
  grid-column: 1;
  grid-row: 1;
}

.timeline-row-right .timeline-date-wrap {
  grid-column: 2;
  grid-row: 1;
}

/* =========================================
   SPACING BETWEEN EVENTS
========================================= */

.timeline-row:nth-of-type(2) {
  margin-top: 4px;
}

.timeline-row + .timeline-row {
  margin-top: 22px;
}

/* =========================================
   MOBILE
========================================= */

@media (max-width: 768px) {
  .timeline-heading {
    padding-top: 15px;
  }

  .timeline-heading h1 {
    font-size: 2rem;
  }

  .timeline-wrapper {
    width: 100%;
    padding: 10px 5px 25px;
  }

  .timeline-row {
    min-height: 65px;
  }

  .timeline-date {
    font-size: 1.15rem;
  }

  .timeline-box {
    width: 100%;
    min-height: 45px;
    padding: 8px 10px;
    font-size: 0.85rem;
  }

  .timeline-left {
    padding-right: 28px;
  }

  .timeline-right {
    padding-left: 28px;
  }

  .timeline-connector {
    width: 25px;
  }

  .timeline-row-left .timeline-connector {
    left: calc(50% - 25px);
  }

  .timeline-row-right .timeline-connector {
    left: 50%;
  }
}

/* =========================================
   SMALL MOBILE
========================================= */

@media (max-width: 480px) {
  .timeline-heading h1 {
    font-size: 1.7rem;
  }

  .timeline-date {
    font-size: 0.95rem;
  }

  .timeline-box {
    font-size: 0.75rem;
    padding: 7px 6px;
  }

  .timeline-left {
    padding-right: 28px;
  }

  .timeline-right {
    padding-left: 28px;
  }
}
/* --- Contact Page Specifics --- */

.contact-icon-wrapper {
  width: 65px;
  height: 65px;
  background-color: #263b56; /* Slightly lighter than the dark blue background */
  flex-shrink: 0;
  transition: transform 0.3s ease;
}

.contact-icon-wrapper:hover {
  transform: scale(1.1);
}

/* Container styling to establish positioning */
.scale-container {
  position: relative;
  /* Add padding so content doesn't overlap the lines */
  padding: 60px 40px;
  max-width: 900px;
  margin: 0 auto;
  background-color: #ffffff;

  /* CSS Variables for easy tweaking */
  --line-color: #38c8e6; /* Cyan color matching the image */
  --line-thickness: 2px;
  --dot-size: 10px;
  --dot-offset: 4px; /* (dot-size - line-thickness) / 2 */
  --corner-radius: 15px; /* NEW: Adjust this to make the corner rounder or sharper */
}

/* Base setup for both pattern elements */
.scale-container::before,
.scale-container::after {
  content: "";
  position: absolute;
  /* Adjust width and height to control how far the lines stretch */
  width: 45%;
  height: 40%;
  pointer-events: none; /* Ensures the lines don't block clicks on text */
  background-repeat: no-repeat;
}

/* 1. Top Right Pattern (Rounded Corner) */
.scale-container::before {
  top: 15px;
  right: 15px;
  background-image:
    /* Top Layer: The two dots */
    radial-gradient(
      circle,
      #ffffff 3px,
      var(--line-color) 3px,
      var(--line-color) 5px,
      transparent 5px
    ),
    radial-gradient(
      circle,
      #ffffff 3px,
      var(--line-color) 3px,
      var(--line-color) 5px,
      transparent 5px
    ),
    /* Middle Layer: The Rounded Corner Arc */
    radial-gradient(
        circle at 0 100%,
        transparent calc(var(--corner-radius) - var(--line-thickness) - 0.5px),
        var(--line-color) calc(var(--corner-radius) - var(--line-thickness)),
        var(--line-color) var(--corner-radius),
        transparent calc(var(--corner-radius) + 0.5px)
      ),
    /* Bottom Layer: The straight lines */
    linear-gradient(var(--line-color), var(--line-color)),
    linear-gradient(var(--line-color), var(--line-color));

  background-size:
    var(--dot-size) var(--dot-size),
    /* Top-Left Dot */ var(--dot-size) var(--dot-size),
    /* Bottom-Right Dot */ var(--corner-radius) var(--corner-radius),
    /* Rounded Corner */
    calc(100% - var(--dot-offset) - var(--corner-radius) + 1px)
      var(--line-thickness),
    /* Top Horizontal Line */ var(--line-thickness)
      calc(100% - var(--dot-offset) - var(--corner-radius) + 1px); /* Right Vertical Line */

  background-position:
    top 0 left 0,
    /* Top-Left Dot */ bottom 0 right 0,
    /* Bottom-Right Dot */ top var(--dot-offset) right var(--dot-offset),
    /* Rounded Corner */ top var(--dot-offset) left 0,
    /* Top Horizontal Line */ bottom 0 right var(--dot-offset); /* Right Vertical Line */
}

/* 2. Bottom Left Pattern (Rounded Corner) */
.scale-container::after {
  bottom: 15px;
  left: 15px;
  background-image:
    /* Top Layer: The two dots */
    radial-gradient(
      circle,
      #ffffff 3px,
      var(--line-color) 3px,
      var(--line-color) 5px,
      transparent 5px
    ),
    radial-gradient(
      circle,
      #ffffff 3px,
      var(--line-color) 3px,
      var(--line-color) 5px,
      transparent 5px
    ),
    /* Middle Layer: The Rounded Corner Arc */
    radial-gradient(
        circle at 100% 0,
        transparent calc(var(--corner-radius) - var(--line-thickness) - 0.5px),
        var(--line-color) calc(var(--corner-radius) - var(--line-thickness)),
        var(--line-color) var(--corner-radius),
        transparent calc(var(--corner-radius) + 0.5px)
      ),
    /* Bottom Layer: The straight lines */
    linear-gradient(var(--line-color), var(--line-color)),
    linear-gradient(var(--line-color), var(--line-color));

  background-size:
    var(--dot-size) var(--dot-size),
    /* Top-Left Dot */ var(--dot-size) var(--dot-size),
    /* Bottom-Right Dot */ var(--corner-radius) var(--corner-radius),
    /* Rounded Corner */
    calc(100% - var(--dot-offset) - var(--corner-radius) + 1px)
      var(--line-thickness),
    /* Bottom Horizontal Line */ var(--line-thickness)
      calc(100% - var(--dot-offset) - var(--corner-radius) + 1px); /* Left Vertical Line */

  background-position:
    top 0 left 0,
    /* Top-Left Dot */ bottom 0 right 0,
    /* Bottom-Right Dot */ bottom var(--dot-offset) left var(--dot-offset),
    /* Rounded Corner */ bottom var(--dot-offset) right 0,
    /* Bottom Horizontal Line */ top 0 left var(--dot-offset); /* Left Vertical Line */
}
/* --- Footer --- */
footer h5 {
  color: var(--card-bg-light);
}
.footer-link {
  transition: opacity 0.3s ease;
}

.footer-link:hover {
  opacity: 1 !important;
  text-decoration: underline !important;
}
/* --- Scroll to Top Button --- */
#scrollToTopBtn {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 50px;
  height: 50px;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 999;
  opacity: 0;
  visibility: hidden;
  transition:
    opacity 0.3s ease,
    visibility 0.3s ease,
    transform 0.3s ease;
  font-size: 1.2rem;
  background-color: var(--accent-cyan);
  color: var(--default-color);
}

/* Class added by Javascript to make it visible */
#scrollToTopBtn.show {
  opacity: 1;
  visibility: visible;
}

#scrollToTopBtn:hover {
  transform: translateY(-5px);
}
.mentor-img {
  /* max-height: 230px; */
  border: 3px solid #1e4572;
  border-radius: 20px;
}
@media (max-width: 575.98px) {
  .mentor-mobile-crop {
    height: 350px !important; /* Adjust this value (e.g., 240px, 260px) to get the exact size you want */
    width: 100% !important;
    object-fit: cover !important;
    object-position: top center !important;
  }
}
/* Creates the staggered scaling effect based on Swiper's active classes */
/* Responsive Slide Widths */
.investor-slide {
  width: 150px; /* Mobile width */
}
@media (min-width: 768px) {
  .investor-slide {
    width: 220px; /* Desktop width */
  }
}

/* Ensure perfect square cards */
.investor-card {
  aspect-ratio: 1 / 1;
}

/* Smooth Transitions */
.investor-swiper .swiper-slide {
  transition:
    transform 0.5s ease,
    opacity 0.5s ease;
  transform: scale(0.8); /* Shrink inactive slides */
  cursor: pointer;
}

/* Perfect Center & Full Opacity */
.investor-swiper .swiper-slide-active {
  opacity: 1;
  transform: scale(1.15); /* Enlarge center slide */
  z-index: 10;
}

/* Hide labels on inactive slides */
/* .transition-fade {
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease;
} */

.investor-swiper .swiper-slide-active .transition-fade {
  opacity: 1;
  visibility: visible;
}
