/* 
   Zihi Institute - Modern Corporate CSS
   Mobile First Architecture
   
   BRAND COLORS (STRICT):
   - Primary: #901a42 (Maroon/Burgundy)
   - Secondary: #0e6c74 (Teal)
   - Accent: #bc8f24 (Gold/Ochre)
   - Black: #000000
   - White: #ffffff
   
   TYPEFACE:
   - DM Sans (Google Fonts)
   
   NO OTHER COLORS ALLOWED - Only brand colors + black/white
*/

:root {
    /* Primary brand colors - EXACT as specified */
    --primary: #901a42;
    --primary-dark: #721434;
    --primary-light: #fdf4f7;
    
    /* Secondary brand colors - EXACT as specified */
    --secondary: #0e6c74;
    --secondary-dark: #0b555b;
    --secondary-light: #f0f8f9;
    
    /* Accent brand colors - EXACT as specified */
    --accent: #bc8f24;
    --accent-dark: #a37b1f;
    --accent-light: #fcf8eb;
    
    /* Black and White ONLY */
    --black: #000000;
    --white: #ffffff;
    
    /* Neutral grays derived from black/white only */
    --gray-50: #fafafa;
    --gray-100: #f5f5f5;
    --gray-200: #e5e5e5;
    --gray-300: #d4d4d4;
    --gray-400: #a3a3a3;
    --gray-500: #737373;
    --gray-600: #525252;
    --gray-700: #404040;
    --gray-800: #262626;
    --gray-900: #171717;
    
    /* Semantic colors using brand colors + black/white */
    --text-main: var(--black);
    --text-muted: var(--gray-600);
    --bg-main: var(--white);
    --bg-alt: var(--gray-50);
    
    /* Dark backgrounds using black */
    --bg-dark: rgba(0, 0, 0, 0.98);
    --bg-dark-transparent: rgba(0, 0, 0, 0.85);
    
    /* Spacing & Utilities */
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --radius-md: 0.75rem;
    --radius-lg: 1.25rem;
    --container-width: 1200px;
}

/* Base Resets & Professional Typography */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    hyphens: none;
    -webkit-hyphens: none;
    -moz-hyphens: none;
    -ms-hyphens: none;
}

body {
    font-family: 'DM Sans', sans-serif;
    font-size: 16px; /* Base for mobile */
    line-height: 1.65;
    color: var(--text-main);
    background-color: var(--bg-main);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    -webkit-text-size-adjust: 100%;
    overflow-x: hidden;
    hyphens: none;
    -webkit-hyphens: none;
    -moz-hyphens: none;
    -ms-hyphens: none;
}

h1, h2, h3, h4, h5, h6 {
    color: var(--black);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
    letter-spacing: -0.025em;
}

h1 { font-size: 2.25rem; }
h2 { font-size: 1.875rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.25rem; }

p { margin-bottom: 1.25rem; }

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

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

/* Prevent image overflow */
img, video, iframe {
    max-width: 100%;
    height: auto;
}

/* Ensure containers don't overflow */
.container, .container-fluid {
    overflow-x: hidden;
}

/* Text overflow handling */
h1, h2, h3, h4, h5, h6, p {
    word-wrap: break-word;
    overflow-wrap: break-word;
    word-break: normal;
    hyphens: none;
    -webkit-hyphens: none;
    -moz-hyphens: none;
    -ms-hyphens: none;
}

/* --- Layout Components --- */

section {
    padding: 4rem 0; /* Base for mobile */
}

.container {
    width: 100%;
    padding-right: 1.5rem;
    padding-left: 1.5rem;
    margin-right: auto;
    margin-left: auto;
}

/* --- Corporate UI Elements --- */

/* Bootstrap Color Overrides - CRITICAL: Override Bootstrap's default blue */
.text-primary,
.text-primary:hover,
.text-primary:focus {
    color: var(--primary) !important; /* #901a42 - Burgundy, NOT blue */
}

.bg-primary,
.bg-primary:hover,
.bg-primary:focus {
    background-color: var(--primary) !important; /* #901a42 - Burgundy, NOT blue */
    color: var(--white) !important;
}

.text-secondary,
.text-secondary:hover,
.text-secondary:focus {
    color: var(--secondary) !important; /* #0e6c74 - Teal */
}

.bg-secondary,
.bg-secondary:hover,
.bg-secondary:focus {
    background-color: var(--secondary) !important; /* #0e6c74 - Teal */
    color: var(--white) !important;
}

.text-accent,
.text-accent:hover,
.text-accent:focus {
    color: var(--accent) !important; /* #bc8f24 - Gold */
}

.bg-accent,
.bg-accent:hover,
.bg-accent:focus {
    background-color: var(--accent) !important; /* #bc8f24 - Gold */
    color: var(--white) !important;
}

.border-primary {
    border-color: var(--primary) !important;
}

.border-secondary {
    border-color: var(--secondary) !important;
}

.border-accent {
    border-color: var(--accent) !important;
}

