/*
Theme Name: PEWOSA SACCO v3
Theme URI: http://pewosa.nwtdemos.com
Author: PEWOSA SACCO Web Team
Author URI: http://pewosa.nwtdemos.com
Description: A professional, mobile-friendly theme for Kyaddondo CBS PEWOSA SACCO. v3 — clean blue & white design inspired by the7.io/fse-business.
Version: 3.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: pewosa-sacco
Tags: custom-menu, featured-images, threaded-comments, translation-ready
*/

/* ============================================================
   DESIGN TOKENS & CSS VARIABLES — Blue palette
   ============================================================ */
:root {
  /* Brand Colors — blue/white like the7.io/fse-business */
  --color-primary:        #1a3c6e;
  --color-primary-dark:   #0f2548;
  --color-primary-light:  #2355a0;
  --color-accent:         #2563eb;
  --color-accent-light:   #3b82f6;
  --color-accent-dark:    #1d4ed8;
  --color-hero-mid:       #1e4080;

  /* Neutrals */
  --color-white:          #ffffff;
  --color-off-white:      #f5f7fa;
  --color-light-gray:     #e8edf5;
  --color-mid-gray:       #c1c9d8;
  --color-text-muted:     #6b7893;
  --color-text:           #1a2233;
  --color-text-light:     #3d4d66;

  /* Semantic */
  --color-success:        #16a34a;
  --color-warning:        #ca8a04;
  --color-like-warning:   #edb73b;
  --color-error:          #dc2626;
  --color-info:           #0284c7;

  /* Typography — Inter body, DM Serif for display */
  --font-display:         'DM Serif Display', Georgia, serif;
  --font-body:            'Inter', 'DM Sans', 'Segoe UI', sans-serif;
  --font-mono:            'Courier New', monospace;

  /* Sizing */
  --container-xl:         1200px;
  --container-lg:         960px;
  --container-md:         720px;

  /* Spacing */
  --space-xs:   0.25rem;
  --space-sm:   0.5rem;
  --space-md:   1rem;
  --space-lg:   1.5rem;
  --space-xl:   2rem;
  --space-2xl:  3rem;
  --space-3xl:  4rem;
  --space-4xl:  6rem;

  /* Shadows */
  --shadow-sm:   0 1px 4px rgba(26,60,110,0.07);
  --shadow-md:   0 4px 16px rgba(26,60,110,0.10);
  --shadow-lg:   0 10px 36px rgba(26,60,110,0.13);
  --shadow-xl:   0 20px 60px rgba(26,60,110,0.16);

  /* Border radius */
  --radius-sm:   4px;
  --radius-md:   8px;
  --radius-lg:   12px;
  --radius-xl:   20px;
  --radius-full: 9999px;

  /* Transitions */
  --transition-fast:   150ms ease;
  --transition-base:   250ms ease;
  --transition-slow:   400ms ease;

  /* Nav */
  --nav-height:        72px;
  --topbar-height:     40px;
}

/* ============================================================
   RESET & BASE
   ============================================================ */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--color-text);
  background-color: var(--color-white);
  overflow-x: hidden;
}

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

a {
  color: var(--color-accent);
  text-decoration: none;
  transition: color var(--transition-fast);
}
a:hover { color: var(--color-accent-dark); }

ul, ol { list-style: none; }

button, input, select, textarea { font-family: inherit; font-size: inherit; }

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.2;
  color: var(--color-text);
}

h1 { font-size: clamp(2rem,    4vw, 3rem); }
h2 { font-size: clamp(1.6rem,  3vw, 2.2rem); }
h3 { font-size: clamp(1.25rem, 2vw, 1.5rem); }
h4 { font-size: 1.15rem; }
h5 { font-size: 1rem; }
h6 { font-size: 0.9rem; }

p { margin-bottom: var(--space-md); }
p:last-child { margin-bottom: 0; }

/* ============================================================
   UTILITIES
   ============================================================ */
.container {
  width: 100%;
  max-width: var(--container-xl);
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--space-lg);
  padding-right: var(--space-lg);
}

.container--narrow { max-width: var(--container-md); }
.container--medium { max-width: var(--container-lg); }
.text-center { text-align: center; }
.text-left   { text-align: left; }
.text-right  { text-align: right; }

.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  border: 0;
}

.section {
  padding-top: var(--space-4xl);
  padding-bottom: var(--space-4xl);
}

.section--sm {
  padding-top: var(--space-2xl);
  padding-bottom: var(--space-2xl);
}

.section--dark {
  background-color: var(--color-primary);
  color: var(--color-white);
}

.section--dark h1,
.section--dark h2,
.section--dark h3,
.section--dark h4 { color: var(--color-white); }

.section--light { background-color: var(--color-off-white); }

.section--accent {
  background-color: var(--color-accent);
  color: var(--color-white);
}

/* ============================================================
   SECTION HEADERS
   ============================================================ */
.section-header { margin-bottom: var(--space-2xl); }

.section-header__eyebrow {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: var(--space-sm);
}

.section-header__title { margin-bottom: var(--space-md); }

