/* ===== ADHITHYA INNOVATIONS – AWARDS SLIDER (CSS tab) ===== */
@import url('https://fonts.googleapis.com/css2?family=Fraunces:opsz,wght@9..144,500;9..144,600&display=swap');

.aw {
  --aw-navy: #0a1b33;
  --aw-navy-2: #12305a;
  --aw-gold: #d2ab55;
  --aw-gold-soft: rgba(210, 171, 85, .35);
  --aw-ivory: #f7f2e6;
  --aw-dur: 5s; /* time each photo stays on screen */

  position: relative;
  isolation: isolate;
  overflow: hidden;
  box-sizing: border-box;
  max-width: 1240px;
  margin: 0 auto;
  padding: clamp(26px, 5vw, 64px);
  border-radius: 28px;
  color: var(--aw-ivory);
  background: linear-gradient(135deg, var(--aw-navy) 0%, var(--aw-navy-2) 100%);
  box-shadow: 0 30px 70px -30px rgba(10, 27, 51, .7);
}
.aw *, .aw *::before, .aw *::after { box-sizing: border-box; }

.aw__glow {
  position: absolute;
  z-index: -1;
  top: -30%;
  right: -10%;
  width: 70%;
  aspect-ratio: 1;
  background: radial-gradient(circle, rgba(210, 171, 85, .28), transparent 62%);
  pointer-events: none;
}

.aw__inner {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  gap: clamp(28px, 4.5vw, 64px);
  align-items: center;
}

/* ---------- Text ---------- */
.aw__kicker {
  margin: 0 0 14px;
  padding: 6px 14px;
  display: inline-block;
  font-size: .9rem;
  letter-spacing: .02em;
  color: var(--aw-gold);
  border: 1px solid var(--aw-gold-soft);
  border-radius: 999px;
  background: rgba(210, 171, 85, .08);
}
.aw .aw__title {
  margin: 0 0 16px;
  padding: 0;
  font-family: 'Fraunces', Georgia, 'Times New Roman', serif;
  font-weight: 600;
  font-size: clamp(1.9rem, 3.6vw, 3rem);
  line-height: 1.1;
  color: #fff;
}
.aw__lead {
  margin: 0 0 28px;
  padding: 0;
  max-width: 52ch;
  font-size: 1.02rem;
  line-height: 1.65;
  color: rgba(247, 242, 230, .82);
}

.aw__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.aw__item {
  display: grid;
  gap: 4px;
  padding: 14px 18px;
  border-left: 3px solid var(--aw-gold);
  border-radius: 0 12px 12px 0;
  background: linear-gradient(90deg, rgba(255, 255, 255, .09), rgba(255, 255, 255, .02));
  transition: transform .3s ease, background .3s ease;
}
.aw__item:hover { transform: translateX(6px); background: linear-gradient(90deg, rgba(210,171,85,.18), rgba(255,255,255,.03)); }
.aw__name {
  font-family: 'Fraunces', Georgia, serif;
  font-weight: 600;
  font-size: 1.2rem;
  color: #fff;
}
.aw__award { font-size: .98rem; line-height: 1.45; color: var(--aw-gold); }

/* ---------- Slider ---------- */
.aw__slider { position: relative; min-width: 0; }

.aw__slider::before { /* offset gold frame */
  content: "";
  position: absolute;
  inset: 16px -14px -14px 16px;
  border: 2px solid var(--aw-gold-soft);
  border-radius: 20px;
  z-index: 0;
}

.aw__viewport {
  position: relative;
  z-index: 1;
  overflow: hidden;
  aspect-ratio: 3 / 2;
  border-radius: 18px;
  background: #000;
  box-shadow: 0 24px 50px -20px rgba(0, 0, 0, .65);
  touch-action: pan-y;
}
.aw__track {
  display: flex;
  height: 100%;
  transition: transform .85s cubic-bezier(.65, 0, .2, 1);
  will-change: transform;
}
.aw__slide {
  position: relative;
  flex: 0 0 100%;
  height: 100%;
  margin: 0;
  overflow: hidden;
}
.aw__slide::before { /* blurred backdrop so any photo shape fills the frame */
  content: "";
  position: absolute;
  inset: -24px;
  background: var(--img) center / cover no-repeat;
  filter: blur(26px) brightness(.55);
}
.aw__slide img {
  position: relative;
  display: block;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: contain;
}
.aw__slide figcaption {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 44px 20px 16px;
  font-size: .95rem;
  color: #fff;
  background: linear-gradient(to top, rgba(6, 14, 28, .88), transparent);
}

.aw__btn {
  position: absolute;
  top: 50%;
  z-index: 3;
  display: grid;
  place-items: center;
  width: 44px; height: 44px;
  padding: 0;
  margin-top: -22px;
  color: var(--aw-navy);
  background: rgba(247, 242, 230, .92);
  border: 0;
  border-radius: 50%;
  cursor: pointer;
  opacity: 0;
  transition: opacity .25s ease, transform .25s ease, background .25s ease;
}
.aw__btn--prev { left: 14px; }
.aw__btn--next { right: 14px; }
.aw__viewport:hover .aw__btn,
.aw__btn:focus-visible { opacity: 1; }
.aw__btn:hover { background: var(--aw-gold); transform: scale(1.08); }
.aw__btn:focus-visible, .aw__dot:focus-visible { outline: 3px solid #fff; outline-offset: 2px; }

/* dots with progress fill */
.aw__dots {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 30px;
}
.aw__dot {
  position: relative;
  width: 14px; height: 6px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  overflow: hidden;
  cursor: pointer;
  background: rgba(247, 242, 230, .3);
  transition: width .4s ease;
}
.aw__dot.is-active { width: 56px; }
.aw__dot::after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--aw-gold);
  transform: scaleX(0);
  transform-origin: left;
}
.aw__dot.is-active::after { transform: scaleX(1); }
.aw__slider.is-playing .aw__dot.is-active::after {
  transform: scaleX(0);
  animation: awFill var(--aw-dur) linear forwards;
}
.aw__slider.is-paused .aw__dot.is-active::after { animation-play-state: paused; }

@keyframes awFill { to { transform: scaleX(1); } }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .aw__inner { grid-template-columns: 1fr; }
  .aw__slider::before { inset: 12px -8px -8px 12px; }
  .aw__btn { opacity: 1; width: 38px; height: 38px; margin-top: -19px; }
}
@media (max-width: 520px) {
  .aw { border-radius: 18px; }
  .aw__viewport { aspect-ratio: 4 / 3; }
  .aw__slide figcaption { font-size: .85rem; padding: 34px 14px 12px; }
}

@media (prefers-reduced-motion: reduce) {
  .aw__track { transition: none; }
  .aw__item, .aw__btn { transition: none; }
}
