/* ============================================
   HIMILO MICROFINANCE - Custom Stylesheet
   Primary: Pantone 4975C #3F2021, Pantone 1495C #FF8F1C
   Secondary: Pantone 375C #97D700, 310C #6AD1E3, 3405C #00AF66
   ============================================ */@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@300;400;500;600;700;800&family=Playfair+Display:wght@400;500;600;700&display=swap');


/* Corporate Font: Branding FS (Primary), Helvetica (Secondary) */
@font-face {
  font-family: 'Branding FS';
  src: url('../fonts/BrandingFont.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

/* ── CSS Custom Properties ── */
:root {
  /* Primary: Pantone 4975C (Deep Brown) & Pantone 1495C (Orange) */
  --primary: #3F2021;
  --primary-dark: #2D1617;
  --primary-light: #5A3335;
  --secondary: #FF8F1C;
  --secondary-dark: #E07A0E;
  --secondary-light: #FFB04D;
  /* Secondary Accents: Pantone 375C, 310C, 3405C */
  --accent-green: #97D700;
  --accent-cyan: #6AD1E3;
  --accent-emerald: #00AF66;
  --accent: #2C3E50;
  --dark: #1A1A2E;
  --dark-brown: #3D2B1F;
  --text-dark: #000000;
  --text-muted: #333333;
  --text-light: #9CA3AF;
  --bg-light: #F8F6F3;
  --bg-cream: #FDF8F0;
  --bg-white: #FFFFFF;
  --border-color: #E5E7EB;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.08);
  --shadow-md: 0 4px 14px rgba(0,0,0,0.1);
  --shadow-lg: 0 10px 30px rgba(0,0,0,0.12);
  --shadow-xl: 0 20px 50px rgba(0,0,0,0.15);
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-xl: 30px;
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ── Global Reset & Base ── */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

body {
  font-family: 'Montserrat', system-ui, -apple-system, sans-serif;
  font-weight: 500;
  font-size: 16px;
  line-height: 1.7;
  color: var(--text-dark);
  background-color: var(--bg-white);
  background-size: 400px;
  background-repeat: repeat;
  background-attachment: fixed;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Branding FS', Helvetica, Arial, sans-serif;
  font-weight: 700;
  line-height: 1.3;
  color: var(--dark);
}

.heading-serif {
  font-family: 'Playfair Display', serif;
}

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

a:hover {
  color: var(--secondary);
}

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

/* ── Preloader ── */
#preloader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--bg-white);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 99999;
  transition: opacity 0.5s ease;
}

#preloader.loaded {
  opacity: 0;
  pointer-events: none;
}

.preloader-spinner {
  width: 50px;
  height: 50px;
  border: 4px solid var(--border-color);
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* ── Navbar ── */
.navbar-himilo {
  padding: 10px 0;
  transition: all 0.3s ease;
  border-bottom: 2px solid var(--secondary);
  z-index: 1050;
  color: #000000;
  box-shadow: var(--shadow-md);
}

.navbar-himilo.scrolled {
  padding: 8px 0;
}

.navbar-himilo .navbar-brand img {
  height: 52px;
  transition: all 0.3s ease;
  mix-blend-mode: screen; 
}

.navbar-himilo.scrolled .navbar-brand img {
  height: 44px;
}

/* Generic fix for logos with black backgrounds */
.logo-btn-fix {
  mix-blend-mode: screen;
}

.logo-footer-fix {
  mix-blend-mode: multiply;
  filter: contrast(1.1);
}

.logo-white-on-dark {
  filter: brightness(0) invert(1);
}

/* Hero Image Enhancements */
.hero-image-wrapper {
  position: relative;
  z-index: 1;
}

.hero-image-frame {
  position: relative;
  overflow: visible;
}

.hero-image-frame img {
  border: 10px solid rgba(255, 255, 255, 0.15);
  transition: var(--transition);
}

.hero-image-frame img:hover {
  transform: scale(1.02);
  border-color: rgba(241, 143, 28, 0.3);
}

.hero-image-badge {
  position: absolute;
  bottom: -30px;
  right: -30px;
  background: #fff;
  padding: 24px 32px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xl);
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: float 4s ease-in-out infinite;
}

.badge-content {
  text-align: center;
}

.badge-number {
  display: block;
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--primary);
  line-height: 1;
}

