/* =========================================================
   MEDIA HIGHLIGHTS
========================================================= */

.gc-media-highlights {
  position: relative;

  width: calc(100% - 20px);
  height: calc(100dvh - 20px);

  margin: 10px;

  overflow: hidden;

  box-sizing: border-box;

  /* DESKTOP BACKGROUND */
  background-image:
    url("../assets/img/mega-menu-bg-new.webp");

  background-repeat: no-repeat;
  background-position: center center;
  background-size: 100% 100%;

  border-radius: 18px !important;
}


/* =========================================================
   MAIN INNER WRAPPER
   Heading + scrollable grid
========================================================= */

.gc-media-highlights__scroll {
  position: relative;

  display: flex;
  flex-direction: column;

  width: 100%;
  height: 100%;

  padding:
    40px
    55px
    38px;

  box-sizing: border-box;

  overflow: hidden !important;
}


/* =========================================================
   HEADING
   YE SCROLL NAHI HOGI
========================================================= */

.gc-media-highlights__head {
  position: relative;

  flex: 0 0 auto;

  z-index: 20;

  width: 100%;

  padding:
    8px
    20px
    20px;

  box-sizing: border-box;

  text-align: center;
}


.gc-media-highlights__line {
  display: block;

  width: 60px;
  height: 3px;

  margin:
    0
    auto
    10px;

  background: #e8b4a8;

  border-radius: 10px;
}


.gc-media-highlights__head h2 {
  margin: 0;

  font-family:
    var(--font-display, Georgia, serif);

  font-size: 48px;
  line-height: 54px;

  font-weight: 700;

  color: #e8b4a8;

  text-shadow:
    0 3px 8px rgba(0, 0, 0, 0.55);
}


.gc-media-highlights__head p {
  max-width: 850px;

  margin:
    8px
    auto
    0;

  font-size: 16px;
  line-height: 23px;

  font-weight: 600;

  color: #efc5bb;

  text-align: center;
}


/* =========================================================
   GRID
   SIRF YE AREA SCROLL HOGA
========================================================= */

.gc-media-highlights__grid {
  display: grid;

  grid-template-columns:
    repeat(3, minmax(0, 1fr));

  /*
    IMPORTANT FIX:
    Row card ke complete content ke according banegi.
    Image + title dono visible rahenge.
  */
  grid-auto-rows: max-content;

  align-content: start;
  align-items: start;

  gap: 16px;

  width: 100%;

  flex: 1 1 auto;

  min-height: 0;

  padding:
    2px
    14px
    20px
    2px;

  box-sizing: border-box;

  overflow-x: hidden !important;
  overflow-y: auto !important;

  overscroll-behavior: contain;

  scrollbar-gutter: stable;

  scrollbar-width: none;

  -ms-overflow-style: none;
  border-radius: 12px !important;
}


.gc-media-highlights__grid::-webkit-scrollbar {
  display: none;

  width: 0;
  height: 0;
}


/* =========================================================
   CARD
========================================================= */

.gc-media-card {
  position: relative;

  display: block;

  width: 100%;

  /*
    IMPORTANT:
    card ko grid-row ki fixed height nahi milegi.
  */
  height: auto;

  min-height: 0;

  align-self: start;

  overflow: hidden;

  background:
    rgba(4, 41, 31, 0.92);

  border:
    1px solid transparent;

  border-radius:
    15px !important;

  box-sizing: border-box;

  box-shadow:
    0 8px 20px
    rgba(0, 0, 0, 0.25);

  transition:
    transform 0.3s ease,
    border-color 0.3s ease,
    box-shadow 0.3s ease;
}


/* =========================================================
   CARD HOVER
========================================================= */

.gc-media-card:hover {
  transform:
    translateY(-3px);

  border-color:
    #f2b8ac;

  box-shadow:
    0 10px 24px
      rgba(0, 0, 0, 0.32),

    0 0 0 2px
      rgba(232, 180, 168, 0.18),

    0 0 22px
      rgba(232, 180, 168, 0.28);
}


/* =========================================================
   CARD IMAGE
========================================================= */

.gc-media-card__image {
  position: relative;

  display: block;

  width: 100%;

  aspect-ratio:
    16 / 9;

  overflow: hidden;

  background:
    #073126;
}


.gc-media-card__image img {
  display: block;

  width: 100%;
  height: 100%;

  object-fit: cover;
  object-position: center;

  transition:
    transform 0.45s ease;
}


.gc-media-card:hover
.gc-media-card__image img {
  transform:
    scale(1.025);
}


/* =========================================================
   CARD TITLE
   IMPORTANT — WAPAS PROPER VISIBLE
========================================================= */

.gc-media-card__title {
  position: relative;

  display: flex !important;

  align-items: center;
  justify-content: center;

  width: 100%;

  min-height: 50px;

  height: auto;

  padding:
    8px
    12px;

  box-sizing: border-box;

  border-top:
    2px solid
    rgba(232, 180, 168, 0.75);

  font-family:
    var(--font-display, Georgia, serif);

  font-size: 20px;
  line-height: 25px;

  font-weight: 700;

  text-align: center;

  color: #f7ded8;

  background:
    rgba(3, 43, 32, 0.95);

  text-shadow:
    0 2px 5px
    rgba(0, 0, 0, 0.45);

  overflow: visible;

  z-index: 2;
}


