/**
 * Mangaldeep Saving & Credit Co-operative Ltd.
 * Main Stylesheet (style.css)
 */

/* ==========================================================================
   Base & Global Resets
   ========================================================================== */
*, *::before, *::after {
  box-sizing: border-box;
}

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

body {
  font-family: var(--font-body);
  color: var(--text-body);
  background-color: var(--bg-light);
  line-height: 1.65;
  overflow-x: clip;
  padding: 0;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  color: var(--dark-green);
  font-weight: 700;
  line-height: 1.3;
}

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

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

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

/* ==========================================================================
   Scroll Progress Bar
   ========================================================================== */
#scroll-progress-bar {
  position: fixed;
  top: 0;
  left: 0;
  height: 4px;
  background: linear-gradient(90deg, #43A047, #66BB6A, #A7F3D0);
  width: 0%;
  z-index: 9999;
  transition: width 0.1s linear;
}

/* ==========================================================================
   Header: Section 1 - Top Bar
   ========================================================================== */
.header-top-bar {
  background-color: var(--primary-green);
  color: var(--white);
  font-size: 0.85rem;
  padding: 8px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.header-top-bar a {
  color: var(--white);
  opacity: 0.9;
}

.header-top-bar a:hover {
  opacity: 1;
  text-decoration: underline;
}

.top-bar-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.top-bar-item i {
  font-size: 1rem;
  color: #A7F3D0;
}

.social-top-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.15);
  margin-left: 6px;
  transition: var(--transition-fast);
}

.social-top-links a:hover {
  background: var(--white);
  color: var(--primary-green);
  transform: translateY(-2px);
}

/* ==========================================================================
   Header: Section 2 - Logo & Brand Banner
   ========================================================================== */
.header-logo-section {
  background-color: var(--white);
  padding: 24px 0; /* compact header while allowing logo to grow via max-height */
  border-bottom: 1px solid var(--border-light);
}

.brand-emblem-svg {
  width: 68px;
  height: auto;
  flex-shrink: 0;
  object-fit: contain;
  filter: drop-shadow(0 4px 6px rgba(46, 125, 50, 0.15));
}

:root {
  --main-nav-height: 64px;
}

.header-logo-section .brand-emblem-svg {
  width: auto !important;
  height: auto !important;
  max-height: 80px !important; /* reduced header logo height further */
  max-width: 100% !important;
  margin: 0 auto !important;
  display: block !important;
}

/* Force larger logo on desktop screens to match header visual */
@media (min-width: 992px) {
  .header-logo-section .brand-emblem-svg {
    width: auto !important;
    height: auto !important;
    max-height: 110px !important; /* smaller on desktop */
  }
}

/* Footer logo sizing to keep balance with header */
.main-footer {
  padding: 36px 0 48px !important;
}

.main-footer .brand-emblem-svg {
  width: 360px !important;
  height: auto !important;
  max-height: 240px !important;
  object-fit: contain;
}

/* When navbar becomes fixed (after scrolling), apply a custom fixed class */
.main-navbar.fixed-top-custom {
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  z-index: 1050 !important;
}

/* When fixed, push page content down to avoid overlap */
body.fixed-nav-active {
  padding-top: var(--main-nav-height);
}

.brand-nepali-name {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.45rem;
  color: var(--primary-green);
  line-height: 1.2;
  margin-bottom: 2px;
}

.brand-english-name {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 1.05rem;
  color: var(--dark-green);
  letter-spacing: -0.2px;
  margin-bottom: 2px;
}

.brand-tagline {
  font-size: 0.78rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 500;
}

.header-quick-info {
  display: flex;
  align-items: center;
  gap: 20px;
}

.info-pill {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 16px;
  background: var(--bg-light);
  border: 1px solid var(--border-light);
  border-radius: var(--border-radius-md);
}

.info-pill i {
  font-size: 1.4rem;
  color: var(--primary-green);
}

.info-pill .pill-label {
  font-size: 0.72rem;
  color: var(--text-muted);
  text-transform: uppercase;
  font-weight: 600;
  display: block;
}

.info-pill .pill-val {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--dark-green);
}

/* ==========================================================================
   Header: Section 3 - Sticky Navigation Bar
   ========================================================================== */
.main-navbar {
  background-color: var(--primary-green);
  box-shadow: 0 4px 18px rgba(27, 67, 50, 0.15);
  transition: var(--transition-base);
  padding: 0;
  z-index: 1020;
  position: sticky;
  top: 0;
  flex-wrap: nowrap !important;
}