.badge-label {
  display: block;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  margin-top: 4px;
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

.navbar-himilo .nav-link {
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--primary) !important;
  padding: 8px 16px !important;
  border-radius: var(--radius-sm);
  transition: all 0.3s ease;
  position: relative;
}

.navbar-himilo .nav-link:hover,
.navbar-himilo .nav-link.active {
  color: var(--secondary) !important;
  background: transparent;
}

.navbar-himilo .btn-navbar {
  background: var(--secondary) !important;
  color: #fff !important;
  border: none;
}

.navbar-himilo .navbar-toggler-icon {
  filter: none;
}

.navbar-himilo .nav-link::after {
  content: '';
  position: absolute;
  bottom: 2px;
  left: 16px;
  right: 16px;
  height: 2px;
  background: var(--primary);
  transform: scaleX(0);
  transition: var(--transition);
}

.navbar-himilo .nav-link:hover::after,
.navbar-himilo .nav-link.active::after {
  transform: scaleX(1);
}

.navbar-himilo .dropdown-menu {
  border: none;
  box-shadow: var(--shadow-lg);
  border-radius: var(--radius-md);
  padding: 10px;
  margin-top: 10px;
  min-width: 240px;
  animation: fadeInDown 0.3s ease;
}

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

.navbar-himilo .dropdown-item {
  padding: 10px 16px;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-dark);
  transition: var(--transition);
  display: flex;
  align-items: center;
  gap: 10px;
}

.navbar-himilo .dropdown-item:hover {
  background: rgba(63, 32, 33, 0.06);
  color: var(--primary);
  transform: translateX(4px);
}

/* ── Multi-level Dropdown Support ── */
.dropdown-submenu {
  position: relative;
}

.dropdown-submenu .dropdown-menu {
  top: 0;
  left: 100%;
  margin-top: -10px;
  margin-left: 0;
  display: none !important;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.dropdown-submenu:hover > .dropdown-menu {
  display: block !important;
  opacity: 1;
  visibility: visible;
}

.dropdown-submenu .dropdown-item::after {
  content: "\F285"; /* bi-chevron-right */
  font-family: "bootstrap-icons";
  margin-left: auto;
  font-size: 0.75rem;
  opacity: 0.5;
}

@media (max-width: 991.98px) {
  .dropdown-submenu .dropdown-menu {
    position: static;
    display: block;
    border: none;
    box-shadow: none;
    margin-left: 15px;
    padding-top: 0;
    padding-bottom: 0;
  }
  
  .dropdown-submenu .dropdown-item::after {
    transform: rotate(90deg);
  }
}

.navbar-himilo .dropdown-item i {
  width: 20px;
  color: var(--secondary);
  margin-right: 8px;
}

.navbar-himilo .btn-navbar.nav-link {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark)) !important;
  color: #fff !important;
  padding: 10px 24px !important;
  border-radius: var(--radius-xl) !important;
  font-weight: 600 !important;
  font-size: 0.88rem !important;
  letter-spacing: 0.02em;
  border: none;
  box-shadow: 0 4px 15px rgba(63, 32, 33, 0.3);
  transition: var(--transition) !important;
}

.navbar-himilo .btn-navbar.nav-link:hover,
.navbar-himilo .btn-navbar.nav-link.active {
  color: #fff !important;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(63, 32, 33, 0.4);
  background: linear-gradient(135deg, var(--primary-light), var(--primary)) !important;
}

.navbar-himilo .btn-navbar.nav-link::after {
  display: none;
}

/* ── Buttons ── */
.btn-primary-himilo {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: #fff;
  padding: 14px 36px;
  border-radius: var(--radius-xl);
  font-weight: 600;
  font-size: 0.95rem;
  border: none;
  letter-spacing: 0.02em;
  transition: var(--transition);
  box-shadow: 0 4px 15px rgba(63, 32, 33, 0.3);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.btn-primary-himilo:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(63, 32, 33, 0.4);
  color: #fff;
  background: linear-gradient(135deg, var(--primary-light), var(--primary));
}

.btn-secondary-himilo {
  background: linear-gradient(135deg, var(--secondary), var(--secondary-dark));
  color: #fff;
  padding: 14px 36px;
  border-radius: var(--radius-xl);
  font-weight: 600;
  font-size: 0.95rem;
  border: none;
  letter-spacing: 0.02em;
  transition: var(--transition);
  box-shadow: 0 4px 15px rgba(241, 143, 28, 0.3);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.btn-secondary-himilo:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(241, 143, 28, 0.4);
  color: #fff;
}

