/* ==========================================================================
   MEDCONFERENCE PSU - Design System & Modern Stylesheet
   Faculty of Medicine, Prince of Songkla University
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Prompt:ital,wght@0,300;0,400;0,500;0,600;0,700;0,800&family=Plus+Jakarta+Sans:wght@400;500;600;700;800&display=swap');

:root {
  /* Colors */
  --psu-blue-deep: #002244;
  --psu-blue: #003366;
  --psu-blue-mid: #0284c7;
  --psu-blue-light: #38bdf8;
  --psu-blue-subtle: #f0f9ff;
  --psu-gold: #f59e0b;
  --psu-gold-hover: #d97706;

  --text-dark: #0f172a;
  --text-body: #334155;
  --text-muted: #64748b;
  --text-light: #f8fafc;

  --bg-main: #f8fafc;
  --bg-card: #ffffff;
  --border-light: #e2e8f0;
  --border-subtle: rgba(226, 232, 240, 0.8);

  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.05), 0 1px 2px rgba(0, 0, 0, 0.03);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.07), 0 2px 4px -2px rgba(0, 0, 0, 0.04);
  --shadow-lg: 0 12px 28px -4px rgba(0, 35, 71, 0.1), 0 4px 12px -2px rgba(0, 0, 0, 0.04);
  --shadow-xl: 0 20px 40px -12px rgba(0, 35, 71, 0.16);

  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --radius-full: 9999px;

  --transition: all 0.25s ease;
  --font-thai: 'Prompt', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-en: 'Plus Jakarta Sans', var(--font-thai);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 86px;
}

body {
  font-family: var(--font-thai);
  background-color: var(--bg-main);
  color: var(--text-body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

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

video {
  max-width: 100%;
  display: block;
}

a {
  color: var(--psu-blue-mid);
  text-decoration: none;
  transition: var(--transition);
}

a:hover {
  color: var(--psu-blue);
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  outline: none;
}

.container {
  width: 100%;
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Typography Utilities */
.section-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--psu-blue-mid);
  background: rgba(2, 132, 199, 0.08);
  border: 1px solid rgba(2, 132, 199, 0.2);
  padding: 6px 14px;
  border-radius: var(--radius-full);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 12px;
}

.section-title {
  font-size: clamp(1.8rem, 3.2vw, 2.6rem);
  font-weight: 700;
  color: var(--text-dark);
  line-height: 1.3;
  margin-bottom: 14px;
  letter-spacing: -0.015em;
}

.section-subtitle {
  font-size: 1.05rem;
  color: var(--text-muted);
  max-width: 720px;
  margin: 0 auto;
  line-height: 1.65;
}

.text-center {
  text-align: center;
}

/* ==========================================================================
   Header & Navbar
   ========================================================================== */
.top-announcement {
  background: var(--psu-blue-deep);
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.825rem;
  padding: 8px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.top-announcement .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

.top-contacts {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}

.top-contacts a, .top-contacts span {
  color: rgba(255, 255, 255, 0.88);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.top-contacts a:hover {
  color: var(--psu-gold);
}

.top-links {
  display: flex;
  align-items: center;
  gap: 16px;
}

.top-links a {
  color: rgba(255, 255, 255, 0.88);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.top-links a:hover {
  color: #ffffff;
}

.main-nav {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border-subtle);
  transition: var(--transition);
}

.main-nav.scrolled {
  background: #ffffff;
  box-shadow: var(--shadow-md);
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 78px;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.brand-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--psu-blue) 0%, var(--psu-blue-mid) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  box-shadow: 0 4px 10px rgba(0, 51, 102, 0.2);
  flex-shrink: 0;
}

.brand-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

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

.brand-title {
  font-family: var(--font-en);
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--psu-blue-deep);
  letter-spacing: -0.01em;
  line-height: 1.2;
}

.brand-sub {
  font-size: 0.76rem;
  color: var(--text-muted);
  font-weight: 500;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 24px;
  list-style: none;
}

.nav-links a {
  font-size: 0.925rem;
  font-weight: 500;
  color: var(--text-body);
  position: relative;
  padding: 6px 0;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--psu-blue-mid);
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--psu-blue-mid);
  border-radius: 2px;
  transition: width 0.2s ease;
}

