/* ==========================================================================
   POONKURICHI NANPARKAL EDUCATIONAL AND CHARITABLE TRUST
   Registration Number: BK4/97/2024 | Avalpoonthurai Sub-Registrar Office
   Founder and President: Dr. K. Prakasam
   Core Design System & Stylesheet
   ========================================================================== */

:root {
  /* Official Brand Palette */
  --primary-forest: #123B2A;
  --primary-forest-dark: #0A2419;
  --secondary-emerald: #1B5E43;
  --secondary-emerald-light: #2A825F;
  --accent-gold: #C8A96B;
  --accent-gold-hover: #B59353;
  --accent-gold-light: #F7F2E7;
  
  /* Neutrals and Backgrounds */
  --bg-main: #F8FAF6;
  --bg-card: #FFFFFF;
  --bg-card-subtle: #F1F5EF;
  --bg-dark-surface: #0E2C1F;
  
  /* Typography Colors */
  --text-primary: #24312B;
  --text-secondary: #68776D;
  --text-muted: #8E9E94;
  --text-inverse: #FFFFFF;
  --text-gold: #967638;

  /* Borders & Accents */
  --border-light: #E2E8DF;
  --border-emerald: #BBD2C5;
  --border-gold: #DFC79A;
  
  /* Status Colors */
  --status-success: #1E7E34;
  --status-warning: #D9822B;
  --status-danger: #D9383A;
  --status-info: #17A2B8;

  /* Typography */
  --font-en: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --font-ta: 'Noto Sans Tamil', 'Latha', 'Tamil Sangam MN', sans-serif;

  /* Elevation */
  --shadow-sm: 0 2px 4px rgba(18, 59, 42, 0.05);
  --shadow-md: 0 4px 12px rgba(18, 59, 42, 0.08);
  --shadow-lg: 0 10px 25px rgba(18, 59, 42, 0.12);
  --shadow-xl: 0 20px 40px rgba(18, 59, 42, 0.18);
  
  /* Radii & Transitions */
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 14px;
  --radius-xl: 20px;
  --radius-pill: 9999px;
  --transition-fast: 0.15s ease-in-out;
  --transition-smooth: 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

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

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

section, [id] {
  scroll-margin-top: 85px;
}

body {
  font-family: var(--font-en);
  background-color: var(--bg-main);
  color: var(--text-primary);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  width: 100%;
  position: relative;
}

body.lang-ta {
  font-family: var(--font-ta), var(--font-en);
}

/* Container */
.container {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 1.25rem;
  box-sizing: border-box;
}

/* ==========================================================================
   Statutory Verification Ribbon & Unified Luxury Header
   ========================================================================== */

/* Top Statutory Verification Ribbon */
.top-statutory-ribbon {
  background-color: #06180E;
  color: #9FB5A8;
  font-size: 0.75rem;
  line-height: 1.4;
  padding: 0.35rem 0;
  border-bottom: 1px solid rgba(200, 169, 107, 0.22);
  width: 100%;
  position: relative;
  z-index: 1001;
}

.statutory-ribbon-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.statutory-ribbon-left {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  flex-wrap: wrap;
}

.gold-badge {
  background: rgba(200, 169, 107, 0.15);
  color: var(--accent-gold);
  border: 1px solid rgba(200, 169, 107, 0.4);
  padding: 0.1rem 0.6rem;
  border-radius: var(--radius-pill);
  font-weight: 700;
  font-size: 0.72rem;
  letter-spacing: 0.02em;
  display: inline-flex;
  align-items: center;
}

.ribbon-sep {
  color: rgba(255, 255, 255, 0.25);
  margin: 0 0.15rem;
}

.gold-accent {
  color: var(--accent-gold);
  font-weight: 700;
}

.statutory-ribbon-right {
  color: #B5C9BD;
  font-weight: 500;
  font-size: 0.72rem;
  letter-spacing: 0.01em;
}

/* Unified Luxury Sticky Header */
.site-header {
  position: sticky;
  top: 0;
  width: 100%;
  z-index: 1000;
  background: rgba(18, 59, 42, 0.96);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 2px solid var(--accent-gold);
  box-shadow: 0 8px 24px rgba(6, 24, 14, 0.35);
  transition: all 0.3s ease;
}

.header-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 68px;
  gap: 0.75rem;
  max-width: 1440px;
  width: 100%;
  padding: 0 1.25rem;
  box-sizing: border-box;
}

/* Brand Identity Block */
.brand-block {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
  flex-shrink: 0;
  transition: opacity 0.2s ease;
}

.brand-block:hover {
  opacity: 0.95;
}

.brand-emblem-img {
  height: 42px;
  width: auto;
  object-fit: contain;
  filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.3));
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.brand-block:hover .brand-emblem-img {
  transform: scale(1.05);
}

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

.brand-main-title {
  font-size: 0.98rem;
  font-weight: 800;
  color: #FFFFFF;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.brand-sub-title {
  font-size: 0.65rem;
  color: var(--accent-gold);
  font-weight: 600;
  letter-spacing: 0.01em;
  margin-top: 2px;
  white-space: nowrap;
}

/* Navigation & Action Wrapper */
.nav-and-actions-wrapper {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.65rem;
  flex-grow: 1;
  min-width: 0;
}

/* Primary Navigation */
.primary-nav {
  display: flex;
  align-items: center;
  flex-shrink: 1;
  min-width: 0;
}

.nav-list {
  display: flex;
  align-items: center;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: 0.2rem;
}

.nav-item {
  color: #DDE8E1;
  text-decoration: none;
  font-size: 0.825rem;
  font-weight: 600;
  padding: 0.42rem 0.55rem;
  border-radius: var(--radius-sm);
  transition: var(--transition-fast);
  display: inline-flex;
  align-items: center;
  gap: 0.2rem;
  white-space: nowrap;
}

.nav-item:hover {
  color: var(--accent-gold);
  background: rgba(255, 255, 255, 0.08);
}

.nav-item.active {
  color: var(--accent-gold);
  background: rgba(255, 255, 255, 0.12);
  font-weight: 700;
}

.dropdown-toggle-link .chevron {
  font-size: 0.65rem;
  margin-left: 2px;
  transition: transform 0.2s ease;
  display: inline-block;
}

.nav-dropdown-parent:hover .chevron,
.nav-dropdown-parent.dropdown-open .chevron,
.nav-dropdown-parent.touch-open .chevron {
  transform: rotate(180deg);
}

/* Navigation Dropdown Menu */
.nav-dropdown-parent {
  position: relative;
}

/* Hover bridge between trigger and card */
.nav-dropdown-parent::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 0;
  right: 0;
  height: 10px;
  background: transparent;
  pointer-events: auto;
}

.nav-dropdown-card {
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  background: #0E3022;
  border: 1px solid rgba(200, 169, 107, 0.35);
  border-radius: var(--radius-md);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.45);
  min-width: 275px;
  padding: 0.5rem 0;
  display: none;
  z-index: 1005;
  animation: headerDropdownFade 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Bridge pseudo-element to guarantee seamless mouse hover */
