/* ========================================
   Barangay Tablon Community Website
   Global Stylesheet
   ======================================== */

/* ---- Google Fonts ---- */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Playfair+Display:wght@400;600;700;800&display=swap');

/* ========================================
   1. CSS Custom Properties
   ======================================== */
:root {
  /* Colors — Blue Theme */
  --primary: #1d4ed8;
  --primary-dark: #1e3a8a;
  --primary-light: #3b82f6;
  --primary-lighter: #93bbfd;
  --primary-lightest: #dbeafe;
  --primary-bg: #eff6ff;
  --accent: #f59e0b;
  --accent-dark: #d97706;
  --accent-light: #fef3c7;
  --bg: #f8fafc;
  --surface: #ffffff;
  --dark-bg: #0f172a;
  --dark-surface: #1e293b;
  --text: #1e293b;
  --text-light: #64748b;
  --text-white: #f1f5f9;
  --border: #e2e8f0;

  /* Shadows */
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
  --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1),
    0 2px 4px -2px rgba(0, 0, 0, 0.1);
  --shadow-md: 0 10px 15px -3px rgba(0, 0, 0, 0.1),
    0 4px 6px -4px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.1),
    0 8px 10px -6px rgba(0, 0, 0, 0.1);
  --shadow-xl: 0 25px 50px -12px rgba(0, 0, 0, 0.25);

  /* Spacing */
  --section-padding: 5rem 0;
  --container-padding: 0 1.5rem;

  /* Borders */
  --radius: 12px;
  --radius-lg: 20px;
  --radius-full: 9999px;

  /* Transitions */
  --transition: 0.3s ease;
  --transition-slow: 0.5s ease;
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
  overflow-x: hidden;
}

body {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.7;
  overflow-x: hidden;
}

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

a {
  text-decoration: none;
  color: var(--primary);
  transition: color var(--transition);
}

a:hover {
  color: var(--primary-dark);
}

ul {
  list-style: none;
}

/* ========================================
   3. Typography
   ======================================== */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: "Playfair Display", Georgia, serif;
  font-weight: 700;
  line-height: 1.2;
  color: var(--text);
}

h1 {
  font-size: clamp(2.2rem, 5vw, 3.5rem);
}

h2 {
  font-size: clamp(1.8rem, 4vw, 2.5rem);
}

h3 {
  font-size: clamp(1.3rem, 3vw, 1.75rem);
}

h4 {
  font-size: 1.25rem;
}

p {
  margin-bottom: 1rem;
  color: var(--text-light);
}

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

.text-accent {
  color: var(--accent);
}

.text-primary {
  color: var(--primary);
}

/* ========================================
   4. Layout Utilities
   ======================================== */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: var(--container-padding);
}

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

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

.section {
  padding: var(--section-padding);
}

.section-title {
  text-align: center;
  margin-bottom: 1rem;
  position: relative;
}

.section-title::after {
  content: "";
  display: block;
  width: 60px;
  height: 4px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  margin: 0.75rem auto 0;
  border-radius: var(--radius-full);
}

.section-subtitle {
  text-align: center;
  color: var(--text-light);
  max-width: 600px;
  margin: 0 auto 3rem;
  font-size: 1.05rem;
}

.section-dark {
  background: var(--dark-bg);
  color: var(--text-white);
}

.section-dark h2,
.section-dark h3,
.section-dark h4 {
  color: var(--text-white);
}

.section-dark p {
  color: #94a3b8;
}

/* ========================================
   5. Navigation
   ======================================== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  padding: 1rem 0;
  transition: all var(--transition);
  background: transparent;
}

.navbar.scrolled {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: var(--shadow);
  padding: 0.6rem 0;
}

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

.nav-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-family: "Playfair Display", serif;
  font-size: 1.45rem;
  font-weight: 700;
  color: #fff;
  transition: color var(--transition);
}

.navbar.scrolled .nav-brand {
  color: var(--primary-dark);
}

.brand-logo {
  height: 52px;
  width: 52px;
  object-fit: contain;
  filter: drop-shadow(0 2px 5px rgba(0, 0, 0, 0.2));
  transition: transform var(--transition);
}

.nav-brand:hover .brand-logo {
  transform: scale(1.06);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.nav-drawer-header,
.nav-drawer-footer {
  display: none;
}

.nav-links a {
  padding: 0.5rem 0.9rem;
  border-radius: var(--radius);
  font-size: 0.9rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.9);
  transition: all var(--transition);
}

.navbar.scrolled .nav-links a {
  color: var(--text);
}

.nav-links a:hover,
.nav-links a.active {
  color: #fff;
  background: var(--primary);
}

.navbar.scrolled .nav-links a:hover,
.navbar.scrolled .nav-links a.active {
  color: #fff;
  background: var(--primary);
}

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  z-index: 1001;
}

.hamburger span {
  display: block;
  width: 26px;
  height: 3px;
  background: #fff;
  border-radius: 3px;
  transition: all var(--transition);
}

.navbar.scrolled .hamburger span {
  background: var(--text);
}

.hamburger.active span {
  background: #ffffff !important;
}

.hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translate(6px, 6px);
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
}

.hamburger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(6px, -6px);
}

/* Mobile Overlay */
.nav-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  z-index: 998;
}

