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

/* ==========================================
   DESIGN TOKENS & RESET
   ========================================== */
:root {
  --font-heading: 'Outfit', sans-serif;
  --font-body: 'Plus Jakarta Sans', sans-serif;
  
  /* Color Palette */
  --primary: #2563eb;
  --primary-hover: #1d4ed8;
  --primary-rgb: 37, 99, 235;
  --accent: #3b82f6;
  --accent-teal: #0d9488;
  --bg-light: #f8fafc;
  --bg-dark: #0a192f;
  --bg-darker: #020c1b;
  --text-dark: #0f172a;
  --text-light: #f8fafc;
  --text-muted: #64748b;
  --text-muted-light: #94a3b8;
  --white: #ffffff;
  
  /* Glassmorphism */
  --glass-bg: rgba(255, 255, 255, 0.75);
  --glass-bg-dark: rgba(15, 23, 42, 0.7);
  --glass-border: rgba(255, 255, 255, 0.45);
  --glass-border-dark: rgba(255, 255, 255, 0.1);
  --glass-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.08);
  
  /* Layout & Spacing */
  --header-height: 80px;
  --transition-smooth: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-fast: all 0.2s ease;
  --border-radius-sm: 8px;
  --border-radius-md: 16px;
  --border-radius-lg: 24px;
}

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

html, body {
  width: 100%;
  overflow-x: hidden;
  background-color: var(--bg-light);
  color: var(--text-dark);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* Custom Scrollbar for Lenis */
html.lenis {
  height: auto;
}

.lenis-smooth {
  scroll-behavior: auto;
}

::-webkit-scrollbar {
  width: 10px;
}
::-webkit-scrollbar-track {
  background: var(--bg-light);
}
::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 5px;
}
::-webkit-scrollbar-thumb:hover {
  background: #94a3b8;
}

/* ==========================================
   PRELOADER
   ========================================== */
.preloader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: var(--bg-darker);
  z-index: 9999;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  overflow: hidden;
}

.preloader-logo {
  color: var(--text-light);
  font-family: var(--font-heading);
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 20px;
  letter-spacing: -0.05em;
  opacity: 0;
  transform: translateY(30px);
}

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

.preloader-bar-wrap {
  width: 200px;
  height: 2px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 2px;
  position: relative;
  overflow: hidden;
  margin-bottom: 15px;
}

.preloader-bar {
  width: 0%;
  height: 100%;
  background: linear-gradient(90deg, var(--accent), var(--accent-teal));
  position: absolute;
  top: 0;
  left: 0;
}

.preloader-percent {
  font-family: var(--font-heading);
  color: var(--text-muted-light);
  font-size: 1rem;
  font-weight: 500;
}

/* ==========================================
   TYPOGRAPHY & UTILITIES
   ========================================== */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  color: var(--text-dark);
  font-weight: 700;
  line-height: 1.2;
}

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

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

/* Custom Mouse Follower */
.custom-cursor {
  width: 10px;
  height: 10px;
  background: var(--primary);
  border-radius: 50%;
  position: fixed;
  top: 0;
  left: 0;
  transform: translate(-50%, -50%);
  pointer-events: none;
  z-index: 10000;
  transition: width 0.3s, height 0.3s, background-color 0.3s;
}

.custom-cursor-ring {
  width: 40px;
  height: 40px;
  border: 1px solid rgba(37, 99, 235, 0.4);
  border-radius: 50%;
  position: fixed;
  top: 0;
  left: 0;
  transform: translate(-50%, -50%);
  pointer-events: none;
  z-index: 9999;
}

.cursor-hover .custom-cursor {
  width: 20px;
  height: 20px;
  background: rgba(37, 99, 235, 0.3);
}

.cursor-hover .custom-cursor-ring {
  width: 60px;
  height: 60px;
  border-color: var(--primary);
  background: rgba(37, 99, 235, 0.05);
}

/* Animated Gradient Background */
.animated-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  overflow: hidden;
  background: radial-gradient(circle at 10% 20%, rgba(230, 240, 255, 0.6) 0%, rgba(255, 255, 255, 0.8) 90%);
}

.animated-bg::before {
  content: '';
  position: absolute;
  width: 150%;
  height: 150%;
  top: -25%;
  left: -25%;
  background: radial-gradient(circle at 30% 30%, rgba(59, 130, 246, 0.15), transparent 40%),
              radial-gradient(circle at 70% 60%, rgba(13, 148, 136, 0.15), transparent 40%);
  filter: blur(80px);
  animation: gradientMove 20s infinite alternate ease-in-out;
}

@keyframes gradientMove {
  0% {
    transform: rotate(0deg) translate(0, 0);
  }
  100% {
    transform: rotate(360deg) translate(-50px, 50px);
  }
}

/* Floating Shapes */
.floating-shape {
  position: absolute;
  background: radial-gradient(circle, rgba(59, 130, 246, 0.2) 0%, rgba(59, 130, 246, 0) 70%);
  border-radius: 50%;
  filter: blur(40px);
  pointer-events: none;
  z-index: 0;
}

.shape-1 { width: 400px; height: 400px; top: 10%; left: -10%; animation: floatShape 25s infinite alternate ease-in-out; }
.shape-2 { width: 500px; height: 500px; bottom: 10%; right: -10%; animation: floatShape 30s infinite alternate-reverse ease-in-out; }

@keyframes floatShape {
  0% { transform: translateY(0) scale(1); }
  50% { transform: translateY(-40px) scale(1.1); }
  100% { transform: translateY(20px) scale(0.95); }
}

/* Scroll Progress Bar */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  z-index: 1001;
}

.scroll-progress-bar {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--primary), var(--accent-teal));
}

/* Glassmorphism Card styling */
.glass-card {
  background: var(--glass-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--glass-border);
  box-shadow: var(--glass-shadow);
  border-radius: var(--border-radius-md);
  padding: 2.5rem;
  transition: var(--transition-smooth);
}

.glass-card:hover {
  border-color: rgba(37, 99, 235, 0.2);
  transform: translateY(-5px);
  box-shadow: 0 12px 40px 0 rgba(31, 38, 135, 0.12);
}

.glass-card-dark {
  background: var(--glass-bg-dark);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--glass-border-dark);
  box-shadow: var(--glass-shadow);
  border-radius: var(--border-radius-md);
  padding: 2.5rem;
  color: var(--text-light);
}

/* Container */
.container {
  width: 100%;
  max-width: 1280px;
  margin-right: auto;
  margin-left: auto;
  padding-right: 2rem;
  padding-left: 2rem;
  position: relative;
  z-index: 1;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 0.85rem 1.75rem;
  border-radius: 50px;
  cursor: pointer;
  transition: var(--transition-smooth);
  border: none;
  gap: 8px;
}

