  html .body {
      scroll-behavior: smooth !important;
    }
 :root {
            --primary: #ff1900;
            --secondary: #e67e22;
            --surface: #ffffff;
            --bg-light: #fafaf9;
            --text-main: #1c1917;
            --text-muted: #57534e;
            --radius: 15px;
        }
    p {
      font-size: 20px !important;
    }

    @media (max-width:1200px) {
      p {
        font-size: 14px !important;
      }
    }

    .btn-apply {
      background-color: #000000ff;
      color: #fff;
      border-radius: 50px;
      padding: 8px 25px;
      font-weight: 600;
      margin-top: 18px;
      transition: all 0.3s ease;
      font-size: 14px;
    }

    .btn-apply:hover {
      background: linear-gradient(90deg, #ff4b2b, #ffb400);
      color: #fff;
    }
    
    .scroll-stats {
    background: #fff7ee;
    padding: 80px 0;
  }

  /* 1. Desktop Layout (6 Columns) */
  .stats-grid-row {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    align-items: center;
    text-align: center;
  }

  .stat-box {
    padding: 10px 15px;
    border-right: 1px solid rgba(0, 0, 0, 0.1);
  }

  /* Remove the border from the very last item */
  /* Typography */
  .bg-number {
    font-size: 64px; 
    font-weight: 800;
    line-height: 1;
    display: block;
    color: #333;
  }

  .stat-box.plus .bg-number::after {
    content: "+";
    font-size: 24px;
    margin-left: 2px;
    vertical-align: super;
  }

  .stat-content h6 {
    font-size: 14px;
    letter-spacing: 0.5px;
    color: #444;
    margin-top: 12px;
    text-transform: uppercase;
  }

  /* 2. Tablet Media Query (3 Columns) */
  @media (max-width: 1024px) {
    .stats-grid-row {
      grid-template-columns: repeat(3, 1fr);
      gap: 40px 0;
    }
    
    /* Remove borders on tablet because 3x2 grid borders look messy */
    /* .stat-box {
      border-right: none !important;
      border-left: none !important;
    }
     */
    .bg-number {
      font-size: 48px;
    }
  }

  /* 3. Mobile Media Query (2 Columns) */
  @media (max-width: 600px) {
    .stats-grid-row {
      grid-template-columns: repeat(2, 1fr);
      gap: 30px 0;
    }

    .bg-number {
      font-size: 36px;
    }

    .stat-content h6 {
      font-size: 11px;
      padding: 0 10px;
    }
    
  }

.card-icon-bg {
   position: absolute;
    bottom: 10px;
    right: 10px;
    width: 95px;
    height: auto;
    opacity: 1000;
    z-index: 1;
    pointer-events: none;
    filter: opacity(0.2); /* Taaki button click mein dikkat na ho */
}

.btn-arrow {
    position: relative;
    z-index: 2; /* Button icon ke upar dikhe */
}
.benefit-card {
    position: relative; /* Image positioning ke liye zaruri hai */
    overflow: hidden;
}

/* 3x3 Grid Definition */
.bento-3x3-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-auto-rows: 200px; /* Forces equal height for all squares */
    gap: 12px;
}

.bento-tile {
    position: relative;
    border-radius: 12px;
    background-size: cover;
    background-position: center;
    overflow: hidden;
    background-color: #f8f9fa;
    border: 1px solid #eee;
}

.tile-empty {
    background: #fffafa;
    border: 1px dashed #e12d2366;
}

.bento-tile-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.7) 0%, transparent 50%);
    padding: 15px;
    display: flex;
    align-items: flex-end;
    color: #fff;
    font-size: 14px;
    font-weight: 700;
}

.bento-tile-overlay span {
    font-size: 10px;
    margin-right: 8px;
    opacity: 0.6;
    border-right: 1px solid rgba(255,255,255,0.3);
    padding-right: 8px;
}

/* Left side mini cards */
/* --- LEFT SIDE: ICON CARDS HOVER --- */
.small-fac-card {
    background: #fff;
    border: 1px solid #eee;
    padding: 12px;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 10px;
    height: 75px; /* Adjusted from vh to px for better consistency */
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    cursor: default;
    position: relative;
    overflow: hidden;
}

