@media (max-width: 768px) {
  body {
    font-size: 13px;
  }

  h1 {
    font-size: 24px;
  }
  h2 {
    font-size: 20px;
  }
  h3 {
    font-size: 18px;
  }
}

/* Tablet only (NOT mobile) */
@media (min-width: 768px) and (max-width: 991px) {
  .container {
    padding: 0 80px;
  }
}

/* HERO SECTION  */
/* ================= HERO TABLET (768px – 991px) ================= */
@media (min-width: 768px) and (max-width: 991px) {
  .presents {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
  }

  .hero-section {
    text-align: center;
    min-height: 80vh;
  }
  .hero-section {
    position: relative;
    overflow: hidden;
    background: url("../images/hero-bg-img-mob.webp") no-repeat left center;
    background-size: cover;
    /* opacity: 0; */
    color: #fff;
  }
  .hero-cta {
    flex-direction: column;
    align-items: center;
    margin-top: 400px;
    /* background-color: #09b59e4b; */
  }

  .hero-left {
    padding: 60px 25px;
    justify-content: center;
  }

  .hero-title {
    font-size: 42px;
  }

  .hero-right {
    min-height: 300px;
    display: none; /* your original behavior */
  }

  /* hero */

  /* .hero-bg-right {
    position: absolute;
    width: 250px;
    padding-bottom: 146px;
    object-fit: cover;
    top: -215px;
  } */

  /* video control (keep visible but soft) */
  .hero-video video {
    opacity: 0.6;
  }

  /* logos */
  .hero-abc-logo img {
    height: 67px;
    width: 140px;
  }

  .bs-hero-logo img {
    height: 120px;
    width: 467px;
  }

  /* gallery */
  .gallery-title .prev {
    margin-right: 15px;
  }
}

/* ================= HERO MOBILE (≤576px) ================= */
@media (max-width: 767px) {
  .hero2-section-mob {
    position: relative;
  }

  .hero2-section-mob img {
    width: 100%;
    display: block;
    padding-top: 50px; /* optional */
  }

  /* Button container */
  .hero2-section-mob .text-center {
    position: absolute;
    bottom: 2%; /* better than 20px for responsiveness */
    left: 50%;
    transform: translateX(-50%);
  }
}
/* Optional button styling */

/* TERMS & CONDITION SECTION  */
.terms-layout {
  padding: 120px 20px 20px 20px;
}
.terms-wrapper {
  display: flex;
  gap: 40px;
}
.terms-toc {
  width: 280px;
  flex-shrink: 0;
}
.terms-content {
  flex: 1;
  min-width: 0;
}
@media (max-width: 991px) {
  .terms-wrapper {
    flex-direction: column;
  }
  .terms-toc {
    width: 100%;
    position: relative;
    top: unset;
  }
  .terms-content {
    width: 100%;
  }
}
.terms-content,
.terms-toc {
  word-wrap: break-word;
  overflow-wrap: break-word;
}
.terms-toc a {
  display: block;
  margin-bottom: 10px;
}

/* PRE EARLY BIRD SECTION  */

.pre-early-bird-section {
  padding-bottom: 5px;
}

/* .pre-early-bird-section img{
  height: 70px;
  width: 100%;
} */

/* TIMELINE SECTION  */

/* =========================
   DEFAULT (DESKTOP)
========================= */
.timeline-grid {
  grid-template-columns: repeat(3, 1fr);
}

/* =========================
   TABLET (<=991px)
========================= */
@media (max-width: 991px) {
  .timeline-grid {
    grid-template-columns: repeat(3, 1fr); /* still 3 */
  }

  .timeline-left {
    padding: 0;
  }

  .timeline-right {
    min-height: 300px;
    height: 300px;
  }

  .timeline-card.highlight {
    grid-column: span 1;
  }
}

/* =========================
   MOBILE (<=767px)
========================= */
@media (max-width: 767px) {
  .timeline-grid {
    grid-template-columns: repeat(2, 1fr); /* ✅ 2 cards */
  }
}

/* =========================
   SMALL MOBILE (<=576px)
========================= */
@media (max-width: 576px) {
  .timeline-section {
    position: relative;
    overflow: hidden;
    padding: 40px 0;
    color: #fff;
    /* background: url("../images/hero-baner-full.png") no-repeat right;   */
    background-size: cover;
  }
  .timeline-header h2 {
    font-size: 26px;
  }

  .timeline-card h4 {
    font-size: 14px;
  }

  .timeline-card.highlight {
    grid-column: span 1;
  }
}

/* SPONSORS SECTION */
@media (max-width: 991px) {
  .logo-item {
    width: 20%; /* 5 per row */
  }
}
@media (max-width: 576px) {
  .logo-item {
    width: 33.33%; /* 3 per row */
  }

  .sponsor-card {
    padding: 15px;
  }

  .logo-item img {
    padding: 10px;
  }
}

