/* ==========================================================================
   Why Take MESAT? section
   ========================================================================== */
.why-mesat-sec {
  padding: 40px 0;
  background: #fff;
}
 
.why-mesat-sec .container-lg {
  max-width: 920px;
  margin: 0 auto;
}
 
.why-mesat-title {
  font-size: 24px;
  font-weight: 700;
  line-height: 1.2;
  color: #1a1a1a;
  margin: 0 0 20px;
}
 
/* 2 x 2 grid */
.why-mesat-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px;
}
 
.why-mesat-card {
  background: #f5f3ef;
  border-radius: 20px;
  padding: 18px 16px;
}
 
.why-mesat-card-title {
  font-size: 16px;
  font-weight: 700;
  line-height: 1.3;
  color: #1a1a1a;
  margin: 0 0 6px;
}
 
.why-mesat-card-text {
  font-size: 12px;
  font-weight: 500;
  line-height: 1.5;
  color: #6b6b6b;
  margin: 0;
  max-width: 190px; /* gives the 2-line wrap seen in the design */
}
 
/* Tablet */
@media (max-width: 991px) {
  .why-mesat-sec {
    padding: 32px 0;
  }
}
 
/* Phone view */
@media (max-width: 575.98px) {
  .why-mesat-sec {
    padding: 24px 0;
  }
 
  .why-mesat-title {
    font-size: 20px;
    margin-bottom: 14px;
  }
 
  /* keep 2 x 2 on phone; use 1fr below to stack instead */
  .why-mesat-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }
 
  .why-mesat-card {
    border-radius: 14px;
    padding: 14px 12px;
  }
 
  .why-mesat-card-title {
    font-size: 13px;
    margin-bottom: 4px;
  }
 
  .why-mesat-card-text {
    font-size: 11px;
    line-height: 1.45;
    max-width: none;
  }
}
 
/* Very small phones: stack cards in one column */
@media (max-width: 359.98px) {
  .why-mesat-grid {
    grid-template-columns: 1fr;
  }
}/* ==========================================================================
   Hall of Fame section - combined CSS
   Collected from: jeeCatlog.css (main rules), index.css (base/container),
   style.css (Oswald font-face + body font).
   Requires: Bootstrap 5, Owl Carousel (+ owl.theme), Font Awesome.
   ========================================================================== */

/* --------------------------------------------------------------------------
   Variables (--color-primary is used by the card border but was not defined
   in any uploaded file, so a fallback is set here. Remove if it already
   exists in your project.)
   -------------------------------------------------------------------------- */
:root {
  --color-primary: #ff7800;
}

/* --------------------------------------------------------------------------
   Fonts (from style.css) - fix the url() paths for your folder structure
   -------------------------------------------------------------------------- */
@font-face {
  font-family: 'Oswald';
  src: url('../fonts/Oswald/Oswald-VariableFont_wght.ttf') format('truetype');
  font-weight: 200 700;
  font-style: normal;
}

/* --------------------------------------------------------------------------
   Base (from index.css)
   -------------------------------------------------------------------------- */
.container-lg {
  padding-inline: 24px;
}

/* --------------------------------------------------------------------------
   Section wrapper
   -------------------------------------------------------------------------- */
.fame-sec {
  padding: 60px 0;
  background: #fff;
}

.fame-slider {
  min-height: 550px;
}

/* --------------------------------------------------------------------------
   Top 3 cards grid (AIR 1 / centre logo / AIR 2)
   .jee-catalog-page / .neet-catalog-page = class on your page <body>/wrapper
   -------------------------------------------------------------------------- */
.neet-catalog-page .fame-slider,
.jee-catalog-page .fame-slider {
  min-height: 0;
}

.neet-catalog-page .fame-top-grid,
.jee-catalog-page .fame-top-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: center;
  gap: 20px;
}