.nav-links a:hover::after,
.nav-links a.active::after {
  width: 100%;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 18px;
  font-size: 0.9rem;
  font-weight: 600;
  border-radius: var(--radius-md);
  transition: var(--transition);
  text-decoration: none;
  white-space: nowrap;
}

.btn-primary {
  background: linear-gradient(135deg, var(--psu-blue) 0%, var(--psu-blue-mid) 100%);
  color: #ffffff;
  box-shadow: 0 4px 12px rgba(2, 132, 199, 0.25);
}

.btn-primary:hover {
  background: linear-gradient(135deg, var(--psu-blue-deep) 0%, var(--psu-blue) 100%);
  color: #ffffff;
  box-shadow: 0 6px 18px rgba(2, 132, 199, 0.35);
  transform: translateY(-1px);
}

.btn-outline {
  background: transparent;
  color: var(--psu-blue);
  border: 1.5px solid var(--psu-blue-mid);
}

.btn-outline:hover {
  background: var(--psu-blue-subtle);
  color: var(--psu-blue-deep);
  border-color: var(--psu-blue);
}

.btn-gold {
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
  color: #ffffff;
  box-shadow: 0 4px 12px rgba(245, 158, 11, 0.25);
}

.btn-gold:hover {
  background: linear-gradient(135deg, #d97706 0%, #b45309 100%);
  color: #ffffff;
  box-shadow: 0 6px 16px rgba(245, 158, 11, 0.38);
  transform: translateY(-1px);
}

.btn-sm {
  padding: 7px 14px;
  font-size: 0.85rem;
  border-radius: var(--radius-sm);
}

/* Hide mobile toggle and drawer by default on desktop! */
.mobile-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  background: transparent;
  border: 1px solid var(--border-light);
  border-radius: 8px;
  padding: 8px;
}

.mobile-toggle span {
  display: block;
  height: 2px;
  width: 100%;
  background: var(--text-dark);
  transition: var(--transition);
}

.mobile-drawer {
  display: none; /* Crucial: MUST BE HIDDEN ON DESKTOP */
}

/* ==========================================================================
   Hero Section - Full-Width Grand Carousel & Intro
   ========================================================================== */
.hero-section {
  position: relative;
  background: linear-gradient(180deg, #ffffff 0%, var(--bg-main) 100%);
  padding: 40px 0 60px;
}

.hero-header {
  text-align: center;
  max-width: 880px;
  margin: 0 auto 36px;
}

.badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: white;
  border: 1px solid rgba(2, 132, 199, 0.25);
  padding: 6px 14px;
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--psu-blue-deep);
  box-shadow: var(--shadow-sm);
  margin-bottom: 16px;
}

.badge-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #10b981;
  animation: pulse-dot 1.8s infinite;
}

@keyframes pulse-dot {
  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 8px rgba(16, 185, 129, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

.hero-title {
  font-size: clamp(2.2rem, 3.8vw, 3.2rem);
  font-weight: 800;
  color: var(--psu-blue-deep);
  line-height: 1.25;
  letter-spacing: -0.02em;
  margin-bottom: 14px;
}

.hero-title .gradient-text {
  background: linear-gradient(120deg, var(--psu-blue-mid) 0%, #0369a1 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-description {
  font-size: 1.1rem;
  color: var(--text-body);
  line-height: 1.7;
  margin-bottom: 24px;
}

.hero-cta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}

/* Grand Hero Carousel (Harmonious 3:2 and 16:9 proportions) */
.hero-slider-wrap {
  position: relative;
  max-width: 1200px;
  margin: 0 auto;
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-xl);
  border: 1px solid var(--border-light);
  background: #0f172a;
}

.carousel-viewport {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9; /* Perfect standard video & photo proportion */
  max-height: 580px;
  overflow: hidden;
}

.carousel-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.5s ease-in-out;
  pointer-events: none;
}

.carousel-slide.active {
  opacity: 1;
  pointer-events: auto;
}