.btn-primary {
  background: var(--primary);
  color: var(--white);
  box-shadow: 0 4px 15px rgba(37, 99, 235, 0.2);
}

.btn-primary:hover {
  background: var(--primary-hover);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(37, 99, 235, 0.3);
}

.btn-secondary {
  background: rgba(37, 99, 235, 0.08);
  color: var(--primary);
  border: 1px solid rgba(37, 99, 235, 0.2);
}

.btn-secondary:hover {
  background: rgba(37, 99, 235, 0.15);
  transform: translateY(-2px);
}

.btn-white {
  background: var(--white);
  color: var(--text-dark);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.btn-white:hover {
  background: #f1f5f9;
  transform: translateY(-2px);
}

.btn-glass {
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(5px);
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: var(--white);
}

.btn-glass:hover {
  background: rgba(255, 255, 255, 0.25);
  transform: translateY(-2px);
}

/* Section Common Layout */
.section {
  padding: 7.5rem 0;
  position: relative;
  overflow: hidden;
}

/* Tighten the gap between the homepage Events strip and the About/Welcome Home
   section that follows it — both sections keep their normal top spacing
   (against the hero above / highlights below), only the shared seam is reduced. */
#events {
  padding-bottom: 3rem;
}
#about {
  padding-top: 2.5rem;
}

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

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

.section-header {
  max-width: 650px;
  margin-bottom: 4rem;
}

.section-header .sub {
  display: inline-block;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 0.75rem;
}

.section-header h2 {
  font-size: 2.75rem;
  letter-spacing: -0.03em;
  margin-bottom: 1.25rem;
}

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

.section-dark .section-header .sub {
  color: var(--accent);
}

.section-dark .section-header p {
  color: var(--text-muted-light);
}

/* ==========================================
   NAVIGATION BAR
   ========================================== */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--header-height);
  z-index: 1000;
  display: flex;
  align-items: center;
  transition: var(--transition-smooth);
}

.header-active {
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  height: 70px;
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.03);
  border-bottom: 1px solid rgba(255, 255, 255, 0.4);
}

.header-active-dark {
  background: rgba(10, 25, 47, 0.8);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  height: 70px;
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

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

.logo {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.35rem;
  letter-spacing: -0.04em;
  display: flex;
  align-items: center;
  gap: 8px;
}

.logo span {
  color: var(--primary);
}

.logo-icon {
  width: 32px;
  height: 32px;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-size: 0.9rem;
}

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

.nav-links a {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-dark);
  position: relative;
  padding: 0.5rem 0;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0%;
  height: 2px;
  background: var(--primary);
  transition: var(--transition-fast);
}

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

.header-dark-mode .nav-links a {
  color: var(--text-light);
}

.header-dark-mode .nav-links a::after {
  background: var(--accent);
}

/* Hamburger menu for mobile */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  z-index: 1002;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text-dark);
  margin: 5px 0;
  transition: var(--transition-fast);
}

.header-dark-mode .nav-toggle span {
  background: var(--text-light);
}

.nav-toggle.open span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.nav-toggle.open span:nth-child(2) {
  opacity: 0;
}

.nav-toggle.open span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* ==========================================
   HERO BANNER
   ========================================== */
.hero {
  height: 100vh;
  width: 100%;
  position: relative;
  display: flex;
  align-items: center;
  overflow: hidden;
  color: var(--white);
  background: var(--bg-darker);
}

.hero-parallax-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 120%; /* Extra height for parallax */
  z-index: 0;
}

.hero-parallax-bg::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to bottom, rgba(2, 12, 27, 0.4) 0%, rgba(2, 12, 27, 0.85) 100%);
  z-index: 1;
}

.hero-parallax-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 1280px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  padding: 0.5rem 1rem;
  border-radius: 50px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 2rem;
  transform: translateY(30px);
  opacity: 0;
}

.hero h1 {
  font-size: 4.5rem;
  letter-spacing: -0.03em;
  margin-bottom: 1.5rem;
  color: var(--white);
  line-height: 1.1;
  font-weight: 800;
  transform: translateY(30px);
  opacity: 0;
}

.hero p {
  font-size: 1.25rem;
  color: rgba(248, 250, 252, 0.8);
  margin-bottom: 2.5rem;
  max-width: 600px;
  transform: translateY(30px);
  opacity: 0;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  transform: translateY(30px);
  opacity: 0;
}

.hero-scroll-indicator {
  position: absolute;
  bottom: 2.5rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: rgba(255, 255, 255, 0.5);
  gap: 10px;
  pointer-events: none;
}

.hero-scroll-mouse {
  width: 22px;
  height: 36px;
  border: 2px solid rgba(255, 255, 255, 0.5);
  border-radius: 20px;
  position: relative;
}

.hero-scroll-wheel {
  width: 4px;
  height: 8px;
  background: var(--white);
  border-radius: 2px;
  position: absolute;
  top: 6px;
  left: 50%;
  transform: translateX(-50%);
  animation: scrollWheel 1.5s infinite;
}

@keyframes scrollWheel {
  0% { top: 6px; opacity: 1; }
  100% { top: 18px; opacity: 0; }
}

/* ==========================================
   DYNAMIC INTERNAL BANNER
   ========================================== */
.internal-banner {
  height: 45vh;
  min-height: 350px;
  position: relative;
  display: flex;
  align-items: center;
  color: var(--white);
  background: var(--bg-darker);
  overflow: hidden;
  padding-top: var(--header-height);
}

.internal-banner-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 120%; /* For parallax */
  z-index: 0;
}

.internal-banner-bg::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to bottom, rgba(2, 12, 27, 0.5) 0%, rgba(2, 12, 27, 0.85) 100%);
  z-index: 1;
}

.internal-banner-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.internal-banner-content {
  position: relative;
  z-index: 2;
}

.breadcrumbs {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.9rem;
  color: var(--text-muted-light);
  list-style: none;
  margin-bottom: 1rem;
}

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

.breadcrumbs a:hover {
  color: var(--accent);
}

.breadcrumbs li:not(:last-child)::after {
  content: '/';
  margin-left: 8px;
  color: rgba(255, 255, 255, 0.3);
}

.internal-banner h1 {
  font-size: 3.5rem;
  color: var(--white);
  letter-spacing: -0.03em;
  margin: 0;
  font-weight: 800;
}

/* ==========================================
   ABOUT SECTION / PAGE
   ========================================== */
.about-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 5rem;
  align-items: center;
}

.about-content h3 {
  font-size: 1.75rem;
  margin-bottom: 1.5rem;
  font-weight: 600;
}

.about-content p {
  color: var(--text-muted);
  font-size: 1.05rem;
  margin-bottom: 1.5rem;
}