.small-fac-card:hover {
    transform: translateY(-5px);
    border-color: #e12d23;
    box-shadow: 0 10px 20px rgba(225, 45, 35, 0.1);
    background: #fffafa;
}

/* Red line accent that appears on hover */
.small-fac-card::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 0;
    height: 3px;
    background: #e12d23;
    transition: width 0.3s ease;
}

.small-fac-card:hover::after {
    width: 100%;
}

.fac-icon-box {
    transition: transform 0.3s ease;
}

.small-fac-card:hover .fac-icon-box {
    transform: scale(1.1) rotate(5deg);
}


/* --- RIGHT SIDE: BENTO TILES HOVER --- */
.bento-tile {
    position: relative;
    border-radius: 15px;
    background-size: cover;
    background-position: center;
    overflow: hidden;
    background-color: #f8f9fa;
    border: 1px solid #eee;
    transition: all 0.5s ease;
    cursor: pointer;
}

/* Subtle Zoom effect on background */
.bento-tile::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: inherit;
    background-size: cover;
    background-position: center;
    transition: transform 0.6s cubic-bezier(0.165, 0.84, 0.44, 1);
    z-index: 0;
}

.bento-tile:hover::before {
    transform: scale(1.1);
}

/* Darken overlay on hover */
.bento-tile-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgb(0 0 0 / 53%) 0%, rgb(0 0 0 / 0%) 100%);
    padding: 20px;
    display: flex;
    align-items: flex-end;
    color: #fff;
    font-size: 15px;
    font-weight: 700;
    z-index: 1;
    transition: background 0.3s ease;
}

.bento-tile:hover .bento-tile-overlay {
    background: linear-gradient(to top, rgba(225, 45, 35, 0.7) 0%, rgba(0,0,0,0.3) 100%);
}

.bento-tile-overlay span {
    transition: all 0.3s ease;
}

.bento-tile:hover .bento-tile-overlay span {
    color: #fff;
    border-color: #fff;
    transform: translateY(-2px);
}

/* Empty tile pulse effect */
.tile-empty {
    transition: all 0.3s ease;
}

.tile-empty:hover {
    background: #fff0f0;
    border: 1px solid #e12d23;
    transform: scale(0.98);
}
@media (max-width: 991px) {
    /* 1. Kill the sticky behavior so it doesn't reserve empty space */
    .facility-header.sticky-top {
        position: relative !important;
        top: 0 !important;
        margin-bottom: 30px; /* Space between header and grid */
    }

    /* 2. Fix the Row Gutter issues */
    .section-facilities .row.g-5 {
        --bs-gutter-x: 1rem; /* Reduces large desktop gaps */
        --bs-gutter-y: 1.5rem;
    }

    /* 3. Force the Bento Grid to wrap tightly */
    .bento-3x3-grid {
        display: grid;
        grid-template-columns: repeat(2, 1fr) !important;
        grid-auto-rows: 160px !important; /* Shorter rows for mobile screens */
        gap: 8px !important;
        height: auto !important;
    }

    /* 4. Fix the Small Icon Cards (Left Side) */
    .small-fac-card {
        height: 65px !important; /* Make them shorter so they don't eat space */
        padding: 8px !important;
    }
}

@media (max-width: 576px) {
    .bento-3x3-grid {
        grid-template-columns: 1fr !important; /* Single column on phones */
        grid-auto-rows: 200px !important;
    }
    
    /* Remove any forced vh heights you might have on parents */
    .section-facilities, .container {
        height: auto !important;
    }
}
  /* Additional responsive adjustments */
      @media (max-width: 768px) {
        .card .position-relative {
          min-height: 200px !important;
          /* Reduce height on smaller screens */
        }

        .display-5 {
          font-size: 2rem;
          /* Adjust heading size on mobile */
        }

        .card-body {
          margin-top: -15px !important;
          /* Slight adjustment for overlap on mobile */
        }
      }

      @media (max-width: 576px) {
        .card .position-relative {
          min-height: 180px !important;
          /* Further reduce on very small screens */
        }

        /* Stack badges vertically if needed, but positioning should handle it */
        .rounded-pill {
          font-size: 0.75rem !important;
          /* Smaller badges on mobile */
        }
      }
      /* Section styling */
/* .bg-glass-section {
    background: #fffafa;
} */