/* Professional Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.75rem;
    font-weight: 600;
    border-radius: 50px;
    transition: var(--transition);
    cursor: pointer;
    font-size: 0.95rem;
    border: 2px solid transparent;
}

.btn-primary {
    background-color: var(--primary) !important; /* #901a42 - Burgundy, NOT blue */
    color: var(--white) !important;
    border-color: var(--primary) !important;
}

.btn-primary:hover,
.btn-primary:focus,
.btn-primary:active {
    background-color: var(--primary-dark) !important;
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
    color: var(--white) !important;
    border-color: var(--primary-dark) !important;
}

.btn-secondary {
    background-color: var(--secondary) !important; /* #0e6c74 - Teal */
    color: var(--white) !important;
    border-color: var(--secondary) !important;
}

.btn-secondary:hover,
.btn-secondary:focus,
.btn-secondary:active {
    background-color: var(--secondary-dark) !important;
    color: var(--white) !important;
    border-color: var(--secondary-dark) !important;
}

.btn-outline-primary {
    border-color: var(--primary) !important;
    color: var(--primary) !important;
}

.btn-outline-primary:hover,
.btn-outline-primary:focus,
.btn-outline-primary:active {
    background-color: var(--primary) !important;
    color: var(--white) !important;
}

.btn-outline-secondary {
    border-color: var(--secondary) !important;
    color: var(--secondary) !important;
}

.btn-outline-secondary:hover,
.btn-outline-secondary:focus,
.btn-outline-secondary:active {
    background-color: var(--secondary) !important;
    color: var(--white) !important;
}

.btn-outline-light {
    border-color: var(--white);
    color: var(--white);
}

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

/* Top Utility Bar */
.top-utility-bar {
    background: var(--bg-dark);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    padding: 0.5rem 0;
    position: relative;
    z-index: 1001;
}

.top-utility-bar .container-fluid {
    padding-left: 1rem;
    padding-right: 1rem;
}

.top-utility-link {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 500;
    padding: 0.5rem 0.75rem;
    border-radius: 6px;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    white-space: nowrap;
    min-height: 44px; /* Touch target */
}

@media (max-width: 575.98px) {
    .top-utility-bar .d-flex {
        flex-wrap: wrap;
        gap: 0.5rem !important;
        justify-content: center;
    }
    
    .top-utility-link {
        font-size: 0.8rem;
        padding: 0.4rem 0.6rem;
    }
    
    .top-utility-link i {
        display: none; /* Hide icons on very small screens */
    }
}

.top-utility-link:hover {
    color: rgba(255, 255, 255, 0.9);
    background: rgba(255, 255, 255, 0.08);
}

.top-utility-link.active {
    color: var(--white);
    background: rgba(144, 26, 66, 0.25);
}

.top-utility-link i {
    font-size: 0.8rem;
}

/* Header & Navigation (GDTA-Inspired Style) */
.zihi-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: var(--bg-dark);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.header-container {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 15px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    height: 70px;
    min-height: 70px;
}

@media (max-width: 575.98px) {
    .header-container {
        padding: 0 10px;
        gap: 8px;
    }
    
    .brand-logo {
        height: 40px !important;
        max-height: 40px !important;
    }
}

.header-brand {
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

.brand-link {
    display: flex;
    align-items: center;
    text-decoration: none;
    -webkit-tap-highlight-color: transparent;
}

.brand-logo {
    height: 50px;
    max-height: 50px;
    width: auto;
    object-fit: contain;
    display: block;
}

.header-nav {
    display: none;
    align-items: center;
    gap: 8px;
    flex: 1;
    justify-content: center;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    border-radius: 12px;
    color: rgba(255, 255, 255, 0.7);
    font-weight: 500;
    font-size: 15px;
    transition: all 0.2s ease;
    white-space: nowrap;
    text-decoration: none;
    -webkit-tap-highlight-color: transparent;
    position: relative;
}

.nav-link i {
    font-size: 16px;
}

.nav-link:hover {
    background: rgba(255, 255, 255, 0.08);
    color: rgba(255, 255, 255, 0.9);
}

.nav-link.active {
    background: rgba(144, 26, 66, 0.25);
    color: white;
    border: 1px solid rgba(144, 26, 66, 0.4);
}

.nav-dropdown {
    position: relative;
    padding-bottom: 8px; /* keeps hover area continuous with dropdown */
}

.nav-dropdown:hover .dropdown-menu,
.nav-dropdown.active .dropdown-menu {
    display: flex;
    pointer-events: auto;
}

/* Ensure dropdown stays open when hovering over it */
.nav-dropdown:hover .dropdown-menu:hover {
    display: flex;
}

.dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--bg-dark);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-top: 3px solid var(--secondary);
    border-radius: 12px;
    padding: 8px;
    flex-direction: column;
    gap: 4px;
    min-width: 220px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
    z-index: 100;
    animation: slideUp 0.3s ease-out;
    pointer-events: auto;
}

.dropdown-item {
    padding: 10px 16px;
    border-radius: 8px;
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    font-size: 14px;
    transition: all 0.2s ease;
}

.dropdown-item:hover {
    background: rgba(144, 26, 66, 0.25);
    color: var(--white);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
}