.btn-outline-himilo {
  background: transparent;
  color: var(--primary);
  padding: 13px 36px;
  border-radius: var(--radius-xl);
  font-weight: 600;
  font-size: 0.95rem;
  border: 2px solid var(--primary);
  transition: var(--transition);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.btn-outline-himilo:hover {
  background: var(--primary);
  color: #fff;
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(63, 32, 33, 0.3);
}

.btn-outline-white {
  background: transparent;
  color: #fff;
  padding: 13px 36px;
  border-radius: var(--radius-xl);
  font-weight: 600;
  font-size: 0.95rem;
  border: 2px solid rgba(255,255,255,0.5);
  transition: var(--transition);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.btn-outline-white:hover {
  background: #fff;
  color: var(--primary);
  border-color: #fff;
  transform: translateY(-3px);
}

/* ── Hero Section ── */
.hero-section {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 100%);
  overflow: hidden;
  padding-top: 80px;
}

.hero-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1440 320"><path fill="rgba(255,255,255,0.03)" d="M0,96L48,112C96,128,192,160,288,186.7C384,213,480,235,576,213.3C672,192,768,128,864,117.3C960,107,1056,149,1152,170.7C1248,192,1344,192,1392,192L1440,192L1440,320L1392,320C1344,320,1248,320,1152,320C1056,320,960,320,864,320C768,320,672,320,576,320C480,320,384,320,288,320C192,320,96,320,48,320L0,320Z"/></svg>');
  background-size: cover;
  background-position: bottom;
  opacity: 0.4;
}

.hero-decoration {
  position: absolute;
  border-radius: 50%;
  opacity: 0.08;
  animation: float 6s ease-in-out infinite;
}

.hero-decoration:nth-child(1) {
  width: 400px;
  height: 400px;
  background: var(--secondary);
  top: -100px;
  right: -100px;
}

.hero-decoration:nth-child(2) {
  width: 250px;
  height: 250px;
  background: var(--secondary);
  bottom: -50px;
  left: -80px;
  animation-delay: -3s;
}

.hero-decoration:nth-child(3) {
  width: 150px;
  height: 150px;
  background: #fff;
  top: 40%;
  right: 20%;
  animation-delay: -1.5s;
}

@keyframes float {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-20px); }
}

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

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(241, 143, 28, 0.15);
  color: var(--secondary);
  padding: 8px 20px;
  border-radius: var(--radius-xl);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 24px;
  border: 1px solid rgba(241, 143, 28, 0.25);
}

.hero-title {
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 800;
  color: #fff;
  line-height: 1.15;
  margin-bottom: 20px;
}

.hero-title .text-highlight {
  background: linear-gradient(135deg, var(--secondary), var(--secondary-light));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle {
  font-size: 1.15rem;
  color: rgba(255, 255, 255, 0.8);
  line-height: 1.8;
  margin-bottom: 36px;
  max-width: 540px;
}

.hero-stats {
  display: flex;
  gap: 40px;
  margin-top: 48px;
  padding-top: 36px;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
}

.hero-stat-item h3 {
  font-size: 2rem;
  font-weight: 800;
  color: var(--secondary);
  margin-bottom: 4px;
}

.hero-stat-item p {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.7);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 500;
}

/* ── Page Banner / Inner Hero ── */
.page-banner {
  position: relative;
  padding: 140px 0 80px;
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 100%);
  overflow: hidden;
}

.page-banner::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="600" height="600"><defs><pattern id="p" width="40" height="40" patternUnits="userSpaceOnUse"><circle cx="20" cy="20" r="1.5" fill="rgba(255,255,255,0.06)"/></pattern></defs><rect fill="url(%23p)" width="600" height="600"/></svg>');
  opacity: 0.3;
}

.page-banner .container {
  position: relative;
  z-index: 2;
}

.page-banner h1 {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  color: #fff;
  margin-bottom: 12px;
}

.page-banner .breadcrumb {
  background: none;
  padding: 0;
  margin: 0;
}

.page-banner .breadcrumb-item,
.page-banner .breadcrumb-item a {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.9rem;
}

.page-banner .breadcrumb-item a:hover {
  color: var(--secondary);
}