.main-navbar.navbar-scrolled {
  background-color: var(--dark-green);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
}

.main-navbar .nav-link {
  font-family: var(--font-heading);
  font-weight: 500;
  font-size: 0.92rem;
  line-height: 1.2;
  color: rgba(255, 255, 255, 0.9) !important;
  padding: 10px 16px !important;
  transition: var(--transition-fast);
  position: relative;
  display: flex;
  align-items: center;
  gap: 2px;
  white-space: nowrap;
}

/* Prevent navbar wrapping */
.main-navbar .navbar-collapse,
.main-navbar .navbar-nav {
  flex-wrap: nowrap !important;
}

/* Force desktop navbar to stay single line */
.main-navbar .navbar-collapse {
  overflow: visible !important;
  flex-direction: row !important;
  max-height: 64px !important;
}

.main-navbar .nav-item {
  flex-shrink: 0 !important;
}

.main-navbar .nav-item.dropdown {
  position: relative !important;
}

.main-navbar .nav-link:hover,
.main-navbar .nav-link.active {
  color: #FFFFFF !important;
  background: rgba(255, 255, 255, 0.12);
}

.main-navbar .nav-link.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 14px;
  right: 14px;
  height: 3px;
  background-color: #66BB6A;
  border-radius: 3px 3px 0 0;
}

/* Dropdowns */
.main-navbar .dropdown-menu {
  border: none;
  border-radius: var(--border-radius-md);
  box-shadow: var(--shadow-lg);
  padding: 10px 0;
  background: var(--white);
  margin-top: 0;
  min-width: 230px;
  animation: fadeIn 0.25s ease-out;
  z-index: 9999;
  position: absolute;
  top: 100%;
  left: 0;
}

.main-navbar .dropdown-item {
  font-size: 0.9rem;
  font-weight: 500;
  padding: 10px 20px;
  color: var(--text-dark);
  transition: var(--transition-fast);
  display: flex;
  align-items: center;
  gap: 10px;
}

.main-navbar .dropdown-item i {
  font-size: 1rem;
  color: var(--primary-green);
}

.main-navbar .dropdown-item:hover,
.main-navbar .dropdown-item:focus {
  background-color: var(--light-green);
  color: var(--primary-green);
  transform: translateX(4px);
}

/* Desktop dropdown activation on hover */
@media (min-width: 992px) {
  .main-navbar .dropdown:hover > .dropdown-menu {
    display: block;
    animation: fadeIn 0.2s ease-out;
  }
  .main-navbar .dropdown:hover > .nav-link.dropdown-toggle {
    background: rgba(255, 255, 255, 0.12);
  }
  .main-navbar .dropdown-menu {
    display: none;
  }
}

.nav-cta-btn {
  background: #FEF3C7;
  color: #92400E !important;
  font-weight: 700;
  font-size: 0.88rem;
  padding: 9px 20px !important;
  border-radius: var(--border-radius-full);
  margin-left: 20px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: var(--transition-base);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.nav-cta-btn:hover {
  background: #FDE68A;
  color: #78350F !important;
  transform: translateY(-2px);
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.15);
}

/* Offcanvas Mobile Menu */
.offcanvas-custom {
  background: var(--dark-green);
  color: var(--white);
  width: 320px !important;
}

.offcanvas-custom .offcanvas-header {
  border-bottom: 1px solid rgba(255, 255, 255, 0.15);
  padding: 18px 20px;
}

.offcanvas-custom .nav-link {
  color: rgba(255, 255, 255, 0.88) !important;
  padding: 12px 18px !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  font-size: 0.96rem;
}

.offcanvas-custom .nav-link:hover,
.offcanvas-custom .nav-link.active {
  background: rgba(255, 255, 255, 0.1);
  color: var(--white) !important;
}

.offcanvas-custom .dropdown-menu {
  background: rgba(0, 0, 0, 0.25);
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 6px 0;
  margin: 6px 12px;
}

.offcanvas-custom .dropdown-item {
  color: rgba(255, 255, 255, 0.85);
  padding: 8px 18px;
}

.offcanvas-custom .dropdown-item:hover {
  background: rgba(255, 255, 255, 0.15);
  color: var(--white);
}

/* ==========================================================================
   Section 1: Hero Carousel (100vh Fullscreen)
   ========================================================================== */
.hero-slider-section {
  position: relative;
  overflow: hidden;
}