.section-header__subtitle {
  font-size: 1.05rem;
  color: var(--color-text-muted);
  max-width: 560px;
  font-family: var(--font-body);
}

.section-header.text-center .section-header__subtitle {
  margin-left: auto;
  margin-right: auto;
}

/* ============================================================
   BUTTONS — one filled primary (blue), outline secondary
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  padding: 0.75rem 1.75rem;
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: 0.88rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  border: 2px solid transparent;
  cursor: pointer;
  transition: all var(--transition-base);
  white-space: nowrap;
  text-decoration: none;
}

.btn--primary {
  background-color: var(--color-accent);
  color: var(--color-white);
  border-color: var(--color-accent);
}

.btn--primary:hover {
  background-color: var(--color-accent-dark);
  border-color: var(--color-accent-dark);
  color: var(--color-white);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(37,99,235,0.30);
}

.btn--secondary {
  background-color: transparent;
  color: var(--color-white);
  border-color: rgba(255,255,255,0.55);
}

.btn--secondary:hover {
  background-color: var(--color-white);
  color: var(--color-primary);
  border-color: var(--color-white);
}

.btn--outline {
  background-color: transparent;
  color: var(--color-accent);
  border-color: var(--color-accent);
}

.btn--outline:hover {
  background-color: var(--color-accent);
  color: var(--color-white);
}

.btn--ghost {
  background-color: transparent;
  color: var(--color-accent);
  border-color: transparent;
  padding-left: 0;
  padding-right: 0;
  font-weight: 600;
}

.btn--ghost:hover { color: var(--color-accent-dark); }
.btn--ghost::after { content: ' \2192'; }

.btn--lg { padding: 1rem 2.25rem; font-size: 0.95rem; }
.btn--sm { padding: 0.5rem 1.25rem; font-size: 0.8rem; }

/* ============================================================
   TOP BAR
   ============================================================ */
.topbar {
  background-color: var(--color-primary-dark);
  color: rgba(255,255,255,0.70);
  font-size: 0.8rem;
  height: var(--topbar-height);
  display: flex;
  align-items: center;
}

.topbar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

.topbar__left {
  display: flex;
  align-items: center;
  gap: var(--space-lg);
}

.topbar__left a,
.topbar__right a {
  color: rgba(255,255,255,0.70);
  display: flex;
  align-items: center;
  gap: 6px;
  transition: color var(--transition-fast);
}

.topbar__left a:hover,
.topbar__right a:hover { color: var(--color-accent-light); }

.topbar__right {
  display: flex;
  align-items: center;
  gap: var(--space-lg);
}

.topbar__divider {
  width: 1px;
  height: 16px;
  background: rgba(255,255,255,0.15);
}

.topbar__cbs-badge {
  display: flex;
  align-items: center;
  gap: 6px;
  background: rgba(37,99,235,0.18);
  border: 1px solid rgba(37,99,235,0.35);
  padding: 2px 10px;
  border-radius: var(--radius-full);
  color: var(--color-accent-light);
  font-weight: 600;
  font-size: 0.75rem;
  letter-spacing: 0.05em;
}

/* ============================================================
   MAIN NAVIGATION — white background, clean border-bottom
   ============================================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background-color: var(--color-white);
  border-bottom: 1px solid var(--color-light-gray);
  transition: box-shadow var(--transition-base), border-color var(--transition-base);
}

.site-header.scrolled {
  box-shadow: 0 2px 20px rgba(26,60,110,0.08);
  border-bottom-color: transparent;
}

.nav-wrapper {
  height: var(--nav-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-xl);
}

.site-logo {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  text-decoration: none;
  flex-shrink: 0;
}

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

.primary-nav > li { position: relative; }

.primary-nav > li > a {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 0 var(--space-md);
  height: var(--nav-height);
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--color-text);
  text-decoration: none;
  white-space: nowrap;
  transition: color var(--transition-fast);
  border-bottom: 2px solid transparent;
}

.primary-nav > li > a:hover,
.primary-nav > li > a.active {
  color: var(--color-accent);
  border-bottom-color: var(--color-accent);
}

.primary-nav > li > a .nav-arrow {
  font-size: 0.65rem;
  opacity: 0.5;
  transition: transform var(--transition-fast);
}

.primary-nav > li:hover > a .nav-arrow { transform: rotate(180deg); }

/* Dropdown */
.nav-dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 220px;
  background: var(--color-white);
  border: 1px solid var(--color-light-gray);
  border-top: 3px solid var(--color-accent);
  border-radius: 0 0 var(--radius-md) var(--radius-md);
  box-shadow: var(--shadow-lg);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: all var(--transition-base);
  list-style: none;
  padding: var(--space-sm) 0;
}

.primary-nav > li:hover .nav-dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.nav-dropdown li a {
  display: block;
  padding: 0.6rem var(--space-lg);
  font-size: 0.875rem;
  color: var(--color-text-light);
  transition: all var(--transition-fast);
}

.nav-dropdown li a:hover {
  color: var(--color-accent);
  background: var(--color-off-white);
  padding-left: calc(var(--space-lg) + 4px);
}

