/* --- GLOBAL OVERRIDES --- */
body {
  background-color: #050505;
  color: #ffffff;
  overflow: hidden !important;
}

/* FILM GRAIN */
.grain {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 9999;
  opacity: 0.05;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
}

/* --- PARALLAX STRUCTURE --- */
.parallax-wrapper {
  height: 100vh;
  overflow-x: hidden;
  overflow-y: auto;
  perspective: 10px;
}

header {
  position: relative;
  height: 100vh;
  transform-style: preserve-3d;
  z-index: -1;
}

.bg-layer {
  transform: translateZ(-10px) scale(2);
  z-index: -2;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.nav-container {
  position: absolute;
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  top: 30px;
  width: 100%;
  z-index: 1000;
  transform: translateZ(0);
}

.hero-content {
  transform: translateZ(0);
  height: 100%;
  display: flex;
  align-items: center;
}

/* --- LINK STYLES --- */
.logo-link {
  text-decoration: none;
  color: white;
  display: block;
  outline: none;
}
.logo-link:visited,
.logo-link:hover,
.logo-link:active,
.logo-link:focus {
  color: white;
  text-decoration: none;
  outline: none;
}

/* --- GLASS STYLING --- */
.glass-card,
.course-overview {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-radius: 16px;
  padding: 40px;
  color: #fff;

  /* THE FIX FOR OVERFLOWING CONTENT */
  display: flex;
  flex-direction: column;
  height: 100% !important; /* Ensures side-by-side cards match height on desktop */
  min-height: fit-content !important; /* Guarantees the box wraps around all text */
  max-height: none !important;
  overflow: visible;
}

.course-overview {
  max-width: 500px;
  width: 100%;
  margin: 0 auto;
  height: auto;
}

/* Typography */
.course-overview-title {
  font-family: "Bebas Neue", sans-serif;
  font-size: 2.5rem;
  letter-spacing: 2px;
  margin-bottom: 30px;
  text-align: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  padding-bottom: 15px;
  color: #fff;
}

.course_overview-content {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 20px;
  padding: 10px;
}
.course_overview-content img {
  width: 40px;
  opacity: 0.8;
  filter: brightness(0) invert(1);
}
.course_overview-content p {
  font-family: "Poppins", sans-serif;
  font-size: 1.1rem;
  color: #ccc;
  margin: 0;
}
.course_overview-content strong {
  color: #fff;
  font-weight: 600;
}

.institute-name h1 {
  font-family: "Bebas Neue", sans-serif;
  font-size: 6vw;
  line-height: 0.9;
  text-transform: uppercase;
  margin-left: 5vw;
  letter-spacing: 0px;
}

/* --- SECTIONS --- */
.main-content {
  position: relative;
  z-index: 2;
  background-color: #050505;
  box-shadow: 0 -50px 100px #050505;
}

.section-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 100px 20px;
}

.eyebrow {
  color: #a15127;
  text-transform: uppercase;
  letter-spacing: 4px;
  font-size: 0.9rem;
  display: block;
  margin-bottom: 10px;
  font-family: "Helvetica Neue", sans-serif;
  text-align: center;
}

.section-title {
  font-family: "Bebas Neue", sans-serif;
  font-size: 5rem;
  color: #fff;
  text-align: center;
  margin-bottom: 60px;
  line-height: 1;
  letter-spacing: 2px;
}

/* Expanded Details Grid */
.details-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 30px;
  align-items: stretch;
}
@media (min-width: 900px) {
  .details-grid {
    grid-template-columns: 1.5fr 1fr;
  }
  .full-width-grid {
    grid-column: span 2;
  }
}

.glass-card h3 {
  font-family: "Bebas Neue", sans-serif;
  font-size: 2rem;
  letter-spacing: 1px;
  margin-top: 0;
  margin-bottom: 20px;
  background-image: var(--heading_color_gradient);
  font-weight: bold;
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  padding-bottom: 10px;
}

.glass-card p,
.glass-card li {
  font-family: "Poppins", sans-serif;
  color: #aaa;
  line-height: 1.8;
  font-size: 1rem;
  margin-bottom: 15px;
}
.glass-card ul {
  padding-left: 20px;
}
.glass-card li {
  margin-bottom: 10px;
}

/* --- DETAILED FEES STRUCTURE --- */
.fees-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 30px;
  align-items: start;
}
@media (min-width: 900px) {
  .fees-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.fee-year-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  height: auto;
  display: flex;
  flex-direction: column;
}

.fee-header {
  background: rgba(255, 255, 255, 0.05);
  padding: 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  text-align: center;
}

.fee-header h4 {
  font-family: "Bebas Neue", sans-serif;
  font-size: 1.8rem;
  margin: 0;
  letter-spacing: 2px;
}

