:root {
    --color-brand: #1e3a8a;
    --color-brand-light: #2563eb;
    --color-accent: #1E90FF;
    --color-accent-light: #63b3ff;
    --color-text: #0f172a;
    --color-text-light: #475569;
    --color-bg: #f0f7ff;
    --color-bg-alt: #ffffff;
    --color-border: #dbeafe;
    --color-input-bg: #eff6ff;
    --btn-bg: #1E90FF;
    --btn-hover: #0077e6;
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 2.5rem;
    --spacing-lg: 5rem;
    --spacing-xl: 8rem;
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.04);
    --shadow-md: 0 4px 20px rgba(0,0,0,0.06);
    --shadow-lg: 0 8px 40px rgba(0,0,0,0.08);
    --radius: 12px;
    --radius-pill: 50px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { font-size: 16px; scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  color: var(--color-text-light);
  background-color: var(--color-bg);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  padding-top: 90px;
}

img { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; color: inherit; transition: color 0.3s ease; }

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  color: var(--color-text);
  font-weight: 600;
  line-height: 1.2;
}

h1 { font-size: clamp(2.4rem, 5vw, 3.8rem); letter-spacing: -0.02em; margin-bottom: var(--spacing-sm); }
h2 { font-size: clamp(1.8rem, 3.5vw, 2.8rem); margin-bottom: var(--spacing-sm); }
h3 { font-size: 1.3rem; margin-bottom: var(--spacing-xs); }

p {
  font-size: 1.05rem;
  color: var(--color-text-light);
  margin-bottom: var(--spacing-sm);
  max-width: 72ch;
}

.container { max-width: 1140px; margin: 0 auto; padding: 0 2rem; width: 100%; }
.text-center { text-align: center; }
.section { padding: var(--spacing-lg) 0; }
.bg-alt { background-color: var(--color-bg-alt); }


.site-header {
  background: rgba(240, 247, 255, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--color-border);
  position: fixed;
  width: 100%;
  top: 0;
  left: 0;
  z-index: 1000;
  padding: 1rem 0;
  transition: all 0.4s ease;
}

.site-header.scrolled { padding: 0.5rem 0; box-shadow: var(--shadow-md); }
.site-header .container { display: flex; justify-content: space-between; align-items: center; max-width: 100%; padding: 0 4rem; }
.logo img { height: 90px; width: auto; transition: all 0.4s ease; }
.site-header.scrolled .logo img { height: 65px; }

.main-nav ul { list-style: none; display: flex; gap: 2rem; margin: 0; padding: 0; align-items: center; }

.main-nav a {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 500;
  color: var(--color-text-light);
  position: relative;
  padding: 0.25rem 0;
}

.main-nav a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--color-brand);
  transition: width 0.3s ease;
}

.main-nav a:hover, .main-nav a.active { color: var(--color-brand); }
.main-nav a:hover::after, .main-nav a.active::after { width: 100%; }


.main-nav .dropdown { position: relative; }

.main-nav .dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  background: var(--color-bg-alt);
  min-width: 220px;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--color-border);
  border-radius: 8px;
  padding: 0.5rem 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all 0.3s ease;
  flex-direction: column;
  gap: 0;
  z-index: 100;
  pointer-events: none;
}

.main-nav .dropdown:hover .dropdown-menu {
  opacity: 1; visibility: visible; transform: translateY(0); pointer-events: auto;
}

.main-nav .dropdown-menu li { width: 100%; }

.main-nav .dropdown-menu a {
  display: block;
  padding: 0.75rem 1.5rem;
  color: var(--color-text);
  font-size: 0.8rem;
  text-transform: none;
  letter-spacing: normal;
  font-weight: 500;
}

.main-nav .dropdown-menu a::after { display: none; }
.main-nav .dropdown-menu a:hover { background: var(--color-bg); color: var(--color-brand); }


.nav-btn-donate {
  background: var(--color-accent);
  color: #ffffff !important;
  padding: 0.5rem 1.25rem !important;
  border-radius: var(--radius-pill);
  font-weight: 700 !important;
  letter-spacing: 0.05em !important;
  transition: all 0.3s ease;
  display: inline-block;
}

.nav-btn-donate::after { display: none !important; }
.nav-btn-donate:hover { background: var(--color-accent-light); transform: translateY(-2px); box-shadow: var(--shadow-md); }

.mobile-menu-btn { display: none; background: none; border: none; font-size: 1.5rem; cursor: pointer; color: var(--color-text); }


.login-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--color-text);
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  transition: all 0.3s ease;
}

.login-icon:hover { background: var(--color-brand); color: #ffffff; border-color: var(--color-brand); }


.btn-primary {
  display: inline-block;
  background: var(--btn-bg);
  color: #ffffff;
  font-weight: 600;
  padding: 0.9rem 2.2rem;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  border: 2px solid var(--btn-bg);
  cursor: pointer;
  transition: all 0.3s ease;
  border-radius: var(--radius-pill);
}

.btn-primary:hover { background: var(--btn-hover); border-color: var(--btn-hover); transform: translateY(-2px); box-shadow: var(--shadow-md); }

.btn-outline {
  display: inline-block;
  background: transparent;
  color: var(--color-brand);
  padding: 0.9rem 2.2rem;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  border: 2px solid var(--color-brand);
  cursor: pointer;
  transition: all 0.3s ease;
  border-radius: var(--radius-pill);
}

.btn-outline:hover { background: var(--color-brand); color: #ffffff; transform: translateY(-2px); box-shadow: var(--shadow-md); }


.page-transition {
  position: fixed; top: 0; left: 0;
  width: 100vw; height: 100vh;
  background-color: var(--color-bg);
  z-index: 9999; opacity: 1;
  pointer-events: none;
  transition: opacity 0.5s ease;
}

.page-transition.fade-out { opacity: 0; }
.page-transition.fade-in { opacity: 1; pointer-events: all; }


.hero-subtitle {
  display: inline-block;
  color: var(--color-accent);
  text-transform: uppercase;
  letter-spacing: 0.15em;
  font-weight: 700;
  font-size: 0.8rem;
  margin-bottom: 0.75rem;
  background: rgba(30, 144, 255, 0.1);
  padding: 0.3rem 0.8rem 0.3rem calc(0.8rem + 0.15em);
  border-radius: var(--radius-pill);
}


.hero {
  display: flex;
  align-items: center;
  min-height: calc(100vh - 90px);
  background: #0f172a;
  overflow: hidden;
  position: relative;
}

.hero-content-wrapper {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 800px;
  padding: var(--spacing-lg) 4rem;
}

.hero-content { max-width: 580px; color: white; }
.hero-content h1 { color: white; text-shadow: 0 2px 10px rgba(0,0,0,0.3); }
.hero-content p { color: rgba(255,255,255,0.9); text-shadow: 0 1px 5px rgba(0,0,0,0.3); }

.hero-carousel {
  position: absolute; top: 0; left: 0;
  width: 100%; height: 100%;
  z-index: 1;
}

.carousel-slide {
  position: absolute; top: 0; left: 0;
  width: 100%; height: 100%;
  background-size: cover;
  background-position: center 30%;
  opacity: 0;
  transition: opacity 1.5s ease-in-out;
}

.carousel-slide::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0.4) 50%, rgba(0,0,0,0.1) 100%);
}