.page-banner .breadcrumb-item.active {
  color: var(--secondary);
}

.page-banner .breadcrumb-item + .breadcrumb-item::before {
  color: rgba(255, 255, 255, 0.4);
}

/* ── Section Styles ── */
.section-padding {
  padding: 100px 0;
}

.section-padding-sm {
  padding: 60px 0;
}

.bg-light-custom {
  background-color: #f8f9fa;
  position: relative;
}

.bg-cream {
  background-color: var(--bg-cream);
  position: relative;
}

/* Image Overlay Utilities */
.img-overlay-container {
  position: relative;
  overflow: hidden;
}

.img-overlay-primary::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(63, 32, 33, 0.85), rgba(26, 26, 46, 0.9));
  z-index: 1;
}

.img-overlay-secondary::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(241, 143, 28, 0.85), rgba(63, 32, 33, 0.9));
  z-index: 1;
}

.img-overlay-content {
  position: relative;
  z-index: 2;
}

.section-with-bg-image {
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  position: relative;
}

.section-with-bg-image::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

.section-primary-overlay::before {
  background: linear-gradient(135deg, rgba(63, 32, 33, 0.92), rgba(26, 26, 46, 0.95));
}

.section-secondary-overlay::before {
  background: linear-gradient(135deg, rgba(241, 143, 28, 0.9), rgba(63, 32, 33, 0.95));
}

.section-with-bg-image .container {
  position: relative;
  z-index: 2;
}

.bg-dark-custom {
  background: var(--dark);
}

.section-header {
  margin-bottom: 60px;
}

.section-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--primary);
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 12px;
}

.section-label::before {
  content: '';
  width: 30px;
  height: 2px;
  background: var(--secondary);
}

.section-title {
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  font-weight: 800;
  color: var(--dark);
  margin-bottom: 16px;
  line-height: 1.2;
}

.section-title .text-primary-himilo {
  color: var(--primary);
}

.section-title .text-secondary-himilo {
  color: var(--secondary);
}

.section-description {
  font-size: 1.05rem;
  color: var(--text-muted);
  max-width: 600px;
  line-height: 1.8;
}

/* ── Cards ── */
.card-himilo {
  background: var(--bg-white);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 32px;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.card-himilo:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-xl);
  border-color: transparent;
}

.card-himilo .card-icon {
  width: 64px;
  height: 64px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 20px;
  transition: var(--transition);
}

.card-himilo .card-icon.icon-primary {
  background: rgba(63, 32, 33, 0.08);
  color: var(--primary);
}

.card-himilo .card-icon.icon-secondary {
  background: rgba(241, 143, 28, 0.08);
  color: var(--secondary);
}

.card-himilo:hover .card-icon {
  transform: scale(1.1);
}

.card-himilo h4 {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 12px;
}

.card-himilo p {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.7;
}

.card-himilo .card-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--primary);
  font-size: 0.9rem;
  font-weight: 600;
  margin-top: 16px;
  transition: var(--transition);
}

.card-himilo .card-link:hover {
  gap: 12px;
  color: var(--secondary);
}

/* Product Cards */
.product-card {
  background: var(--bg-white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border-color);
  transition: var(--transition);
}

.product-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-xl);
  border-color: transparent;
}

.product-card .product-image {
  aspect-ratio: 3/2;
  width: 100%;
  overflow: hidden;
  position: relative;
}

.product-card .product-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition-slow);
}

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

.product-card .product-image .product-badge {
  position: absolute;
  top: 16px;
  left: 16px;
  background: var(--primary);
  color: #fff;
  padding: 4px 14px;
  border-radius: var(--radius-xl);
  font-size: 0.78rem;
  font-weight: 600;
}

.product-card .product-body {
  padding: 28px;
}

.product-card .product-body h4 {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 10px;
}

.product-card .product-body p {
  color: var(--text-muted);
  font-size: 0.92rem;
  line-height: 1.7;
  margin-bottom: 16px;
}

/* News Cards */
.news-card {
  background: var(--bg-white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border-color);
  transition: var(--transition);
}

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

.news-card .news-image {
  height: 200px;
  overflow: hidden;
}

.news-card .news-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition-slow);
}

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

.news-card .news-body {
  padding: 24px;
}

.news-card .news-date {
  font-size: 0.82rem;
  color: var(--secondary);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 8px;
}

