/* Awards & Recognitions page (tpl/awards-gallery.php) — scoped to .aw-page */

.aw-page {
  --aw-navy: #00376F;
  --aw-navy-deep: #0B2545;
  --aw-gold: #C99A2E;
  --aw-gold-soft: #F6ECD4;
  --aw-cream: #FBF8F1;
  --aw-ink: #16213A;
  --aw-muted: #5B6472;
  --aw-line: #E7E1D4;

  font-family: 'Mukta', system-ui, sans-serif;
  color: var(--aw-ink);
  background: var(--aw-cream);
  text-align: left;
  line-height: 1.5;
}
.aw-page *, .aw-page *::before, .aw-page *::after { box-sizing: border-box; }

.aw-page .aw-wrap {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 32px;
}

/* ---------- Header ---------- */
.aw-page .aw-hero {
  position: relative;
  overflow: hidden;
  padding: 64px 0 56px;
  background:
    radial-gradient(circle at 88% 12%, rgba(201,154,46,.22) 0, transparent 38%),
    radial-gradient(circle at 8% 90%, rgba(255,255,255,.07) 0, transparent 40%),
    linear-gradient(135deg, var(--aw-navy-deep) 0%, var(--aw-navy) 100%);
  color: #fff;
}
.aw-page .aw-eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 13px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
  color: #F3D48B;
}
.aw-page .aw-eyebrow::before { content: ""; width: 28px; height: 2px; background: var(--aw-gold); border-radius: 2px; }
.aw-page .aw-title {
  margin: 14px 0 12px;
  font-family: 'Lora', Georgia, serif;
  font-weight: 700;
  font-size: clamp(30px, 4.2vw, 48px);
  line-height: 1.12;
  letter-spacing: -0.01em;
  color: #fff;
}
.aw-page .aw-lead {
  margin: 0;
  max-width: 620px;
  font-size: clamp(15.5px, 1.4vw, 18px);
  line-height: 1.65;
  color: rgba(255,255,255,.8);
}

/* ---------- Cards ---------- */
.aw-page .aw-list { padding: 56px 0 72px; }
.aw-page .aw-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 28px;
}
.aw-page .aw-card {
  position: relative;
  display: flex; flex-direction: column;
  background: #fff;
  border: 1px solid var(--aw-line);
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 1px 2px rgba(16,24,40,.04), 0 8px 24px -16px rgba(11,37,69,.25);
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.aw-page .aw-card:hover,
.aw-page .aw-card:focus-within {
  transform: translateY(-6px);
  border-color: rgba(201,154,46,.55);
  box-shadow: 0 2px 4px rgba(16,24,40,.04), 0 22px 40px -20px rgba(11,37,69,.4);
}

/* Certificate "mount": shows the whole certificate (portrait or landscape)
   without cropping any of its text */
.aw-page .aw-media {
  position: static; /* so the overlay below stretches over the whole card */
  display: flex; align-items: center; justify-content: center;
  aspect-ratio: 4 / 3;
  padding: 18px;
  background:
    radial-gradient(circle at 50% 40%, #fff 0, transparent 70%),
    linear-gradient(180deg, #F7F3EA 0%, #EFE8DA 100%);
  border-bottom: 1px solid var(--aw-line);
  cursor: zoom-in;
}
/* Whole card is clickable: the photo link's overlay covers the card */
.aw-page .aw-media::after { content: ""; position: absolute; inset: 0; z-index: 1; border-radius: inherit; }
.aw-page .aw-media img {
  display: block;
  max-width: 100%; max-height: 100%;
  width: auto; height: auto;
  object-fit: contain;
  border-radius: 4px;
  box-shadow: 0 10px 22px -12px rgba(11,37,69,.55), 0 2px 6px rgba(11,37,69,.12);
  transition: transform .35s ease;
}
.aw-page .aw-card:hover .aw-media img { transform: scale(1.03); }
.aw-page .aw-media:focus-visible { outline: none; }
.aw-page .aw-media:focus-visible::after { box-shadow: inset 0 0 0 3px var(--aw-gold); }

.aw-page .aw-zoom {
  position: absolute; top: 12px; right: 12px; z-index: 2;
  display: inline-flex; align-items: center; justify-content: center;
  width: 38px; height: 38px; border-radius: 50%;
  background: rgba(11,37,69,.85); color: #fff; font-size: 15px;
  opacity: 0; transform: scale(.85);
  transition: opacity .2s ease, transform .2s ease;
}
.aw-page .aw-card:hover .aw-zoom,
.aw-page .aw-media:focus-visible .aw-zoom { opacity: 1; transform: scale(1); }

.aw-page .aw-body {
  display: flex; flex-direction: column; gap: 10px;
  flex: 1;
  padding: 18px 20px 20px;
}
.aw-page .aw-card-title {
  margin: 0;
  font-family: 'Mukta', system-ui, sans-serif;
  font-size: 17px; font-weight: 700; line-height: 1.4;
  color: var(--aw-ink);
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}

.aw-page .aw-card { cursor: zoom-in; }

.aw-page .aw-empty { text-align: center; color: var(--aw-muted); padding: 40px 0; }

/* ---------- Laptop (992–1199) ---------- */
@media (max-width: 1199.98px) {
  .aw-page .aw-grid { gap: 24px; }
}

/* ---------- Tablet (576–991): 2 columns ---------- */
@media (max-width: 991.98px) {
  .aw-page .aw-wrap { padding: 0 24px; }
  .aw-page .aw-hero { padding: 48px 0 44px; }
  .aw-page .aw-list { padding: 40px 0 56px; }
  .aw-page .aw-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
}

/* ---------- Mobile (<576): 1 column ---------- */
@media (max-width: 575.98px) {
  .aw-page .aw-wrap { padding: 0 16px; }
  .aw-page .aw-hero { padding: 36px 0 32px; }
  .aw-page .aw-list { padding: 28px 0 44px; }
  .aw-page .aw-grid { grid-template-columns: 1fr; gap: 18px; }
  .aw-page .aw-media { padding: 14px; }
  .aw-page .aw-body { padding: 16px 16px 18px; }
  .aw-page .aw-card-title { font-size: 16px; }
  .aw-page .aw-zoom { opacity: 1; transform: none; width: 34px; height: 34px; }
}

@media (prefers-reduced-motion: reduce) {
  .aw-page .aw-card, .aw-page .aw-media img, .aw-page .aw-zoom { transition: none; }
  .aw-page .aw-card:hover, .aw-page .aw-card:focus-within { transform: none; }
  .aw-page .aw-card:hover .aw-media img { transform: none; }
}

/* Touch screens (phones, tablets) have no hover, so the magnifier that
   signals "tap to enlarge" would never appear — show it always */
@media (hover: none) {
  .aw-page .aw-zoom { opacity: 1; transform: none; }
}