.hero-slider-section .carousel-item {
  height: 86vh;
  min-height: 560px;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  position: relative;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(13, 40, 24, 0.88) 0%, rgba(27, 67, 50, 0.82) 50%, rgba(46, 125, 50, 0.65) 100%);
  display: flex;
  align-items: center;
}

.hero-content {
  color: var(--white);
  z-index: 2;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.3);
  backdrop-filter: blur(10px);
  padding: 8px 18px;
  border-radius: var(--border-radius-full);
  font-size: 0.88rem;
  font-weight: 600;
  letter-spacing: 0.5px;
  margin-bottom: 20px;
  color: #A7F3D0;
}

.hero-title {
  font-size: 3.25rem;
  font-weight: 800;
  line-height: 1.18;
  color: var(--white);
  margin-bottom: 20px;
}

.hero-desc {
  font-size: 1.18rem;
  color: rgba(255, 255, 255, 0.9);
  max-width: 600px;
  margin-bottom: 32px;
  line-height: 1.65;
}

.hero-glass-card {
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: var(--border-radius-lg);
  padding: 30px;
  color: var(--white);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.25);
}

.hero-feature-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 14px;
  border-radius: var(--border-radius-md);
  background: rgba(255, 255, 255, 0.08);
  margin-bottom: 12px;
  transition: var(--transition-fast);
}

.hero-feature-item:hover {
  background: rgba(255, 255, 255, 0.18);
  transform: translateX(4px);
}

.hero-feature-item:last-child {
  margin-bottom: 0;
}

.hero-slider-section .carousel-indicators [data-bs-target] {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  margin: 0 6px;
  background-color: rgba(255, 255, 255, 0.5);
  border: 2px solid transparent;
  transition: var(--transition-base);
}

.hero-slider-section .carousel-indicators .active {
  width: 34px;
  border-radius: 8px;
  background-color: var(--accent-green);
}

.carousel-control-prev,
.carousel-control-next {
  width: 50px;
  height: 50px;
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(8px);
  border-radius: 50%;
  top: 50%;
  transform: translateY(-50%);
  margin: 0 24px;
  opacity: 0.8;
  transition: var(--transition-fast);
}

.carousel-control-prev:hover,
.carousel-control-next:hover {
  background: var(--white);
  color: var(--primary-green);
  opacity: 1;
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
  width: 22px;
  height: 22px;
}

/* ==========================================================================
   Section 2: Welcome Section
   ========================================================================== */
.welcome-badge-box {
  position: absolute;
  bottom: -20px;
  right: -20px;
  background: var(--white);
  padding: 20px 24px;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: center;
  gap: 16px;
  border-left: 5px solid var(--primary-green);
}

.welcome-badge-icon {
  width: 50px;
  height: 50px;
  background: var(--light-green);
  color: var(--primary-green);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
}

.welcome-feature-list li {
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 500;
  color: var(--text-dark);
}

.welcome-feature-list li i {
  color: var(--primary-green);
  font-size: 1.2rem;
}

/* ==========================================================================
   Section 3: Quick Services Bar
   ========================================================================== */
.quick-service-card {
  background: var(--white);
  border-radius: var(--border-radius);
  padding: 24px 20px;
  text-align: center;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-light);
  transition: var(--transition-base);
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.quick-service-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-hover);
  border-color: rgba(46, 125, 50, 0.3);
  background: #FFFFFF;
}

.quick-service-icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--light-green);
  color: var(--primary-green);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.75rem;
  margin-bottom: 16px;
  transition: var(--transition-base);
}

.quick-service-card:hover .quick-service-icon {
  background: var(--gradient-primary);
  color: var(--white);
  transform: scale(1.1);
}

.quick-service-title {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--dark-green);
}

.quick-service-desc {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 14px;
  line-height: 1.4;
}

.quick-service-link {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--primary-green);
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-top: auto;
}

/* ==========================================================================
   Section 4: Why Choose Us
   ========================================================================== */
.why-card {
  background: var(--white);
  border-radius: var(--border-radius);
  padding: 32px 24px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-light);
  transition: var(--transition-base);
  height: 100%;
  position: relative;
  overflow: hidden;
}

.why-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 0;
  background: var(--gradient-primary);
  transition: height 0.4s ease;
}

.why-card:hover::before {
  height: 100%;
}

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

.why-icon {
  width: 60px;
  height: 60px;
  border-radius: var(--border-radius-md);
  background: var(--light-green);
  color: var(--primary-green);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.7rem;
  margin-bottom: 20px;
  transition: var(--transition-base);
}

