/* ================================================================
   HOME MODERN — Flagship design for CouncilPortal
   ================================================================ */

/* ── Design Tokens ────────────────────────────────────────────── */
:root {
  --hm-dark: #080D1A;
  --hm-dark-card: #0E1525;
  --hm-teal: #0F7B7D;
  --hm-teal-light: #0B9C9E;
  --hm-green: #32C071;
  --hm-lime: #A5EC03;
  --hm-glow: rgba(50, 192, 113, 0.32);
  --hm-glass-bg: rgba(14, 21, 37, 0.60);
  --hm-glass-border: rgba(50, 192, 113, 0.18);
  --hm-text: #E2E8F0;
  --hm-text-muted: #94A3B8;
  --hm-radius: 20px;
  --hm-radius-lg: 30px;
  --transition: 0.35s cubic-bezier(.4, 0, .2, 1);
}

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

/* ── Global overrides for the home page only ──────────────────── */
main.antialiased {
  background: #f8fafb;
  font-family: 'Inter', sans-serif;
}

/* ================================================================
   HERO SECTION
   ================================================================ */

/* Dark gradient overlay over the video */
header.relative::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg,
      rgba(8, 13, 26, 0.82) 0%,
      rgba(8, 13, 26, 0.55) 50%,
      rgba(15, 123, 125, 0.30) 100%);
  z-index: 1;
}

header.relative video {
  background: var(--hm-dark);
}

/* Bring content above the overlay */
header.relative>div {
  z-index: 2;
}

/* Frosted-glass panel wrapping the hero text */
.hero-glass-panel {
  background: var(--hm-glass-bg);
  backdrop-filter: blur(18px) saturate(180%);
  -webkit-backdrop-filter: blur(18px) saturate(180%);
  border: 1px solid var(--hm-glass-border);
  border-radius: var(--hm-radius-lg);
  padding: 2.5rem 3rem;
  box-shadow:
    0 8px 32px rgba(0, 0, 0, 0.45),
    0 0 0 1px rgba(255, 255, 255, 0.04) inset,
    0 0 60px var(--hm-glow);
  position: relative;
  overflow: hidden;
}

.hero-glass-panel::before {
  content: '';
  position: absolute;
  top: -40%;
  left: -30%;
  width: 200%;
  height: 200%;
  background: radial-gradient(ellipse at center, rgba(50, 192, 113, 0.10) 0%, transparent 70%);
  animation: heroGlow 6s ease-in-out infinite alternate;
  pointer-events: none;
}

@keyframes heroGlow {
  0% {
    opacity: 0.6;
    transform: scale(1);
  }

  100% {
    opacity: 1;
    transform: scale(1.08);
  }
}

/* Animated badge above hero title */
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(50, 192, 113, 0.15);
  border: 1px solid rgba(50, 192, 113, 0.40);
  border-radius: 999px;
  padding: 0.35rem 1rem;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--hm-green);
  margin-bottom: 1.25rem;
  animation: badgePulse 3s ease-in-out infinite;
}

.hero-badge-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--hm-green);
  animation: dotBlink 1.5s ease-in-out infinite;
}

@keyframes badgePulse {

  0%,
  100% {
    box-shadow: 0 0 0 0 rgba(50, 192, 113, 0);
  }

  50% {
    box-shadow: 0 0 0 6px rgba(50, 192, 113, 0.15);
  }
}

@keyframes dotBlink {

  0%,
  100% {
    opacity: 1;
  }

  50% {
    opacity: 0.3;
  }
}

/* Scroll-down arrow */
.hero-scroll-btn {
  background: rgba(255, 255, 255, 0.10);
  border: 1px solid rgba(255, 255, 255, 0.20);
  backdrop-filter: blur(8px);
  transition: var(--transition);
}

.hero-scroll-btn:hover {
  background: rgba(50, 192, 113, 0.25);
  border-color: var(--hm-green);
  transform: translateY(4px);
}

/* ================================================================
   SCROLL FADE ANIMATION (enhanced)
   ================================================================ */