.nav-dropdown-card::before {
  content: '';
  position: absolute;
  top: -12px;
  left: 0;
  right: 0;
  height: 14px;
  background: transparent;
  pointer-events: auto;
}

.nav-dropdown-card.dropdown-align-right {
  left: auto;
  right: 0;
}

.nav-dropdown-parent:hover .nav-dropdown-card,
.nav-dropdown-parent:focus-within .nav-dropdown-card,
.nav-dropdown-parent.touch-open .nav-dropdown-card,
.nav-dropdown-parent.dropdown-open .nav-dropdown-card {
  display: block;
}

.dropdown-link-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.7rem 1.15rem;
  color: #FFFFFF;
  text-decoration: none;
  transition: var(--transition-fast);
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  cursor: pointer;
}

.dropdown-link-row:last-child {
  border-bottom: none;
}

.dropdown-link-row:hover {
  background: rgba(200, 169, 107, 0.16);
  color: var(--accent-gold);
  padding-left: 1.25rem;
}

.drop-icon {
  font-size: 1.2rem;
  flex-shrink: 0;
}

.drop-title {
  font-size: 0.825rem;
  font-weight: 700;
  display: block;
  color: #FFFFFF;
  line-height: 1.25;
}

.dropdown-link-row:hover .drop-title {
  color: var(--accent-gold);
}

.drop-caption {
  font-size: 0.68rem;
  color: #9AB2A4;
  display: block;
  margin-top: 2px;
}

/* Header Right Utility Actions */
.header-right-actions,
.header-actions {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  flex-shrink: 0;
  white-space: nowrap;
}

/* Language Selector Block & Pill Buttons for Subpages */
.lang-selector-block {
  display: inline-flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(200, 169, 107, 0.35);
  border-radius: var(--radius-pill);
  padding: 2px;
  gap: 2px;
  flex-shrink: 0;
}

.btn-lang-pill {
  background: transparent;
  border: none;
  color: #DDE8E1;
  padding: 0.32rem 0.65rem;
  border-radius: var(--radius-pill);
  font-size: 0.78rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
  line-height: 1;
}

.btn-lang-pill:hover {
  color: var(--accent-gold);
}

.btn-lang-pill.active {
  background: var(--accent-gold);
  color: #06180E;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.25);
}

/* Universal Executive Gold Button (.btn-primary-gold) */
.btn-primary-gold {
  background: linear-gradient(135deg, #E2C485 0%, #C8A96B 50%, #A88339 100%) !important;
  color: #06180E !important;
  font-weight: 800 !important;
  font-size: 0.82rem !important;
  padding: 0.45rem 1rem !important;
  border: none !important;
  border-radius: var(--radius-pill) !important;
  cursor: pointer;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  text-decoration: none !important;
  box-shadow: 0 4px 14px rgba(200, 169, 107, 0.45);
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
  white-space: nowrap !important;
  flex-shrink: 0 !important;
  line-height: 1.2;
}

.btn-primary-gold:hover {
  background: linear-gradient(135deg, #F0D79F 0%, #D4B678 50%, #B99446 100%) !important;
  color: #06180E !important;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(200, 169, 107, 0.65);
  text-decoration: none !important;
}

.btn-primary-gold:visited,
.btn-primary-gold:active,
.btn-primary-gold:focus {
  color: #06180E !important;
  text-decoration: none !important;
  outline: none;
}

/* Outline Portal & CSR Buttons */
.btn-portal-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  padding: 0.45rem 1rem;
  font-size: 0.82rem;
  font-weight: 700;
  color: #123B2A;
  border: 1px solid #1B5E43;
  background: #FFFFFF;
  border-radius: var(--radius-pill);
  text-decoration: none !important;
  transition: all 0.2s ease;
  white-space: nowrap;
  cursor: pointer;
}

.btn-portal-outline:hover {
  background: #1B5E43;
  border-color: #1B5E43;
  color: #FFFFFF !important;
  transform: translateY(-1px);
}

.btn-portal-outline:visited {
  color: #123B2A;
}

.btn-portal-outline:hover:visited {
  color: #FFFFFF !important;
}

/* On dark headers, hero banners, ribbons, or dark surfaces, invert to white/gold */
.site-header .btn-portal-outline,
.page-hero .btn-portal-outline,
.csr-hero .btn-portal-outline,
.top-statutory-ribbon .btn-portal-outline,
.dark-section .btn-portal-outline,
.hero-portal-card .btn-portal-outline,
.footer-cta .btn-portal-outline {
  color: #FFFFFF !important;
  border: 1px solid rgba(200, 169, 107, 0.5);
  background: rgba(255, 255, 255, 0.08);
}

.site-header .btn-portal-outline:hover,
.page-hero .btn-portal-outline:hover,
.csr-hero .btn-portal-outline:hover,
.top-statutory-ribbon .btn-portal-outline:hover,
.dark-section .btn-portal-outline:hover,
.hero-portal-card .btn-portal-outline:hover,
.footer-cta .btn-portal-outline:hover {
  background: rgba(200, 169, 107, 0.25);
  border-color: var(--accent-gold);
  color: var(--accent-gold) !important;
}

/* Language Pill Button */
.lang-pill-btn {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(200, 169, 107, 0.35);
  color: #FFFFFF;
  padding: 0.4rem 0.65rem;
  border-radius: var(--radius-pill);
  font-size: 0.78rem;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  transition: var(--transition-fast);
  white-space: nowrap;
}

.lang-pill-btn:hover {
  background: rgba(200, 169, 107, 0.2);
  border-color: var(--accent-gold);
  color: var(--accent-gold);
  transform: translateY(-1px);
}

/* Portal Dropdown */
.portal-dropdown-wrapper {
  position: relative;
}

.portal-trigger-btn {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(200, 169, 107, 0.35);
  color: #FFFFFF;
  padding: 0.4rem 0.65rem;
  border-radius: var(--radius-sm);
  font-size: 0.78rem;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  transition: var(--transition-fast);
  white-space: nowrap;
}

.portal-trigger-btn .chevron {
  font-size: 0.7rem;
  transition: transform 0.2s ease;
}

.portal-dropdown-wrapper:hover .portal-trigger-btn,
.portal-dropdown-wrapper:focus-within .portal-trigger-btn {
  background: var(--accent-gold);
  color: #06180E;
  border-color: var(--accent-gold);
}

.portal-dropdown-wrapper:hover .portal-trigger-btn .chevron,
.portal-dropdown-wrapper.touch-open .portal-trigger-btn .chevron,
.portal-dropdown-wrapper.dropdown-open .portal-trigger-btn .chevron {
  transform: rotate(180deg);
}

.portal-menu-card {
  position: absolute;
  top: calc(100% + 4px);
  right: 0;
  background: #0E3022;
  border: 1px solid rgba(200, 169, 107, 0.45);
  border-radius: var(--radius-md);
  box-shadow: 0 16px 45px rgba(0, 0, 0, 0.6);
  min-width: 280px;
  padding: 0.5rem 0;
  display: none;
  z-index: 2050;
  animation: headerDropdownFade 0.15s cubic-bezier(0.16, 1, 0.3, 1);
  pointer-events: auto;
}

/* Invisible Bridge pseudo-element to guarantee seamless mouse hover without dropping */
.portal-menu-card::before {
  content: '';
  position: absolute;
  top: -14px;
  left: 0;
  right: 0;
  height: 16px;
  background: transparent;
  pointer-events: auto;
}

.portal-dropdown-wrapper:hover .portal-menu-card,
.portal-dropdown-wrapper:focus-within .portal-menu-card,
.portal-dropdown-wrapper.touch-open .portal-menu-card,
.portal-dropdown-wrapper.dropdown-open .portal-menu-card {
  display: block;
}

.portal-card-heading {
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent-gold);
  padding: 0.4rem 1.15rem;
  font-weight: 800;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  margin-bottom: 0.35rem;
}