.primary-btn {
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 100%);
    color: white;
    border: none;
    border-radius: 999px;
    padding: 10px 20px;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    text-decoration: none;
    box-shadow: 0 4px 12px rgba(144, 26, 66, 0.3);
    -webkit-tap-highlight-color: transparent;
}

.primary-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(144, 26, 66, 0.4);
    color: white;
}

.primary-btn:active {
    transform: scale(0.98);
}

.mobile-menu-toggle {
    display: flex;
    flex-direction: column;
    gap: 4px;
    width: 44px;
    height: 44px;
    min-width: 44px;
    min-height: 44px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.08);
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    -webkit-tap-highlight-color: transparent;
}

.mobile-menu-toggle:hover {
    background: rgba(255, 255, 255, 0.12);
}

.mobile-menu-toggle.active {
    background: rgba(144, 26, 66, 0.2);
}

.mobile-menu-toggle span {
    width: 20px;
    height: 2px;
    background: white;
    border-radius: 2px;
    transition: all 0.3s ease;
}

.mobile-menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
}

.mobile-nav {
    position: fixed;
    top: 70px;
    left: 0;
    right: 0;
    background: var(--bg-dark);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    padding: 20px;
    flex-direction: column;
    gap: 8px;
    z-index: 999;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
    max-height: calc(100vh - 70px);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    transform: translateY(-100%);
    transition: transform 0.3s ease;
    display: none;
}

@media (max-width: 575.98px) {
    .mobile-nav {
        padding: 15px;
        top: 60px;
        max-height: calc(100vh - 60px);
    }
}

.mobile-nav.active {
    display: flex;
    transform: translateY(0);
}

.mobile-nav .nav-link {
    padding: 14px 20px;
    border-radius: 12px;
    width: 100%;
    font-size: 16px;
}

/* Tablet and Desktop */
@media (min-width: 768px) {
    .header-container {
        padding: 0 20px;
        gap: 16px;
    }
}

@media (min-width: 992px) {
    .header-nav {
        display: flex;
    }
    .nav-dropdown {
        z-index: 200;
    }
    
    .mobile-menu-toggle {
        display: none;
    }
    
    .header-actions .primary-btn {
        display: inline-flex;
    }
    
    .mobile-nav {
        display: none !important;
    }
}

/* Remove old navbar styles */
.navbar {
    display: none;
}

.top-bar {
    display: none;
}


/* Hero Section (Responsive) */
.hero-section {
    padding-top: max(0px, calc(4rem - 80px)); /* Reduced top padding by 80px */
    padding-bottom: 4rem;
    background-attachment: scroll; /* Static for mobile for performance */
    text-align: center;
    position: relative;
    min-height: 70vh;
}

@media (min-width: 768px) {
    .hero-section {
        padding-top: max(0px, calc(6rem - 80px)); /* Reduced top padding by 80px (96px - 80px = 16px) */
        padding-bottom: 6rem;
        min-height: 90vh;
    }
}

@media (max-width: 575.98px) {
    .hero-section {
        padding-top: max(0px, calc(3rem - 80px)); /* Reduced top padding by 80px */
        padding-bottom: 3rem;
        min-height: 60vh;
    }
    
    .hero-title {
        font-size: 2rem !important;
    }
    
    .hero-section .lead {
        font-size: 1rem !important;
    }
}

.hero-carousel {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    transition: opacity 1s ease-in-out;
}

.hero-content-carousel {
    position: relative;
    min-height: 400px;
}

.hero-content-slide {
    transition: opacity 1s ease-in-out;
}

.hero-title {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    line-height: 1.1;
    color: var(--white);
}
.hero-title .accent-text {
    color: var(--accent);
    font-style: italic;
    font-family: "Times New Roman", Times, serif;
}
.hero-title .hero-subline-inline {
    font-weight: 400;
    opacity: 0.85;
    font-size: 0.92em;
}
.hero-title .hero-subline {
    display: block;
    font-weight: 400;
    opacity: 0.9;
    font-size: 0.9em;
    margin-top: 0.35rem;
}

/* Cards (Modern Corporate) */
.card {
    background: var(--white);
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: var(--radius-md);
    transition: var(--transition);
    height: 100%;
    display: flex;
    flex-direction: column;
}

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

.card-body {
    padding: 2rem;
    flex-grow: 1;
}

/* Footer (Institutional style) */
footer {
    background-color: var(--primary) !important; /* Zihi Maroon #901a42 */
    color: rgba(255, 255, 255, 0.9);
}

footer h5 {
    color: var(--white);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 1.5rem;
}

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

footer a:hover {
    color: var(--accent);
    text-decoration: none;
}

footer .social-links a {
    opacity: 0.9;
    transition: var(--transition);
}

footer .social-links a:hover {
    opacity: 1;
    transform: translateY(-2px);
    color: var(--accent);
}

/* --- Responsive Scaling (Min-width breakpoints) --- */