.fadeanimation {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.fadeanimation.visible {
  opacity: 1;
  transform: none;
}

/* ================================================================
   STATS SECTION
   ================================================================ */
.stats-section-wrap {
  background: var(--hm-dark);
  border-radius: var(--hm-radius-lg);
  padding: 2.5rem 3rem;
  position: relative;
  overflow: hidden;
  box-shadow:
    0 20px 60px rgba(0, 0, 0, 0.40),
    0 0 0 1px rgba(50, 192, 113, 0.12) inset;
}

.stats-section-wrap::before {
  content: '';
  position: absolute;
  bottom: -60px;
  right: -60px;
  width: 300px;
  height: 300px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(50, 192, 113, 0.18) 0%, transparent 70%);
  pointer-events: none;
}

.stat-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 0 1.5rem;
  border-right: 1px solid rgba(255, 255, 255, 0.07);
  position: relative;
}

.stat-item:last-child {
  border-right: none;
}

.stat-label {
  font-size: 0.70rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--hm-text-muted);
  margin-bottom: 0.75rem;
}

.stat-number {
  background: linear-gradient(135deg, var(--hm-green), var(--hm-lime));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-size: clamp(3rem, 5vw, 4.5rem);
  font-weight: 900;
  line-height: 1;
  filter: drop-shadow(0 0 18px rgba(50, 192, 113, 0.55));
  letter-spacing: -0.02em;
}

/* ================================================================
   SECTION HEADINGS
   ================================================================ */
.section-title {
  position: relative;
  display: inline-block;
  padding-bottom: 0.6rem;
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 56px;
  height: 4px;
  border-radius: 4px;
  background: linear-gradient(90deg, var(--hm-teal-light), var(--hm-green), var(--hm-lime));
  transition: width 0.5s var(--transition);
}

.section-title:hover::after {
  width: 100%;
}

/* ================================================================
   "MORE" PILL BUTTON
   ================================================================ */
.more-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.55rem 1.25rem;
  border-radius: 999px;
  border: 1.5px solid rgba(15, 123, 125, 0.45);
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--hm-teal);
  background: transparent;
  position: relative;
  overflow: hidden;
  transition: var(--transition);
  text-decoration: none;
}

.more-btn::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, var(--hm-teal-light), var(--hm-green));
  opacity: 0;
  transition: opacity 0.3s ease;
}

.more-btn:hover {
  color: #fff !important;
  border-color: #fff !important;
  box-shadow: 0 4px 20px rgba(50, 192, 113, 0.35);
}

.more-btn:hover::before {
  opacity: 1;
}

.more-btn span,
.more-btn i,
.more-btn svg {
  position: relative;
  z-index: 1;
}

/* ================================================================
   CARD BASE — glassmorphism hover card
   ================================================================ */
.card-glass {
  position: relative;
  background: #ffffff;
  border: 1px solid rgba(15, 123, 125, 0.12);
  border-radius: var(--hm-radius-lg);
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
  overflow: hidden;
}

.card-glass::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  box-shadow: 0 0 0 0 var(--hm-glow);
  transition: box-shadow 0.35s ease;
  pointer-events: none;
}

.card-glass:hover {
  transform: translateY(-6px);
  border-color: rgba(50, 192, 113, 0.40);
  box-shadow:
    0 20px 50px rgba(0, 0, 0, 0.10),
    0 0 30px rgba(50, 192, 113, 0.18);
}

/* ================================================================
   ANNOUNCEMENT CARD — Dark teal + glassmorphism
   ================================================================ */
.announcement-card {
  background: linear-gradient(135deg, #0d2030 0%, #0d2a1e 100%);
  border: 1px solid rgba(50, 192, 113, 0.18);
  border-radius: var(--hm-radius-lg);
  padding: 2.5rem 2rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  overflow: hidden;
  transition: transform var(--transition), box-shadow var(--transition);
  min-height: 375px;
}

.announcement-card::before {
  content: '';
  position: absolute;
  top: -40px;
  right: -40px;
  width: 180px;
  height: 180px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(50, 192, 113, 0.16) 0%, transparent 70%);
}

.announcement-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.35), 0 0 30px rgba(50, 192, 113, 0.20);
}

.announcement-card .ann-date {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--hm-green);
  background: rgba(50, 192, 113, 0.12);
  border: 1px solid rgba(50, 192, 113, 0.25);
  border-radius: 6px;
  padding: 0.2rem 0.6rem;
  display: inline-block;
  margin-bottom: 1rem;
}