.why-card:hover .why-icon {
  background: var(--primary-green);
  color: var(--white);
  transform: rotate(6deg) scale(1.05);
}

/* ==========================================================================
   Section 5: Statistics Counter Section
   ========================================================================== */
.stats-section {
  background: linear-gradient(135deg, #1B4332 0%, #2E7D32 50%, #166534 100%);
  color: var(--white);
  position: relative;
  overflow: hidden;
}

.stats-section::after {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  background-image: radial-gradient(rgba(255, 255, 255, 0.08) 1px, transparent 1px);
  background-size: 24px 24px;
  pointer-events: none;
}

.stat-item {
  text-align: center;
  padding: 20px 10px;
}

.stat-icon {
  width: 64px;
  height: 64px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  color: #A7F3D0;
  margin-bottom: 16px;
}

.stat-number {
  font-family: var(--font-heading);
  font-size: 2.6rem;
  font-weight: 800;
  color: var(--white);
  margin-bottom: 6px;
  line-height: 1;
}

.stat-label {
  font-size: 0.95rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.85);
  text-transform: uppercase;
  letter-spacing: 0.8px;
}

/* ==========================================================================
   Section 6: Chairperson Message
   ========================================================================== */
.chairperson-card {
  background: var(--white);
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border-light);
  overflow: hidden;
}

.chairperson-img-wrapper {
  position: relative;
  overflow: hidden;
  border-radius: var(--border-radius);
}

.chairperson-quote-icon {
  font-size: 3rem;
  color: var(--accent-green);
  opacity: 0.4;
  line-height: 1;
}

.chairperson-signature {
  font-family: 'Brush Script MT', cursive, sans-serif;
  font-size: 1.8rem;
  color: var(--primary-green);
}

/* ==========================================================================
   Section 7: About Cooperative Section
   ========================================================================== */
.about-tab-card {
  background: var(--white);
  border-radius: var(--border-radius);
  padding: 24px;
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-sm);
  margin-bottom: 16px;
  transition: var(--transition-base);
}

.about-tab-card:hover {
  border-left: 4px solid var(--primary-green);
  transform: translateX(6px);
}

/* ==========================================================================
   Section 8 & 9 & 10: Products & Services (Savings, Loan, Remittance)
   ========================================================================== */
.product-card {
  background: var(--white);
  border-radius: var(--border-radius);
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-sm);
  transition: var(--transition-base);
  overflow: hidden;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.product-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-hover);
  border-color: rgba(46, 125, 50, 0.25);
}

.product-img {
  height: 200px;
  width: 100%;
  object-fit: cover;
}

.product-card-body {
  padding: 24px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.product-interest-rate {
  background: var(--light-green);
  color: var(--primary-green);
  padding: 6px 14px;
  border-radius: var(--border-radius-full);
  font-size: 0.85rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  width: fit-content;
  margin-bottom: 14px;
}

.product-features-list {
  list-style: none;
  padding: 0;
  margin: 16px 0;
}

.product-features-list li {
  font-size: 0.88rem;
  color: var(--text-body);
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.product-features-list li i {
  color: var(--primary-green);
  font-size: 1rem;
}

/* ==========================================================================
   Section 11: Digital Banking
   ========================================================================== */
.digital-mockup-wrapper {
  position: relative;
  max-width: 360px;
  margin: 0 auto;
}

.phone-mockup {
  border: 10px solid #1F2937;
  border-radius: 40px;
  overflow: hidden;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.35);
  background: #FFFFFF;
}

.phone-screen {
  background: #F9FAFB;
  overflow: hidden;
}

.digital-feature-box {
  background: var(--white);
  padding: 18px 20px;
  border-radius: var(--border-radius-md);
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-sm);
  display: flex;
  align-items: flex-start;
  gap: 16px;
  transition: var(--transition-base);
}

.digital-feature-box:hover {
  border-color: var(--primary-green);
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.app-store-badge {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: #000000;
  color: #FFFFFF !important;
  padding: 10px 20px;
  border-radius: var(--border-radius-md);
  font-size: 0.85rem;
  transition: var(--transition-fast);
}

.app-store-badge:hover {
  background: #1F2937;
  transform: translateY(-2px);
}

/* ==========================================================================
   Section 12: Latest Notices
   ========================================================================== */
.notice-card {
  background: var(--white);
  border-radius: var(--border-radius);
  padding: 24px;
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-sm);
  transition: var(--transition-base);
  height: 100%;
  display: flex;
  flex-direction: column;
}