.nav-overlay.active {
  display: block;
}

/* ========================================
   6. Hero Sections
   ======================================== */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  position: relative;
  background: linear-gradient(135deg,
      var(--primary-dark) 0%,
      var(--primary) 50%,
      #2563eb 100%);
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 20% 50%,
      rgba(59, 130, 246, 0.3) 0%,
      transparent 50%),
    radial-gradient(circle at 80% 20%,
      rgba(245, 158, 11, 0.15) 0%,
      transparent 50%),
    radial-gradient(circle at 50% 80%,
      rgba(30, 58, 138, 0.4) 0%,
      transparent 50%);
  z-index: 1;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='m36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
  padding: 0 1.5rem;
  animation: fadeInUp 1s ease-out;
}

.hero h1 {
  color: #fff;
  font-size: clamp(2.5rem, 6vw, 4rem);
  margin-bottom: 1rem;
  font-weight: 800;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.hero .hero-tagline {
  color: rgba(255, 255, 255, 0.9);
  font-size: clamp(1.05rem, 2.5vw, 1.3rem);
  margin-bottom: 2rem;
  font-weight: 300;
  letter-spacing: 0.5px;
}

.hero .hero-badge {
  display: inline-block;
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(10px);
  padding: 0.5rem 1.5rem;
  border-radius: var(--radius-full);
  color: var(--accent-light);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 1.5rem;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.hero-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* Page Hero — inner pages */
.page-hero {
  min-height: 45vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  position: relative;
  background: linear-gradient(135deg,
      var(--primary-dark) 0%,
      var(--primary) 100%);
  overflow: hidden;
}

.page-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 30% 40%,
      rgba(59, 130, 246, 0.3) 0%,
      transparent 50%),
    radial-gradient(circle at 70% 60%,
      rgba(245, 158, 11, 0.1) 0%,
      transparent 50%);
  z-index: 1;
}

.page-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='m36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  z-index: 1;
}

.page-hero-content {
  position: relative;
  z-index: 2;
  padding: 0 1.5rem;
  padding-top: 4rem;
  animation: fadeInUp 0.8s ease-out;
}

