@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Outfit:wght@400;500;600;700;800;900&display=swap');

:root {
  --primary: #c52227; /* Laurence Crimson Red */
  --primary-hover: #a01a1f;
  --primary-light: rgba(197, 34, 39, 0.18);
  --navy-dark: #060b14; /* Deep Navy Black */
  --navy-surface: #0f172a;
  --navy-card: #182238;
  --navy-glass: rgba(15, 23, 42, 0.88);
  --bg-main: var(--navy-dark);
  --bg-surface: var(--navy-surface);
  --bg-card: var(--navy-card);
  --bg-glass: var(--navy-glass);
  --text-main: #f8fafc;
  --text-muted: #94a3b8;
  --border: rgba(197, 34, 39, 0.25);
  --border-glow: rgba(197, 34, 39, 0.6);
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 22px;
  --radius-full: 9999px;
  --shadow-3d: 0 25px 45px -10px rgba(0, 0, 0, 0.7), 0 10px 20px -5px rgba(197, 34, 39, 0.3);
  --transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

[data-theme="light"] {
  --bg-main: #f1f5f9;
  --bg-surface: #ffffff;
  --bg-card: #ffffff;
  --bg-glass: rgba(255, 255, 255, 0.92);
  --text-main: #0f172a;
  --text-muted: #475569;
  --border: rgba(197, 34, 39, 0.2);
  --shadow-3d: 0 20px 35px -10px rgba(15, 23, 42, 0.14), 0 8px 15px -6px rgba(197, 34, 39, 0.18);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  background-color: var(--bg-main);
  color: var(--text-main);
  line-height: 1.6;
  overflow-x: hidden;
  perspective: 1200px; /* 3D Scene Perspective */
  background-image: 
    radial-gradient(circle at 15% 20%, rgba(197, 34, 39, 0.15) 0%, transparent 40%),
    radial-gradient(circle at 85% 70%, rgba(30, 58, 138, 0.2) 0%, transparent 50%);
  background-attachment: fixed;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Outfit', sans-serif;
  font-weight: 800;
  line-height: 1.2;
}

/* Glassmorphism & Utility Classes */
.glass {
  background: var(--bg-glass);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border: 1px solid var(--border);
}

.container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* Alive 3D Dynamic Tilt Card Effect */
.tilt-card {
  transform-style: preserve-3d;
  transition: transform 0.3s ease-in-out, box-shadow 0.3s ease-in-out, border-color 0.3s ease-in-out;
  will-change: transform;
  position: relative;
}

.tilt-card:hover {
  transform: translateY(-6px) scale(1.015);
  border-color: var(--primary);
  box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.5), 0 0 25px rgba(197, 34, 39, 0.25);
}

/* Floating Animation for 3D Alive feel */
.float-3d {
  animation: float3d 5s ease-in-out infinite;
}

@keyframes float3d {
  0%, 100% { transform: translateY(0px) rotate(0deg); }
  50% { transform: translateY(-8px) rotate(0.8deg); }
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.8rem 1.6rem;
  font-size: 0.95rem;
  font-weight: 700;
  border-radius: var(--radius-md);
  border: 1px solid transparent;
  cursor: pointer;
  transition: var(--transition);
  text-decoration: none;
  font-family: 'Outfit', sans-serif;
  letter-spacing: 0.02em;
}

.btn-apply {
  background: linear-gradient(135deg, #c52227, #e11d48);
  color: #ffffff;
  box-shadow: 0 8px 25px rgba(197, 34, 39, 0.45);
  position: relative;
  overflow: hidden;
}

.btn-apply::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.35), transparent);
  transition: 0.6s;
}

.btn-apply:hover::before {
  left: 100%;
}

.btn-apply:hover {
  transform: translateY(-3px) scale(1.03);
  box-shadow: 0 12px 30px rgba(197, 34, 39, 0.6);
}

.btn-primary {
  background-color: var(--primary);
  color: #ffffff;
  box-shadow: 0 4px 14px rgba(197, 34, 39, 0.35);
}

.btn-primary:hover {
  background-color: var(--primary-hover);
  transform: translateY(-2px);
}

.btn-secondary {
  background-color: var(--bg-surface);
  color: var(--text-main);
  border-color: var(--border);
}

