/* ===================================
   IPN WEBSITE - BOOTSTRAP CUSTOM STYLES
   Reusable styles for all pages
   =================================== */

/* ===================================
   Font Faces
   =================================== */

/* Gotham Bold — Primary typeface (headings & titles) */
@font-face {
    font-family: 'Gotham';
    src: url('../fonts/Latest CIP fonts/Gotham-Bold.otf') format('opentype');
    font-weight: 600;
    font-style: normal;
    font-display: swap;
}

/* Gotham Medium — Mid-weight variant */
@font-face {
    font-family: 'Gotham';
    src: url('../fonts/Latest CIP fonts/Gotham-Medium 2.otf') format('opentype');
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}

/* Gotham Book — Secondary typeface (body copy) */
@font-face {
    font-family: 'Gotham';
    src: url('../fonts/Latest CIP fonts/Gotham Book.otf') format('opentype');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

/* Gotham Light — Light variant */
@font-face {
    font-family: 'Gotham';
    src: url('../fonts/Latest CIP fonts/Gotham Light.otf') format('opentype');
    font-weight: 300;
    font-style: normal;
    font-display: swap;
}

/* ===================================
   CSS Variables (Brand Colors)
   =================================== */

:root {
    /* ── Primary Brand Colors ── */
    --ipn-primary: #f2a138;          /* Amber Orange — primary interactive colour */
    --ipn-primary-shade: #7c3794;    /* Velvet Orchid — gradient partner */
    --ipn-primary-dark: #7c3794;     /* Velvet Orchid — used in button/control gradients */
    --ipn-secondary: #1a1a1a;        /* Near-black — text, dark surfaces */
    --ipn-secondary-dark: #0d0d0d;   /* Deep black */
    --ipn-accent: #f52e73;           /* Hot Pink — brand gradient & decorative elements */
    --ipn-dark-green: #7ab800;       /* Lime Green — retained for USSD labels only */

    /* ── RGB Triplets (for rgba() usage) ── */
    --ipn-primary-rgb: 242, 161, 56;
    --ipn-secondary-rgb: 26, 26, 26;
    --ipn-secondary-dark-rgb: 13, 13, 13;
    --ipn-accent-rgb: 245, 46, 115;

    /* ── Text Colors ── */
    --ipn-text-primary: #333333;
    --ipn-text-secondary: #6E6E6E;
    --ipn-text-medium: #555555;
    --ipn-text-light: #777777;
    --ipn-text-xlight: #aaaaaa;
    --ipn-text-muted: #7F7F7F;

    /* ── Background Colors ── */
    --ipn-bg-light: #F9F9F9;
    --ipn-bg-xlight: #f5f5f5;
    --ipn-footer-bg: #3e1c4a;        /* Deep Purple footer */
    --ipn-footer-deep: #2a1233;      /* Darker purple — copyright bar */

    /* ── Gradient Shades ── */
    --ipn-gradient-start: #f52e73;   /* Hot Pink */
    --ipn-gradient-mid: #c42a84;     /* Midpoint — Hot Pink → Velvet Orchid */
    --ipn-gradient-end: #7c3794;     /* Velvet Orchid */

    /* ── Border Colors ── */
    --ipn-border-light: #e0e0e0;
    --ipn-border-xlight: #e8e8e8;
    --ipn-border-neutral: #eeeeee;

    /* ── Admin Panel Colors ── */
    --ipn-admin-bg: #0f172a;
    --ipn-admin-sidebar: #1e293b;
    --ipn-admin-nav: #1f2d3d;
    --ipn-admin-nav-active: #2d3e50;
    --ipn-admin-text: #cbd5e1;

    /* ── USSD Phone Mockup Colors ── */
    --ussd-success: #34c759;
    --ussd-info: #64d2ff;
    --ussd-phone-bg: #1c1c1e;
    --ussd-phone-ring: #3a3a3c;
    --ussd-phone-screen: #000000;
    --ussd-phone-text-muted: #636366;
    --ussd-phone-text: #e8e8ed;
    --ussd-phone-input: #2c2c2e;
    --ussd-label-green: #4a6e1a;
    --ussd-label-success: #1a6e2e;

    /* ── Spacing (matching Bootstrap) ── */
    --ipn-spacing-xs: 0.5rem;
    --ipn-spacing-sm: 1rem;
    --ipn-spacing-md: 1.5rem;
    --ipn-spacing-lg: 2rem;
    --ipn-spacing-xl: 3rem;

    /* ── Border Radius ── */
    --ipn-radius: 30px;
    --ipn-radius-sm: 25px;

    /* ── Typography ── */
    --ipn-font-primary: 'Gotham', sans-serif;   /* Bold weight — headings & titles */
    --ipn-font-secondary: 'Gotham', sans-serif; /* Book weight — body copy */
}

/* ===================================
   Global Styles
   =================================== */

html {
    width: 100%;
    max-width: 100vw;
    /* overflow-x: clip clips horizontal overflow without creating a new scroll
       container — position:sticky and position:fixed keep working correctly.
       This is the primary guard against translateX animation bleed-out. */
    overflow-x: clip;
    scroll-behavior: smooth;
    scroll-padding-top: 120px;
}

body {
    font-family: var(--ipn-font-secondary);
    color: var(--ipn-text-primary);
    font-size: 1.125rem;
    line-height: 1.8;
    margin: 0;
    padding: 0;
    width: 100%;
    max-width: 100vw;
    /* clip (not hidden) — avoids creating a new scroll container so
       position:sticky on .sticky-header continues to work correctly. */
    overflow-x: clip;
}


p,
.section-description, .innovation-description
ul li,
ol li {
    font-size: 1.125rem !important;
    line-height: 1.8;
}

/* Remove padding from container-fluid globally */
.container-fluid {
    padding: 0 !important;
}

/* Heading Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--ipn-font-primary);
    font-weight: 600;
    line-height: 1.4;
    margin-bottom: 0.5em;
}

h1 {
    font-size: 2.5rem;
    line-height: 1.2;
}

h2 {
    font-size: 1.5rem;
    line-height: 1;
}

h3 {
    font-size: 1rem;
    line-height: 1;
}

h4 {
    font-size: 1.25rem;
    line-height: 1.4;
}

h5 {
    font-size: 1.125rem;
    line-height: 1.4;
}

h6 {
    font-size: 1rem;
    line-height: 1.5;
}

p {
    line-height: 1.5;
    margin-bottom: 1em;
}

/* Prevent horizontal overflow */
.container-fluid {
    max-width: 100%;
}

/* Ensure rows don't cause overflow */
.container-fluid > .row {
    margin-left: calc(var(--bs-gutter-x) * -.5);
    margin-right: calc(var(--bs-gutter-x) * -.5);
}

/* ===================================
   Bootstrap Color Overrides
   =================================== */

/* All buttons get rounded pill style */
.btn {
    border-radius: 50px !important;
}

.btn-primary {
    background: var(--ipn-primary);
    color: white;
    border: none;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    padding: 10px 34px;
    font-weight: 700;
    font-size: 1.1rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease, background 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

/* Hover effect only on actual hover */
.btn-primary:hover {
    background: var(--ipn-secondary);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

/* Active state (during click) */
.btn-primary:active {
    transform: translateY(0);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

/* Focus visible only for keyboard navigation */
.btn-primary:focus-visible {
    outline: 2px solid var(--ipn-primary);
    outline-offset: 2px;
}

.btn-secondary {
    background-color: var(--ipn-primary);
    border: none;
    padding-left: 20px !important;
    padding-right: 20px !important;
}

/* Hover effect only on actual hover */
.btn-secondary:hover {
    background-color: var(--ipn-primary-shade);
}

/* Active state (during click) */
.btn-secondary:active {
    transform: translateY(0);
}

/* Focus visible only for keyboard navigation */
.btn-secondary:focus-visible {
    outline: 2px solid var(--ipn-secondary);
    outline-offset: 2px;
}

/* Login button — brand gradient, matches primary CTA style */
.login-btn.btn-secondary {
    background: linear-gradient(135deg, var(--ipn-accent) 0%, var(--ipn-primary-shade) 100%) !important;
    color: #ffffff !important;
    border: none !important;
    font-weight: 700;
    font-size: 1.5rem;
    padding-left: 28px !important;
    padding-right: 28px !important;
    min-width: 140px;
    box-shadow: 0 4px 15px rgba(245, 46, 115, 0.3) !important;
    transition: transform 0.3s ease, box-shadow 0.3s ease, opacity 0.3s ease;
}

.login-btn.btn-secondary:hover {
    background: linear-gradient(135deg, var(--ipn-accent) 0%, var(--ipn-primary-shade) 100%) !important;
    color: #ffffff !important;
    opacity: 0.88;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3) !important;
}

.login-btn.btn-secondary:active {
    background: linear-gradient(135deg, var(--ipn-accent) 0%, var(--ipn-primary-shade) 100%) !important;
    color: #ffffff !important;
    opacity: 0.95;
    transform: translateY(0);
}

.login-btn.btn-secondary:focus-visible {
    outline: 2px solid var(--ipn-accent);
    outline-offset: 2px;
    color: #ffffff !important;
}

.btn-gradient {
    background: linear-gradient(135deg, var(--ipn-accent) 0%, var(--ipn-primary-shade) 100%);
    color: white;
    border: none;
    box-shadow: 0 4px 15px rgba(245, 46, 115, 0.3);
    padding: 10px 34px;
    font-weight: 700;
    font-size: 1.1rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease, background 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

/* Hover effect only on actual hover */
.btn-gradient:hover {
    background: var(--ipn-secondary);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

/* Active state (during click) */
.btn-gradient:active {
    background: var(--ipn-secondary-dark);
    transform: translateY(0);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

/* Focus visible only for keyboard navigation */
.btn-gradient:focus-visible {
    outline: 2px solid var(--ipn-accent);
    outline-offset: 2px;
}

.btn-lg {
    padding: 12px 40px !important;
    font-size: 1.1rem;
}

    .btn-gradient i {
        font-size: 16px;
    }

.text-primary {
    color: var(--ipn-primary);
}

.bg-primary {
    background-color: var(--ipn-primary);
}

.bg-secondary {
    background-color: var(--ipn-secondary);
}

.bg-dark {
    background-color: var(--ipn-secondary);
}

/* ===================================
   Reusable Section Styles
   =================================== */

main {
    width: 100%;
}

section {
    width: 100%;
}

/* Ensure all hero sections stay below navbar */
section.hero {
    z-index: 1;
}

section[class*="hero"] {
    z-index: 1;
}

/* Hero text styling – shared by Index, About Us, Associates, UserBenefits, Stakeholders (not FAQ/Contact image-only heroes) */
.hero-content {
    position: relative;
    z-index: 1;
    padding: 0;
    margin: 0;
    max-width: 100%;
}

.hero-subtitle {
    color: var(--ipn-admin-text);
    font-weight: 700;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 1rem;
    will-change: opacity;
}

.hero-title {
    font-size: 44px;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    color: white;
    will-change: opacity;
}

.hero-description {
    color: rgba(255, 255, 255, 0.75);
    font-size: 1.5rem !important;
    margin-bottom: 2rem;
    line-height: 1.8;
    will-change: opacity;
    color: #ffffff;
}

.section-subtitle {
    color: var(--ipn-primary);
    font-size: 1rem !important;
    letter-spacing: 0.5px;
    line-height: 1.2;
    font-weight: 700;
}

.section-title {
    color: var(--ipn-secondary-dark);
    line-height: 1.3;
    font-weight: 700;
    font-size: 1.6rem;
}

.section-description {
    color: var(--ipn-text-secondary);
    line-height: 1.75;
    font-size: 1rem;
}

/* ===================================
   Header
   =================================== */

header {
    position: relative;
    z-index: 1000;
}

/* ===================================
   Top Bar
   =================================== */

.top-bar {
    background: linear-gradient(90deg, var(--ipn-accent) 0%, var(--ipn-primary-shade) 100%);
    font-size: 14px;
    width: 100%;
}

.contact-item {
    color: rgba(255, 255, 255, 0.75);
}

    .contact-item i {
        color: white;
        font-size: 18px;
    }


.company-name {
    color: white;
    font-size: 1.5rem;
}


.top-bar__social a {
    color: white;
    font-size: 18px;
    width: 18px;
    height: 18px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

    .top-bar__social a:hover {
        color: var(--ipn-primary);
        transform: translateY(-2px);
    }

/* ===================================
   Secondary Bar (below navbar)
   =================================== */

.secondary-bar {
    background-color: var(--ipn-primary);
    font-size: 14px;
    width: 100%;
}

.secondary-bar__link {
    color: #ffffff !important;
    text-decoration: none !important;
    font-weight: 700;
    font-size: 1.1rem;
    transition: color 0.25s ease, border-bottom-color 0.25s ease;
    white-space: nowrap;
    border-bottom: 2px solid transparent;
    padding-bottom: 3px;
}

.secondary-bar__link:hover,
.secondary-bar__link:focus,
.secondary-bar__link:focus-visible,
.secondary-bar a.secondary-bar__link:hover,
.secondary-bar a.secondary-bar__link:focus,
.secondary-bar a[data-bs-toggle="dropdown"]:hover,
.secondary-bar a[data-bs-toggle="dropdown"]:focus {
    color: #7c3794 !important;
    -webkit-text-fill-color: #7c3794 !important;
    text-decoration: none !important;
    border-bottom-color: #7c3794 !important;
}

.secondary-bar__link.active {
    color: #ffffff !important;
    text-decoration: none !important;
    border-bottom: 2px solid #ffffff !important;
    padding-bottom: 3px;
}

/* WayaMe nav item: no special styling — inherits from standard nav link rules */
/*
.navbar .nav-link.wayame-nav-link,
.secondary-bar__link.wayame-nav-link {
    color: #ffffff !important;
    background-image: none;
    -webkit-background-clip: unset;
    background-clip: unset;
    -webkit-text-fill-color: #ffffff;
}

.navbar .nav-link.wayame-nav-link:hover,
.navbar .nav-link.wayame-nav-link:focus,
.navbar .nav-link.wayame-nav-link:focus-visible,
.navbar .nav-link.wayame-nav-link.active,
.secondary-bar__link.wayame-nav-link:hover,
.secondary-bar__link.wayame-nav-link:focus,
.secondary-bar__link.wayame-nav-link:focus-visible,
.secondary-bar__link.wayame-nav-link.active {
    background-image: none;
    color: #ffffff !important;
    -webkit-text-fill-color: #ffffff;
}
*/

.nav-secondary-label {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: rgba(255, 255, 255, 0.65);
}

/* ── Mobile / Tablet Nav: "Become a Participant" brand gradient ──
   Applied to the first item in the collapsed navbar menu. */
.navbar-nav .nav-item .nav-link.nav-link--primary,
.navbar-nav .nav-item .nav-link.nav-link--primary i {
    background: linear-gradient(135deg, var(--ipn-accent), var(--ipn-primary-shade));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent !important;
    font-weight: 700;
}

.navbar-nav .nav-item .nav-link.nav-link--primary:hover,
.navbar-nav .nav-item .nav-link.nav-link--primary:hover i,
.navbar-nav .nav-item .nav-link.nav-link--primary:focus,
.navbar-nav .nav-item .nav-link.nav-link--primary:focus i {
    background: linear-gradient(135deg, var(--ipn-accent), var(--ipn-primary-shade));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent !important;
    opacity: 0.85;
}

/* ===================================
   Sticky Header — Morph on Scroll
   =================================== */

/* Promote the sticky wrapper to its own compositor layer. */
.sticky-header {
    transform: translateZ(0);
    backface-visibility: hidden;
}

/* ── Drop-shadow pseudo-element (used by both paths below) ── */
.sticky-header .navbar::after {
    content: '';
    position: absolute;
    inset: 0;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.14);
    opacity: 0;
    pointer-events: none;
    z-index: -1;
}


/* ── Sticky header — smooth collapse transitions ──────────────────────────
   Transitions live on the ELEMENTS (not the .scrolled state) so the
   animation fires in BOTH directions: collapse on scroll-down and
   expand on scroll-up. The .scrolled class only defines the target values.

   The @supports animation-timeline block that was here previously ran a
   scroll-driven animation over the SAME layout properties (padding, gap)
   that the JS .scrolled class also writes. The two systems collided at
   ~100px scroll, causing the visible snap/jitter.  Removed entirely.
────────────────────────────────────────────────────────────────────────── */
.sticky-header {
    /* Force sticky header to paint on its own GPU layer to prevent
       reflow affecting page content during navbar shrink transitions */
    will-change: transform;
    transform: translateZ(0);
    -webkit-transform: translateZ(0);
    isolation: isolate;
}

.sticky-header .navbar {
    transition: padding 0.28s cubic-bezier(0.4, 0, 0.2, 1),
                box-shadow 0.28s ease;
    /* Prevent navbar transition from causing reflow */
    will-change: padding;
}

.sticky-header .navbar.navbar-expand-lg > .container {
    transition: padding 0.28s cubic-bezier(0.4, 0, 0.2, 1);
}

.sticky-header .ipn-logo {
    transform-origin: left center;
    will-change: transform;
    transition: transform 0.28s cubic-bezier(0.4, 0, 0.2, 1);
}

.sticky-header .navbar .nav-link {
    transition: padding 0.22s ease,
                color 0.3s ease,
                border-bottom-color 0.3s ease;
}

.sticky-header .navbar .navbar-nav {
    transition: gap 0.22s ease;
}

/* ── Scrolled state — Simple class-based approach ── */
/* When .scrolled class is added by JavaScript, shrink the navbar */
.sticky-header.scrolled .navbar {
    padding-top: 0.25rem !important;
    padding-bottom: 0.25rem !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.14);
    min-height: 0 !important;
}

.sticky-header.scrolled .navbar > .container {
    padding-top: 0 !important;
    padding-bottom: 0 !important;
    min-height: 0 !important;
}

.sticky-header.scrolled .ipn-logo {
    transform: scale(0.6);
    transform-origin: left center;
}

.sticky-header.scrolled .ipn-brand-text {
    opacity: 1;
    visibility: visible;
    transform: scale(0.6);
    display: none;
    transform-origin: left center;
}

.sticky-header.scrolled .nav-link {
    padding-top: 0 !important;
    padding-bottom: 0 !important;
    line-height: 1 !important;
}

.sticky-header.scrolled .navbar-nav {
    gap: 0.25rem !important;
    margin: 0 !important;
}

/* ── Navbar adjustments for authenticated users (Admin/Associate) ── */
/* Reduce font size and spacing to fit all nav items */
body.user-authenticated .navbar-nav {
    gap: 0.75rem !important;
}

body.user-authenticated .navbar .nav-link {
    font-size: 0.9rem;
    padding-left: 0.5rem !important;
    padding-right: 0.5rem !important;
}

body.user-authenticated .navbar .dropdown-toggle {
    font-size: 0.9rem;
}

body.user-authenticated .navbar .btn,
body.user-authenticated .navbar .login-btn {
    font-size: 0.9rem;
    padding: 0.4rem 1rem;
}

body.user-authenticated .secondary-bar .d-flex {
    gap: 1.5rem !important;
}

body.user-authenticated .secondary-bar__link {
    font-size: 0.9rem;
    padding-left: 0.65rem !important;
    padding-right: 0.65rem !important;
}

/* Tighter spacing when scrolled + authenticated */
body.user-authenticated .sticky-header.scrolled .navbar-nav {
    gap: 0.2rem !important;
}

body.user-authenticated .sticky-header.scrolled .nav-link {
    font-size: 0.85rem;
}

/* Further reduce on medium desktop screens if needed */
@media (min-width: 992px) and (max-width: 1399px) {
    body.user-authenticated .navbar-nav {
        gap: 0.5rem !important;
    }
    
    body.user-authenticated .navbar .nav-link {
        font-size: 0.85rem;
    }
    
    body.user-authenticated .navbar .dropdown-toggle {
        font-size: 0.85rem;
    }
    
    body.user-authenticated .navbar .btn,
    body.user-authenticated .navbar .login-btn {
        font-size: 0.85rem;
        padding: 0.35rem 0.9rem;
    }
    
    body.user-authenticated .secondary-bar .d-flex {
        gap: 1rem !important;
    }
    
    body.user-authenticated .secondary-bar__link {
        font-size: 0.85rem;
    }
}

/* Extra tight on small desktop screens */
@media (min-width: 992px) and (max-width: 1199px) {
    body.user-authenticated .navbar-nav {
        gap: 0.4rem !important;
    }
    
    body.user-authenticated .navbar .nav-link {
        font-size: 0.8rem;
        padding-left: 0.4rem !important;
        padding-right: 0.4rem !important;
    }
    
    body.user-authenticated .navbar .dropdown-toggle {
        font-size: 0.8rem;
    }
    
    body.user-authenticated .navbar .btn,
    body.user-authenticated .navbar .login-btn {
        font-size: 0.8rem;
        padding: 0.3rem 0.8rem;
    }
    
    body.user-authenticated .secondary-bar .d-flex {
        gap: 0.75rem !important;
    }
    
    body.user-authenticated .secondary-bar__link {
        font-size: 0.8rem;
        padding-left: 0.5rem !important;
        padding-right: 0.5rem !important;
    }
}

.sticky-header.scrolled .navbar-collapse {
    min-height: 0 !important;
}

.sticky-header.scrolled .btn,
.sticky-header.scrolled .auth-link {
    padding-top: 0.4rem !important;
    padding-bottom: 0.4rem !important;
    font-size: 0.95rem !important;
}

/* Keep auth buttons fixed on the right when navbar shrinks */
.navbar > .container {
    position: relative;
}

.navbar-collapse {
    flex-grow: 0 !important;
}

@media (min-width: 992px) {
    .navbar-collapse > .d-none.d-lg-flex {
        position: absolute;
        right: 0;
        top: 50%;
        transform: translateY(-50%);
    }
}


/* Mobile - Hide top bar */
/* ===================================
   Navigation Bar
   =================================== */


.navbar {
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    padding-top: 0.75rem;
    padding-bottom: 0.75rem;
    z-index: 1040;
    width: 100%;
    position: relative;
}

.navbar.sticky-top {
    position: sticky;
    top: 0;
}

.navbar-brand {
    gap: 0.5rem !important;
    display: flex !important;
    align-items: center !important;
    position: relative;
}

.navbar-brand img {
/*    max-height: 54px;*/
    width: auto;
    transform-origin: left center;
}

.ipn-logo {
    display: block;
    height: 54px;
    width: auto;
    margin: 0 !important;
    padding: 0 !important;
    position: relative;
    z-index: 2;
    will-change: transform;
}

.sticky-header.scrolled .navbar-brand {
    gap: 0.25rem !important;
    margin: 0 !important;
    padding: 0 !important;
}

.navbar-toggler {
    margin-left: auto;
    position: relative;
    z-index: 1050;
    background: linear-gradient(135deg, var(--ipn-accent), var(--ipn-primary-shade)) !important;
    border: none !important;
    border-radius: 8px;
    padding: 8px 12px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.navbar-toggler:hover {
    background: var(--ipn-secondary) !important;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba(255, 255, 255, 1)' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e") !important;
    width: 24px;
    height: 24px;
}

/* Mobile menu close button */
.btn-close-mobile {
    position: absolute;
    top: 12px;
    right: 2rem;
    background: transparent;
    border: none;
    padding: 4px;
    cursor: pointer;
    z-index: 1055;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.btn-close-mobile:hover {
    background: rgba(var(--ipn-primary-rgb), 0.1);
    transform: scale(1.1);
}

.btn-close-mobile i {
    font-size: 1.75rem;
    color: var(--ipn-primary);
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-close-mobile:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(var(--ipn-primary-rgb), 0.3);
}

/* Mobile menu positioning */
@media (max-width: 991.98px) {
    .navbar-collapse {
        position: relative;
        padding-top: 50px;
    }
    
    .navbar-collapse .navbar-nav {
        max-height: calc(100vh - 200px);
        overflow-y: auto;
        padding-right: 15px;
    }
}

.navbar .nav-link {
    color: #2c2c2c !important;
    font-weight: 700;
    font-size: 1.1rem;
    transition: color 0.3s ease, border-bottom 0.3s ease;
    border-bottom: 2px solid transparent;
    padding-top: 0.5rem;
    padding-bottom: 5px;
    background-color: transparent !important;
    outline: none !important;
    box-shadow: none !important;
}

.navbar .nav-link:hover,
.navbar .nav-link.active,
.navbar .nav-link:focus,
.navbar .nav-link:focus-visible,
.navbar-light .navbar-nav .nav-link:hover,
.navbar-light .navbar-nav .nav-link:focus,
.navbar-light .navbar-nav .show > .nav-link {
    color: #7c3794 !important;
    border-bottom-color: #7c3794;
    background-color: transparent !important;
    outline: none !important;
    box-shadow: none !important;
}

.auth-link {
    color: #2c2c2c;
    font-weight: 700;
    font-size: 1.1rem;
    text-decoration: none;
    transition: color 0.3s ease;
}

.auth-link:hover {
    color: #7c3794;
}

.auth-link:focus:not(:focus-visible) {
    color: #2c2c2c;
}

.auth-link:focus-visible {
    color: #7c3794;
    outline: 2px solid #7c3794;
    outline-offset: 2px;
}

/* Dropdown Menu Styles */
.navbar .dropdown-menu {
    border: none;
    box-shadow: 0px 10px 20px rgba(0, 0, 0, 0.25);
    border-radius: 0;
    padding: 0;
    min-width: 300px;
    z-index: 1050;
    margin-top: 0;
}

/* Border radius styling - moved to media-queries.css (desktop only) */

.dropdown-item {
    color: #2c2c2c;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    line-height: 24px;
    letter-spacing: 0.84px;
    padding: 15px 41px;
    transition: color 0.2s ease, background-color 0.2s ease, border-left-color 0.2s ease;
    background-color: white;
    border-left: 3px solid transparent;
    outline: none !important;
    box-shadow: none !important;
}

    .dropdown-item:hover,
    .dropdown-item:focus,
    .dropdown-item:focus-visible {
        background-color: #f5eefa;
        color: #7c3794;
        border-left-color: #7c3794;
        outline: none !important;
        box-shadow: none !important;
    }

    .dropdown-item.active {
        background-color: #f5eefa;
        color: #7c3794;
        border-left-color: #7c3794;
        text-decoration: underline;
        text-underline-offset: 4px;
        text-decoration-thickness: 2px;
    }

/* Nested Dropdown Submenu */
.dropdown-submenu {
    position: relative;
}

/* Dropdown positioning */
.navbar .dropdown {
    position: static;
}


/* Consistent caret styling for all dropdown toggles */
.navbar .dropdown-toggle {
    outline: none !important;
    box-shadow: none !important;
}

.navbar .dropdown-toggle::after {
    content: "\F282";
    font-family: "bootstrap-icons";
    border: none;
    vertical-align: middle;
    margin-left: 0.5rem;
    font-size: 12px;
    display: inline-block;
}

.navbar .dropdown-toggle:focus,
.navbar .dropdown-toggle:focus-visible {
    outline: none !important;
    box-shadow: none !important;
}

/* Nested dropdown toggle - right aligned */
.dropdown-submenu .dropdown-toggle::after {
    margin-left: auto;
    float: right;
}

.navbar .dropdown-submenu-menu {
    position: absolute;
    top: 0;
    left: 100%;
    margin-left: 0;
    margin-top: 0;
    display: none;
    z-index: 1051;
    border: none;
    box-shadow: 0px 10px 20px rgba(0, 0, 0, 0.25);
    border-radius: 0;
    padding: 0;
    min-width: 300px;
    background-color: white;
}

/* Show nested dropdown on hover/click */
.navbar .dropdown-submenu:hover > .dropdown-submenu-menu,
.navbar .dropdown-submenu-menu.show {
    display: block;
}

/* Ensure submenu items have proper styling */
.navbar .dropdown-submenu-menu .dropdown-item {
    white-space: nowrap;
}

/* NUCLEAR OPTION - Kill ALL squares/outlines/shadows on navbar elements */
.navbar a,
.navbar button,
.navbar .nav-link,
.navbar .dropdown-toggle,
.navbar .dropdown-item,
.navbar .navbar-toggler,
.navbar-toggler:focus,
.nav-item a:focus,
.nav-item button:focus {
    outline: none !important;
    box-shadow: none !important;
}

/* Ensure active and focus states only show underline, no squares */
.navbar .nav-link:active,
.navbar .dropdown-toggle:active {
    background-color: transparent !important;
    outline: none !important;
    box-shadow: none !important;
}


/* ===================================
   Footer
   =================================== */

.footer {
    background-color: var(--ipn-footer-bg);
    width: 100%;
    padding-bottom: 0 !important;
}

.footer a {
    transition: all 0.3s ease;
}

.footer a {
    display: inline-block;
    transition: transform 0.3s ease, color 0.3s ease;
}

.footer a:hover {
    color: var(--ipn-primary) !important;
    transform: translateY(-3px);
}

.footer a:hover .bi-facebook,
.footer a:hover .bi-twitter-x,
.footer a:hover .bi-instagram,
.footer a:hover .bi-linkedin {
    color: var(--ipn-primary);
}

/* Quick Links and Site Links specific hover */
.footer ul.list-unstyled a:hover {
    color: var(--ipn-primary) !important;
}

.footer-nav-icon {
    color: rgba(255, 255, 255, 0.55);
    flex-shrink: 0;
}

.footer-site-links li {
    margin-bottom: 0.5rem;
}

.footer-site-links a {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
}

.footer-site-links .bi-dot {
    font-size: 1.1rem;
    line-height: 1;
}

/* Override Bootstrap text-white-50 class on hover (only for links, not paragraphs) */
.footer a.text-white-50:hover {
    color: var(--ipn-primary) !important;
}

/* ── Copyright bar ── */
.footer-copyright-bar {
    background-color: var(--ipn-footer-deep);
    text-align: center;
    padding: 0.85rem 1rem;
}

.footer-copyright-text {
    color: rgba(255, 255, 255, 0.75);
    font-size: 0.82rem;
    margin: 0;
    line-height: 1.5;
}

.footer-copyright-link {
    color: rgba(255, 255, 255, 0.75);
    text-decoration: none;
    transition: color 0.25s ease;
}

.footer-copyright-link:hover {
    color: var(--ipn-primary);
    transform: none; /* override the generic .footer a:hover lift */
}

.footer-copyright-link--green {
    color: var(--ipn-primary) !important;
    font-weight: 600;
    transition: all 0.25s ease;
}

.footer-copyright-link--green:hover {
    color: white !important;
    transform: translateY(-1px);
}

/* ===================================
   Utility Classes (Reusable)
   =================================== */

/* Rounded corners */
.rounded-4 {
    border-radius: var(--ipn-radius);
}

/* Shadows */
.shadow-custom {
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
}

.shadow-custom-lg {
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
}

/* Gradients */
.gradient-primary {
    background: linear-gradient(135deg, var(--ipn-accent), var(--ipn-primary-shade));
}

.gradient-green {
    background: linear-gradient(135deg, var(--ipn-gradient-start) 0%, var(--ipn-gradient-mid) 50%, var(--ipn-gradient-end) 100%);
}

/* Text utilities */
.text-primary-custom {
    color: var(--ipn-primary);
}

.text-muted-custom {
    color: var(--ipn-text-muted);
}

/* Background utilities */
.bg-light-custom {
    background-color: var(--ipn-bg-light);
}

.bg-secondary-custom {
    background-color: var(--ipn-secondary);
}

/* How it works – middle images: full width, no margin/padding, no border radius, responsive */
.hiw-middle-image-section .container-fluid,
.hiw-middle-image-section .row,
.hiw-middle-image-section .col-12 {
    margin-left: 0 !important;
    margin-right: 0 !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
}

.hiw-middle-image {
    border-radius: 0;
    margin: 0;
    padding: 0;
    overflow: hidden;
}

.hiw-middle-image img {
    display: block;
    width: 100%;
    max-width: 100%;
    height: auto;
    object-fit: cover;
}

/* Custom badge color for IPN category */
.bg-ipn-primary {
    background-color: var(--ipn-primary) !important;
    color: #ffffff !important;
}

/* ===================================
   Back to Top Button
   =================================== */

.btn-back-to-top {
    position: fixed;
    /* env(safe-area-inset-bottom) protects against iOS home indicator / notch.
       Falls back to 0px on non-iOS browsers so behaviour is unchanged there. */
    right:  1.5rem;
    bottom: calc(1.5rem + env(safe-area-inset-bottom, 0px));
    width:  50px;
    height: 50px;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1050;
    /* Hidden by default via opacity — NOT display:none, so CSS transitions work */
    opacity: 0;
    pointer-events: none;
    transform: translateY(8px);
    transition: opacity 0.25s ease, transform 0.25s ease;
}

.btn-back-to-top.is-visible {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}

/* Tablet — 500px – 1024px */
@media (min-width: 500px) and (max-width: 1024px) {
    .btn-back-to-top {
        right:  1.25rem;
        bottom: calc(1.25rem + env(safe-area-inset-bottom, 0px));
        width:  46px;
        height: 46px;
    }
}

/* Mobile — 360px – 499px */
@media (min-width: 360px) and (max-width: 499px) {
    .btn-back-to-top {
        right:  1rem;
        bottom: calc(1rem + env(safe-area-inset-bottom, 0px));
        width:  44px;
        height: 44px;
    }
}

/* Smallest phones — up to 359px */
@media (max-width: 359px) {
    .btn-back-to-top {
        right:  0.75rem;
        bottom: calc(0.75rem + env(safe-area-inset-bottom, 0px));
        width:  42px;
        height: 42px;
    }
}

/* Hover effects */
.hover-lift {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

    .hover-lift:hover {
        transform: translateY(-5px);
    }

/* Animations */
/* Card slide-up animation removed per BA request */

/* ===================================
   Accessibility
   =================================== */

/* Remove focus styling on mouse click, but keep for keyboard navigation */
a:focus:not(:focus-visible),
button:focus:not(:focus-visible),
.btn:focus:not(:focus-visible) {
    outline: none;
    box-shadow: none;
}

/* Visible focus for keyboard navigation (accessibility) */
a:focus-visible,
button:focus-visible,
.btn:focus-visible {
    outline: 2px solid var(--ipn-primary);
    outline-offset: 2px;
}

/* Skip to content link */
.skip-link {
    position: absolute;
    top: -9999px;
    left: 0;
    background: var(--ipn-primary);
    color: white;
    padding: 8px;
    text-decoration: none;
    z-index: 9999;
}

    .skip-link:focus {
        top: -9999px;
    }

/* Print Styles - See media-queries.css */


/* ===================================
   Feature Cards
   =================================== */

.feature-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

    .feature-card:hover {
        transform: translateY(-5px);
        box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
    }

/* Testimonial / use case cards (UserBenefits) */
.card.testimonial-card .card-body {
    min-height: 130px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.feature-icon {
    width: 55px;
    height: 55px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.feature-icon i {
    color: var(--ipn-primary);
    font-size: 45px;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* All Bootstrap icons in cards should be at least 60px */
.card .bi {
    font-size: 45px;
}

/* Small utility icons (calendar, arrows, etc.) */
.icon-small {
    font-size: 24px !important;
}

.news-icon {
    font-size: 16px !important;
}

/* Ensure all Bootstrap icons in circular containers are perfectly centered */
.rounded-circle .bi,
[class*="circle"] .bi,
button[class*="circle"] .bi {
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

/* Global rule: any element with border-radius: 50% should center its icon */
[style*="border-radius: 50%"] .bi,
[style*="border-radius:50%"] .bi {
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

/* Check-circle and other circular Bootstrap icons */
.bi-check-circle,
.bi-check-circle-fill,
.bi-person-circle,
.bi-exclamation-circle,
.bi-exclamation-circle-fill,
.bi-info-circle,
.bi-info-circle-fill,
.bi-x-circle,
.bi-x-circle-fill {
    line-height: 1;
}

/* Ensure proper alignment in flexbox lists */
.d-flex .bi-check-circle,
.d-flex .bi-check-circle-fill {
    /* Icons in flex containers should align with first line of text */
    margin-top: 0.15em;
    flex-shrink: 0;
}

/* For inline contexts (not flexbox), add vertical-align */
p .bi-check-circle,
p .bi-check-circle-fill {
    vertical-align: middle;
}

/* Bootstrap's btn-close centering override */
.btn-close {
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

/* ===================================
   Mobile Content Order Fix
   BA Requirement: All mobile content should be image first, text second
   =================================== */
@media (max-width: 991px) {
    /* Method 1: For sections WITH order-lg classes already */
    /* These are sections where desktop order is explicitly controlled */
    .row .col-lg-6.order-lg-1,
    .row .col-lg-5.order-lg-1,
    .row .col-lg-7.order-lg-1 {
        /* Check content to determine mobile order */
        order: 1;
    }
    
    .row .col-lg-6.order-lg-2,
    .row .col-lg-5.order-lg-2,
    .row .col-lg-7.order-lg-2 {
        order: 2;
    }
    
    /* Override: If order-lg-1 contains text (no image), make it order 2 */
    .row .col-lg-6.order-lg-1:not(:has(img)):not(:has(.rounded-4)),
    .row .col-lg-5.order-lg-1:not(:has(img)):not(:has(.rounded-4)),
    .row .col-lg-7.order-lg-1:not(:has(img)):not(:has(.rounded-4)) {
        order: 2 !important;
    }
    
    /* Override: If order-lg-2 contains image, make it order 1 */
    .row .col-lg-6.order-lg-2:has(img),
    .row .col-lg-5.order-lg-2:has(img),
    .row .col-lg-7.order-lg-2:has(img) {
        order: 1 !important;
    }
    
    /* Method 2: For sections WITHOUT order-lg classes */
    /* These sections need mobile ordering based on content */
    .row > .col-lg-6:not([class*="order-"]):has(img),
    .row > .col-lg-6:not([class*="order-"]):has(.rounded-4),
    .row > .col-lg-5:not([class*="order-"]):has(img),
    .row > .col-lg-7:not([class*="order-"]):has(img) {
        /* Columns with images should be first */
        order: 1 !important;
    }
    
    .row > .col-lg-6:not([class*="order-"]):not(:has(img)):not(:has(.rounded-4)),
    .row > .col-lg-5:not([class*="order-"]):not(:has(img)),
    .row > .col-lg-7:not([class*="order-"]):not(:has(img)) {
        /* Text columns should be second */
        order: 2 !important;
    }
    
    /* Ensure parent row is using flexbox for order to work */
    .row {
        display: flex !important;
        flex-wrap: wrap !important;
    }
    
    /* Fallback for browsers without :has() support (rare in 2026) */
    /* Add .image-col and .text-col classes manually if needed */
    .row > .image-col {
        order: 1 !important;
    }
    
    .row > .text-col {
        order: 2 !important;
    }
}

/* Browser support note: :has() is supported in:
   - Chrome 105+ (Aug 2022)
   - Safari 15.4+ (Mar 2022)
   - Firefox 121+ (Dec 2023)
   Should cover 95%+ of users in 2026 */

/* ===================================
   Timeline Cards (Homepage)
   =================================== */

.timeline-card {
    background: white;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.timeline-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15) !important;
}

/* Gold year badge on the left */
.timeline-badge {
    background: linear-gradient(135deg, var(--ipn-accent), var(--ipn-primary-shade));
    color: white;
    font-size: 1.25rem;
    line-height: 1;
    flex-shrink: 0;
    white-space: nowrap;
    box-shadow: 0 2px 8px rgba(var(--ipn-primary-rgb), 0.3);
}

/* Main title with icon */
.timeline-title {
    color: var(--ipn-text-primary);
    line-height: 1.3;
}

.timeline-title i {
    color: var(--ipn-primary);
    font-size: 1.1em;
    margin-right: 0.25rem;
}

/* Subtitle/description */
.timeline-subtitle {
    color: var(--ipn-text-secondary);
    font-size: 0.95rem;
    line-height: 1.5;
}

/* Metadata tags at bottom */
.timeline-meta {
    color: var(--ipn-text-secondary);
    font-size: 0.875rem;
}

/* ===================================
   Value Section
   =================================== */

.value-checklist li i {
    margin-top: 3px;
}

.value-image {
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}


/* ===================================
   Our Team Section Overlay
   =================================== */

.team-section {
    position: relative;
}

.team-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url('../images/Overlays%20misc/Overlay%201.webp');
    background-size: cover;
    background-position: center;
    opacity: 0.05;
    pointer-events: none;
    z-index: 0;
}

.team-section .container {
    position: relative;
    z-index: 1;
}

/* ===================================
   Our Team Hero
   =================================== */

.our-team-hero {
    background: linear-gradient(rgba(0,0,0,0.5), rgba(0,0,0,0.5)),
                url('../images/Overlays%20misc/Overlay%201.webp')
                center / cover no-repeat;
    min-height: 400px;
    display: flex;
    align-items: center;
    position: relative;
    z-index: 1;
}

/* ===================================
   Team Cards
   =================================== */

.team-card {
    height: 100%;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.team-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15) !important;
}

.team-card .card-body {
    min-height: 85px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.team-card-name {
    font-size: 1rem;
    font-weight: 700;
    color: var(--ipn-secondary);
}

.team-card-role {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--ipn-primary);
}

/* ===================================
   END OF STYLESHEET
   All styles are now Bootstrap-compatible
   and reusable across multiple pages
   =================================== */



/*form style*/

.form-diplay-inline {
    display: inline !important
}

/*font icon size*/
.icon-font-size{
    font-size: 16px !important;
}


.admin-wrapper {
    display: flex;
}


.admin-sidebar a {
    display: block;
    padding: 12px 15px;
    color: white;
    text-decoration: none;
    border-radius: 6px;
    margin-bottom: 5px;
}

.admin-sidebar a i {
    margin-right: 8px;
}

.admin-sidebar a:hover {
    background: var(--ipn-admin-nav-active);
}

/* Sidebar */
.admin-sidebar {
    width: 250px;
    height: 100vh;
    background: var(--ipn-admin-nav);
    position: fixed;
    left: 0;
    top: 0;
    padding: 20px;
    transition: left 0.3s ease;
    display: flex;
    flex-direction: column !important;
}

.admin-sidebar.active {
    left: 0; /* sidebar visible */
}

/* Content */
.admin-content {
    margin-left: 250px;
    width: 100%;
    padding: 20px;
}

.sidebar-close {
    position: absolute;
    top: 10px;
    right: 10px;
}

.small-primary-btn {
    padding: .25rem .5rem !important;
    border: 1px !important;
}

.navbar .dropdown-menu {
    border: none;
    box-shadow: 0px 10px 20px rgba(0, 0, 0, 0.25);
    border-radius: 0;
    padding: 0;
    min-width: 300px;
    z-index: 1050;
    margin-top: 0;
}
/* hide sidebar to the left */
.admin-sidebar.closed {
    transform: translateX(-100%); 
}

/* MOBILE */
@media (max-width:768px) {

    .admin-sidebar {
        left: -250px;
        z-index: 1000;
    }

    .admin-sidebar.active {
        left: 0;
    }

    .admin-content {
        margin-left: 0;
        padding-top: 70px;
    }

    .login-btn{
        margin-top:10px;
    }
}

/* ===================================
   Secondary Bar Dropdown
   =================================== */

/*
 * This is to properly align the nav items in the website

 */
.secondary-bar .dropdown {
    display: flex;
    align-items: center;
}

.secondary-bar .dropdown-menu,
.secondary-bar-dropdown {
    border: none;
    box-shadow: 0px 10px 20px rgba(0, 0, 0, 0.25);
    border-radius: 0;
    padding: 0;
    z-index: 1050;
    min-width: 220px;
}

.secondary-bar .dropdown-toggle::after {
    content: "\F282";
    font-family: "bootstrap-icons";
    border: none;
    vertical-align: middle;
    margin-left: 0.35rem;
    font-size: 11px;
    display: inline-block;
}

/* ===================================
   USSD Directory Page
   =================================== */

/* Hero */
.ussd-directory-hero {
    background: linear-gradient(rgba(0,0,0,0.5), rgba(0,0,0,0.5)),
                url('../images/Overlays%20misc/Overlay%201.webp')
                center / cover no-repeat;
    min-height: 400px;
    display: flex;
    align-items: center;
    position: relative;
    z-index: 1;
}

/* Search section overlay */
.ussd-search-section {
    position: relative;
}

.ussd-search-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url('../images/Overlays%20misc/Overlay%201.webp');
    background-size: cover;
    background-position: center;
    opacity: 0.05;
    pointer-events: none;
    z-index: 0;
}

.ussd-search-section .container {
    position: relative;
    z-index: 1;
}

/* Search input */
.ussd-search-wrapper {
    position: relative;
}

.ussd-search-icon {
    position: absolute;
    left: 1.1rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--ipn-text-light);
    font-size: 1.1rem;
    z-index: 5;
    pointer-events: none;
}

.ussd-search-input {
    padding-left: 3rem;
    padding-right: 7rem;
    height: 56px;
    border-radius: var(--ipn-radius) !important;
    border: 2px solid var(--ipn-border-light);
    font-size: 1rem;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.ussd-search-input:focus {
    border-color: var(--ipn-primary);
    box-shadow: 0 0 0 0.2rem rgba(var(--ipn-primary-rgb), 0.18);
    outline: none;
}

.ussd-result-badge {
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    background: var(--ipn-primary);
    color: white;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 4px 12px;
    border-radius: 20px;
    white-space: nowrap;
    pointer-events: none;
}

/* Category filter pills */
.filter-pill {
    background: white;
    border: 2px solid var(--ipn-border-light);
    color: var(--ipn-text-secondary);
    font-weight: 600;
    font-size: 0.8rem;
    padding: 6px 16px;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.2s ease;
    line-height: 1.4;
    min-width: 120px;
    text-align: center;
}

.filter-pill:hover {
    border-color: var(--ipn-primary);
    color: var(--ipn-primary);
    background: white;
}

.filter-pill.active {
    background: var(--ipn-primary);
    border-color: var(--ipn-primary);
    color: white;
}

/* Category section heading banner */
.category-header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    background: linear-gradient(135deg, var(--ipn-secondary), var(--ipn-dark-green));
    padding: 0.85rem 1.5rem;
    border-radius: 8px;
    margin-bottom: 1.5rem;
    width: 100%;
}

.category-icon-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.4rem;
    flex-shrink: 0;
}

.category-icon-wrap i {
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

.term-category-title {
    color: white;
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0;
    line-height: 1.3;
}

/* Term cards */
.term-card {
    background-color: var(--ipn-bg-light) !important;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.term-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.08) !important;
    background-color: white !important;
}

.term-name {
    color: var(--ipn-secondary);
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    line-height: 1.4;
}

.term-definition {
    color: var(--ipn-text-secondary);
    font-size: 0.9rem;
    line-height: 1.65;
}

/* ===================================
   Sitemap Page Styles
   =================================== */

.sitemap-hero {
    border-bottom: 3px solid var(--ipn-primary);
}

.sitemap-section {
    background: white;
    border-radius: 12px;
    padding: 2rem;
    height: 100%;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.sitemap-section:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
}

.sitemap-section-title {
    color: var(--ipn-primary);
    border-bottom: 2px solid var(--ipn-primary);
    padding-bottom: 0.75rem;
}

.sitemap-section-title i {
    color: var(--ipn-primary);
}

.sitemap-link {
    color: var(--ipn-text-medium);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
}

.sitemap-link:hover {
    color: var(--ipn-primary);
    transform: translateX(5px);
}

.sitemap-link i {
    font-size: 0.8rem;
    color: var(--ipn-primary);
    transition: transform 0.2s ease;
}

.sitemap-link:hover i {
    transform: translateX(3px);
}

/* ===================================
   IPN Text Banner (Responsive Code-Based)
   =================================== */

.ipn-text-banner {
    position: relative;
    min-height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-image: url('../images/Overlays%20misc/Overlay%201.webp');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    padding: 4rem 2rem;
    overflow: hidden;
}

.ipn-text-banner-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1;
}

.ipn-text-banner .container {
    position: relative;
    z-index: 2;
}

.ipn-text-banner-content {
    color: white !important;
    font-size: 2.2rem !important;
    line-height: 1.3 !important;
    font-weight: 700 !important;
    text-align: center;
    margin: 0;
    font-family: var(--ipn-font-primary);
}

/* Responsive adjustments for banner text */
@media (max-width: 991px) {
    .ipn-text-banner {
        min-height: 250px;
        padding: 3rem 1.5rem;
    }
    
    .ipn-text-banner-content {
        font-size: 2rem !important;
    }
}

@media (max-width: 767px) {
    .ipn-text-banner {
        min-height: 200px;
        padding: 2.5rem 1rem;
    }
    
    .ipn-text-banner-content {
        font-size: 1.75rem !important;
    }
}

@media (max-width: 499px) {
    .ipn-text-banner {
        min-height: 180px;
        padding: 2rem 1rem;
    }
    
    .ipn-text-banner-content {
        font-size: 1.35rem !important;
    }
}