.news-card .news-body h5 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 10px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.news-card .news-body p {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-bottom: 12px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Story Cards */
.story-card {
  background: var(--bg-white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border-color);
  transition: var(--transition);
  display: flex;
  flex-direction: column;
}

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

.story-card .story-image {
  aspect-ratio: 3/2;
  overflow: hidden;
  position: relative;
}

.story-card .story-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition-slow);
}

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

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

.story-card .story-body h5 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 10px;
}

.story-card .story-body p,
.story-card .story-body .story-excerpt {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-bottom: 16px;
  line-height: 1.6;
}

/* ── Stats Section ── */
.stats-section {
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 100%);
  padding: 80px 0;
  position: relative;
  overflow: hidden;
}

.stats-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="600" height="600"><defs><pattern id="p" width="40" height="40" patternUnits="userSpaceOnUse"><circle cx="20" cy="20" r="1" fill="rgba(255,255,255,0.05)"/></pattern></defs><rect fill="url(%23p)" width="600" height="600"/></svg>');
  opacity: 0.5;
}

.stat-box {
  text-align: center;
  position: relative;
  z-index: 2;
  padding: 24px;
}

.stat-box .stat-icon {
  width: 70px;
  height: 70px;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
  font-size: 1.6rem;
  color: var(--secondary);
}

.stat-box h3 {
  font-size: 2.5rem;
  font-weight: 800;
  color: #fff;
  margin-bottom: 4px;
}

.stat-box p {
  color: rgba(255, 255, 255, 0.75);
  font-size: 0.9rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* ── About Feature Boxes ── */
.feature-box {
  display: flex;
  gap: 20px;
  padding: 28px;
  background: var(--bg-white);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-color);
  transition: var(--transition);
  margin-bottom: 20px;
}

.feature-box:hover {
  box-shadow: var(--shadow-md);
  border-color: var(--primary);
}

.feature-box .feature-icon {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  flex-shrink: 0;
}

.feature-box .feature-icon.bg-primary-soft {
  background: rgba(63, 32, 33, 0.08);
  color: var(--primary);
}

.feature-box .feature-icon.bg-secondary-soft {
  background: rgba(241, 143, 28, 0.08);
  color: var(--secondary);
}

.feature-box h5 {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 6px;
}

.feature-box p {
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.6;
  margin-bottom: 0;
}

/* ── Success Stories ── */
.story-card {
  background: var(--bg-white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border-color);
  transition: var(--transition);
}

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

.story-card .story-image {
  height: 250px;
  overflow: hidden;
  position: relative;
}

.story-card .story-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition-slow);
}

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

.story-card .story-body {
  padding: 28px;
}

.story-card .story-body h5 {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.story-card .story-body .story-excerpt {
  color: var(--text-muted);
  font-size: 0.92rem;
  line-height: 1.7;
  margin-bottom: 16px;
}

.story-card .story-body blockquote {
  font-style: italic;
  color: var(--text-muted);
  border-left: 3px solid var(--secondary);
  padding-left: 16px;
  margin: 16px 0;
  font-size: 0.92rem;
}

/* ── Partners ── */
.partner-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  height: 120px;
  background: var(--bg-white);
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
  transition: var(--transition);
}

.partner-logo:hover {
  box-shadow: var(--shadow-md);
  border-color: var(--secondary);
}

.partner-logo img {
  max-height: 60px;
  max-width: 140px;
  object-fit: contain;
  transition: var(--transition);
}

.partner-logo:hover img {
  transform: scale(1.05);
}

/* ── CTA Section ── */
.cta-section {
  background: linear-gradient(135deg, var(--secondary-dark) 0%, var(--secondary) 100%);
  padding: 80px 0;
  position: relative;
  overflow: hidden;
}

.cta-section h2 {
  color: #fff;
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  font-weight: 800;
}

.cta-section p {
  color: rgba(255, 255, 255, 0.85);
  font-size: 1.05rem;
}

/* ── Footer ── */
.footer {
  background: var(--dark);
  color: rgba(255, 255, 255, 0.8);
  padding-top: 80px;
}

.footer h5 {
  color: #fff;
  font-weight: 700;
  font-size: 1.05rem;
  margin-bottom: 24px;
  position: relative;
  padding-bottom: 12px;
}

.footer h5::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 30px;
  height: 2px;
  background: var(--secondary);
}