.btn-secondary:hover {
  background-color: var(--primary-light);
  border-color: var(--primary);
  color: var(--primary);
}

.btn-danger {
  background-color: #ef4444;
  color: #ffffff;
}

.btn-sm {
  padding: 0.45rem 0.95rem;
  font-size: 0.85rem;
  border-radius: var(--radius-sm);
}

/* Badges */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.35rem 0.85rem;
  font-size: 0.8rem;
  font-weight: 700;
  border-radius: var(--radius-full);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.badge-primary {
  background-color: var(--primary-light);
  color: #f87171;
  border: 1px solid rgba(197, 34, 39, 0.4);
}

.badge-navy {
  background: rgba(15, 23, 42, 0.9);
  color: #60a5fa;
  border: 1px solid rgba(96, 165, 250, 0.4);
}

/* Header Navbar */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid var(--border);
}

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

.brand-logo {
  display: flex;
  align-items: center;
  gap: 1rem;
  text-decoration: none;
  color: var(--text-main);
}

.brand-logo-img {
  height: 58px;
  width: auto;
  object-fit: contain;
  filter: drop-shadow(0 4px 12px rgba(197, 34, 39, 0.4));
  transition: transform 0.3s ease;
}

.brand-logo:hover .brand-logo-img {
  transform: scale(1.08) rotate(-2deg);
}

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

.brand-title {
  font-family: 'Outfit', sans-serif;
  font-weight: 900;
  font-size: 1.35rem;
  letter-spacing: -0.01em;
  color: var(--text-main);
  line-height: 1.1;
}

.brand-subtitle {
  font-size: 0.75rem;
  color: var(--primary);
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 1.75rem;
  list-style: none;
}

.nav-link {
  text-decoration: none;
  color: var(--text-muted);
  font-weight: 600;
  font-size: 0.95rem;
  transition: var(--transition);
  position: relative;
  padding: 0.4rem 0;
}

.nav-link:hover, .nav-link.active {
  color: #ffffff;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0%;
  height: 3px;
  background: linear-gradient(90deg, var(--primary), #ef4444);
  transition: var(--transition);
  border-radius: 2px;
}

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

.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

/* Portals Dropdown */
.portals-wrapper {
  position: relative;
}

.portals-trigger {
  cursor: pointer;
}

.portals-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  min-width: 240px;
  background: rgba(15, 23, 42, 0.96);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--border-glow);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-3d), 0 0 30px rgba(197, 34, 39, 0.2);
  padding: 0.5rem;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 200;
}

.portals-wrapper:hover .portals-dropdown,
.portals-dropdown.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.portal-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  color: var(--text-muted);
  font-size: 0.9rem;
  font-weight: 600;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: var(--transition);
  text-decoration: none;
  border: none;
  background: none;
  width: 100%;
  text-align: left;
}

.portal-item:hover {
  background: linear-gradient(90deg, rgba(197, 34, 39, 0.2), rgba(15, 23, 42, 0.6));
  color: #ffffff;
}

.portal-item .portal-icon {
  font-size: 1.2rem;
  width: 28px;
  text-align: center;
}

.portal-item .portal-badge {
  margin-left: auto;
  font-size: 0.65rem;
  font-weight: 800;
  color: #f59e0b;
  background: rgba(245, 158, 11, 0.15);
  padding: 2px 8px;
  border-radius: var(--radius-full);
  letter-spacing: 0.05em;
}

.portals-divider {
  height: 1px;
  background: var(--border);
  margin: 0.35rem 0;
}

.theme-toggle-btn {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  color: var(--text-main);
  width: 42px;
  height: 42px;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition);
}

/* Announcement Ticker Bar */
.announcement-bar {
  background: linear-gradient(90deg, #7f1d1d, #c52227, #060b14);
  color: #ffffff;
  font-size: 0.9rem;
  padding: 0.55rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.15);
  position: relative;
  z-index: 95;
}

.ticker-content {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  position: relative;
  overflow: hidden;
  width: 100%;
}