.portal-menu-link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.65rem 1.15rem;
  color: #FFFFFF;
  text-decoration: none;
  transition: var(--transition-fast);
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  cursor: pointer;
  pointer-events: auto;
  user-select: none;
}

.portal-menu-link:hover {
  background: rgba(200, 169, 107, 0.18);
  color: var(--accent-gold);
  padding-left: 1.3rem;
}

.p-icon {
  font-size: 1.15rem;
  flex-shrink: 0;
}

.p-title {
  font-size: 0.825rem;
  font-weight: 700;
  line-height: 1.25;
  color: #FFFFFF;
}

.portal-menu-link:hover .p-title {
  color: var(--accent-gold);
}

.p-sub {
  font-size: 0.68rem;
  color: #9AB2A4;
  margin-top: 2px;
}

.portal-menu-link.admin-link {
  border-top: 1px solid rgba(200, 169, 107, 0.25);
  background: rgba(0, 0, 0, 0.2);
  margin-top: 0.35rem;
}

/* Single High-Contrast Luxury Donate CTA */
.btn-donate-primary {
  background: linear-gradient(135deg, #E2C485 0%, #C8A96B 50%, #A88339 100%);
  color: #06180E;
  font-weight: 800;
  font-size: 0.82rem;
  padding: 0.45rem 0.95rem;
  border: none;
  border-radius: var(--radius-pill);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  box-shadow: 0 4px 14px rgba(200, 169, 107, 0.45);
  transition: var(--transition-fast);
  white-space: nowrap;
  flex-shrink: 0;
}

.btn-donate-primary:hover {
  background: linear-gradient(135deg, #F0D79F, #B99446);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(200, 169, 107, 0.65);
}

/* Mobile Hamburger Toggle Button */
.mobile-menu-toggle {
  display: none;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(200, 169, 107, 0.4);
  border-radius: var(--radius-sm);
  width: 42px;
  height: 40px;
  padding: 8px;
  cursor: pointer;
  flex-direction: column;
  justify-content: space-around;
  align-items: center;
  transition: var(--transition-fast);
}

.mobile-menu-toggle:hover {
  background: var(--accent-gold);
  border-color: var(--accent-gold);
}

.mobile-menu-toggle:hover .hamburger-bar {
  background-color: #06180E;
}

.hamburger-bar {
  display: block;
  width: 22px;
  height: 2.5px;
  background-color: var(--accent-gold);
  border-radius: 2px;
  transition: var(--transition-fast);
}

.mobile-drawer-close-btn {
  display: none;
}

@keyframes headerDropdownFade {
  from { opacity: 0; transform: translateY(-8px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes headerDrawerSlide {
  from { opacity: 0; transform: translateY(-20px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Hero Section */
.hero-section {
  position: relative;
  background: linear-gradient(160deg, rgba(18, 59, 42, 0.92) 0%, rgba(10, 36, 25, 0.94) 100%),
              url('/images/Poon%20Kurinchi%20img/WhatsApp%20Image%202026-10-24%20at%2012.43.20%20PM%20(1).jpeg') center/cover no-repeat;
  color: var(--text-inverse);
  padding: 5rem 0 4.5rem;
  overflow: hidden;
}

.hero-content-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 3rem;
  align-items: center;
}

.hero-pill-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  background: rgba(200, 169, 107, 0.18);
  border: 1px solid rgba(200, 169, 107, 0.4);
  color: var(--accent-gold);
  padding: 0.35rem 0.9rem;
  border-radius: var(--radius-pill);
  font-size: 0.825rem;
  font-weight: 600;
  margin-bottom: 1.25rem;
}

.hero-title {
  font-size: 2.75rem;
  font-weight: 800;
  line-height: 1.18;
  margin-bottom: 1.25rem;
  letter-spacing: -0.01em;
}

.hero-title span.gold-highlight {
  color: var(--accent-gold);
}

.hero-subtitle {
  font-size: 1.125rem;
  line-height: 1.6;
  color: #D3E0D8;
  margin-bottom: 2rem;
  max-width: 600px;
}

.hero-cta-group {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.btn-primary-hero {
  background: linear-gradient(135deg, var(--accent-gold), #B59353);
  color: var(--primary-forest-dark);
  font-weight: 700;
  font-size: 1rem;
  padding: 0.75rem 1.65rem;
  border-radius: var(--radius-md);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  box-shadow: 0 4px 15px rgba(200, 169, 107, 0.35);
  transition: var(--transition-fast);
}

.btn-primary-hero:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 22px rgba(200, 169, 107, 0.45);
}

.btn-secondary-hero {
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: var(--text-inverse);
  font-weight: 600;
  font-size: 1rem;
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius-md);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: var(--transition-fast);
}

.btn-outline-hero,
.btn-browse-category {
  background: rgba(255, 255, 255, 0.12);
  border: 1.5px solid #C8A96B;
  color: #FFFFFF !important;
  font-weight: 700;
  font-size: 1rem;
  padding: 0.75rem 1.65rem;
  border-radius: var(--radius-md);
  text-decoration: none !important;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  transition: all 0.25s ease;
  backdrop-filter: blur(4px);
  cursor: pointer;
}

.btn-outline-hero:hover,
.btn-browse-category:hover {
  background: #C8A96B;
  color: #123B2A !important;
  border-color: #C8A96B;
  transform: translateY(-2px);
  box-shadow: 0 8px 22px rgba(200, 169, 107, 0.4);
}

.btn-outline-hero:visited,
.btn-browse-category:visited {
  color: #FFFFFF !important;
}

.btn-outline-hero:hover:visited,
.btn-browse-category:hover:visited {
  color: #123B2A !important;
}

/* Universal App Modal Component */
.app-modal {
  display: none;
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(18, 59, 42, 0.7);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  z-index: 10000;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  overflow-y: auto;
}
.app-modal.active {
  display: flex !important;
}
.app-modal-content {
  background: #FFFFFF;
  border-radius: 16px;
  max-width: 680px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  padding: 2.25rem;
  position: relative;
  box-shadow: 0 20px 45px rgba(0,0,0,0.25);
  border: 1px solid #E2E8E4;
  animation: modalFadeIn 0.25s ease forwards;
}
@keyframes modalFadeIn {
  from { opacity: 0; transform: translateY(12px) scale(0.98); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}
.modal-close-btn {
  position: absolute;
  top: 1rem; right: 1.25rem;
  background: #F4F8F5;
  border: 1px solid #D5DDD8;
  border-radius: 50%;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  cursor: pointer;
  color: #68776D;
  transition: all 0.2s ease;
}
.modal-close-btn:hover {
  background: #1B5E43;
  color: #FFFFFF;
  border-color: #1B5E43;
}

.btn-secondary-hero:hover {
  background: rgba(255, 255, 255, 0.2);
  border-color: var(--accent-gold);
  color: var(--accent-gold);
}

/* Hero Stats Card */
.hero-stats-card {
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(200, 169, 107, 0.25);
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: 0 15px 35px rgba(0,0,0,0.3);
}

.hero-stats-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--accent-gold);
  margin-bottom: 1.25rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  padding-bottom: 0.75rem;
}

.stats-grid-2x2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

.stat-item-box {
  display: flex;
  flex-direction: column;
}

.stat-number {
  font-size: 1.85rem;
  font-weight: 800;
  color: #FFFFFF;
  line-height: 1.1;
}

.stat-label {
  font-size: 0.8125rem;
  color: #C1D4C8;
  margin-top: 0.25rem;
  line-height: 1.3;
}

/* Section Headings */
.section-padding {
  padding: 4.5rem 0;
}

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

.section-eyebrow {
  display: inline-block;
  color: var(--secondary-emerald);
  font-size: 0.8125rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 0.5rem;
}

.section-title {
  font-size: 2.15rem;
  font-weight: 800;
  color: var(--primary-forest);
  line-height: 1.25;
  margin-bottom: 0.75rem;
}

.section-description {
  font-size: 1.05rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* Focus Areas Cards */
.focus-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
}

.focus-card {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 1.75rem 1.5rem;
  box-shadow: var(--shadow-sm);
  transition: var(--transition-smooth);
  display: flex;
  flex-direction: column;
}

.focus-card:hover {
  transform: translateY(-4px);
  border-color: var(--border-emerald);
  box-shadow: var(--shadow-md);
}

.focus-icon-box {
  width: 52px;
  height: 52px;
  background: var(--bg-card-subtle);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.65rem;
  margin-bottom: 1.25rem;
  color: var(--secondary-emerald);
  border: 1px solid var(--border-light);
}

.focus-card-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--primary-forest);
  margin-bottom: 0.65rem;
}

.focus-card-desc {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.55;
  flex-grow: 1;
}

/* Projects Section & Filter Tabs */
.projects-filter-bar {
  display: flex;
  justify-content: center;
  gap: 0.75rem;
  margin-bottom: 2.5rem;
  flex-wrap: wrap;
}

.filter-pill-btn {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  color: var(--text-secondary);
  padding: 0.5rem 1.25rem;
  border-radius: var(--radius-pill);
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition-fast);
}

.filter-pill-btn:hover {
  border-color: var(--secondary-emerald);
  color: var(--secondary-emerald);
}

.filter-pill-btn.active {
  background: var(--secondary-emerald);
  color: var(--text-inverse);
  border-color: var(--secondary-emerald);
  box-shadow: 0 4px 10px rgba(27, 94, 67, 0.25);
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: 2rem;
}

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

.project-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--border-emerald);
}