/* Glass Card */
.glass-card {
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.8);
    border-radius: 15px;
    padding: 10px;
    height: 100%;
    transition: all 0.3s ease;
    box-shadow: 0 4px 20px rgba(0,0,0,0.05);
}

.glass-card:hover {
    transform: translateY(-8px);
    background: rgba(255, 255, 255, 0.8);
    box-shadow: 0 12px 30px rgba(225, 45, 35, 0.1);
}

.glass-thumb {
    width: 100%;
    height: 220px;
    border-radius: 9px;
    background-size: cover;
    background-position: center;
    position: relative;
}

/* The Year Pill at the Bottom of Image */
.badge-glass-bottom {
    position: absolute;
    bottom: 12px;
    right: 12px;
    background: rgba(0, 0, 0, 0.2); /* Semi-transparent white */
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    color: #fff;
    padding: 6px 14px;
    border-radius: 50px;
    font-size: 11px;
    font-weight: 600;
    border: 1px solid rgba(255, 255, 255, 0.3);
    text-shadow: 0 1px 2px rgba(0,0,0,0.2);
}

/* Content Styling */
.glass-content {
    padding: 15px 5px 5px 5px;
}

.glass-category-tag {
    font-size: 11px;
    font-weight: 700;
    color: #000000;
    text-transform: uppercase;
    margin-bottom: 5px;
}

.glass-title {
    font-size: 21px;
    font-weight: 700;
    color: #333;
    margin-bottom: 15px;
    min-height: 48px;
}

.glass-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 12px;
    border-top: 1px solid rgba(0,0,0,0.05);
    font-size: 13px;
    font-weight: 600;
    color: #555;
}