.footer p {
  color: rgba(255, 255, 255, 0.65);
  font-size: 0.92rem;
  line-height: 1.8;
}

.footer a {
  color: rgba(255, 255, 255, 0.65);
  transition: var(--transition);
}

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

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

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

.footer-links li a {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.9rem;
}

.footer-links li a i {
  color: var(--secondary);
  font-size: 0.75rem;
}

.footer-contact li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 16px;
  font-size: 0.9rem;
  list-style: none;
}

.footer-contact li i {
  color: var(--secondary);
  margin-top: 4px;
  font-size: 1rem;
}

.footer-social {
  display: flex;
  gap: 10px;
  margin-top: 24px;
}

.footer-social a {
  width: 42px;
  height: 42px;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.7);
  font-size: 1rem;
  transition: var(--transition);
}

.footer-social a:hover {
  background: var(--secondary);
  color: #fff;
  transform: translateY(-3px);
  padding-left: 0;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 20px 0;
  margin-top: 60px;
}

.footer-bottom p {
  font-size: 0.85rem;
  margin: 0;
}

/* ── Back to Top ── */
.back-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  background: var(--primary);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  transition: var(--transition);
  border: none;
  cursor: pointer;
  box-shadow: var(--shadow-md);
}

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

.back-to-top:hover {
  background: var(--primary-dark);
  transform: translateY(-3px);
}

/* ── Contact Page ── */
.contact-info-card {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 24px;
  background: var(--bg-white);
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
  transition: var(--transition);
  margin-bottom: 16px;
}

.contact-info-card:hover {
  box-shadow: var(--shadow-md);
  border-color: var(--primary);
}

.contact-info-card .icon-box {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-md);
  background: rgba(63, 32, 33, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  font-size: 1.2rem;
  flex-shrink: 0;
}

.contact-info-card h6 {
  font-weight: 700;
  font-size: 0.95rem;
  margin-bottom: 4px;
}

.contact-info-card p {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-bottom: 0;
}

.contact-form .form-control {
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  padding: 14px 18px;
  font-size: 0.92rem;
  transition: var(--transition);
}

.contact-form .form-control:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(63, 32, 33, 0.1);
}

/* ── Approach / Values ── */
.approach-card {
  text-align: center;
  padding: 40px 28px;
  background: var(--bg-white);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  transition: var(--transition);
  height: 100%;
}

.approach-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
  border-color: var(--primary);
}

.approach-card .approach-icon {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  font-size: 2rem;
}

.approach-card h5 {
  font-weight: 700;
  margin-bottom: 12px;
  font-size: 1.1rem;
}

.approach-card p {
  color: var(--text-muted);
  font-size: 0.92rem;
  line-height: 1.7;
}

/* ── Timeline / Partnerships Table ── */
.partnership-table {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.partnership-table .table {
  margin-bottom: 0;
}

.partnership-table .table thead th {
  background: var(--primary);
  color: #fff;
  font-weight: 600;
  font-size: 0.9rem;
  padding: 14px 18px;
  border: none;
}

.partnership-table .table tbody td {
  padding: 14px 18px;
  font-size: 0.9rem;
  color: var(--text-dark);
  border-color: var(--border-color);
  vertical-align: middle;
}

.partnership-table .table tbody tr:hover {
  background: rgba(63, 32, 33, 0.03);
}

/* ── Gallery ── */
.gallery-item {
  border-radius: var(--radius-md);
  overflow: hidden;
  position: relative;
  cursor: pointer;
  margin-bottom: 24px;
}

.gallery-item img {
  width: 100%;
  height: 250px;
  object-fit: cover;
  transition: var(--transition-slow);
}

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

.gallery-item .gallery-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(63, 32, 33, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: var(--transition);
}

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

.gallery-item .gallery-overlay i {
  color: #fff;
  font-size: 2rem;
}

/* ── SDG Section ── */
.sdg-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 20px;
  border-radius: var(--radius-md);
  color: #fff;
  font-weight: 700;
  font-size: 0.85rem;
}

/* ── Org Chart Hierarchy with Lines ── */
.org-tree {
  display: flex;
  justify-content: center;
  overflow-x: auto;
  padding: 20px 0 40px;
}
.org-tree ul {
  padding-top: 20px;
  position: relative;
  display: flex;
  justify-content: center;
  padding-left: 0;
  margin-bottom: 0;
}
.org-tree li {
  text-align: center;
  list-style-type: none;
  position: relative;
  padding: 20px 8px 0 8px;
}