.fee-list {
  padding: 20px;
}

.fee-row {
  display: flex;
  justify-content: space-between;
  padding: 12px 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  font-family: "Poppins", sans-serif;
  font-size: 0.9rem;
  color: #bbb;
}
.fee-row:last-child {
  border-bottom: none;
}
.fee-row span.price {
  color: #fff;
  font-weight: 600;
  text-align: right;
}

/* Summary Table Styling */
.summary-table-container {
  margin-top: 40px;
  overflow-x: auto;
}
.summary-table {
  width: 100%;
  border-collapse: collapse;
  font-family: "Poppins", sans-serif;
  color: #ccc;
}
.summary-table th {
  text-align: left;
  padding: 15px;
  background: rgba(255, 255, 255, 0.05);
  /*linear-gradient(to left, #5b1315, #f69840);*/
  border-bottom: 2px solid #f69840;
  color: #fff;
  text-transform: uppercase;
  font-size: 0.9rem;
}
.summary-table td {
  padding: 15px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
.total-row td {
  background-image: var(--heading_color_gradient);
  font-weight: bold;
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;
  font-weight: bold;
  font-size: 1.2rem;
  border-top: 2px solid rgba(255, 255, 255, 0.1);
}

/* --- FOOTER & CONTACT --- */
.contact-section {
  background: #0a0a0a;
  padding-top: 100px;
  border-top: 1px solid #111;
}
.contact-layout {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 80px;
}
.contact-left h2 {
  font-family: "Bebas Neue", sans-serif;
  font-size: 4rem;
  text-align: center;
  letter-spacing: 3px;
  margin-bottom: 30px;
}
.details {
  text-align: center;
}
.details p {
  font-family: "Poppins", sans-serif;
  font-size: 1.2rem;
  color: #888;
  margin: 5px 0;
}
.social-links {
  display: flex;
  gap: 30px;
  margin-top: 40px;
  justify-content: center;
}
.social-links img {
  width: 30px;
  opacity: 0.5;
  transition: 0.3s;
  filter: brightness(0) invert(1);
}
.social-links img:hover {
  opacity: 1;
  transform: scale(1.1);
}

/* Scroll Mouse */
.scroll-container {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%) translateZ(0);
  z-index: 10;
  opacity: 0.7;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.mouse {
  width: 24px;
  height: 40px;
  border: 2px solid #fff;
  border-radius: 20px;
  position: relative;
}
.wheel {
  width: 4px;
  height: 6px;
  background: #fff;
  position: absolute;
  top: 8px;
  left: 50%;
  transform: translateX(-50%);
  border-radius: 2px;
  animation: scroll 2s infinite;
}
.scroll-text {
  margin-top: 10px;
  font-family: "Bebas Neue";
  letter-spacing: 2px;
  font-size: 0.9rem;
}
@keyframes scroll {
  0% {
    opacity: 1;
    top: 8px;
  }
  100% {
    opacity: 0;
    top: 20px;
  }
}

/* --- MOBILE LAYOUT ADJUSTMENTS --- */
@media (max-width: 900px) {
  .hero-content {
    flex-direction: column;
    justify-content: center;
    padding-top: 80px;
    gap: 30px;
  }

  /* 1. KILL THE GRID ON MOBILE: Force simple vertical stacking */
  .details-grid,
  .fees-grid {
    display: flex !important;
    flex-direction: column !important;
    gap: 30px;
  }

  /* 2. BLOCK-LEVEL CARDS: Forces the box to naturally wrap all text */
  .glass-card,
  .fee-year-card,
  .course-overview {
    display: block !important;
    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;
    overflow: visible !important;
    padding: 30px 20px !important;
  }

  .split-item {
    width: 100%;
    height: auto;
    flex: none;
    display: flex;
    justify-content: center;
    align-items: center;
  }

  #item2 {
    display: flex !important;
  }

  .institute-name h1 {
    text-align: center;
    margin-left: 0;
    font-size: 3.5rem;
    line-height: 1.1;
    margin-bottom: 10px;
  }

  .course-overview {
    max-width: 90%;
    background: rgba(0, 0, 0, 0.6);
  }

  .course-overview-title {
    font-size: 1.5rem;
    margin-bottom: 15px;
  }

  .course_overview-content {
    gap: 15px;
    margin-bottom: 10px;
  }

  .course_overview-content img {
    width: 30px;
    height: 30px;
  }

  .course_overview-content p {
    font-size: 1rem;
  }
}
/* --- DESKTOP HERO OVERLAP FIX --- */
.course-overview {
  height: auto !important; /* Stops it from stretching to 100vh */
  min-height: fit-content !important;
  display: block !important; /* Reverts it to a standard content box */
  margin: auto; /* Ensures it stays perfectly centered */
}