.project-image-wrap {
  position: relative;
  height: 160px;
  background-color: #24312B;
}

.project-image-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.project-status-tag {
  position: absolute;
  top: 0.75rem;
  left: 0.75rem;
  padding: 0.25rem 0.65rem;
  border-radius: var(--radius-pill);
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.status-ongoing {
  background: #E8F5E9;
  color: #1B5E20;
}

.status-completed {
  background: #E0F2F1;
  color: #00695C;
}

.status-future {
  background: #FFF8E1;
  color: #F57F17;
}

.project-category-tag {
  position: absolute;
  bottom: 0.75rem;
  right: 0.75rem;
  background: rgba(18, 59, 42, 0.88);
  backdrop-filter: blur(4px);
  color: var(--accent-gold);
  padding: 0.2rem 0.55rem;
  border-radius: var(--radius-sm);
  font-size: 0.72rem;
  font-weight: 600;
}

.project-body {
  padding: 1rem 1.15rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.project-code-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.72rem;
  color: var(--text-muted);
  font-weight: 600;
  margin-bottom: 0.3rem;
}

.project-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--primary-forest);
  line-height: 1.3;
  margin-bottom: 0.35rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.project-desc {
  font-size: 0.84rem;
  color: var(--text-secondary);
  line-height: 1.45;
  margin-bottom: 0.75rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Financial Indicator Bar */
.project-financial-box {
  background: #F4F8F5;
  border-radius: var(--radius-sm);
  padding: 0.45rem 0.75rem;
  margin-bottom: 0.75rem;
  border: 1px solid var(--border-light);
}

.financial-meta-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 0.4rem;
}

.progress-track {
  height: 8px;
  background: #E2E8DF;
  border-radius: var(--radius-pill);
  overflow: hidden;
  margin-bottom: 0.4rem;
}

.progress-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--secondary-emerald), var(--accent-gold));
  border-radius: var(--radius-pill);
}

.financial-sub-row {
  display: flex;
  justify-content: space-between;
  font-size: 0.75rem;
  color: var(--text-secondary);
}

.project-footer-actions {
  display: flex;
  gap: 0.75rem;
  margin-top: auto;
}

.btn-card-primary {
  flex: 1;
  background: var(--secondary-emerald);
  color: var(--text-inverse);
  text-align: center;
  padding: 0.55rem 0.85rem;
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  font-weight: 600;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: var(--transition-fast);
}

.btn-card-primary:hover {
  background: var(--primary-forest);
}

.btn-card-outline {
  background: transparent;
  border: 1px solid var(--border-light);
  color: var(--text-primary);
  padding: 0.55rem 0.85rem;
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: var(--transition-fast);
}

.btn-card-outline:hover {
  border-color: var(--secondary-emerald);
  color: var(--secondary-emerald);
}

/* News & Events Grid */
.news-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 2rem;
  max-width: 1040px;
  margin: 0 auto;
}

.news-card {
  background: var(--bg-card);
  border-radius: var(--radius-md);
  border: 1px solid var(--border-light);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: var(--transition-smooth);
  display: flex;
  flex-direction: column;
}

.news-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--border-emerald);
}

.news-img-box {
  height: 240px;
  overflow: hidden;
  position: relative;
  background: var(--bg-card-subtle);
}

.news-img-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 18%;
  transition: transform 0.4s ease;
}