/* Mega menu */
.nav-mega {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(-8px);
  min-width: 480px;
  background: var(--color-white);
  border: 1px solid var(--color-light-gray);
  border-top: 3px solid var(--color-accent);
  border-radius: 0 0 var(--radius-md) var(--radius-md);
  box-shadow: var(--shadow-lg);
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition-base);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  padding: var(--space-lg);
}

.primary-nav > li:hover .nav-mega {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

.nav-mega__col h6 {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  margin-bottom: var(--space-md);
  padding-bottom: var(--space-sm);
  border-bottom: 1px solid var(--color-light-gray);
}

.nav-mega__col ul li a {
  display: block;
  padding: 0.4rem 0;
  font-size: 0.875rem;
  color: var(--color-text-light);
  transition: color var(--transition-fast);
}

.nav-mega__col ul li a:hover { color: var(--color-accent); }

.nav-cta { flex-shrink: 0; }

/* Hamburger */
.nav-hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  background: none;
  border: 1px solid var(--color-light-gray);
  border-radius: var(--radius-sm);
  cursor: pointer;
  padding: 0;
}

.nav-hamburger span {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--color-text);
  border-radius: 2px;
  transition: all var(--transition-fast);
}

.nav-hamburger.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-hamburger.active span:nth-child(2) { opacity: 0; }
.nav-hamburger.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile nav overlay */
.mobile-nav {
  position: fixed;
  inset: 0;
  background: var(--color-white);
  z-index: 999;
  overflow-y: auto;
  opacity: 0;
  visibility: hidden;
  transform: translateX(100%);
  transition: all var(--transition-slow);
  padding: calc(var(--nav-height) + var(--topbar-height) + var(--space-lg)) var(--space-lg) var(--space-lg);
}

.mobile-nav.open {
  opacity: 1;
  visibility: visible;
  transform: translateX(0);
}

.mobile-nav__menu li { border-bottom: 1px solid var(--color-light-gray); }

.mobile-nav__menu li a {
  display: block;
  padding: var(--space-md) 0;
  font-size: 1rem;
  font-weight: 500;
  color: var(--color-text);
}

.mobile-nav__menu li a:hover { color: var(--color-accent); }
.mobile-nav__submenu { padding-left: var(--space-lg); }
.mobile-nav__submenu li { border-color: transparent; }
.mobile-nav__submenu li a {
  font-size: 0.9rem;
  color: var(--color-text-muted);
  padding: var(--space-sm) 0;
}

/* ============================================================
   ANNOUNCEMENTS TICKER
   ============================================================ */
.announcements-bar {
  background: var(--color-primary);
  color: var(--color-white);
  padding: 0.6rem 0;
  overflow: hidden;
}

.announcements-bar__inner {
  display: flex;
  align-items: center;
  gap: var(--space-lg);
}

.announcements-bar__label {
  flex-shrink: 0;
  background: var(--color-accent);
  color: var(--color-white);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 3px 12px;
  border-radius: var(--radius-full);
}

.announcements-bar__ticker { overflow: hidden; flex: 1; }

.announcements-bar__ticker-inner {
  display: flex;
  gap: var(--space-3xl);
  animation: ticker 30s linear infinite;
  white-space: nowrap;
}

.announcements-bar__ticker-inner:hover { animation-play-state: paused; }
.announcements-bar__item { font-size: 0.85rem; color: rgba(255,255,255,0.9); }
.announcements-bar__item a { color: var(--color-accent-light); font-weight: 600; }

@keyframes ticker {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ============================================================
   HERO — 3-LAYER DIAGONAL DESIGN (the7.io/fse-business style)
   Three overlapping angled color bands stacked on the photo:
     • Back layer:   deep navy full-bleed
     • Middle band:  medium blue diagonal panel
     • Front shard:  bright accent-blue slim diagonal
   ============================================================ */
.hero {
  position: relative;
  min-height: 580px;
  display: flex;
  align-items: center;
  overflow: hidden;
  background-color: var(--color-primary-dark);
}

/* Photo background */
.hero__bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center top;
  z-index: 0;
}

/* Layer 1: dark navy wash across whole hero */
.hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    110deg,
    rgba(15, 37, 72, 0.97) 0%,
    rgba(15, 37, 72, 0.93) 38%,
    rgba(15, 37, 72, 0.68) 68%,
    rgba(15, 37, 72, 0.18) 100%
  );
  z-index: 1;
}

/* Layer 2: medium-blue diagonal band */
.hero__layer-mid {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
}

.hero__layer-mid::before {
  content: '';
  position: absolute;
  top: 0;
  left: -5%;
  width: 58%;
  height: 100%;
  background: linear-gradient(
    175deg,
    rgba(30, 64, 128, 0.82) 0%,
    rgba(26, 60, 110, 0.52) 65%,
    transparent 100%
  );
  clip-path: polygon(0 0, 100% 0, 80% 100%, 0 100%);
}

/* Layer 3: bright-accent thin shard (leftmost) */
.hero__layer-accent {
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
}

