/* SDM Ujire Campus - Design System & App Styles */
@import url('https://fonts.googleapis.com/css2?family=DM+Sans:ital,opsz,wght@0,9..40,400..700;1,9..40,400..700&family=Newsreader:ital,opsz,wght@0,6..72,400..700;1,6..72,400..700&family=Noto+Sans+Kannada:wght@400;500;600;700&family=Noto+Serif+Kannada:wght@400;600;700&display=swap');

:root {
  /* Design Tokens */
  --bg: #FBF8F2;
  --card: #FFFEFB;
  --ink: #1E2A3C;
  --muted: #5C6677;
  --line: #EDE5D6;
  --gold: #C49A4F;
  --gold-dark: #8A5F1C;
  --gold-light: #F3E6C8;
  --sand: #EAE5D9;
  --peach: #FDE6C4;
  --navy: #1B2638;

  /* Category Palette */
  --cat-navy: #2A3F66;
  --cat-slate-blue: #3F6A8E;
  --cat-plum: #6E4A6B;
  --cat-olive: #6B7A3A;
  --cat-terracotta: #A8553A;
  --cat-maroon: #8C3B2F;
  --cat-teal: #2F6F73;
  --cat-gold: #B07D2E;

  /* Typography */
  --font-serif: 'Newsreader', 'Noto Serif Kannada', Georgia, serif;
  --font-sans: 'DM Sans', 'Noto Sans Kannada', system-ui, -apple-system, sans-serif;
  --font-kannada: 'Noto Sans Kannada', 'DM Sans', sans-serif;

  /* Layout & Elevations */
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 26px; /* Card border radius requirement */
  --radius-full: 9999px;
  --shadow-sm: 0 2px 8px rgba(30, 42, 60, 0.05);
  --shadow-md: 0 8px 24px rgba(30, 42, 60, 0.08);
  --shadow-lg: 0 16px 36px rgba(30, 42, 60, 0.12);
  --shadow-pill: 0 10px 30px rgba(27, 38, 56, 0.14);

  --tap-target: 44px;
}

/* Base Reset & Foundations */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}

html {
  font-family: var(--font-sans);
  background-color: var(--bg);
  color: var(--ink);
  font-size: 16px;
  line-height: 1.55;
  scroll-behavior: smooth;
  height: 100%;
}

html[lang="kn"] {
  font-family: var(--font-kannada);
  line-height: 1.7; /* Generous line height for Kannada */
}

body {
  background-color: var(--bg);
  color: var(--ink);
  min-height: 100%;
  display: flex;
  flex-direction: column;
  padding-bottom: calc(var(--tap-target) + 40px + env(safe-area-inset-bottom, 0px));
}

@media (min-width: 1100px) {
  body {
    padding-bottom: 0;
  }
}

a {
  color: inherit;
  text-decoration: none;
}

img, video {
  max-width: 100%;
  height: auto;
  display: block;
}

button, input, select, textarea {
  font: inherit;
  color: inherit;
}

/* Accessible Skip Link */
.skip-link {
  position: absolute;
  top: -100px;
  left: 16px;
  background: var(--navy);
  color: #fff;
  padding: 12px 20px;
  border-radius: var(--radius-full);
  z-index: 10000;
  font-weight: 600;
  transition: top 0.2s ease;
}
.skip-link:focus {
  top: 16px;
  outline: 3px solid var(--gold);
}

/* Typography Classes */
h1, h2, h3, h4, .font-serif {
  font-family: var(--font-serif);
  font-weight: 600;
  line-height: 1.25;
  color: var(--navy);
}

.accent-gold, .gold-em {
  color: var(--gold-dark);
  font-style: italic;
}

.label-caps {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--gold-dark);
}

/* Press Feedback on Interactive Elements */
a:active, button:active, .tappable:active {
  transform: scale(0.97);
  transition: transform 0.1s ease;
}

/* Focus Visible Styling */
:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 3px;
}

/* Container */
.container {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 16px;
}

@media (min-width: 768px) {
  .container {
    padding: 0 24px;
  }
}

/* Floating Pill Header */
.site-header {
  position: sticky;
  top: max(12px, env(safe-area-inset-top, 12px));
  z-index: 1000;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 16px;
  pointer-events: none;
}

.header-pill {
  pointer-events: auto;
  background: rgba(255, 254, 251, 0.94);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-pill);
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 14px 8px 18px;
  gap: 12px;
  min-height: 58px;
}