/* BIG SHORT CHALLENGE   */

@media (max-width: 991px) {
  .bigShortChallenge1 {
    padding: 80px 0;
    background-position: center;
  }

  .desc-p1 {
    padding-top: 150px;
  }

  .bsc1-content {
    max-width: 100%;
    text-align: center;
  }

  .bsc1-logos {
    justify-content: center;
  }

  .bsc1-quote {
    padding-left: 0;
  }

  .bsc1-quote-icon img {
    position: absolute;
    left: 0px;
    top: -22px;
    height: 30px;
    width: 31px;
    color: rgb(0, 230, 195);
  }

  .bsc1-box {
    padding: 17px;
    margin: 0;
  }

  .bsc1-quote-icon {
    position: static;
    font-size: 40px;
    display: block;
    margin-bottom: 10px;
  }

  .bsc1-quote p {
    font-size: 13px;
  }
}

@media (max-width: 576px) {
  .bsc1-desc {
    font-size: 13px;
  }
  .bigShortChallenge1 {
    overflow: hidden;
    background: url("../images/big-short-challenge-1-mob.webp") no-repeat
      center/cover;
    opacity: 1;
  }
}
/* BIG SHORT CHALLENGE 2  */
@media (max-width: 991px) {
  .bigShortChallenge2 {
    padding: 70px 0;
    background-position: left;
  }
  .bsc2-right-logo {
    text-align: center;
  }
  .bsc2-content {
    margin: auto;
    text-align: left;
  }

  .bsc2-title {
    font-size: 26px;
  }
}

/* WHY PARTICIAPTE SECTION  */
@media (max-width: 992px) {
  .why-bg {
    background-size: cover;
    opacity: 0.3;
  }

  .why-title {
    text-align: center;
  }

  .icon-box {
    left: 50%;
    transform: translateX(-50%);
  }
}

@media (max-width: 576px) {
  .why-participate .icon-box {
    left: 15px;
    transform: none;
  }
  .why-participate .why-title {
    text-align: center;
  }

  /* Everything else left */
  .why-participate .why-content,
  .why-participate .why-card,
  .why-participate .why-footer {
    text-align: left !important;
  }

  /* Lists proper alignment */
  .why-participate .why-card ul {
    padding-left: 18px;
    text-align: left;
  }
}
/* AWARDS SECTION  */
/* Tablet only */
@media (min-width: 768px) and (max-width: 991px) {
  .gallery-title .prev {
    margin-right: 15px;
  }
}

@media (max-width: 991px) {
  .awards-left,
  .awards-right {
    padding: 10px 20px;
    text-align: center;
  }
  .awards-header {
    text-align: center;
  }
  .awards-header h2 {
    font-size: 34px;
  }
  .awards-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }
  .award-text h2 {
    font-size: 36px;
  }
  .award-img {
    width: 60%;
    margin: 0 auto;
  }
}
@media (max-width: 991px) {
  .awards-left,
  .awards-right {
    padding: 10px 20px;
    text-align: center;
  }
  .awards-header {
    text-align: center;
  }
  .awards-header h2 {
    font-size: 34px;
  }
  .awards-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }
  .award-text h2 {
    font-size: 36px;
  }
  .award-img {
    width: 60%;
    margin: 0 auto;
  }
}
@media (max-width: 576px) {
  .awards-footer {
    text-align: center;
  }

  .awards-left img {
    margin-left: 25px;
    height: 385px;
    width: 100%;
    padding-left: 0;
  }

  .award-text {
    margin-top: 0;
    margin-left: 0;
  }

  /* ✅ 2 CARDS IN MOBILE */
  .awards-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }

  .awards-header h2,
  .award-text h2 {
    font-size: 28px;
  }

  .award-card {
    padding: 12px;
  }
}
/* ELIGIBILITY SECTION  */

@media (max-width: 991px) {
  .eligibility-section {
    background-position: center right;
  }
  .eligibility-content {
    max-width: 100%;
    text-align: left;
  }
  .eligibility-title {
    font-size: 34px;
  }
  .eligibility-item p {
    font-size: 16px;
  }
}
@media (max-width: 576px) {
  .eligibility-section {
    background: url(../images/criteria-bg.webp) no-repeat right;
    background-size: contain;
  }
  .eligibility-right-img img {
    height: 100%;
    width: 100%;
    margin: auto;
  }

  .eligibility-title {
    font-size: 26px;
  }
  .eligibility-item {
    margin-bottom: 20px;
  }
  .eligibility-item p {
    font-size: 14px;
  }
}
@media (max-width: 991px) {
  .faq-title {
    font-size: 34px;
    text-align: center;
  }
  .faq-title::after {
    left: 50%;
    transform: translateX(-50%);
  }
}
@media (max-width: 576px) {
  .clapper-board {
    margin-left: 0;
    height: 300px;
    width: 300px;
  }

  .faq-title {
    font-size: 26px;
  }
  .faq-question {
    font-size: 14px;
  }
  .faq-inner {
    font-size: 13px;
  }
}
@media (max-width: 991px) {
  .winners-box {
    background: #00352e;
    padding: 16px 20px;
    text-align: left;
  }
  .winners-section {
    background-position: left center;
  }
  .ribbon-text {
    font-size: 14.3px;
    right: 30px;
  }
  .gold-ribbon img {
    width: 310px;
    height: 40px;
  }
  .winners-content {
    text-align: center;
    padding: 20px;
  }
  .winners-title {
    font-size: 34px;
  }
  .winners-stats {
    justify-content: center;
  }
}