.hero__layer-accent::before {
  content: '';
  position: absolute;
  top: 0;
  left: -2%;
  width: 30%;
  height: 100%;
  background: linear-gradient(
    178deg,
    rgba(37, 99, 235, 0.60) 0%,
    rgba(37, 99, 235, 0.35) 55%,
    transparent 100%
  );
  clip-path: polygon(0 0, 100% 0, 68% 100%, 0 100%);
}

/* Content above all layers */
.hero__content {
  position: relative;
  z-index: 10;
  max-width: 640px;
  padding: var(--space-4xl) 0;
}

.hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-accent-light);
  margin-bottom: var(--space-md);
}

.hero__eyebrow::before {
  content: '';
  display: block;
  width: 28px;
  height: 2px;
  background: var(--color-accent-light);
}

.hero__title {
  font-size: clamp(2.2rem, 5vw, 3.4rem);
  color: var(--color-white);
  margin-bottom: var(--space-lg);
  line-height: 1.15;
}

.hero__title em {
  font-style: normal;
  color: var(--color-accent-light);
}

.hero__subtitle {
  font-size: 1.05rem;
  color: rgba(255,255,255,0.80);
  margin-bottom: var(--space-xl);
  max-width: 500px;
  line-height: 1.7;
  font-family: var(--font-body);
}

.hero__actions {
  display: flex;
  gap: var(--space-md);
  flex-wrap: wrap;
}

/* Slider controls */
.hero__slides { position: absolute; inset: 0; z-index: 0; }

.hero__slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 1s ease;
  background-size: cover;
  background-position: center;
}

.hero__slide.active { opacity: 1; }

.hero__dots {
  position: absolute;
  bottom: var(--space-xl);
  right: var(--space-2xl);
  z-index: 12;
  display: flex;
  gap: var(--space-sm);
}

.hero__dot {
  width: 8px;
  height: 8px;
  border-radius: var(--radius-full);
  background: rgba(255,255,255,0.35);
  cursor: pointer;
  border: none;
  transition: all var(--transition-base);
}

.hero__dot.active {
  width: 28px;
  background: var(--color-accent);
}

/* ============================================================
   QUICK ACTIONS BAR
   ============================================================ */
.quick-actions {
  background: var(--color-white);
  box-shadow: 0 4px 20px rgba(26,60,110,0.08);
  position: relative;
  z-index: 10;
}

.quick-actions__grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  border-left: 1px solid var(--color-light-gray);
}

.quick-action {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  padding: var(--space-lg) var(--space-md);
  text-align: center;
  text-decoration: none;
  border-right: 1px solid var(--color-light-gray);
  border-bottom: 3px solid transparent;
  transition: all var(--transition-base);
  color: var(--color-text);
}

.quick-action:hover {
  background: var(--color-off-white);
  border-bottom-color: var(--color-accent);
  color: var(--color-accent);
}

.quick-action__icon {
  width: 40px;
  height: 40px;
  background: var(--color-off-white);
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--transition-base);
}

.quick-action__icon svg {
  width: 20px;
  height: 20px;
  stroke: var(--color-primary);
}

.quick-action:hover .quick-action__icon { background: var(--color-accent); }
.quick-action:hover .quick-action__icon svg { stroke: var(--color-white); }

.quick-action__label {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

/* ============================================================
   STATS STRIP
   ============================================================ */
.stats-strip {
  background: var(--color-primary);
  padding: var(--space-2xl) 0;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-xl);
  text-align: center;
}

.stat-item { color: var(--color-white); 
  /* color: var(--color-like-warning); */
}

.stat-item__number {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  /* color: var(--color-accent-light); */
  color: var(--color-like-warning);
  line-height: 1;
  margin-bottom: var(--space-sm);
}

.stat-item__divider {
  width: 32px;
  height: 2px;
  background: var(--color-accent);
  margin: var(--space-sm) auto;
}

.stat-item__label {
  font-size: 0.85rem;
  font-weight: 600;
  color: rgba(255,255,255,0.70);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

/* ============================================================
   PRODUCTS / SERVICES — the7.io card style with slide effect
   ============================================================ */
.products-tabs {
  display: flex;
  gap: 0;
  border-bottom: 2px solid var(--color-light-gray);
  margin-bottom: var(--space-2xl);
}

.products-tab {
  padding: var(--space-md) var(--space-xl);
  font-size: 0.88rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  cursor: pointer;
  border-bottom: 3px solid transparent;
  margin-bottom: -2px;
  transition: all var(--transition-base);
  background: none;
  border-top: none;
  border-left: none;
  border-right: none;
}

.products-tab:hover { color: var(--color-primary); }
.products-tab.active { color: var(--color-accent); border-bottom-color: var(--color-accent); }
.products-panel { display: none; }
.products-panel.active { display: block; }

.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: var(--space-lg);
}

/* Card — slide-up with sliding accent underline effect */
.product-card {
  background: var(--color-white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--color-light-gray);
  transition: transform var(--transition-slow), box-shadow var(--transition-slow), border-color var(--transition-slow);
  position: relative;
  display: flex;
  flex-direction: column;
}

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