.brand-link {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-family: var(--font-serif);
  font-size: 1.18rem;
  color: var(--navy);
  white-space: nowrap;
}

.brand-logo {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--navy);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--gold-light);
  overflow: hidden;
  box-shadow: 0 2px 6px rgba(27, 38, 56, 0.2);
}

.brand-title {
  display: flex;
  flex-direction: column;
}

.brand-title .main-name {
  line-height: 1.1;
  font-size: 1.15rem;
}

.brand-title .sub-name {
  font-family: var(--font-sans);
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--gold-dark);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

/* Desktop Nav Links (from 1100px) */
.desktop-nav {
  display: none;
  align-items: center;
  gap: 6px;
  list-style: none;
}

@media (min-width: 1100px) {
  .desktop-nav {
    display: flex;
  }
}

.desktop-nav a {
  padding: 8px 14px;
  font-weight: 500;
  font-size: 0.92rem;
  border-radius: var(--radius-full);
  color: var(--muted);
  transition: all 0.2s ease;
}

.desktop-nav a:hover, .desktop-nav a.active {
  color: var(--navy);
  background: var(--sand);
}

.desktop-nav a.active {
  font-weight: 700;
}

/* Header Action Controls */
.header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

/* EN / ಕನ್ನಡ Switch Pill */
.lang-switch {
  display: inline-flex;
  align-items: center;
  background: var(--sand);
  border-radius: var(--radius-full);
  padding: 3px;
  border: 1px solid var(--line);
  font-size: 0.82rem;
  font-weight: 600;
}

.lang-switch a {
  padding: 5px 10px;
  border-radius: var(--radius-full);
  color: var(--muted);
  transition: all 0.15s ease;
  min-height: 28px;
  display: inline-flex;
  align-items: center;
}

.lang-switch a.active {
  background: var(--card);
  color: var(--navy);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
  font-weight: 700;
}

.header-call-btn {
  background: var(--navy);
  color: #fff;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 2px 8px rgba(27, 38, 56, 0.2);
  transition: background 0.2s ease;
}

.header-call-btn:hover {
  background: var(--gold-dark);
}

/* Floating Phone Tab Bar (max 4 tabs + "More") */
.phone-tab-bar {
  position: fixed;
  bottom: max(12px, env(safe-area-inset-bottom, 12px));
  left: 16px;
  right: 16px;
  margin: 0 auto;
  max-width: 440px;
  z-index: 1000;
  display: flex;
  background: rgba(255, 254, 251, 0.96);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--line);
  border-radius: var(--radius-full);
  box-shadow: var(--shadow-pill);
  padding: 6px;
  justify-content: space-around;
  align-items: center;
}

@media (min-width: 1100px) {
  .phone-tab-bar {
    display: none;
  }
}

.phone-tab-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  flex: 1;
  min-height: 46px;
  min-width: 44px;
  border-radius: var(--radius-full);
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 600;
  gap: 2px;
  transition: all 0.15s ease;
  padding: 4px 6px;
}

.phone-tab-item svg {
  width: 20px;
  height: 20px;
  stroke-width: 2.2;
}

.phone-tab-item.active {
  color: var(--navy);
  background: var(--peach);
  font-weight: 700;
}

/* 26px Rounded Cards */
.card-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  margin-top: 20px;
}

@media (min-width: 680px) {
  .card-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .card-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
  }
}

.item-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  position: relative;
}

.item-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.card-media-wrapper {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: var(--sand);
  overflow: hidden;
}

.card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}

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

/* Category & Badge Chips */
.card-top-chips {
  position: absolute;
  top: 12px;
  left: 12px;
  right: 12px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  pointer-events: none;
  z-index: 2;
}

.cat-chip {
  background: var(--cat-color, var(--navy));
  color: #fff;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.18);
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.ai-chip {
  background: rgba(30, 42, 60, 0.75);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  color: var(--gold-light);
  font-size: 0.65rem;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: var(--radius-full);
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

/* Verification Badges */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 3px 9px;
  border-radius: var(--radius-full);
}

.badge-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
}

.badge-verified {
  background: #E8F5E9;
  color: #2E7D32;
  border: 1px solid #C8E6C9;
}
.badge-verified .badge-dot {
  background: #2E7D32;
}