@media (min-width: 768px) {
    section { padding: 6rem 0; }
    
    h1 { font-size: 3rem; }
    h2 { font-size: 2.5rem; }
    
    .hero-section {
        text-align: left;
        padding: 10rem 0;
    }
    
    .hero-title { font-size: 3.5rem; }
}

@media (min-width: 992px) {
    .top-bar { display: block; }
    
    .navbar-brand img { height: 60px; }
    
    .hero-title { font-size: 4rem; }
    
    section { padding: 8rem 0; }
    
    /* Grid system scale up */
    .container { max-width: var(--container-width); }
}

/* Animation Utilities */
.reveal {
    opacity: 0;
    transform: translateY(20px);
    transition: var(--transition);
}

.reveal.appear {
    opacity: 1;
    transform: translateY(0);
}

/* Reveal on scroll */
@media (prefers-reduced-motion: no-preference) {
    .reveal {
        animation: fadeInUp 0.6s ease-out forwards;
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}


/* Glassmorphism for sub-elements */
.glass-card {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Specialized Components */
.stat-box {
    background: var(--bg-main);
    padding: 2rem;
    border-radius: var(--radius-md);
    text-align: center;
    border-top: 4px solid var(--primary);
    box-shadow: var(--shadow-md);
    transition: all 0.3s ease;
}

.stat-box:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
}

.report-card {
    position: relative;
    border-radius: var(--radius-md);
    overflow: hidden;
}

.report-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, var(--primary-dark), transparent);
    display: flex;
    align-items: flex-end;
    padding: 2rem;
    opacity: 0;
    transition: var(--transition);
}

.report-card:hover .report-overlay {
    opacity: 1;
}

/* Organizational Structure Styles */
.pillar-section {
    position: relative;
    overflow: hidden;
}

.pillar-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: var(--accent);
}

/* Mobile Nav Toggle Fix */
.navbar-toggler {
    border: none;
    padding: 0;
}

.navbar-toggler:focus {
    box-shadow: none;
}

/* Newsletter professional spacing */
.newsletter-footer {
    margin-bottom: 4rem;
}

/* --- Added Layout Utilities --- */
.bg-light-primary { background-color: var(--primary-light); }
.bg-light-secondary { background-color: var(--secondary-light); }
.bg-light-accent { background-color: var(--accent-light); }

.text-accent { color: var(--accent) !important; }
.btn-accent {
    background-color: var(--accent);
    color: var(--white);
}
.btn-accent:hover {
    background-color: var(--accent-dark);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.tracking-wider { letter-spacing: 0.05em; }
.tracking-widest { letter-spacing: 0.1em; }

.hover-lift {
    transition: var(--transition);
}
.hover-lift:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.opacity-10 { opacity: 0.1; }
.opacity-90 { opacity: 0.9; }

/* Image hover effects */
.img-zoom-container {
    overflow: hidden;
    border-radius: var(--radius-md);
}
.img-zoom {
    transition: var(--transition);
}

/* Blog Like Button */
.like-btn {
    transition: all 0.3s ease;
}

.like-btn:hover {
    transform: translateY(-2px);
}

.like-btn.active {
    background-color: var(--primary) !important;
    color: white !important;
    border-color: var(--primary) !important;
}

.like-btn.active i {
    color: white;
}

/* Share Buttons */
.share-btn {
    transition: all 0.2s ease;
}

.share-btn:hover {
    transform: translateY(-2px);
    background-color: var(--primary);
    color: white;
    border-color: var(--primary);
}

/* Comment Section */
#commentsSection .card {
    transition: var(--transition);
}

#commentsSection .card:hover {
    box-shadow: var(--shadow-md);
}
.img-zoom:hover {
    transform: scale(1.05);
}

/* Team headshots: keep square crop on cards */
.headshot-frame {
    aspect-ratio: 1 / 1;
    height: auto;
}

.headshot-frame img {
    object-position: center top;
}