/* Slide-in accent line from left — the "slide effect" */
.product-card::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 3px;
  background: var(--color-accent);
  transition: width 0.45s ease;
}

.product-card:hover::after { width: 100%; }

.product-card__icon {
  width: 52px;
  height: 52px;
  background: var(--color-off-white);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: var(--space-xl) var(--space-xl) var(--space-md);
  transition: background var(--transition-base);
  flex-shrink: 0;
}

.product-card__icon svg {
  width: 26px;
  height: 26px;
  stroke: var(--color-accent);
}

.product-card:hover .product-card__icon { background: var(--color-accent); }
.product-card:hover .product-card__icon svg { stroke: var(--color-white); }

.product-card__title {
  font-size: 1.05rem;
  margin: 0 var(--space-xl) var(--space-sm);
  color: var(--color-text);
}

.product-card__desc {
  font-size: 0.875rem;
  color: var(--color-text-muted);
  margin: 0 var(--space-xl) var(--space-lg);
  line-height: 1.65;
  flex: 1;
}

.product-card .btn--ghost {
  margin: 0 var(--space-xl) var(--space-xl);
  font-size: 0.85rem;
}

/* ============================================================
   MEMBERSHIP CTA — original design, now in blues
   ============================================================ */
.membership-cta {
  background: linear-gradient(135deg, var(--color-primary-dark) 0%, var(--color-primary-light) 100%);
  position: relative;
  overflow: hidden;
}

.membership-cta::before {
  content: '';
  position: absolute;
  top: -60px; right: -60px;
  width: 300px; height: 300px;
  border-radius: var(--radius-full);
  border: 40px solid rgba(37,99,235,0.13);
}

.membership-cta::after {
  content: '';
  position: absolute;
  bottom: -80px; left: -40px;
  width: 240px; height: 240px;
  border-radius: var(--radius-full);
  border: 40px solid rgba(255,255,255,0.04);
}

.membership-cta__inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: var(--space-2xl);
}

.membership-cta__title { color: var(--color-white); margin-bottom: var(--space-sm); }
.membership-cta__subtitle { color: rgba(255,255,255,0.75); font-size: 1rem; margin: 0; }
.membership-cta__actions { display: flex; gap: var(--space-md); flex-shrink: 0; }

/* ============================================================
   NEWS CARDS
   ============================================================ */
.news-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: var(--space-lg);
}

.news-card {
  background: var(--color-white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--color-light-gray);
  transition: all var(--transition-base);
  display: flex;
  flex-direction: column;
}

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

.news-card__image {
  height: 180px;
  overflow: hidden;
  background: var(--color-light-gray);
}

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

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

.news-card__body {
  padding: var(--space-lg);
  flex: 1;
  display: flex;
  flex-direction: column;
}

.news-card__category {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: var(--space-sm);
}

.news-card__title { font-size: 1rem; margin-bottom: var(--space-sm); line-height: 1.4; }
.news-card__title a { color: var(--color-text); }
.news-card__title a:hover { color: var(--color-accent); }
.news-card__excerpt { font-size: 0.875rem; color: var(--color-text-muted); flex: 1; margin-bottom: var(--space-md); }

.news-card__meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.78rem;
  color: var(--color-text-muted);
  margin-top: auto;
  padding-top: var(--space-md);
  border-top: 1px solid var(--color-light-gray);
}

/* ============================================================
   PARTNERS STRIP & SLIDER
   ============================================================ */
.partners-strip {
  background: var(--color-off-white);
  border-top: 3px solid var(--color-accent);
  padding: var(--space-2xl) 0 var(--space-xl);
  overflow: hidden;
}

.partners-strip__header {
  text-align: center;
  margin-bottom: var(--space-xl);
}

.partners-strip__title {
  font-size: 1.4rem;
  color: var(--color-text);
  margin: var(--space-xs) 0 0;
}

/* Outer wrapper: contains arrows + viewport */
.partners-slider-wrap {
  position: relative;
  display: flex;
  align-items: center;
  gap: 0;
  max-width: var(--container-xl);
  margin: 0 auto;
  padding: 0 56px;        /* room for arrows on each side */
}

/* Arrow buttons */
.partners-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  width: 40px;
  height: 40px;
  border-radius: var(--radius-full);
  background: var(--color-white);
  border: 2px solid var(--color-light-gray);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-base);
  color: var(--color-primary);
  flex-shrink: 0;
}

.partners-arrow svg {
  width: 18px;
  height: 18px;
  stroke: var(--color-primary);
  transition: stroke var(--transition-fast);
}

.partners-arrow:hover {
  background: var(--color-primary);
  border-color: var(--color-primary);
}

.partners-arrow:hover svg {
  stroke: var(--color-white);
}

.partners-arrow:disabled {
  opacity: 0.3;
  cursor: default;
  pointer-events: none;
}

.partners-arrow--prev { left: 0; }
.partners-arrow--next { right: 0; }

/* Viewport: clips the track */
.partners-viewport {
  overflow: hidden;
  width: 100%;
}