.badge-unverified {
  background: #FFF8E1;
  color: #B78103;
  border: 1px solid #FFE082;
}
.badge-unverified .badge-dot {
  background: #FFA000;
  animation: pulse-dot 2s infinite;
}

@keyframes pulse-dot {
  0% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(1.2); }
  100% { opacity: 1; transform: scale(1); }
}

.card-body {
  padding: 18px 20px;
  display: flex;
  flex-direction: column;
  flex: 1;
  gap: 10px;
}

.card-title {
  font-size: 1.25rem;
  line-height: 1.3;
  color: var(--navy);
}

.card-desc {
  font-size: 0.9rem;
  color: var(--muted);
  line-height: 1.5;
  flex: 1;
}

.card-badges-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 4px;
}

.card-tag {
  background: var(--sand);
  color: var(--ink);
  font-size: 0.72rem;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 6px;
}

.card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
}

.card-actions .btn {
  flex: 1 1 calc(50% - 4px);
  padding: 8px 12px;
  font-size: 0.84rem;
  min-height: 42px;
}

.card-actions.has-three-actions .card-btn-main {
  flex: 1 1 100%;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 16px;
  border-radius: var(--radius-full);
  font-weight: 600;
  font-size: 0.88rem;
  min-height: var(--tap-target);
  cursor: pointer;
  border: 1px solid transparent;
  transition: all 0.15s ease;
  white-space: nowrap;
}

.btn-primary {
  background: var(--navy);
  color: #fff;
}
.btn-primary:hover {
  background: var(--ink);
}

.btn-outline {
  background: transparent;
  border-color: var(--line);
  color: var(--ink);
}
.btn-outline:hover {
  background: var(--sand);
}

.btn-gold {
  background: var(--gold);
  color: var(--navy);
  font-weight: 700;
}
.btn-gold:hover {
  background: var(--gold-dark);
  color: #fff;
}

/* Filter Pills with Counts */
.filter-rail {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 10px 0 16px;
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.filter-rail::-webkit-scrollbar {
  display: none;
}

.filter-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  border-radius: var(--radius-full);
  background: var(--card);
  border: 1px solid var(--line);
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--muted);
  cursor: pointer;
  white-space: nowrap;
  min-height: 40px;
  transition: all 0.15s ease;
}

.filter-pill .pill-count {
  background: var(--sand);
  color: var(--ink);
  font-size: 0.72rem;
  padding: 2px 6px;
  border-radius: var(--radius-full);
}

.filter-pill.active {
  background: var(--navy);
  color: #fff;
  border-color: var(--navy);
}
.filter-pill.active .pill-count {
  background: rgba(255, 255, 255, 0.25);
  color: #fff;
}

/* Live Search Box */
.search-bar-wrap {
  position: relative;
  width: 100%;
  margin: 14px 0;
}

.search-input {
  width: 100%;
  padding: 13px 18px 13px 44px;
  border-radius: var(--radius-full);
  border: 1px solid var(--line);
  background: var(--card);
  font-size: 0.95rem;
  box-shadow: var(--shadow-sm);
  transition: border-color 0.2s, box-shadow 0.2s;
}

.search-input:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(196, 154, 79, 0.2);
  outline: none;
}

.search-icon {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--muted);
  pointer-events: none;
}

/* Hostels Segmented Control (Boys | Girls) */
.segmented-control {
  display: flex;
  background: var(--sand);
  padding: 4px;
  border-radius: var(--radius-full);
  border: 1px solid var(--line);
  max-width: 380px;
  margin: 16px 0;
}

.segment-btn {
  flex: 1;
  text-align: center;
  padding: 10px 18px;
  border-radius: var(--radius-full);
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--muted);
  cursor: pointer;
  border: none;
  background: transparent;
  transition: all 0.15s ease;
  min-height: 42px;
}

.segment-btn.active {
  background: var(--card);
  color: var(--navy);
  box-shadow: var(--shadow-sm);
  font-weight: 700;
}

/* Summary Card for Campus Hostels */
.summary-card {
  background: linear-gradient(135deg, var(--card) 0%, var(--peach) 100%);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 24px;
  margin: 20px 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
  box-shadow: var(--shadow-sm);
}

.summary-metrics {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}

.metric-item {
  display: flex;
  flex-direction: column;
}

.metric-val {
  font-size: 2rem;
  font-family: var(--font-serif);
  font-weight: 700;
  color: var(--navy);
}

