/* ==========================================================================
   Al Muna International School - Results Portal
   Minimalist, Responsive, Accessible Design System
   ========================================================================== */

:root {
  /* Color Palette */
  --bg-page: #f6f8fc;
  --bg-card: rgba(255, 255, 255, 0.94);
  --bg-card-inactive: rgba(248, 250, 252, 0.92);
  
  /* Text */
  --text-black: #000000;
  --text-navy: #162033;
  --text-slate: #475569;
  --text-muted: #64748b;
  --text-light: #94a3b8;

  /* Brand Violet */
  --violet-primary: #6553d9;
  --violet-hover: #5340ca;
  --violet-light: #eeecfc;
  --violet-subtle: #f7f6fe;
  --violet-focus: #695de3;

  /* Borders & Shadows */
  --border-light: #e8ecf4;
  --border-card: #e2e8f0;
  --shadow-subtle: 0 1px 3px rgba(15, 23, 42, 0.04);
  --shadow-card: 0 2px 6px -1px rgba(22, 32, 51, 0.06), 0 1px 4px -1px rgba(22, 32, 51, 0.04);
  --shadow-hover: 0 10px 24px -4px rgba(101, 83, 217, 0.15), 0 4px 8px -2px rgba(22, 32, 51, 0.05);

  /* Official Houses */
  --house-emerald: #10b981;
  --house-ruby: #ef4444;
  --house-sapphire: #3b82f6;
  --house-topaz: #f59e0b;

  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-serif: Georgia, "Times New Roman", Times, serif;
}

/* Reset & Base */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html, body {
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
}

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  font-family: var(--font-sans);
  background-color: var(--bg-page);
  color: var(--text-navy);
  line-height: 1.5;
  -webkit-text-size-adjust: 100%;
  -webkit-font-smoothing: antialiased;
}

/* Keyboard Focus */
button:focus-visible,
a:focus-visible,
[tabindex="0"]:focus-visible {
  outline: 3px solid var(--violet-focus);
  outline-offset: 3px;
  border-radius: 12px;
}

.skip-link {
  position: absolute;
  top: -100px;
  left: 20px;
  background: var(--violet-primary);
  color: #ffffff;
  padding: 10px 18px;
  border-radius: 8px;
  z-index: 1000;
  font-weight: 600;
  text-decoration: none;
  transition: top 0.2s ease;
}

.skip-link:focus {
  top: 15px;
}

/* Background School Logo Watermark */
.site-watermark {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: min(560px, 80vw);
  height: min(560px, 80vw);
  background-image: url("assets/images/almuna-logo.png");
  background-repeat: no-repeat;
  background-position: center center;
  background-size: contain;
  opacity: 0.07;
  pointer-events: none;
  z-index: 0;
  user-select: none;
}

/* Layout Container */
.app-container {
  max-width: 920px;
  margin: 0 auto;
  padding: 28px 20px 48px;
  width: 100%;
  flex: 1;
  display: flex;
  flex-direction: column;
  position: relative;
  z-index: 1;
}

/* ==========================================================================
   Header Component (Minimalist)
   ========================================================================== */
.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 20px;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid var(--border-light);
  border-radius: 16px;
  box-shadow: var(--shadow-subtle);
  margin-bottom: 28px;
}

.brand-section {
  display: flex;
  align-items: center;
  gap: 15px;
  text-decoration: none;
  color: inherit;
  min-width: 0;
}