.notice-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-hover);
  border-left: 5px solid var(--primary-green);
}

.notice-date-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.8rem;
  color: var(--text-muted);
  font-weight: 500;
}

/* ==========================================================================
   Section 13: Upcoming Events
   ========================================================================== */
.event-card {
  background: var(--white);
  border-radius: var(--border-radius);
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  transition: var(--transition-base);
  height: 100%;
}

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

.event-date-chip {
  position: absolute;
  top: 16px;
  left: 16px;
  background: var(--primary-green);
  color: var(--white);
  padding: 8px 14px;
  border-radius: var(--border-radius-sm);
  text-align: center;
  font-weight: 700;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.event-date-chip .day {
  font-size: 1.2rem;
  line-height: 1;
  display: block;
}

.event-date-chip .month {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* ==========================================================================
   Section 14: Photo Gallery & Lightbox
   ========================================================================== */
.gallery-filter-btn {
  background: var(--white);
  color: var(--text-dark);
  border: 1px solid var(--border-color);
  padding: 8px 20px;
  border-radius: var(--border-radius-full);
  font-weight: 600;
  font-size: 0.88rem;
  transition: var(--transition-fast);
  margin: 4px;
}

.gallery-filter-btn.active,
.gallery-filter-btn:hover {
  background: var(--primary-green);
  color: var(--white);
  border-color: var(--primary-green);
}

.gallery-item {
  position: relative;
  border-radius: var(--border-radius);
  overflow: hidden;
  cursor: pointer;
}

.gallery-item img {
  width: 100%;
  height: 240px;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.gallery-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(27, 67, 50, 0.88) 0%, rgba(27, 67, 50, 0.2) 60%, transparent 100%);
  opacity: 0;
  transition: var(--transition-base);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 20px;
  color: var(--white);
}

.gallery-item:hover img {
  transform: scale(1.1);
}

.gallery-item:hover .gallery-overlay {
  opacity: 1;
}

/* Gallery Modal / Lightbox */
.lightbox-modal .modal-content {
  background: rgba(13, 40, 24, 0.95);
  border: none;
  border-radius: var(--border-radius-lg);
}

.lightbox-modal .btn-close {
  filter: invert(1);
}

/* ==========================================================================
   Section 15: Downloads Center
   ========================================================================== */
.download-card {
  background: var(--white);
  border-radius: var(--border-radius);
  padding: 20px 24px;
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-sm);
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: var(--transition-base);
}

.download-card:hover {
  border-color: var(--primary-green);
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
}

.pdf-icon-box {
  width: 48px;
  height: 48px;
  background: #FEE2E2;
  color: #DC2626;
  border-radius: var(--border-radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  flex-shrink: 0;
}

/* ==========================================================================
   Section 16: Testimonials
   ========================================================================== */
.testimonial-card {
  background: var(--white);
  border-radius: var(--border-radius-lg);
  padding: 36px;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border-light);
  position: relative;
  margin: 10px;
}

.testimonial-avatar {
  width: 68px;
  height: 68px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--accent-green);
}

.testimonial-stars {
  color: #F59E0B;
  font-size: 1rem;
  margin-bottom: 12px;
}

/* ==========================================================================
   Section 17: FAQ Accordion
   ========================================================================== */
.faq-accordion .accordion-item {
  border: 1px solid var(--border-light);
  border-radius: var(--border-radius) !important;
  margin-bottom: 14px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.faq-accordion .accordion-button {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 1.05rem;
  color: var(--dark-green);
  background-color: var(--white);
  padding: 18px 24px;
}

.faq-accordion .accordion-button:not(.collapsed) {
  background-color: var(--light-green);
  color: var(--primary-green);
  box-shadow: none;
}

.faq-accordion .accordion-button::after {
  background-size: 1.25rem;
}

.faq-search-input {
  border-radius: var(--border-radius-full);
  padding: 14px 24px;
  font-size: 1rem;
  border: 2px solid var(--border-light);
  box-shadow: var(--shadow-sm);
}

.faq-search-input:focus {
  border-color: var(--primary-green);
  box-shadow: 0 0 0 4px rgba(46, 125, 50, 0.15);
}

/* ==========================================================================
   Section 18: CTA Banner
   ========================================================================== */
.cta-banner {
  background: var(--gradient-dark);
  border-radius: var(--border-radius-xl);
  padding: 60px 40px;
  color: var(--white);
  position: relative;
  overflow: hidden;
}

.cta-banner::before {
  content: '';
  position: absolute;
  top: -50px;
  right: -50px;
  width: 250px;
  height: 250px;
  background: radial-gradient(circle, rgba(102, 187, 106, 0.3) 0%, transparent 70%);
  border-radius: 50%;
}

/* ==========================================================================
   Section 19: Google Map & Head Office Card
   ========================================================================== */
.map-container {
  height: 420px;
  width: 100%;
  border-radius: var(--border-radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border-light);
}

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

.office-info-card {
  background: var(--white);
  border-radius: var(--border-radius-lg);
  padding: 36px;
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-md);
  height: 100%;
}