.metric-lbl {
  font-size: 0.8rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* Swipeable Carousel */
.carousel-container {
  position: relative;
  width: 100%;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--sand);
  box-shadow: var(--shadow-md);
}

.carousel-track {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.carousel-track::-webkit-scrollbar {
  display: none;
}

.carousel-slide {
  flex: 0 0 100%;
  width: 100%;
  scroll-snap-align: start;
  position: relative;
  aspect-ratio: 16 / 9;
}

.carousel-slide img, .carousel-slide video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.carousel-nav-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 254, 251, 0.85);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid var(--line);
  color: var(--navy);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 5;
  box-shadow: var(--shadow-sm);
}
.carousel-nav-btn.prev { left: 14px; }
.carousel-nav-btn.next { right: 14px; }

.carousel-dots {
  position: absolute;
  bottom: 14px;
  left: 0;
  right: 0;
  display: flex;
  justify-content: center;
  gap: 8px;
  z-index: 5;
}

.carousel-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.55);
  border: none;
  cursor: pointer;
  transition: all 0.2s ease;
}

.carousel-dot.active {
  background: #fff;
  transform: scale(1.3);
}

/* Detail Page Structure */
.detail-header {
  margin: 24px 0 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.detail-title {
  font-size: 2.1rem;
  line-height: 1.2;
}

.facts-table-wrap {
  margin: 28px 0;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.facts-table-title {
  padding: 16px 20px;
  background: var(--sand);
  border-bottom: 1px solid var(--line);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--navy);
  display: flex;
  align-items: center;
  gap: 8px;
}

.facts-table {
  width: 100%;
  border-collapse: collapse;
}

.facts-table tr:not(:last-child) {
  border-bottom: 1px solid var(--line);
}

.facts-table th, .facts-table td {
  padding: 12px 20px;
  font-size: 0.92rem;
  text-align: left;
}

.facts-table th {
  color: var(--muted);
  width: 35%;
  font-weight: 600;
  background: rgba(251, 248, 242, 0.5);
}

.facts-table td {
  color: var(--ink);
  font-weight: 500;
}

.facts-source-row {
  background: #FFFDF8;
  font-style: italic;
}

/* Install Sheet / Modal */
.install-sheet-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(27, 38, 56, 0.55);
  backdrop-filter: blur(4px);
  z-index: 10000;
  display: none;
  align-items: flex-end;
  justify-content: center;
}

.install-sheet-backdrop.show {
  display: flex;
}

.install-sheet {
  background: var(--card);
  width: 100%;
  max-width: 480px;
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  padding: 24px;
  box-shadow: var(--shadow-lg);
  animation: slideUp 0.3s ease-out;
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding-bottom: max(24px, env(safe-area-inset-bottom, 24px));
}

@keyframes slideUp {
  from { transform: translateY(100%); }
  to { transform: translateY(0); }
}

.install-sheet-header {
  display: flex;
  align-items: center;
  gap: 14px;
}

.install-app-icon {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  box-shadow: var(--shadow-sm);
}

.install-steps-list {
  list-style: none;
  counter-reset: steps;
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 6px 0;
}

.install-steps-list li {
  counter-increment: steps;
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.9rem;
}

.install-steps-list li::before {
  content: counter(steps);
  background: var(--sand);
  color: var(--navy);
  font-weight: 700;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  flex-shrink: 0;
}