.carousel-slide.active {
  opacity: 1;
}


.animate-on-scroll { opacity: 0; transform: translateY(30px); transition: opacity 0.8s ease, transform 0.8s ease; }
.animate-on-scroll.in-view { opacity: 1; transform: translateY(0); }
.delay-100 { transition-delay: 0.1s; }
.delay-200 { transition-delay: 0.2s; }
.delay-300 { transition-delay: 0.3s; }
.delay-400 { transition-delay: 0.4s; }
.delay-500 { transition-delay: 0.5s; }

.image-reveal { opacity: 0; transform: scale(0.95); transition: opacity 0.8s ease, transform 0.8s ease; }
.image-reveal.in-view { opacity: 1; transform: scale(1); }

.hover-zoom { overflow: hidden; border-radius: var(--radius); }
.hover-zoom>div, .hover-zoom>img { transition: transform 0.6s ease; }
.hover-zoom:hover>div, .hover-zoom:hover>img { transform: scale(1.05); }


.impact-stats {
  background: var(--color-bg-alt);
  padding: var(--spacing-lg) 0;
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
}

.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); text-align: center; gap: 2rem; }
.stat-item h3 { font-size: 3rem; color: var(--color-brand); margin-bottom: 0.5rem; font-family: var(--font-heading); font-weight: 700; }
.stat-item p { color: var(--color-text-light); text-transform: uppercase; letter-spacing: 0.1em; font-size: 0.8rem; font-weight: 500; margin: 0; }


.page-banner {
  position: relative;
  min-height: 320px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background-size: cover;
  background-position: center 25%;
  overflow: hidden;
}

.page-banner::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(30, 58, 138, 0.85) 0%, rgba(30, 58, 138, 0.7) 100%);
  z-index: 1;
}

.page-banner .container { position: relative; z-index: 2; }
.page-banner h1 { color: #ffffff; margin-bottom: 0.5rem; }
.page-banner p { color: rgba(255, 255, 255, 0.85); max-width: 550px; margin: 0 auto; }

.page-header { background: var(--color-bg-alt); padding: var(--spacing-lg) 0 var(--spacing-md) 0; text-align: center; }


.help-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; text-align: center; }

.help-card {
  background: var(--color-bg-alt);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 2.5rem 2rem;
  transition: all 0.3s ease;
}

.help-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }

.help-card .icon {
  width: 56px; height: 56px;
  margin: 0 auto 1.5rem;
  background: rgba(30, 58, 138, 0.08);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
}

.help-card .icon svg { width: 26px; height: 26px; color: var(--color-brand); }
.help-card h3 { margin-bottom: 0.75rem; }


.testimonial-section { background: var(--color-brand); padding: var(--spacing-lg) 0; text-align: center; }

.testimonial-section blockquote {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  color: #ffffff;
  font-weight: 300;
  line-height: 1.6;
  max-width: 700px;
  margin: 0 auto 1.5rem;
  font-style: italic;
}

.testimonial-section cite { color: rgba(255,255,255,0.7); font-size: 0.9rem; font-style: normal; text-transform: uppercase; letter-spacing: 0.1em; }


.values-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; }
.value-card { text-align: center; padding: 2rem; }
.value-card h3 { color: var(--color-brand); margin-bottom: 0.75rem; }


.split-layout { display: grid; grid-template-columns: 1fr 1fr; gap: var(--spacing-lg); align-items: center; }
.split-layout.reverse .split-content { order: -1; }
.split-image { width: 100%; height: 500px; background-size: cover; background-position: center 25%; border-radius: var(--radius); }


.project-list { display: flex; flex-direction: column; gap: var(--spacing-xl); }
.project-item { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: center; }
.project-item:nth-child(even) { direction: rtl; }
.project-item:nth-child(even) .project-info { direction: ltr; }

.project-info {
  background: var(--color-bg-alt);
  border: 1px solid var(--color-border);
  padding: 2.5rem;
  border-radius: var(--radius);
  transition: all 0.3s ease;
}

.project-info:hover { box-shadow: var(--shadow-lg); transform: translateY(-4px); }
.project-photo { height: 380px; background-size: cover; background-position: center 25%; border-radius: var(--radius); width: 100%; }


.gallery-section {
  position: relative;
  overflow: hidden;
  background-color: var(--color-bg);
  background-image: radial-gradient(var(--color-border) 1.5px, transparent 1.5px);
  background-size: 26px 26px;
  isolation: isolate;
}

.gallery-section::before,
.gallery-section::after {
  content: '';
  position: absolute;
  z-index: -1;
  border-radius: 50%;
  filter: blur(70px);
  opacity: 0.35;
  pointer-events: none;
}

.gallery-section::before {
  width: 420px;
  height: 420px;
  top: -160px;
  left: -140px;
  background: var(--color-accent);
}

.gallery-section::after {
  width: 380px;
  height: 380px;
  bottom: -150px;
  right: -120px;
  background: var(--color-brand);
}

.masonry-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  grid-auto-rows: 200px;
  gap: 20px;
  grid-auto-flow: dense;
  position: relative;
  z-index: 1;
}

.hover-zoom {
  border-radius: var(--radius);
  overflow: hidden;
  position: relative;
  box-shadow: var(--shadow-sm);
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.gallery-img { width: 100%; height: 100%; display: block; object-fit: cover; transition: transform 0.5s ease; }

.hover-zoom:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  z-index: 2;
}

.hover-zoom:hover .gallery-img { transform: scale(1.08); }

.hover-zoom:nth-child(7n + 1) { grid-column: span 2; grid-row: span 2; }
.hover-zoom:nth-child(11n + 3) { grid-column: span 2; grid-row: span 1; }
.hover-zoom:nth-child(13n + 5) { grid-column: span 1; grid-row: span 2; }

/* Soft brand-colored gradient wash + expand cue on hover */
.hover-zoom::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(15, 23, 42, 0) 55%, rgba(15, 23, 42, 0.55) 100%);
  opacity: 0;
  transition: opacity 0.35s ease;
  pointer-events: none;
}

.hover-zoom:hover::after { opacity: 1; }

.hover-zoom::before {
  content: '+';
  position: absolute;
  bottom: 14px;
  right: 14px;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.92);
  color: var(--color-brand);
  font-size: 1.3rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  opacity: 0;
  transform: scale(0.6);
  transition: all 0.35s ease;
  z-index: 3;
  box-shadow: var(--shadow-sm);
}