/* ==========================================================================
   Footer
   ========================================================================== */
.main-footer {
  background-color: var(--deep-forest);
  color: rgba(255, 255, 255, 0.85);
  padding: 70px 0 80px; /* larger top and bottom padding for the colored footer area */
}

.footer-brand-desc {
  font-size: 0.92rem;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.72);
  margin-top: 16px;
  margin-bottom: 24px;
}

.footer-heading {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--white);
  margin-bottom: 24px;
  position: relative;
  padding-bottom: 12px;
}

.footer-heading::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 40px;
  height: 3px;
  background: var(--accent-green);
  border-radius: 2px;
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links li {
  margin-bottom: 12px;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.75);
  font-size: 0.92rem;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: var(--transition-fast);
}

.footer-links a:hover {
  color: #A7F3D0;
  transform: translateX(5px);
}

.footer-contact-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 16px;
  font-size: 0.92rem;
  color: rgba(255, 255, 255, 0.8);
}

.footer-contact-item i {
  color: var(--accent-green);
  font-size: 1.2rem;
  margin-top: 3px;
}

.footer-social-links a {
  width: 38px;
  height: 38px;
  background: rgba(255, 255, 255, 0.1);
  color: var(--white);
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-right: 8px;
  transition: var(--transition-fast);
}

.footer-social-links a:hover {
  background: var(--primary-green);
  color: var(--white);
  transform: translateY(-3px);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 24px 0;
  margin-top: 50px;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.65);
}

.footer-bottom a {
  color: rgba(255, 255, 255, 0.75);
}

.footer-bottom a:hover {
  color: var(--white);
}

/* ==========================================================================
   Back To Top Button
   ========================================================================== */
#back-to-top {
  position: fixed;
  bottom: 28px;
  right: 28px;
  width: 48px;
  height: 48px;
  background: var(--primary-green);
  color: var(--white);
  border: none;
  border-radius: 50%;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  cursor: pointer;
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition-base);
}

#back-to-top.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

#back-to-top:hover {
  background: var(--dark-green);
  transform: translateY(-4px);
}

/* ==========================================================================
   Page Hero Banner (For Inner Subpages)
   ========================================================================== */
.page-hero-banner {
  background: linear-gradient(135deg, rgba(13, 40, 24, 0.92) 0%, rgba(27, 67, 50, 0.88) 100%),
              url('https://images.pexels.com/photos/8353820/pexels-photo-8353820.jpeg?auto=compress&cs=tinysrgb&fit=crop&h=627&w=1200') center/cover no-repeat;
  padding: 70px 0;
  color: var(--white);
  position: relative;
}

.page-hero-title {
  font-size: 2.75rem;
  font-weight: 800;
  color: var(--white);
  margin-bottom: 12px;
}

.page-breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.92rem;
  color: rgba(255, 255, 255, 0.75);
}

.page-breadcrumb a {
  color: #A7F3D0;
}

.page-breadcrumb a:hover {
  color: var(--white);
}

/* ==========================================================================
   Team & Staff Member Cards
   ========================================================================== */
.member-card {
  background: var(--white);
  border-radius: var(--border-radius);
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  transition: var(--transition-base);
  height: 100%;
}

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

.member-photo {
  height: 280px;
  width: 100%;
  object-fit: cover;
}

.member-card-body {
  padding: 22px;
  text-align: center;
}

.member-name {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--dark-green);
  margin-bottom: 4px;
}

.member-role {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--primary-green);
  margin-bottom: 12px;
}

/* ==========================================================================
   Financial Interactive Calculators
   ========================================================================== */
.calc-card {
  background: var(--white);
  border-radius: var(--border-radius-lg);
  padding: 32px;
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-md);
}

.calc-result-box {
  background: var(--light-green);
  border-radius: var(--border-radius);
  padding: 24px;
  border: 1px solid rgba(46, 125, 50, 0.2);
}

.calc-result-value {
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--primary-green);
}