.brand-logo-wrapper {
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.brand-logo {
  height: 64px;
  width: auto;
  max-width: 76px;
  object-fit: contain;
  transition: transform 0.2s ease;
}

.brand-section:hover .brand-logo {
  transform: scale(1.03);
}

.brand-text {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
}

.brand-title-top {
  font-family: var(--font-sans);
  font-size: 23px;
  font-weight: 900;
  letter-spacing: 1.5px;
  color: var(--text-black);
  line-height: 1.05;
  text-transform: uppercase;
}

.brand-title-bottom {
  font-family: var(--font-serif);
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 1.8px;
  color: var(--text-black);
  line-height: 1.25;
  margin-top: 3px;
  text-transform: uppercase;
  white-space: nowrap;
}

.header-badges {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.academic-pill {
  display: inline-flex;
  align-items: center;
  padding: 6px 12px;
  background: var(--violet-subtle);
  color: var(--violet-primary);
  border: 1px solid var(--violet-light);
  border-radius: 9999px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.3px;
}

/* ==========================================================================
   Main Content Views
   ========================================================================== */
main {
  flex: 1;
}

.view {
  display: none;
  animation: fadeIn 0.2s ease-out forwards;
}

.view.active {
  display: block;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(4px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* View Headings */
.view-header {
  margin-bottom: 22px;
}

.back-link-wrapper {
  margin-bottom: 14px;
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 14px;
  background: #ffffff;
  border: 1px solid var(--border-card);
  border-radius: 10px;
  color: var(--text-navy);
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  box-shadow: var(--shadow-subtle);
  transition: all 0.2s ease;
  cursor: pointer;
}

.back-link:hover {
  background: var(--violet-subtle);
  border-color: var(--violet-light);
  color: var(--violet-primary);
  transform: translateX(-2px);
}

.back-link svg {
  width: 15px;
  height: 15px;
}

.portal-heading-group {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.portal-heading {
  font-size: 28px;
  font-weight: 800;
  letter-spacing: -0.4px;
  color: var(--text-navy);
  line-height: 1.2;
}

.portal-heading .section-name-accent {
  color: var(--violet-primary);
}

.portal-subheading {
  font-size: 14.5px;
  color: var(--text-slate);
  line-height: 1.45;
}

/* ==========================================================================
   Minimalist Card Grid & Anatomy
   ========================================================================== */
.card-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-top: 22px;
}

.card-grid.home-card-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

@media (max-width: 860px) and (min-width: 681px) {
  .card-grid.home-card-grid {
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  }
}

/* Minimalist Portal Card */
.portal-card {
  position: relative;
  background: var(--bg-card);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid var(--border-card);
  border-radius: 16px;
  padding: 20px 22px;
  display: flex;
  align-items: center;
  gap: 16px;
  box-shadow: var(--shadow-card);
  text-decoration: none;
  color: inherit;
  min-height: 90px;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  overflow: hidden;
}

/* Active Interactive Card */
.portal-card.active-card {
  cursor: pointer;
}

.portal-card.active-card:hover {
  transform: translateY(-2px);
  border-color: #c7d2fe;
  box-shadow: var(--shadow-hover);
}

.portal-card.active-card:hover .card-action-indicator svg {
  transform: translateX(3px);
}

.portal-card.active-card:hover .action-btn-pill {
  background: var(--violet-hover);
}

/* Inactive Card */
.portal-card.inactive-card {
  background: var(--bg-card-inactive);
  border-color: #e8ecf4;
  box-shadow: var(--shadow-subtle);
  cursor: not-allowed;
  opacity: 0.85;
}

/* Card Icon Box */
.card-icon-box {
  width: 48px;
  height: 48px;
  border-radius: 13px;
  background: var(--violet-light);
  color: var(--violet-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: all 0.2s ease;
}

.portal-card.inactive-card .card-icon-box {
  background: #f1f5f9;
  color: #94a3b8;
}

.card-icon-box svg {
  width: 25px;
  height: 25px;
}

/* Card Content Area */
.card-info {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.card-title-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.card-title {
  font-size: 20px;
  font-weight: 800;
  color: var(--text-navy);
  letter-spacing: -0.3px;
  line-height: 1.2;
}

.home-section-card .card-title {
  font-size: 17.5px;
  letter-spacing: -0.2px;
}

.card-tag {
  font-size: 10.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  padding: 2px 8px;
  border-radius: 9999px;
  background: #f1f5f9;
  color: var(--text-slate);
}

.card-tag.active-tag {
  background: #e6f5ed;
  color: #1d734e;
}

.card-tag.pending-tag {
  background: #f1f5f9;
  color: #94a3b8;
}

.card-desc {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.35;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Card Action Indicator / Pill */
.card-action-indicator {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.card-action-indicator svg {
  width: 20px;
  height: 20px;
  color: var(--violet-primary);
  transition: transform 0.2s ease;
}

.action-btn-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 7px 13px;
  background: var(--violet-primary);
  color: #ffffff;
  border-radius: 9px;
  font-size: 13px;
  font-weight: 700;
  transition: background-color 0.2s ease;
}

.action-btn-pill svg {
  width: 14px;
  height: 14px;
  color: #ffffff;
}

.status-unavailable-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11.5px;
  font-weight: 600;
  color: #8993a4;
  background: #edf1f7;
  padding: 5px 10px;
  border-radius: 8px;
}

.status-unavailable-badge svg {
  width: 13px;
  height: 13px;
  color: #94a3b8;
}

/* ==========================================================================
   Prep Subsections (KG Section & Grade 1 & 2 Section)
   ========================================================================== */
.prep-subsections-container {
  display: flex;
  flex-direction: column;
  gap: 24px;
  margin-top: 14px;
}

.filter-pills-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 2px;
  flex-wrap: wrap;
}

.filter-pill {
  padding: 6px 14px;
  border-radius: 9999px;
  font-size: 12.5px;
  font-weight: 600;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid var(--border-card);
  color: var(--text-slate);
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
}

.filter-pill:hover {
  border-color: var(--violet-light);
  color: var(--violet-primary);
  background: var(--violet-subtle);
}

.filter-pill.active {
  background: var(--violet-primary);
  border-color: var(--violet-primary);
  color: #ffffff;
  box-shadow: 0 2px 8px rgba(101, 83, 217, 0.25);
}

.prep-subsection-block {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 20px 22px;
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid var(--border-light);
  border-radius: 20px;
  box-shadow: var(--shadow-subtle);
}

.subsection-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border-light);
  flex-wrap: wrap;
}

.subsection-title-row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.subsection-title {
  font-size: 17px;
  font-weight: 800;
  color: var(--text-navy);
  letter-spacing: -0.2px;
  margin: 0;
  text-transform: uppercase;
}

.subsection-badge {
  display: inline-flex;
  align-items: center;
  padding: 3px 10px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 700;
  background: var(--violet-light);
  color: var(--violet-primary);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.subsection-subtitle {
  font-size: 13px;
  color: var(--text-slate);
  margin: 0;
}

/* --------------------------------------------------------------------------
   House Color Theming for Prep Subsections (Topaz Yellow & Sapphire Blue)
   -------------------------------------------------------------------------- */
/* KG Section: Light Topaz Yellow House Color */
.prep-subsection-block.prep-sub-kg {
  background: linear-gradient(135deg, rgba(254, 252, 232, 0.94) 0%, rgba(254, 249, 195, 0.55) 100%);
  border: 1.5px solid #fde047;
  box-shadow: 0 4px 20px -2px rgba(234, 179, 8, 0.14);
}

.prep-sub-kg .subsection-header {
  border-bottom: 1px solid rgba(202, 138, 4, 0.22);
}

.prep-sub-kg .subsection-title {
  color: #713f12;
}

.prep-sub-kg .subsection-badge {
  background: #fef08a;
  color: #854d0e;
  border: 1px solid #eab308;
}

.prep-sub-kg .subsection-subtitle {
  color: #854d0e;
  font-weight: 500;
}

.prep-sub-kg .portal-card {
  border-color: rgba(234, 179, 8, 0.25);
  background: rgba(255, 255, 255, 0.92);
}

.prep-sub-kg .portal-card:hover {
  border-color: #eab308;
  box-shadow: 0 8px 20px -4px rgba(234, 179, 8, 0.22);
}

.prep-sub-kg .card-icon-box {
  background: #fef9c3;
  color: #ca8a04;
}

.filter-pill[data-filter="kg"].active {
  background: #eab308;
  border-color: #ca8a04;
  color: #ffffff;
  box-shadow: 0 2px 8px rgba(234, 179, 8, 0.35);
}

/* Grade 1 & 2 Section: Light Sapphire Blue House Color */
.prep-subsection-block.prep-sub-grade1_2 {
  background: linear-gradient(135deg, rgba(240, 249, 255, 0.94) 0%, rgba(224, 242, 254, 0.55) 100%);
  border: 1.5px solid #7dd3fc;
  box-shadow: 0 4px 20px -2px rgba(2, 132, 199, 0.14);
}

.prep-sub-grade1_2 .subsection-header {
  border-bottom: 1px solid rgba(2, 132, 199, 0.22);
}

.prep-sub-grade1_2 .subsection-title {
  color: #0c4a6e;
}

.prep-sub-grade1_2 .subsection-badge {
  background: #bae6fd;
  color: #0369a1;
  border: 1px solid #38bdf8;
}

.prep-sub-grade1_2 .subsection-subtitle {
  color: #0369a1;
  font-weight: 500;
}

.prep-sub-grade1_2 .portal-card {
  border-color: rgba(2, 132, 199, 0.25);
  background: rgba(255, 255, 255, 0.92);
}

.prep-sub-grade1_2 .portal-card:hover {
  border-color: #0284c7;
  box-shadow: 0 8px 20px -4px rgba(2, 132, 199, 0.22);
}

.prep-sub-grade1_2 .card-icon-box {
  background: #e0f2fe;
  color: #0284c7;
}

.filter-pill[data-filter="grade1_2"].active {
  background: #0284c7;
  border-color: #0369a1;
  color: #ffffff;
  box-shadow: 0 2px 8px rgba(2, 132, 199, 0.35);
}

/* ==========================================================================
   Competition Highlights Gallery Section
   ========================================================================== */
.gallery-section {
  margin-top: 36px;
  margin-bottom: 24px;
  width: 100%;
}

.gallery-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 14px;
}

.gallery-title {
  font-size: 20px;
  font-weight: 800;
  color: var(--text-navy);
  letter-spacing: -0.3px;
}

.gallery-subtitle {
  font-size: 13px;
  color: var(--text-muted);
  font-weight: 500;
}

.gallery-strip-container {
  position: relative;
  width: 100%;
  overflow: hidden;
  border-radius: 16px;
  user-select: none;
  -webkit-overflow-scrolling: touch;
}

.gallery-strip-track {
  display: flex;
  gap: 16px;
  will-change: transform;
  align-items: stretch;
}

.gallery-item {
  flex: 0 0 calc((100% - 32px) / 3);
  border-radius: 14px;
  overflow: hidden;
  position: relative;
  background: #ffffff;
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-card);
  cursor: pointer;
  aspect-ratio: 16 / 9.5;
  transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.2s ease, border-color 0.2s ease;
  padding: 0;
  outline: none;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  pointer-events: none;
  transition: transform 0.3s ease;
}

.gallery-item:hover {
  transform: translateY(-3px);
  border-color: #c7d2fe;
  box-shadow: 0 10px 22px -4px rgba(101, 83, 217, 0.16);
}

.gallery-item:hover img {
  transform: scale(1.03);
}

.gallery-item:focus-visible {
  outline: 3px solid var(--violet-focus);
  outline-offset: 3px;
}

.gallery-item-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(15, 23, 42, 0.6) 0%, transparent 60%);
  opacity: 0;
  transition: opacity 0.2s ease;
  display: flex;
  align-items: flex-end;
  padding: 12px 14px;
  color: #ffffff;
}