.page-hero h1 {
  color: #fff;
  margin-bottom: 0.75rem;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.page-hero p {
  color: rgba(255, 255, 255, 0.85);
  font-size: 1.1rem;
  max-width: 600px;
  margin: 0 auto;
}

.breadcrumb {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin-bottom: 1rem;
  font-size: 0.9rem;
}

.breadcrumb a {
  color: rgba(255, 255, 255, 0.7);
}

.breadcrumb a:hover {
  color: #fff;
}

.breadcrumb span {
  color: var(--accent);
}

/* ========================================
   7. Cards
   ======================================== */
.card {
  background: var(--surface);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: all var(--transition);
  border: 1px solid var(--border);
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

.card-img {
  height: 220px;
  overflow: hidden;
  background: linear-gradient(135deg, var(--primary-lightest), #c7d2fe);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

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

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

.card-img .img-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  color: var(--primary-lighter);
  font-size: 0.85rem;
  font-weight: 500;
}

.card-img .img-placeholder .placeholder-icon {
  font-size: 2.5rem;
  opacity: 0.7;
}

.card-content {
  padding: 1.5rem;
}

.card-content h3 {
  margin-bottom: 0.5rem;
  font-size: 1.2rem;
}

.card-content p {
  font-size: 0.95rem;
  line-height: 1.6;
}

.card-badge {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 0.75rem;
}

.badge-landmark {
  background: #dbeafe;
  color: #1d4ed8;
}

.badge-nature {
  background: #d1fae5;
  color: #059669;
}

.badge-culture {
  background: #fef3c7;
  color: #d97706;
}

.badge-recreation {
  background: #ede9fe;
  color: #7c3aed;
}

/* Featured Card — Officials captain */
.featured-card {
  background: var(--surface);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  text-align: center;
  box-shadow: var(--shadow-md);
  border: 2px solid var(--primary-lightest);
  transition: all var(--transition);
}

.featured-card:hover {
  border-color: var(--primary-light);
  box-shadow: var(--shadow-lg);
}

.featured-card .card-avatar {
  width: 150px;
  height: 150px;
  border-radius: 50%;
  margin: 0 auto 1.5rem;
  background: linear-gradient(135deg, var(--primary-lightest), #c7d2fe);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3.5rem;
  overflow: hidden;
  border: 4px solid var(--primary-light);
}

.featured-card .card-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.featured-card h3 {
  font-size: 1.4rem;
  margin-bottom: 0.25rem;
}

.featured-card .position {
  color: var(--primary);
  font-weight: 600;
  font-size: 0.95rem;
  margin-bottom: 0.5rem;
}

.featured-card .term {
  color: var(--text-light);
  font-size: 0.85rem;
}

/* Officials Modernized Cards */
.official-lead-card {
  background: var(--surface);
  border-radius: var(--radius-lg);
  padding: 2.5rem 2rem;
  text-align: center;
  box-shadow: var(--shadow-md);
  border: 2px solid var(--primary-light);
  position: relative;
  overflow: hidden;
  margin-bottom: 2.5rem;
  transition: all var(--transition);
}

.official-lead-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 6px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
}

.official-lead-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-2px);
}

.official-badge {
  display: inline-block;
  padding: 0.35rem 0.9rem;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  background: var(--primary-bg);
  color: var(--primary);
  margin-bottom: 0.75rem;
}

.official-lead-name {
  font-size: clamp(1.4rem, 4vw, 2rem);
  font-weight: 700;
  color: var(--text);
  margin-bottom: 0.4rem;
  font-family: "Playfair Display", serif;
}

.official-lead-subtitle {
  color: var(--text-light);
  font-size: 0.95rem;
  margin-bottom: 0;
}

.officials-group-card {
  background: var(--surface);
  border-radius: var(--radius-lg);
  padding: 2.25rem 2rem;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  margin-bottom: 2.5rem;
}

.officials-group-header {
  text-align: center;
  margin-bottom: 1.75rem;
}

.officials-group-title {
  font-size: clamp(1.2rem, 3.5vw, 1.5rem);
  color: var(--text);
  margin-top: 0.35rem;
  font-family: "Playfair Display", serif;
}

.kagawads-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.1rem;
}

.kagawad-tile {
  background: var(--bg);
  padding: 1.1rem 1.25rem;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  transition: all var(--transition);
}

.kagawad-tile:hover {
  border-color: var(--primary);
  background: var(--primary-bg);
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}

.kagawad-num {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--primary);
  letter-spacing: 0.5px;
}

.kagawad-name {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text);
}

.admin-staff-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.25rem;
}

.admin-staff-card {
  background: var(--bg);
  padding: 1.5rem;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  text-align: center;
  transition: all var(--transition);
}

.admin-staff-card:hover {
  border-color: var(--primary);
  background: var(--primary-bg);
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}

.staff-icon-role {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
}

.staff-icon {
  font-size: 1.25rem;
}

.staff-role {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--primary);
  text-transform: uppercase;
}

.staff-name {
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--text);
}

/* Stat Card */
.stat-card {
  background: var(--surface);
  border-radius: var(--radius-lg);
  padding: 2rem;
  text-align: center;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  transition: all var(--transition);
}

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

.stat-card .stat-icon {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.stat-card .stat-number {
  font-family: "Playfair Display", serif;
  font-size: 2rem;
  font-weight: 800;
  color: var(--primary);
  margin-bottom: 0.25rem;
}

.stat-card .stat-label {
  color: var(--text-light);
  font-size: 0.9rem;
  font-weight: 500;
  margin-bottom: 0;
}

/* Service Card */
.service-card {
  background: var(--surface);
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  transition: all var(--transition);
  display: flex;
  gap: 1.25rem;
  align-items: flex-start;
}

.service-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: var(--primary-light);
}