.news-card:hover .news-img-box img {
  transform: scale(1.04);
}

.news-content {
  padding: 1.5rem;
}

.news-date-badge {
  font-size: 0.75rem;
  color: var(--secondary-emerald);
  font-weight: 700;
  margin-bottom: 0.4rem;
  display: inline-block;
}

.news-heading {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--primary-forest);
  line-height: 1.35;
  margin-bottom: 0.65rem;
}

.news-snippet {
  font-size: 0.875rem;
  color: var(--text-secondary);
  line-height: 1.55;
  margin-bottom: 1rem;
}

.read-more-link {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--secondary-emerald);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  cursor: pointer;
}

.read-more-link:hover {
  color: var(--accent-gold);
}

/* Events Layout */
.events-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 1.75rem;
}

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

.event-image-wrap {
  width: 100%;
  height: 200px;
  overflow: hidden;
  background: var(--bg-card-subtle);
  position: relative;
}

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

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

.event-header-row {
  display: flex;
  background: var(--bg-card-subtle);
  border-bottom: 1px solid var(--border-light);
  padding: 1rem 1.25rem;
  align-items: center;
  gap: 1rem;
}

.event-calendar-box {
  background: var(--primary-forest);
  color: var(--text-inverse);
  padding: 0.5rem 0.75rem;
  border-radius: var(--radius-sm);
  text-align: center;
  min-width: 55px;
}

.event-cal-month {
  font-size: 0.7rem;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--accent-gold);
}

.event-cal-day {
  font-size: 1.35rem;
  font-weight: 800;
  line-height: 1;
}

.event-meta-info {
  display: flex;
  flex-direction: column;
}

.event-category-chip {
  font-size: 0.75rem;
  color: var(--secondary-emerald);
  font-weight: 700;
}

.event-venue-text {
  font-size: 0.8125rem;
  color: var(--text-secondary);
}

.event-body {
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.event-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--primary-forest);
  margin-bottom: 0.5rem;
}

.event-desc {
  font-size: 0.875rem;
  color: var(--text-secondary);
  line-height: 1.5;
  margin-bottom: 1.25rem;
  flex-grow: 1;
}

/* Gallery Section */
.gallery-filter-tabs {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.6rem;
  margin-bottom: 2rem;
}

.gallery-filter-btn {
  background: #FFFFFF;
  border: 1px solid rgba(18, 59, 42, 0.16);
  color: var(--primary-forest-dark);
  font-family: inherit;
  font-size: 0.85rem;
  font-weight: 600;
  padding: 0.5rem 1.15rem;
  border-radius: var(--radius-full, 9999px);
  cursor: pointer;
  transition: all 0.25s ease;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.gallery-filter-btn:hover {
  border-color: var(--primary-forest);
  color: var(--primary-forest);
  transform: translateY(-1px);
  box-shadow: 0 4px 8px rgba(18, 59, 42, 0.1);
}

.gallery-filter-btn.active {
  background: var(--primary-forest-dark);
  color: #FFFFFF;
  border-color: var(--primary-forest-dark);
  box-shadow: 0 4px 12px rgba(18, 59, 42, 0.25);
}

.gallery-load-more-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: #FFFFFF;
  color: var(--primary-forest-dark);
  border: 2px solid var(--primary-forest-dark);
  padding: 0.75rem 2rem;
  border-radius: var(--radius-full, 9999px);
  font-weight: 700;
  font-size: 0.95rem;
  cursor: pointer;
  transition: all 0.25s ease;
  box-shadow: 0 2px 8px rgba(18, 59, 42, 0.08);
}

.gallery-load-more-btn:hover {
  background: var(--primary-forest-dark);
  color: #FFFFFF;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(18, 59, 42, 0.2);
}

/* Photo Gallery Grid & Cards (Luxury 3-Column Exhibition Card Style) */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr));
  gap: 2rem;
}

@media (min-width: 1024px) {
  .gallery-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 2.25rem;
  }
}

@media (max-width: 640px) {
  .gallery-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
}

/* Modern Card Layout: Photo on top, full visibility, caption below */
.gallery-card {
  background: var(--bg-surface, #FFFFFF);
  border-radius: var(--radius-lg, 16px);
  overflow: hidden;
  border: 1px solid rgba(18, 59, 42, 0.08);
  box-shadow: 0 4px 18px rgba(18, 59, 42, 0.06);
  display: flex;
  flex-direction: column;
  cursor: pointer;
  outline: none;
  transition: transform 0.35s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 0.35s cubic-bezier(0.2, 0.8, 0.2, 1), border-color 0.3s ease;
}

.gallery-card:hover,
.gallery-card:focus-visible {
  transform: translateY(-6px);
  box-shadow: 0 16px 36px rgba(18, 59, 42, 0.14);
  border-color: rgba(200, 169, 107, 0.5);
}

.gallery-image-wrapper {
  position: relative;
  width: 100%;
  height: 290px;
  overflow: hidden;
  background: #eef3f0;
}

@media (max-width: 640px) {
  .gallery-image-wrapper {
    height: 240px;
  }
}

.gallery-image-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform 0.5s cubic-bezier(0.2, 0.8, 0.2, 1);
  display: block;
}

.gallery-card:hover .gallery-image-wrapper img {
  transform: scale(1.06);
}

.gallery-category-badge {
  position: absolute;
  top: 14px;
  left: 14px;
  background: rgba(10, 36, 25, 0.82);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: #FFFFFF;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 5px 12px;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
  z-index: 2;
}

.gallery-zoom-overlay {
  position: absolute;
  inset: 0;
  background: rgba(10, 36, 25, 0.3);
  opacity: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.3s ease;
  z-index: 1;
}

.gallery-card:hover .gallery-zoom-overlay {
  opacity: 1;
}

.gallery-zoom-icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.95);
  color: var(--primary-forest, #123B2A);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
  transform: scale(0.85);
  transition: transform 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.gallery-card:hover .gallery-zoom-icon {
  transform: scale(1);
}

.gallery-card-content {
  padding: 1.25rem 1.4rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
  background: #FFFFFF;
}

.gallery-card-subtag {
  font-size: 0.74rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--accent-gold-dark, #A88132);
  margin-bottom: 0.4rem;
}

.gallery-card-title {
  font-size: 1.08rem;
  font-weight: 700;
  color: var(--primary-forest-dark, #0A2419);
  line-height: 1.4;
  margin: 0 0 1rem 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.gallery-card-action {
  margin-top: auto;
  padding-top: 0.75rem;
  border-top: 1px solid rgba(18, 59, 42, 0.08);
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--primary-forest, #123B2A);
  transition: color 0.25s ease;
}

.gallery-card-action svg {
  transition: transform 0.25s ease;
}

.gallery-card:hover .gallery-card-action {
  color: var(--accent-gold-dark, #A88132);
}

.gallery-card:hover .gallery-card-action svg {
  transform: translateX(4px);
}

/* Fallback & Legacy overlay styles */
.gallery-thumbnail-card {
  position: relative;
  height: 290px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  cursor: pointer;
  box-shadow: var(--shadow-sm);
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}

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

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

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

.gallery-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(10, 36, 25, 0.92) 0%, rgba(10, 36, 25, 0.35) 45%, transparent 75%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 1.15rem 1.25rem;
  color: var(--text-inverse);
  transition: background 0.35s ease;
}

.gallery-thumbnail-card:hover .gallery-overlay {
  background: linear-gradient(to top, rgba(10, 36, 25, 0.96) 0%, rgba(10, 36, 25, 0.48) 50%, transparent 80%);
}

.gallery-caption {
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1.35;
  margin-top: 0.25rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.4);
}

.gallery-album-tag {
  font-size: 0.72rem;
  color: var(--accent-gold);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  display: inline-block;
}

/* CSR Homepage Showcase Grid & Executive Cards */
.home-csr-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.75rem;
  margin-bottom: 2.5rem;
  width: 100%;
  box-sizing: border-box;
}

@media (max-width: 1024px) {
  .home-csr-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.5rem;
  }
}