.ticker-tag {
  background: #060b14;
  color: #ffffff;
  font-size: 0.75rem;
  font-weight: 900;
  padding: 0.35rem 0.9rem;
  border-radius: var(--radius-sm);
  white-space: nowrap;
  border: 1px solid var(--primary);
  box-shadow: 10px 0 20px #060b14, 5px 0 10px #060b14;
  z-index: 100 !important; /* Strictly stays on top of all text */
  position: relative;
  flex-shrink: 0;
}

.ticker-window {
  flex-grow: 1;
  overflow: hidden !important; /* Clips all text right at the edge of button */
  position: relative;
  height: 26px;
  display: flex;
  align-items: center;
  mask-image: linear-gradient(to right, transparent 0px, black 30px, black calc(100% - 30px), transparent 100%);
  -webkit-mask-image: linear-gradient(to right, transparent 0px, black 30px, black calc(100% - 30px), transparent 100%);
}

.ticker-track {
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
  animation: scrollTicker 55s linear infinite; /* Normal, smooth, readable speed */
  will-change: transform;
}

.ticker-window:hover .ticker-track {
  animation-play-state: paused; /* Pause on hover so readers can read easily */
}

.ticker-item {
  display: inline-block;
  margin-right: 3rem;
}

@keyframes scrollTicker {
  0% {
    transform: translateX(100%);
  }
  100% {
    transform: translateX(-100%);
  }
}

/* Hero Section */
.hero-section {
  position: relative;
  padding: 6rem 0 5rem;
  overflow: hidden;
}
.hero-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(6,11,20,0.85) 0%, rgba(6,11,20,0.5) 40%, rgba(6,11,20,0.2) 70%, transparent 100%);
  z-index: 0;
  pointer-events: none;
}

.hero-bg-media {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.35;
  filter: brightness(0.6) contrast(1.1);
  z-index: -1;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 3.5rem;
  align-items: center;
  position: relative; z-index: 1;
}

.hero-title {
  font-size: 4.2rem;
  letter-spacing: -0.03em;
  margin: 1.25rem 0;
  text-shadow: 0 10px 25px rgba(0,0,0,0.6);
}

.hero-title span {
  background: linear-gradient(135deg, #ef4444, #f87171);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-subtitle {
  font-size: 1.2rem;
  color: var(--text-muted);
  margin-bottom: 2.25rem;
  max-width: 640px;
}

.hero-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 3.5rem;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
}

.stat-card {
  text-align: center;
  padding: 1.25rem 1rem;
  background: var(--bg-surface);
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
}

.stat-number {
  font-size: 2rem;
  font-weight: 900;
  color: #ef4444;
  font-family: 'Outfit', sans-serif;
}

.stat-label {
  font-size: 0.85rem;
  color: var(--text-muted);
  font-weight: 600;
}

/* Hero 3D Card Widget */
.hero-card-widget {
  background: var(--bg-glass);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: var(--shadow-3d);
}

.widget-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.25rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border);
}

.principal-avatar {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--primary);
  box-shadow: 0 6px 15px rgba(197, 34, 39, 0.4);
}

/* 1994x743 HIGHLIGHT PICTURE BANNER SECTION */
.highlight-section {
  padding: 4rem 0;
}

.highlight-banner-container {
  position: relative;
  width: 100%;
  aspect-ratio: 1994 / 743;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 2px solid var(--border-glow);
  box-shadow: var(--shadow-3d), 0 0 35px rgba(197, 34, 39, 0.3);
}

.highlight-banner-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.highlight-banner-container:hover .highlight-banner-img {
  transform: scale(1.04);
}

.highlight-banner-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(6, 11, 20, 0.94) 0%, rgba(6, 11, 20, 0.35) 60%, transparent 100%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 3rem;
}

.highlight-size-tag {
  position: absolute;
  top: 20px;
  right: 20px;
  background: rgba(15, 23, 42, 0.85);
  backdrop-filter: blur(10px);
  border: 1px solid var(--primary);
  color: #fff;
  font-size: 0.8rem;
  font-weight: 700;
  padding: 6px 14px;
  border-radius: var(--radius-full);
}

/* Section Common Styles */
.section {
  padding: 5rem 0;
}

.section-header {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 3.5rem;
}

.section-title {
  font-size: 2.5rem;
  margin: 0.6rem 0 1rem;
}