/* Track: slides horizontally */
.partners-track {
  display: flex;
  gap: var(--space-lg);
  transition: transform 0.45s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  will-change: transform;
}

/* Each slide: uniform fixed size */
.partners-slide {
  flex: 0 0 calc((100% - 5 * var(--space-lg)) / 4); /* 4 visible on desktop */
  min-width: 0;
}

/* Logo link: the box */
.partner-logo-link {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100px;
  background: var(--color-white);
  border-radius: var(--radius-md);
  border: 1.5px solid var(--color-light-gray);
  padding: var(--space-lg);
  transition: all var(--transition-base);
  text-decoration: none;
}

.partner-logo-link:hover {
  border-color: var(--color-accent);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

/* Logo image: normalised size regardless of original dimensions */
.partner-logo-img {
  display: block;
  width: 100%;
  height: 100%;
  max-width: 160px;
  max-height: 64px;
  object-fit: contain;   /* preserves aspect ratio, no crop */
  object-position: center;
  filter: grayscale(30%);
  opacity: 0.85;
  transition: all var(--transition-base);
}

.partner-logo-link:hover .partner-logo-img {
  filter: grayscale(0%);
  opacity: 1;
}

/* Fallback text when image is missing (onerror handler) */
.partner-logo-placeholder {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--color-text-muted);
  text-align: center;
  padding: var(--space-sm);
}

/* Dot indicators */
.partners-dots {
  display: flex;
  justify-content: center;
  gap: var(--space-sm);
  margin-top: var(--space-lg);
  padding-bottom: var(--space-sm);
}

.partners-dot {
  width: 8px;
  height: 8px;
  border-radius: var(--radius-full);
  background: var(--color-mid-gray);
  border: none;
  cursor: pointer;
  padding: 0;
  transition: all var(--transition-base);
}

.partners-dot.active {
  width: 24px;
  background: var(--color-accent);
}

/* Responsive: show 3 on tablet */
@media (max-width: 1024px) {
  .partners-slide {
    flex: 0 0 calc((100% - 4 * var(--space-lg)) / 3);
  }
}

/* Responsive: show 2 on mobile */
@media (max-width: 600px) {
  .partners-slider-wrap { padding: 0 44px; }
  .partners-slide {
    flex: 0 0 calc((100% - 2 * var(--space-lg)) / 2);
  }
}

/* Responsive: show 1 on very small screens */
@media (max-width: 360px) {
  .partners-slide { flex: 0 0 100%; }
}

/* ============================================================
   IMPACT STORIES
   ============================================================ */
.impact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: var(--space-lg);
}

.impact-card {
  background: var(--color-white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--color-light-gray);
  transition: all var(--transition-base);
}

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

.impact-card__image {
  height: 200px;
  background: linear-gradient(135deg, var(--color-primary-light), var(--color-primary-dark));
  position: relative;
  overflow: hidden;
}

.impact-card__image img { width: 100%; height: 100%; object-fit: cover; opacity: 0.85; }

.impact-card__tag {
  position: absolute;
  top: var(--space-md);
  left: var(--space-md);
  background: var(--color-accent);
  color: var(--color-white);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: var(--radius-full);
}

.impact-card__body { padding: var(--space-lg); }

.impact-card__quote {
  font-family: var(--font-display);
  font-size: 1rem;
  font-style: italic;
  color: var(--color-text);
  margin-bottom: var(--space-md);
  line-height: 1.6;
  border-left: 3px solid var(--color-accent);
  padding-left: var(--space-md);
}

.impact-card__name { font-size: 0.85rem; font-weight: 700; color: var(--color-accent); }
.impact-card__role { font-size: 0.78rem; color: var(--color-text-muted); }

/* ============================================================
   DIGITAL TEASER
   ============================================================ */
.digital-teaser {
  /* background-image: url('https://images.unsplash.com/photo-1556742049-0cfed4f6a45d?w=1600&auto=format&fit=crop&q=80'); */
  background-image: url('http://localhost/kcps/wp-content/uploads/2026/04/pexels-thirdman-7237081.jpg');
  background-size: cover;
  background-position: center;
  color: var(--color-white);
  position: relative;
  overflow: hidden;
}

.digital-teaser::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg, rgba(15,37,72,0.95) 50%, rgba(15,37,72,0.75) 100%);
  z-index: 0;
}

.digital-teaser .container { position: relative; z-index: 1; }

.digital-teaser__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-4xl);
  align-items: center;
}

.digital-teaser__features {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-lg);
  margin-top: var(--space-xl);
}

.digital-feature {
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: var(--radius-md);
  padding: var(--space-lg);
  transition: background var(--transition-base);
}

.digital-feature:hover { background: rgba(255,255,255,0.12); }

.digital-feature__icon {
  width: 40px;
  height: 40px;
  background: rgba(37,99,235,0.25);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--space-sm);
}

.digital-feature__icon svg { width: 20px; height: 20px; stroke: var(--color-accent-light); }
.digital-feature__title { font-size: 0.9rem; font-weight: 700; color: var(--color-white); margin-bottom: 4px; }
.digital-feature__desc { font-size: 0.8rem; color: rgba(255,255,255,0.60); margin: 0; }