.neet-catalog-page .fame-top-card,
.jee-catalog-page .fame-top-card {
  height: 100%;
  margin-bottom: 0;
}

.neet-catalog-page .fame-center-card,
.jee-catalog-page .fame-center-card {
  position: relative;
  bottom: 25px;
  padding-top: 35px !important;
  z-index: 2;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15) !important;
  aspect-ratio: 1 / 1.5;
}

/* --------------------------------------------------------------------------
   Card
   -------------------------------------------------------------------------- */
.fame-top-card {
  background: linear-gradient(to bottom, #fff 70%, #ffd180);
  border-radius: 12px;
  padding: 15px 0 0;
  flex: 1;
  text-align: center;
  position: relative;
  overflow: hidden;
  margin-bottom: 30px;
  box-shadow: 0 0 49px -33px rgba(0, 0, 0, 0.75);
  border: 1px solid #ccc;
  border-bottom: 4px solid var(--color-primary);
  transition: all 0.3s ease;
  aspect-ratio: 1 / 1.3;
}

.fame-top-card img {
  margin-top: 20px;
}

.fame-rank-text {
  font-family: "Oswald", sans-serif;
  font-size: 28px;
  transition: font-size 0.3s ease;
}

.fame-name-text {
  font-size: 14px;
  transition: font-size 0.3s ease;
}

.fame-desc-text {
  font-size: 10px;
  margin-bottom: 0;
  transition: font-size 0.3s ease;
}

.fame-bottom-img {
  object-fit: cover;
  object-position: 60% 60%;
}

.fame-bottom-img-side {
  object-fit: contain;
  height: 80%;
  width: 80%;
}

/* --------------------------------------------------------------------------
   State toppers (owl carousel) + Best of 2026 list
   -------------------------------------------------------------------------- */
.ranker-this-year-box {
  display: flex;
  gap: 20px;
  overflow: auto;
  max-width: max-content;
  margin: auto;
  padding: 10px;
}

.other-rankers-box {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
}

/* Eligible for NITs image block */
.diagram-container {
  max-width: 600px;
  margin: auto;
}

/* ==========================================================================
   Responsive
   ========================================================================== */

/* Phones: show only 2 cards in the top grid (hide centre logo card) */
@media (max-width: 575.98px) {
  .neet-catalog-page .fame-top-grid,
  .jee-catalog-page .fame-top-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  .neet-catalog-page .fame-top-grid > .item:nth-child(2),
  .jee-catalog-page .fame-top-grid > .item:nth-child(2) {
    display: none;
  }
}

/* Tablet / mobile: horizontal scrolling rows (used by the arrow buttons) */
@media (max-width: 991px) {
  .ranker-this-year-box {
    max-width: 1000px;
    overflow-x: auto;
    scroll-behavior: smooth;
    -ms-overflow-style: none;
    scrollbar-width: none;
  }

  .ranker-this-year-box::-webkit-scrollbar {
    display: none;
  }

  .other-rankers-box {
    all: initial;
    display: grid;
    grid-template-rows: repeat(2, auto);
    grid-auto-flow: column;
    grid-auto-columns: 80px;
    gap: 15px 20px;

    overflow-x: auto;
    overflow-y: hidden;
    scroll-behavior: smooth;

    padding: 10px 20px;
    width: 100%;
    box-sizing: border-box;
    -ms-overflow-style: none;
    scrollbar-width: none;
  }

  .other-rankers-box::-webkit-scrollbar {
    display: none;
  }
}

/* Small phones */
@media (max-width: 500px) {
  .fame-slider {
    min-height: 320px;
  }

  .fame-top-card {
    aspect-ratio: 1 / 1.5;
  }

  .fame-rank-text {
    font-family: "Oswald", sans-serif;
    font-size: 22px;
    transition: font-size 0.3s ease;
  }

  .fame-name-text {
    font-size: 14px;
  }

  .fame-desc-text {
    font-size: 10px;
  }
}