.section-subtitle {
  color: var(--text-muted);
  font-size: 1.1rem;
}

/* Category Filter Tabs */
.filter-tabs {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-bottom: 2.75rem;
}

.tab-btn {
  padding: 0.55rem 1.35rem;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  color: var(--text-muted);
  border-radius: var(--radius-full);
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
}

.tab-btn:hover, .tab-btn.active {
  background-color: var(--primary);
  color: #ffffff;
  border-color: var(--primary);
  box-shadow: 0 4px 12px rgba(197, 34, 39, 0.4);
}

/* Events Grid */
.events-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: 2.25rem;
}

.event-card {
  background: var(--bg-card);
  border-radius: 16px;
  border: 1px solid var(--border);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.event-img-wrap {
  position: relative;
  height: 220px;
  overflow: hidden;
}

.event-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition);
}

.event-card:hover .event-img {
  transform: scale(1.07);
}

.event-date-badge {
  position: absolute;
  top: 14px;
  right: 14px;
  background: var(--primary);
  padding: 8px 14px;
  border-radius: var(--radius-md);
  text-align: center;
  color: #fff;
  border: none;
  box-shadow: 0 4px 12px rgba(197, 34, 39, 0.5);
}

.event-date-day {
  font-size: 1.2rem;
  font-weight: 900;
  line-height: 1;
}

.event-date-month {
  font-size: 0.75rem;
  text-transform: uppercase;
  color: #ef4444;
  font-weight: 800;
}

.event-content {
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.event-title {
  font-size: 1.25rem;
  margin: 0.5rem 0 0.75rem;
}

.event-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 1rem;
}

.event-desc {
  font-size: 0.92rem;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
  flex-grow: 1;
}

/* Gallery Grid */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(330px, 1fr));
  gap: 1.75rem;
}

.gallery-item {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  height: 270px;
  cursor: pointer;
  border: 1px solid var(--border);
}

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

.gallery-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(6, 11, 20, 0.92), transparent 70%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 1.5rem;
  opacity: 0;
  transition: opacity 0.3s ease-in-out;
}

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

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

.gallery-item-title {
  font-size: 1.15rem;
  color: #ffffff;
}

/* News Cards */
.news-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
  gap: 2.25rem;
}

.news-card {
  background: var(--bg-card);
  border-radius: 16px;
  border: 1px solid var(--border);
  overflow: hidden;
}

.news-img {
  width: 100%;
  height: 220px;
  object-fit: cover;
}

.news-content {
  padding: 1.75rem;
}

/* Faculty Directory Cards */
.faculty-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 2rem;
}

.faculty-card {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  padding: 1.75rem;
  text-align: center;
}

.faculty-photo {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  object-fit: cover;
  margin: 0 auto 1.25rem;
  border: 3px solid var(--primary);
  box-shadow: 0 6px 15px rgba(197, 34, 39, 0.3);
}

.faculty-name {
  font-size: 1.2rem;
  margin-bottom: 0.25rem;
}

.faculty-role {
  color: #ef4444;
  font-size: 0.9rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
}

/* Contact & Forms */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
}

.contact-card {
  background: var(--bg-surface);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  padding: 2.5rem;
  box-shadow: var(--shadow-3d);
}

.form-group {
  margin-bottom: 1.25rem;
}

.form-label {
  display: block;
  font-size: 0.88rem;
  font-weight: 700;
  margin-bottom: 0.4rem;
  color: var(--text-main);
}

.form-input, .form-textarea, .form-select {
  width: 100%;
  padding: 0.8rem 1.1rem;
  background: var(--bg-main);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  color: var(--text-main);
  font-family: inherit;
  font-size: 0.95rem;
  outline: none;
  transition: var(--transition);
}

.form-input:focus, .form-textarea:focus, .form-select:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-light);
}

/* Modals */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(6, 11, 20, 0.88);
  backdrop-filter: blur(12px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}

.modal-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-glow);
  border-radius: var(--radius-lg);
  width: 100%;
  max-width: 720px;
  max-height: 90vh;
  overflow-y: auto;
  padding: 2.25rem;
  position: relative;
  box-shadow: var(--shadow-3d);
}