.carousel-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover; /* Keeps natural framing without stretching */
  object-position: center;
}

.slide-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 40px 30px 24px;
  background: linear-gradient(180deg, transparent 0%, rgba(0, 20, 45, 0.9) 100%);
  color: white;
}

.slide-caption h4 {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 4px;
}

.slide-caption p {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.85);
}

.carousel-controls {
  position: absolute;
  bottom: 24px;
  right: 24px;
  display: flex;
  gap: 10px;
  z-index: 10;
}

.carousel-btn {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.92);
  color: var(--text-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  transition: var(--transition);
  box-shadow: var(--shadow-md);
}

.carousel-btn:hover {
  background: white;
  transform: scale(1.08);
}

/* ==========================================================================
   Quick Access Bar
   ========================================================================== */
.quick-access-bar {
  margin-top: 36px;
}

.quick-bar-inner {
  background: white;
  border-radius: var(--radius-lg);
  padding: 20px 28px;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border-light);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.quick-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 8px 12px;
  border-radius: var(--radius-md);
  transition: var(--transition);
  text-decoration: none;
}

.quick-item:hover {
  background: var(--psu-blue-subtle);
  transform: translateY(-2px);
}

.quick-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  flex-shrink: 0;
}

.quick-icon.blue {
  background: rgba(2, 132, 199, 0.12);
  color: var(--psu-blue-mid);
}

.quick-icon.green {
  background: rgba(16, 185, 129, 0.14);
  color: #10b981;
}

.quick-icon.purple {
  background: rgba(139, 92, 246, 0.14);
  color: #8b5cf6;
}

.quick-icon.gold {
  background: rgba(245, 158, 11, 0.14);
  color: var(--psu-gold);
}

.quick-text h4 {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 2px;
}

.quick-text p {
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* ==========================================================================
   Room Directory Section (Featurettes with Direct Video Preview)
   ========================================================================== */
.rooms-section {
  padding: 90px 0;
}

.filter-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
  margin: 32px 0 44px;
}

.filter-btn {
  background: white;
  border: 1px solid var(--border-light);
  color: var(--text-body);
  font-size: 0.9rem;
  font-weight: 600;
  padding: 9px 20px;
  border-radius: var(--radius-full);
  transition: var(--transition);
  box-shadow: var(--shadow-sm);
}

.filter-btn:hover {
  border-color: var(--psu-blue-mid);
  color: var(--psu-blue-mid);
}

.filter-btn.active {
  background: var(--psu-blue-deep);
  color: white;
  border-color: var(--psu-blue-deep);
  box-shadow: 0 4px 12px rgba(0, 35, 71, 0.25);
}

/* Room Featurette Cards (Generous 2-column or 3-column with 16:9 media) */
.rooms-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(380px, 1fr));
  gap: 32px;
}

.room-card {
  background: white;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  display: flex;
  flex-direction: column;
}

.room-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-xl);
  border-color: rgba(2, 132, 199, 0.35);
}

.room-card-media {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9; /* Exact standard widescreen ratio! */
  overflow: hidden;
  background: #0b1120;
}

.room-card-media img,
.room-card-media video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.room-card:hover .room-card-media img {
  transform: scale(1.04);
}

.room-capacity-badge {
  position: absolute;
  top: 14px;
  left: 14px;
  background: rgba(15, 23, 42, 0.85);
  backdrop-filter: blur(8px);
  color: white;
  font-size: 0.82rem;
  font-weight: 600;
  padding: 5px 12px;
  border-radius: var(--radius-full);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  z-index: 2;
}

.room-video-trigger {
  position: absolute;
  top: 14px;
  right: 14px;
  background: rgba(255, 255, 255, 0.95);
  color: var(--psu-blue-deep);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.95rem;
  box-shadow: var(--shadow-md);
  transition: var(--transition);
  z-index: 2;
}

.room-video-trigger:hover {
  background: var(--psu-blue-mid);
  color: white;
  transform: scale(1.1);
}

.room-card-body {
  padding: 24px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.room-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 8px;
  line-height: 1.35;
}

.room-description {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 16px;
}