/* Connectors */
.org-tree li::before, .org-tree li::after {
  content: '';
  position: absolute;
  top: 0;
  right: 50%;
  border-top: 1px solid #999;
  width: 50%;
  height: 20px;
}
.org-tree li::after {
  right: auto;
  left: 50%;
  border-left: 1px solid #999;
}

/* Remove connectors for single children */
.org-tree li:only-child::after, .org-tree li:only-child::before {
  display: none;
}
.org-tree li:only-child {
  padding-top: 0;
}

/* Clean up first and last child connectors */
.org-tree li:first-child::before, .org-tree li:last-child::after {
  border: 0 none;
}
.org-tree li:last-child::before {
  border-right: 1px solid #999;
}

/* Downward connectors from parents */
.org-tree ul ul::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  border-left: 1px solid #999;
  width: 0;
  height: 20px;
}

/* Org Nodes */
.org-node {
  background: var(--bg-white);
  border: 2px solid #5d4037;
  border-radius: var(--radius-md);
  padding: 12px 18px;
  text-align: center;
  transition: var(--transition);
  display: inline-block;
  min-width: 140px;
  box-shadow: var(--shadow-sm);
}
.org-node:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}
.org-node.node-primary {
  background: #3e2723;
  color: #fff;
  border-color: #3e2723;
}
.org-node.node-secondary {
  background: #f57c00;
  color: #fff;
  border-color: #f57c00;
}
.org-node.node-advisory {
  background: #aadaf3;
  color: #333;
  border-color: #333;
}
.org-node h6 {
  font-weight: 700;
  margin-bottom: 2px;
  font-size: 0.88rem;
}
.org-node small {
  font-size: 0.75rem;
  opacity: 0.85;
}

/* ── Animations ── */
.fade-in-up {
  opacity: 0;
  transform: translateY(30px);
  transition: var(--transition-slow);
}

.fade-in-up.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ── Responsive ── */
@media (max-width: 991.98px) {
  .navbar-himilo .navbar-collapse {
    background: var(--bg-white);
    padding: 20px;
    border-radius: var(--radius-md);
    margin-top: 10px;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border-color);
  }
  
  .navbar-himilo .dropdown-menu {
    box-shadow: none;
    background: transparent;
    border-left: 2px solid var(--primary-light);
    border-radius: 0;
    margin-left: 10px;
    padding-left: 5px;
  }
  
  .navbar-himilo .btn-navbar.nav-link {
    display: inline-block;
    margin-top: 10px;
  }
  
  .hero-stats {
    gap: 24px;
    flex-wrap: wrap;
  }
  
  .hero-stat-item h3 {
    font-size: 1.6rem;
  }
  
  .section-padding {
    padding: 60px 0;
  }
}

@media (max-width: 767.98px) {
  .hero-section {
    min-height: auto;
    padding: 120px 0 80px;
  }
  
  .hero-stats {
    gap: 16px;
  }
  
  .hero-stat-item {
    flex: 1;
    text-align: center;
  }
  
  .stat-box h3 {
    font-size: 2rem;
  }
  
  .section-padding {
    padding: 50px 0;
  }
  
  .section-header {
    margin-bottom: 40px;
  }
  
  .footer {
    padding-top: 50px;
  }
}

@media (max-width: 575.98px) {
  body {
    font-size: 15px;
  }
  
  .hero-stats {
    flex-direction: column;
    gap: 12px;
  }
  
  .btn-primary-himilo,
  .btn-secondary-himilo,
  .btn-outline-himilo {
    padding: 12px 28px;
    font-size: 0.9rem;
  }
}

/* ── Utility Classes ── */
.text-primary-himilo { color: var(--primary) !important; }
.text-secondary-himilo { color: var(--secondary) !important; }
.bg-primary-himilo { background-color: var(--primary) !important; }
.bg-secondary-himilo { background-color: var(--secondary) !important; }
.fw-800 { font-weight: 800 !important; }

/* ── Savings Products List ── */
.savings-list {
  list-style: none;
  padding: 0;
}

.savings-list li {
  padding: 12px 0;
  border-bottom: 1px solid var(--border-color);
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.savings-list li:last-child {
  border-bottom: none;
}

.savings-list li i {
  color: var(--secondary);
  margin-top: 4px;
}