.announcement-card .ann-title {
  font-size: 1.45rem;
  line-height: 1.5;
  font-weight: 700;
  color: #f1f5f9;
}

/* ================================================================
   NEWS CARD — modern image card
   ================================================================ */
.news-card-wrap {
  border-radius: var(--hm-radius-lg);
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  border: 1px solid rgba(15, 123, 125, 0.10);
  background: #fff;
  transition: transform var(--transition), box-shadow var(--transition);
}

.news-card-wrap:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.14), 0 0 24px rgba(50, 192, 113, 0.16);
}

.news-card-img-wrap {
  position: relative;
  overflow: hidden;
  aspect-ratio: 4/2.5;
}

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

.news-card-wrap:hover .news-card-img-wrap img {
  transform: scale(1.06);
}

.news-card-img-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(8, 13, 26, 0.65) 0%, transparent 55%);
  opacity: 0;
  transition: opacity 0.4s ease;
}

.news-card-wrap:hover .news-card-img-overlay {
  opacity: 1;
}

.news-card-body {
  padding: 1.5rem 1.75rem 1.75rem;
  background: #fff;
}

.news-card-date {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--hm-teal);
  margin-bottom: 0.6rem;
}

/* ================================================================
   PROJECT CARD
   ================================================================ */
.project-card-wrap {
  border: 1.5px solid #e2e8f0;
  border-radius: var(--hm-radius-lg);
  padding: 2rem 2.5rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 375px;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  background: #fff;
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition), background var(--transition);
}

.project-card-wrap::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, #A7EF03, #F7DE0B);
  opacity: 0;
  transition: opacity 0.35s ease;
}

.project-card-wrap:hover {
  transform: translateY(-6px);
  border-color: transparent;
  box-shadow: 0 16px 50px rgba(167, 239, 3, 0.25), 0 0 0 2px rgba(167, 239, 3, 0.35);
}

.project-card-wrap:hover::before {
  opacity: 1;
}

.project-card-wrap>* {
  position: relative;
  z-index: 1;
}

/* ================================================================
   SITTING CARD
   ================================================================ */
.sitting-card-wrap {
  border-radius: var(--hm-radius-lg);
  padding: 2rem 2.5rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 375px;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, #e8fdf2 0%, #f0fffe 100%);
  border: 1px solid rgba(50, 192, 113, 0.20);
  transition: transform var(--transition), box-shadow var(--transition);
}

.sitting-card-wrap::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--hm-teal-light), var(--hm-green));
  opacity: 0;
  transition: opacity 0.35s ease;
  border-radius: inherit;
}

.sitting-card-wrap:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 50px rgba(15, 123, 125, 0.30);
}

.sitting-card-wrap:hover::after {
  opacity: 1;
}

.sitting-card-wrap>* {
  position: relative;
  z-index: 1;
}

/* ================================================================
   LOCATION CARD
   ================================================================ */
.location-card-wrap {
  border-radius: var(--hm-radius);
  overflow: hidden;
  background: #fff;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  border: 1px solid rgba(15, 123, 125, 0.10);
  transition: transform var(--transition), box-shadow var(--transition);
}

.location-card-wrap:hover {
  transform: translateY(-5px);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.14), 0 0 0 2px rgba(50, 192, 113, 0.30);
}

/* ================================================================
   GRADIENT SECTION DIVIDER
   ================================================================ */
.section-divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(50, 192, 113, 0.30) 40%, rgba(15, 123, 125, 0.30) 60%, transparent);
  margin: 0 auto;
  max-width: 900px;
}

/* ================================================================
   RESPONSIVE ADJUSTMENTS
   ================================================================ */
@media (max-width: 1024px) {
  .stats-section-wrap {
    padding: 2rem;
  }

  .hero-glass-panel {
    padding: 1.75rem 1.5rem;
  }
}

@media (max-width: 640px) {
  .stat-item {
    border-right: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
    padding: 1.25rem 0;
  }

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

  .stats-section-wrap {
    border-radius: var(--hm-radius);
  }

  .announcement-card,
  .project-card-wrap,
  .sitting-card-wrap {
    min-height: auto;
  }
}