.gallery-item:hover .gallery-item-overlay {
  opacity: 1;
}

.gallery-item-title {
  font-size: 12.5px;
  font-weight: 700;
  line-height: 1.3;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.6);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ==========================================================================
   Full Screen Photo Modal Viewer
   ========================================================================== */
.photo-viewer-modal {
  position: fixed;
  inset: 0;
  z-index: 99999;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(11, 17, 32, 0.96);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.photo-viewer-modal[hidden] {
  display: none !important;
}

.photo-viewer-modal.active {
  display: flex;
}

.viewer-backdrop {
  position: absolute;
  inset: 0;
  cursor: pointer;
}

.viewer-container {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 1100px;
  height: 100%;
  max-height: 100vh;
  display: flex;
  flex-direction: column;
  padding: 20px 24px;
  box-sizing: border-box;
  min-width: 0;
  overflow: hidden;
}

.viewer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 14px;
  flex-shrink: 0;
  width: 100%;
  min-width: 0;
  box-sizing: border-box;
}

.viewer-back-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 18px;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: #ffffff;
  border-radius: 11px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
  backdrop-filter: blur(4px);
  flex-shrink: 0;
}

.viewer-back-btn:hover {
  background: var(--violet-primary);
  border-color: var(--violet-primary);
  transform: translateX(-2px);
}