.about-image-wrap {
  position: relative;
  border-radius: var(--border-radius-lg);
  overflow: hidden;
  box-shadow: 0 20px 40px rgba(0,0,0,0.05);
}

.about-image-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.about-image-wrap:hover img {
  transform: scale(1.05);
}

/* ==========================================
   STATS HIGHLIGHTS
   ========================================== */
.highlights-wrap {
  background: var(--navy-dark);
  color: var(--white);
  padding: 5rem 0;
  border-radius: var(--border-radius-lg);
  margin-top: 3rem;
}

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

.stat-item h4 {
  font-size: 3.5rem;
  font-weight: 800;
  color: var(--accent);
  margin-bottom: 0.5rem;
  font-family: var(--font-heading);
}

.stat-item p {
  color: var(--text-muted-light);
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 600;
}

/* ==========================================
   AMENITIES GRID
   ========================================== */
.amenities-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.amenity-card {
  border-radius: var(--border-radius-md);
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0,0,0,0.02);
  transition: var(--transition-smooth);
}

.amenity-img {
  height: 240px;
  overflow: hidden;
  position: relative;
}

.amenity-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--transition-smooth);
}

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

.amenity-info {
  padding: 2rem;
}

.amenity-info i {
  font-size: 1.5rem;
  color: var(--primary);
  margin-bottom: 1.25rem;
}

.amenity-info h3 {
  font-size: 1.35rem;
  margin-bottom: 0.75rem;
  font-weight: 600;
}

.amenity-info p {
  color: var(--text-muted);
  font-size: 0.95rem;
}

/* ==========================================
   EVENTS CAROUSEL (SWIPER)
   ========================================== */
.events-carousel-wrap {
  position: relative;
  padding: 1rem 0;
}

.swiper-container {
  width: 100%;
  padding-bottom: 4rem !important;
}

.event-slide {
  height: auto;
}

.event-card {
  height: 100%;
  display: flex;
  flex-direction: column;
}

.event-image {
  height: 220px;
  overflow: hidden;
  border-radius: var(--border-radius-md);
  margin-bottom: 1.5rem;
}

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

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

.event-date {
  display: inline-block;
  background: rgba(37, 99, 235, 0.08);
  color: var(--primary);
  padding: 0.35rem 0.85rem;
  border-radius: 50px;
  font-size: 0.8rem;
  font-weight: 700;
  margin-bottom: 1rem;
  text-transform: uppercase;
}

.event-card h3 {
  font-size: 1.35rem;
  margin-bottom: 0.75rem;
}

.event-card p {
  color: var(--text-muted);
  font-size: 0.95rem;
  flex-grow: 1;
}

.swiper-pagination-bullet-active {
  background: var(--primary) !important;
  width: 24px !important;
  border-radius: 4px !important;
  transition: var(--transition-fast);
}

.swiper-button-next,
.swiper-button-prev {
  color: var(--primary) !important;
  background: var(--white);
  width: 50px !important;
  height: 50px !important;
  border-radius: 50%;
  box-shadow: 0 4px 15px rgba(0,0,0,0.05);
  transition: var(--transition-smooth);
}

.swiper-button-next:hover,
.swiper-button-prev:hover {
  background: var(--primary);
  color: var(--white) !important;
  transform: scale(1.05);
}

.swiper-button-next::after,
.swiper-button-prev::after {
  font-size: 1.1rem !important;
  font-weight: bold;
}

/* ==========================================
   LATEST ANNOUNCEMENTS
   ========================================== */
.announcements-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.announcement-card {
  border-left: 4px solid var(--primary);
}

.announcement-badge {
  display: inline-block;
  font-weight: 700;
  font-size: 0.75rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--accent-teal);
  margin-bottom: 0.75rem;
}

.announcement-card h3 {
  font-size: 1.25rem;
  margin-bottom: 0.75rem;
}

.announcement-card .meta {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 1rem;
}

.announcement-card p {
  font-size: 0.95rem;
  color: var(--text-muted);
}

/* ==========================================
   FAQ LIST & ACCORDIONS
   ========================================== */
.faq-search-wrap {
  max-width: 600px;
  margin: 0 auto 3.5rem auto;
  position: relative;
}

.faq-search-wrap input {
  width: 100%;
  padding: 1.15rem 1.5rem 1.15rem 3.5rem;
  border-radius: 50px;
  border: 1px solid rgba(0,0,0,0.08);
  font-family: var(--font-body);
  font-size: 1.05rem;
  background: var(--white);
  box-shadow: 0 4px 20px rgba(0,0,0,0.02);
  outline: none;
  transition: var(--transition-smooth);
}

.faq-search-wrap input:focus {
  border-color: var(--primary);
  box-shadow: 0 8px 30px rgba(37, 99, 235, 0.08);
}

.faq-search-wrap i {
  position: absolute;
  left: 1.5rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  font-size: 1.15rem;
}

.faq-accordion-list {
  max-width: 800px;
  margin: 0 auto;
}

.faq-item {
  border-bottom: 1px solid rgba(0,0,0,0.05);
  margin-bottom: 1rem;
  padding-bottom: 1rem;
}

.faq-trigger {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: none;
  border: none;
  padding: 1rem 0;
  cursor: pointer;
  text-align: left;
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--text-dark);
}

.faq-trigger i {
  color: var(--primary);
  transition: transform 0.4s ease;
  font-size: 1rem;
}

.faq-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0.16, 1, 0.3, 1), padding 0.4s ease;
  padding-right: 2rem;
}

.faq-content p {
  color: var(--text-muted);
  font-size: 1rem;
  padding-bottom: 1rem;
}

.faq-item.active .faq-trigger i {
  transform: rotate(180deg);
}

.faq-item.active .faq-content {
  padding-top: 0.5rem;
}

/* ==========================================
   PROPERTY MANAGER CTA
   ========================================== */
/* Documents page — sub-category tabs */
.docs-subtabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-bottom: 1.75rem;
  border-bottom: 1px solid rgba(15, 23, 42, 0.08);
}
.docs-subtabs[hidden] {
  display: none;
}

.docs-subtab {
  position: relative;
  background: none;
  border: none;
  cursor: pointer;
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-muted);
  padding: 0.65rem 1rem;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: var(--transition-fast);
}

.docs-subtab::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 2px;
  background: var(--primary);
  transform: scaleX(0);
  transition: transform 0.25s ease;
}

.docs-subtab:hover {
  color: var(--text-dark);
}

.docs-subtab.active {
  color: var(--primary);
}
.docs-subtab.active::after {
  transform: scaleX(1);
}