@media (max-width: 991px) {
  .stat-card {
    flex: 1 1 calc(50% - 20px); /* 2 cards */
  }
}

@media (max-width: 576px) {
  .stat-card {
    flex: 1 1 calc(50% - 10px); /* 2 cards */
  }
}
@media (max-width: 576px) {
  .winners-box {
    background: #00c2a849;
    padding: 16px 20px;
    text-align: left;
  }
  .winners-title {
    line-height: 1.5;
  }
  .score-banner {
    text-align: center;
  }

  .winners-section {
    position: relative;
    padding: 0;
    background: url("../images/winner-decided-bg.webp") no-repeat right right;
    background-size: cover;
  }

  /* Overlay */
  .winners-section::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.628); /* 👈 reduce this */
    z-index: 1;
  }

  /* Content above overlay */
  .winners-section > * {
    position: relative;
    z-index: 2;
  }
  .winners-title {
    font-size: 26px;
  }
  .stat-card {
    width: 100%;
  }
  .winners-desc {
    font-size: 14px;
  }
}
/* ================= MOBILE ================= */

/* PARTICIPATE SECTION  */

@media (max-width: 991px) {
  .participate-left {
    padding-right: 0;
    border-right: none;
    margin-bottom: 30px;
  }

  .video-card {
    margin: 20px 0;
  }
}

/* PARTICIPATE MOBILE  */
/* ================= MOBILE (≤576px) ================= */
@media (max-width: 576px) {
  .participate-title {
    font-size: 26px;
  }
  .participate-sub {
    font-size: 14px;
    line-height: 1.5;
  }

  .participate-section p {
    font-size: 14px;
  }
}

/* ================= TABLET (768px – 991px) ================= */
@media (min-width: 768px) and (max-width: 991px) {
  .participate-title {
    font-size: 34px;
  }
  .participate-video video {
    display: block;
  }
}
@media (max-width: 991px) {
  .intro-section {
    text-align: center;
    background-position: center;
  }
  .intro-title {
    font-size: 34px;
  }
  .intro-right {
    text-align: center;
    margin-top: 20px;
  }
  @media (max-width: 768px) {
    .editions-grid {
      grid-template-columns: 1fr;
    }
    .edition-card.wide {
      grid-column: span 1;
    }
  }

  /* GALLERY TBSC SECTION  */
  @media (max-width: 991px) {
    .gallery-title .prev .edi {
      font-size: 30px;
    }

    .intro-section .intro-bg {
      padding: 54px 0;
    }

    .intro-section {
      min-height: 50vh;
    }

    .gallery-section {
      background: url(../images/previous-edition-bg.webp) no-repeat top center;
    }

    .gallery-content {
      display: flex;
      /* justify-content: center; */
      align-items: center;
    }

    .gallery-title {
      display: flex; /* ✅ missing */
      justify-content: center;
      align-items: center;
      text-align: center; /* ✅ important */
    }
  }
  /* mobile  */
  @media (max-width: 767px) {
    .gallery-section {
      background: url(../images/previous-edition-bg-mob.webp) no-repeat top
        center;
      background-size: cover;
    }
    .gallery-content {
      justify-content: center;
    }
  }

  @media (max-width: 767px) {
    .gallery-section-mob {
      display: block;
    }
  }
  /* Tablet (keep 3 cards) */
  @media (max-width: 991px) {
    .editions-grid {
      grid-template-columns: repeat(3, 1fr); /* ✅ force 3 */
    }
  }

  /* Mobile (2 cards) */
  @media (max-width: 576px) {
    .editions-grid {
      grid-template-columns: repeat(2, 1fr); /* ✅ 2 cards */
    }
    .gallery-title .prev {
      font-size: 15px;
      margin-right: 10px;
    }
    .gallery-title .edi {
      font-size: 15px;
      margin-right: 10px;
    }

    .edition-card.wide {
      grid-column: span 2; /* ✅ adjust wide cards */
    }
  }
}
