body {
  font-family: 'Noto Sans Devanagari', sans-serif;
  background-color: #f1f5f2;
  color: #1a2e22;
  -webkit-font-smoothing: antialiased;
}

@media print {
  body {
    background-color: #ffffff;
  }

  .no-print {
    display: none !important;
  }
}

.modal-enter {
  animation: modalFadeIn 0.25s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.soil-hero {
  position: relative;
  aspect-ratio: 1376 / 768;
  background-color: #eaf5f8;
  background-image: url("../images/mati-parikshan-hero.png");
  background-position: center;
  background-repeat: no-repeat;
  background-size: 100% 100%;
}

.soil-hero-cta {
  position: absolute;
  z-index: 1;
  top: 61%;
  left: 51%;
  width: 23%;
  height: 10%;
  box-sizing: border-box;
  border: 1px solid #c6e891;
  padding: 0 0.65rem;
  background: linear-gradient(110deg, #247922, #358d24);
  box-shadow: 0 5px 14px rgb(29 91 22 / 24%);
  font-size: clamp(0.55rem, 1.15vw, 0.9rem);
  line-height: 1.15;
}

.soil-hero-cta-short {
  display: none;
}

.soil-hero-cta:hover {
  background: linear-gradient(110deg, #1b641a, #28731b);
}

.youtube-slider-button {
  display: inline-flex;
  width: 2.25rem;
  height: 2.25rem;
  align-items: center;
  justify-content: center;
  border: 1px solid #fecaca;
  border-radius: 9999px;
  background: #fff;
  color: #b91c1c;
  transition: background-color 150ms ease, color 150ms ease;
}

.youtube-slider-button:hover {
  background: #dc2626;
  color: #fff;
}

.youtube-slider-button:focus-visible {
  outline: 2px solid #047857;
  outline-offset: 2px;
}

.youtube-video-slider-desktop {
  display: none;
}

@media (min-width: 1024px) {
  .youtube-video-slider-mobile {
    display: none;
  }

  .youtube-video-slider-desktop {
    display: block;
  }
}

.slogan-strip {
  background: linear-gradient(110deg, #064e3b, #047857 38%, #166534 72%, #064e3b);
  background-size: 220% 100%;
  color: #fef3c7;
  box-shadow: inset 0 1px 0 rgb(255 255 255 / 16%), inset 0 -1px 0 rgb(4 78 59 / 45%);
  animation: sloganBackground 12s ease-in-out infinite alternate;
}

.slogan-strip-shine {
  position: absolute;
  inset: -50% auto -50% -35%;
  width: 22%;
  background: linear-gradient(90deg, transparent, rgb(255 255 255 / 14%), transparent);
  transform: skewX(-20deg);
  animation: sloganShine 7s ease-in-out infinite;
  pointer-events: none;
}

.slogan-marquee {
  overflow: hidden;
  mask-image: linear-gradient(to right, transparent, #000 3%, #000 97%, transparent);
}

.slogan-track,
.slogan-items {
  display: flex;
  width: max-content;
}

.slogan-track {
  animation: sloganMarquee var(--slogan-duration, 30s) linear infinite;
  will-change: transform;
}

.slogan-items {
  flex: 0 0 auto;
  align-items: center;
  gap: 1.5rem;
  padding-right: 1.5rem;
}

.slogan-marquee-item {
  flex: 0 0 auto;
  white-space: nowrap;
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: 0.025em;
}

.slogan-marquee-separator {
  flex: 0 0 auto;
  color: #fbbf24;
  font-size: 1rem;
}

body.site-editing [data-site-text-key] {
  outline: 1px dashed #d97706;
  outline-offset: 2px;
  cursor: text;
}

body.site-editing [data-site-text-key]:focus {
  outline: 2px solid #047857;
  background-color: #ecfdf5;
}

@keyframes modalFadeIn {
  from {
    opacity: 0;
    transform: scale(0.96) translateY(8px);
  }

  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

@keyframes sloganBackground {
  from {
    background-position: 0% 50%;
  }

  to {
    background-position: 100% 50%;
  }
}

@keyframes sloganShine {
  0%, 55% {
    left: -35%;
  }

  100% {
    left: 115%;
  }
}

@keyframes sloganMarquee {
  from {
    transform: translateX(0);
  }

  to {
    transform: translateX(-50%);
  }
}

@media (min-width: 640px) {
  .slogan-marquee-item {
    font-size: 1.125rem;
  }
}

@media (max-width: 767px) {
  .soil-hero-cta {
    top: 61%;
    left: 47%;
    width: 47%;
    height: 17%;
    min-height: 30px;
    padding: 0 0.4rem;
    font-size: clamp(0.62rem, 3vw, 0.76rem);
  }

  .soil-hero-cta-full {
    display: none;
  }

  .soil-hero-cta-short {
    display: inline;
  }
}

@media (prefers-reduced-motion: reduce) {
  .slogan-strip,
  .slogan-strip-shine,
  .slogan-track {
    animation: none;
  }
}