.docs-subtab .count {
  font-size: 0.72rem;
  font-weight: 700;
  line-height: 1;
  min-width: 20px;
  padding: 4px 6px;
  border-radius: 50px;
  text-align: center;
  background: rgba(15, 23, 42, 0.07);
  color: var(--text-muted);
}
.docs-subtab.active .count {
  background: rgba(37, 99, 235, 0.12);
  color: var(--primary);
}

@media (max-width: 768px) {
  .docs-subtabs {
    flex-wrap: nowrap;
    overflow-x: auto;
    scrollbar-width: none;
  }
  .docs-subtabs::-webkit-scrollbar { display: none; }
  .docs-subtab { white-space: nowrap; }
}

/* ==========================================
   ABOUT PAGE — MILESTONE TIMELINE
   ========================================== */
.timeline {
  list-style: none;
  position: relative;
  max-width: 820px;
  margin: 0 auto;
  padding-left: 4.5rem;
}

/* The vertical spine */
.timeline::before {
  content: '';
  position: absolute;
  top: 0.75rem;
  bottom: 0.75rem;
  left: 1.5rem;
  width: 2px;
  background: linear-gradient(180deg,
    rgba(37, 99, 235, 0) 0%,
    rgba(37, 99, 235, 0.45) 12%,
    rgba(37, 99, 235, 0.45) 88%,
    rgba(37, 99, 235, 0) 100%);
}

.timeline-item {
  position: relative;
  margin-bottom: 2rem;
}
.timeline-item:last-child {
  margin-bottom: 0;
}

.timeline-marker {
  position: absolute;
  top: 1.6rem;
  left: -3.75rem;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--white);
  border: 2px solid rgba(37, 99, 235, 0.25);
  color: var(--primary);
  font-size: 1rem;
  z-index: 1;
  transition: var(--transition-fast);
}

.timeline-item:hover .timeline-marker {
  background: var(--primary);
  border-color: var(--primary);
  color: var(--white);
  transform: scale(1.08);
  box-shadow: 0 8px 22px rgba(37, 99, 235, 0.35);
}

.timeline-card {
  padding: 1.75rem 2rem;
  transition: var(--transition-fast);
}

.timeline-item:hover .timeline-card {
  transform: translateY(-4px);
}

.timeline-year {
  display: inline-block;
  font-family: var(--font-heading);
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  color: var(--primary);
  background: rgba(37, 99, 235, 0.08);
  border: 1px solid rgba(37, 99, 235, 0.15);
  padding: 0.25rem 0.7rem;
  border-radius: 50px;
  margin-bottom: 0.75rem;
}

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

.timeline-card p {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin: 0;
}

@media (max-width: 768px) {
  .timeline {
    padding-left: 3.25rem;
  }
  .timeline::before {
    left: 1.1rem;
  }
  .timeline-marker {
    top: 1.35rem;
    left: -2.9rem;
    width: 38px;
    height: 38px;
    font-size: 0.85rem;
  }
  .timeline-card {
    padding: 1.5rem 1.35rem;
  }
}

/* Compact premium CTA banner (homepage manager strip) */
.pm-section {
  padding: 3.75rem 0;
  isolation: isolate;
}

/* Floating gradient orbs, drifting slowly behind the card */
.pm-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(70px);
  opacity: 0.5;
  pointer-events: none;
  z-index: 0;
  will-change: transform;
}
.pm-orb-1 {
  width: 420px;
  height: 420px;
  top: -160px;
  left: -100px;
  background: radial-gradient(circle, rgba(37, 99, 235, 0.55), transparent 68%);
  animation: pm-drift-a 18s ease-in-out infinite alternate;
}
.pm-orb-2 {
  width: 360px;
  height: 360px;
  bottom: -170px;
  right: -80px;
  background: radial-gradient(circle, rgba(13, 148, 136, 0.45), transparent 68%);
  animation: pm-drift-b 22s ease-in-out infinite alternate;
}
@keyframes pm-drift-a {
  to { transform: translate3d(60px, 40px, 0) scale(1.12); }
}
@keyframes pm-drift-b {
  to { transform: translate3d(-50px, -35px, 0) scale(1.08); }
}

/* Soft rising particles */
.pm-sparks {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 0;
}
.pm-spark {
  position: absolute;
  bottom: -10px;
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: rgba(96, 165, 250, 0.7);
  box-shadow: 0 0 8px rgba(96, 165, 250, 0.8);
  animation: pm-spark-rise linear infinite;
}
@keyframes pm-spark-rise {
  0%   { transform: translateY(0) scale(0.6); opacity: 0; }
  15%  { opacity: 0.9; }
  85%  { opacity: 0.9; }
  100% { transform: translateY(-320px) scale(1); opacity: 0; }
}

.pm-cta-card {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
  align-items: center;
  gap: 3rem;
  padding: 2.25rem 2.5rem;
  overflow: hidden;
  transform: perspective(1200px) rotateX(var(--pm-rx, 0deg)) rotateY(var(--pm-ry, 0deg));
  transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.5s ease;
  will-change: transform;
}
.pm-cta-card:hover {
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.35);
}

/* Cursor-following glow inside the card */
.pm-card-glow {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.4s ease;
  background: radial-gradient(340px circle at var(--pm-mx, 50%) var(--pm-my, 50%),
    rgba(37, 99, 235, 0.22), transparent 70%);
}
.pm-cta-card:hover .pm-card-glow {
  opacity: 1;
}

.pm-cta-info h3 {
  font-size: 1.85rem;
  margin-bottom: 0.35rem;
}

.pm-cta-info .role {
  display: block;
  font-size: 0.78rem;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 700;
  letter-spacing: 0.14em;
  margin-bottom: 0.5rem;
}

.pm-cta-info p {
  font-size: 0.98rem;
  color: var(--text-muted-light);
  margin-bottom: 1.25rem;
  max-width: 46ch;
}

.pm-cta-contacts {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.75rem;
  margin: 0;
}

.pm-cta-contacts li {
  font-size: 0.92rem;
  font-weight: 500;
}

.pm-cta-contacts a,
.pm-cta-contacts span {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text-muted-light);
  transition: var(--transition-fast);
}

.pm-cta-contacts a:hover {
  color: var(--white);
}

.pm-cta-contacts i {
  color: var(--accent);
  width: 18px;
  transition: transform 0.3s ease;
}

.pm-cta-contacts a:hover i {
  transform: translateY(-2px) scale(1.1);
}

.pm-cta-aside {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
}

.pm-cta-actions {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  justify-content: center;
}

.pm-cta-actions .btn {
  padding: 0.7rem 1.2rem;
  font-size: 0.88rem;
}

.pm-graphic {
  width: 132px;
  height: 132px;
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.18), rgba(13, 148, 136, 0.12));
  border: 1px solid var(--glass-border);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  animation: pm-float 6s ease-in-out infinite;
  will-change: transform;
}
@keyframes pm-float {
  50% { transform: translateY(-10px); }
}