@media (max-width: 680px) {
  .home-csr-grid {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }
}

.home-csr-card {
  background: #FFFFFF;
  border: 1px solid #E2E8F0;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 4px 18px rgba(18, 59, 42, 0.07);
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.25s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.25s ease;
  display: flex;
  flex-direction: column;
  position: relative;
  min-width: 0;
}

.home-csr-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 16px 36px rgba(18, 59, 42, 0.14);
  border-color: #C8A96B;
}

.home-csr-media {
  position: relative;
  height: 195px;
  width: 100%;
  overflow: hidden;
  background: #123B2A;
}

.home-csr-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.45s ease;
  display: block;
}

.home-csr-card:hover .home-csr-media img {
  transform: scale(1.06);
}

.home-csr-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(18, 59, 42, 0.2) 0%, rgba(18, 59, 42, 0.75) 100%);
  pointer-events: none;
}

.home-csr-badge-bar {
  position: absolute;
  top: 12px;
  left: 12px;
  right: 12px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 2;
}

.home-csr-code-tag {
  background: rgba(18, 59, 42, 0.9);
  backdrop-filter: blur(6px);
  color: #C8A96B;
  border: 1px solid rgba(200, 169, 107, 0.5);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  padding: 0.25rem 0.6rem;
  border-radius: 6px;
  text-transform: uppercase;
}

.home-csr-category-tag {
  position: absolute;
  bottom: 12px;
  left: 12px;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(4px);
  color: #123B2A;
  font-size: 0.725rem;
  font-weight: 700;
  padding: 0.25rem 0.65rem;
  border-radius: 6px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.18);
  z-index: 2;
}

.home-csr-status-pill {
  padding: 0.25rem 0.7rem;
  border-radius: 9999px;
  font-size: 0.7rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.15);
}

.home-csr-status-pill.status-ongoing {
  background: #E8F5E9;
  color: #1B5E20;
  border: 1px solid #A5D6A7;
}

.home-csr-status-pill.status-completed {
  background: #E0F2F1;
  color: #00695C;
  border: 1px solid #80CBC4;
}

.home-csr-status-pill.status-future {
  background: #FFF8E1;
  color: #B45309;
  border: 1px solid #FDE68A;
}