.glass-card:hover .glass-footer {
    color: #d9232d;
}
  /* ── OUTER CONTAINER ── */
    .dj-campus-gallery-wrapper {
      max-width: 1200px;
      margin: 0 auto;
      /* center, no vertical gap */
      border-radius: 12px;
      overflow: hidden;
      box-shadow: 0 8px 40px rgba(0, 0, 0, 0.18);
      background: #0a0e1a;
    }

    /* ── SLIDE AREA — fills exactly, no extra space ── */
    .dj-campus-gallery {
      position: relative;
      width: 100%;
      height: 400px;
      /* fixed height, no vh that can vary */
      overflow: hidden;
      display: block;
      /* kills any inline-block gap */
      line-height: 0;
      /* kills whitespace gaps */
    }

    .dj-campus-gallery-track {
      display: flex;
      height: 100%;
      transition: transform 0.9s cubic-bezier(0.77, 0, 0.18, 1);
      will-change: transform;
    }

    .dj-campus-gallery-slide {
      min-width: 100%;
      height: 100%;
      position: relative;
      overflow: hidden;
      flex-shrink: 0;
    }

    .dj-campus-gallery-slide img {
      width: 105%;
      height: 100%;
      object-fit: cover;
      object-position: center;
      display: block;
      /* Ken Burns — start slightly zoomed, zoom out on active */
      transform: scale(1.06);
      transition: transform 6s ease-out;
    }

    .dj-campus-gallery-slide.active img {
      transform: scale(1);
    }

    /* Subtle bottom gradient for contrast */
    .dj-campus-gallery::after {
      content: '';
      position: absolute;
      bottom: 0;
      left: 0;
      right: 0;
      height: 60px;
      background: linear-gradient(to top, rgba(10, 14, 26, 0.4), transparent);
      pointer-events: none;
      z-index: 2;
    }

    /* ── ARROWS ── */
    .dj-campus-gallery-arrow {
      position: absolute;
      top: 50%;
      transform: translateY(-50%);
      z-index: 10;
      background: rgba(255, 255, 255, 0.12);
      backdrop-filter: blur(8px);
      -webkit-backdrop-filter: blur(8px);
      border: 1px solid rgba(255, 255, 255, 0.2);
      color: white;
      width: 52px;
      height: 52px;
      border-radius: 50%;
      display: flex;
      align-items: center;
      justify-content: center;
      cursor: pointer;
      font-size: 22px;
      transition: all 0.25s;
      user-select: none;
      line-height: 1;
    }

    .dj-campus-gallery-arrow:hover {
      background: rgba(255, 255, 255, 0.28);
      border-color: rgba(255, 255, 255, 0.5);
      transform: translateY(-50%) scale(1.08);
    }

    .dj-campus-gallery-arrow.prev {
      left: 1.8rem;
    }

    .dj-campus-gallery-arrow.next {
      right: 1.8rem;
    }

    /* ── PROGRESS BAR ── */
    .dj-campus-gallery-progress {
      height: 3px;
      background: rgba(255, 255, 255, 0.85);
      width: 0%;
      transition: width linear;
      display: block;
    }

    /* ── BOTTOM CONTROLS ── */
    .dj-campus-gallery-bottom {
      display: flex;
      align-items: center;
      justify-content: space-between;
      padding: 10px 1.8rem 14px;
      background: #0a0e1a;
      gap: 12px;
    }

    /* THUMBNAILS */
    .dj-campus-gallery-thumbs {
      display: flex;
      gap: 8px;
      flex-shrink: 0;
    }

    .dj-campus-gallery-thumb {
      width: 62px;
      height: 42px;
      border-radius: 5px;
      overflow: hidden;
      border: 2px solid rgba(255, 255, 255, 0.15);
      cursor: pointer;
      transition: all 0.25s;
      flex-shrink: 0;
    }

    .dj-campus-gallery-thumb img {
      width: 100%;
      height: 100%;
      object-fit: cover;
      display: block;
      transition: transform 0.3s;
    }

    .dj-campus-gallery-thumb:hover {
      border-color: rgba(255, 255, 255, 0.55);
    }

    .dj-campus-gallery-thumb:hover img {
      transform: scale(1.08);
    }

    .dj-campus-gallery-thumb.active {
      border-color: white;
      box-shadow: 0 0 0 1px white;
    }

    /* DOTS */
    .dj-campus-gallery-dots {
      display: flex;
      gap: 8px;
      align-items: center;
      justify-content: center;
      flex: 1;
    }

    .dj-campus-gallery-dot {
      width: 8px;
      height: 8px;
      border-radius: 50%;
      background: rgba(255, 255, 255, 0.35);
      border: none;
      cursor: pointer;
      padding: 0;
      transition: all 0.35s;
    }

    .dj-campus-gallery-dot.active {
      background: white;
      width: 26px;
      border-radius: 4px;
    }

    /* COUNTER */
    .dj-campus-gallery-counter {
      font-family: 'Space Grotesk', sans-serif;
      font-size: 12px;
      font-weight: 600;
      color: rgba(255, 255, 255, 0.5);
      letter-spacing: 0.08em;
      flex-shrink: 0;
    }

    .dj-campus-gallery-counter .current-num {
      color: white;
      font-size: 15px;
    }

    /* ── RESPONSIVE ── */
    @media (max-width: 900px) {
      .dj-campus-gallery {
        height: 420px;
      }
    }

    @media (max-width: 768px) {
      .dj-campus-gallery-wrapper {
        margin-left: 16px;
        /* Added left padding for mobile */
        margin-right: 16px;
        /* Added right padding for mobile */
      }

      .dj-campus-gallery {
        height: 350px;
        /* Fixed height for better image sizing */
        min-height: auto;
      }

      .dj-campus-gallery-arrow {
        display: none;
        /* Hide arrows on mobile */
      }

      .dj-campus-gallery-thumbs {
        display: none;
      }

      .dj-campus-gallery-counter {
        display: none;
      }

      .dj-campus-gallery-dot {
        width: 6px;
        height: 6px;
      }

      .dj-campus-gallery-dot.active {
        width: 20px;
      }

      .dj-campus-gallery-bottom {
        justify-content: center;
        padding: 8px 1rem 12px;
      }
    }

    @media (max-width: 480px) {
      .dj-campus-gallery {
        height: 280px;
        /* Adjusted height for smaller screens to fix sizing */
      }
    }

    /* ── MOBILE IMAGE FIXES ── */
    @media (max-width: 768px) {

      /* Ensure slides don't shrink or expand past 100% of the wrapper */
      .dj-campus-gallery-slide {
        width: 100%;
        min-width: 100%;
        flex: 0 0 100%;
      }

      /* Revert the 105% width hack on mobile and ensure exact fit */
      .dj-campus-gallery-slide img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        /* Reduce the starting zoom slightly to prevent clipping and improve mobile performance */
        transform: scale(1.03);
      }

      /* Keep the smooth zoom-out effect when active */
      .dj-campus-gallery-slide.active img {
        transform: scale(1);
      }
    }
     .simple-slider {
  width: 100%;
  height: 70vh; /* fixed desktop height */
  position: relative;
  overflow: hidden;
}