/* Halo pulse */
.pm-graphic::before {
  content: '';
  position: absolute;
  inset: -14px;
  border-radius: 50%;
  border: 1px solid rgba(96, 165, 250, 0.35);
  animation: pm-halo 3.4s ease-out infinite;
}
@keyframes pm-halo {
  0%   { transform: scale(0.9); opacity: 0.8; }
  100% { transform: scale(1.25); opacity: 0; }
}

.pm-graphic i {
  font-size: 3.2rem;
  color: var(--primary);
  opacity: 0.9;
}

.pm-graphic-badge {
  position: absolute;
  bottom: -14px;
  left: 50%;
  transform: translateX(-50%);
  white-space: nowrap;
  background: var(--primary);
  color: var(--white);
  padding: 0.45rem 0.9rem;
  border-radius: 50px;
  font-weight: 600;
  font-size: 0.72rem;
  box-shadow: 0 4px 15px rgba(37, 99, 235, 0.35);
}

@media (prefers-reduced-motion: reduce) {
  .pm-orb, .pm-spark, .pm-graphic, .pm-graphic::before { animation: none; }
  .pm-cta-card { transform: none; }
}

/* ==========================================
   DOCUMENTS PAGE
   ========================================== */
.docs-layout {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 3.5rem;
  align-items: start;
}

.docs-sidebar {
  position: sticky;
  top: 100px;
}

.docs-categories {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.docs-cat-btn {
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  padding: 0.85rem 1.25rem;
  border-radius: var(--border-radius-sm);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--text-muted);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: var(--transition-fast);
}

.docs-cat-btn:hover {
  background: rgba(37, 99, 235, 0.05);
  color: var(--primary);
}

.docs-cat-btn.active {
  background: var(--primary);
  color: var(--white);
}

.docs-cat-btn span.count {
  font-size: 0.8rem;
  opacity: 0.8;
  background: rgba(0,0,0,0.05);
  padding: 0.15rem 0.5rem;
  border-radius: 10px;
}

.docs-cat-btn.active span.count {
  background: rgba(255, 255, 255, 0.2);
}

.docs-main-search {
  margin-bottom: 2rem;
}

.docs-search-bar {
  width: 100%;
  padding: 1rem 1.25rem 1rem 3rem;
  border-radius: var(--border-radius-sm);
  border: 1px solid rgba(0,0,0,0.08);
  font-family: var(--font-body);
  font-size: 1rem;
  background: var(--white);
  outline: none;
}

.docs-search-wrap {
  position: relative;
}

.docs-search-wrap i {
  position: absolute;
  left: 1.15rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
}

.docs-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.doc-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 1.5rem;
  border-radius: var(--border-radius-sm);
  border-left: 3px solid var(--primary);
}

.doc-info {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.doc-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--border-radius-sm);
  background: rgba(239, 68, 68, 0.08);
  color: #ef4444;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
}

.doc-meta h4 {
  font-size: 1.05rem;
  font-weight: 600;
  margin-bottom: 0.25rem;
}

.doc-meta span {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.doc-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

/* ==========================================
   RESIDENT PORTAL & LOGIN
   ========================================== */
.portal-split {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 5rem;
  align-items: center;
}

.portal-login-wrap {
  max-width: 450px;
}

.portal-form-group {
  margin-bottom: 1.5rem;
  position: relative;
}

.portal-form-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
}

.portal-form-group input {
  width: 100%;
  padding: 1rem 1.25rem;
  border-radius: var(--border-radius-sm);
  border: 1px solid rgba(0,0,0,0.08);
  background: var(--white);
  outline: none;
  font-family: var(--font-body);
  font-size: 1rem;
  transition: var(--transition-smooth);
}

.portal-form-group input:focus {
  border-color: var(--primary);
  box-shadow: 0 4px 15px rgba(37, 99, 235, 0.05);
}

.portal-remember-forgot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.9rem;
  margin-bottom: 2rem;
}

.portal-remember-forgot label {
  display: flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  color: var(--text-muted);
}

.portal-forgot {
  color: var(--primary);
  font-weight: 600;
}

/* Dashboard preview inside portal */
.portal-preview-wrap {
  box-shadow: 0 30px 60px rgba(0,0,0,0.08);
  border-radius: var(--border-radius-lg);
  overflow: hidden;
  border: 1px solid var(--glass-border);
}

.db-header {
  background: var(--navy-dark);
  color: var(--white);
  padding: 1.5rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.db-header h4 {
  color: var(--white);
  font-size: 1.15rem;
}

.db-user {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.9rem;
}

.db-user img {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  object-fit: cover;
}

/* Initials badge stands in for a resident photo (none are stored). */
.db-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--primary);
  color: var(--white);
  font-family: var(--font-heading);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  flex-shrink: 0;
}

.db-body {
  padding: 2rem;
  background: #f8fafc;
}

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

.db-widget {
  background: var(--white);
  border-radius: var(--border-radius-md);
  padding: 1.5rem;
  border: 1px solid rgba(0,0,0,0.04);
}

.db-widget h5 {
  font-size: 0.95rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 8px;
}

.db-widget h5 i {
  color: var(--primary);
}

.db-dues-amount {
  font-size: 2rem;
  font-weight: 800;
  color: var(--text-dark);
  margin-bottom: 0.5rem;
}

.db-dues-status {
  display: inline-block;
  background: rgba(16, 185, 129, 0.08);
  color: #10b981;
  padding: 0.25rem 0.5rem;
  border-radius: 4px;
  font-size: 0.75rem;
  font-weight: 700;
}

.db-docs-list {
  list-style: none;
}

.db-docs-list li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.5rem 0;
  border-bottom: 1px solid rgba(0,0,0,0.03);
  font-size: 0.85rem;
}

.db-docs-list li:last-child {
  border: none;
}

.db-docs-list a {
  color: var(--primary);
  font-weight: 600;
}

/* Simulated dynamic dashboard details (unlocked on successful login) */
.portal-dashboard-simulated {
  width: 100%;
}

.portal-dashboard-simulated h2 {
  font-size: 2.25rem;
  margin-bottom: 0.5rem;
}

.dashboard-stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  margin: 2.5rem 0 3.5rem 0;
}

.dashboard-card-row {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 2rem;
}

.portal-quick-actions {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.action-card {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.25rem;
  border-radius: var(--border-radius-sm);
  cursor: pointer;
  transition: var(--transition-smooth);
}

.action-card i {
  font-size: 1.5rem;
  color: var(--primary);
}

.action-card:hover {
  background: rgba(37, 99, 235, 0.05);
  border-color: rgba(37, 99, 235, 0.2);
}

/* ==========================================
   CONTACT PAGE & FORM
   ========================================== */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
}