.service-card .service-icon {
  flex-shrink: 0;
  width: 55px;
  height: 55px;
  border-radius: var(--radius);
  background: var(--primary-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
}

.service-card h4 {
  margin-bottom: 0.4rem;
  font-family: "Inter", sans-serif;
  font-weight: 600;
  color: black;
}

.service-card p {
  font-size: 0.9rem;
  margin-bottom: 0;
  color: var(--text);
}

/* Info Card */
.info-card {
  background: var(--surface);
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
}

.info-card h3 {
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.info-card ul li {
  padding: 0.6rem 0;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--text-light);
  font-size: 0.95rem;
}

.info-card ul li:last-child {
  border-bottom: none;
}

/* Quick Link Card — Home page */
.quick-link-card {
  background: var(--surface);
  border-radius: var(--radius-lg);
  padding: 2rem;
  text-align: center;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  transition: all var(--transition);
  cursor: pointer;
  display: block;
  color: black;
}

.quick-link-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
  border-color: var(--primary-light);
  color: black;
}

.quick-link-card .ql-icon {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.quick-link-card h3 {
  font-size: 1.1rem;
  margin-bottom: 0.4rem;
  color: black;
}

.quick-link-card p {
  font-size: 0.85rem;
  margin-bottom: 0;
  color: black;
}

/* ========================================
   8. Buttons
   ======================================== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.8rem 1.8rem;
  border-radius: var(--radius-full);
  font-family: "Inter", sans-serif;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  border: 2px solid transparent;
  transition: all var(--transition);
}

.btn-primary {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}

.btn-primary:hover {
  background: var(--primary-dark);
  border-color: var(--primary-dark);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(29, 78, 216, 0.4);
}

.btn-outline {
  background: transparent;
  color: #fff;
  border-color: rgba(255, 255, 255, 0.5);
}

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

.btn-accent {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}

.btn-accent:hover {
  background: var(--accent-dark);
  border-color: var(--accent-dark);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(245, 158, 11, 0.4);
}

/* ========================================
   9. Timeline
   ======================================== */
.timeline {
  position: relative;
  max-width: 800px;
  margin: 0 auto;
  padding: 2rem 0;
}

.timeline::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 3px;
  background: linear-gradient(to bottom, var(--primary), var(--accent));
  transform: translateX(-50%);
  border-radius: var(--radius-full);
}

.timeline-item {
  position: relative;
  width: 50%;
  padding: 1.5rem 2.5rem;
}

.timeline-item:nth-child(odd) {
  left: 0;
  text-align: right;
}

.timeline-item:nth-child(even) {
  left: 50%;
}

.timeline-item::before {
  content: "";
  position: absolute;
  top: 2rem;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--primary);
  border: 3px solid var(--surface);
  box-shadow: var(--shadow);
  z-index: 1;
}

.timeline-item:nth-child(odd)::before {
  right: -8px;
}

.timeline-item:nth-child(even)::before {
  left: -8px;
}

.timeline-content {
  background: var(--surface);
  padding: 1.5rem;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
}

.timeline-content .year {
  display: inline-block;
  background: var(--primary);
  color: #fff;
  padding: 0.2rem 0.8rem;
  border-radius: var(--radius-full);
  font-size: 0.8rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.timeline-content h4 {
  margin-bottom: 0.4rem;
  font-family: "Inter", sans-serif;
  font-weight: 600;
  color: black;
}

.timeline-content p {
  font-size: 0.9rem;
  margin-bottom: 0;
  color: var(--text);
}

/* ========================================
   10. Org Chart
   ======================================== */
.org-chart {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
  padding: 2rem 0;
}

.org-level {
  display: flex;
  gap: 1.5rem;
  justify-content: center;
  flex-wrap: wrap;
  position: relative;
}

.org-level::before {
  content: "";
  position: absolute;
  top: -1.5rem;
  left: 50%;
  width: 2px;
  height: 1.5rem;
  background: var(--primary-lighter);
}

.org-level:first-child::before {
  display: none;
}

.org-member {
  background: var(--surface);
  border: 2px solid var(--primary-lightest);
  border-radius: var(--radius);
  padding: 1rem 1.5rem;
  text-align: center;
  min-width: 160px;
  transition: all var(--transition);
}

.org-member:hover {
  border-color: var(--primary-light);
  box-shadow: var(--shadow);
}

.org-member.captain {
  border-color: var(--accent);
  background: linear-gradient(135deg, var(--accent-light), var(--surface));
}

.org-member h4 {
  font-family: "Inter", sans-serif;
  font-size: 0.95rem;
  font-weight: 600;
  margin-bottom: 0.15rem;
}

.org-member p {
  font-size: 0.8rem;
  margin-bottom: 0;
  color: var(--primary);
  font-weight: 500;
}

/* ========================================
   11. Gallery & Lightbox
   ======================================== */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
}