/* responsive height */
@media (max-width: 992px) {
  .simple-slider {
    height: 300px;
  }
}

@media (max-width: 576px) {
  .simple-slider {
    height: 220px;
  }
}

.simple-slider-track {
  position: relative;
  width: 100%;
  height: 100%;
}
.slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 1.2s ease-in-out; /* 🔥 smoother + slower */
}

.slide.active {
  opacity: 1;
  z-index: 1;
}
.slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block; /* removes image gap */
  border-radius:15px;
}
 
    .uni-card {
      position: relative;
      border-radius: 20px;
      padding: 28px;
      background: #ffffff;
      min-height: 250px;
      box-shadow: 0 8px 25px rgba(0, 0, 0, 0.05);
      transition: .3s ease;
      display: flex;
      flex-direction: column;
      justify-content: space-between;
      overflow: hidden;
    }

    .uni-card:hover {
      transform: translateY(-6px);
      box-shadow: 0 12px 35px rgba(0, 0, 0, 0.12);
    }

    .uni-icon {
      position: absolute;
      right: 20px;
      bottom: 10px;
      font-size: 95px;
      opacity: 0.10;
      z-index: 1;
      pointer-events: none;
      line-height: 1;
    }

    .uni-content {
      position: relative;
          text-align: start;
      z-index: 2;
    }

    .uni-content ul {
      padding-left: 18px;
      margin-bottom: 14px;
    }
       /* Card base */
.uni-card {
  position: relative;
  border-radius: 14px;
  overflow: hidden;
  min-height: 260px;
  padding: 20px;
  display: flex;
  align-items: flex-start;
}

/* Background image */
.uni-card.bg-image {
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

/* Content */
.uni-card {
    position: relative;
    overflow: hidden;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Image Zoom Effect */
.uni-card.bg-image {
    background-size: cover;
    background-position: center;
    transition: transform 0.6s ease;
}

.uni-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.2);
}

/* Common Overlay Logic: 
   We use a 'Before' for the dark base (readability) 
   and an 'After' for the interactive color splash */
.uni-card::before {
    content: "";
    position: absolute;
    inset: 0;
    /* Stronger black at the bottom-left where the text usually sits */
    background: linear-gradient(15deg, rgba(0,0,0,0.9) 0%, rgba(0,0,0,0.4) 60%, transparent 100%);
    z-index: 1;
    transition: opacity 0.4s ease;
}

.uni-card::after {
    content: "";
    position: absolute;
    inset: 0;
    opacity: 0; /* Hidden by default */
    z-index: 2;
    transition: all 0.4s ease;
}

.uni-card:hover::after {
    opacity: 1;
}

/* your exact colors converted to rgba */

/* #e2efff */
/* Medicity - Blue */

/* content above overlay */
.uni-content {
  position: relative;
  z-index: 2;
}

/* icon */
.uni-img-icon {
  position: absolute;
  right: 20px;
  bottom: 10px;
  width: 110px;
  opacity: 0.15;
  z-index: 1;
}
 .news-scroller {
      overflow-x: auto;
      scroll-behavior: smooth;
      scroll-snap-type: x mandatory;
      padding-bottom: 10px;
      -ms-overflow-style: none;
      scrollbar-width: none;
    }

    .news-scroller::-webkit-scrollbar {
      display: none;
    }

    /* Card Sizes */
    .news-card-item {
      min-width: 33.33%;
      scroll-snap-align: start;
    }

    .news-card {
      border-radius: 18px;
      overflow: hidden;
      border: 1px solid #eee;
      transition: .3s;
      height: 100%;
    }

    .news-card:hover {
      transform: translateY(-6px);
    }

    .news-img {
      height: 180px;
      object-fit: cover;
    }

    /* Buttons bottom */
    .buttons-wrapper {
      justify-content: center;
      gap: 15px;
    }

    .scroll-btn {
      border: none;
      background: #ff7043;
      color: white;
      width: 45px;
      height: 45px;
      border-radius: 50%;
      font-size: 20px;
      display: flex;
      align-items: center;
      justify-content: center;
    }

    /* Tablet = 2 Cards */
    @media (max-width: 992px) {
      .news-card-item {
        min-width: 50%;
      }
    }

    /* Mobile = 1 Card */
    @media (max-width: 576px) {
      .news-card-item {
        min-width: 100%;
      }
    }

       .happenings-section {
  padding: 60px 0;
}