.modal-close-btn {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: var(--bg-main);
  border: 1px solid var(--border);
  color: var(--text-main);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

/* PROPER BOUNDED 3D ADMIN CMS MODAL WINDOW (PREVENTS STRETCHING) */
.cms-modal-backdrop {
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  bottom: 0 !important;
  width: 100vw !important;
  height: 100vh !important;
  background: rgba(4, 8, 16, 0.94) !important;
  backdrop-filter: blur(18px) !important;
  z-index: 99999 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 1.5rem !important;
  overflow: hidden !important;
}

.cms-window {
  background: var(--bg-surface);
  border: 1px solid var(--border-glow);
  border-radius: var(--radius-lg);
  width: 100%;
  max-width: 1280px;
  height: 88vh;
  max-height: 850px;
  box-shadow: var(--shadow-3d), 0 0 50px rgba(197, 34, 39, 0.35);
  display: flex;
  overflow: hidden;
  position: relative;
}

.cms-sidebar {
  width: 280px;
  background: #060b14;
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  padding: 1.5rem 1rem;
  flex-shrink: 0;
  overflow-y: auto;
}

.cms-brand {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  margin-bottom: 1.25rem;
}

.cms-nav-group-title {
  font-size: 0.7rem;
  font-weight: 800;
  color: var(--primary);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin: 1rem 0.5rem 0.5rem;
}

.cms-nav-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  color: var(--text-muted);
  border-radius: var(--radius-md);
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  transition: var(--transition);
  margin-bottom: 0.25rem;
}

.cms-nav-item:hover, .cms-nav-item.active {
  background: linear-gradient(90deg, rgba(197, 34, 39, 0.2), rgba(15, 23, 42, 0.6));
  color: #ffffff;
  border-left: 3px solid var(--primary);
}