.gallery-item {
  border-radius: var(--radius);
  overflow: hidden;
  cursor: pointer;
  position: relative;
  height: 250px;
  background: linear-gradient(135deg, var(--primary-lightest), #c7d2fe);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition);
}

.gallery-item:hover {
  transform: scale(1.02);
  box-shadow: var(--shadow-lg);
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.gallery-item .gallery-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 1.5rem;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.7), transparent);
  color: #fff;
  transform: translateY(100%);
  transition: transform var(--transition);
}

.gallery-item:hover .gallery-overlay {
  transform: translateY(0);
}

.gallery-item .gallery-overlay p {
  color: #fff;
  font-size: 0.9rem;
  margin-bottom: 0;
}

/* Lightbox Modal */
.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.92);
  z-index: 2000;
  align-items: center;
  justify-content: center;
}

.lightbox.active {
  display: flex;
}

.lightbox-content {
  max-width: 90%;
  max-height: 85vh;
  position: relative;
}

.lightbox-content img {
  max-width: 100%;
  max-height: 85vh;
  object-fit: contain;
  border-radius: var(--radius);
}

.lightbox-close {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(10px);
  border: none;
  color: #fff;
  font-size: 1.8rem;
  cursor: pointer;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition);
  z-index: 2001;
}

.lightbox-close:hover {
  background: rgba(255, 255, 255, 0.3);
}

.lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(10px);
  border: none;
  color: #fff;
  font-size: 1.5rem;
  cursor: pointer;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition);
}

.lightbox-nav:hover {
  background: rgba(255, 255, 255, 0.3);
}

.lightbox-prev {
  left: 1.5rem;
}

.lightbox-next {
  right: 1.5rem;
}

.lightbox-caption {
  position: absolute;
  bottom: 1.5rem;
  left: 50%;
  transform: translateX(-50%);
  color: #fff;
  font-size: 1rem;
  text-align: center;
  background: rgba(0, 0, 0, 0.5);
  padding: 0.5rem 1.5rem;
  border-radius: var(--radius-full);
  backdrop-filter: blur(10px);
  white-space: nowrap;
}

/* ========================================
   12. Filter Buttons
   ======================================== */
.filter-buttons {
  display: flex;
  gap: 0.5rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 2.5rem;
}

.filter-btn {
  padding: 0.5rem 1.2rem;
  border-radius: var(--radius-full);
  border: 2px solid var(--border);
  background: var(--surface);
  color: var(--text-light);
  font-family: "Inter", sans-serif;
  font-size: 0.85rem;
  font-weight: 500;
  cursor: pointer;
  transition: all var(--transition);
}

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

.filter-btn.active {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
}

/* ========================================
   13. Events
   ======================================== */
.event-card {
  background: var(--surface);
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  display: flex;
  gap: 1.5rem;
  align-items: flex-start;
  transition: all var(--transition);
}

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

.event-date {
  flex-shrink: 0;
  width: 70px;
  height: 70px;
  border-radius: var(--radius);
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: #fff;
}

.event-date .month {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.event-date .icon {
  font-size: 1.5rem;
}

.event-info h3 {
  font-size: 1.2rem;
  margin-bottom: 0.4rem;
}

.event-info p {
  font-size: 0.9rem;
  margin-bottom: 0;
}

.event-info .event-tag {
  display: inline-block;
  padding: 0.15rem 0.6rem;
  background: var(--primary-bg);
  color: var(--primary);
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 600;
  margin-top: 0.5rem;
}

/* ========================================
   14. Facilities
   ======================================== */
.facilities-layout {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 2.5rem;
  align-items: start;
}

.facilities-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  margin-bottom: 2.5rem;
}

.health-facilities-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

.facility-card {
  background: var(--surface);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  transition: all var(--transition);
}

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