.hover-zoom:hover::before { opacity: 1; transform: scale(1); }


/* ============================================
   FEATURED MOMENTS CAROUSEL
   ============================================ */
.gallery-featured-section { padding-bottom: var(--spacing-md); }

.gallery-featured { position: relative; margin-top: var(--spacing-sm); }

.gallery-featured-track {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding: 1rem 4rem 1.5rem;
  scrollbar-width: none;
}

.gallery-featured-track::-webkit-scrollbar { display: none; }

.gallery-featured-slide {
  flex: 0 0 200px;
  height: 220px;
  border-radius: var(--radius);
  overflow: hidden;
  position: relative;
  scroll-snap-align: center;
  box-shadow: var(--shadow-sm);
  opacity: 0.6;
  filter: saturate(0.85);
  transition: flex-basis 0.5s ease, height 0.5s ease, box-shadow 0.5s ease, opacity 0.5s ease, filter 0.5s ease;
}

.gallery-featured-slide img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.6s ease; }

.gallery-featured-slide.is-active {
  flex-basis: 400px;
  height: 320px;
  opacity: 1;
  filter: saturate(1);
  box-shadow: var(--shadow-lg);
  z-index: 2;
}

.gallery-nav-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--color-bg-alt);
  border: 1px solid var(--color-border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  color: var(--color-brand);
  box-shadow: var(--shadow-md);
  cursor: pointer;
  z-index: 5;
  transition: all 0.3s ease;
}

.gallery-nav-btn:hover { background: var(--color-brand); color: #ffffff; border-color: var(--color-brand); }
.gallery-nav-prev { left: 0.5rem; }
.gallery-nav-next { right: 0.5rem; }

@media (max-width: 768px) {
  .gallery-nav-btn { display: none; }
  .gallery-featured-track { padding: 1rem 1rem 1.5rem; }
  .gallery-featured-slide { flex-basis: 150px; height: 170px; }
  .gallery-featured-slide.is-active { flex-basis: 260px; height: 240px; }
}


.lightbox {
  position: fixed; top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(0,0,0,0.9);
  display: flex; justify-content: center; align-items: center;
  z-index: 9999; opacity: 0; visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
  backdrop-filter: blur(5px);
}

.lightbox.active { opacity: 1; visibility: visible; }
.lightbox-img { max-width: 90%; max-height: 90vh; object-fit: contain; border-radius: var(--radius); box-shadow: 0 10px 30px rgba(0,0,0,0.5); transform: scale(0.95); transition: transform 0.3s ease; }
.lightbox.active .lightbox-img { transform: scale(1); }
.lightbox-close { position: absolute; top: 2rem; right: 2rem; color: white; font-size: 2.5rem; cursor: pointer; background: none; border: none; padding: 0.5rem; line-height: 1; transition: color 0.3s ease; }
.lightbox-close:hover { color: var(--color-accent); }
.gallery-img { cursor: zoom-in; }


.contact-split { display: grid; grid-template-columns: 1fr 1.2fr; gap: 4rem; align-items: start; }
.contact-info-col h3 { margin-bottom: 1.5rem; }
.contact-detail { display: flex; align-items: flex-start; gap: 1rem; margin-bottom: 1.5rem; }
.contact-detail svg { width: 22px; height: 22px; color: var(--color-brand); flex-shrink: 0; margin-top: 3px; }
.contact-form-container { max-width: 600px; margin: 0 auto; }

.contact-form {
  background: var(--color-bg-alt);
  border: 1px solid var(--color-border);
  padding: 2.5rem;
  border-radius: var(--radius);
}

.form-group { margin-bottom: 1.25rem; }
.form-group label { display: block; font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 0.5rem; color: var(--color-text); font-weight: 600; }

.form-group input, .form-group textarea {
  width: 100%; padding: 0.9rem 1rem;
  background: var(--color-input-bg);
  border: 1px solid var(--color-border);
  color: var(--color-text);
  border-radius: 8px;
  font-family: var(--font-body);
  font-size: 1rem;
  transition: all 0.3s ease;
}

.form-group input:focus, .form-group textarea:focus {
  outline: none;
  border-color: var(--color-brand);
  background: #ffffff;
  box-shadow: 0 0 0 3px rgba(30, 144, 255, 0.15);
}


.clock-widget {
  background: var(--color-bg-alt);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 2rem;
  display: flex; align-items: center; justify-content: space-between;
  box-shadow: var(--shadow-sm);
  margin-bottom: 2rem;
}

.status-indicator { display: flex; align-items: center; gap: 0.75rem; font-weight: 600; font-size: 1.1rem; }
.dot { width: 12px; height: 12px; border-radius: 50%; background: #cbd5e1; transition: background 0.3s ease; }
.dot.active { background: #10b981; box-shadow: 0 0 0 0 rgba(16,185,129,0.7); animation: pulse-green 2s infinite; }

@keyframes pulse-green {
  0%   { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16,185,129,0.7); }
  70%  { transform: scale(1); box-shadow: 0 0 0 10px rgba(16,185,129,0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16,185,129,0); }
}


.blog-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; }

.blog-card { background: var(--color-bg-alt); border: 1px solid var(--color-border); border-radius: var(--radius); overflow: hidden; transition: all 0.3s ease; }
.blog-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.blog-card-img { width: 100%; height: 200px; object-fit: cover; }
.blog-card-body { padding: 1.5rem; }
.blog-card-date { font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--color-accent); font-weight: 600; margin-bottom: 0.5rem; }
.blog-card-body h3 { font-size: 1.15rem; margin-bottom: 0.75rem; line-height: 1.4; }
.blog-card-body h3 a:hover { color: var(--color-brand); }
.blog-card-body p { font-size: 0.95rem; margin-bottom: 1rem; }
.read-more { font-size: 0.85rem; font-weight: 600; color: var(--color-brand); text-transform: uppercase; letter-spacing: 0.08em; }
.read-more:hover { color: var(--color-accent); }


.project-detail-header { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: center; margin-bottom: var(--spacing-lg); }
.project-detail-img { width: 100%; height: 420px; object-fit: cover; border-radius: var(--radius); }
.project-detail-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; margin: var(--spacing-md) 0; }

.project-stat { text-align: center; padding: 1.5rem; background: var(--color-bg-alt); border: 1px solid var(--color-border); border-radius: var(--radius); }
.project-stat .value { font-size: 2rem; font-weight: 700; color: var(--color-brand); font-family: var(--font-heading); }
.project-stat p { font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.08em; margin: 0.25rem 0 0; color: var(--color-text-light); }
.project-gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; margin: var(--spacing-md) 0; }
.project-gallery img { width: 100%; height: 200px; object-fit: cover; border-radius: 8px; }