.digital-teaser__visual { position: relative; }

.digital-teaser__phone-mock {
  width: 220px;
  height: 400px;
  /* background: rgba(255,255,255,0.07); */
  background-image: url('http://localhost/kcps/wp-content/uploads/2026/04/screen2.png');
  background-size: cover;
  background-position: center;
  border: 2px solid rgba(255,255,255,0.15);
  border-radius: 32px;
  margin: 0 auto;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--space-md);
}

.digital-teaser__phone-mock::before {
  content: '';
  width: 60px; height: 8px;
  background: rgba(255,255,255,0.15);
  border-radius: var(--radius-full);
  position: absolute;
  top: 18px;
}

.digital-teaser__coming-badge {
  background: var(--color-accent);
  color: var(--color-white);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 6px 14px;
  border-radius: var(--radius-full);
}

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
  background: var(--color-primary-dark);
  color: rgba(255,255,255,0.70);
}

.footer-main {
  padding: var(--space-4xl) 0 var(--space-2xl);
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: var(--space-2xl);
}

.footer-brand__logo { display: flex; align-items: center; gap: var(--space-md); margin-bottom: var(--space-lg); }

.footer-brand__logo-icon {
  width: 44px;
  height: 44px;
  background: var(--color-accent);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.footer-brand__logo-icon svg { width: 24px; height: 24px; fill: var(--color-white); }
.footer-brand__name { font-family: var(--font-display); font-size: 1.1rem; font-weight: 700; color: var(--color-white); line-height: 1.1; }
.footer-brand__tagline { font-size: 0.65rem; color: var(--color-accent-light); letter-spacing: 0.06em; text-transform: uppercase; }
.footer-brand__about { font-size: 0.875rem; line-height: 1.7; margin-bottom: var(--space-lg); }

.footer-social { display: flex; gap: var(--space-sm); }

.footer-social__link {
  width: 36px;
  height: 36px;
  background: rgba(255,255,255,0.08);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--transition-base);
}

.footer-social__link svg { width: 16px; height: 16px; fill: rgba(255,255,255,0.60); transition: fill var(--transition-base); }
.footer-social__link:hover { background: var(--color-accent); }
.footer-social__link:hover svg { fill: var(--color-white); }

.footer-col h5 {
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-white);
  margin-bottom: var(--space-lg);
  padding-bottom: var(--space-sm);
  border-bottom: 2px solid var(--color-accent);
  display: inline-block;
}

.footer-col ul li { margin-bottom: var(--space-sm); }

.footer-col ul li a {
  font-size: 0.875rem;
  color: rgba(255,255,255,0.60);
  transition: color var(--transition-fast);
  display: flex;
  align-items: center;
  gap: 6px;
}

.footer-col ul li a::before { content: '\203A'; color: var(--color-accent); font-weight: bold; }
.footer-col ul li a:hover { color: var(--color-accent-light); }

.footer-contact-item { display: flex; gap: var(--space-md); margin-bottom: var(--space-md); font-size: 0.875rem; }
.footer-contact-item svg { width: 16px; height: 16px; stroke: var(--color-accent-light); flex-shrink: 0; margin-top: 3px; }
.footer-contact-item a { color: rgba(255,255,255,0.65); }
.footer-contact-item a:hover { color: var(--color-accent-light); }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding: var(--space-lg) 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-lg);
  flex-wrap: wrap;
}

.footer-bottom__copy { font-size: 0.8rem; color: rgba(255,255,255,0.40); }
.footer-bottom__copy a { color: var(--color-accent-light); }
.footer-bottom__links { display: flex; gap: var(--space-lg); }
.footer-bottom__links a { font-size: 0.8rem; color: rgba(255,255,255,0.40); transition: color var(--transition-fast); }
.footer-bottom__links a:hover { color: var(--color-accent-light); }

/* ============================================================
   PAGE BANNER
   ============================================================ */
.page-banner {
  background: linear-gradient(105deg, var(--color-primary-dark) 0%, var(--color-primary-light) 100%);
  padding: var(--space-3xl) 0;
  position: relative;
  overflow: hidden;
}

.page-banner::after {
  content: '';
  position: absolute;
  right: 0; top: 0; bottom: 0;
  width: 40%;
  background: rgba(255,255,255,0.03);
  clip-path: polygon(20% 0%, 100% 0%, 100% 100%, 0% 100%);
}

.page-banner__eyebrow { font-size: 0.75rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--color-accent-light); margin-bottom: var(--space-sm); }
.page-banner__title { font-size: clamp(1.8rem, 4vw, 2.6rem); color: var(--color-white); margin-bottom: var(--space-md); }
.page-banner__subtitle { font-size: 1rem; color: rgba(255,255,255,0.75); max-width: 500px; }

.breadcrumbs { display: flex; align-items: center; gap: var(--space-sm); font-size: 0.8rem; margin-top: var(--space-lg); }
.breadcrumbs a { color: rgba(255,255,255,0.60); }
.breadcrumbs a:hover { color: var(--color-accent-light); }
.breadcrumbs__sep { color: rgba(255,255,255,0.30); }
.breadcrumbs__current { color: var(--color-accent-light); font-weight: 600; }