.room-specs-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin-bottom: 18px;
  padding: 12px 16px;
  background: var(--psu-blue-subtle);
  border-radius: var(--radius-md);
}

.spec-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.82rem;
  color: var(--text-dark);
  font-weight: 500;
}

.spec-item i {
  color: var(--psu-blue-mid);
  font-size: 0.9rem;
}

.room-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 20px;
}

.tag-badge {
  font-size: 0.75rem;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  background: #f1f5f9;
  color: var(--text-muted);
}

.tag-badge.zoom {
  background: rgba(43, 133, 244, 0.12);
  color: #1a73e8;
}

.tag-badge.featured {
  background: rgba(245, 158, 11, 0.12);
  color: #b45309;
}

.room-card-footer {
  margin-top: auto;
  display: flex;
  align-items: center;
  gap: 10px;
  padding-top: 16px;
  border-top: 1px solid var(--border-light);
}

.room-card-footer .btn {
  flex: 1;
}

/* ==========================================================================
   Studio & Online Meeting Showcase (Proper Flyer Poster Ratio 1:1.414)
   ========================================================================== */
.studio-section {
  padding: 90px 0;
  background: linear-gradient(180deg, var(--psu-blue-deep) 0%, #08152c 100%);
  color: white;
  position: relative;
  overflow: hidden;
}

.studio-section .section-title {
  color: white;
}

.studio-section .section-subtitle {
  color: rgba(255, 255, 255, 0.75);
}

.studio-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  margin-top: 48px;
}

.studio-feature-card {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-lg);
  padding: 24px;
  backdrop-filter: blur(10px);
  transition: var(--transition);
  display: flex;
  flex-direction: column;
}

.studio-feature-card:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(2, 132, 199, 0.5);
  transform: translateY(-4px);
}

/* Proper Poster Aspect Ratio: 1:1.414 (A4 ratio matches 2481x3508 exactly!) */
.studio-img-wrap {
  width: 100%;
  aspect-ratio: 1 / 1.414; /* Perfectly matches even.jpg/even2.jpg/even3.jpg! */
  border-radius: var(--radius-md);
  overflow: hidden;
  margin-bottom: 20px;
  background: #000000;
  box-shadow: var(--shadow-md);
  cursor: pointer;
}

.studio-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: contain; /* Shows entire flyer without cropping any text! */
  background: #0b1120;
  transition: transform 0.35s ease;
}

.studio-feature-card:hover .studio-img-wrap img {
  transform: scale(1.03);
}

.studio-feature-card h3 {
  font-size: 1.2rem;
  font-weight: 700;
  color: white;
  margin-bottom: 8px;
}

.studio-feature-card p {
  font-size: 0.88rem;
  color: rgba(255, 255, 255, 0.75);
  line-height: 1.6;
}

.studio-platforms-bar {
  margin-top: 44px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-lg);
  padding: 22px 30px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}

.platform-pills {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.platform-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.1);
  padding: 7px 14px;
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  font-weight: 500;
  color: white;
}

/* ==========================================================================
   Booking & Calendar Section
   ========================================================================== */
.booking-section {
  padding: 90px 0;
  background: var(--bg-main);
}

/* ==========================================================================
   Rates & Regulations Section
   ========================================================================== */
.rates-section {
  padding: 90px 0;
  background: #ffffff;
}

.docs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 24px;
  margin-top: 40px;
}

.doc-card {
  background: white;
  border-radius: var(--radius-lg);
  padding: 24px;
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-sm);
  display: flex;
  align-items: flex-start;
  gap: 16px;
  transition: var(--transition);
}

.doc-card:hover {
  border-color: var(--psu-blue-mid);
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.doc-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  background: rgba(2, 132, 199, 0.1);
  color: var(--psu-blue-mid);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.35rem;
  flex-shrink: 0;
}

.doc-info {
  flex: 1;
}

.doc-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 4px;
}

.doc-desc {
  font-size: 0.84rem;
  color: var(--text-muted);
  margin-bottom: 10px;
}

/* ==========================================================================
   Gallery Section (Natural 3:2 Photo Aspect Ratio)
   ========================================================================== */