.site-footer {
  background: var(--color-brand);
  color: rgba(255,255,255,0.8);
  padding: var(--spacing-lg) 0 var(--spacing-md);
  border-top: 4px solid var(--color-accent);
}

.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: var(--spacing-md); margin-bottom: var(--spacing-md); }
.footer-logo { height: 55px; width: auto; filter: brightness(0) invert(1); margin-bottom: var(--spacing-sm); }
.footer-col h4 { color: #ffffff; font-size: 0.9rem; text-transform: uppercase; letter-spacing: 0.12em; margin-bottom: var(--spacing-sm); }
.footer-col ul { list-style: none; margin: 0; padding: 0; }
.footer-col ul li { margin-bottom: 0.5rem; }
.footer-col a { color: rgba(255,255,255,0.6); transition: color 0.3s ease; }
.footer-col a:hover { color: #ffffff; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.15); padding-top: var(--spacing-sm); text-align: center; color: rgba(255,255,255,0.5); font-size: 0.85rem; }


.login-wrapper { display: grid; grid-template-columns: 1fr 1fr; min-height: calc(100vh - 90px); width: 100%; }
.login-visual { background-size: cover; background-position: center; position: relative; display: flex; align-items: flex-end; padding: 3rem; }
.visual-overlay { background: rgba(30,58,138,0.9); backdrop-filter: blur(8px); padding: 2rem; border-radius: var(--radius); color: #ffffff; }
.visual-overlay h2 { font-size: 2rem; color: #ffffff; margin-bottom: 0.5rem; }
.visual-overlay p { color: rgba(255,255,255,0.8); }
.login-form-area { display: flex; align-items: center; justify-content: center; padding: 3rem; background: var(--color-bg); }
.login-card { background: var(--color-bg-alt); border: 1px solid var(--color-border); padding: 2.5rem; border-radius: var(--radius); width: 100%; max-width: 380px; text-align: center; }

.dashboard-layout { display: grid; grid-template-columns: 240px 1fr; min-height: calc(100vh - 90px); gap: 2rem; padding: 2rem; }

.sidebar {
  background: var(--color-bg-alt);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 1.5rem 1rem;
  display: flex; flex-direction: column; gap: 0.5rem;
  height: calc(100vh - 90px - 4rem);
  position: sticky; top: 122px;
}

.sidebar a { color: var(--color-text-light); font-weight: 500; padding: 0.7rem 1rem; border-radius: 8px; transition: all 0.2s ease; font-size: 0.9rem; }
.sidebar a:hover, .sidebar a.active { background: rgba(30,58,138,0.08); color: var(--color-brand); }

.widget-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1.5rem; margin-bottom: 2rem; }
.widget { background: var(--color-bg-alt); border: 1px solid var(--color-border); padding: 1.5rem; border-radius: var(--radius); transition: all 0.3s ease; }
.widget:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.widget h3 { font-size: 0.85rem; color: var(--color-text-light); margin-bottom: 0.5rem; text-transform: uppercase; letter-spacing: 0.05em; }
.widget .value { font-size: 2.2rem; font-weight: 700; color: var(--color-brand); }


@media (max-width: 992px) {
  .split-layout, .project-item, .project-item:nth-child(even),
  .login-wrapper, .contact-split, .help-grid, .values-grid,
  .blog-grid, .project-detail-header, .project-detail-stats {
    grid-template-columns: 1fr;
  }
  .login-visual { display: none; }
  .split-layout.reverse .split-content { order: unset; }
  .project-item:nth-child(even) .project-info { order: unset; }
  .hero-content { padding: var(--spacing-md) 0; }
  .footer-grid { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .dashboard-layout { grid-template-columns: 1fr; }
  .sidebar { height: auto; position: static; flex-direction: row; overflow-x: auto; }
}

@media (max-width: 768px) {
  
  
  /* Off-Canvas Mobile Drawer */
  .main-nav {
      position: fixed;
      top: 0;
      right: -100%; /* Hidden off-screen to the right by default */
      width: 80%;
      max-width: 320px;
      height: 100vh;
      background: var(--color-bg);
      box-shadow: -5px 0 25px rgba(0,0,0,0.15);
      transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1);
      z-index: 1000;
      display: flex !important; /* Overrides default none */
      flex-direction: column;
      padding: 5rem 2rem 2rem;
      overflow-y: auto;
  }
  .main-nav.active {
      right: 0;
  }
  .nav-overlay {
      position: fixed;
      top: 0;
      left: 0;
      width: 100%;
      height: 100vh;
      background: rgba(0, 0, 0, 0.5);
      backdrop-filter: blur(4px);
      z-index: 999;
      opacity: 0;
      visibility: hidden;
      transition: all 0.4s ease;
  }
  .nav-overlay.active {
      opacity: 1;
      visibility: visible;
  }

  .main-nav ul { flex-direction: column; gap: 1.5rem; }
  .main-nav .dropdown-menu { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; border: none; padding-left: 1rem; padding-top: 1rem; display: none; pointer-events: auto; }
  .main-nav .dropdown:hover .dropdown-menu { display: flex; }
  .mobile-menu-btn { display: block; }
  .masonry-gallery { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 150px; gap: 12px; }
  .hover-zoom:nth-child(7n + 1),
  .hover-zoom:nth-child(11n + 3),
  .hover-zoom:nth-child(13n + 5) { grid-column: span 1; grid-row: span 1; }
  .hover-zoom:nth-child(7n + 1) { grid-column: span 2; grid-row: span 2; }
  .help-grid { grid-template-columns: 1fr; }
  .page-banner { min-height: 240px; }
}





.scroll-progress {
  position: fixed; top: 0; left: 0;
  height: 3px; width: 0%;
  background: linear-gradient(90deg, #1e3a8a, #1E90FF, #63b3ff);
  z-index: 99999;
  box-shadow: 0 0 12px rgba(30,144,255,0.8), 0 0 4px rgba(30,144,255,1);
  transition: width 0.08s linear;
}


.hero-content h1 {
  background: linear-gradient(120deg, #ffffff 0%, #93c5fd 40%, #ffffff 70%, #bfdbfe 100%);
  background-size: 250% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: gradient-shift 5s ease infinite;
}

@keyframes gradient-shift {
  0%   { background-position: 0% center; }
  50%  { background-position: 100% center; }
  100% { background-position: 0% center; }
}


#hero-particles {
  position: absolute; top: 0; left: 0;
  width: 100%; height: 100%;
  z-index: 1; pointer-events: none;
}


.hero-orb {
  position: absolute; border-radius: 50%;
  filter: blur(70px); opacity: 0.18;
  pointer-events: none; z-index: 1;
  animation: float-orb 9s ease-in-out infinite;
}

.hero-orb-1 { width: 320px; height: 320px; background: #1E90FF; top: -60px; right: 80px; animation-delay: 0s; }
.hero-orb-2 { width: 220px; height: 220px; background: #63b3ff; bottom: 40px; right: 320px; animation-delay: 3s; }
.hero-orb-3 { width: 160px; height: 160px; background: #1e3a8a; top: 45%; right: 160px; animation-delay: 1.5s; }

@keyframes float-orb {
  0%, 100% { transform: translateY(0px) scale(1); }
  50%       { transform: translateY(-28px) scale(1.06); }
}


.btn-primary { position: relative; overflow: hidden; }

.btn-primary::before {
  content: '';
  position: absolute; top: 0; left: -100%;
  width: 55%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.28), transparent);
  transform: skewX(-18deg);
}

.btn-primary:hover::before { animation: shimmer 0.55s ease forwards; }

@keyframes shimmer {
  0%   { left: -100%; }
  100% { left: 160%; }
}


.btn-primary:hover {
  box-shadow: 0 0 24px rgba(30,144,255,0.55), 0 4px 20px rgba(0,0,0,0.1) !important;
}


.help-card:hover, .blog-card:hover, .project-info:hover, .widget:hover, .value-card:hover {
  box-shadow: 0 0 0 1px rgba(30,144,255,0.2), 0 0 30px rgba(30,144,255,0.12), 0 8px 40px rgba(0,0,0,0.07) !important;
  border-color: rgba(30,144,255,0.25) !important;
}


.hero-subtitle { animation: badge-pulse 3.5s ease-in-out infinite; }

@keyframes badge-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(30,144,255,0); }
  50%       { box-shadow: 0 0 16px rgba(30,144,255,0.25); }
}


.split-image-element { animation: float-gentle 7s ease-in-out infinite; }

@keyframes float-gentle {
  0%, 100% { transform: translateY(0px); }
  50%       { transform: translateY(-9px); }
}


.testimonial-section { position: relative; overflow: hidden; }

.testimonial-section::before {
  content: '';
  position: absolute;
  width: 700px; height: 700px;
  background: radial-gradient(circle, rgba(30,144,255,0.12) 0%, transparent 65%);
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  animation: radial-pulse 5s ease-in-out infinite;
  pointer-events: none;
}

@keyframes radial-pulse {
  0%, 100% { transform: translate(-50%, -50%) scale(1); opacity: 0.5; }
  50%       { transform: translate(-50%, -50%) scale(1.25); opacity: 1; }
}


.site-footer { box-shadow: 0 -4px 40px rgba(30,144,255,0.12); }


/* Marquee Section */
.partners-section {
    overflow: hidden;
    padding: var(--spacing-md) 0 var(--spacing-lg) 0;
}

.marquee-container {
    display: flex;
    width: 100%;
    overflow: hidden;
    white-space: nowrap;
    position: relative;
    padding: 1rem 0;
}

.marquee-container::before,
.marquee-container::after {
    content: "";
    position: absolute;
    top: 0;
    width: 100px;
    height: 100%;
    z-index: 2;
}

.marquee-container::before {
    left: 0;
    background: linear-gradient(to right, var(--color-bg-alt), transparent);
}

.marquee-container::after {
    right: 0;
    background: linear-gradient(to left, var(--color-bg-alt), transparent);
}

.marquee-content {
    display: flex;
    align-items: center;
    gap: 4rem;
    padding: 0 2rem;
    animation: scroll-marquee 40s linear infinite;
}

.marquee-content img {
    height: 90px;
    width: auto;
    object-fit: contain;
    filter: grayscale(100%) opacity(0.8);
    transition: all 0.4s ease;
    flex-shrink: 0;
    max-width: none;
}

.marquee-content img:hover {
    filter: grayscale(0%) opacity(1);
    transform: scale(1.1);
}

@keyframes scroll-marquee {
    0% { transform: translateX(0); }
    100% { transform: translateX(-100%); }
}



.main-nav a.active { text-shadow: 0 0 18px rgba(30,144,255,0.35); }


/* Donate Modal */
.donate-modal {
    display: none;
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(5px);
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.donate-modal.active {
    opacity: 1;
}

.donate-modal-content {
    background-color: var(--color-bg-alt);
    padding: 2.5rem;
    border-radius: var(--radius);
    max-width: 400px;
    width: 90%;
    text-align: center;
    position: relative;
    box-shadow: var(--shadow-lg);
    transform: scale(0.9);
    transition: transform 0.3s ease;
}

.donate-modal.active .donate-modal-content {
    transform: scale(1);
}

.donate-modal-close {
    position: absolute;
    top: 1rem;
    right: 1.5rem;
    color: var(--color-text-light);
    font-size: 2rem;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.3s ease;
}

.donate-modal-close:hover {
    color: var(--color-accent);
}

.donate-qr-img {
    width: 100%;
    max-width: 250px;
    height: auto;
    margin: 1.5rem auto 0;
    border: 1px solid var(--color-border);
    border-radius: 8px;
    padding: 10px;
    background: #fff;
}


.stat-item h3 { text-shadow: 0 0 30px rgba(30,58,138,0.25); }


.form-group input:focus, .form-group textarea:focus {
  box-shadow: 0 0 0 3px rgba(30,144,255,0.15), 0 0 20px rgba(30,144,255,0.08) !important;
}


.page-banner::after {
  content: '';
  position: absolute; inset: 0;
  background: repeating-linear-gradient(0deg, transparent, transparent 3px, rgba(0,0,0,0.04) 3px, rgba(0,0,0,0.04) 4px);
  z-index: 2; pointer-events: none;
}





.site-header{
    background:rgba(255,255,255,.72);
    backdrop-filter:blur(18px);
    -webkit-backdrop-filter:blur(18px);
    border-bottom:1px solid rgba(255,255,255,.25);
    transition:.45s ease;
}

.site-header.scrolled{
    background:rgba(255,255,255,.92);
    box-shadow:
        0 10px 35px rgba(30,58,138,.08),
        0 1px 0 rgba(255,255,255,.5);
}




.main-nav a{
    transition:.35s ease;
}

.main-nav a:hover{
    color:var(--color-accent);
}

.main-nav a::after{
    height:3px;
    border-radius:20px;
    background:linear-gradient(
        90deg,
        #1e3a8a,
        #2563eb,
        #4ea5ff
    );
}




.btn-primary{

    background:linear-gradient(
        135deg,
        #2563eb,
        #1E90FF
    );

    border:none;

    box-shadow:
        0 10px 25px rgba(37,99,235,.25);

    transition:.35s ease;
}

.btn-primary:hover{

    transform:
        translateY(-4px)
        scale(1.02);

    box-shadow:

        0 18px 45px rgba(30,144,255,.30);

}


.btn-outline{

    transition:.35s ease;

}

.btn-outline:hover{

    background:linear-gradient(
        135deg,
        #2563eb,
        #1E90FF
    );

    border-color:transparent;

}




.help-card,
.blog-card,
.project-info,
.widget,
.value-card,
.project-stat,
.contact-form{

    transition:.45s ease;

    border:1px solid rgba(37,99,235,.08);

    box-shadow:
        0 8px 25px rgba(15,23,42,.04);

}


.help-card:hover,
.blog-card:hover,
.project-info:hover,
.widget:hover,
.value-card:hover,
.project-stat:hover{

    transform:
        translateY(-10px);

    border-color:
        rgba(37,99,235,.18);

    box-shadow:

        0 22px 55px rgba(37,99,235,.14);

}




.project-photo,
.split-image,
.blog-card-img,
.project-detail-img,
.gallery-img{

    transition:
        transform .7s ease,
        filter .7s ease;

}

.hover-zoom:hover img,
.hover-zoom:hover .gallery-img{

    transform:scale(1.08);

    filter:
        brightness(1.08)
        contrast(1.04);

}




.hero-image::after{

    background:

        linear-gradient(

            90deg,

            rgba(8,20,55,.88),

            rgba(20,55,120,.48),

            rgba(20,55,120,.10)

        );

}


.hero-content h1{

    animation:heroFade .9s ease;

}

.hero-content p{

    animation:heroFade 1.2s ease;

}

.hero .btn-primary{

    animation:heroFade 1.5s ease;

}

@keyframes heroFade{

    from{

        opacity:0;

        transform:
            translateY(30px);

    }

    to{

        opacity:1;

        transform:
            translateY(0);

    }

}




.hero::before{

    content:"";

    position:absolute;

    width:500px;
    height:500px;

    border-radius:50%;

    background:

        radial-gradient(

            rgba(37,99,235,.18),

            transparent 70%

        );

    top:-120px;

    right:-100px;

    filter:blur(40px);

    animation:heroGlow 10s ease-in-out infinite;

    pointer-events:none;

}

@keyframes heroGlow{

    0%,100%{

        transform:
            scale(1);

    }

    50%{

        transform:
            scale(1.18);

    }

}




.stat-item{

    transition:.35s ease;

}

.stat-item:hover{

    transform:translateY(-8px);

}

.stat-item h3{

    transition:.35s ease;

}

.stat-item:hover h3{

    color:#1E90FF;

}




.form-group input,
.form-group textarea{

    transition:.35s ease;

}

.form-group input:focus,
.form-group textarea:focus{

    transform:translateY(-2px);

}




.site-footer{

    background:

        linear-gradient(

            180deg,

            #17347b,

            #102657

        );

}

.footer-col a{

    transition:.3s;

}

.footer-col a:hover{

    color:#ffffff;

    padding-left:8px;

}




::-webkit-scrollbar{

    width:10px;

}

::-webkit-scrollbar-track{

    background:#edf5ff;

}

::-webkit-scrollbar-thumb{

    background:

        linear-gradient(

            #2563eb,

            #1E90FF

        );

    border-radius:50px;

}

::-webkit-scrollbar-thumb:hover{

    background:#1e3a8a;

}




section{

    transition:.4s;

}

img{

    user-select:none;

}

::selection{

    background:#1E90FF;

    color:white;

}


.project-preview-grid{
  display:grid;
  grid-template-columns:repeat(3,1fr);
gap:30px;
}

.project-preview-card{
display:flex;
flex-direction:column;
align-items:center;
text-align:center;
text-decoration:none;
background:transparent;
box-shadow:none;
transition:.45s;
}

.project-preview-card img{
width:200px;
height:200px;
object-fit:cover;
border-radius:50%;
box-shadow:0 10px 25px rgba(0,0,0,.1);
margin-bottom:20px;
transition:.4s ease;
}

.project-preview-card:hover img{
transform:scale(1.08) translateY(-5px);
}

.project-overlay{
position:static;
background:none;
padding:0;
color:var(--color-text);
}

.project-overlay h3{
font-size:24px;
margin-bottom:8px;
color:var(--color-text);
}

.project-overlay p{
color:var(--color-text-light);
font-size:16px;
}

.project-preview-card:hover{
transform:translateY(-8px);
}
/* ============================================
   GROWTH TIMELINE (Homepage "Our Growth")
   ============================================ */
.growth-timeline {
    position: relative;
    margin-top: 40px;
    padding: 260px 50px 170px;
}

.growth-track {
    position: relative;
    display: flex;
    height: 3px;
    background: linear-gradient(90deg, var(--color-brand), #b8e0ff);
    border-radius: 3px;
    z-index: 0;
}

.growth-endpoint {
    position: absolute;
    top: 260px;
    transform: translateY(-50%);
    font-family: var(--font-heading);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    color: var(--color-text-light);
    white-space: nowrap;
    z-index: 1;
    background: var(--color-bg);
    padding: 4px 0;
}

.growth-endpoint-start { left: 0; }
.growth-endpoint-end {
    right: 0;
    color: var(--color-accent);
}

.growth-item {
    position: relative;
    flex: 1;
    display: flex;
    justify-content: center;
    z-index: 2;
}

.growth-dot {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: var(--color-bg-alt);
    border: 4px solid var(--node-color, var(--color-brand));
    transform: translate(-50%, -50%);
    box-shadow: 0 0 0 4px rgba(30, 144, 255, 0.12);
    z-index: 2;
}

.growth-connector {
    position: absolute;
    left: 50%;
    top: 50%;
    width: 2px;
    background: var(--node-color, var(--color-brand));
    transform: translateX(-50%);
    opacity: 0.55;
}

.growth-top .growth-connector { top: 50%; height: 34px; transform: translate(-50%, -100%); }
.growth-bottom .growth-connector { top: 50%; height: 34px; }

.growth-card {
    position: absolute;
    left: 50%;
    top: 50%;
    width: 185px;
    transform: translateX(-50%);
    background: var(--color-bg-alt);
    border-radius: var(--radius);
    padding: 20px 16px;
    text-align: center;
    box-shadow: var(--shadow-lg);
    border-top: 4px solid var(--node-color, var(--color-brand));
}

.growth-top .growth-card { transform: translate(-50%, calc(-100% - 34px)); }
.growth-bottom .growth-card { transform: translate(-50%, 34px); }

.growth-card-icon {
    width: 42px;
    height: 42px;
    margin: 0 auto 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--node-color, var(--color-brand));
    color: #ffffff;
}

.growth-year {
    display: block;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.4rem;
    color: var(--color-text);
    margin-bottom: 4px;
}

.growth-card p {
    font-size: 0.9rem;
    color: var(--color-text-light);
    margin: 0;
    line-height: 1.4;
}

.hero-buttons{
    display:flex;
    align-items:center;
    gap:18px;
    flex-wrap:wrap;
}

.hero-buttons .btn-primary,
.hero-buttons .btn-outline{
    margin:0;
    min-width:210px;
    text-align:center;
}
@media (max-width: 768px) { .project-preview-grid { grid-template-columns: 1fr; } }




.dashboard-body {
    background-color: #f4f7fb;
}

.dashboard-header {
    background: #ffffff;
    border-bottom: 1px solid rgba(0,0,0,0.05);
    box-shadow: 0 4px 20px rgba(0,0,0,0.02);
}

.dashboard-layout {
    margin-top: 1rem;
    gap: 2.5rem;
}


.dashboard-sidebar {
    background: #ffffff;
    border: none;
    box-shadow: 0 10px 30px rgba(0,0,0,0.03);
    padding: 2rem 1.5rem;
    gap: 0.8rem;
}

.dashboard-sidebar a {
    display: flex;
    align-items: center;
    gap: 12px;
    color: #64748b;
    padding: 0.8rem 1.2rem;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.3s ease;
}

.dashboard-sidebar a svg {
    transition: transform 0.3s ease;
}

.dashboard-sidebar a:hover svg {
    transform: translateX(4px);
}

.dashboard-sidebar a.active {
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.1), rgba(30, 144, 255, 0.05));
    color: var(--color-brand);
    box-shadow: inset 3px 0 0 var(--color-brand);
}

.dashboard-sidebar .logout-btn {
    margin-top: auto;
    color: #ef4444;
}

.dashboard-sidebar .logout-btn:hover {
    background: rgba(239, 68, 68, 0.1);
    color: #dc2626;
}


.dashboard-main {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    padding-bottom: 3rem;
}

.dash-welcome {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
}

.welcome-title {
    font-size: 2rem;
    margin-bottom: 0.3rem;
    color: var(--color-text);
}

.welcome-subtitle {
    color: var(--color-text-light);
    font-size: 1.05rem;
}

.dash-date {
    background: #ffffff;
    padding: 0.6rem 1.2rem;
    border-radius: 20px;
    font-weight: 600;
    color: var(--color-brand);
    box-shadow: 0 4px 15px rgba(0,0,0,0.04);
}


.clock-widget-modern {
    background: linear-gradient(135deg, #1e3a8a, #2563eb);
    border-radius: 20px;
    padding: 2rem 2.5rem;
    color: #ffffff;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 15px 35px rgba(37, 99, 235, 0.2);
    position: relative;
    overflow: hidden;
}

.clock-widget-modern::before {
    content: '';
    position: absolute;
    top: -50%; right: -10%;
    width: 300px; height: 300px;
    background: radial-gradient(circle, rgba(255,255,255,0.15) 0%, transparent 70%);
    border-radius: 50%;
}

.clock-info h3 {
    font-size: 1.5rem;
    margin-bottom: 0.4rem;
    color: #ffffff;
}

.clock-info p {
    color: rgba(255,255,255,0.8);
    font-size: 0.95rem;
}

.clock-action {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    z-index: 1;
}

.status-pill {
    background: rgba(255,255,255,0.15);
    backdrop-filter: blur(10px);
    padding: 0.6rem 1.2rem;
    border-radius: 30px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
    border: 1px solid rgba(255,255,255,0.1);
    transition: all 0.3s;
}

.status-pill.active {
    background: rgba(16, 185, 129, 0.2);
    border-color: rgba(16, 185, 129, 0.4);
    color: #34d399;
}

.pulse-dot {
    width: 10px; height: 10px;
    border-radius: 50%;
    background: rgba(255,255,255,0.5);
    position: relative;
}

.pulse-dot.active {
    background: #10b981;
}

.pulse-dot.active::after {
    content: '';
    position: absolute;
    top: -4px; left: -4px; right: -4px; bottom: -4px;
    border-radius: 50%;
    border: 2px solid #10b981;
    animation: pulse-ring 1.5s cubic-bezier(0.215, 0.61, 0.355, 1) infinite;
}

@keyframes pulse-ring {
    0% { transform: scale(0.5); opacity: 0; }
    50% { opacity: 1; }
    100% { transform: scale(1.5); opacity: 0; }
}

.clock-btn {
    background: #ffffff;
    color: #1e3a8a;
    box-shadow: 0 8px 20px rgba(0,0,0,0.1);
}

.clock-btn:hover {
    background: #f8fafc;
    color: #1e3a8a;
    transform: translateY(-2px);
}

.clock-btn.clocked-in {
    background: transparent;
    color: #ffffff;
    border: 2px solid rgba(255,255,255,0.5);
    box-shadow: none;
}


.dash-widget-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.5rem;
}

.dash-widget {
    background: #ffffff;
    border-radius: 16px;
    padding: 1.8rem;
    display: flex;
    align-items: flex-start;
    gap: 1.2rem;
    box-shadow: 0 10px 25px rgba(0,0,0,0.03);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid transparent;
}

.dash-widget:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.06);
    border-color: rgba(30,144,255,0.1);
}