.cms-body-wrapper {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.cms-top-bar {
  background: #0b1329;
  border-bottom: 1px solid var(--border);
  padding: 0.85rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.cms-main-content {
  flex-grow: 1;
  padding: 2.25rem;
  overflow-y: auto;
  background: var(--bg-main);
}

.cms-card {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
  margin-bottom: 1.75rem;
}

.cms-card-title {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 0.35rem;
  color: var(--text-main);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.cms-card-subtitle {
  font-size: 0.88rem;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
}

.live-image-box {
  width: 100%;
  height: 140px;
  border-radius: var(--radius-md);
  border: 2px dashed var(--border);
  background: #060b14;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 0.5rem;
  position: relative;
}

.live-image-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 1rem;
}

.admin-table th, .admin-table td {
  padding: 1rem;
  text-align: left;
  border-bottom: 1px solid var(--border);
}

.admin-table th {
  background: var(--bg-surface);
  color: var(--text-muted);
  font-size: 0.82rem;
  text-transform: uppercase;
  font-weight: 800;
  letter-spacing: 0.05em;
}

.thumb-preview {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-sm);
  object-fit: cover;
  border: 1px solid var(--border);
}

/* Toast Notifications */
.toast-container {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 3000;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.toast {
  background: var(--bg-surface);
  border: 1px solid var(--primary);
  color: var(--text-main);
  padding: 1rem 1.5rem;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-3d);
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

/* Testimonials Section — Voices of Our Community */
.testimonials-section {
  padding: 5rem 0;
  background: var(--bg-surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.testimonial-carousel {
  position: relative;
  max-width: 800px;
  margin: 0 auto;
  overflow: hidden;
}

.testimonial-track {
  display: flex;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.testimonial-card {
  min-width: 100%;
  padding: 2.5rem;
  text-align: center;
  flex-shrink: 0;
}

.testimonial-quote {
  font-size: 1.2rem;
  font-style: italic;
  color: var(--text-main);
  line-height: 1.8;
  margin-bottom: 1.75rem;
  position: relative;
  max-width: 650px;
  margin-left: auto;
  margin-right: auto;
}

.testimonial-quote::before {
  content: '"';
  font-size: 4rem;
  color: var(--primary);
  font-family: 'Outfit', serif;
  position: absolute;
  top: -1.5rem;
  left: -1rem;
  opacity: 0.5;
}

.testimonial-author {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
}

.testimonial-author-name {
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--text-main);
}

.testimonial-author-role {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.star-rating {
  color: #f59e0b;
  font-size: 1.1rem;
  letter-spacing: 2px;
  margin-bottom: 0.75rem;
}

.carousel-dots {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 1.5rem;
}

.carousel-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--border);
  border: none;
  cursor: pointer;
  transition: var(--transition);
  padding: 0;
}

.carousel-dot.active {
  background: var(--primary);
  transform: scale(1.3);
  box-shadow: 0 0 10px rgba(197, 34, 39, 0.5);
}

/* Stats Strip — Animated Numbers */
.stats-strip-section {
  padding: 3.5rem 0;
  background: linear-gradient(135deg, #0b1329 0%, #060b14 100%);
  border-bottom: 1px solid var(--border);
}

.stats-strip-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  text-align: center;
}

.strip-stat {
  padding: 1.5rem 1rem;
  position: relative;
}

.strip-stat:not(:last-child)::after {
  content: '';
  position: absolute;
  right: 0;
  top: 20%;
  height: 60%;
  width: 1px;
  background: var(--border);
}

.strip-stat-number {
  font-size: 2.8rem;
  font-weight: 900;
  font-family: 'Outfit', sans-serif;
  background: linear-gradient(135deg, #ef4444, #f87171);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 0.25rem;
}

.strip-stat-label {
  font-size: 0.9rem;
  color: var(--text-muted);
  font-weight: 600;
}

/* Floating Label Form */
.floating-label-group {
  position: relative;
  margin-bottom: 1.5rem;
}

.floating-label-group .form-input,
.floating-label-group .form-textarea,
.floating-label-group .form-select {
  padding-top: 1.4rem;
  padding-bottom: 0.5rem;
}

.floating-label-group .floating-label {
  position: absolute;
  top: 50%;
  left: 1.1rem;
  transform: translateY(-50%);
  font-size: 0.95rem;
  color: var(--text-muted);
  pointer-events: none;
  transition: all 0.25s ease;
  background: transparent;
}

.floating-label-group .form-textarea ~ .floating-label {
  top: 1.2rem;
  transform: none;
}

.floating-label-group .form-input:focus ~ .floating-label,
.floating-label-group .form-input:not(:placeholder-shown) ~ .floating-label,
.floating-label-group .form-textarea:focus ~ .floating-label,
.floating-label-group .form-textarea:not(:placeholder-shown) ~ .floating-label,
.floating-label-group .form-select:focus ~ .floating-label,
.floating-label-group .form-select:not([value=""]) ~ .floating-label {
  top: 0.45rem;
  transform: none;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--primary);
}

/* Submit Success Animation */
.submit-success {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  padding: 2rem;
  animation: fadeInUp 0.5s ease;
}

.success-checkmark {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: linear-gradient(135deg, #10b981, #059669);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  color: #fff;
  animation: scaleIn 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes scaleIn {
  0% { transform: scale(0); opacity: 0; }
  100% { transform: scale(1); opacity: 1; }
}

@keyframes fadeInUp {
  0% { opacity: 0; transform: translateY(20px); }
  100% { opacity: 1; transform: translateY(0); }
}

/* Newsletter Footer */
.newsletter-wrap {
  display: flex;
  gap: 0.75rem;
  margin-top: 1.25rem;
}

.newsletter-wrap .form-input {
  flex-grow: 1;
  padding: 0.75rem 1rem;
  font-size: 0.9rem;
}

.newsletter-wrap .btn {
  white-space: nowrap;
  flex-shrink: 0;
}

/* Footer */
.site-footer {
  background: var(--bg-surface);
  border-top: 1px solid var(--border);
  padding: 4.5rem 0 2rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.2fr;
  gap: 3rem;
  margin-bottom: 3.5rem;
}

.footer-bottom {
  padding-top: 2rem;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--text-muted);
  font-size: 0.85rem;
}

@media (max-width: 992px) {
  .hero-grid { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .cms-window { flex-direction: column; height: 92vh; }
  .cms-sidebar { width: 100%; height: auto; }
  .hero-title { font-size: 2.8rem; }
  .stats-strip-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 640px) {
  .nav-menu { display: none; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr; }
  .stats-strip-grid { grid-template-columns: 1fr 1fr; }
}