/* Video Player with controls */
.video-wrapper {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000;
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.video-element {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.video-pause-btn {
  position: absolute;
  bottom: 14px;
  right: 14px;
  background: rgba(30, 42, 60, 0.7);
  backdrop-filter: blur(8px);
  color: #fff;
  border: none;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
}

/* Site Footer: HIDDEN UNDER 1100px */
.site-footer {
  background: var(--card);
  border-top: 1px solid var(--line);
  padding: 48px 0 32px;
  margin-top: 48px;
}

@media (max-width: 1099px) {
  .site-footer {
    display: none !important;
  }
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 36px;
}

.footer-brand {
  font-family: var(--font-serif);
  font-size: 1.4rem;
  color: var(--navy);
  margin-bottom: 10px;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 0.9rem;
  color: var(--muted);
}

.footer-links a:hover {
  color: var(--navy);
}

/* Reduced Motion Respect */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* ==========================================================================
   New Detail Page Modules: Timings, Facilities, Food Menu, Contacts, Rules, Feedback
   ========================================================================== */

/* Live Open / Close Status Pill */
.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 14px;
  border-radius: var(--radius-full);
  font-size: 0.82rem;
  font-weight: 700;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.status-pill.open {
  background: #ECFDF5;
  color: #065F46;
  border: 1px solid #A7F3D0;
}

.status-pill.closed {
  background: #F3F4F6;
  color: #4B5563;
  border: 1px solid #E5E7EB;
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  display: inline-block;
  background-color: currentColor;
}

.status-pill.open .status-dot {
  background-color: #10B981;
  box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
  animation: pulse-green 2s infinite;
}

@keyframes pulse-green {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7); }
  70% { transform: scale(1); box-shadow: 0 0 0 6px rgba(16, 185, 129, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

/* Facilities Cards Grid */
.facilities-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 16px;
  margin: 14px 0 28px;
}

.facility-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}

.facility-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.facility-thumb-wrap {
  width: 100%;
  aspect-ratio: 16 / 10;
  position: relative;
  background: var(--sand);
  overflow: hidden;
}

.facility-thumb-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.facility-badge-chip {
  position: absolute;
  top: 10px;
  right: 10px;
  background: rgba(27, 38, 56, 0.88);
  backdrop-filter: blur(4px);
  color: var(--gold-light);
  font-size: 0.7rem;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: var(--radius-full);
}

.facility-body {
  padding: 14px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.facility-title {
  font-size: 1.05rem;
  color: var(--navy);
  margin-bottom: 4px;
  font-family: var(--font-sans);
  font-weight: 700;
}

.facility-desc {
  font-size: 0.84rem;
  color: var(--muted);
  line-height: 1.45;
  margin: 0;
}

/* Food Menu Schedule Grid */
.food-menu-wrap {
  background: #FFFDF9;
  border: 1px solid var(--gold-light);
  border-left: 6px solid var(--gold);
  border-radius: var(--radius-lg);
  padding: 24px;
  margin: 28px 0;
  box-shadow: var(--shadow-sm);
}

.food-menu-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px;
  margin-top: 16px;
}

.meal-card {
  background: #FFFFFF;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 16px;
  display: flex;
  flex-direction: column;
}

.meal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
  padding-bottom: 6px;
  border-bottom: 1px dashed var(--line);
}

.meal-name {
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--navy);
  display: flex;
  align-items: center;
  gap: 6px;
}

.meal-time {
  font-size: 0.72rem;
  color: var(--gold-dark);
  font-weight: 600;
  background: var(--sand);
  padding: 2px 6px;
  border-radius: 4px;
}

.meal-items {
  font-size: 0.88rem;
  color: var(--ink);
  line-height: 1.45;
  margin: 0;
}

/* Contact Information & Helpdesk Card */
.contact-info-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 22px;
  margin: 28px 0;
  box-shadow: var(--shadow-sm);
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
  margin-top: 14px;
}

.contact-item {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

.contact-icon-box {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--sand);
  color: var(--navy);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.contact-meta .label {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.contact-meta .value {
  font-size: 0.95rem;
  color: var(--ink);
  font-weight: 600;
  margin-top: 2px;
}

.contact-meta a {
  color: var(--gold-dark);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* Rules & Guidelines Card */
.rules-card {
  background: #FAF8F5;
  border: 1px solid var(--line);
  border-left: 5px solid var(--maroon);
  border-radius: var(--radius-md);
  padding: 20px 22px;
  margin: 28px 0;
}

.rules-list {
  margin: 12px 0 0;
  padding-left: 20px;
  color: var(--ink);
  font-size: 0.93rem;
  line-height: 1.6;
}

.rules-list li {
  margin-bottom: 6px;
}

/* Feedback & Suggestions Form */
.feedback-box {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 26px;
  margin: 36px 0 24px;
  box-shadow: var(--shadow-sm);
}

.star-rating-wrap {
  display: inline-flex;
  flex-direction: row-reverse;
  gap: 4px;
  margin: 6px 0 14px;
}

.star-rating-wrap input {
  display: none;
}

.star-rating-wrap label {
  font-size: 1.6rem;
  color: #D1D5DB;
  cursor: pointer;
  transition: color 0.15s ease;
}

.star-rating-wrap input:checked ~ label,
.star-rating-wrap label:hover,
.star-rating-wrap label:hover ~ label {
  color: var(--gold);
}

.feedback-form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-bottom: 14px;
}

@media (max-width: 640px) {
  .feedback-form-grid {
    grid-template-columns: 1fr;
  }
}

.feedback-toast {
  padding: 12px 18px;
  border-radius: var(--radius-md);
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 16px;
  display: none;
}

.feedback-toast.success {
  background: #ECFDF5;
  border: 1px solid #A7F3D0;
  color: #065F46;
  display: block;
}

.feedback-toast.error {
  background: #FEF2F2;
  border: 1px solid #FECACA;
  color: #991B1B;
  display: block;
}

/* Programmes & Courses Offered Grid */
.courses-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
  gap: 16px;
  margin: 14px 0 32px;
}

.course-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 16px;
  display: flex;
  gap: 14px;
  align-items: flex-start;
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}