/* =========================================================
   TABLET
   2 CARDS PER ROW
========================================================= */

@media
(min-width: 576px)
and
(max-width: 991px) {

  .gc-media-highlights {
    width: calc(100% - 20px);
    height: calc(100dvh - 20px);

    margin: 10px;

    background-image:
      url("../assets/img/nav-bg-mob.jpg");

    background-repeat: no-repeat;

    background-position:
      center center;

    background-size:
      100% 100%;

    border-radius:
      16px !important;
  }


  .gc-media-highlights__scroll {
    padding:
      55px
      36px
      35px;
  }


  .gc-media-highlights__head {
    padding:
      7px
      15px
      18px;
  }


  .gc-media-highlights__head h2 {
    font-size: 40px;
    line-height: 46px;
  }


  .gc-media-highlights__head p {
    max-width: 650px;

    font-size: 14px;
    line-height: 20px;
  }


  .gc-media-highlights__grid {
    grid-template-columns:
      repeat(
        2,
        minmax(0, 1fr)
      );

    grid-auto-rows:
      max-content;

    align-content:
      start;

    align-items:
      start;

    gap: 14px;

    min-height: 0;

    padding:
      2px
      35px
      20px
      35px;

    overflow-x:
      hidden !important;

    overflow-y:
      auto !important;

    overscroll-behavior:
      contain;

    scrollbar-gutter:
      stable;

    scrollbar-width:
      none;

    -ms-overflow-style:
      none;
  }


  .gc-media-highlights__grid::-webkit-scrollbar {
    display: none;

    width: 0;
    height: 0;
  }


  .gc-media-card {
    height: auto;

    align-self:
      start;
  }


  .gc-media-card__title {
    display:
      flex !important;

    min-height:
      48px;

    height:
      auto;

    font-size:
      17px;

    line-height:
      22px;
  }

}


/* =========================================================
   MOBILE
   1 CARD PER ROW
========================================================= */

@media (max-width: 575px) {

  .gc-media-highlights {
    width:
      calc(100% - 20px);

    height:
      calc(100dvh - 20px);

    margin:
      10px;

    background-image:
      url("../assets/img/nav-bg-new-mob.jpg");

    background-repeat:
      no-repeat;

    background-position:
      center center;

    background-size:
      100% 100%;

    border-radius:
      14px !important;
  }


  .gc-media-highlights__scroll {
    padding:
      50px
      28px
      30px;
  }


  .gc-media-highlights__head {
    padding:
      5px
      40px
      10px;
  }


  .gc-media-highlights__line {
    width:
      42px;

    height:
      2px;

    margin-bottom:
      7px;
  }


  .gc-media-highlights__head h2 {
    font-size:
      30px;

    line-height:
      35px;
  }


  .gc-media-highlights__head p {
    margin-top:
      6px;

    font-size:
      12px;

    line-height:
      17px;
  }


  .gc-media-highlights__grid {
    grid-template-columns:
      1fr;

    grid-auto-rows:
      max-content;

    align-content:
      start;

    align-items:
      start;

    gap:
      12px;

    min-height:
      0;

    padding:
      2px
      30px
      20px
      30px;

    overflow-x:
      hidden !important;

    overflow-y:
      auto !important;

    overscroll-behavior:
      contain;

    scrollbar-gutter:
      stable;

    scrollbar-width:
      none;

    -ms-overflow-style:
      none;
  }


  .gc-media-highlights__grid::-webkit-scrollbar {
    display:
      none;

    width:
      0;

    height:
      0;
  }


  .gc-media-card {
    width:
      100%;

    height:
      auto;

    align-self:
      start;

    border-radius:
      12px !important;
  }


  .gc-media-card__image {
    width:
      100%;

    aspect-ratio:
      16 / 9;
  }


  .gc-media-card__title {
    display:
      flex !important;

    width:
      100%;

    min-height:
      46px;

    height:
      auto;

    padding:
      8px
      10px;

    font-size:
      16px;

    line-height:
      21px;
  }

}


/* =========================================================
   EXTRA SMALL MOBILE
========================================================= */

@media (max-width: 390px) {

  .gc-media-highlights__scroll {
    padding:
      50px
      23px
      25px;
  }


  .gc-media-highlights__head h2 {
    font-size:
      27px;

    line-height:
      32px;
  }


  .gc-media-highlights__head p {
    font-size:
      11px;

    line-height:
      16px;
  }


  .gc-media-highlights__grid {
    grid-auto-rows:
      max-content;

    padding:
      1px
      20px
      20px
      20px;
  }


  .gc-media-card {
    height:
      auto;
  }


  .gc-media-card__title {
    display:
      flex !important;

    min-height:
      44px;

    height:
      auto;

    font-size:
      15px;

    line-height:
      20px;
  }

}