*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: "Noto Sans Devanagari", "Noto Sans", sans-serif;
  color: #000;
  background: #fff;
}

/* ---------- Page background (pattern behind hero + heading) ---------- */
.page {
  position: relative;
  width: 100%;
  min-height: 100vh;
  padding-bottom: 60px;
  /* white → light green (sampled from design): fade between ~3rd and ~5th card, then solid */
  background: linear-gradient(to bottom, #fff 0, #fff 1230px, #eff7e0 1940px, #eff7e0 100%);
  overflow: hidden;
}

/* full-width pattern behind hero + heading, fading into white */
.page::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 650px;
  background:
    linear-gradient(to bottom, rgba(255, 255, 255, 0) 470px, rgba(255, 255, 255, 0.75) 555px, #fff 650px),
    url("https://akm-img-a-in.tosshub.com/sites/aajtak/resources/bharat-agriculture-conference/assests/hero-bg.jpg") center top / cover no-repeat;
  pointer-events: none;
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  z-index: 1;
  padding-top: 22px;
}

.hero__container {
  width: 1270px;
  max-width: calc(100% - 32px);
  margin: 0 auto;
}

.hero__banner {
  background: #fff;
}

.hero__img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1905 / 687;
  object-fit: cover;
}

.hero__caption {
  padding: 6px 20px 8px;
  font-size: 12px;
  font-weight: 400;
  line-height: 18px;
  color: #000;
}

/* ---------- Krishi Veer ---------- */
.veer {
  position: relative;
  z-index: 1;
  padding-top: 18px;
}

.veer__container {
  width: 946px;
  max-width: calc(100% - 32px);
  margin: 0 auto;
}

.veer__title {
  margin-bottom: 14px;
  font-size: 26px;
  font-weight: 700;
  line-height: 36px;
  color: #000;
}

.veer__list {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* ---------- Card ---------- */
.card {
  display: flex;
  min-height: 257px;
  background: #fff;
  border: 1px solid #ececec;
  border-radius: 12px;
  overflow: hidden;
}

.card__media {
  flex: 0 0 193px;
  width: 193px;
  display: block;
}

.card__img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  background: #ece8dc;
  color: transparent; /* hide alt text if image is missing */
  font-size: 0;
}

.card__body {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 18px 20px 42px;
}

.card__name {
  margin-bottom: 8px;
  font-size: 20px;
  font-weight: 700;
  line-height: 30px;
  color: #000;
}

.card__text {
  font-size: 15px;
  font-weight: 400;
  line-height: 23px;
  color: #1a1a1a;
  margin-bottom: 24px;
}

.card__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 176px;
  height: 46px;
  margin-top: auto;
  border: 1px solid #d0021b;
  border-radius: 10px;
  font-family: "Noto Sans", sans-serif;
  font-size: 18px;
  font-weight: 600;
  color: #d0021b;
  text-decoration: none;
  background: #fff;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
}

.card__btn:hover,
.card__btn:focus-visible {
  background: #d0021b;
  color: #fff;
}

/* ---------- Video popup ---------- */
.video-modal {
  position: fixed;
  inset: 0;
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

.video-modal[hidden] {
  display: none;
}

.video-modal__overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.8);
  cursor: pointer;
}

.video-modal__box {
  position: relative;
  width: 100%;
  max-width: 900px;
  animation: modalIn 0.2s ease-out;
}

.video-modal__frame {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000;
  border-radius: 10px;
  overflow: hidden;
}

.video-modal__frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.video-modal__close {
  position: absolute;
  top: -44px;
  right: 0;
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 50%;
  background: #fff;
  color: #000;
  font-size: 26px;
  line-height: 1;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
}

.video-modal__close:hover,
.video-modal__close:focus-visible {
  background: #d0021b;
  color: #fff;
}

body.modal-open {
  overflow: hidden;
}

@keyframes modalIn {
  from { opacity: 0; transform: scale(0.96); }
  to   { opacity: 1; transform: scale(1); }
}

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .page::before {
    height: 520px;
    background:
      linear-gradient(to bottom, rgba(255, 255, 255, 0) 360px, rgba(255, 255, 255, 0.75) 440px, #fff 520px),
      url("https://akm-img-a-in.tosshub.com/sites/aajtak/resources/bharat-agriculture-conference/assests/hero-bg.jpg") center top / cover no-repeat;
  }
}

@media (max-width: 767px) {
  .page::before {
    height: 380px;
    background:
      linear-gradient(to bottom, rgba(255, 255, 255, 0) 190px, rgba(255, 255, 255, 0.75) 290px, #fff 380px),
      url("https://akm-img-a-in.tosshub.com/sites/aajtak/resources/bharat-agriculture-conference/assests/hero-bg.jpg") center top / cover no-repeat;
  }

  /* banner edge to edge */
  .hero {
    padding-top: 0;
  }

  .hero__container {
    width: 100%;
    max-width: 100%;
  }

  /* mobile banner keeps its own natural proportions (no crop) */
  .hero__img {
    aspect-ratio: auto;
  }

  .hero__caption {
    padding: 6px 10px 6px;
    font-size: 12px;
    line-height: 16px;
  }

  /* 76px gap between caption and first card, heading sits inside it */
  .veer {
    padding-top: 24px;
  }

  .veer__container {
    max-width: calc(100% - 34px);
  }

  .veer__title {
    margin-bottom: 22px;
    font-size: 18px;
    line-height: 28px;
  }

  .veer__list {
    gap: 16px;
  }

  .card {
    flex-direction: column;
  }

  .card__media {
    flex: none;
    width: 100%;
  }

  .card__img {
    height: auto;
    aspect-ratio: 326 / 176;
    object-position: center;
  }

  .card__body {
    align-items: stretch;
    padding: 20px 11px 18px;
  }

  .card__name {
    font-size: 20px;
    line-height: 28px;
  }

  .card__text {
    font-size: 16px;
    line-height: 23px;
  }

  .card__text {
    margin-bottom: 18px;
  }

  .card__btn {
    width: 100%;
    max-width: 240px;
    height: 40px;
    margin: auto auto 0;
    font-size: 16px;
  }
}