.contact-info-wrap h3 {
  font-size: 2rem;
  margin-bottom: 2rem;
}

.contact-details {
  list-style: none;
  margin-bottom: 3rem;
}

.contact-details li {
  display: flex;
  align-items: flex-start;
  gap: 1.25rem;
  margin-bottom: 1.75rem;
  font-size: 1.05rem;
}

.contact-details i {
  color: var(--primary);
  font-size: 1.25rem;
  margin-top: 0.25rem;
  width: 24px;
}

.contact-details strong {
  display: block;
  font-size: 0.9rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.25rem;
}

.map-placeholder {
  height: 280px;
  background: #e2e8f0;
  border-radius: var(--border-radius-md);
  overflow: hidden;
  position: relative;
  border: 1px solid rgba(0,0,0,0.05);
}

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

.contact-form-card {
  padding: 3rem;
}

.contact-form h3 {
  font-size: 1.75rem;
  margin-bottom: 1.75rem;
}

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

.form-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 1rem 1.25rem;
  border-radius: var(--border-radius-sm);
  border: 1px solid rgba(0,0,0,0.08);
  background: var(--white);
  outline: none;
  font-family: var(--font-body);
  font-size: 1rem;
  transition: var(--transition-smooth);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 4px 15px rgba(37, 99, 235, 0.05);
}

.form-success-overlay {
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 3rem;
}

.form-success-overlay i {
  font-size: 3.5rem;
  color: #10b981;
  margin-bottom: 1.5rem;
}

.form-success-overlay h3 {
  font-size: 1.75rem;
  margin-bottom: 0.75rem;
}

.form-success-overlay p {
  color: var(--text-muted);
}

/* ==========================================
   FOOTER
   ========================================== */
.footer {
  background: var(--bg-darker);
  color: var(--text-light);
  padding: 6rem 0 3rem 0;
  border-top: 1px solid rgba(255,255,255,0.05);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
  gap: 4rem;
  margin-bottom: 4rem;
}

.footer-brand .logo {
  color: var(--white);
  margin-bottom: 1.5rem;
}

.footer-brand p {
  color: var(--text-muted-light);
  font-size: 0.95rem;
  margin-bottom: 1.5rem;
  line-height: 1.7;
}

.footer-socials {
  display: flex;
  gap: 1rem;
}

.footer-socials a {
  width: 38px;
  height: 38px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-light);
  transition: var(--transition-smooth);
}

.footer-socials a:hover {
  background: var(--primary);
  transform: translateY(-3px);
}

.footer-col h4 {
  color: var(--white);
  font-size: 1.1rem;
  margin-bottom: 1.75rem;
  font-weight: 600;
  position: relative;
}

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: 0.85rem;
}

.footer-links a {
  color: var(--text-muted-light);
  font-size: 0.95rem;
  transition: var(--transition-fast);
}

.footer-links a:hover {
  color: var(--accent);
  padding-left: 4px;
}

.footer-contact-list {
  list-style: none;
}

.footer-contact-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.9rem;
  color: var(--text-muted-light);
  margin-bottom: 1rem;
}

.footer-contact-list i {
  color: var(--accent);
  margin-top: 0.25rem;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding-top: 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1.5rem;
}

.footer-bottom p {
  font-size: 0.85rem;
  color: var(--text-muted-light);
}

.footer-compliance {
  font-size: 0.8rem;
  color: var(--text-muted);
  max-width: 600px;
  line-height: 1.5;
  text-align: right;
}

/* ==========================================
   STATUTORY DETAILS / ACCESSIBILITY ARIA
   ========================================== */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

/* ==========================================
   404 ERROR PAGE
   ========================================== */
.error-page {
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: var(--bg-darker);
  color: var(--text-light);
  position: relative;
  overflow: hidden;
}

.error-content {
  position: relative;
  z-index: 10;
  max-width: 550px;
  padding: 2rem;
}

.error-title {
  font-size: 8rem;
  font-weight: 800;
  background: linear-gradient(135deg, var(--primary), var(--accent-teal));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 1rem;
  line-height: 1;
}

.error-subtitle {
  font-size: 2rem;
  margin-bottom: 1.5rem;
}

.error-text {
  color: var(--text-muted-light);
  margin-bottom: 2.5rem;
  font-size: 1.05rem;
}

/* ==========================================
   RESPONSIVE MEDIA QUERIES
   ========================================== */
@media (max-width: 1024px) {
  h1 { font-size: 3.5rem !important; }
  .about-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 3rem;
  }
  .amenities-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .announcements-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .docs-layout {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
  .docs-sidebar {
    position: relative;
    top: 0;
  }
  .docs-categories {
    flex-direction: row;
    flex-wrap: wrap;
  }
  .docs-cat-btn {
    width: auto;
  }
  .portal-split {
    grid-template-columns: 1fr;
    gap: 4rem;
  }
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 4rem;
  }
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 3rem;
  }
}

@media (max-width: 768px) {
  :root {
    --header-height: 70px;
  }
  .section {
    padding: 5rem 0;
  }
  .section-header h2 {
    font-size: 2.25rem;
  }
  .nav-links {
    position: fixed;
    top: var(--header-height);
    left: -100%;
    width: 100%;
    height: calc(100vh - var(--header-height));
    background: var(--white);
    flex-direction: column;
    padding: 3rem 2rem;
    gap: 2rem;
    transition: left 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    z-index: 999;
  }
  .header-dark-mode .nav-links {
    background: var(--bg-dark);
  }
  .nav-links.open {
    left: 0;
  }
  .nav-toggle {
    display: block;
  }
  .hero h1 {
    font-size: 2.75rem !important;
  }
  .hero p {
    font-size: 1.1rem;
  }
  .internal-banner h1 {
    font-size: 2.5rem;
  }
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .amenities-grid {
    grid-template-columns: 1fr;
  }
  .announcements-grid {
    grid-template-columns: 1fr;
  }
  .pm-section {
    padding: 3rem 0;
  }
  .pm-cta-card {
    grid-template-columns: 1fr;
    gap: 2.25rem;
    padding: 2rem 1.5rem;
    text-align: center;
    transform: none;
  }
  .pm-cta-info p {
    max-width: none;
  }
  .pm-graphic {
    width: 110px;
    height: 110px;
  }
  .pm-graphic i {
    font-size: 2.6rem;
  }
  .pm-cta-contacts {
    justify-content: center;
    gap: 0.6rem 1.25rem;
  }
  .pm-cta-actions {
    justify-content: center;
  }
  .contact-form-card {
    padding: 2rem;
  }
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }
  .footer-compliance {
    text-align: center;
  }
  /* Disable custom cursor on mobile for usability */
  .custom-cursor,
  .custom-cursor-ring {
    display: none !important;
  }
}