/* Stage rail (operational model) */
.stage-rail {
    position: relative;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1rem;
    padding: 1rem;
    background: linear-gradient(135deg, rgba(144,26,66,0.08), rgba(14,108,116,0.08));
    border-radius: 20px;
    box-shadow: var(--shadow-md);
    overflow: hidden;
}
.stage-rail::before {
    content: "";
    position: absolute;
    inset: 10%;
    border-radius: 999px;
    background: radial-gradient(circle at 20% 30%, rgba(144,26,66,0.12), transparent 45%), radial-gradient(circle at 80% 70%, rgba(188,143,36,0.15), transparent 40%);
    filter: blur(18px);
    z-index: 0;
}
.stage-chip {
    position: relative;
    z-index: 1;
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.95rem 1.2rem;
    border-radius: 999px;
    background: linear-gradient(120deg, #0e6c74, #0a5258);
    color: #fff;
    font-weight: 700;
    letter-spacing: 0.01em;
    box-shadow: 0 12px 25px rgba(0,0,0,0.15);
    transition: transform 200ms ease, box-shadow 200ms ease, background 250ms ease;
    cursor: pointer;
}
.stage-chip .stage-icon {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: rgba(255,255,255,0.12);
    display: grid;
    place-items: center;
    font-size: 0.95rem;
}
.stage-chip.active {
    background: linear-gradient(120deg, #bc8f24, #901a42);
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 16px 30px rgba(144,26,66,0.25);
}
.stage-chip:hover:not(.active) {
    transform: translateY(-2px);
    box-shadow: 0 14px 26px rgba(14,108,116,0.22);
}
.stage-chip:active {
    transform: translateY(0);
    box-shadow: 0 8px 14px rgba(0,0,0,0.18);
}
.stage-label {
    white-space: nowrap;
}

@media (max-width: 575px) {
    .stage-rail {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    }
    .stage-chip {
        justify-content: center;
        text-align: center;
    }
}

/* Tick list bullets with proper indent */
.tick-list {
    list-style: none;
    padding-left: 0;
    margin: 0;
}
.tick-list li {
    position: relative;
    padding-left: 1.4rem;
    margin-bottom: 0.65rem;
    line-height: 1.6;
}
.tick-list li:last-child {
    margin-bottom: 0;
}
.tick-list li::before {
    content: \"\\f00c\";
    font-family: \"Font Awesome 6 Free\"; /* uses existing FA include */
    font-weight: 900;
    position: absolute;
    left: 0;
    top: 0.1rem;
    color: currentColor;
    font-size: 0.9rem;
}

/* Process steps rail */
.process-steps {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    padding: 1.5rem 1.75rem 1.25rem 2.5rem;
    border-radius: 22px;
    background: linear-gradient(180deg, rgba(144,26,66,0.06), rgba(14,108,116,0.06));
    box-shadow: var(--shadow-md);
    overflow: hidden;
}
.process-steps::before {
    content: "";
    position: absolute;
    top: 1.75rem;
    bottom: 1.75rem;
    left: 1.95rem;
    width: 4px;
    background: linear-gradient(180deg, #901a42, #0e6c74, #bc8f24, #901a42);
    opacity: 0.35;
    z-index: 0;
}
.process-step {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: flex-start;
    gap: 0.85rem;
    cursor: pointer;
    color: #0e6c74;
    transition: transform 180ms ease, color 180ms ease;
}
.process-step .dot {
    width: 42px;
    height: 42px;
    margin: 0;
    border-radius: 50%;
    border: 3px solid currentColor;
    display: grid;
    place-items: center;
    font-weight: 800;
    background: #fff;
    box-shadow: 0 6px 14px rgba(0,0,0,0.08);
}
.process-step .label {
    font-weight: 700;
    font-size: 1rem;
}
.process-step small {
    display: block;
    color: #4f4f4f;
    margin-top: 0.1rem;
    line-height: 1.4;
}
.process-step.active {
    transform: translateY(-2px);
    color: #901a42;
}
.process-step.active .dot {
    background: currentColor;
    color: #fff;
    border-color: currentColor;
    box-shadow: 0 10px 22px rgba(144,26,66,0.28);
}
.process-step.stage-design { color: #901a42; }
.process-step.stage-testing { color: #0e6c74; }
.process-step.stage-scaleup { color: #bc8f24; }
.process-step.stage-translation { color: #901a42; }
.process-step:hover:not(.active) {
    transform: translateY(-2px);
}

@media (max-width: 575px) {
    .process-steps {
        padding-left: 2.25rem;
    }
    .process-steps::before {
        left: 1.65rem;
    }
}

/* Divider */
.divider {
    height: 4px;
    width: 60px;
    background-color: var(--accent);
    margin: 1.5rem 0;
}
.divider-center {
    margin-left: auto;
    margin-right: auto;
}

/* Priority Areas refresh */
.priority-section {
    background: radial-gradient(circle at 15% 20%, rgba(144,26,66,0.06), transparent 45%), radial-gradient(circle at 80% 0%, rgba(14,108,116,0.08), transparent 40%), #fff;
}
.section-kicker {
    display: inline-block;
    letter-spacing: 0.15em;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 0.75rem;
}
.heading-underline {
    width: 140px;
    height: 4px;
    background: linear-gradient(90deg, transparent 0%, var(--primary) 25%, var(--primary) 75%, transparent 100%);
    border-radius: 999px;
}

/* Pillar cards (Institutional design) */
.pillar-card {
    background: #fff;
    border-radius: 20px;
    padding: 1.8rem 1.8rem 1.4rem;
    box-shadow: 0 16px 38px rgba(0,0,0,0.1);
    border: 1px solid rgba(0,0,0,0.04);
    text-align: center;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    max-width: 380px;
    margin-inline: auto;
}
.pillar-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 22px 50px rgba(0,0,0,0.14);
}
.pillar-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    color: #fff;
    font-size: 1.8rem;
    margin: 0 auto 1rem auto;
    box-shadow: 0 14px 30px rgba(0,0,0,0.16), inset 0 0 0 4px rgba(255,255,255,0.12);
}
.pillar-list li {
    padding: 0.55rem 0;
    border-bottom: 1px solid rgba(0,0,0,0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    color: var(--gray-800);
    font-weight: 600;
}
.pillar-list li:last-child { border-bottom: none; }

.feature-chip {
    display: flex;
    gap: 0.75rem;
    align-items: flex-start;
    padding: 0.85rem;
    background: #fff;
    border: 1px solid rgba(0,0,0,0.04);
    border-radius: 14px;
    box-shadow: 0 12px 30px rgba(0,0,0,0.08);
}
.chip-icon {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    display: grid;
    place-items: center;
    font-size: 1.1rem;
    flex-shrink: 0;
}

.pill-card {
    background: #ffffff;
    /* Squared profile with a single signature corner */
    border-radius: 14px;
    border-bottom-left-radius: 46px;
    aspect-ratio: 1 / 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 0.75rem;
    padding: 2rem 1.5rem;
    box-shadow: 0 18px 45px rgba(0,0,0,0.12), 0 6px 18px rgba(0,0,0,0.08);
    border: 1px solid rgba(0,0,0,0.04);
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}
.pill-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 24px 70px rgba(0,0,0,0.16), 0 8px 24px rgba(0,0,0,0.1);
    border-color: rgba(0,0,0,0.08);
}
.pill-icon {
    width: 90px;
    height: 90px;
    border-radius: 24px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.9rem;
    box-shadow: inset 0 0 0 1px rgba(0,0,0,0.06), 0 8px 20px rgba(0,0,0,0.06);
}
.pill-primary { background: rgba(144,26,66,0.1); color: var(--primary); }
.pill-secondary { background: rgba(14,108,116,0.1); color: var(--secondary); }
.pill-accent { background: rgba(188,143,36,0.1); color: var(--accent); }
.pill-link {
    --pill-link-color: var(--primary);
    --pill-link-shadow: rgba(144,26,66,0.12);
    font-weight: 700;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    color: var(--pill-link-color);
    margin-top: 0.75rem;
    padding: 0.65rem 1.2rem;
    border: 2px solid var(--pill-link-color);
    border-radius: 999px;
    background: transparent;
    box-shadow: 0 6px 16px var(--pill-link-shadow);
    transition: var(--transition);
}
.pill-link:hover {
    color: var(--white);
    background: var(--pill-link-color);
    box-shadow: 0 10px 24px var(--pill-link-shadow);
    transform: translateY(-2px);
}
.pill-link.primary { --pill-link-color: var(--primary); --pill-link-shadow: rgba(144,26,66,0.18); }
.pill-link.secondary { --pill-link-color: var(--secondary); --pill-link-shadow: rgba(14,108,116,0.16); }
.pill-link.accent { --pill-link-color: var(--accent); --pill-link-shadow: rgba(188,143,36,0.16); }

.shape-card {
    border-radius: 0 0 0 40px;
    padding: 2.5rem 1.75rem;
    box-shadow: none;
}
.shape-icon {
    width: 88px;
    height: 88px;
    border-radius: 22px;
    margin: 0 auto 1rem auto;
    display: grid;
    place-items: center;
    font-size: 2rem;
    background: rgba(255,255,255,0.55);
    color: var(--secondary);
    box-shadow: inset 0 0 0 1px rgba(0,0,0,0.05), 0 10px 18px rgba(0,0,0,0.08);
}
.card-ipc { background: #d9b8c4; }
.card-amr { background: #b9d0d3; }
.card-ghs { background: #e4d2ad; }
.shape-btn {
    border: none;
    font-weight: 700;
    padding: 0.65rem 1.5rem;
    border-radius: 10px;
    color: #fff;
    text-decoration: none;
}
.shape-btn.ipc { background: #901a42; }
.shape-btn.amr { background: #0e6c74; }
.shape-btn.ghs { background: #bc8f24; }
/* Section Header */
.section-header {
    margin-bottom: 4rem;
}

/* Icon Box */
.icon-box {
    width: 64px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    margin-bottom: 1.5rem;
}

/* Gradient Backgrounds */
.bg-gradient-primary {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
}
.bg-gradient-secondary {
    background: linear-gradient(135deg, var(--secondary) 0%, var(--secondary-dark) 100%);
}

.bg-accent {
    background-color: var(--accent) !important;
}
.brain-wordcloud {
    max-width: 420px;
    width: 100%;
    object-fit: contain;
    display: block;
    margin: 0 auto;
}
.brain-frame {
    background: radial-gradient(circle at 30% 30%, rgba(144, 26, 66, 0.08), transparent 55%), 
                radial-gradient(circle at 70% 70%, rgba(14, 108, 116, 0.08), transparent 55%),
                #fff;
    padding: 1.25rem;
    border-radius: 24px;
    box-shadow: 0 20px 45px rgba(0,0,0,0.08);
    border: 1px solid rgba(0,0,0,0.04);
}
.icon-box-lg {
    width: 80px;
    height: 80px;
    border: 2px solid var(--secondary);
    border-radius: 20px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    color: var(--secondary);
    background: linear-gradient(180deg, rgba(14,108,116,0.07), rgba(14,108,116,0));
    box-shadow: 0 12px 28px rgba(0,0,0,0.07);
}
.stats-hero {
    background: linear-gradient(120deg, rgba(14,108,116,0.82), rgba(144,26,66,0.78)), url('assets/images/download.png') center/cover fixed;
    background-blend-mode: multiply;
    padding: 2.5rem 0;
}
.stats-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(0deg, rgba(0,0,0,0.08), rgba(255,255,255,0.05));
    z-index: 1;
}
.stats-hero .container {
    position: relative;
    z-index: 2;
}
.stat-card {
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 20px;
    padding: 1rem 0.85rem;
    box-shadow: 0 18px 35px rgba(0,0,0,0.18);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}
.stat-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 26px 48px rgba(0,0,0,0.22);
    border-color: rgba(255,255,255,0.3);
}
.stat-cite {
    display: block;
    color: rgba(255,255,255,0.65);
    font-size: 0.78rem;
    font-style: italic;
    margin-top: 0.3rem;
}
.stats-title {
    font-size: clamp(2.4rem, 3vw, 3.2rem);
    line-height: 1.2;
    text-shadow: 0 4px 12px rgba(0,0,0,0.35);
}
.stats-subtitle {
    font-size: clamp(1.3rem, 2.2vw, 1.6rem);
    line-height: 1.35;
    text-shadow: 0 3px 8px rgba(0,0,0,0.28);
}
.text-white-90 { color: rgba(255,255,255,0.9); }
.icon-badge {
    width: 70px;
    height: 70px;
    border-radius: 18px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    background: rgba(255,255,255,0.12);
    border: 1px solid rgba(255,255,255,0.25);
    box-shadow: 0 10px 22px rgba(0,0,0,0.15);
}
.icon-primary { color: var(--primary); }
.icon-secondary { color: var(--secondary); }
.accent-text-strong { color: var(--accent); font-weight: 700; }
.accent-italic {
    color: var(--accent);
    font-family: "Times New Roman", Times, serif;
    font-style: italic;
    font-weight: 700;
}


/* Community Section refresh */
.community-section {
    position: relative;
    background: radial-gradient(circle at 10% 10%, rgba(255,255,255,0.08), transparent 30%),
                radial-gradient(circle at 85% 20%, rgba(14,108,116,0.10), transparent 28%),
                linear-gradient(135deg, var(--primary), var(--primary-dark));
}
.community-section::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(120deg, rgba(255,255,255,0.05), transparent 40%);
    pointer-events: none;
}
.community-section .section-kicker {
    color: var(--accent);
    letter-spacing: 0.18em;
}
.community-section h2 {
    text-shadow: 0 10px 28px rgba(0,0,0,0.25);
}
.community-quote-card {
    position: relative;
    border-radius: 22px;
    border: 1px solid rgba(0,0,0,0.04);
    box-shadow: 0 30px 60px rgba(0,0,0,0.16);
    overflow: hidden;
}
.community-quote-card::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 8px;
    background: linear-gradient(180deg, var(--accent), var(--secondary));
}
.community-quote-card .quote-mark {
    display: inline-flex;
    width: 52px;
    height: 52px;
    border-radius: 14px;
    align-items: center;
    justify-content: center;
    background: rgba(188,143,36,0.12);
    color: var(--accent);
    box-shadow: inset 0 0 0 1px rgba(188,143,36,0.12);
}
.community-quote-card blockquote {
    font-size: 1.05rem;
    line-height: 1.9;
    color: var(--gray-800);
}
.community-quote-card .quote-source {
    display: inline-block;
    padding: 0.55rem 0.9rem;
    background: var(--primary);
    color: var(--secondary);
    font-weight: 700;
    border-radius: 10px;
    letter-spacing: 0.01em;
}

/* Blog detail layout */
.blog-hero {
    position: relative;
    padding: clamp(1.5rem, 3vw, 3rem) 0;
    background: radial-gradient(circle at 20% 20%, rgba(144, 26, 66, 0.25), transparent 35%),
                radial-gradient(circle at 80% 10%, rgba(12, 87, 91, 0.18), transparent 35%),
                linear-gradient(135deg, var(--primary), var(--secondary));
    color: var(--white);
    overflow: hidden;
}
.blog-hero.has-image::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image: var(--hero-bg);
    background-size: cover;
    background-position: center;
    opacity: 0.25;
    mix-blend-mode: screen;
}
.blog-hero__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0,0,0,0.55), rgba(0,0,0,0.2));
}
.blog-hero .container { position: relative; z-index: 1; }
.blog-breadcrumb .breadcrumb { margin-bottom: 0; background: transparent; padding: 0; }
.blog-breadcrumb .breadcrumb-item a { color: rgba(255,255,255,0.8); }
.blog-breadcrumb .breadcrumb-item.active { color: #fff; }
.blog-title {
    font-size: clamp(2.25rem, 4vw, 3.25rem);
    line-height: 1.15;
    letter-spacing: -0.02em;
}
.meta-bar {
    font-size: 0.95rem;
    color: var(--gray-700);
}
.meta-pill {
    background: linear-gradient(90deg, rgba(255,255,255,0.9), rgba(255,255,255,0.72));
    border: 1px solid rgba(255,255,255,0.55);
    border-radius: 999px;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 6px 18px rgba(0,0,0,0.08);
}
.meta-item i {
    color: var(--primary);
}
.meta-sep {
    color: rgba(0,0,0,0.25);
    font-weight: 600;
}
.backdrop-blur {
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}
.share-stack .btn {
    width: 46px;
    height: 46px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    aspect-ratio: 1 / 1;
    padding: 0;
    line-height: 1;
}
.share-stack .share-sm {
    width: 40px;
    height: 40px;
    font-size: 0.9rem;
    padding: 0;
    line-height: 1;
}

/* Approach band */
.approach-band {
    background: linear-gradient(135deg, rgba(14,108,116,0.95), rgba(14,108,116,0.85));
    color: #fff;
    border-radius: 0;
}
.approach-band .kicker {
    letter-spacing: 0.18em;
    text-transform: uppercase;
    opacity: 0.85;
}
.approach-card {
    background: #ffffff;
    border-radius: 20px;
    padding: 1.5rem;
    box-shadow: 0 18px 40px rgba(0,0,0,0.08);
    border: 1px solid rgba(0,0,0,0.04);
    height: 100%;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.approach-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 22px 50px rgba(0,0,0,0.12);
}
.approach-icon {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    color: #fff;
    font-size: 1.6rem;
    box-shadow: 0 12px 28px rgba(0,0,0,0.12);
    margin-bottom: 1rem;
}
.text-white-90 { color: rgba(255,255,255,0.9); }
.article-card .content-text {
    line-height: 1.9;
    font-size: 1.05rem;
    color: var(--gray-800);
}
.article-card .content-text figure {
    margin: 1.5rem auto;
    text-align: center;
}
.article-card .content-text figure img {
    max-width: 100%;
    height: auto;
    border-radius: var(--radius-md);
}
.article-card .content-text figure figcaption {
    color: var(--gray-600);
    font-size: 0.9rem;
    margin-top: 0.35rem;
}
.article-card .content-text p { margin-bottom: 1.3rem; }
.tracking-wide { letter-spacing: 0.08em; }

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Newsletter strip */
.newsletter-section {
    background: radial-gradient(circle at 12% 20%, rgba(188,143,36,0.08), transparent 35%), 
                radial-gradient(circle at 82% 10%, rgba(255,255,255,0.08), transparent 38%),
                linear-gradient(135deg, #0e6c74, #0b555b);
}
.newsletter-card {
    background: #ffffff;
    border: 1px solid var(--secondary);
    border-radius: 22px;
    padding: 1.15rem 5.4rem 1.15rem 1.9rem;
    box-shadow: 0 12px 30px rgba(0,0,0,0.08);
}
.newsletter-input {
    border: 1px solid var(--secondary);
    border-radius: 999px;
    padding: 0.85rem 1rem;
    background: #ffffff;
    color: var(--primary);
    box-shadow: 0 4px 10px rgba(0,0,0,0.08);
    min-height: 40px;
    width: 100%;
}
.newsletter-input::placeholder {
    color: var(--primary);
    opacity: 0.75;
}
.newsletter-input:focus {
    outline: 2px solid var(--secondary);
    box-shadow: 0 10px 24px rgba(0,0,0,0.12);
}
.newsletter-btn {
    border: none;
    border-radius: 999px;
    padding: 0.65rem 1.2rem;
    font-weight: 700;
    box-shadow: 0 10px 26px rgba(144,26,66,0.22);
    transition: var(--transition);
    min-height: 30px;
    width: 100%;
}
.newsletter-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 14px 32px rgba(144,26,66,0.26);
}
.newsletter-btn-wrap {
    display: grid;
    justify-items: end;
}
@media (min-width: 992px) {
    .newsletter-btn {
        width: auto;
        min-width: 140px;
    }
}
.newsletter-note {
    color: rgba(255,255,255,0.9);
    font-size: 0.9rem;
}
.floating-group {
    position: relative;
    width: 100%;
}
.floating-group .floating-label {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    padding: 0 4px;
    font-size: 0.95rem;
    color: var(--primary);
    pointer-events: none;
    transition: transform 0.2s ease, font-size 0.2s ease, color 0.2s ease, opacity 0.2s ease;
    background: #ffffff;
}
.floating-group input:focus + .floating-label,
.floating-group input:not(:placeholder-shown) + .floating-label {
    transform: translate(6px, -150%);
    font-size: 0.82rem;
    color: var(--secondary);
}

/* Insight callout */
.insight-card {
    background: #ffffff;
    border-radius: 16px;
    padding: 1rem 1.1rem;
    box-shadow: 0 14px 32px rgba(0,0,0,0.08);
    border: 1px solid rgba(0,0,0,0.04);
}
.insight-card p {
    color: var(--gray-700);
    font-size: 1rem;
    line-height: 1.55;
}
.insight-icon-pill {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    display: grid;
    place-items: center;
    color: #fff;
    font-size: 0.9rem;
    flex-shrink: 0;
    box-shadow: 0 10px 18px rgba(0,0,0,0.12);
}