.home-csr-body {
  padding: 1.4rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.home-csr-title {
  font-size: 1.125rem;
  font-weight: 800;
  color: #123B2A;
  line-height: 1.4;
  margin: 0 0 0.55rem;
  min-height: 48px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.home-csr-desc {
  font-size: 0.85rem;
  color: #475569;
  line-height: 1.55;
  margin: 0 0 1.15rem;
  min-height: 60px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.home-csr-metrics {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
  background: #F8FAF8;
  border: 1px solid #E5EBE7;
  border-radius: 10px;
  padding: 0.8rem 0.95rem;
  margin-bottom: 1.15rem;
}

.home-csr-metric-item {
  display: flex;
  flex-direction: column;
}

.home-csr-metric-label {
  font-size: 0.6875rem;
  color: #64748B;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 2px;
}

.home-csr-metric-val {
  font-size: 1.1rem;
  font-weight: 800;
  color: #123B2A;
  white-space: nowrap;
}

.home-csr-metric-val.green {
  color: #1B5E43;
}

.home-csr-docs-box {
  margin-top: auto;
  border-top: 1px dashed #CBD5E1;
  padding-top: 1rem;
}

.home-csr-docs-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.65rem;
}

.home-csr-docs-title {
  font-size: 0.75rem;
  font-weight: 800;
  color: #123B2A;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.home-csr-docs-list {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.csr-doc-link-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.5rem 0.75rem;
  background: #FBFDFB;
  border: 1px solid #E2E8F0;
  border-radius: 8px;
  text-decoration: none;
  transition: all 0.2s ease;
}

.csr-doc-link-item:hover {
  background: #FFFFFF;
  border-color: #1B5E43;
  box-shadow: 0 4px 12px rgba(27, 94, 67, 0.12);
  transform: translateX(3px);
}

.csr-doc-link-left {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  flex: 1;
}

.csr-pdf-pill {
  background: #FEE2E2;
  color: #DC2626;
  font-size: 0.65rem;
  font-weight: 800;
  padding: 2px 6px;
  border-radius: 4px;
  letter-spacing: 0.5px;
  flex-shrink: 0;
}

.csr-doc-name {
  font-size: 0.8125rem;
  font-weight: 600;
  color: #1E293B;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.csr-doc-size {
  font-size: 0.7rem;
  color: #94A3B8;
  font-weight: 500;
  flex-shrink: 0;
}

.csr-doc-dl-badge {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 0.725rem;
  font-weight: 700;
  color: #1B5E43;
  background: #E8F5E9;
  padding: 3px 8px;
  border-radius: 6px;
  flex-shrink: 0;
  transition: background 0.2s ease, color 0.2s ease;
}

.csr-doc-link-item:hover .csr-doc-dl-badge {
  background: #1B5E43;
  color: #FFFFFF;
}

/* CSR & Volunteers Section */
.csr-showcase-box {
  background: linear-gradient(135deg, var(--primary-forest-dark) 0%, var(--primary-forest) 100%);
  color: var(--text-inverse);
  border-radius: var(--radius-xl);
  padding: 3rem;
  border: 1px solid rgba(200, 169, 107, 0.3);
  box-shadow: var(--shadow-xl);
}

.csr-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 2.5rem;
  align-items: center;
}

.csr-feature-list {
  list-style: none;
  margin: 1.5rem 0;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.csr-feature-item {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  font-size: 0.95rem;
  color: #DDEBE3;
}

.csr-feature-item i {
  color: var(--accent-gold);
  margin-top: 0.2rem;
}

/* Financial Transparency Table */
.transparency-card {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-light);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

.table-responsive {
  overflow-x: auto;
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 0.875rem;
}

.data-table th {
  background: var(--bg-card-subtle);
  color: var(--primary-forest);
  font-weight: 700;
  padding: 0.85rem 1rem;
  border-bottom: 2px solid var(--border-light);
  white-space: nowrap;
}

.data-table td {
  padding: 0.85rem 1rem;
  border-bottom: 1px solid var(--border-light);
  color: var(--text-primary);
}

.data-table tr:hover td {
  background-color: #FAFCF9;
}

.amount-col {
  font-family: monospace;
  font-weight: 600;
  text-align: right;
}

/* Modals */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(10, 36, 25, 0.75);
  backdrop-filter: blur(4px);
  z-index: 2000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.modal-backdrop.active {
  display: flex;
}

.modal-window {
  background: var(--bg-card);
  width: 100%;
  max-width: 600px;
  max-height: 90vh;
  overflow-y: auto;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xl);
  border: 1px solid var(--border-light);
  position: relative;
  animation: modalFadeIn 0.2s ease-out;
}

@keyframes modalFadeIn {
  from { opacity: 0; transform: scale(0.96); }
  to { opacity: 1; transform: scale(1); }
}

.modal-header {
  background: var(--primary-forest);
  color: var(--text-inverse);
  padding: 1.25rem 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.modal-title {
  font-size: 1.25rem;
  font-weight: 700;
}

.modal-close-btn {
  background: none;
  border: none;
  color: var(--text-inverse);
  font-size: 1.5rem;
  cursor: pointer;
  line-height: 1;
}

.modal-body {
  padding: 1.75rem 1.5rem;
}

/* Donation Flow Elements */
.donation-amount-presets {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.65rem;
  margin-bottom: 1.25rem;
}

.amount-preset-btn {
  background: var(--bg-card-subtle);
  border: 1px solid var(--border-light);
  color: var(--primary-forest);
  font-weight: 700;
  padding: 0.65rem 0.5rem;
  border-radius: var(--radius-md);
  cursor: pointer;
  text-align: center;
  transition: var(--transition-fast);
}

.amount-preset-btn:hover {
  border-color: var(--secondary-emerald);
}

.amount-preset-btn.active {
  background: var(--secondary-emerald);
  color: var(--text-inverse);
  border-color: var(--secondary-emerald);
}

/* Form Styles */
.form-group {
  margin-bottom: 1.15rem;
}

.form-label {
  display: block;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 0.35rem;
}

.form-control {
  width: 100%;
  padding: 0.65rem 0.85rem;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  font-size: 0.875rem;
  font-family: inherit;
  color: var(--text-primary);
  background: #FFFFFF;
  transition: var(--transition-fast);
}

.form-control:focus {
  outline: none;
  border-color: var(--secondary-emerald);
  box-shadow: 0 0 0 3px rgba(27, 94, 67, 0.15);
}

/* ==========================================================================
   Luxury Site Footer (Exhibition Night Theme with Webase Brandings Credit)
   ========================================================================== */
.site-footer {
  background: linear-gradient(180deg, #071F14 0%, #03110A 100%);
  color: #BBD2C5;
  font-size: 0.875rem;
  padding: 0 0 2rem;
  position: relative;
  overflow: hidden;
}

.footer-decorative-top {
  height: 3px;
  width: 100%;
  background: linear-gradient(90deg, transparent, rgba(200, 169, 107, 0.4) 15%, #C8A96B 50%, rgba(200, 169, 107, 0.4) 85%, transparent);
  margin-bottom: 4.5rem;
}

.footer-container {
  max-width: 1440px;
  width: 95%;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1.05fr 1.25fr;
  gap: 3rem;
  margin-bottom: 3.5rem;
}

/* 1. Brand & Organization Column */
.footer-brand-col {
  display: flex;
  flex-direction: column;
}

.footer-brand-link {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  text-decoration: none;
  margin-bottom: 1.25rem;
  transition: opacity 0.25s ease;
}

.footer-brand-link:hover {
  opacity: 0.92;
}

.footer-brand-emblem {
  height: 52px;
  width: auto;
  object-fit: contain;
  filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.5));
  transition: transform 0.3s ease;
}

.footer-brand-link:hover .footer-brand-emblem {
  transform: scale(1.05);
}

.footer-brand-info {
  display: flex;
  flex-direction: column;
}

.footer-brand-title {
  font-size: 1.08rem;
  font-weight: 800;
  color: #FFFFFF;
  letter-spacing: 0.02em;
  line-height: 1.25;
}

.footer-brand-subtitle {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--accent-gold);
  letter-spacing: 0.01em;
  margin-top: 3px;
}

.footer-about-text {
  font-size: 0.86rem;
  line-height: 1.65;
  color: #9EB5A9;
  margin-bottom: 1.5rem;
}

/* Verified Statutory Card */
.footer-statutory-card {
  background: rgba(14, 48, 34, 0.65);
  border: 1px solid rgba(200, 169, 107, 0.32);
  border-radius: var(--radius-md, 10px);
  padding: 1rem 1.15rem;
  backdrop-filter: blur(8px);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.25);
  transition: all 0.3s ease;
}

.footer-statutory-card:hover {
  border-color: var(--accent-gold);
  box-shadow: 0 6px 20px rgba(200, 169, 107, 0.16);
  transform: translateY(-2px);
}

.statutory-card-header {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  margin-bottom: 0.75rem;
  padding-bottom: 0.6rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.statutory-seal-icon {
  font-size: 1.35rem;
  flex-shrink: 0;
}

.statutory-badge-label {
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--accent-gold);
  font-weight: 700;
}

.statutory-reg-num {
  font-size: 0.88rem;
  font-weight: 800;
  color: #FFFFFF;
  letter-spacing: 0.02em;
}

.statutory-card-details {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  font-size: 0.78rem;
}

.statutory-detail-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.5rem;
}

.statutory-key {
  color: #8E9E94;
}

.statutory-val {
  color: #DDE8E1;
  font-weight: 600;
  text-align: right;
}

/* 2 & 3. Navigation Columns & Titles */
.footer-col-title {
  color: #FFFFFF;
  font-size: 1.02rem;
  font-weight: 700;
  margin-bottom: 1.4rem;
  letter-spacing: 0.02em;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.title-accent-bar {
  width: 32px;
  height: 2.5px;
  background: var(--accent-gold);
  border-radius: 2px;
  transition: width 0.3s ease;
}

.footer-nav-col:hover .title-accent-bar {
  width: 52px;
}

.footer-nav-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
}

.footer-link {
  color: #B5C9BD;
  text-decoration: none;
  font-size: 0.875rem;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  transition: all 0.2s ease;
}

.footer-arrow {
  color: var(--accent-gold);
  font-weight: 800;
  font-size: 0.95rem;
  line-height: 1;
  transition: transform 0.2s ease;
}

.footer-link:hover {
  color: #FFFFFF;
}

.footer-link:hover .footer-arrow {
  transform: translateX(4px);
  color: #FFFFFF;
}