.gallery-section {
  padding: 90px 0;
  background: var(--bg-main);
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  margin-top: 40px;
}

.gallery-item {
  position: relative;
  width: 100%;
  aspect-ratio: 3 / 2; /* Exact 3:2 aspect ratio of all photos 1.JPG - 12.JPG! */
  border-radius: var(--radius-md);
  overflow: hidden;
  cursor: pointer;
  background: #0f172a;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.gallery-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 35, 71, 0.55);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  opacity: 0;
  transition: var(--transition);
  font-size: 1.35rem;
}

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

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

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer {
  background: var(--psu-blue-deep);
  color: rgba(255, 255, 255, 0.8);
  padding: 70px 0 24px;
  font-size: 0.92rem;
  border-top: 4px solid var(--psu-blue-mid);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 0.8fr 1fr;
  gap: 48px;
  margin-bottom: 50px;
}

.footer-brand h3 {
  font-size: 1.35rem;
  font-weight: 800;
  color: white;
  margin-bottom: 12px;
}

.footer-brand p {
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.65;
  margin-bottom: 20px;
}

.footer-col h4 {
  font-size: 1.05rem;
  font-weight: 700;
  color: white;
  margin-bottom: 18px;
  position: relative;
  padding-bottom: 8px;
}

.footer-col h4::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 36px;
  height: 2px;
  background: var(--psu-gold);
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.75);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.footer-links a:hover {
  color: var(--psu-gold);
  transform: translateX(4px);
}

.contact-info-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

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

.contact-info-item i {
  color: var(--psu-gold);
  font-size: 1.1rem;
  margin-top: 4px;
}

.footer-bottom {
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 0.825rem;
  color: rgba(255, 255, 255, 0.5);
}

/* ==========================================================================
   Modals
   ========================================================================== */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.8);
  backdrop-filter: blur(8px);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.modal-backdrop.active {
  opacity: 1;
  pointer-events: auto;
}

.modal-dialog {
  background: white;
  border-radius: var(--radius-xl);
  max-width: 900px;
  width: 100%;
  overflow: hidden;
  box-shadow: var(--shadow-xl);
  transform: scale(0.95);
  transition: transform 0.3s ease;
}

.modal-backdrop.active .modal-dialog {
  transform: scale(1);
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 24px;
  border-bottom: 1px solid var(--border-light);
}

.modal-header h3 {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text-dark);
}

.modal-close {
  background: #f1f5f9;
  border-radius: 50%;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  font-size: 1.1rem;
  transition: var(--transition);
}

.modal-close:hover {
  background: #e2e8f0;
  color: var(--text-dark);
}

.modal-body {
  padding: 20px;
}

.modal-video-container {
  width: 100%;
  aspect-ratio: 16 / 9; /* Perfect 16:9 for video tour */
  background: black;
  border-radius: var(--radius-md);
  overflow: hidden;
}

.modal-video-container video,
.modal-video-container iframe {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border: none;
}

/* ==========================================================================
   Responsive Breakpoints
   ========================================================================== */
@media (max-width: 1024px) {
  .quick-bar-inner {
    grid-template-columns: repeat(2, 1fr);
  }

  .studio-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .gallery-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
}

@media (max-width: 768px) {
  .nav-links, .nav-actions .btn-outline {
    display: none;
  }

  .mobile-toggle {
    display: flex;
  }

  .mobile-drawer {
    display: flex; /* Only on mobile when drawer is rendered */
    position: fixed;
    top: 78px;
    left: 0;
    right: 0;
    background: white;
    padding: 24px;
    border-bottom: 1px solid var(--border-light);
    box-shadow: var(--shadow-lg);
    flex-direction: column;
    gap: 16px;
    transform: translateY(-120%);
    transition: transform 0.3s ease;
    z-index: 999;
  }

  .mobile-drawer.active {
    transform: translateY(0);
  }

  .hero-title {
    font-size: 2rem;
  }

  .quick-bar-inner {
    grid-template-columns: 1fr;
  }

  .rooms-grid {
    grid-template-columns: 1fr;
  }

  .studio-grid {
    grid-template-columns: 1fr;
  }

  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