@media (max-width: 480px) {
  .hero-actions {
    flex-direction: column;
    width: 100%;
  }
  .hero-actions .btn {
    width: 100%;
  }
  .stats-grid {
    grid-template-columns: 1fr;
  }
  .docs-categories {
    flex-direction: column;
  }
  .docs-cat-btn {
    width: 100%;
  }
  .db-grid {
    grid-template-columns: 1fr;
  }
}

/* ==========================================
   PORTAL AUTH MODAL & PARTICLES STYLES
   ========================================== */
.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(2, 12, 27, 0.7);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}
.modal-backdrop.active {
  opacity: 1;
  pointer-events: all;
}
.modal {
  background: var(--white);
  border-radius: var(--border-radius-lg);
  width: 100%;
  max-width: 440px;
  overflow: hidden;
  position: relative;
  transform: translateY(40px) scale(0.96);
  transition: all 0.45s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 30px 60px rgba(2, 12, 27, 0.2);
  border: 1px solid var(--glass-border);
}
.modal-backdrop.active .modal {
  transform: translateY(0) scale(1);
}
.modal-head {
  background: linear-gradient(135deg, var(--bg-dark), var(--bg-darker));
  padding: 3rem 2rem 2.5rem;
  text-align: center;
  position: relative;
  color: var(--white);
}
.modal-head::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 0;
  right: 0;
  height: 32px;
  background: var(--white);
  border-radius: 32px 32px 0 0;
}
.modal-emblem {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.2rem;
  font-size: 30px;
  color: var(--white);
  box-shadow: 0 10px 30px rgba(37, 99, 235, 0.2);
  position: relative;
  z-index: 1;
}
.modal-head h2 {
  color: var(--white);
  font-family: var(--font-heading);
  font-size: 1.8rem;
  font-weight: 700;
  position: relative;
  z-index: 1;
}
.modal-head p {
  color: var(--text-muted-light);
  font-size: 0.85rem;
  position: relative;
  z-index: 1;
  margin-top: 4px;
}
.modal-body {
  padding: 0 2.2rem 2.5rem 2.2rem;
}
.modal-tabs {
  display: flex;
  background: var(--bg-light);
  border-radius: var(--border-radius-sm);
  padding: 4px;
  margin-bottom: 2rem;
}
.modal-tab {
  flex: 1;
  padding: 10px;
  border: none;
  background: none;
  border-radius: 6px;
  font-size: 0.9rem;
  color: var(--text-muted);
  cursor: pointer;
  transition: var(--transition-fast);
  font-weight: 600;
  font-family: var(--font-body);
}
.modal-tab.active {
  background: var(--white);
  color: var(--primary);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}
.mf {
  display: none;
}
.mf.active {
  display: block;
}
.mfield {
  margin-bottom: 1.2rem;
}
.mfield label {
  display: block;
  font-size: 0.75rem;
  color: var(--text-muted);
  letter-spacing: 1.5px;
  text-transform: uppercase;
  margin-bottom: 7px;
  font-weight: 700;
}
.mfield-wrap {
  position: relative;
}
.mfield-wrap i {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--primary);
  font-size: 16px;
  pointer-events: none;
}
.mfield input {
  width: 100%;
  padding: 12px 14px 12px 42px;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: var(--border-radius-sm);
  font-size: 0.95rem;
  color: var(--text-dark);
  outline: none;
  transition: var(--transition-fast);
  background: var(--bg-light);
  font-family: var(--font-body);
}
.mfield input:focus {
  border-color: var(--primary);
  background: var(--white);
  box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.08);
}
.mremember {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.8rem;
  font-size: 0.85rem;
}
.mremember label {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text-muted);
  cursor: pointer;
}
.mremember a {
  color: var(--primary);
  font-weight: 600;
}
.btn-modal {
  width: 100%;
  padding: 14px;
  border-radius: 50px;
  background: var(--primary);
  color: var(--white);
  border: none;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition-smooth);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  font-family: var(--font-body);
  box-shadow: 0 4px 15px rgba(37, 99, 235, 0.2);
}
.btn-modal:hover {
  background: var(--primary-hover);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(37, 99, 235, 0.3);
}
.m-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 1.4rem 0;
  font-size: 0.8rem;
  color: var(--text-muted);
}
.m-divider::before, .m-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: rgba(0, 0, 0, 0.08);
}
.m-foot {
  text-align: center;
  font-size: 0.85rem;
  color: var(--text-muted);
}
.m-foot a {
  color: var(--primary);
  font-weight: 600;
}
.modal-close-btn {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: rgba(255, 255, 255, 0.15);
  border: none;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  color: var(--white);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  transition: var(--transition-fast);
  z-index: 5;
}
.modal-close-btn:hover {
  background: rgba(255, 255, 255, 0.25);
  transform: rotate(90deg);
}

/* User Greeting in Nav */
.hoa-greet {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--primary);
  font-weight: 600;
  font-size: 0.9rem;
  margin-right: 15px;
}
.hoa-greet > i {
  font-size: 1.1rem;
}
.hoa-admin-link i {
  font-size: 0.95em;
  line-height: 1;
}
/* A standalone nav button (sibling of Sign Out), not a link inside the greeting.
   Geometry matches .btn-nav-login so the pair reads as one control group.
   Selector is `.nav-links a.hoa-admin-link` (0,2,1) so it outranks the
   `.nav-links a` (0,1,1) menu-item rule, whose `padding: 0.5rem 0` would
   otherwise collapse this button's horizontal padding to zero. */
.hoa-admin-link,
.nav-links a.hoa-admin-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.85rem;
  line-height: 1;
  white-space: nowrap;
  padding: 0.45rem 1.25rem;
  border-radius: 30px;
  background: transparent;
  color: var(--primary);
  border: 1px solid var(--primary);
  cursor: pointer;
  margin-left: 10px;
  transition: var(--transition-smooth);
}
.hoa-admin-link:hover,
.nav-links a.hoa-admin-link:hover {
  background: var(--primary);
  color: var(--white);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.25);
}
/* These are buttons, not menu items — suppress the shared nav hover underline */
.nav-links .hoa-admin-link::after,
.nav-links .btn-nav-login::after {
  display: none !important;
}

/* Over the transparent (hero) header the greeting sits on a photo — keep it legible */
.header:not(.header-active):not(.header-active-dark) .hoa-greet {
  color: var(--white);
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.45);
}
/* Over the transparent hero header, mirror the outlined Sign Out button. */
.header:not(.header-active):not(.header-active-dark) .hoa-admin-link {
  background: transparent;
  border-color: var(--white);
  color: var(--white) !important;
  text-shadow: none;
  box-shadow: none;
}
.header:not(.header-active):not(.header-active-dark) .hoa-admin-link:hover {
  background: var(--white);
  color: var(--primary) !important;
}
.header-dark-mode .hoa-greet,
.header-active-dark .hoa-greet {
  color: var(--white);
}