.course-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.course-icon-box {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--sand);
  color: var(--navy);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
}

.course-body {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.course-title {
  font-size: 1.02rem;
  font-weight: 700;
  color: var(--navy);
  margin: 0 0 6px 0;
  line-height: 1.35;
}

.course-badges-rail {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
}

.course-level-chip {
  background: #EEF2F6;
  color: var(--navy);
  font-size: 0.72rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: var(--radius-full);
}

.course-duration-chip {
  background: var(--gold-light);
  color: var(--gold-dark);
  font-size: 0.72rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: var(--radius-full);
}

.course-tag-chip {
  background: var(--sand);
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: var(--radius-full);
}

/* Eligibility & How to Apply Section */
.eligibility-section {
  margin: 34px 0;
  background: #FCFAF6;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 24px 20px;
}

@media (min-width: 768px) {
  .eligibility-section {
    padding: 30px 28px;
  }
}

.eligibility-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  margin-top: 16px;
}

@media (min-width: 860px) {
  .eligibility-grid {
    grid-template-columns: 1fr 1fr;
    gap: 24px;
  }
}

.eligibility-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 20px;
  display: flex;
  flex-direction: column;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.03);
}

.eligibility-card-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
}

.eligibility-icon-badge {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: var(--gold-light);
  color: var(--gold-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.eligibility-card-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--navy);
  margin: 0;
}

.eligibility-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.eligibility-list li {
  position: relative;
  padding-left: 28px;
  font-size: 0.92rem;
  line-height: 1.55;
  color: var(--ink);
}

.eligibility-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 1px;
  width: 20px;
  height: 20px;
  background: #ECFDF5;
  color: #059669;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 800;
}

.apply-steps-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.apply-step-item {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  font-size: 0.92rem;
  line-height: 1.55;
  color: var(--ink);
}

.apply-step-num {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--gold);
  color: #fff;
  font-size: 0.76rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 2px;
}

.apply-step-text {
  flex: 1;
}

/* Weekly Hostel Food Menu Tabs */
.weekly-menu-wrap {
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px dashed var(--line);
}

.weekly-day-nav {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 8px;
  margin: 14px 0 16px;
  scrollbar-width: thin;
}

.weekly-day-btn {
  padding: 8px 16px;
  border-radius: var(--radius-full);
  border: 1px solid var(--line);
  background: var(--sand);
  color: var(--navy);
  font-size: 0.84rem;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s ease;
  flex-shrink: 0;
}

.weekly-day-btn:hover {
  background: var(--gold-light);
  border-color: var(--gold);
}

.weekly-day-btn.active {
  background: var(--gold);
  color: #fff;
  border-color: var(--gold-dark);
  box-shadow: 0 2px 6px rgba(196, 154, 79, 0.35);
}

.weekly-day-pane {
  display: none;
}

.weekly-day-pane.active {
  display: block;
  animation: fadeIn 0.25s ease-in;
}

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

/* Thumbnail Get Directions Button Overlay */
.thumb-directions-btn {
  position: absolute;
  bottom: 12px;
  right: 12px;
  z-index: 4;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  background: rgba(27, 38, 56, 0.90);
  color: #FFFFFF;
  border-radius: var(--radius-full);
  font-size: 0.74rem;
  font-weight: 700;
  border: 1px solid rgba(255, 255, 255, 0.28);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  text-decoration: none;
  transition: all 0.2s ease;
}

.thumb-directions-btn:hover {
  background: var(--gold);
  color: #1B2638;
  border-color: var(--gold-dark);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}

.thumb-directions-btn svg {
  flex-shrink: 0;
  stroke: currentColor;
}




