/* =====================================================
   BEYOND ACADEMICS SECTION
===================================================== */

.beyond-section {
  padding: 100px 0;
  background-color: #f1efee;
}

/* =====================================================
   CONTAINER (20% / 80%)
===================================================== */
.beyond-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  gap: 40px;
}

/* =====================================================
   LEFT COLUMN
===================================================== */
.beyond-left {
  flex: 0 0 20%;
}

.beyond-left-inner {
  display: flex;
  align-items: center;
  gap: 10px;
}

.beyond-icon {
  color: #f37422;
  font-size: 16px;
}

.beyond-subtitle {
  font-size: 24px;
  font-weight: 500;
  line-height: 1.4;
  margin-top:15px;
}

/* =====================================================
   RIGHT COLUMN
===================================================== */
.beyond-right {
  flex: 0 0 80%;
}

/* =====================================================
   HEADING
===================================================== */
.beyond-title {
  font-size: 32px;
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 8px;
}

.beyond-intro {
  font-size: 18px;
  color: #333;
  margin-bottom: 40px;
}

/* =====================================================
   CARDS GRID
===================================================== */
.beyond-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

/* =====================================================
   CARD (3:4 RATIO – FIXED)
===================================================== */
.beyond-card {
  position: relative;
  overflow: hidden;
  border-radius: 20px;
  background-color: #000;

  aspect-ratio: 3 / 4;   /* ✅ CORE FIX */
}

/* Image */
.beyond-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Overlay */
.beyond-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(0,0,0,0.65),
    rgba(0,0,0,0.1)
  );
  z-index: 1;
}

/* =====================================================
   CARD TEXT
===================================================== */
.beyond-card-overlay {
  position: absolute;
  left: 24px;
  bottom: 24px;
  z-index: 2;
  color: #ffffff;
}

.beyond-card-overlay h3 {
  font-size: 22px;
  font-weight: 700;
  line-height: 1.25;
}

/* =====================================================
   DOT INDICATORS
===================================================== */
.beyond-dots {
  display: flex;
  gap: 10px;
  margin-top: 28px;
  justify-content: center;
}

.beyond-dots .dot {
  width: 10px;
  height: 10px;
  background: #111;
  border-radius: 50%;
  opacity: 0.25;
}

.beyond-dots .dot.active {
  background: #f37422;
  opacity: 1;
}

/* =====================================================
   TABLET
===================================================== */
@media (max-width: 991px) {

  .beyond-container {
    flex-direction: column;
  }

  .beyond-left,
  .beyond-right {
    flex: 100%;
  }

  .beyond-cards {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* =====================================================
   MOBILE – HORIZONTAL SLIDER (3:4 PRESERVED)
===================================================== */
@media (max-width: 767px) {

  .beyond-section {
    padding: 60px 0;
  }

  .beyond-title {
    font-size: 26px;
  }

  .beyond-intro {
    font-size: 16px;
    margin-bottom: 24px;
  }

  .beyond-cards {
    display: flex;
    gap: 16px;

    overflow-x: auto;
    overflow-y: hidden;

    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;

    padding-bottom: 10px;
  }

  .beyond-cards::-webkit-scrollbar {
    display: none;
  }

  .beyond-card {
    flex: 0 0 80%;
    scroll-snap-align: center;

    aspect-ratio: 3 / 4; /* ✅ STILL ENFORCED */
  }

  .beyond-card-overlay h3 {
    font-size: 20px;
  }
}