.facility-card .facility-icon {
  width: 50px;
  height: 50px;
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

.facility-card .facility-icon.school {
  background: #dbeafe;
}

.facility-card .facility-icon.health {
  background: #fce7f3;
}

.facility-card h4 {
  font-family: "Inter", sans-serif;
  font-weight: 600;
  margin-bottom: 0.4rem;
}

.facility-card p {
  font-size: 0.9rem;
  margin-bottom: 0.3rem;
}

.facility-card .facility-tag {
  display: inline-block;
  padding: 0.15rem 0.6rem;
  border-radius: var(--radius-full);
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  margin-bottom: 0.75rem;
}

.facility-card .facility-tag.public {
  background: #d1fae5;
  color: #059669;
}

.facility-card .facility-tag.private {
  background: #ede9fe;
  color: #7c3aed;
}

/* Hotlines */
.hotline-card {
  background: linear-gradient(135deg, #fef2f2, #fee2e2);
  border-radius: var(--radius-lg);
  padding: 2rem;
  border: 1px solid #fecaca;
}

.hotline-card h3 {
  color: #dc2626;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.hotline-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.7rem 0;
  border-bottom: 1px solid #fecaca;
  gap: 0.5rem;
}

.hotline-item:last-child {
  border-bottom: none;
}

.hotline-item .name {
  font-weight: 500;
  color: var(--text);
  font-size: 0.9rem;
}

.hotline-item .number {
  font-weight: 700;
  color: #dc2626;
  font-size: 0.9rem;
  text-decoration: none;
  background: rgba(220, 38, 38, 0.08);
  padding: 0.25rem 0.6rem;
  border-radius: var(--radius-sm);
  transition: all var(--transition);
  display: inline-block;
  white-space: nowrap;
}

.hotline-item .number:hover {
  background: #dc2626;
  color: #fff;
  text-decoration: none;
  transform: scale(1.03);
}

.hotline-911 {
  display: block;
  text-decoration: none;
  text-align: center;
  padding: 1.5rem 1.25rem;
  background: linear-gradient(135deg, #ef4444, #dc2626);
  border-radius: var(--radius);
  color: #fff;
  margin-bottom: 1.5rem;
  box-shadow: 0 4px 14px rgba(220, 38, 38, 0.35);
  transition: transform var(--transition), box-shadow var(--transition);
}

.hotline-911:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(220, 38, 38, 0.45);
  color: #fff;
}

.hotline-911 .big-number {
  font-size: 3rem;
  font-weight: 800;
  font-family: "Playfair Display", serif;
}

.hotline-911 p {
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 0;
  font-size: 0.85rem;
}

/* ========================================
   15. Contact & Map
   ======================================== */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}

.contact-item {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  padding: 1.25rem;
  border-radius: var(--radius);
  background: var(--primary-bg);
  transition: all var(--transition);
}

.contact-item:hover {
  background: var(--primary-lightest);
}

.contact-item .contact-icon {
  flex-shrink: 0;
  width: 45px;
  height: 45px;
  border-radius: 50%;
  background: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
}

.contact-item h4 {
  font-family: "Inter", sans-serif;
  font-weight: 600;
  font-size: 0.95rem;
  margin-bottom: 0.2rem;
  color: black;
}

.contact-item p {
  font-size: 0.9rem;
  margin-bottom: 0;
  color: var(--text);
}

.map-container {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  border: 3px solid var(--border);
  height: 400px;
}

.map-container iframe {
  width: 100%;
  height: 100%;
  border: none;
}

/* ========================================
   16. About Page Specifics
   ======================================== */
.about-intro {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.about-intro-text h2 {
  text-align: left;
  margin-bottom: 1rem;
}

.about-intro-text h2::after {
  margin: 0.75rem 0 0;
}

.about-intro-img {
  border-radius: var(--radius-lg);
  overflow: hidden;
  height: 350px;
  background: linear-gradient(135deg, var(--primary-lightest), #c7d2fe);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-md);
}

.about-intro-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Vision/Mission Box */
.vm-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}

.vm-box {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  border-radius: var(--radius-lg);
  padding: 3rem;
  color: #fff;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.vm-box::before {
  content: "";
  position: absolute;
  top: -50%;
  right: -20%;
  width: 300px;
  height: 300px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
}

.vm-box h3 {
  color: #fff;
  margin-bottom: 1rem;
  position: relative;
}

.vm-box p {
  color: rgba(255, 255, 255, 0.9);
  font-size: 1.05rem;
  line-height: 1.8;
  max-width: 700px;
  margin: 0 auto;
  position: relative;
}

/* ========================================
   17. Footer
   ======================================== */
.footer {
  background: var(--dark-bg);
  color: var(--text-white);
  padding: 4rem 0 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.5fr;
  gap: 2rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-col h3 {
  color: #fff;
  font-size: 1.1rem;
  margin-bottom: 1.25rem;
  font-family: "Inter", sans-serif;
  font-weight: 600;
  position: relative;
}

.footer-col h3::after {
  content: "";
  display: block;
  width: 30px;
  height: 3px;
  background: var(--accent);
  margin-top: 0.5rem;
  border-radius: var(--radius-full);
}

.footer-col p {
  color: #94a3b8;
  font-size: 0.9rem;
  line-height: 1.8;
}

.footer-col ul li {
  margin-bottom: 0.5rem;
}

.footer-col ul li a {
  color: #94a3b8;
  font-size: 0.9rem;
  transition: all var(--transition);
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
}

.footer-col ul li a:hover {
  color: var(--accent);
  padding-left: 5px;
}

.footer-bottom {
  text-align: center;
  padding: 1.5rem 0;
}

.footer-bottom p {
  color: #64748b;
  font-size: 0.85rem;
  margin-bottom: 0;
}

/* ========================================
   18. Animations
   ======================================== */
/* Progressive Enhancement for Scroll Animations [ITE 387: Lab 02]
   Default to visible so pages NEVER show blank white if JS is delayed or blocked */
.animate-on-scroll {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.js-active .animate-on-scroll:not(.animated) {
  opacity: 0;
  transform: translateY(30px);
}

.js-active .animate-on-scroll.animated {
  opacity: 1;
  transform: translateY(0);
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

@keyframes scaleIn {
  from {
    opacity: 0;
    transform: scale(0.9);
  }

  to {
    opacity: 1;
    transform: scale(1);
  }
}

/* ========================================
   19. Media Queries
   ======================================== */

/* Tablet Landscape */
@media (max-width: 1024px) {
  .grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }

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

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

/* Tablet Portrait */
@media (max-width: 768px) {
  .hamburger {
    display: flex;
  }

  .brand-logo {
    height: 46px;
    width: 46px;
  }

  .nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    width: 310px;
    max-width: 86vw;
    height: 100vh;
    background: linear-gradient(180deg, #0b1329 0%, #0f172a 100%);
    flex-direction: column;
    padding: 1.5rem 1.25rem 2rem;
    gap: 0.35rem;
    transition: right var(--transition);
    box-shadow: -8px 0 30px rgba(0, 0, 0, 0.5);
    z-index: 1000;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }

  .nav-links.active {
    right: 0;
  }

  /* Mobile Drawer Header */
  .nav-drawer-header {
    display: flex !important;
    align-items: center;
    gap: 0.85rem;
    padding: 0.5rem 0.25rem 1.25rem;
    margin-bottom: 0.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  }

  .nav-drawer-logo {
    height: 44px;
    width: 44px;
    object-fit: contain;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
  }

  .nav-drawer-title {
    font-family: "Playfair Display", serif;
    font-size: 1.15rem;
    font-weight: 700;
    color: #ffffff;
    line-height: 1.2;
  }

  .nav-drawer-sub {
    font-size: 0.72rem;
    color: var(--primary-lighter);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
  }

  .nav-links a {
    color: rgba(255, 255, 255, 0.88) !important;
    padding: 0.8rem 1rem;
    width: 100%;
    border-radius: var(--radius);
    min-height: 48px;
    display: flex;
    align-items: center;
    gap: 0.65rem;
    font-size: 0.95rem;
    font-weight: 500;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: all var(--transition);
  }

  /* Emoji Icons in Drawer for Fast Visual Wayfinding */
  .nav-links a[href="index.html"]::before { content: "🏠 "; }
  .nav-links a[href="about.html"]::before { content: "🏛️ "; }
  .nav-links a[href="officials.html"]::before { content: "👥 "; }
  .nav-links a[href="attractions.html"]::before { content: "🌄 "; }
  .nav-links a[href="services.html"]::before { content: "📑 "; }
  .nav-links a[href="gallery.html"]::before { content: "📸 "; }
  .nav-links a[href="events.html"]::before { content: "📅 "; }
  .nav-links a[href="facilities.html"]::before { content: "🏢 "; }

  .nav-links a:hover {
    background: rgba(255, 255, 255, 0.08);
    color: #fff !important;
    transform: translateX(4px);
  }

  .nav-links a.active {
    background: var(--primary) !important;
    color: #fff !important;
    font-weight: 600;
    border-color: var(--primary-light);
    box-shadow: 0 4px 12px rgba(29, 78, 216, 0.35);
  }

  /* Mobile Drawer Footer */
  .nav-drawer-footer {
    display: flex !important;
    flex-direction: column;
    gap: 0.6rem;
    margin-top: auto;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
  }

  .drawer-emergency-btn {
    display: flex !important;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #ef4444, #dc2626) !important;
    color: #fff !important;
    font-weight: 700 !important;
    padding: 0.75rem 1rem !important;
    border-radius: var(--radius) !important;
    text-align: center;
    text-decoration: none;
    box-shadow: 0 4px 10px rgba(220, 38, 38, 0.35);
  }

  .drawer-contact-line {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.65);
    text-align: center;
  }

  .facilities-layout {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .grid-2,
  .grid-3 {
    grid-template-columns: 1fr;
  }

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

  .hero {
    min-height: 90vh;
  }

  .page-hero {
    min-height: 35vh;
  }

  .hero-buttons {
    flex-direction: column;
    align-items: center;
  }

  /* Timeline mobile */
  .timeline::before {
    left: 20px;
  }

  .timeline-item {
    width: 100%;
    left: 0 !important;
    text-align: left !important;
    padding-left: 50px;
    padding-right: 1rem;
  }

  .timeline-item::before {
    left: 12px !important;
    right: auto !important;
  }

  /* About intro */
  .about-intro {
    grid-template-columns: 1fr;
  }

  .about-intro-text h2 {
    text-align: center;
  }

  .about-intro-text h2::after {
    margin: 0.75rem auto 0;
  }

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

  .vm-box {
    padding: 2rem;
  }

  /* Footer */
  .footer-grid {
    grid-template-columns: 1fr;
  }

  /* Events */
  .event-card {
    flex-direction: column;
  }

  /* Sections */
  .section {
    padding: 3.5rem 0;
  }

  .featured-card {
    padding: 1.5rem;
  }

  /* Org chart */
  .org-chart {
    align-items: stretch;
  }

  .org-level {
    flex-direction: column;
    align-items: stretch;
  }

  /* Service cards */
  .service-card {
    flex-direction: column;
  }
}

/* Mobile Wide */
@media (max-width: 600px) {
  .facilities-grid {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }

  .kagawads-grid {
    grid-template-columns: 1fr;
    gap: 0.75rem;
  }

  .admin-staff-grid {
    grid-template-columns: 1fr;
    gap: 0.9rem;
  }

  .official-lead-card {
    padding: 1.75rem 1.25rem;
  }

  .officials-group-card {
    padding: 1.5rem 1.1rem;
  }

  .hotline-item {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.35rem;
    padding: 0.75rem 0;
  }

  .hotline-item .number {
    width: 100%;
    text-align: center;
    padding: 0.4rem;
  }
}

/* Mobile */
@media (max-width: 480px) {
  html {
    font-size: 14px;
  }

  .container {
    padding: 0 1rem;
  }

  .hero {
    min-height: 85vh;
  }

  .stat-card {
    padding: 1.25rem;
  }

  .gallery-grid {
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
  }

  .gallery-item {
    height: 160px;
  }

  .nav-brand {
    font-size: 1.2rem;
    gap: 0.5rem;
  }

  .brand-logo {
    height: 42px;
    width: 42px;
  }

  .nav-links {
    width: 100%;
    max-width: 100vw;
  }

  .feedback-card {
    padding: 1.25rem;
  }
}

/* ============================================================================
   [ITE 387: Lab 02 - Dynamic UI Controls, Forms & Notifications]
   ============================================================================ */

/* ---- Toast Notification Container & Messages ---- */
.toast-container {
  position: fixed;
  top: 1.5rem;
  right: 1.5rem;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  pointer-events: none;
}

.toast-message {
  pointer-events: auto;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  background: var(--surface);
  color: var(--text);
  padding: 0.9rem 1.25rem;
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  border-left: 4px solid var(--primary);
  font-size: 0.95rem;
  font-weight: 500;
  opacity: 0;
  transform: translateX(50px);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  max-width: 400px;
}

.toast-message.show {
  opacity: 1;
  transform: translateX(0);
}

.toast-icon {
  font-size: 1.25rem;
  flex-shrink: 0;
}

.toast-success {
  border-left-color: #10b981;
}

.toast-warning {
  border-left-color: #f59e0b;
}

.toast-error {
  border-left-color: #ef4444;
}

.toast-info {
  border-left-color: var(--primary);
}

/* ---- Resident Feedback & Inquiry Form ---- */
.feedback-card {
  background: var(--surface);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border);
  max-width: 800px;
  margin: 0 auto;
}

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

.feedback-form .form-group {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.feedback-form .form-group.full-width {
  grid-column: 1 / -1;
}

.feedback-form .form-label {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text);
}

.feedback-form .form-label .required {
  color: #ef4444;
  margin-left: 2px;
}

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

.feedback-form .form-input:focus,
.feedback-form .form-select:focus,
.feedback-form .form-textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(29, 78, 216, 0.15);
  background: var(--surface);
}

.feedback-form .form-textarea {
  resize: vertical;
  min-height: 120px;
}

.feedback-form .form-actions {
  display: flex;
  justify-content: flex-end;
  gap: 1rem;
  margin-top: 1.5rem;
}

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

  .feedback-card {
    padding: 1.5rem;
  }
}