.widget-icon {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.dash-widget h3 {
    font-size: 0.9rem;
    color: var(--color-text-light);
    margin-bottom: 0.3rem;
}

.dash-widget .value {
    font-size: 2rem;
    font-weight: 700;
    color: var(--color-text);
}

.progress-bar-container {
    width: 100%;
    height: 6px;
    background: #e2e8f0;
    border-radius: 3px;
    margin-top: 0.8rem;
    overflow: hidden;
}

.progress-bar-fill {
    height: 100%;
    border-radius: 3px;
}

.progress-text {
    font-size: 0.8rem;
    color: var(--color-text-light);
    margin-top: 0.4rem;
}


.task-section {
    background: #ffffff;
    border-radius: 16px;
    padding: 2rem;
    box-shadow: 0 10px 25px rgba(0,0,0,0.03);
}

.task-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.task-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.task-card {
    display: flex;
    align-items: center;
    padding: 1.2rem;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
    overflow: hidden;
}

.task-card:hover {
    border-color: #cbd5e1;
    background: #f8fafc;
}

.task-card.completed {
    background: #f8fafc;
    border-color: #e2e8f0;
    opacity: 0.7;
}

.task-card.completed h4 {
    text-decoration: line-through;
    color: var(--color-text-light);
}

.checkbox-wrapper {
    margin-right: 1.2rem;
    position: relative;
}

.checkbox-wrapper input {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    height: 0;
    width: 0;
}

.custom-checkbox {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 22px;
    width: 22px;
    background-color: #ffffff;
    border: 2px solid #cbd5e1;
    border-radius: 6px;
    transition: all 0.2s ease;
}

.task-card:hover input ~ .custom-checkbox {
    border-color: var(--color-brand);
}

.checkbox-wrapper input:checked ~ .custom-checkbox {
    background-color: var(--color-brand);
    border-color: var(--color-brand);
}

.checkbox-wrapper input:checked ~ .custom-checkbox:after {
    content: '';
    display: block;
    width: 5px;
    height: 10px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
    margin-bottom: 2px;
}

.task-content h4 {
    font-size: 1rem;
    color: var(--color-text);
    margin-bottom: 0.2rem;
    transition: color 0.2s;
}

.task-content p {
    font-size: 0.85rem;
    color: var(--color-text-light);
    margin: 0;
}

.task-tag {
    margin-left: auto;
    font-size: 0.75rem;
    font-weight: 600;
    padding: 0.3rem 0.8rem;
    background: #f1f5f9;
    color: #64748b;
    border-radius: 20px;
}

.task-tag.urgent {
    background: rgba(239, 68, 68, 0.1);
    color: #ef4444;
}

@media (max-width: 768px) {
    .dash-welcome { flex-direction: column; align-items: flex-start; gap: 1rem; }
    .clock-widget-modern { flex-direction: column; align-items: flex-start; gap: 1.5rem; }
}

.dashboard-container {
    width: 100%;
    max-width: 100%;
    padding: 0 2rem;
    margin: 0;
    box-sizing: border-box;
}

@media (max-width: 768px) {
    .dashboard-container {
        padding: 0 1rem;
    }
}

.bottom-links {
    margin-top: auto;
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

@media (max-width: 992px) {
    .dashboard-sidebar {
        flex-direction: row;
        overflow-x: auto;
        padding: 1rem;
        white-space: nowrap;
    }
    .dashboard-sidebar a {
        margin-top: 0 !important;
        white-space: nowrap;
    }
    .dashboard-sidebar .bottom-links {
        flex-direction: row;
        margin-top: 0;
    }
    .dash-welcome { flex-direction: column; align-items: flex-start; gap: 1rem; }
    .clock-widget-modern { flex-direction: column; align-items: flex-start; gap: 1.5rem; }
}


/* ============================================
   MOBILE POLISH (PROJECTS & HOMEPAGE)
   ============================================ */
@media (max-width: 768px) {
    /* Global Typography Scale Down */
    h1 { font-size: 2.5rem !important; }
    h2 { font-size: 2rem !important; }

    /* Growth Timeline Optimization (Homepage) - vertical layout */
    .growth-timeline {
        flex-direction: column;
        align-items: stretch;
        margin-top: 2.5rem;
        padding: 0.5rem 0 0.5rem 26px;
        gap: 46px;
    }
    .growth-timeline::before {
        top: 0;
        bottom: 0;
        left: 6px;
        right: auto;
        width: 3px;
        height: auto;
        transform: none;
        background: linear-gradient(180deg, var(--color-brand), var(--color-accent-light));
    }
    .growth-endpoint { display: none; }
    .growth-item {
        height: auto;
        justify-content: flex-start;
        min-height: 90px;
    }
    .growth-dot { top: 10px; left: 6px; transform: translate(-50%, 0); }
    .growth-connector { display: none; }
    .growth-card,
    .growth-top .growth-card,
    .growth-bottom .growth-card {
        position: static;
        transform: none;
        width: 100%;
        padding-left: 30px;
        text-align: left;
        border-top: none;
        border-left: 4px solid var(--node-color, var(--color-brand));
    }
    .growth-card-icon { margin: 0 0 12px; }

    /* Project Pages: Banner & Headers */
    .page-banner h1 {
        font-size: 2.5rem !important;
    }
    .page-banner {
        min-height: 250px;
        padding: 3rem 1rem;
    }

    /* Project Detail Logo Size & Spacing */
    .project-detail-header {
        gap: 1.5rem !important;
        text-align: center;
    }
    .project-detail-header > div {
        min-height: auto !important; /* override inline style */
    }
    .project-detail-header img {
        max-width: 220px !important;
    }
    
    /* Center align the split content on mobile for better reading */
    .split-content {
        text-align: center;
    }
    .split-content .hero-subtitle {
        margin: 0 auto 0.75rem auto;
    }
    
    /* Help Grid Spacing */
    .help-grid {
        gap: 1rem;
    }
    .help-card {
        padding: 1.5rem;
    }
}

@media (max-width: 768px) {

    /* Mobile Menu Dropdown Fixes */
    .main-nav .dropdown-menu {
        background: transparent;
        padding: 0;
        margin-top: 1rem;
        width: 100%;
        display: none;
        flex-direction: column;
        align-items: center;
    }
    .main-nav .dropdown-menu a {
        text-align: center;
        padding: 0.5rem 0;
        font-size: 1rem;
    }
    .main-nav ul {
        align-items: center;
    }

}


/* ============================================
   MOBILE MENU ALIGNMENT HOTFIX
   ============================================ */
@media (max-width: 768px) {
    /* Center all list items precisely */
    .main-nav ul {
        width: 100%;
        display: flex;
        flex-direction: column;
        align-items: center;
        padding: 0 !important;
    }
    .main-nav li {
        width: 100%;
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    /* Main links */
    .main-nav a {
        display: inline-block !important; /* shrink wraps to text */
        text-align: center;
        padding: 0.75rem 1rem !important;
        width: auto !important;
    }
    /* Fix the underline position so it's always perfectly centered under text */
    .main-nav a::after {
        left: 50% !important;
        transform: translateX(-50%) !important;
    }
    /* Dropdown container */
    .main-nav .dropdown-menu {
        position: static !important;
        width: 100% !important;
        padding: 0 !important;
        margin: 0 !important;
        background: transparent !important;
        border: none !important;
        box-shadow: none !important;
        display: none;
        flex-direction: column;
        align-items: center;
    }
    .main-nav .dropdown:hover .dropdown-menu {
        display: flex !important;
    }
    /* Submenu links */
    .main-nav .dropdown-menu a {
        padding: 0.6rem 0 !important;
        font-size: 0.95rem !important;
        color: #475569 !important; /* subtle gray for submenus */
        font-weight: 500 !important;
    }
}

@media (max-width: 768px) {
    /* Force the dropdown to always be visible on mobile so users don't have to deal with touch-hover bugs */
    .main-nav .dropdown-menu {
        display: flex !important;
    }
}

@media (max-width: 768px) {
    .main-nav .dropdown-menu {
        display: none !important;
    }
    .main-nav .dropdown.open .dropdown-menu {
        display: flex !important;
    }
    .main-nav .dropdown > a::after {
        content: ' ▾' !important;
        position: static !important;
        width: auto !important;
        height: auto !important;
        background: transparent !important;
        display: none !important; /* Hide the underline on mobile dropdown toggles */
    }
    .main-nav .dropdown.open > a {
        color: var(--color-brand) !important;
    }
}

/* Login Icon Circle Fix */
.login-icon {
    width: 44px !important;
    height: 44px !important;
    padding: 0 !important;
    border-radius: 50% !important;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--color-border);
    transition: all 0.3s ease;
}

/* Mobile Menu Button Z-Index Fix */
.mobile-menu-btn {
    position: relative;
    z-index: 1002 !important;
}