.viewer-back-btn svg {
  width: 16px;
  height: 16px;
}

.viewer-photo-title {
  color: #ffffff;
  font-size: 15px;
  font-weight: 700;
  text-align: center;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 55%;
  flex: 1;
}

.viewer-close-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #ffffff;
  cursor: pointer;
  transition: all 0.2s ease;
  flex-shrink: 0;
}

.viewer-close-btn:hover {
  background: rgba(239, 68, 68, 0.85);
  border-color: rgba(239, 68, 68, 0.85);
}

.viewer-close-btn svg {
  width: 20px;
  height: 20px;
}

.viewer-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 0;
  min-width: 0;
  width: 100%;
  gap: 14px;
  padding: 10px 0;
  box-sizing: border-box;
}

.viewer-image-wrapper {
  position: relative;
  max-width: 100%;
  max-height: calc(100vh - 160px);
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
  width: 100%;
}

.viewer-image {
  max-width: 100%;
  max-height: calc(100vh - 160px);
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 12px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6);
}

.viewer-caption {
  color: #e2e8f0;
  font-size: 14px;
  text-align: center;
  max-width: 720px;
  line-height: 1.45;
  margin: 0;
}

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer {
  margin-top: auto;
  padding: 28px 20px 20px;
  text-align: center;
  font-size: 12px;
  color: var(--text-light);
}