/* ============================================================
   CONTENT AREA
   ============================================================ */
.content-area { padding: var(--space-4xl) 0; }

.content-with-sidebar { display: grid; grid-template-columns: 1fr 300px; gap: var(--space-2xl); align-items: start; }

.sidebar { position: sticky; top: calc(var(--nav-height) + var(--space-lg)); }

.sidebar-widget {
  background: var(--color-white);
  border: 1px solid var(--color-light-gray);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  margin-bottom: var(--space-lg);
}

.sidebar-widget h4 {
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  margin-bottom: var(--space-md);
  padding-bottom: var(--space-sm);
  border-bottom: 2px solid var(--color-accent);
  display: inline-block;
}

.entry-content h2, .entry-content h3, .entry-content h4 { margin-top: var(--space-xl); margin-bottom: var(--space-md); }
.entry-content p { margin-bottom: var(--space-md); }
.entry-content ul, .entry-content ol { list-style: initial; padding-left: var(--space-xl); margin-bottom: var(--space-md); }
.entry-content a { text-decoration: underline; }

/* ============================================================
   FORMS
   ============================================================ */
.form-group { margin-bottom: var(--space-lg); }
.form-label { display: block; font-size: 0.85rem; font-weight: 600; color: var(--color-text); margin-bottom: var(--space-sm); }
.form-label span { color: var(--color-error); }

.form-control {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1.5px solid var(--color-mid-gray);
  border-radius: var(--radius-sm);
  font-size: 0.95rem;
  color: var(--color-text);
  background: var(--color-white);
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
  outline: none;
}

.form-control:focus { border-color: var(--color-accent); box-shadow: 0 0 0 3px rgba(37,99,235,0.12); }
.form-control::placeholder { color: var(--color-mid-gray); }
textarea.form-control { resize: vertical; min-height: 120px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-lg); }

/* ============================================================
   ALERTS
   ============================================================ */
.alert { padding: var(--space-md) var(--space-lg); border-radius: var(--radius-md); border-left: 4px solid; margin-bottom: var(--space-md); font-size: 0.9rem; }
.alert--success { background: rgba(22,163,74,0.08); border-color: var(--color-success); color: var(--color-success); }
.alert--info    { background: rgba(37,99,235,0.08); border-color: var(--color-accent);   color: var(--color-accent-dark); }
.alert--error   { background: rgba(220,38,38,0.08); border-color: var(--color-error);    color: var(--color-error); }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
  .footer-main { grid-template-columns: 1fr 1fr; gap: var(--space-xl); }
  .stats-grid  { grid-template-columns: repeat(2, 1fr); }
  .digital-teaser__grid { grid-template-columns: 1fr; }
  .digital-teaser__visual { display: none; }
  .quick-actions__grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 768px) {
  :root { --nav-height: 64px; --topbar-height: 0px; }
  .topbar { display: none; }
  .primary-nav, .nav-cta { display: none; }
  .nav-hamburger { display: flex; }
  .footer-main { grid-template-columns: 1fr; }
  .membership-cta__inner { grid-template-columns: 1fr; text-align: center; }
  .membership-cta__actions { justify-content: center; }
  .hero__content { padding: var(--space-3xl) 0; }
  .quick-actions__grid { grid-template-columns: repeat(2, 1fr); }
  .products-grid, .news-grid, .impact-grid { grid-template-columns: 1fr; }
  .content-with-sidebar { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .digital-teaser__features { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
  .quick-actions__grid { grid-template-columns: repeat(3, 1fr); }
  .quick-action__label { font-size: 0.65rem; }
  .hero__actions { flex-direction: column; }
  .hero__actions .btn { width: 100%; justify-content: center; }
  .products-tabs { overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ============================================================
   WORDPRESS DEFAULTS
   ============================================================ */
.alignleft  { float: left; margin-right: var(--space-lg); margin-bottom: var(--space-md); }
.alignright { float: right; margin-left: var(--space-lg); margin-bottom: var(--space-md); }
.aligncenter { display: block; margin-left: auto; margin-right: auto; margin-bottom: var(--space-md); }
.wp-caption { max-width: 100%; }
.wp-caption-text { font-size: 0.8rem; color: var(--color-text-muted); text-align: center; }
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: var(--space-md); }

.screen-reader-text {
  border: 0; clip: rect(1px,1px,1px,1px);
  clip-path: inset(50%); height: 1px; margin: -1px;
  overflow: hidden; padding: 0; position: absolute; width: 1px;
  word-wrap: normal !important;
}

.skip-link {
  position: absolute;
  top: -100%;
  left: 0;
  background: var(--color-accent);
  color: var(--color-white);
  padding: var(--space-sm) var(--space-md);
  z-index: 9999;
  transition: top var(--transition-fast);
}

.skip-link:focus { top: 0; }

@media print {
  .topbar, .site-header, .site-footer, .announcements-bar { display: none; }
}