/* 4. Portal Chips & Contact Snippet */
.footer-portals-pills {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  margin-bottom: 1.25rem;
}

.footer-portal-chip {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-sm, 6px);
  padding: 0.45rem 0.75rem;
  color: #D6E4DC;
  font-size: 0.8rem;
  font-weight: 600;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  transition: all 0.25s ease;
}

.footer-portal-chip:hover {
  background: rgba(200, 169, 107, 0.16);
  border-color: var(--accent-gold);
  color: #FFFFFF;
  transform: translateX(4px);
}

.footer-portal-chip.admin-chip {
  border-color: rgba(200, 169, 107, 0.35);
  background: rgba(10, 36, 25, 0.75);
}

.footer-contact-snippet {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  font-size: 0.8125rem;
  color: #9EB5A9;
}

.contact-row {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  line-height: 1.45;
}

.c-icon {
  font-size: 0.95rem;
  flex-shrink: 0;
  margin-top: 1px;
}

.footer-contact-link {
  color: #9EB5A9;
  text-decoration: none;
  transition: color 0.2s ease;
}

.footer-contact-link:hover {
  color: var(--accent-gold);
}

/* 5. Bottom Bar & Webase Brandings Credit */
.footer-bottom-bar {
  border-top: 1px solid rgba(200, 169, 107, 0.2);
  padding-top: 1.75rem;
  font-size: 0.8125rem;
  color: #8E9E94;
}

.footer-bottom-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1.25rem;
}

.footer-copyright {
  flex: 1 1 300px;
  color: #9EB5A9;
  line-height: 1.5;
}

/* Prominent Webase Brandings Agency Credit */
.footer-branding-credit {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.82rem;
  color: #C2D5CB;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(200, 169, 107, 0.3);
  padding: 0.4rem 1rem;
  border-radius: var(--radius-pill, 9999px);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.footer-branding-credit:hover {
  background: rgba(200, 169, 107, 0.15);
  border-color: var(--accent-gold);
  box-shadow: 0 4px 16px rgba(200, 169, 107, 0.25);
  transform: translateY(-2px);
  color: #FFFFFF;
}

.credit-sparkle {
  color: var(--accent-gold);
  font-size: 0.85rem;
  animation: sparkleGlow 2.5s ease-in-out infinite;
}

@keyframes sparkleGlow {
  0%, 100% { opacity: 0.7; transform: scale(0.9); }
  50% { opacity: 1; transform: scale(1.2); color: #F5E5C0; }
}

.webase-brand-link {
  color: var(--accent-gold);
  text-decoration: none;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  letter-spacing: 0.01em;
  transition: color 0.2s ease;
}

.webase-brand-link:hover {
  color: #FFFFFF;
  text-decoration: underline;
}

.external-icon {
  display: inline-block;
  opacity: 0.85;
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.webase-brand-link:hover .external-icon {
  transform: translate(2px, -2px);
  opacity: 1;
}

.footer-legal-links {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.footer-legal-link {
  color: #8E9E94;
  text-decoration: none;
  transition: color 0.2s ease;
}

.footer-legal-link:hover {
  color: var(--accent-gold);
}

.legal-dot {
  color: rgba(255, 255, 255, 0.2);
}

/* Compact desktop styling for screens between 1181px and 1380px */
@media (min-width: 1181px) and (max-width: 1380px) {
  .brand-sub-title {
    display: none;
  }
  .header-container {
    gap: 0.45rem;
    padding: 0 0.85rem;
  }
  .nav-list {
    gap: 0.15rem;
  }
  .nav-item {
    font-size: 0.79rem;
    padding: 0.38rem 0.45rem;
  }
  .header-right-actions {
    gap: 0.35rem;
  }
  .lang-pill-btn,
  .portal-trigger-btn {
    padding: 0.36rem 0.55rem;
    font-size: 0.75rem;
  }
  .btn-donate-primary {
    padding: 0.4rem 0.8rem;
    font-size: 0.78rem;
  }
}

/* Responsive Breakpoints */
@media (max-width: 1180px) {
  .mobile-menu-toggle {
    display: flex;
  }

  .nav-and-actions-wrapper {
    display: none;
  }

  .nav-and-actions-wrapper.mobile-active {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: #071F14;
    padding: 5rem 1.5rem 2.5rem;
    box-shadow: 0 14px 28px rgba(0, 0, 0, 0.6);
    align-items: stretch;
    gap: 1.25rem;
    border-bottom: 3px solid var(--accent-gold);
    overflow-y: auto;
    z-index: 9999;
    animation: headerDrawerSlide 0.25s ease;
  }

  .mobile-drawer-close-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    top: 1.25rem;
    right: 1.25rem;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.25);
    color: #FFFFFF;
    font-size: 1.25rem;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    cursor: pointer;
    transition: 0.2s ease;
  }

  .mobile-drawer-close-btn:hover {
    background: var(--accent-gold);
    color: #0A2419;
  }

  .primary-nav {
    width: 100%;
  }

  .nav-list {
    flex-direction: column;
    width: 100%;
    align-items: stretch;
    gap: 0.35rem;
  }

  .nav-item {
    width: 100%;
    padding: 0.75rem 1rem;
    border-radius: var(--radius-md);
    background: rgba(255, 255, 255, 0.05);
    font-size: 0.95rem;
  }

  .nav-dropdown-card {
    position: static;
    display: block;
    box-shadow: none;
    border: none;
    background: rgba(0, 0, 0, 0.25);
    margin: 0.4rem 0 0.4rem 1rem;
    border-left: 2px solid var(--accent-gold);
    border-radius: 0;
  }

  .header-right-actions {
    flex-direction: column;
    width: 100%;
    gap: 0.85rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
  }

  .lang-pill-btn,
  .portal-trigger-btn,
  .btn-donate-primary {
    width: 100%;
    justify-content: center;
    padding: 0.85rem 1rem;
    font-size: 1rem;
  }

  .portal-dropdown-wrapper {
    width: 100%;
  }

  .portal-menu-card {
    position: static;
    display: block;
    box-shadow: none;
    border: 1px solid rgba(200, 169, 107, 0.25);
    background: rgba(0, 0, 0, 0.3);
    margin-top: 0.5rem;
    width: 100%;
  }
}

@media (max-width: 992px) {
  .hero-content-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
  
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
  
  .csr-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .statutory-ribbon-right {
    display: none;
  }

  .statutory-ribbon-left {
    justify-content: center;
    width: 100%;
  }

  .brand-emblem-img {
    height: 40px;
  }

  .brand-main-title {
    font-size: 0.95rem;
  }

  .brand-sub-title {
    font-size: 0.65rem;
  }
}

@media (max-width: 600px) {
  .hero-title {
    font-size: 2.15rem;
  }
  
  .footer-grid {
    grid-template-columns: 1fr;
  }
  
  .donation-amount-presets {
    grid-template-columns: 1fr 1fr;
  }
  
  .stats-grid-2x2 {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
}