/* Floating particles (Hero background) */
.hero-particles {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
}
.hp {
  position: absolute;
  border-radius: 50%;
  background: rgba(37, 99, 235, 0.35);
  animation: p-rise linear infinite;
}
@keyframes p-rise {
  0% { transform: translateY(105vh); opacity: 0; }
  10% { opacity: 1; }
  90% { opacity: 0.4; }
  100% { transform: translateY(-5vh); opacity: 0; }
}

/* Mini Events strip */
.event-mini {
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 1.25rem;
  border-radius: var(--border-radius-md);
  background: var(--white);
  border: 1px solid rgba(0, 0, 0, 0.04);
  box-shadow: 0 4px 15px rgba(0,0,0,0.01);
  transition: var(--transition-smooth);
}
.event-mini:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 25px rgba(37, 99, 235, 0.05);
  border-color: rgba(37, 99, 235, 0.1);
}
.event-mini .event-date {
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: var(--white);
  padding: 8px;
  border-radius: var(--border-radius-sm);
  width: 55px;
  text-align: center;
}
.event-date-day {
  font-size: 1.4rem;
  font-weight: 800;
  line-height: 1;
}
.event-date-mon {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
}
.event-info {
  flex: 1;
}
.event-info-title {
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--text-dark);
  margin-bottom: 2px;
}
.event-info-meta {
  font-size: 0.8rem;
  color: var(--text-muted);
}
.event-info-meta i {
  color: var(--primary);
  margin-right: 4px;
}

/* Transparent State Header contrast and links overrides */
.header:not(.header-active):not(.header-active-dark) .nav-links a {
  color: var(--white);
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.45);
}
.header:not(.header-active):not(.header-active-dark) .logo {
  color: var(--white);
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.45);
}
.header:not(.header-active):not(.header-active-dark) .nav-toggle span {
  background: var(--white);
}

/* Navbar Member Login Button Layout */
.btn-nav-login {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.85rem;
  padding: 0.45rem 1.25rem !important;
  border-radius: 30px;
  background: var(--primary);
  color: var(--white) !important;
  border: 1px solid var(--primary);
  transition: var(--transition-smooth);
  box-shadow: 0 4px 10px rgba(37, 99, 235, 0.2);
  cursor: pointer;
  margin-left: 10px;
}
.btn-nav-login:hover {
  background: var(--primary-hover);
  border-color: var(--primary-hover);
  transform: translateY(-1px);
  box-shadow: 0 6px 15px rgba(37, 99, 235, 0.3);
}
.btn-nav-login i {
  margin-right: 6px;
}

/* Transparent navbar button theme */
.header:not(.header-active):not(.header-active-dark) .btn-nav-login {
  background: transparent;
  color: var(--white) !important;
  border: 1px solid var(--white);
  box-shadow: none;
}
.header:not(.header-active):not(.header-active-dark) .btn-nav-login:hover {
  background: var(--white);
  color: var(--primary) !important;
}

/* Hero Content Left Alignment overrides */
.hero-content {
  text-align: left !important;
}
.hero-badge {
  margin-right: auto !important;
  margin-left: 0 !important;
}
.hero h1 {
  text-align: left !important;
}
.hero p {
  text-align: left !important;
  margin-left: 0 !important;
}
.hero-actions {
  justify-content: flex-start !important;
}

/* ==========================================
   NEW EVENTS CAROUSEL (NO IMAGES)
   ========================================== */
.events-header-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 3.5rem;
  flex-wrap: wrap;
  gap: 1.5rem;
}
.events-header-left h2 {
  font-size: 2.75rem;
  font-weight: 700;
  margin-top: 0.5rem;
  margin-bottom: 0;
  color: var(--text-dark);
}
.events-badge-decor {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.decor-dot {
  width: 8px;
  height: 8px;
  background: var(--primary);
  border-radius: 50%;
  display: inline-block;
}
.sub-accent {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--primary);
}
.events-header-right {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  flex-wrap: wrap;
}
.swiper-nav-buttons {
  display: flex;
  gap: 0.75rem;
}
.swiper-prev-btn, .swiper-next-btn {
  width: 45px;
  height: 45px;
  border-radius: 50%;
  border: 1px solid rgba(15, 23, 42, 0.15);
  background: var(--white);
  color: var(--text-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition-smooth);
}
.swiper-prev-btn:hover, .swiper-next-btn:hover {
  background: var(--primary);
  color: var(--white) !important;
  border-color: var(--primary);
  transform: translateY(-2px);
}
.btn-outline-calendar {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0.7rem 1.4rem;
  border-radius: 30px;
  border: 1px solid var(--primary);
  color: var(--primary);
  background: transparent;
  font-weight: 600;
  font-size: 0.9rem;
  transition: var(--transition-smooth);
  text-decoration: none;
}
.btn-outline-calendar:hover {
  background: var(--primary);
  color: var(--white) !important;
}

/* Event Card New Layout */
.event-slide-new {
  height: auto;
}
.event-card-new {
  display: flex;
  background: var(--white);
  border-radius: 12px;
  padding: 1.5rem;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
  border: 1px solid rgba(0, 0, 0, 0.03);
  gap: 1.25rem;
  height: 100%;
  align-items: flex-start;
  transition: var(--transition-smooth);
  text-align: left;
}
.event-card-new:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
}
.event-date-badge {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 65px;
  height: 65px;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: var(--white);
  border-radius: 8px;
  flex-shrink: 0;
}
.badge-day {
  font-size: 1.4rem;
  font-weight: 800;
  line-height: 1;
}
.badge-mon {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  margin-top: 2px;
}
.event-content-new {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  text-align: left;
}
.event-cat-pill {
  display: inline-block;
  align-self: flex-start;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.25rem 0.75rem;
  border-radius: 20px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.event-cat-pill.social {
  background: rgba(37, 99, 235, 0.1);
  color: var(--primary);
}
.event-cat-pill.meeting {
  background: rgba(37, 99, 235, 0.1);
  color: #2563eb;
}
.event-cat-pill.maintenance {
  background: rgba(225, 112, 85, 0.1);
  color: #d63031;
}
.event-content-new h3 {
  font-size: 1.15rem;
  font-weight: 700;
  color: #0f172a;
  margin: 0;
  line-height: 1.3;
}
.event-detail-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  color: var(--text-muted);
}
.event-detail-item i {
  color: var(--primary);
  font-size: 0.9rem;
}