.footer-content {
  display: flex;
  flex-direction: column;
  gap: 4px;
  align-items: center;
}

.footer-school {
  font-size: 12px;
  font-weight: 700;
  color: var(--text-slate);
  letter-spacing: 0.4px;
}

.footer-copyright {
  font-size: 11.5px;
}

/* ==========================================================================
   Responsive Minimalist Mobile Breakpoints
   ========================================================================== */
@media (max-width: 680px) {
  .app-container {
    padding: 12px 16px 32px;
  }

  /* Unboxed, flush, minimalist header on mobile */
  .site-header {
    background: transparent;
    border: none;
    box-shadow: none;
    padding: 6px 2px 14px;
    margin-bottom: 12px;
  }

  .brand-logo-wrapper {
    height: 52px;
  }

  .brand-logo {
    height: 52px;
    max-width: 60px;
  }

  .brand-title-top {
    font-size: 20px;
    letter-spacing: 1.2px;
  }

  .brand-title-bottom {
    font-size: 10px;
    letter-spacing: 1.3px;
  }

  .academic-pill {
    padding: 4px 10px;
    font-size: 11px;
  }

  .view-header {
    margin-bottom: 16px;
  }

  .portal-heading {
    font-size: 24px;
  }

  .portal-subheading {
    font-size: 13.5px;
  }

  /* Compact touch cards stacked on mobile */
  .card-grid,
  .card-grid.home-card-grid {
    grid-template-columns: 1fr;
    gap: 10px;
    margin-top: 14px;
  }

  .portal-card {
    padding: 16px 18px;
    min-height: 76px;
    border-radius: 14px;
    gap: 14px;
  }

  .card-icon-box {
    width: 44px;
    height: 44px;
    border-radius: 12px;
  }

  .card-icon-box svg {
    width: 22px;
    height: 22px;
  }

  .card-title {
    font-size: 18px;
  }

  .card-desc {
    font-size: 12px;
  }

  .action-btn-pill {
    padding: 6px 11px;
    font-size: 12px;
  }

  .status-unavailable-badge {
    padding: 4px 8px;
    font-size: 11px;
  }

  /* Gallery Mobile (1 photo at a time) */
  .gallery-section {
    margin-top: 22px;
  }

  .gallery-title {
    font-size: 18px;
  }

  .gallery-subtitle {
    font-size: 12px;
  }

  .gallery-strip-track {
    gap: 12px;
  }

  .gallery-item {
    flex: 0 0 100%;
    aspect-ratio: 16 / 9.5;
  }

  .viewer-container {
    padding: 14px 12px;
  }

  .viewer-back-btn {
    padding: 7px 12px;
    font-size: 13px;
  }

  .viewer-photo-title {
    display: none;
  }

  .viewer-close-btn {
    width: 36px;
    height: 36px;
  }

  .viewer-caption {
    font-size: 12.5px;
  }
}

/* Reduced Motion Preference */
@media (prefers-reduced-motion: reduce) {
  .gallery-strip-container {
    overflow-x: auto;
    scroll-snap-type: x mandatory;
  }

  .gallery-item {
    scroll-snap-align: start;
  }
}