.section-title {
  font-size: 50px;
  margin-bottom: 30px;
  text-align: center;
}
.happenings-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.event-card {
  position: relative;
  overflow: hidden;
  border-radius: 15px;
  height: auto !important; /* Set a fixed height for consistency */
  cursor: pointer;
}

.event-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.event-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 20px;
  /* Default: Dark gradient so text is visible on the image */
  background: linear-gradient(to top, rgb(0, 0, 0), transparent);
  color: #fff;
  transition: all 0.4s ease-in-out;
}

.event-overlay h3 {
  margin: 0;
  font-size: 18px;
  transition: transform 0.4s ease;
}

.date-pill {
  align-self: flex-start;
  background: #fff;
  color: #000;
  font-size: 12px;
  padding: 4px 12px;
  border-radius: 50px;
  margin-bottom: 8px;
  font-weight: 600;
  transition: all 0.4s ease;
}

/* Hidden Information Style */
.event-info {
  font-size: 14px;
  line-height: 1.4;
  margin-top: 10px;
  color: #333;
  opacity: 0;
  max-height: 0;
  overflow: hidden;
  transition: all 0.4s ease-in-out;
}

/* --- HOVER EFFECTS --- */

.event-card:hover img {
  transform: scale(1.1); /* Subtle zoom effect */
}

.event-card:hover .event-overlay {
  /* On hover, background turns white */
  background: rgba(255, 255, 255, 0.95);
  justify-content: center; /* Center the text on hover */
  /* align-items: center;
  text-align: center; */
}

.event-card:hover h3 {
  color: #000;
  transform: translateY(0);
}

.event-card:hover .date-pill {
  background: #000;
  color: #fff;
}

.event-card:hover .event-info {
  opacity: 1;
  max-height: 150px; /* Reveals the text */
  /* margin-top: 15px; */
}

/* Mobile Adjustments */
@media (max-width: 992px) {
  .happenings-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 576px) {
  .happenings-grid { grid-template-columns: 1fr; }
  .section-title { font-size: 27px !important; }
}
/* Grid */
.happenings-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

/* Card */
.event-card {
  position: relative;
  overflow: hidden;
  border-radius: 15px;
  /* height: 280px; */
}

.event-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Overlay */
.event-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 16px;
  background: linear-gradient(to top, rgb(0, 0, 0), transparent);
  color: #fff;
}

/* Heading */
.event-overlay h3 {
  margin: 0;
  font-size: 18px;
}

/* Date pill */
.date-pill {
  align-self: flex-start;
  background: #fff;
  color: #000;
  font-size: 12px;
  padding: 4px 10px;
  border-radius: 50px;
  margin-bottom: 8px;
  font-weight: 500;
}

/* Responsive */
@media (max-width: 992px) {
  .happenings-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 576px) {
  .happenings-grid {
    grid-template-columns: 1fr;
  }
  .section-title {
    font-size: 27px !important;
}
}
   /* ═══════════════════════ GRID ═══════════════════════ */
    .schools-grid {
        display: grid;
        grid-template-columns: repeat(4, 1fr);
        gap: 20px;
    }

    /* ═══════════════════════ CARD ═══════════════════════ */
    .school-card {
        display: flex;
        flex-direction: column;
        background: var(--bg);
        border: 1px solid var(--border);
        overflow: hidden;
        cursor: pointer;
        transition: box-shadow 0.35s ease, transform 0.35s ease;
        border-radius: 15px;
    }

    .school-card:hover {
        box-shadow: 0 16px 48px rgba(0, 0, 0, 0.13);
        transform: translateY(-5px);
    }

    /* ── IMAGE THUMBNAIL ── */
    .card-thumb {
        position: relative;
        width: 100%;
        height: 160px;
        overflow: hidden;
        flex-shrink: 0;
    }

    .card-thumb img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        display: block;
        transition: transform 0.55s ease;
    }

    .school-card:hover .card-thumb img {
        transform: scale(1.07);
    }

    /* crimson number badge on image */
    .card-num-badge {
        position: absolute;
        bottom: 10px;
        left: 12px;
        background: var(--crimson);
        color: #fff;
        font-family: var(--font-heading);
        font-size: 11px;
        font-weight: 700;
        letter-spacing: 0.08em;
        padding: 3px 9px;
        line-height: 1.6;
    }

    /* gold top accent bar that expands on hover */
    .card-bar {
        position: absolute;
        top: 0;
        left: 0;
        height: 3px;
        width: 0;
        background: var(--gold);
        transition: width 0.4s ease;
        z-index: 2;
    }

    .school-card:hover .card-bar {
        width: 100%;
    }

    /* ── BODY ── */
    .card-body {
        padding: 18px 16px 20px;
        display: flex;
        flex-direction: column;
        gap: 7px;
        flex: 1;
    }

    .card-subtitle {
        font-size: 10px;
        font-weight: 600;
        letter-spacing: 0.18em;
        text-transform: uppercase;
        color: var(--crimson);
    }

    .card-name {
        font-family: var(--font-heading);
        font-size: 16px;
        font-weight: 400;
        color: black;
        line-height: 1.3;
        transition: color 0.25s;
    }

    .school-card:hover .card-name {
        color: var(--crimson);
    }

    /* thin gold separator */
    .card-sep {
        width: 24px;
        height: 1.5px;
        background: var(--gold);
        margin: 2px 0;
        transition: width 0.35s ease;
    }

    .school-card:hover .card-sep {
        width: 40px;
    }

    /* programmes */
    .card-programs {
        display: flex;
        flex-wrap: wrap;
        gap: 4px;
        margin-top: 2px;
        font-size: 12px !important;
    }

    .prog-tag {
        font-size: 15px;
        font-weight: 500;
        color: var(--text-mid);
        background: var(--bg2);
        border: 1px solid var(--border);
        padding: 2px 7px;
        border-radius: 20px;
    }

    /* footer link */
    .card-footer {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding-top: 12px;
        border-top: 1px solid var(--border);
        margin-top: auto;
    }

    .card-link {
        display: inline-flex;
        align-items: center;
        gap: 5px;
        font-size: 10px;
        font-weight: 600;
        letter-spacing: 0.10em;
        text-transform: uppercase;
        color: var(--crimson);
        text-decoration: none;
        transition: gap 0.2s;
    }

    .card-link:hover {
        gap: 9px;
    }

    .card-link svg {
        transition: transform 0.2s;
    }

    .card-link:hover svg {
        transform: translateX(3px);
    }

    .card-est {
        font-size: 12px;
        color: var(--muted);
        letter-spacing: 0.05em;
    }

    @media (max-width: 1200px) {
        .schools-grid {
            grid-template-columns: repeat(3, 1fr);
        }
    }

    @media (max-width: 900px) {
        .schools-grid {
            grid-template-columns: repeat(3, 1fr);
        }
    }

    @media (max-width: 640px) {
        .schools-section {
            padding: 56px 16px 48px;
        }

        .schools-grid {
            grid-template-columns: repeat(1, 1fr);
            gap: 14px;
        }

        .card-thumb {
            height: 130px;
        }
    }

    @media (max-width: 380px) {
        .schools-grid {
            grid-template-columns: 1fr;
        }
    }

    :root {
        --primary-blue: #ff4800;
        --font-body: 'Poppins', sans-serif;
        --bg: #FFFFFF;
        --bg2: #F7F7F7;
        --crimson: #ff4800;
        --deep-crimson: #ff4800;
        --gold: #ff4800;
        --gold-light: #F0C87A;
        --gold-dim: rgba(200, 154, 48, 0.10);
        --text: #1A1A1A;
        --muted: #7A7A7A;
        --text-mid: #4a4a4a;
        --border: rgba(0, 0, 0, 0.09);
        --cream: #FFF8E7;
    }