/*
Theme Name: FIFE - Friedensau Institute for Evaluation
Theme URI: https://fife-institute.org
Author: FIFE Institute
Author URI: https://fife-institute.org
Description: A modern one-page theme for the Friedensau Institute for Evaluation. Features a clean, professional design with sections for services, team, projects, and contact information.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.4
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: fife-theme
Tags: one-column, custom-colors, custom-menu, custom-logo, featured-images, footer-widgets, theme-options, translation-ready
*/

/* ==========================================================================
   CSS Variables / Design Tokens (FIFE Branding - Enhanced)
   ========================================================================== */
:root {
    /* Primary - Magenta */
    --color-primary: 310 58% 35%;
    --color-primary-foreground: 0 0% 100%;
    
    /* Secondary */
    --color-secondary: 310 58% 45%;
    --color-secondary-foreground: 0 0% 100%;
    
    /* Background */
    --color-background: 240 10% 98%;
    --color-foreground: 240 10% 10%;
    
    /* Card */
    --color-card: 0 0% 100%;
    --color-card-foreground: 240 10% 10%;
    
    /* Muted */
    --color-muted: 240 5% 96%;
    --color-muted-foreground: 240 4% 46%;
    
    /* Accent */
    --color-accent: 310 58% 35%;
    --color-accent-foreground: 0 0% 100%;
    
    /* Border */
    --color-border: 240 6% 90%;
    --color-ring: 310 58% 35%;
    
    /* Typography */
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-heading: 'Poppins', var(--font-sans);
    
    /* Enhanced Shadows */
    --shadow-sm: 0 2px 8px rgba(141, 37, 125, 0.08);
    --shadow-md: 0 4px 20px rgba(141, 37, 125, 0.12);
    --shadow-lg: 0 10px 40px rgba(141, 37, 125, 0.15);
    --shadow-xl: 0 20px 60px rgba(141, 37, 125, 0.2);
    --shadow-glow: 0 0 30px rgba(141, 37, 125, 0.5);
    --shadow-glass: 0 8px 32px 0 rgba(141, 37, 125, 0.15);
    
    /* Gradients */
    --gradient-primary: linear-gradient(135deg, hsl(310 58% 35%) 0%, hsl(310 58% 45%) 100%);
    --gradient-secondary: linear-gradient(135deg, hsl(310 58% 45%) 0%, hsl(310 58% 55%) 100%);
    --gradient-subtle: linear-gradient(180deg, hsl(240 10% 98%) 0%, hsl(240 20% 96%) 100%);
    --gradient-overlay: linear-gradient(135deg, hsla(310, 58%, 35%, 0.9) 0%, hsla(310, 58%, 45%, 0.9) 100%);
    --gradient-mesh: radial-gradient(at 40% 20%, hsl(310 58% 35% / 0.3) 0px, transparent 50%),
                     radial-gradient(at 80% 0%, hsl(310 58% 45% / 0.3) 0px, transparent 50%),
                     radial-gradient(at 0% 50%, hsl(310 58% 55% / 0.2) 0px, transparent 50%);
    
    /* Glassmorphism */
    --glass-bg: hsla(240, 10%, 98%, 0.7);
    --glass-border: hsla(240, 6%, 90%, 0.3);
    
    /* Border Radius */
    --radius: 1rem;
    --radius-sm: 0.5rem;
    --radius-lg: 1.5rem;
    --radius-xl: 2rem;
    
    /* Transitions */
    --transition: 150ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-smooth: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-spring: all 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}

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

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

/* ============================================================================
   CRITICAL: Mobile Overflow Prevention
   These rules MUST remain to prevent horizontal scrolling on mobile devices.
   ============================================================================ */
html {
    max-width: 100%;
    overflow-x: hidden !important;
    /* Prevent 100vw from including scrollbar width */
    overflow-y: scroll;
}

body {
    max-width: 100%;
    overflow-x: hidden !important;
    /* IMPORTANT (iOS Safari): Avoid transforms on <body> because it can break
       position: fixed overlays (mobile menu) and z-index stacking. */
    -webkit-transform: none;
    transform: none;
    /* Ensure body doesn't exceed viewport */
    width: 100%;
    position: relative;
}

body {
    font-family: var(--font-sans);
    background-color: hsl(var(--color-background));
    color: hsl(var(--color-foreground));
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

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

a:hover {
    color: hsl(310 58% 25%);
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 600;
    line-height: 1.2;
    color: hsl(var(--color-foreground));
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.25rem; }

@media (min-width: 768px) {
    h1 { font-size: 3.5rem; }
    h2 { font-size: 2.5rem; }
    h3 { font-size: 1.75rem; }
}

/* ==========================================================================
   Layout
   ========================================================================== */
.container {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1rem;
    /* Prevent child elements from causing horizontal overflow */
    overflow-x: hidden;
    /* Ensure container respects parent boundaries */
    box-sizing: border-box;
}

@media (min-width: 640px) {
    .container { padding: 0 1.5rem; }
}

@media (min-width: 1024px) {
    .container { padding: 0 2rem; }
}

.section {
    padding: 4rem 0;
}

@media (min-width: 768px) {
    .section { padding: 6rem 0; }
}

/* ==========================================================================
   Header & Navigation - Matches Lovable Navigation Component
   ========================================================================== */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: hsl(310, 58%, 35%); /* Solid magenta - matches React */
    background: hsl(var(--color-primary)) !important;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: var(--shadow-lg);
    transition: all var(--transition);
}

.site-header.scrolled {
    box-shadow: var(--shadow-xl);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 80px;
}

/* Logo */
.site-logo {
    display: flex;
    align-items: center;
    transition: transform 0.3s ease;
    flex-shrink: 0;
}

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

.site-logo img {
    height: 48px;
    width: auto;
}

/* Mobile header adjustments */
@media (max-width: 767px) {
    .header-inner {
        height: 56px;
        padding: 0 0.5rem;
    }
    
    .site-logo img {
        height: 28px;
        max-height: 28px;
    }
}

/* Extra small screens */
@media (max-width: 374px) {
    .header-inner {
        height: 52px;
        padding: 0 0.375rem;
    }
    
    .site-logo img {
        height: 24px;
        max-height: 24px;
    }
}

/* Ensure header logo never gets overridden by later generic logo rules */
.site-header .site-logo img {
    height: 48px;
}

@media (max-width: 767px) {
    .site-header .site-logo img {
        height: 28px;
        max-height: 28px;
    }
}

@media (max-width: 374px) {
    .site-header .site-logo img {
        height: 24px;
        max-height: 24px;
    }
}

/* Desktop Navigation */
.main-navigation {
    display: none;
    align-items: center;
    gap: 0.25rem;
}

@media (min-width: 1024px) {
    .main-navigation {
        display: flex;
    }
}

@media (min-width: 1280px) {
    .main-navigation {
        gap: 0.5rem;
    }
}

/* Navigation Links */
.nav-link {
    display: block;
    padding: 0.5rem 0.75rem;
    font-weight: 500;
    color: white;
    border-radius: 0.5rem 0 0 0.5rem;
    transition: all 0.3s ease;
}

@media (min-width: 1280px) {
    .nav-link {
        padding: 0.5rem 1rem;
    }
}

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

/* Dropdown Trigger */
.nav-dropdown {
    position: relative;
}

.nav-dropdown-trigger {
    display: flex;
    align-items: center;
}

.nav-dropdown-arrow {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.5rem 0.25rem;
    background: none;
    border: none;
    color: white;
    cursor: pointer;
    border-radius: 0 0.5rem 0.5rem 0;
    transition: all 0.3s ease;
}

.nav-dropdown-arrow:hover {
    background: rgba(255, 255, 255, 0.1);
}

.nav-dropdown-arrow svg {
    transition: transform 0.3s ease;
}

.nav-dropdown:hover .nav-dropdown-arrow svg {
    transform: rotate(180deg);
}

/* Dropdown Content */
.nav-dropdown-content {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 200px;
    background: hsl(var(--color-card));
    border: 1px solid hsl(var(--color-border));
    border-radius: 0.5rem;
    box-shadow: var(--shadow-xl);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.2s ease;
    z-index: 1001;
    overflow: hidden;
}

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

.nav-dropdown-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.75rem 1.25rem;
    color: hsl(var(--color-foreground));
    font-size: 0.9375rem;
    transition: all 0.2s ease;
    border-bottom: 1px solid hsl(var(--color-border));
}

.nav-dropdown-item:last-child {
    border-bottom: none;
}

.nav-dropdown-item:hover {
    background: hsl(var(--color-primary));
    color: white;
}

.nav-dropdown-subitem {
    padding-left: 1.5rem;
    color: hsl(var(--color-muted-foreground));
}

.nav-dropdown-subitem:hover {
    background: hsl(var(--color-primary));
    color: white;
}

/* Language Selector */
.language-select {
    margin-left: 0.5rem;
    padding: 0.5rem 0.75rem;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 0.5rem;
    color: white;
    font-size: 0.875rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

@media (min-width: 1280px) {
    .language-select {
        margin-left: 1rem;
    }
}

.language-select:hover {
    background: rgba(255, 255, 255, 0.2);
}

.language-select option {
    background: hsl(var(--color-card));
    color: hsl(var(--color-foreground));
}

/* Get Started Button */
.nav-btn {
    margin-left: 0.5rem;
    padding: 0.5rem 1rem;
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 0.5rem;
    color: white;
    font-weight: 500;
    font-size: 0.875rem;
    transition: all 0.3s ease;
}

@media (min-width: 1280px) {
    .nav-btn {
        margin-left: 1rem;
    }
}

.nav-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    color: white;
}

/* Mobile Menu Toggle - Ultra-reliable for all mobile devices */
.mobile-menu-toggle {
    display: flex !important;
    visibility: visible !important;
    opacity: 1 !important;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 4px;
    width: 40px;
    height: 40px;
    min-width: 40px;
    min-height: 40px;
    padding: 8px;
    background: rgba(255, 255, 255, 0.2) !important;
    border: 1.5px solid rgba(255, 255, 255, 0.4) !important;
    border-radius: 0.5rem;
    cursor: pointer !important;
    transition: all 0.2s ease;
    -webkit-tap-highlight-color: rgba(255, 255, 255, 0.3);
    -webkit-touch-callout: none;
    touch-action: manipulation !important; /* CRITICAL: Allow touch events */
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    z-index: 100001 !important; /* CRITICAL: Above everything */
    position: relative;
    pointer-events: auto !important;
    /* Force hardware acceleration for smooth touch response */
    transform: translateZ(0);
    -webkit-transform: translateZ(0);
    will-change: transform, background;
}

/* Slightly larger on medium mobile screens */
@media (min-width: 375px) and (max-width: 1023px) {
    .mobile-menu-toggle {
        width: 44px;
        height: 44px;
        min-width: 44px;
        min-height: 44px;
        padding: 10px;
        gap: 5px;
    }
}

/* Hide on desktop - 1024px and above */
@media (min-width: 1024px) {
    .mobile-menu-toggle {
        display: none !important;
        visibility: hidden !important;
        pointer-events: none !important;
        width: 0 !important;
        height: 0 !important;
        overflow: hidden !important;
    }
}

/* Enhanced touch feedback for mobile */
.mobile-menu-toggle:hover,
.mobile-menu-toggle:active,
.mobile-menu-toggle:focus,
.mobile-menu-toggle:focus-visible {
    background: rgba(255, 255, 255, 0.35) !important;
    outline: none !important;
    border-color: rgba(255, 255, 255, 0.6) !important;
    transform: translateZ(0) scale(1.03);
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.2);
}

.mobile-menu-toggle:active {
    transform: translateZ(0) scale(0.97);
    background: rgba(255, 255, 255, 0.45) !important;
}

/* Hamburger lines */
.hamburger-line {
    display: block;
    width: 24px;
    height: 3px;
    background: white;
    border-radius: 3px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: none;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

/* Active state - X animation */
.mobile-menu-toggle.active .hamburger-line:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
}

.mobile-menu-toggle.active .hamburger-line:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
}

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

/* Mobile Navigation Panel - Compact dropdown style (not full screen) */
.mobile-navigation {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    position: fixed !important;
    top: 64px !important; /* Match mobile header height */
    left: 0.5rem !important;
    right: 0.5rem !important;
    bottom: auto !important; /* NOT full height */
    max-height: calc(100vh - 80px) !important;
    background: hsl(310, 58%, 35%) !important;
    z-index: 100000 !important;
    overflow-y: auto !important;
    overflow-x: hidden !important;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
    width: auto !important;
    max-width: calc(100vw - 1rem) !important;
    border-radius: 0.75rem !important;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3) !important;
    transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.3s ease !important;
    -webkit-appearance: none;
    appearance: none;
    pointer-events: none !important;
}

/* Active state - show navigation with full visibility */
.mobile-navigation.active {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    pointer-events: auto !important;
    animation: mobileMenuSlideIn 0.3s ease forwards;
}

@keyframes mobileMenuSlideIn {
    from { 
        opacity: 0; 
        transform: translateY(-10px) scale(0.98);
    }
    to { 
        opacity: 1; 
        transform: translateY(0) scale(1);
    }
}

/* Prevent body scroll when menu is open */
body.mobile-menu-open {
    overflow: hidden !important;
}

/* Ensure header has proper z-index (panel sits below header) */
.site-header {
    z-index: 10000 !important;
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
}

.header-inner {
    position: relative !important;
    z-index: 10001 !important;
}

.mobile-nav-content {
    padding: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    width: 100%;
    max-width: 100%;
}

/* iOS Safari overflow fix: allow flex children to shrink instead of widening the viewport */
.mobile-nav-header,
.homepage-project-card,
.homepage-project-info,
.homepage-project-meta {
    min-width: 0;
}

/* Mobile nav group accordion (tap-to-expand) */
.mobile-nav-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
}

.mobile-nav-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 0.75rem;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.22);
    color: white;
    cursor: pointer;
    touch-action: manipulation;
    -webkit-tap-highlight-color: rgba(255, 255, 255, 0.25);
    transition: transform 0.2s ease, background 0.2s ease;
}

.mobile-nav-toggle:active {
    transform: scale(0.97);
    background: rgba(255, 255, 255, 0.18);
}

.mobile-nav-toggle svg {
    transition: transform 0.2s ease;
}

.mobile-nav-sublist {
    padding-top: 0.25rem;
}

.mobile-nav-group.is-open .mobile-nav-toggle svg {
    transform: rotate(180deg);
}

.mobile-nav-group {
    padding: 0.5rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
}

.mobile-nav-group:last-of-type {
    border-bottom: none;
}

.mobile-nav-title {
    display: block;
    padding: 0.5rem 0.75rem;
    font-weight: 600;
    color: white;
    font-size: 1rem;
    flex: 1;
}

.mobile-nav-title:hover {
    color: white;
    text-decoration: underline;
}

.mobile-nav-link {
    display: block;
    padding: 0.5rem 0.75rem;
    margin-left: 0.75rem;
    color: rgba(255, 255, 255, 0.95);
    font-size: 0.9375rem;
    border-radius: 0.375rem;
    transition: background 0.2s ease;
}

.mobile-nav-link:hover {
    background: rgba(255, 255, 255, 0.15);
    color: white;
}

.mobile-nav-sublink {
    margin-left: 1.5rem;
    color: rgba(255, 255, 255, 0.85);
}

.mobile-language-select {
    width: 100%;
    margin-top: 0.75rem;
    padding: 0.625rem 0.75rem;
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 0.375rem;
    color: white;
    font-size: 0.9375rem;
}

.mobile-language-select option {
    background: hsl(var(--color-primary));
    color: white;
}

.mobile-nav-btn {
    display: block;
    width: 100%;
    margin-top: 0.75rem;
    padding: 0.625rem;
    background: white;
    color: hsl(var(--color-primary));
    text-align: center;
    font-weight: 600;
    font-size: 0.9375rem;
    border-radius: 0.375rem;
    transition: all 0.3s ease;
}

.mobile-nav-btn:hover {
    background: rgba(255, 255, 255, 0.9);
    color: hsl(var(--color-primary));
}

/* ==========================================================================
   Left Side Menu - Matches Lovable LeftSideMenu.tsx
   ========================================================================== */
.left-side-menu {
    position: fixed;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    z-index: 40;
    display: none;
    flex-direction: column;
    gap: 0.375rem;
    padding: 0.375rem;
}

@media (min-width: 768px) {
    .left-side-menu {
        display: flex;
    }
}

.side-menu-item {
    position: relative;
}

.side-menu-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background: hsl(var(--color-primary));
    border-radius: 50%;
    box-shadow: var(--shadow-lg);
    transition: all 0.3s ease;
}

.side-menu-icon:hover {
    background: hsla(var(--color-primary), 0.9);
    transform: scale(1.1);
}

.side-menu-icon svg {
    color: white;
}

.side-menu-tooltip {
    position: absolute;
    left: 48px;
    top: 50%;
    transform: translateY(-50%) translateX(-8px);
    background: hsl(var(--color-primary));
    color: white;
    padding: 0.375rem 0.75rem;
    border-radius: 0.375rem;
    font-size: 0.875rem;
    font-weight: 500;
    white-space: nowrap;
    box-shadow: var(--shadow-lg);
    opacity: 0;
    pointer-events: none;
    transition: all 0.2s ease;
}

.side-menu-tooltip::before {
    content: '';
    position: absolute;
    left: -4px;
    top: 50%;
    transform: translateY(-50%) rotate(45deg);
    width: 8px;
    height: 8px;
    background: hsl(var(--color-primary));
}

.side-menu-item:hover .side-menu-tooltip {
    opacity: 1;
    transform: translateY(-50%) translateX(0);
}

/* ==========================================================================
   Events Sidebar - Matches Lovable EventsSidebar.tsx
   ========================================================================== */

/* Mobile Events Button */
.events-mobile-toggle {
    position: fixed;
    bottom: 1rem;
    right: 1rem;
    z-index: 50;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    background: hsl(var(--color-primary));
    color: white;
    border: none;
    border-radius: 9999px;
    box-shadow: var(--shadow-lg);
    cursor: pointer;
    transition: all 0.3s ease;
}

@media (min-width: 768px) {
    .events-mobile-toggle {
        display: none;
    }
}

.events-mobile-toggle:hover {
    background: hsla(var(--color-primary), 0.9);
}

.events-mobile-toggle span {
    font-size: 0.875rem;
    font-weight: 600;
}

/* Mobile Events Panel */
.events-mobile-panel {
    position: fixed;
    inset: 0;
    z-index: 50;
    visibility: hidden;
    transition: visibility 0.3s ease;
}

.events-mobile-panel.active {
    visibility: visible;
}

@media (min-width: 768px) {
    .events-mobile-panel {
        display: none;
    }
}

.events-mobile-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.events-mobile-panel.active .events-mobile-backdrop {
    opacity: 1;
}

.events-mobile-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: hsl(var(--color-background));
    border-radius: 1.5rem 1.5rem 0 0;
    box-shadow: var(--shadow-xl);
    padding: 1.5rem;
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

.events-mobile-panel.active .events-mobile-content {
    transform: translateY(0);
}

.events-mobile-handle {
    width: 3rem;
    height: 0.25rem;
    background: hsl(var(--color-border));
    border-radius: 9999px;
    margin: 0 auto 1rem;
}

.events-mobile-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.5rem;
}

.events-mobile-header h3 {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.25rem;
    font-weight: 700;
    color: hsl(var(--color-foreground));
}

.events-mobile-header h3 svg {
    color: hsl(var(--color-primary));
}

.events-mobile-close {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    background: hsl(var(--color-muted));
    border: none;
    border-radius: 50%;
    cursor: pointer;
    transition: background 0.2s ease;
}

.events-mobile-close:hover {
    background: hsla(var(--color-muted), 0.8);
}

.events-mobile-close svg {
    color: hsl(var(--color-muted-foreground));
}

/* Events Cards */
.events-cards {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    max-height: 60vh;
    overflow-y: auto;
}

.events-card {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 1rem;
    background: linear-gradient(135deg, hsla(var(--color-primary), 0.1) 0%, hsla(var(--color-primary), 0.05) 100%);
    border: 1px solid hsla(var(--color-primary), 0.2);
    border-radius: 0.75rem;
    transition: all 0.3s ease;
}

.events-card:hover {
    border-color: hsla(var(--color-primary), 0.4);
    box-shadow: var(--shadow-lg);
}

.events-card-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    flex-shrink: 0;
    background: hsla(var(--color-primary), 0.2);
    border-radius: 0.5rem;
}

.events-card-icon svg {
    color: hsl(var(--color-primary));
}

.events-card-content h4 {
    font-size: 1rem;
    font-weight: 600;
    color: hsl(var(--color-foreground));
    margin-bottom: 0.25rem;
    transition: color 0.2s ease;
}

.events-card:hover .events-card-content h4 {
    color: hsl(var(--color-primary));
}

.events-card-content p {
    font-size: 0.875rem;
    color: hsl(var(--color-muted-foreground));
    margin: 0;
}

/* Desktop Events Sidebar */
.events-sidebar {
    position: fixed;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    z-index: 40;
    display: none;
}

@media (min-width: 768px) {
    .events-sidebar {
        display: block;
    }
}

.events-sidebar-tab {
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    padding: 2rem 0.75rem;
    background: hsl(var(--color-primary));
    color: white;
    border-radius: 0.5rem 0 0 0.5rem;
    cursor: pointer;
    box-shadow: var(--shadow-lg);
    transition: all 0.3s ease;
}

.events-sidebar:hover .events-sidebar-tab {
    opacity: 0;
    pointer-events: none;
}

.events-chevron {
    transform: rotate(180deg);
}

.events-sidebar-label {
    writing-mode: vertical-rl;
    text-orientation: mixed;
    font-size: 0.875rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    white-space: nowrap;
}

.events-sidebar-panel {
    width: 0;
    overflow: hidden;
    background: hsl(var(--color-background));
    border-left: 1px solid hsl(var(--color-border));
    border-top: 1px solid hsl(var(--color-border));
    border-bottom: 1px solid hsl(var(--color-border));
    border-radius: 1rem 0 0 1rem;
    box-shadow: var(--shadow-xl);
    transition: width 0.3s ease;
}

.events-sidebar:hover .events-sidebar-panel {
    width: 320px;
}

.events-sidebar-content {
    width: 320px;
    padding: 1.5rem;
}

.events-sidebar-title {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.25rem;
    font-weight: 700;
    color: hsl(var(--color-foreground));
    margin-bottom: 1.5rem;
}

.events-sidebar-title svg {
    color: hsl(var(--color-primary));
}

.events-sidebar-content .events-card {
    margin-bottom: 1rem;
}

.events-sidebar-content .events-card:last-child {
    margin-bottom: 0;
}
    height: 0;
    margin-left: 6px;
    border-left: 4px solid transparent;
    border-right: 4px solid transparent;
    border-top: 4px solid currentColor;
    vertical-align: middle;
}

/* NOTE: Legacy mobile menu styles removed (they conflicted with the magenta mobile menu above).
   Keep all mobile menu styles in the primary "Mobile Menu Toggle" and "Mobile Navigation Panel" blocks. */

/* ==========================================================================
   Hero Carousel Section (Enhanced)
   ========================================================================== */
.hero-section {
    position: relative;
    min-height: 500px; /* Match Lovable React (min-h-[500px]) */
    height: auto;
    display: flex;
    align-items: center;
    overflow: hidden;
    background: #000; /* fallback while images load */
    padding: 4rem 0;
}

@media (min-width: 768px) {
    .hero-section {
        padding: 5rem 0;
    }
}

@media (min-width: 1024px) {
    .hero-section {
        padding: 6rem 0;
    }
}

@media (max-width: 767px) {
    .hero-section {
        min-height: 500px;
        padding: 4rem 0;
    }
}

/* Carousel Backgrounds */
.hero-carousel {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

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

.hero-slide-bg.active {
    opacity: 1;
}

.hero-slide-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.hero-slide-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5); /* Match Lovable React bg-black/50 */
}

/* Slide Content */
.hero-slides-container {
    position: relative;
    z-index: 1;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 400px;
}

.hero-slide {
    position: absolute;
    width: 100%;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.7s ease-in-out;
    pointer-events: none;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-slide.active {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.hero-content {
    text-align: center;
    max-width: 900px;
    margin: 0 auto;
    padding: 0 1rem;
}

/* Glass Icon Container */
.hero-icon-container {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-glass);
}

@media (min-width: 768px) {
    .hero-icon-container { padding: 2rem; margin-bottom: 2rem; }
}

.hero-icon-container svg {
    width: 40px;
    height: 40px;
    color: hsl(var(--color-primary)); /* Match Lovable React (Icon text-primary) */
}

@media (min-width: 768px) {
    .hero-icon-container svg { width: 64px; height: 64px; }
}

@media (min-width: 1024px) {
    .hero-icon-container svg { width: 80px; height: 80px; }
}

.hero-title {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: white;
    text-shadow: 0 4px 8px rgba(0, 0, 0, 0.5);
    line-height: 1.1;
}

@media (min-width: 640px) {
    .hero-title { font-size: 2.5rem; }
}

@media (min-width: 768px) {
    .hero-title { font-size: 3.5rem; margin-bottom: 1.5rem; }
}

@media (min-width: 1024px) {
    .hero-title { font-size: 4rem; }
}

@media (min-width: 1280px) {
    .hero-title { font-size: 4.5rem; }
}

/* Subtitle Badge */
.hero-subtitle-badge {
    display: inline-block;
    padding: 0.5rem 1.5rem;
    margin-bottom: 1rem;
    background: hsla(310, 58%, 35%, 0.8);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: var(--radius);
    color: white;
    font-size: 1rem;
    font-weight: 600;
}

@media (min-width: 768px) {
    .hero-subtitle-badge { 
        padding: 0.75rem 2rem; 
        margin-bottom: 1.5rem; 
        font-size: 1.5rem;
        border-radius: var(--radius-lg);
    }
}

.hero-description {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 1.5rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

@media (min-width: 768px) {
    .hero-description { font-size: 1.125rem; margin-bottom: 2.5rem; }
}

/* Hero Buttons */
.hero-buttons {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    justify-content: center;
    align-items: center;
}

@media (min-width: 640px) {
    .hero-buttons { flex-direction: row; gap: 1rem; }
}

.hero-btn {
    padding: 0.75rem 2rem;
    font-size: 0.875rem;
    font-weight: 600;
    border-radius: 9999px;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

@media (min-width: 768px) {
    .hero-btn { padding: 1rem 2.5rem; font-size: 1rem; }
}

.hero-btn-primary {
    background: hsl(var(--color-primary));
    color: white;
}

.hero-btn-primary:hover {
    background: hsl(310 58% 25%);
    transform: scale(1.05);
    box-shadow: var(--shadow-lg);
}

.hero-btn-outline {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.5);
    color: white;
}

.hero-btn-outline:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.05);
    box-shadow: var(--shadow-lg);
}

/* Carousel Navigation Arrows */
.hero-nav-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    padding: 0.75rem;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: none;
    border-radius: 50%;
    color: white;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 20;
}

.hero-nav-arrow:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-50%) scale(1.1);
}

.hero-nav-arrow.prev { left: 0.5rem; }
.hero-nav-arrow.next { right: 0.5rem; }

@media (min-width: 768px) {
    .hero-nav-arrow.prev { left: 2rem; }
    .hero-nav-arrow.next { right: 2rem; }
}

.hero-nav-arrow svg {
    width: 18px;
    height: 18px;
}

@media (min-width: 768px) {
    .hero-nav-arrow svg { width: 22px; height: 22px; }
}

/* Carousel Dot Indicators */
.hero-dots {
    position: absolute;
    bottom: 1.5rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 0.75rem;
    padding: 0.75rem 1.5rem;
    background: rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 9999px;
    z-index: 20;
}

@media (min-width: 768px) {
    .hero-dots { bottom: 2rem; gap: 1rem; }
}

.hero-dot {
    width: 0.5rem;
    height: 0.5rem;
    border-radius: 9999px;
    background: rgba(255, 255, 255, 0.6);
    border: none;
    cursor: pointer;
    transition: all 0.5s ease;
}

@media (min-width: 768px) {
    .hero-dot { width: 0.75rem; height: 0.75rem; }
}

.hero-dot:hover {
    background: white;
    transform: scale(1.25);
}

.hero-dot.active {
    width: 2rem;
    background: hsl(var(--color-primary));
    box-shadow: var(--shadow-glow);
}

@media (min-width: 768px) {
    .hero-dot.active { width: 3rem; }
}

/* ==========================================================================
   Hero Centered Layout (Matching Lovable React HeroCarousel.tsx EXACTLY)
   ========================================================================== */
.hero-carousel-centered {
    position: relative;
    min-height: 320px; /* Reduced for mobile */
    height: auto;
    padding: 2rem 0 2.5rem; /* Reduced padding for mobile */
    overflow: hidden;
    background: #0a0a0a;
    /* CRITICAL: Contain all transforms within this element */
    max-width: 100%;
    width: 100%;
    box-sizing: border-box;
    /* Force GPU layer to isolate transforms */
    -webkit-transform: translateZ(0);
    transform: translateZ(0);
    will-change: auto;
}

/* Make hero fit the mobile screen height more predictably (account for fixed header) */
@media (max-width: 767px) {
    .hero-carousel-centered {
        min-height: calc(100svh - 56px);
        padding: 1.25rem 0 2rem;
    }

    .hero-centered-content {
        min-height: calc(100svh - 56px);
    }
}

@media (max-width: 374px) {
    .hero-carousel-centered {
        min-height: calc(100svh - 52px);
    }

    .hero-centered-content {
        min-height: calc(100svh - 52px);
    }
}

/* Extra small screens - further reduced */
@media (max-width: 374px) {
    .hero-carousel-centered {
        min-height: 280px;
        padding: 1.5rem 0 2rem;
    }
}

@media (min-width: 375px) and (max-width: 639px) {
    .hero-carousel-centered {
        min-height: 340px;
        padding: 2rem 0 2.5rem;
    }
}

@media (min-width: 640px) {
    .hero-carousel-centered {
        min-height: 400px; /* sm:min-h-[400px] */
        padding: 3rem 0; /* sm:py-12 */
    }
}

@media (min-width: 768px) {
    .hero-carousel-centered {
        min-height: 480px; /* md:min-h-[480px] */
        padding: 4rem 0; /* md:py-16 */
    }
}

@media (min-width: 1024px) {
    .hero-carousel-centered {
        min-height: 550px; /* lg:min-h-[550px] */
        padding: 5rem 0; /* lg:py-20 */
    }
}

/* Full Width Background Images */
.hero-bg-container {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
}

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

.hero-bg-slide.active {
    opacity: 1;
}

.hero-bg-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

/* Per-slide focal point for mobile - keeps key subjects centered */
@media (max-width: 768px) {
    /* Slide 1: Welcome - focus on center-right where people/action likely is */
    .hero-bg-slide[data-slide="0"] img {
        object-position: 60% center;
    }
    
    /* Slide 2: Evidence-Based - focus on center-left for data visuals */
    .hero-bg-slide[data-slide="1"] img {
        object-position: 40% center;
    }
    
    /* Slide 3: Global Excellence - center focus for wide shots */
    .hero-bg-slide[data-slide="2"] img {
        object-position: center 40%;
    }
}

/* Extra-small mobile fine-tuning */
@media (max-width: 480px) {
    .hero-bg-slide[data-slide="0"] img {
        object-position: 65% center;
    }
    
    .hero-bg-slide[data-slide="1"] img {
        object-position: 35% center;
    }
    
    .hero-bg-slide[data-slide="2"] img {
        object-position: center 35%;
    }
}

.hero-bg-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5); /* Match React bg-black/50 */
}

/* Centered Content Container */
.hero-centered-content {
    position: relative;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 240px;
}

@media (min-width: 375px) {
    .hero-centered-content {
        min-height: 280px;
    }
}

@media (min-width: 640px) {
    .hero-centered-content {
        min-height: 340px;
    }
}

@media (min-width: 768px) {
    .hero-centered-content {
        min-height: 400px;
    }
}

@media (min-width: 1024px) {
    .hero-centered-content {
        min-height: 450px;
    }
}

.hero-content-slide {
    position: absolute;
    width: 100%;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.7s ease, transform 0.7s ease;
    pointer-events: none;
}

.hero-content-slide.active {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
    position: relative;
}

.hero-content-inner {
    text-align: center;
    max-width: 900px;
    margin: 0 auto;
    padding: 0 1rem;
}

/* Glass Icon Container - Matching React glass p-3 sm:p-4 md:p-6 lg:p-8 rounded-xl sm:rounded-2xl md:rounded-3xl */
.hero-glass-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem; /* p-3 */
    margin-bottom: 0.75rem; /* mb-3 sm:mb-4 md:mb-6 lg:mb-8 */
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 0.75rem; /* rounded-xl */
    box-shadow: 0 8px 32px 0 rgba(141, 37, 125, 0.15);
}

@media (min-width: 640px) {
    .hero-glass-icon {
        padding: 1rem; /* sm:p-4 */
        margin-bottom: 1rem; /* sm:mb-4 */
        border-radius: 1rem; /* sm:rounded-2xl */
    }
}

@media (min-width: 768px) {
    .hero-glass-icon {
        padding: 1.5rem; /* md:p-6 */
        margin-bottom: 1.5rem; /* md:mb-6 */
        border-radius: 1.5rem; /* md:rounded-3xl */
    }
}

@media (min-width: 1024px) {
    .hero-glass-icon {
        padding: 2rem; /* lg:p-8 */
        margin-bottom: 2rem; /* lg:mb-8 */
    }
}

/* Icon SVG sizes - Matching React w-8 h-8 sm:w-10 sm:h-10 md:w-14 md:h-14 lg:w-16 lg:h-16 */
.hero-glass-icon svg {
    width: 32px; /* w-8 h-8 */
    height: 32px;
    color: #8D257D; /* text-primary */
}

@media (min-width: 640px) {
    .hero-glass-icon svg {
        width: 40px; /* sm:w-10 sm:h-10 */
        height: 40px;
    }
}

@media (min-width: 768px) {
    .hero-glass-icon svg {
        width: 56px; /* md:w-14 md:h-14 */
        height: 56px;
    }
}

@media (min-width: 1024px) {
    .hero-glass-icon svg {
        width: 64px; /* lg:w-16 lg:h-16 */
        height: 64px;
    }
}

/* Main Title - Matching React text-2xl sm:text-3xl md:text-4xl lg:text-5xl xl:text-6xl */
.hero-main-title {
    font-size: 1.5rem; /* text-2xl */
    font-weight: 700;
    margin-bottom: 0.5rem; /* mb-2 sm:mb-3 md:mb-4 lg:mb-6 */
    color: white;
    text-shadow: 0 4px 8px rgba(0, 0, 0, 0.5); /* drop-shadow-lg */
    line-height: 1.1; /* leading-tight */
}

@media (min-width: 640px) {
    .hero-main-title {
        font-size: 1.875rem; /* sm:text-3xl */
        margin-bottom: 0.75rem; /* sm:mb-3 */
    }
}

@media (min-width: 768px) {
    .hero-main-title {
        font-size: 2.25rem; /* md:text-4xl */
        margin-bottom: 1rem; /* md:mb-4 */
    }
}

@media (min-width: 1024px) {
    .hero-main-title {
        font-size: 3rem; /* lg:text-5xl */
        margin-bottom: 1.5rem; /* lg:mb-6 */
    }
}

@media (min-width: 1280px) {
    .hero-main-title {
        font-size: 3.75rem; /* xl:text-6xl */
    }
}

/* Subtitle Badge - Matching React bg-primary/80 backdrop-blur-sm with text-base sm:text-lg md:text-xl lg:text-2xl xl:text-3xl */
.hero-subtitle-badge {
    display: inline-block;
    padding: 0.375rem 0.75rem; /* px-3 sm:px-4 md:px-6 lg:px-8 py-1.5 sm:py-2 md:py-3 lg:py-4 */
    margin-bottom: 0.5rem; /* mb-2 sm:mb-3 md:mb-4 lg:mb-6 */
    background: rgba(141, 37, 125, 0.8); /* bg-primary/80 */
    backdrop-filter: blur(4px); /* backdrop-blur-sm */
    -webkit-backdrop-filter: blur(4px);
    border-radius: 0.5rem; /* rounded-lg sm:rounded-xl md:rounded-2xl */
    color: white;
    font-size: 1rem; /* text-base */
    font-weight: 600;
}

@media (min-width: 640px) {
    .hero-subtitle-badge {
        padding: 0.5rem 1rem; /* sm:px-4 sm:py-2 */
        margin-bottom: 0.75rem; /* sm:mb-3 */
        font-size: 1.125rem; /* sm:text-lg */
        border-radius: 0.75rem; /* sm:rounded-xl */
    }
}

@media (min-width: 768px) {
    .hero-subtitle-badge {
        padding: 0.75rem 1.5rem; /* md:px-6 md:py-3 */
        margin-bottom: 1rem; /* md:mb-4 */
        font-size: 1.25rem; /* md:text-xl */
        border-radius: 1rem; /* md:rounded-2xl */
    }
}

@media (min-width: 1024px) {
    .hero-subtitle-badge {
        padding: 1rem 2rem; /* lg:px-8 lg:py-4 */
        margin-bottom: 1.5rem; /* lg:mb-6 */
        font-size: 1.5rem; /* lg:text-2xl */
    }
}

@media (min-width: 1280px) {
    .hero-subtitle-badge {
        font-size: 1.875rem; /* xl:text-3xl */
    }
}

/* Description - Matching React text-xs sm:text-sm md:text-base lg:text-lg xl:text-xl */
.hero-description {
    font-size: 0.75rem; /* text-xs */
    color: rgba(255, 255, 255, 0.9); /* text-white/90 */
    margin-bottom: 1rem; /* mb-4 sm:mb-6 md:mb-8 lg:mb-10 */
    max-width: 42rem; /* max-w-2xl */
    margin-left: auto;
    margin-right: auto;
    line-height: 1.625; /* leading-relaxed */
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3); /* drop-shadow-md */
    padding: 0 0.5rem; /* px-2 */
}

@media (min-width: 640px) {
    .hero-description {
        font-size: 0.875rem; /* sm:text-sm */
        margin-bottom: 1.5rem; /* sm:mb-6 */
    }
}

@media (min-width: 768px) {
    .hero-description {
        font-size: 1rem; /* md:text-base */
        margin-bottom: 2rem; /* md:mb-8 */
    }
}

@media (min-width: 1024px) {
    .hero-description {
        font-size: 1.125rem; /* lg:text-lg */
        margin-bottom: 2.5rem; /* lg:mb-10 */
    }
}

@media (min-width: 1280px) {
    .hero-description {
        font-size: 1.25rem; /* xl:text-xl */
    }
}

/* CTA Buttons Container - Matching React flex flex-row gap-2 sm:gap-3 md:gap-4 */
.hero-cta-buttons {
    display: flex;
    flex-direction: row; /* Always flex-row */
    flex-wrap: wrap; /* Allow wrapping on very small screens */
    gap: 0.5rem; /* gap-2 */
    justify-content: center;
    align-items: center;
}

@media (min-width: 640px) {
    .hero-cta-buttons {
        gap: 0.75rem; /* sm:gap-3 */
    }
}

@media (min-width: 768px) {
    .hero-cta-buttons {
        gap: 1rem; /* md:gap-4 */
    }
}

/* Button Base - Matching React Button sizing for hero */
.hero-btn-primary,
.hero-btn-outline {
    padding: 0.5rem 0.75rem; /* px-3 sm:px-4 md:px-6 lg:px-8 py-2 sm:py-2.5 md:py-3 lg:py-4 */
    font-size: 0.625rem; /* text-[10px] sm:text-xs md:text-sm lg:text-base */
    font-weight: 600;
    border-radius: 9999px; /* rounded-full */
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: auto;
}

@media (min-width: 640px) {
    .hero-btn-primary,
    .hero-btn-outline {
        padding: 0.625rem 1rem; /* sm:px-4 sm:py-2.5 */
        font-size: 0.75rem; /* sm:text-xs */
    }
}

@media (min-width: 768px) {
    .hero-btn-primary,
    .hero-btn-outline {
        padding: 0.75rem 1.5rem; /* md:px-6 md:py-3 */
        font-size: 0.875rem; /* md:text-sm */
    }
}

@media (min-width: 1024px) {
    .hero-btn-primary,
    .hero-btn-outline {
        padding: 1rem 2rem; /* lg:px-8 lg:py-4 */
        font-size: 1rem; /* lg:text-base */
    }
}

/* Primary Button - Matching React bg-primary hover:bg-primary/90 */
.hero-btn-primary {
    background: #8D257D; /* bg-primary */
    color: white;
}

.hero-btn-primary:hover {
    background: rgba(141, 37, 125, 0.9); /* hover:bg-primary/90 */
    color: white;
    transform: scale(1.05); /* hover:scale-105 */
    box-shadow: 0 10px 40px rgba(141, 37, 125, 0.4); /* hover:shadow-xl */
}

/* Outline Button - Matching React bg-white/10 backdrop-blur-sm border border-white/50 */
.hero-btn-outline {
    background: rgba(255, 255, 255, 0.1); /* bg-white/10 */
    backdrop-filter: blur(4px); /* backdrop-blur-sm */
    -webkit-backdrop-filter: blur(4px);
    border: 1px solid rgba(255, 255, 255, 0.5); /* border border-white/50 */
    color: white;
}

.hero-btn-outline:hover {
    background: rgba(255, 255, 255, 0.2); /* hover:bg-white/20 */
    color: white;
    transform: scale(1.05); /* hover:scale-105 */
    box-shadow: 0 10px 40px rgba(255, 255, 255, 0.2); /* hover:shadow-xl */
}

/* Navigation Arrows - Reduced sizes for mobile and desktop */
.hero-carousel-centered .hero-nav-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    padding: 0.375rem;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: none;
    -webkit-appearance: none;
    appearance: none;
    border-radius: 50%;
    color: white;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 20;
}

@media (min-width: 640px) {
    .hero-carousel-centered .hero-nav-arrow {
        padding: 0.5rem;
    }
}

@media (min-width: 768px) {
    .hero-carousel-centered .hero-nav-arrow {
        padding: 0.625rem;
    }
}

@media (min-width: 1024px) {
    .hero-carousel-centered .hero-nav-arrow {
        padding: 0.75rem;
    }
}

.hero-carousel-centered .hero-nav-arrow:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-50%) scale(1.1);
}

.hero-carousel-centered .hero-nav-arrow.prev {
    left: 0.25rem;
}

.hero-carousel-centered .hero-nav-arrow.next {
    right: 0.25rem;
}

@media (min-width: 640px) {
    .hero-carousel-centered .hero-nav-arrow.prev {
        left: 0.5rem;
    }
    .hero-carousel-centered .hero-nav-arrow.next {
        right: 0.5rem;
    }
}

@media (min-width: 768px) {
    .hero-carousel-centered .hero-nav-arrow.prev {
        left: 1rem;
    }
    .hero-carousel-centered .hero-nav-arrow.next {
        right: 1rem;
    }
}

@media (min-width: 1024px) {
    .hero-carousel-centered .hero-nav-arrow.prev {
        left: 1.5rem;
    }
    .hero-carousel-centered .hero-nav-arrow.next {
        right: 1.5rem;
    }
}

.hero-carousel-centered .hero-nav-arrow svg {
    width: 14px;
    height: 14px;
}

@media (min-width: 640px) {
    .hero-carousel-centered .hero-nav-arrow svg {
        width: 16px;
        height: 16px;
    }
}

@media (min-width: 768px) {
    .hero-carousel-centered .hero-nav-arrow svg {
        width: 16px;
        height: 16px;
    }
}

@media (min-width: 1024px) {
    .hero-carousel-centered .hero-nav-arrow svg {
        width: 18px;
        height: 18px;
    }
}

/* Dot Indicators - Reduced sizes for mobile and desktop */
.hero-dot-indicators {
    position: absolute;
    bottom: 0.5rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 0.375rem;
    padding: 0.375rem 0.75rem;
    background: rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 9999px;
    z-index: 20;
}

@media (min-width: 640px) {
    .hero-dot-indicators {
        bottom: 0.75rem;
        gap: 0.5rem;
        padding: 0.4375rem 1rem;
    }
}

@media (min-width: 768px) {
    .hero-dot-indicators {
        bottom: 1rem;
        gap: 0.625rem;
        padding: 0.5rem 1.25rem;
    }
}

@media (min-width: 1024px) {
    .hero-dot-indicators {
        bottom: 1.5rem;
        gap: 0.75rem;
        padding: 0.625rem 1.5rem;
    }
}

.hero-dot-indicators .hero-dot {
    width: 0.375rem;
    height: 0.375rem;
    border-radius: 9999px;
    background: rgba(255, 255, 255, 0.6);
    border: none;
    -webkit-appearance: none;
    appearance: none;
    cursor: pointer;
    transition: all 0.5s ease;
}

@media (min-width: 640px) {
    .hero-dot-indicators .hero-dot {
        width: 0.4375rem;
        height: 0.4375rem;
    }
}

@media (min-width: 768px) {
    .hero-dot-indicators .hero-dot {
        width: 0.5rem;
        height: 0.5rem;
    }
}

@media (min-width: 1024px) {
    .hero-dot-indicators .hero-dot {
        width: 0.5625rem;
        height: 0.5625rem;
    }
}

.hero-dot-indicators .hero-dot:hover {
    background: white;
    transform: scale(1.2);
}

.hero-dot-indicators .hero-dot.active {
    width: 1.5rem;
    background: #8D257D;
    box-shadow: 0 0 20px rgba(141, 37, 125, 0.5);
}

@media (min-width: 640px) {
    .hero-dot-indicators .hero-dot.active {
        width: 1.75rem;
    }
}

@media (min-width: 768px) {
    .hero-dot-indicators .hero-dot.active {
        width: 2rem;
    }
}

@media (min-width: 1024px) {
    .hero-dot-indicators .hero-dot.active {
        width: 2.5rem;
    }
}

/* ==========================================================================
   Hero Split Layout (Legacy - Keeping for compatibility)
   ========================================================================== */
.hero-section-split {
    position: relative;
    display: flex;
    min-height: 600px;
    overflow: hidden;
    background: #0a0a0a;
}

@media (max-width: 767px) {
    .hero-section-split {
        flex-direction: column;
        min-height: auto;
    }
}

/* Left Side - Image */
.hero-split-left {
    position: relative;
    width: 50%;
    min-height: 600px;
    overflow: hidden;
}

@media (max-width: 767px) {
    .hero-split-left {
        width: 100%;
        min-height: 300px;
        max-height: 350px;
    }
}

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

.hero-split-image.active {
    opacity: 1;
}

.hero-split-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

/* Right Side - Content */
.hero-split-right {
    position: relative;
    width: 50%;
    min-height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #1a1a1a 0%, #0a0a0a 100%);
    padding: 3rem 2rem;
}

@media (max-width: 767px) {
    .hero-split-right {
        width: 100%;
        min-height: auto;
        padding: 2.5rem 1.5rem;
    }
}

.hero-split-content-wrapper {
    position: relative;
    width: 100%;
    max-width: 600px;
}

.hero-split-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.7s ease-in-out;
    pointer-events: none;
}

.hero-split-slide.active {
    position: relative;
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.hero-split-content {
    text-align: center;
}

/* Icon Container - Glass Effect */
.hero-split-icon-container {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100px;
    height: 100px;
    margin-bottom: 2rem;
    background: rgba(30, 30, 30, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 1.5rem;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

@media (max-width: 767px) {
    .hero-split-icon-container {
        width: 80px;
        height: 80px;
        margin-bottom: 1.5rem;
        border-radius: 1rem;
    }
}

.hero-split-icon-container svg {
    width: 48px;
    height: 48px;
    color: hsl(var(--color-primary));
}

@media (max-width: 767px) {
    .hero-split-icon-container svg {
        width: 36px;
        height: 36px;
    }
}

/* Title */
.hero-split-title {
    font-size: 3.5rem;
    font-weight: 700;
    color: white;
    margin-bottom: 1.5rem;
    line-height: 1.1;
    text-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
}

@media (max-width: 1023px) {
    .hero-split-title {
        font-size: 2.5rem;
    }
}

@media (max-width: 767px) {
    .hero-split-title {
        font-size: 2rem;
        margin-bottom: 1rem;
    }
}

/* Subtitle Badge */
.hero-split-subtitle {
    display: inline-block;
    padding: 1rem 2.5rem;
    margin-bottom: 1.5rem;
    background: hsl(var(--color-primary));
    border-radius: 9999px;
    color: white;
    font-size: 1.25rem;
    font-weight: 600;
}

@media (max-width: 767px) {
    .hero-split-subtitle {
        padding: 0.75rem 1.5rem;
        font-size: 1rem;
        margin-bottom: 1rem;
    }
}

/* Description */
.hero-split-description {
    font-size: 1.125rem;
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 2.5rem;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
}

@media (max-width: 767px) {
    .hero-split-description {
        font-size: 0.9375rem;
        margin-bottom: 1.5rem;
    }
}

/* CTA Buttons */
.hero-split-buttons {
    display: flex;
    flex-direction: row;
    gap: 1rem;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
}

@media (max-width: 479px) {
    .hero-split-buttons {
        flex-direction: column;
        gap: 0.75rem;
    }
}

.hero-split-btn {
    padding: 1rem 2.5rem;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 9999px;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 160px;
}

@media (max-width: 767px) {
    .hero-split-btn {
        padding: 0.75rem 1.75rem;
        font-size: 0.875rem;
        min-width: 140px;
    }
}

.hero-split-btn-primary {
    background: hsl(var(--color-primary));
    color: white;
    border: 2px solid hsl(var(--color-primary));
}

.hero-split-btn-primary:hover {
    background: hsl(310 58% 25%);
    border-color: hsl(310 58% 25%);
    transform: scale(1.05);
    box-shadow: 0 10px 30px rgba(141, 37, 125, 0.4);
}

.hero-split-btn-outline {
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid rgba(255, 255, 255, 0.4);
    color: white;
}

.hero-split-btn-outline:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.6);
    transform: scale(1.05);
}

/* Navigation Arrows */
.hero-split-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    color: white;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 20;
}

.hero-split-nav:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: translateY(-50%) scale(1.1);
}

.hero-split-nav.prev {
    left: 1rem;
}

.hero-split-nav.next {
    right: 1rem;
}

@media (min-width: 768px) {
    .hero-split-nav.prev { left: 2rem; }
    .hero-split-nav.next { right: 2rem; }
}

@media (max-width: 767px) {
    .hero-split-nav {
        width: 40px;
        height: 40px;
    }
    .hero-split-nav.prev { left: 0.5rem; }
    .hero-split-nav.next { right: 0.5rem; }
}

.hero-split-nav svg {
    width: 24px;
    height: 24px;
}

@media (max-width: 767px) {
    .hero-split-nav svg {
        width: 20px;
        height: 20px;
    }
}

/* Dot Indicators */
.hero-split-dots {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 0.75rem;
    padding: 0.75rem 1.5rem;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 9999px;
    z-index: 20;
}

@media (max-width: 767px) {
    .hero-split-dots {
        bottom: 1rem;
        padding: 0.5rem 1rem;
        gap: 0.5rem;
    }
}

.hero-split-dot {
    width: 0.75rem;
    height: 0.75rem;
    border-radius: 9999px;
    background: rgba(255, 255, 255, 0.5);
    border: none;
    cursor: pointer;
    transition: all 0.5s ease;
}

@media (max-width: 767px) {
    .hero-split-dot {
        width: 0.5rem;
        height: 0.5rem;
    }
}

.hero-split-dot:hover {
    background: white;
    transform: scale(1.25);
}

.hero-split-dot.active {
    width: 3rem;
    background: hsl(var(--color-primary));
    box-shadow: 0 0 15px rgba(141, 37, 125, 0.5);
}

@media (max-width: 767px) {
    .hero-split-dot.active {
        width: 2rem;
    }
}

/* ==========================================================================
   Buttons
   ========================================================================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.875rem 1.75rem;
    font-family: var(--font-sans);
    font-size: 0.9375rem;
    font-weight: 600;
    border-radius: var(--radius);
    border: none;
    cursor: pointer;
    transition: all var(--transition);
    text-decoration: none;
}

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

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

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

.btn-secondary:hover {
    background: hsl(310 58% 25%);
}

.btn-outline {
    background: transparent;
    border: 2px solid white;
    color: white;
}

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

.btn-lg {
    padding: 1rem 2.5rem;
    font-size: 1rem;
}

/* ==========================================================================
   Section Styles
   ========================================================================== */
.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-subtitle {
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: hsl(var(--color-primary));
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.section-title {
    margin-bottom: 1rem;
}

.section-description {
    color: hsl(var(--color-muted-foreground));
    max-width: 600px;
    margin: 0 auto;
}

/* ==========================================================================
   Who We Are Section
   ========================================================================== */
.who-we-are-section {
    background: white;
}

.about-grid {
    display: grid;
    gap: 3rem;
    align-items: center;
}

@media (min-width: 1024px) {
    .about-grid { grid-template-columns: 1fr 1fr; }
}

.about-image {
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-xl);
}

.about-content h2 {
    margin-bottom: 1.5rem;
}

.about-content p {
    color: hsl(var(--color-muted-foreground));
    margin-bottom: 1rem;
}

.about-features {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-top: 2rem;
}

.about-feature {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
}

.about-feature-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: hsl(var(--color-primary));
    border-radius: var(--radius);
    color: white;
    flex-shrink: 0;
}

.about-feature h4 {
    margin-bottom: 0.25rem;
    font-size: 1rem;
}

.about-feature p {
    font-size: 0.875rem;
    margin: 0;
}

/* Stats Grid */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid hsl(var(--color-border));
}

.stat-item {
    text-align: center;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: hsl(var(--color-primary));
    font-family: var(--font-heading);
}

.stat-label {
    font-size: 0.875rem;
    color: hsl(var(--color-muted-foreground));
    margin-top: 0.25rem;
}

/* ==========================================================================
   What We Do / Services Section
   ========================================================================== */
.services-section {
    background: hsl(var(--color-muted));
}

.services-grid {
    display: grid;
    gap: 2rem;
}

@media (min-width: 640px) {
    .services-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 1024px) {
    .services-grid { grid-template-columns: repeat(3, 1fr); }
}

.service-card {
    background: white;
    border-radius: var(--radius);
    padding: 2rem;
    box-shadow: var(--shadow-md);
    transition: all var(--transition);
    text-decoration: none;
    display: block;
}

.service-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-xl);
}

.service-icon {
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: hsl(var(--color-primary));
    border-radius: var(--radius);
    margin-bottom: 1.5rem;
    color: white;
}

.service-icon svg {
    width: 28px;
    height: 28px;
}

.service-card h3 {
    margin-bottom: 0.75rem;
    color: hsl(var(--color-foreground));
}

.service-card p {
    color: hsl(var(--color-muted-foreground));
    font-size: 0.9375rem;
    margin: 0;
}

/* ==========================================================================
   Our Impact Section
   ========================================================================== */
.impact-section {
    background: hsl(var(--color-primary));
    color: white;
}

.impact-section .section-subtitle {
    color: rgba(255, 255, 255, 0.8);
}

.impact-section .section-title {
    color: white;
}

.impact-section .section-description {
    color: rgba(255, 255, 255, 0.9);
}

.impact-grid {
    display: grid;
    gap: 2rem;
    margin-top: 3rem;
}

@media (min-width: 768px) {
    .impact-grid { grid-template-columns: repeat(3, 1fr); }
}

.impact-card {
    text-align: center;
    padding: 2rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: var(--radius);
    backdrop-filter: blur(10px);
}

.impact-number {
    font-size: 3rem;
    font-weight: 700;
    font-family: var(--font-heading);
}

.impact-label {
    font-size: 1rem;
    opacity: 0.9;
    margin-top: 0.5rem;
}

/* ==========================================================================
   Team Section
   ========================================================================== */
.team-section {
    background: white;
}

.team-grid {
    display: grid;
    gap: 2rem;
}

@media (min-width: 640px) {
    .team-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 768px) {
    .team-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (min-width: 1024px) {
    .team-grid { grid-template-columns: repeat(4, 1fr); }
}

.team-card {
    text-align: center;
    transition: all var(--transition);
}

.team-card:hover {
    transform: translateY(-4px);
}

.team-image {
    width: 180px;
    height: 180px;
    margin: 0 auto 1rem;
    border-radius: 50%;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    border: 4px solid hsl(var(--color-primary));
}

.team-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.team-info h3 {
    font-size: 1.125rem;
    margin-bottom: 0.25rem;
}

.team-info p {
    color: hsl(var(--color-primary));
    font-size: 0.875rem;
    margin: 0;
}

/* ==========================================================================
   Projects Section
   ========================================================================== */
.projects-section {
    background: hsl(var(--color-muted));
}

.projects-grid {
    display: grid;
    gap: 2rem;
}

@media (min-width: 640px) {
    .projects-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 1024px) {
    .projects-grid { grid-template-columns: repeat(3, 1fr); }
}

.project-card {
    position: relative;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    aspect-ratio: 16/10;
    display: block;
}

.project-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

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

.project-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(141, 37, 125, 0.9) 0%, transparent 60%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 1.5rem;
    color: white;
}

.project-overlay h3 {
    color: white;
    font-size: 1.125rem;
    margin-bottom: 0.25rem;
}

.project-overlay p {
    font-size: 0.875rem;
    opacity: 0.9;
    margin: 0;
}

/* ==========================================================================
   Testimonials Section
   ========================================================================== */
.testimonials-section {
    background: white;
}

.testimonials-grid {
    display: grid;
    gap: 2rem;
}

@media (min-width: 768px) {
    .testimonials-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 1024px) {
    .testimonials-grid { grid-template-columns: repeat(3, 1fr); }
}

.testimonial-card {
    background: hsl(var(--color-muted));
    padding: 2rem;
    border-radius: var(--radius);
    position: relative;
}

.testimonial-card::before {
    content: '"';
    position: absolute;
    top: 1rem;
    left: 1.5rem;
    font-size: 4rem;
    color: hsl(var(--color-primary));
    opacity: 0.2;
    font-family: Georgia, serif;
    line-height: 1;
}

.testimonial-quote {
    font-style: italic;
    margin-bottom: 1.5rem;
    position: relative;
    z-index: 1;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.testimonial-author img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
}

.testimonial-author h4 {
    font-size: 1rem;
    margin-bottom: 0.125rem;
}

.testimonial-author p {
    font-size: 0.875rem;
    color: hsl(var(--color-muted-foreground));
    margin: 0;
}

/* ==========================================================================
   Contact Section
   ========================================================================== */
.contact-section {
    background: hsl(var(--color-muted));
}

.contact-grid {
    display: grid;
    gap: 3rem;
}

@media (min-width: 1024px) {
    .contact-grid { grid-template-columns: 1fr 1.5fr; }
}

.contact-info h3 {
    margin-bottom: 1rem;
}

.contact-info > p {
    color: hsl(var(--color-muted-foreground));
    margin-bottom: 2rem;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.contact-item {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
}

.contact-item-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: hsl(var(--color-primary));
    border-radius: var(--radius);
    color: white;
    flex-shrink: 0;
}

.contact-item p {
    margin: 0;
}

.contact-item a {
    color: hsl(var(--color-foreground));
}

.contact-item a:hover {
    color: hsl(var(--color-primary));
}

/* Contact Form */
.contact-form {
    background: white;
    padding: 2rem;
    border-radius: var(--radius);
    box-shadow: var(--shadow-md);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    font-weight: 500;
    margin-bottom: 0.5rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid hsl(var(--color-border));
    border-radius: var(--radius);
    font-family: var(--font-sans);
    font-size: 1rem;
    transition: border-color var(--transition);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: hsl(var(--color-primary));
}

.form-group textarea {
    resize: vertical;
    min-height: 150px;
}

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer {
    background: hsl(var(--color-primary));
    color: white;
    padding: 4rem 0 0;
}

.footer-grid {
    display: grid;
    gap: 2rem;
    margin-bottom: 3rem;
}

@media (min-width: 640px) {
    .footer-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 1024px) {
    .footer-grid { grid-template-columns: 2fr 1fr 1fr 1fr; }
}

.footer-col h4 {
    color: white;
    margin-bottom: 1.5rem;
    font-size: 1.125rem;
}

.footer-col p {
    opacity: 0.9;
    line-height: 1.7;
}

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

.footer-col li {
    margin-bottom: 0.75rem;
}

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

.footer-col a:hover {
    color: white;
    padding-left: 4px;
}

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

.footer-bottom p {
    opacity: 0.8;
    font-size: 0.875rem;
    margin: 0;
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-links a {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: white;
    transition: all var(--transition);
}

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

/* ==========================================================================
   Single Post / Page Styles
   ========================================================================== */
.page-header {
    background: hsl(var(--color-primary));
    color: white;
    padding: 8rem 0 4rem;
    text-align: center;
}

.page-header h1 {
    color: white;
    margin-bottom: 1rem;
}

.page-header p {
    opacity: 0.9;
    max-width: 600px;
    margin: 0 auto;
}

.page-content {
    padding: 4rem 0;
}

.page-content .container {
    max-width: 900px;
}

/* Single Project */
.single-project-content {
    display: grid;
    gap: 3rem;
}

@media (min-width: 1024px) {
    .single-project-content { grid-template-columns: 2fr 1fr; }
}

.project-main-content h2 {
    margin-top: 2rem;
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.project-main-content p {
    margin-bottom: 1rem;
    line-height: 1.8;
}

.project-sidebar {
    background: hsl(var(--color-muted));
    padding: 2rem;
    border-radius: var(--radius);
    height: fit-content;
}

.project-meta-item {
    margin-bottom: 1.5rem;
}

.project-meta-item:last-child {
    margin-bottom: 0;
}

.project-meta-item h4 {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: hsl(var(--color-muted-foreground));
    margin-bottom: 0.25rem;
}

.project-meta-item p {
    margin: 0;
    font-weight: 500;
}

/* Single Team Member */
.single-team-content {
    display: grid;
    gap: 3rem;
    align-items: start;
}

@media (min-width: 768px) {
    .single-team-content { grid-template-columns: 300px 1fr; }
}

.team-member-image {
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-xl);
}

.team-member-image img {
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
}

.team-member-info h1 {
    margin-bottom: 0.5rem;
}

.team-member-position {
    color: hsl(var(--color-primary));
    font-size: 1.125rem;
    font-weight: 500;
    margin-bottom: 1.5rem;
}

.team-member-bio {
    line-height: 1.8;
}

.team-member-bio p {
    margin-bottom: 1rem;
}

.team-member-contact {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid hsl(var(--color-border));
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

/* ==========================================================================
   Page Header (Inner Pages)
   ========================================================================== */
.page-header-large {
    position: relative;
    padding: 10rem 0 4rem;
    min-height: 400px;
    display: flex;
    align-items: flex-end;
}

.page-header-background {
    position: absolute;
    inset: 0;
    z-index: -1;
}

.page-header-background img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.page-header-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(141, 37, 125, 0.7) 0%, rgba(141, 37, 125, 0.9) 100%);
}

.page-header .breadcrumb {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    margin-bottom: 1rem;
    opacity: 0.9;
}

.page-header .breadcrumb a {
    color: white;
}

.page-header .breadcrumb .separator {
    opacity: 0.5;
}

.page-description {
    max-width: 600px;
    margin: 0 auto;
    font-size: 1.125rem;
}

/* ==========================================================================
   Projects Archive
   ========================================================================== */
.filter-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    background: white;
    padding: 1.5rem;
    border-radius: var(--radius);
    box-shadow: var(--shadow-md);
    margin-bottom: 2rem;
}

.filter-search {
    flex: 1;
    min-width: 250px;
    position: relative;
}

.filter-search input {
    width: 100%;
    padding: 0.875rem 1rem 0.875rem 3rem;
    border: 1px solid hsl(var(--color-border));
    border-radius: var(--radius);
    font-size: 1rem;
}

.filter-search input:focus {
    outline: none;
    border-color: hsl(var(--color-primary));
}

.filter-search svg {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: hsl(var(--color-muted-foreground));
}

.filter-selects {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.filter-select {
    padding: 0.875rem 2.5rem 0.875rem 1rem;
    border: 1px solid hsl(var(--color-border));
    border-radius: var(--radius);
    font-size: 0.9375rem;
    background: white;
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%236b7280' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
}

.filter-select:focus {
    outline: none;
    border-color: hsl(var(--color-primary));
}

.projects-archive-grid {
    display: grid;
    gap: 2rem;
}

@media (min-width: 640px) {
    .projects-archive-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 1024px) {
    .projects-archive-grid { grid-template-columns: repeat(3, 1fr); }
}

.project-archive-card {
    background: white;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: all var(--transition);
}

.project-archive-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-xl);
}

.project-card-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

.project-card-image {
    position: relative;
    aspect-ratio: 16/10;
    overflow: hidden;
    background: hsl(var(--color-muted));
}

.project-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

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

.project-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: hsl(var(--color-muted-foreground));
}

.project-status-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.status-completed,
.status-done {
    background: #10b981;
    color: white;
}

.status-ongoing,
.status-in-progress {
    background: hsl(var(--color-primary));
    color: white;
}

.project-card-content {
    padding: 1.5rem;
}

.project-meta {
    display: flex;
    gap: 1rem;
    font-size: 0.75rem;
    color: hsl(var(--color-muted-foreground));
    margin-bottom: 0.75rem;
}

.project-title {
    font-size: 1.125rem;
    margin-bottom: 0.5rem;
    line-height: 1.3;
}

.project-client {
    font-size: 0.875rem;
    color: hsl(var(--color-primary));
    margin-bottom: 0.75rem;
}

.project-excerpt {
    font-size: 0.875rem;
    color: hsl(var(--color-muted-foreground));
    margin-bottom: 1rem;
    line-height: 1.6;
}

.project-read-more {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: hsl(var(--color-primary));
    font-weight: 500;
    font-size: 0.875rem;
}

.project-read-more svg {
    transition: transform var(--transition);
}

.project-archive-card:hover .project-read-more svg {
    transform: translateX(4px);
}

/* Pagination */
.pagination-wrapper {
    margin-top: 3rem;
    display: flex;
    justify-content: center;
}

.pagination-wrapper .nav-links {
    display: flex;
    gap: 0.5rem;
}

.pagination-wrapper a,
.pagination-wrapper span {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 0.75rem;
    border-radius: var(--radius);
    font-weight: 500;
    transition: all var(--transition);
}

.pagination-wrapper a {
    background: white;
    color: hsl(var(--color-foreground));
    box-shadow: var(--shadow-sm);
}

.pagination-wrapper a:hover {
    background: hsl(var(--color-primary));
    color: white;
}

.pagination-wrapper .current {
    background: hsl(var(--color-primary));
    color: white;
}

.no-results-message {
    text-align: center;
    padding: 4rem 2rem;
    color: hsl(var(--color-muted-foreground));
}

.no-results-message svg {
    margin-bottom: 1rem;
    opacity: 0.5;
}

.no-results-message h3 {
    margin-bottom: 0.5rem;
}

/* ==========================================================================
   Projects Archive Page - React Our Works Parity
   ========================================================================== */

/* Hero Section */
.projects-archive-page .projects-hero {
    position: relative;
    padding: 8rem 0 5rem;
    min-height: 400px;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.projects-hero-bg {
    position: absolute;
    inset: 0;
}

.projects-hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.projects-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to right, rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.4), transparent);
}

.projects-archive-page .projects-hero .container {
    position: relative;
    z-index: 10;
}

.projects-archive-page .projects-hero .breadcrumb {
    margin-bottom: 1.5rem;
}

.projects-archive-page .projects-hero .breadcrumb a,
.projects-archive-page .projects-hero .breadcrumb span {
    color: rgba(255, 255, 255, 0.9);
}

.projects-archive-page .projects-hero .breadcrumb .separator {
    margin: 0 0.5rem;
    color: rgba(255, 255, 255, 0.5);
}

.projects-hero-badge {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 9999px;
    color: white;
    font-size: 0.875rem;
    font-weight: 500;
    margin-bottom: 1.5rem;
    backdrop-filter: blur(10px);
}

.projects-hero-title {
    font-size: 3rem;
    font-weight: 700;
    color: white;
    margin-bottom: 1.5rem;
    text-shadow: 0 4px 8px rgba(0, 0, 0, 0.5);
}

.projects-hero-description {
    font-size: 1.25rem;
    color: rgba(255, 255, 255, 0.9);
    max-width: 42rem;
    line-height: 1.6;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

@media (max-width: 768px) {
    .projects-archive-page .projects-hero {
        padding: 6rem 0 3rem;
        min-height: 320px;
    }
    .projects-hero-title {
        font-size: 2rem;
    }
    .projects-hero-description {
        font-size: 1rem;
    }
}

/* Stats Section */
.projects-stats-section {
    padding: 5rem 0;
    position: relative;
}

.projects-stats-card {
    background: white;
    border-radius: 1.5rem;
    box-shadow: var(--shadow-xl);
    padding: 2rem 3rem;
    border: 1px solid hsl(var(--color-border));
}

.projects-stats-title {
    font-size: 1.875rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 3rem;
    color: hsl(var(--color-foreground));
}

.projects-stats-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
}

@media (min-width: 768px) {
    .projects-stats-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

.projects-stat-item {
    text-align: center;
}

.projects-stat-icon {
    width: 4rem;
    height: 4rem;
    margin: 0 auto 1rem;
    border-radius: 1rem;
    background: hsl(var(--color-primary) / 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: hsl(var(--color-primary));
    transition: var(--transition-smooth);
}

.projects-stat-item:hover .projects-stat-icon {
    background: hsl(var(--color-primary));
    color: white;
    box-shadow: 0 8px 20px hsl(var(--color-primary) / 0.3);
}

.projects-stat-value {
    font-size: 2.5rem;
    font-weight: 700;
    color: hsl(var(--color-primary));
    margin-bottom: 0.5rem;
}

.projects-stat-label {
    font-size: 0.875rem;
    color: hsl(var(--color-muted-foreground));
}

@media (max-width: 640px) {
    .projects-stats-card {
        padding: 1.5rem;
    }
    .projects-stat-value {
        font-size: 2rem;
    }
}

/* Tab Navigation */
.projects-tabs-section {
    background: #e5e7eb;
    padding-top: 4rem;
}

.projects-tab-nav {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

@media (min-width: 768px) {
    .projects-tab-nav {
        gap: 3rem;
    }
}

.projects-tab-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    background: none;
    border: none;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.projects-tab-btn:hover {
    transform: scale(1.05);
}

.projects-tab-icon {
    width: 5rem;
    height: 5rem;
    border-radius: 0.75rem;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.8);
    color: hsl(var(--color-primary));
    transition: var(--transition-smooth);
}

@media (min-width: 768px) {
    .projects-tab-icon {
        width: 6rem;
        height: 6rem;
    }
}

.projects-tab-btn.active .projects-tab-icon {
    background: hsl(var(--color-primary));
    color: white;
    ring: 4px;
    ring-color: hsl(var(--color-primary));
    ring-offset: 2px;
    box-shadow: 0 0 0 4px hsl(var(--color-primary)), 0 0 0 6px white, var(--shadow-lg);
}

.projects-tab-btn span {
    font-size: 0.875rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    color: #374151;
}

.projects-tab-btn.active span {
    color: hsl(var(--color-primary));
}

/* Tab Content */
.projects-tab-content {
    background: white;
    padding: 3rem 0;
    margin-top: 1rem;
}

.projects-tab-pane {
    display: none;
}

.projects-tab-pane.active {
    display: block;
}

.projects-content-header {
    margin-bottom: 2rem;
}

.projects-section-title {
    font-size: 1.875rem;
    color: hsl(var(--color-primary));
    margin-bottom: 1.5rem;
}

@media (min-width: 768px) {
    .projects-section-title {
        font-size: 2.25rem;
    }
}

.projects-section-title strong {
    font-weight: 900;
}

.projects-subtitle {
    font-style: italic;
    color: hsl(var(--color-muted-foreground));
    font-size: 1.25rem;
    font-weight: 400;
}

.projects-title-divider {
    width: 100%;
    height: 1px;
    background: hsl(var(--color-primary) / 0.3);
    margin-bottom: 1.5rem;
}

/* Search and Filter Bar */
.projects-filter-bar {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    background: #f9fafb;
    border-radius: 1rem;
    padding: 1rem;
    border: 1px solid hsl(var(--color-border));
    margin-bottom: 1.5rem;
}

@media (min-width: 768px) {
    .projects-filter-bar {
        flex-direction: row;
        align-items: center;
    }
}

.projects-search-wrapper {
    flex: 1;
    position: relative;
}

.projects-search-wrapper svg {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: hsl(var(--color-muted-foreground));
}

.projects-search-input {
    width: 100%;
    height: 3rem;
    padding: 0 1rem 0 3rem;
    border: 1px solid hsl(var(--color-border));
    border-radius: 0.5rem;
    font-size: 1rem;
    background: white;
}

.projects-search-input:focus {
    outline: none;
    border-color: hsl(var(--color-primary));
}

.projects-filter-wrapper {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.projects-filter-wrapper svg {
    color: hsl(var(--color-muted-foreground));
}

.projects-category-select {
    width: 100%;
    height: 3rem;
    padding: 0 2.5rem 0 1rem;
    border: 1px solid hsl(var(--color-border));
    border-radius: 0.5rem;
    font-size: 1rem;
    background: white;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%236b7280' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    cursor: pointer;
}

@media (min-width: 768px) {
    .projects-category-select {
        width: 280px;
    }
}

.projects-category-select:focus {
    outline: none;
    border-color: hsl(var(--color-primary));
}

/* Results Count */
.projects-results-count {
    font-size: 0.875rem;
    color: hsl(var(--color-muted-foreground));
    margin-bottom: 2rem;
}

.projects-results-count strong {
    color: hsl(var(--color-foreground));
}

/* No Results */
.projects-no-results {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 3rem;
    background: #f9fafb;
    border-radius: 1rem;
    border: 1px solid hsl(var(--color-border));
    text-align: center;
}

.projects-no-results svg {
    color: hsl(var(--color-muted-foreground));
    margin-bottom: 1rem;
}

.projects-no-results h4 {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.projects-no-results p {
    color: hsl(var(--color-muted-foreground));
}

/* Category Groups */
.projects-category-group {
    margin-bottom: 2.5rem;
}

.projects-category-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.projects-category-bar {
    width: 0.375rem;
    height: 2.5rem;
    background: hsl(var(--color-primary));
    border-radius: 9999px;
}

.projects-category-bar.uncategorised {
    background: hsl(var(--color-muted-foreground));
}

.projects-category-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: hsl(var(--color-foreground));
}

.projects-category-desc {
    font-size: 0.875rem;
    color: hsl(var(--color-muted-foreground));
}

/* Projects Grid */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

@media (min-width: 768px) {
    .projects-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (min-width: 1024px) {
    .projects-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (min-width: 1280px) {
    .projects-grid {
        grid-template-columns: repeat(5, 1fr);
    }
}

/* Project Card */
.project-card {
    display: block;
    text-decoration: none;
    background: white;
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    border: 1px solid hsl(var(--color-border));
    transition: var(--transition-spring);
}

.project-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
    border-color: hsl(var(--color-primary) / 0.3);
}

.project-card-image {
    aspect-ratio: 3/4;
    overflow: hidden;
    background: linear-gradient(135deg, hsl(var(--color-muted) / 0.5), hsl(var(--color-muted)));
    position: relative;
}

.project-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.project-card:hover .project-card-image img {
    transform: scale(1.1);
}

.project-card-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: hsl(var(--color-muted-foreground));
}

.project-card-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.6), transparent, transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
    display: flex;
    align-items: flex-end;
    padding: 0.75rem;
}

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

.project-card-cta {
    color: white;
    font-size: 0.75rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.project-card-content {
    padding: 1rem;
    background: linear-gradient(to bottom, transparent, hsl(var(--color-muted) / 0.2));
}

.project-card-title {
    font-size: 0.875rem;
    font-weight: 600;
    color: hsl(var(--color-foreground));
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: color 0.3s ease;
}

.project-card:hover .project-card-title {
    color: hsl(var(--color-primary));
}

/* Uncategorised Projects */
.projects-uncategorised-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
}

@media (min-width: 768px) {
    .projects-uncategorised-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .projects-uncategorised-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.project-uncategorised-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    background: linear-gradient(to right, #f9fafb, white);
    border-radius: 0.75rem;
    padding: 1.25rem;
    border: 1px solid hsl(var(--color-border));
    transition: var(--transition-smooth);
}

.project-uncategorised-item:hover {
    border-color: hsl(var(--color-primary) / 0.3);
    box-shadow: var(--shadow-lg);
}

.project-uncategorised-icon {
    width: 3rem;
    height: 3rem;
    border-radius: 50%;
    background: hsl(var(--color-primary) / 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: hsl(var(--color-primary));
    flex-shrink: 0;
    transition: var(--transition-smooth);
}

.project-uncategorised-item:hover .project-uncategorised-icon {
    background: hsl(var(--color-primary));
    color: white;
}

.project-uncategorised-name {
    font-weight: 600;
    color: hsl(var(--color-foreground));
}

.project-uncategorised-location {
    font-size: 0.875rem;
    color: hsl(var(--color-primary));
    font-weight: 500;
}

/* Clients Tab */
.projects-clients-intro {
    color: #4b5563;
    font-size: 1.125rem;
    margin-bottom: 2rem;
    line-height: 1.7;
}

.projects-clients-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

@media (min-width: 768px) {
    .projects-clients-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (min-width: 1024px) {
    .projects-clients-grid {
        grid-template-columns: repeat(6, 1fr);
    }
}

.projects-client-card {
    background: white;
    border-radius: 1rem;
    padding: 1rem;
    border: 1px solid hsl(var(--color-border));
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.projects-client-card:hover {
    border-color: hsl(var(--color-primary) / 0.3);
    box-shadow: var(--shadow-xl);
}

.projects-client-card img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    filter: grayscale(1);
    transition: filter 0.3s ease;
}

.projects-client-card:hover img {
    filter: grayscale(0);
}

/* Lightbox */
.projects-lightbox {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.8);
    z-index: 9999;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.projects-lightbox.active {
    display: flex;
}

.projects-lightbox-close {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    background: white;
    border: none;
    width: 3rem;
    height: 3rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: transform 0.2s ease;
}

.projects-lightbox-close:hover {
    transform: scale(1.1);
}

.projects-lightbox-content {
    background: white;
    border-radius: 1rem;
    padding: 2rem;
    max-width: 42rem;
    width: 100%;
}

.projects-lightbox-content img {
    width: 100%;
    height: auto;
}

/* Empty State */
.projects-empty-state {
    text-align: center;
    padding: 4rem 2rem;
    color: hsl(var(--color-muted-foreground));
}

/* ==========================================================================
   Who We Are Page
   ========================================================================== */
.about-intro {
    display: grid;
    gap: 3rem;
    align-items: center;
}

@media (min-width: 1024px) {
    .about-intro { grid-template-columns: 1fr 1fr; }
}

.about-intro-content .lead {
    font-size: 1.25rem;
    color: hsl(var(--color-foreground));
    margin-bottom: 1.5rem;
}

.about-intro-content p {
    color: hsl(var(--color-muted-foreground));
    margin-bottom: 1rem;
    line-height: 1.7;
}

.about-intro-image {
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-xl);
}

.about-intro-image img {
    width: 100%;
    height: auto;
}

/* Vision & Mission */
.vision-mission-section {
    background: hsl(var(--color-muted));
}

.vision-mission-grid {
    display: grid;
    gap: 2rem;
}

@media (min-width: 768px) {
    .vision-mission-grid { grid-template-columns: 1fr 1fr; }
}

.vision-card,
.mission-card {
    background: white;
    padding: 2.5rem;
    border-radius: var(--radius);
    box-shadow: var(--shadow-md);
    text-align: center;
}

.vm-icon {
    width: 70px;
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: hsl(var(--color-primary));
    border-radius: 50%;
    color: white;
    margin: 0 auto 1.5rem;
}

.vision-card h3,
.mission-card h3 {
    margin-bottom: 1rem;
}

.vision-card p,
.mission-card p {
    color: hsl(var(--color-muted-foreground));
    line-height: 1.7;
}

/* Stats Section Large */
.stats-section {
    background: hsl(var(--color-primary));
    color: white;
}

.stats-grid-large {
    display: grid;
    gap: 2rem;
    text-align: center;
}

@media (min-width: 640px) {
    .stats-grid-large { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 1024px) {
    .stats-grid-large { grid-template-columns: repeat(4, 1fr); }
}

.stat-card {
    padding: 2rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: var(--radius);
    backdrop-filter: blur(10px);
}

.stat-card .stat-number {
    color: white;
}

.stat-card .stat-label {
    color: rgba(255, 255, 255, 0.9);
}

/* Management */
.management-content {
    display: grid;
    gap: 3rem;
    align-items: center;
    max-width: 900px;
    margin: 0 auto;
}

@media (min-width: 768px) {
    .management-content { grid-template-columns: 250px 1fr; }
}

.management-image {
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-xl);
}

.management-image img {
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
}

.management-info h3 {
    font-size: 1.5rem;
    margin-bottom: 0.25rem;
}

.management-info .position {
    color: hsl(var(--color-primary));
    font-weight: 500;
    margin-bottom: 1rem;
}

.management-info .bio {
    color: hsl(var(--color-muted-foreground));
    line-height: 1.7;
}

/* Team Page Section */
.team-page-section {
    background: hsl(var(--color-muted));
}

.team-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: hsl(var(--color-muted));
    color: hsl(var(--color-muted-foreground));
}

.section-cta {
    text-align: center;
    margin-top: 3rem;
}

.no-content-message {
    grid-column: 1 / -1;
    text-align: center;
    color: hsl(var(--color-muted-foreground));
    padding: 2rem;
}

/* Advisory Section */
.advisory-section {
    background: white;
}

.advisory-grid {
    display: grid;
    gap: 2rem;
}

@media (min-width: 640px) {
    .advisory-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 1024px) {
    .advisory-grid { grid-template-columns: repeat(4, 1fr); }
}

/* Careers CTA */
.careers-cta-section {
    background: #e6e6e6;
}

.careers-cta-content {
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
}

.careers-cta-content h2 {
    margin-bottom: 1rem;
}

.careers-cta-content p {
    color: hsl(var(--color-muted-foreground));
    margin-bottom: 2rem;
}

/* ==========================================================================
   What We Do Page
   ========================================================================== */
.services-intro {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 4rem;
}

.services-intro h2 {
    margin-bottom: 1rem;
}

.services-intro .lead {
    font-size: 1.125rem;
    color: hsl(var(--color-muted-foreground));
}

.services-detailed-grid {
    display: grid;
    gap: 2rem;
}

.service-detailed-card {
    display: grid;
    gap: 2rem;
    background: hsl(var(--color-muted));
    padding: 2.5rem;
    border-radius: var(--radius);
    align-items: start;
}

@media (min-width: 768px) {
    .service-detailed-card { grid-template-columns: auto 1fr; }
}

.service-icon-large {
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: hsl(var(--color-primary));
    border-radius: var(--radius);
    color: white;
}

.service-detailed-content h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.service-detailed-content > p {
    color: hsl(var(--color-muted-foreground));
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

.service-features {
    list-style: none;
    padding: 0;
    margin: 0 0 1.5rem;
    display: grid;
    gap: 0.5rem;
}

@media (min-width: 640px) {
    .service-features { grid-template-columns: 1fr 1fr; }
}

.service-features li {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9375rem;
}

.service-features li::before {
    content: '';
    width: 6px;
    height: 6px;
    background: hsl(var(--color-primary));
    border-radius: 50%;
}

.btn-outline-dark {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    background: transparent;
    border: 2px solid hsl(var(--color-foreground));
    color: hsl(var(--color-foreground));
    border-radius: var(--radius);
    font-weight: 500;
    transition: all var(--transition);
}

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

/* Service Delivery */
.service-delivery-section {
    background: hsl(var(--color-muted));
}

.delivery-steps {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: flex-start;
    gap: 0;
}

.delivery-step {
    flex: 1;
    min-width: 200px;
    max-width: 280px;
    text-align: center;
    padding: 2rem 1rem;
}

.step-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: hsl(var(--color-primary));
    margin-bottom: 1rem;
    font-family: var(--font-heading);
}

.delivery-step h4 {
    margin-bottom: 0.5rem;
}

.delivery-step p {
    color: hsl(var(--color-muted-foreground));
    font-size: 0.875rem;
}

.delivery-connector {
    width: 60px;
    height: 2px;
    background: hsl(var(--color-primary));
    margin-top: 4rem;
    display: none;
}

@media (min-width: 1024px) {
    .delivery-connector { display: block; }
}

/* Contact CTA Section */
.contact-cta-section {
    background: #e6e6e6;
}

.cta-content {
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
}

.cta-content h2 {
    margin-bottom: 1rem;
}

.cta-content > p {
    color: hsl(var(--color-muted-foreground));
    margin-bottom: 2rem;
}

.cta-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* ==========================================================================
   Footer Brand Fix
   ========================================================================== */
.footer-brand {
    max-width: 300px;
}

.footer-brand h3 {
    color: white;
    margin-bottom: 1rem;
}

.footer-brand p {
    opacity: 0.9;
    line-height: 1.7;
    font-size: 0.9375rem;
}

.footer-social {
    display: flex;
    gap: 0.75rem;
}

.footer-social a {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    color: white;
    transition: all var(--transition);
}

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

.footer-column h4,
.footer-column .widget-title {
    color: white;
    font-size: 1rem;
    margin-bottom: 1.25rem;
}

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

.footer-column li {
    margin-bottom: 0.625rem;
}

.footer-column a {
    color: rgba(255, 255, 255, 0.85);
    font-size: 0.9375rem;
}

.footer-column a:hover {
    color: white;
}

/* ==========================================================================
   Utilities
   ========================================================================== */
.text-center { text-align: center; }
.text-primary { color: hsl(var(--color-primary)); }
.bg-primary { background-color: hsl(var(--color-primary)); }
.bg-muted { background-color: hsl(var(--color-muted)); }

/* ==========================================================================
   Glassmorphism Utilities
   ========================================================================== */
.glass {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: var(--shadow-glass);
}

.glass-card {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(40px);
    -webkit-backdrop-filter: blur(40px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: var(--shadow-glass);
}

.bg-gradient-primary {
    background-image: var(--gradient-primary);
}

.bg-gradient-mesh {
    background-image: var(--gradient-mesh);
}

/* ==========================================================================
   Enhanced Animations
   ========================================================================== */
.animate-fade-in {
    animation: fadeIn 0.6s ease-out forwards;
}

.animate-fade-in-up {
    animation: fadeInUp 0.6s ease-out forwards;
}

.animate-slide-in {
    animation: slideIn 0.5s ease-out forwards;
}

.animate-scale-in {
    animation: scaleIn 0.4s ease-out forwards;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

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

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.95);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes shimmer {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}

@keyframes glow {
    0%, 100% { box-shadow: 0 0 20px rgba(141, 37, 125, 0.3); }
    50% { box-shadow: 0 0 40px rgba(141, 37, 125, 0.6); }
}

/* Hover lift effect */
.hover-lift {
    transition: all 0.3s ease;
}

.hover-lift:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-xl);
}

/* Enhanced Card Hover */
.card-hover-enhanced {
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.card-hover-enhanced:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
}

/* Gradient text */
.gradient-text {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ==========================================================================
   Enhanced Service Cards (Matching React)
   ========================================================================== */
.services-section.enhanced .services-grid {
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    gap: 1.5rem;
}

@media (min-width: 768px) {
    .services-section.enhanced .services-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (min-width: 1024px) {
    .services-section.enhanced .services-grid { grid-template-columns: repeat(5, 1fr); }
}

.service-card-enhanced {
    background: white;
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    box-shadow: var(--shadow-md);
    transition: all 0.5s ease;
    text-decoration: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    border: 1px solid hsl(var(--color-border) / 0.5);
}

.service-card-enhanced:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
}

.service-card-enhanced .service-icon {
    width: 64px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: hsl(var(--color-foreground));
    border-radius: var(--radius);
    margin-bottom: 1.25rem;
    color: white;
    transition: all 0.3s ease;
}

.service-card-enhanced:hover .service-icon {
    background: hsl(var(--color-primary));
}

.service-card-enhanced h3 {
    font-size: 1.125rem;
    font-weight: 700;
    color: hsl(var(--color-primary));
    margin-bottom: 0.75rem;
    transition: color 0.3s ease;
}

.service-card-enhanced:hover h3 {
    color: hsl(var(--color-foreground));
}

.service-card-enhanced p {
    font-size: 0.875rem;
    color: hsl(var(--color-muted-foreground));
    line-height: 1.6;
    margin-bottom: 1rem;
    flex-grow: 1;
}

.service-card-enhanced .more-link {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    font-size: 0.875rem;
    font-weight: 600;
    color: hsl(var(--color-primary));
    border-bottom: 2px solid hsl(var(--color-primary));
    padding-bottom: 0.25rem;
    transition: all 0.3s ease;
}

.service-card-enhanced:hover .more-link {
    color: hsl(var(--color-foreground));
    border-color: hsl(var(--color-foreground));
}

.service-card-enhanced .more-link svg {
    width: 16px;
    height: 16px;
    opacity: 0;
    transform: translateX(-4px);
    transition: all 0.3s ease;
}

.service-card-enhanced:hover .more-link svg {
    opacity: 1;
    transform: translateX(0);
}

/* ==========================================================================
   Enhanced Project Cards (Matching React)
   ========================================================================== */
.project-card-enhanced {
    background: hsl(var(--color-card));
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    border: 1px solid hsl(var(--color-border) / 0.5);
    transition: all 0.5s ease;
    text-decoration: none;
    display: block;
}

.project-card-enhanced:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-xl);
}

.project-card-enhanced .project-inner {
    display: flex;
    flex-direction: column;
}

@media (min-width: 768px) {
    .project-card-enhanced .project-inner {
        flex-direction: row;
    }
}

.project-card-enhanced .project-image {
    width: 100%;
    height: 200px;
    overflow: hidden;
    background: hsl(var(--color-muted));
    flex-shrink: 0;
}

@media (min-width: 768px) {
    .project-card-enhanced .project-image {
        width: 320px;
        height: auto;
    }
}

.project-card-enhanced .project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.7s ease;
}

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

.project-card-enhanced .project-content {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    flex: 1;
}

.project-card-enhanced .project-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    color: hsl(var(--color-muted-foreground));
    margin-bottom: 0.75rem;
}

.project-card-enhanced .project-meta-divider {
    color: hsl(var(--color-border));
}

.project-card-enhanced .project-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: hsl(var(--color-primary));
    margin-bottom: 1rem;
    transition: color 0.3s ease;
    line-height: 1.3;
}

@media (min-width: 768px) {
    .project-card-enhanced .project-title { font-size: 1.5rem; }
}

.project-card-enhanced:hover .project-title {
    color: hsl(310 58% 45%);
}

.project-status-badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 600;
    width: fit-content;
}

.project-status-badge.current {
    background: rgba(34, 197, 94, 0.1);
    color: #16a34a;
    border: 1px solid rgba(34, 197, 94, 0.3);
}

.project-status-badge.completed {
    background: hsl(var(--color-muted));
    color: hsl(var(--color-muted-foreground));
}

/* ==========================================================================
   Client Carousel (Matching React)
   ========================================================================== */
.clients-carousel-section {
    margin-top: 5rem;
}

.clients-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

@media (min-width: 640px) {
    .clients-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (min-width: 768px) {
    .clients-grid { grid-template-columns: repeat(4, 1fr); }
}

@media (min-width: 1024px) {
    .clients-grid { grid-template-columns: repeat(5, 1fr); }
}

.client-card {
    background: hsl(var(--color-card) / 0.8);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid hsl(var(--color-border) / 0.5);
    border-radius: var(--radius);
    padding: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 150px;
    transition: all 0.7s ease;
    position: relative;
    overflow: hidden;
}

.client-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, hsl(var(--color-primary) / 0.05) 0%, transparent 50%, hsl(var(--color-primary) / 0.1) 100%);
    opacity: 0;
    transition: opacity 0.7s ease;
}

.client-card:hover {
    transform: translateY(-12px);
    box-shadow: var(--shadow-xl);
    border-color: hsl(var(--color-primary) / 0.3);
}

.client-card:hover::before {
    opacity: 1;
}

.client-card img {
    max-width: 100%;
    max-height: 100px;
    object-fit: contain;
    transition: all 0.7s ease;
    position: relative;
    z-index: 1;
}

.client-card:hover img {
    transform: scale(1.1);
    filter: brightness(1.1);
}

/* Divider Line */
.section-divider {
    width: 96px;
    height: 6px;
    background: hsl(var(--color-primary));
    margin: 1.5rem auto 0;
    border-radius: 9999px;
}

/* Screen Reader Only */
.screen-reader-text {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.screen-reader-text:focus {
    background-color: #f1f1f1;
    border-radius: 3px;
    box-shadow: 0 0 2px 2px rgba(0, 0, 0, 0.6);
    clip: auto !important;
    color: #21759b;
    display: block;
    font-size: 0.875rem;
    font-weight: 700;
    height: auto;
    left: 5px;
    line-height: normal;
    padding: 15px 23px 14px;
    text-decoration: none;
    top: 5px;
    width: auto;
    z-index: 100000;
}

/* Screen Reader Only */
.screen-reader-text {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.screen-reader-text:focus {
    background-color: #f1f1f1;
    border-radius: 3px;
    box-shadow: 0 0 2px 2px rgba(0, 0, 0, 0.6);
    clip: auto !important;
    color: #21759b;
    display: block;
    font-size: 0.875rem;
    font-weight: 700;
    height: auto;
    left: 5px;
    line-height: normal;
    padding: 15px 23px 14px;
    text-decoration: none;
    top: 5px;
    width: auto;
    z-index: 100000;
}

/* ==========================================================================
   Clients Carousel Section (Enhanced)
   ========================================================================== */
.clients-section {
    background: hsl(var(--color-background));
    padding: 5rem 0;
    position: relative;
    overflow: hidden;
}

.clients-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--gradient-mesh);
    opacity: 0.3;
    animation: pulse 12s ease-in-out infinite;
}

.clients-section .section-header {
    text-align: center;
    margin-bottom: 3rem;
    position: relative;
    z-index: 1;
}

.clients-carousel-wrapper {
    position: relative;
    overflow: hidden;
    padding: 1rem 0;
    mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
    -webkit-mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
}

.clients-carousel {
    display: flex;
    gap: 2rem;
    animation: scroll-clients 40s linear infinite;
    width: max-content;
}

.clients-carousel:hover {
    animation-play-state: paused;
}

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

.clients-section .client-card {
    flex-shrink: 0;
    width: 160px;
    height: 100px;
    background: hsla(var(--color-card), 0.8);
    backdrop-filter: blur(10px);
    border-radius: var(--radius);
    padding: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-sm);
    transition: var(--transition-smooth);
    border: 1px solid hsla(var(--color-border), 0.5);
}

.clients-section .client-card:hover {
    transform: scale(1.08) translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: hsl(var(--color-primary) / 0.3);
}

.clients-section .client-card img {
    max-width: 100%;
    max-height: 60px;
    object-fit: contain;
    filter: grayscale(100%);
    opacity: 0.7;
    transition: all 0.4s ease;
}

.clients-section .client-card:hover img {
    filter: grayscale(0%);
    opacity: 1;
    transform: scale(1.05);
}

/* Partners Inner Section */
.partners-section-inner {
    margin-top: 4rem;
    padding-top: 3rem;
    border-top: 1px solid hsl(var(--color-border));
    text-align: center;
    position: relative;
    z-index: 1;
}

.partners-title {
    font-size: 1.5rem;
    color: hsl(var(--color-foreground));
    margin-bottom: 2rem;
}

.partners-grid {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.partner-card {
    background: hsla(var(--color-card), 0.8);
    backdrop-filter: blur(10px);
    border-radius: var(--radius-lg);
    padding: 1.5rem 2rem;
    box-shadow: var(--shadow-md);
    transition: var(--transition-spring);
    border: 1px solid transparent;
}

.partner-card:hover {
    transform: translateY(-8px) rotate(2deg);
    box-shadow: var(--shadow-xl);
    border-color: hsl(var(--color-primary) / 0.3);
}

.partner-card img {
    height: 60px;
    width: auto;
    object-fit: contain;
    transition: all 0.5s ease;
    filter: grayscale(100%);
}

.partner-card:hover img {
    filter: grayscale(0%);
    transform: scale(1.15);
}

@media (max-width: 768px) {
    .clients-section .client-card {
        width: 120px;
        height: 80px;
        padding: 0.75rem;
    }
    
    .clients-section .client-card img {
        max-height: 45px;
    }
    
    .partners-grid {
        gap: 1rem;
    }
    
    .partner-card {
        padding: 1rem 1.5rem;
    }
    
    .partner-card img {
        height: 45px;
    }
}

/* Page Header with Fallback Images */
.page-header-background img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Service Cards with Images */
.service-card-with-image {
    position: relative;
    overflow: hidden;
    border-radius: var(--radius-lg);
}

.service-card-with-image .service-image {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.service-card-with-image .service-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.service-card-with-image:hover .service-image img {
    transform: scale(1.1);
}

.service-card-with-image .service-content {
    position: relative;
    z-index: 1;
    background: linear-gradient(to top, hsla(0, 0%, 0%, 0.8) 0%, transparent 100%);
    padding: 2rem;
    color: white;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}

/* ==========================================================================
   Navigation Enhancements (Matching React)
   ========================================================================== */

/* Language Selector */
.language-selector {
    margin-left: 1rem;
}

.language-select {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: var(--radius);
    padding: 0.5rem 0.75rem;
    color: white;
    font-size: 0.875rem;
    cursor: pointer;
    transition: all var(--transition);
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.5rem center;
    padding-right: 2rem;
}

.language-select:hover {
    background: rgba(255, 255, 255, 0.2);
}

.language-select option {
    background: hsl(var(--color-primary));
    color: white;
}

/* Nav Button */
.nav-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.625rem 1.25rem;
    margin-left: 0.75rem;
    font-size: 0.875rem;
    font-weight: 600;
    color: white;
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: var(--radius);
    transition: all var(--transition);
    text-decoration: none;
}

.nav-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    color: white;
}

/* Mobile Navigation Enhancements */
.mobile-language-selector {
    padding: 1rem;
}

.mobile-language-selector .language-select {
    width: 100%;
    background: rgba(141, 37, 125, 0.1);
    color: hsl(var(--color-foreground));
    border-color: hsl(var(--color-border));
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%238D257D' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
}

.mobile-nav-btn {
    display: block;
    margin: 1rem;
    padding: 1rem;
    text-align: center;
    font-weight: 600;
    color: white;
    background: hsl(var(--color-primary));
    border-radius: var(--radius);
    text-decoration: none;
    transition: all var(--transition);
}

.mobile-nav-btn:hover {
    background: hsl(310 58% 25%);
    color: white;
}

/* Sub-menu with arrow indicator */
.mobile-navigation .sub-item {
    color: hsl(var(--color-muted-foreground));
    font-size: 0.875rem;
    padding-left: 2rem;
}

/* Nested sub-menus */
.main-navigation .sub-menu .sub-menu {
    position: absolute;
    left: 100%;
    top: 0;
    min-width: 200px;
}

/* ==========================================================================
   Enhanced Footer (Matching React)
   ========================================================================== */
.site-footer {
    position: relative;
    background: hsl(var(--color-primary));
    color: white;
    overflow: hidden;
}

.footer-bg-mesh {
    position: absolute;
    inset: 0;
    background: var(--gradient-mesh);
    opacity: 0.3;
    animation: pulse 15s ease-in-out infinite;
}

.footer-bg-orb {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    filter: blur(60px);
}

.footer-bg-orb-1 {
    top: 0;
    left: 25%;
    width: 24rem;
    height: 24rem;
}

.footer-bg-orb-2 {
    bottom: 0;
    right: 25%;
    width: 20rem;
    height: 20rem;
    animation: bounce-slow 6s ease-in-out infinite;
}

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

@keyframes pulse {
    0%, 100% { opacity: 0.3; }
    50% { opacity: 0.5; }
}

.site-footer .container {
    position: relative;
    z-index: 10;
    padding-top: 4rem;
    padding-bottom: 0;
}

.footer-grid {
    display: grid;
    gap: 3rem;
    margin-bottom: 3rem;
}

@media (min-width: 768px) {
    .footer-grid { grid-template-columns: repeat(4, 1fr); }
}

.footer-brand {
    max-width: 280px;
}

.footer-logo {
    height: 4rem;
    width: auto;
    margin-bottom: 1rem;
}

.footer-brand img {
    height: 4rem;
    width: auto;
}

.footer-brand p {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.6;
}

.footer-column h4 {
    font-size: 1.125rem;
    font-weight: 600;
    color: white;
    margin-bottom: 1rem;
}

.footer-subtitle {
    margin-top: 1.5rem;
}

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

.footer-column li {
    margin-bottom: 0.75rem;
}

.footer-column a {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.875rem;
    text-decoration: none;
    transition: all 0.3s ease;
}

.footer-column a:hover {
    color: white;
}

.footer-arrow {
    transition: transform 0.3s ease;
}

.footer-column a:hover .footer-arrow {
    transform: translateX(4px);
}

/* Footer Contact Items */
.footer-contact .contact-items {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.contact-item-footer {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
}

.contact-icon-box {
    padding: 0.75rem;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 0.75rem;
    transition: all 0.5s ease;
}

.contact-item-footer:hover .contact-icon-box {
    transform: scale(1.1) rotate(6deg);
}

.contact-icon-box svg {
    width: 1.25rem;
    height: 1.25rem;
    color: white;
}

.contact-item-footer span {
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.875rem;
    line-height: 1.4;
    padding-top: 0.25rem;
    transition: transform 0.3s ease;
}

.contact-item-footer:hover span {
    transform: translateX(4px);
}

/* Social Icons */
.footer-social {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
}

.social-icon-box {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 3.5rem;
    height: 3.5rem;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 0.75rem;
    color: white;
    transition: all 0.5s ease;
}

.social-icon-box:hover {
    background: rgba(255, 255, 255, 0.2);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    transform: scale(1.25) rotate(-12deg);
}

.social-icon-box svg {
    width: 1.5rem;
    height: 1.5rem;
}

/* Footer Bottom */
.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    margin-top: 3rem;
    padding: 2rem 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    text-align: center;
}

@media (min-width: 768px) {
    .footer-bottom {
        flex-direction: row;
        justify-content: space-between;
        text-align: left;
    }
}

.footer-bottom p {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.8);
    margin: 0;
}

.footer-legal-links {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.footer-legal-links a {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-legal-links a:hover {
    color: white;
}

/* ==========================================================================
   Logo Display Fixes
   ========================================================================== */
/* Footer-only logo sizing (avoid overriding the header logo sizing) */
.site-footer .custom-logo-link img,
.site-footer .footer-brand img {
    height: 64px !important;
    width: auto !important;
    filter: brightness(0) invert(1);
}

/* (intentionally removed generic .site-logo/.custom-logo-link header overrides) */

/* ==========================================================================
   Dropdown Submenu Nested Support
   ========================================================================== */
.main-navigation .sub-menu .menu-item-has-children > a::after {
    border-top: 0;
    border-left: 4px solid currentColor;
    border-bottom: 4px solid transparent;
    border-top: 4px solid transparent;
    border-right: 0;
    margin-left: auto;
}

.main-navigation .sub-menu .sub-menu {
    left: 100%;
    top: 0;
    border-radius: var(--radius);
}

.main-navigation .sub-menu li:hover > .sub-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* ==========================================================================
   Course Detail Page Styles
   ========================================================================== */
.course-hero {
    padding: 8rem 0 4rem;
    background-size: cover;
    background-position: center;
    min-height: 300px;
    display: flex;
    align-items: center;
}

.course-hero-title {
    color: white;
    font-size: 2.5rem;
    margin-top: 1rem;
}

.course-meta-bar {
    background: hsl(var(--color-muted) / 0.5);
    border-bottom: 1px solid hsl(var(--color-border));
    padding: 1.5rem 0;
}

.course-meta-items {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    align-items: center;
}

.course-meta-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.course-meta-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: hsl(var(--color-primary) / 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: hsl(var(--color-primary));
}

.meta-label { font-size: 0.875rem; color: hsl(var(--color-muted-foreground)); }
.meta-value { font-weight: 600; }
.meta-price { color: hsl(var(--color-primary)); font-size: 1.125rem; }

.course-content-section { padding: 3rem 0; }
.course-grid { display: grid; grid-template-columns: 1fr; gap: 2rem; }
@media (min-width: 1024px) { .course-grid { grid-template-columns: 2fr 1fr; } }

.course-featured-image { border-radius: var(--radius-lg); overflow: hidden; margin-bottom: 2rem; box-shadow: var(--shadow-lg); }
.course-featured-image img { width: 100%; height: 300px; object-fit: cover; }
@media (min-width: 768px) { .course-featured-image img { height: 400px; } }

.course-title { font-size: 1.75rem; text-transform: uppercase; margin-bottom: 1rem; }
.course-description { color: hsl(var(--color-muted-foreground)); margin-bottom: 2rem; line-height: 1.7; }

/* Tabs */
.course-tabs { margin-top: 2rem; }
.tabs-nav { display: flex; flex-wrap: wrap; gap: 0.25rem; background: hsl(var(--color-muted) / 0.5); padding: 0.25rem; border-radius: var(--radius); margin-bottom: 1.5rem; }
.tab-btn { padding: 0.75rem 1rem; border: none; background: none; cursor: pointer; font-weight: 500; border-radius: var(--radius-sm); transition: all var(--transition); }
.tab-btn.active { background: hsl(var(--color-primary)); color: white; }
.tab-content { display: none; }
.tab-content.active { display: block; }
.tab-content h3 { font-size: 1.25rem; margin-bottom: 1rem; }

.info-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 1rem; }
.info-item { display: flex; align-items: center; gap: 0.75rem; padding: 1rem; background: hsl(var(--color-muted) / 0.5); border-radius: var(--radius); }
.info-item svg { color: hsl(var(--color-primary)); flex-shrink: 0; }
.info-item span { font-size: 0.875rem; color: hsl(var(--color-muted-foreground)); }

.syllabus-list { list-style: none; padding: 0; }
.syllabus-list li { display: flex; align-items: center; gap: 0.75rem; margin-bottom: 0.5rem; }
.syllabus-number { width: 24px; height: 24px; border-radius: 50%; background: hsl(var(--color-primary)); color: white; font-size: 0.75rem; display: flex; align-items: center; justify-content: center; font-weight: 600; }

.reviews-summary { display: flex; align-items: center; gap: 1.5rem; margin-bottom: 2rem; }
.rating-big { text-align: center; }
.rating-number { font-size: 2.5rem; font-weight: 700; color: hsl(var(--color-primary)); display: block; }
.rating-label { font-size: 0.875rem; color: hsl(var(--color-muted-foreground)); }
.stars { display: flex; gap: 0.25rem; }

.rating-bars { space-y: 0.75rem; }
.rating-bar-item { display: flex; align-items: center; gap: 0.75rem; margin-bottom: 0.75rem; }
.bar-label { width: 60px; font-size: 0.875rem; color: hsl(var(--color-muted-foreground)); }
.bar-track { flex: 1; height: 12px; background: hsl(var(--color-muted)); border-radius: 999px; overflow: hidden; }
.bar-fill { height: 100%; background: hsl(var(--color-primary)); border-radius: 999px; }
.bar-count { width: 30px; text-align: right; font-size: 0.875rem; color: hsl(var(--color-muted-foreground)); }

.comment-form-wrapper { margin-top: 2rem; padding: 1.5rem; background: hsl(var(--color-muted) / 0.5); border-radius: var(--radius-lg); }
.comment-form .form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin-bottom: 1rem; }
.comment-form input, .comment-form textarea { width: 100%; padding: 0.75rem 1rem; border: 1px solid hsl(var(--color-border)); border-radius: var(--radius-sm); background: white; }
.comment-form textarea { margin-bottom: 1rem; }

/* Sidebar */
.sidebar-card { background: white; border-radius: var(--radius-lg); padding: 1.5rem; box-shadow: var(--shadow-lg); border: 1px solid hsl(var(--color-border)); position: sticky; top: 100px; }
.sidebar-section { margin-bottom: 2rem; }
.sidebar-title { font-size: 1.125rem; margin-bottom: 1rem; padding-bottom: 0.5rem; border-bottom: 2px solid hsl(var(--color-primary)); display: inline-block; }
.categories-list { list-style: none; padding: 0; }
.categories-list li a { display: flex; justify-content: space-between; padding: 0.75rem 0; border-bottom: 1px solid hsl(var(--color-border)); color: hsl(var(--color-muted-foreground)); }
.categories-list li a:hover { color: hsl(var(--color-primary)); }
.customized-training { padding: 1rem; background: hsl(var(--color-primary) / 0.05); border-radius: var(--radius); border: 1px solid hsl(var(--color-primary) / 0.2); }
.training-link { color: hsl(var(--color-primary)); font-size: 0.875rem; font-weight: 500; }
.btn-enroll { width: 100%; padding: 1.25rem; font-size: 1.125rem; font-weight: 700; }

/* ==========================================================================
   How We Think Page Styles
   ========================================================================== */
.how-we-think-hero { position: relative; min-height: 70vh; display: flex; align-items: center; background-size: cover; background-position: center; padding-top: 5rem; }
.how-we-think-hero .hero-overlay { position: absolute; inset: 0; background: linear-gradient(to right, rgba(0,0,0,0.7), rgba(0,0,0,0.4)); }
.how-we-think-hero .container { position: relative; z-index: 1; }
.how-we-think-hero .hero-text h1 { font-size: 3rem; color: white; margin-top: 1rem; }
.how-we-think-hero .hero-text h1 span { color: rgba(255,255,255,0.8); }
.how-we-think-hero .hero-text p { font-size: 1.25rem; color: rgba(255,255,255,0.8); margin-top: 1rem; }
@media (min-width: 768px) { .how-we-think-hero .hero-text h1 { font-size: 4rem; } }

.events-sidebar-desktop { position: fixed; right: 0; top: 50%; transform: translateY(-50%); z-index: 40; display: none; }
@media (min-width: 768px) { .events-sidebar-desktop { display: block; } }
.events-tab { position: absolute; right: 0; top: 50%; transform: translateY(-50%); background: hsl(var(--color-primary)); color: white; padding: 0.75rem 2rem; border-radius: var(--radius) 0 0 var(--radius); cursor: pointer; writing-mode: vertical-rl; text-orientation: mixed; display: flex; align-items: center; gap: 0.5rem; font-weight: 600; transition: opacity 0.3s; }
.events-panel { width: 0; overflow: hidden; transition: width 0.3s; background: white; box-shadow: var(--shadow-xl); border-radius: var(--radius-lg) 0 0 var(--radius-lg); }
.events-sidebar-desktop:hover .events-tab { opacity: 0; }
.events-sidebar-desktop:hover .events-panel { width: 320px; }
.events-panel > h3 { padding: 1.5rem; font-size: 1.125rem; display: flex; align-items: center; gap: 0.5rem; }
.event-card { display: flex; gap: 0.75rem; padding: 1rem; margin: 0 1rem 1rem; background: linear-gradient(135deg, hsl(var(--color-primary) / 0.1), hsl(var(--color-primary) / 0.05)); border-radius: var(--radius); border: 1px solid hsl(var(--color-primary) / 0.2); transition: all 0.3s; }
.event-card:hover { border-color: hsl(var(--color-primary) / 0.4); box-shadow: var(--shadow-md); }
.event-icon { width: 40px; height: 40px; border-radius: var(--radius-sm); background: hsl(var(--color-primary) / 0.2); display: flex; align-items: center; justify-content: center; color: hsl(var(--color-primary)); flex-shrink: 0; }
.event-info h4 { font-size: 0.9375rem; margin-bottom: 0.25rem; }
.event-info p { font-size: 0.8125rem; color: hsl(var(--color-muted-foreground)); }

.context-section { padding: 4rem 0; }
.context-card { max-width: 900px; margin: 0 auto; padding: 2rem; background: var(--glass-bg); backdrop-filter: blur(10px); border-radius: var(--radius-xl); border: 1px solid var(--glass-border); }
.context-card p { font-size: 1.125rem; color: hsl(var(--color-muted-foreground)); margin-bottom: 1rem; }
.context-card .highlight { font-weight: 600; color: hsl(var(--color-foreground)); }

.thinking-beyond-section { padding: 5rem 0; position: relative; }
.thinking-beyond-section .bg-mesh { position: absolute; inset: 0; background: var(--gradient-mesh); opacity: 0.2; }
.thinking-content { text-align: center; max-width: 900px; margin: 0 auto; position: relative; }
.thinking-icon { color: hsl(var(--color-primary)); margin-bottom: 1.5rem; }
.thinking-content h2 { font-size: 2.5rem; margin-bottom: 1rem; }
.thinking-content h2 span { color: hsl(var(--color-primary)); }
.thinking-content p { font-size: 1.25rem; color: hsl(var(--color-muted-foreground)); }

.acting-purpose-section { padding: 5rem 0; background: var(--gradient-subtle); }
.acting-purpose-section h2 { text-align: center; font-size: 2.5rem; margin-bottom: 1rem; }
.acting-purpose-section h2 span { color: hsl(var(--color-primary)); }
.section-desc { text-align: center; font-size: 1.25rem; color: hsl(var(--color-muted-foreground)); margin-bottom: 3rem; }
.actions-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1.5rem; max-width: 900px; margin: 0 auto; }
.action-card { display: flex; align-items: center; gap: 1rem; padding: 1.5rem; background: var(--glass-bg); border-radius: var(--radius-lg); border: 1px solid var(--glass-border); transition: transform 0.3s; }
.action-card:hover { transform: scale(1.02); }
.action-bullet { width: 12px; height: 12px; border-radius: 50%; background: hsl(var(--color-primary)); flex-shrink: 0; }
.section-footer { text-align: center; margin-top: 2rem; font-size: 1.125rem; color: hsl(var(--color-muted-foreground)); max-width: 900px; margin-left: auto; margin-right: auto; }

.approach-section { padding: 5rem 0; position: relative; }
.approach-section .bg-mesh { position: absolute; inset: 0; background: var(--gradient-mesh); opacity: 0.2; }
.approach-section h2 { text-align: center; font-size: 2.5rem; margin-bottom: 3rem; position: relative; }
.approach-section h2 span { color: hsl(var(--color-primary)); }
.approaches-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 2rem; max-width: 1100px; margin: 0 auto; position: relative; }
.approach-card { padding: 2rem; background: var(--glass-bg); border-radius: var(--radius-xl); border: 1px solid var(--glass-border); transition: transform 0.3s; }
.approach-card:hover { transform: scale(1.03); }
.approach-icon { color: hsl(var(--color-primary)); margin-bottom: 1rem; }
.approach-card h3 { font-size: 1.5rem; margin-bottom: 1rem; }
.approach-card p { color: hsl(var(--color-muted-foreground)); font-size: 1.125rem; }

/* ==========================================================================
   Event Page Styles
   ========================================================================== */
.event-hero, .research-hero { position: relative; padding: 8rem 0 4rem; overflow: hidden; }
.event-hero-bg, .research-hero-bg { position: absolute; inset: 0; background: linear-gradient(135deg, hsl(var(--color-primary)), hsl(310 58% 45%)); }
.event-hero-bg::after, .research-hero-bg::after { content: ''; position: absolute; inset: 0; background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E"); }
.event-hero .container, .research-hero .container { position: relative; z-index: 1; }
.event-badge, .research-badge { display: inline-block; padding: 0.5rem 1rem; background: rgba(255,255,255,0.2); backdrop-filter: blur(10px); border-radius: 999px; color: white; font-size: 0.875rem; font-weight: 500; margin-bottom: 1.5rem; }
.event-hero-content h1, .research-hero-content h1 { font-size: 2.5rem; color: white; margin-bottom: 1rem; }
.event-hero-content h2 { font-size: 1.5rem; color: rgba(255,255,255,0.9); font-weight: 500; }
.research-hero-content p { font-size: 1.25rem; color: rgba(255,255,255,0.9); }
@media (min-width: 768px) { .event-hero-content h1, .research-hero-content h1 { font-size: 3rem; } }

.event-details-section { padding: 4rem 0; background: hsl(var(--color-muted) / 0.3); }
.event-details-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 1.5rem; max-width: 900px; margin: 0 auto; }
.event-detail-card { display: flex; align-items: center; gap: 1rem; padding: 1.5rem; background: white; border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); border: 1px solid hsl(var(--color-border)); transition: all 0.3s; }
.event-detail-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-xl); }
.detail-icon { width: 56px; height: 56px; border-radius: var(--radius); background: hsl(var(--color-primary) / 0.1); display: flex; align-items: center; justify-content: center; color: hsl(var(--color-primary)); }
.detail-text span { font-size: 0.875rem; color: hsl(var(--color-muted-foreground)); }
.detail-text strong { display: block; font-size: 1.125rem; }

.event-description-section, .project-about-section { padding: 4rem 0; }
.event-description, .about-content { max-width: 900px; margin: 0 auto; }
.event-description h3, .about-content h3 { font-size: 1.5rem; margin-bottom: 1.5rem; }
.event-description p, .about-content p { font-size: 1.125rem; color: hsl(var(--color-muted-foreground)); line-height: 1.8; margin-bottom: 1rem; }

.event-partners-section { padding: 3rem 0; background: hsl(var(--color-muted) / 0.3); }
.partners-logos { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 3rem; }
.partners-logos img { height: 64px; width: auto; object-fit: contain; }

.event-panelists-section { padding: 4rem 0; }
.event-panelists-section h3 { text-align: center; font-size: 1.5rem; margin-bottom: 3rem; }
.panelists-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 2rem; max-width: 700px; margin: 0 auto; }
.panelist-card { background: white; border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-lg); border: 1px solid hsl(var(--color-border)); transition: all 0.3s; }
.panelist-card:hover { box-shadow: var(--shadow-xl); }
.panelist-image { aspect-ratio: 1; overflow: hidden; background: hsl(var(--color-muted)); }
.panelist-image img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s; }
.panelist-card:hover .panelist-image img { transform: scale(1.05); }
.panelist-info { padding: 1.5rem; text-align: center; }
.panelist-info h4 { font-size: 1.25rem; margin-bottom: 0.5rem; }
.panelist-info p { color: hsl(var(--color-primary)); font-size: 0.875rem; }

.event-cta-section, .partnership-section { padding: 4rem 0; background: hsl(var(--color-primary)); }
.cta-content, .partnership-content { max-width: 700px; margin: 0 auto; text-align: center; }
.cta-content h3, .partnership-content h3 { font-size: 2rem; color: white; margin-bottom: 1rem; }
.cta-content p, .partnership-content p { color: rgba(255,255,255,0.8); font-size: 1.125rem; margin-bottom: 2rem; }
.btn-white { display: inline-flex; align-items: center; gap: 0.5rem; padding: 1rem 2rem; background: white; color: hsl(var(--color-primary)); border-radius: var(--radius-lg); font-weight: 600; box-shadow: var(--shadow-lg); transition: all 0.3s; }
.btn-white:hover { background: rgba(255,255,255,0.9); transform: scale(1.05); box-shadow: var(--shadow-xl); color: hsl(var(--color-primary)); }

.project-team-section { padding: 3rem 0; background: hsl(var(--color-muted) / 0.3); }
.project-team-section h3 { text-align: center; font-size: 1.125rem; margin-bottom: 1.5rem; }
.team-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 1.5rem; }
.team-link-card { display: flex; align-items: center; gap: 0.75rem; padding: 1rem 1.5rem; background: white; border-radius: var(--radius-lg); box-shadow: var(--shadow-md); border: 1px solid hsl(var(--color-border)); transition: all 0.3s; }
.team-link-card:hover { box-shadow: var(--shadow-lg); }
.team-link-card:hover .member-name { color: hsl(var(--color-primary)); }
.member-name { display: block; font-weight: 600; }
.member-org { display: block; font-size: 0.875rem; color: hsl(var(--color-muted-foreground)); }

.key-questions-section { padding: 4rem 0; background: hsl(var(--color-primary) / 0.05); }
.key-questions-section h3 { font-size: 1.5rem; margin-bottom: 2rem; }
.questions-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1.5rem; max-width: 900px; margin: 0 auto; }
.question-card { padding: 1.5rem; background: white; border-radius: var(--radius-lg); border: 1px solid hsl(var(--color-border)); box-shadow: var(--shadow-sm); transition: all 0.3s; }
.question-card:hover { box-shadow: var(--shadow-md); }
.question-card p { font-weight: 500; }

.sessions-section { padding: 4rem 0; }
.sessions-section h3 { text-align: center; font-size: 1.5rem; margin-bottom: 1rem; }
.sessions-intro { text-align: center; color: hsl(var(--color-muted-foreground)); max-width: 600px; margin: 0 auto 3rem; }
.sessions-list { max-width: 1000px; margin: 0 auto; display: flex; flex-direction: column; gap: 1.5rem; }
.session-card { display: flex; flex-direction: column; gap: 1.5rem; padding: 1.5rem; background: white; border-radius: var(--radius-lg); border: 1px solid hsl(var(--color-border)); box-shadow: var(--shadow-lg); transition: all 0.3s; }
@media (min-width: 768px) { .session-card { flex-direction: row; padding: 2rem; } }
.session-card:hover { box-shadow: var(--shadow-xl); }
.session-date { flex-shrink: 0; padding: 1rem; background: hsl(var(--color-primary) / 0.1); border-radius: var(--radius); text-align: center; min-width: 120px; display: flex; flex-direction: column; align-items: center; gap: 0.5rem; }
.session-date svg { color: hsl(var(--color-primary)); }
.session-date span { font-size: 0.875rem; font-weight: 600; color: hsl(var(--color-primary)); }
.session-content h4 { font-size: 1.125rem; margin-bottom: 1rem; }
.panelists-label { font-size: 0.875rem; font-weight: 500; color: hsl(var(--color-muted-foreground)); margin-bottom: 0.5rem; }
.panelists-list { list-style: none; padding: 0; }
.panelists-list li { display: flex; align-items: flex-start; gap: 0.5rem; margin-bottom: 0.5rem; }
.panelist-bullet { width: 8px; height: 8px; border-radius: 50%; background: hsl(var(--color-primary)); margin-top: 0.5rem; flex-shrink: 0; }

/* ==========================================================================
   Homepage - Lovable React Matching Styles
   ========================================================================== */

/* Mission Section */
.mission-section {
    padding: 5rem 0;
    background: hsl(var(--color-background));
    position: relative;
    overflow: hidden;
}

.mission-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--gradient-mesh);
    opacity: 0.2;
}

.mission-content {
    max-width: 56rem;
    margin: 0 auto;
    text-align: center;
    position: relative;
    z-index: 1;
}

.mission-text {
    font-size: 1.5rem;
    line-height: 1.75;
    font-weight: 500;
    color: hsl(var(--color-foreground));
}

@media (min-width: 768px) {
    .mission-text { font-size: 1.75rem; }
}

@media (min-width: 1024px) {
    .mission-text { font-size: 2rem; }
}

/* Services Section Enhanced */
.services-section-enhanced {
    padding: 6rem 0;
    background: #E6E6E6;
    position: relative;
    overflow: hidden;
}

.section-title-primary {
    font-size: 2.5rem;
    font-weight: 700;
    text-align: center;
    color: hsl(var(--color-primary));
    margin-bottom: 3rem;
}

@media (min-width: 768px) {
    .section-title-primary { font-size: 3rem; }
}

.services-hero-image {
    max-width: 56rem;
    margin: 0 auto 4rem;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-xl);
}

.services-hero-image img {
    width: 100%;
    height: 300px;
    object-fit: cover;
}

@media (min-width: 768px) {
    .services-hero-image img { height: 400px; }
}

.services-grid-5col {
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    gap: 1.5rem;
    max-width: 80rem;
    margin: 0 auto;
}

@media (min-width: 640px) {
    .services-grid-5col { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 768px) {
    .services-grid-5col { grid-template-columns: repeat(3, 1fr); }
}

@media (min-width: 1024px) {
    .services-grid-5col { grid-template-columns: repeat(5, 1fr); }
}

.service-card-lovable {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 1.5rem;
    background: white;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    border: 1px solid hsl(var(--color-border) / 0.5);
    transition: var(--transition-spring);
    text-decoration: none;
}

.service-card-lovable:hover {
    transform: translateY(-0.5rem);
    box-shadow: var(--shadow-xl);
}

.service-icon-box {
    width: 4rem;
    height: 4rem;
    border-radius: var(--radius);
    background: hsl(var(--color-foreground));
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.25rem;
    transition: all 0.3s;
}

.service-icon-box svg {
    color: white;
    width: 2rem;
    height: 2rem;
}

.service-card-lovable:hover .service-icon-box {
    background: hsl(var(--color-primary));
}

.service-card-lovable h3 {
    font-size: 1.125rem;
    font-weight: 700;
    color: hsl(var(--color-primary));
    margin-bottom: 0.75rem;
    transition: color 0.3s;
}

.service-card-lovable:hover h3 {
    color: hsl(var(--color-foreground));
}

.service-card-lovable p {
    font-size: 0.875rem;
    color: hsl(var(--color-muted-foreground));
    line-height: 1.625;
    margin-bottom: 1rem;
    flex-grow: 1;
}

.service-card-lovable .more-link {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    font-size: 0.875rem;
    font-weight: 600;
    color: hsl(var(--color-primary));
    border-bottom: 2px solid hsl(var(--color-primary));
    padding-bottom: 0.25rem;
    transition: all 0.3s;
}

.service-card-lovable .more-link svg {
    opacity: 0;
    transition: opacity 0.3s;
}

.service-card-lovable:hover .more-link {
    color: hsl(var(--color-foreground));
    border-color: hsl(var(--color-foreground));
}

.service-card-lovable:hover .more-link svg {
    opacity: 1;
}

/* Approaches Section */
.approaches-section {
    padding: 6rem 0;
    background: hsl(var(--color-background));
    position: relative;
    overflow: hidden;
}

.approaches-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--gradient-mesh);
    opacity: 0.4;
    animation: pulse 10s ease-in-out infinite;
}

.approaches-section::after {
    content: '';
    position: absolute;
    top: 25%;
    left: 25%;
    width: 16rem;
    height: 16rem;
    background: hsl(var(--color-primary) / 0.1);
    border-radius: 50%;
    filter: blur(3rem);
}

.section-title-centered {
    font-size: 2.25rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 0.5rem;
    position: relative;
    z-index: 1;
}

@media (min-width: 768px) {
    .section-title-centered { font-size: 3rem; }
}

.section-subtitle-centered {
    text-align: center;
    color: hsl(var(--color-muted-foreground));
    font-size: 1.125rem;
    margin-bottom: 4rem;
    max-width: 42rem;
    margin-left: auto;
    margin-right: auto;
    position: relative;
    z-index: 1;
}

.approaches-grid {
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    gap: 2rem;
    position: relative;
    z-index: 1;
}

@media (min-width: 768px) {
    .approaches-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 1024px) {
    .approaches-grid { grid-template-columns: repeat(4, 1fr); }
}

.approach-card-glass {
    position: relative;
    overflow: hidden;
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    border-radius: var(--radius-lg);
    border: 1px solid var(--glass-border);
    box-shadow: var(--shadow-glass);
    transition: var(--transition-spring);
}

.approach-card-glass:hover {
    transform: translateY(-1rem) rotate(2deg);
    box-shadow: var(--shadow-xl);
}

.approach-image {
    position: relative;
    overflow: hidden;
}

.approach-image img {
    width: 100%;
    height: 14rem;
    object-fit: cover;
    transition: transform 0.7s;
}

.approach-card-glass:hover .approach-image img {
    transform: scale(1.25) rotate(3deg);
}

.approach-overlay {
    position: absolute;
    inset: 0;
    background: hsl(var(--color-primary) / 0);
    transition: background 0.5s;
}

.approach-card-glass:hover .approach-overlay {
    background: hsl(var(--color-primary) / 0.7);
    backdrop-filter: blur(4px);
}

.approach-content {
    padding: 1.5rem;
    position: relative;
}

.approach-icon {
    position: absolute;
    top: -2rem;
    left: 1.5rem;
    width: 4rem;
    height: 4rem;
    background: hsl(var(--color-primary) / 0.3);
    backdrop-filter: blur(12px);
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255,255,255,0.2);
    box-shadow: var(--shadow-xl);
    transition: var(--transition-spring);
}

.approach-icon svg {
    width: 2rem;
    height: 2rem;
    color: hsl(var(--color-primary));
    transition: color 0.3s;
}

.approach-card-glass:hover .approach-icon {
    transform: scale(1.25) rotate(12deg);
}

.approach-card-glass:hover .approach-icon svg {
    color: white;
}

.approach-content h3 {
    margin-top: 1.5rem;
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    color: hsl(var(--color-foreground));
    transition: color 0.3s;
}

.approach-card-glass:hover .approach-content h3 {
    color: hsl(var(--color-primary));
}

.approach-content p {
    color: hsl(var(--color-muted-foreground));
    line-height: 1.625;
}

/* Partners Section Main */
/* ==========================================================================
   Partners Section (Matching PartnersSection.tsx EXACTLY)
   ========================================================================== */
.partners-section-main {
    padding: 5rem 0; /* py-20 */
    background: hsl(var(--color-background)); /* bg-background */
    position: relative;
    overflow: hidden;
}

/* Background mesh animation - matching React animate-pulse duration 12s */
.partners-section-main .partners-bg-mesh {
    position: absolute;
    inset: 0;
    background: var(--gradient-mesh);
    opacity: 0.3;
    animation: pulse 12s ease-in-out infinite;
}

/* Floating blob - matching React absolute top-10 left-1/3 w-72 h-72 bg-primary/10 */
.partners-section-main .partners-bg-blob {
    position: absolute;
    top: 2.5rem; /* top-10 */
    left: 33%; /* left-1/3 */
    width: 18rem; /* w-72 */
    height: 18rem; /* h-72 */
    background: hsl(var(--color-primary) / 0.1);
    border-radius: 50%;
    filter: blur(3rem); /* blur-3xl */
    animation: bounceSlowPartners 6s ease-in-out infinite;
}

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

.section-header-centered {
    text-align: center;
    margin-bottom: 3rem; /* mb-12 */
    position: relative;
    z-index: 10;
}

.section-header-centered.animate-fade-in-up {
    animation: fadeInUp 0.6s ease-out forwards;
}

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

.section-header-centered h2 {
    font-size: 1.875rem; /* text-3xl */
    font-weight: 700;
    margin-bottom: 0.75rem; /* mb-3 */
}

@media (min-width: 768px) {
    .section-header-centered h2 { 
        font-size: 2.25rem; /* md:text-4xl */
    }
}

.section-header-centered p {
    font-size: 1.125rem; /* text-lg */
    color: hsl(var(--color-muted-foreground));
}

/* Partners Grid - matching React flex justify-center items-center gap-8 md:gap-12 lg:gap-16 */
.partners-logos-grid {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 2rem; /* gap-8 */
    flex-wrap: wrap;
    position: relative;
    z-index: 10;
}

@media (min-width: 768px) {
    .partners-logos-grid { gap: 3rem; } /* md:gap-12 */
}

@media (min-width: 1024px) {
    .partners-logos-grid { gap: 4rem; } /* lg:gap-16 */
}

/* Partner Logo Card - matching React glass-card with hover effects */
.partner-logo-card {
    padding: 1.5rem; /* p-6 */
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-radius: var(--radius-lg); /* rounded-2xl */
    border: 1px solid var(--glass-border);
    box-shadow: var(--shadow-glass);
    transition: var(--transition-spring);
    animation: scaleIn 0.5s ease-out forwards;
    opacity: 0;
}

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Hover effects - matching React hover:shadow-2xl hover:-translate-y-2 hover:rotate-2 */
.partner-logo-card:hover {
    transform: translateY(-0.5rem) rotate(2deg);
    box-shadow: var(--shadow-xl);
}

.partner-logo-card img {
    height: 4rem; /* h-16 */
    width: auto;
    object-fit: contain;
    transition: all 0.7s; /* duration-700 */
    filter: grayscale(100%);
}

@media (min-width: 768px) {
    .partner-logo-card img { height: 5rem; } /* md:h-20 */
}

/* Hover - remove grayscale and scale up - matching React group-hover:scale-125 group-hover:grayscale-0 */
.partner-logo-card:hover img {
    filter: grayscale(0%);
    transform: scale(1.25);
}

/* Testimonials Section Magenta */
.testimonials-section-magenta {
    padding: 6rem 0;
    background: hsl(var(--color-primary));
    position: relative;
    overflow: hidden;
}

.testimonials-section-magenta::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--gradient-mesh);
    opacity: 0.4;
    animation: pulse 10s ease-in-out infinite;
}

.testimonials-section-magenta::after {
    content: '';
    position: absolute;
    top: 5rem;
    right: 25%;
    width: 24rem;
    height: 24rem;
    background: rgba(255,255,255,0.05);
    border-radius: 50%;
    filter: blur(3rem);
}

.testimonials-title {
    font-size: 2.25rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 1rem;
    color: white;
    position: relative;
    z-index: 1;
}

@media (min-width: 768px) {
    .testimonials-title { font-size: 3rem; }
}

.testimonials-subtitle {
    text-align: center;
    color: rgba(255,255,255,0.8);
    font-size: 1.125rem;
    margin-bottom: 4rem;
    position: relative;
    z-index: 1;
}

.testimonial-carousel-container {
    max-width: 56rem;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.testimonial-card-main {
    background: rgba(255,255,255,0.1);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: var(--radius-xl);
    padding: 2.5rem;
    box-shadow: var(--shadow-xl);
    transition: all 0.7s;
}

@media (min-width: 768px) {
    .testimonial-card-main { padding: 3.5rem; }
}

.testimonial-card-main:hover {
    box-shadow: 0 0 50px rgba(255,255,255,0.3);
}

.quote-icon {
    margin-bottom: 1.5rem;
}

.quote-icon svg {
    width: 4rem;
    height: 4rem;
    color: rgba(255,255,255,0.5);
}

.testimonial-quote {
    font-size: 1.125rem;
    font-style: italic;
    margin-bottom: 2rem;
    line-height: 1.75;
    font-weight: 300;
    color: white;
}

@media (min-width: 768px) {
    .testimonial-quote { font-size: 1.5rem; }
}

.testimonial-author-info {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    margin-top: 2rem;
}

.author-avatar {
    width: 4rem;
    height: 4rem;
    background: rgba(255,255,255,0.1);
    backdrop-filter: blur(12px);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
    color: white;
    border: 2px solid rgba(255,255,255,0.3);
    box-shadow: var(--shadow-lg);
}

.author-name {
    font-weight: 700;
    font-size: 1.25rem;
    color: white;
    margin: 0;
}

.author-position {
    color: rgba(255,255,255,0.9);
    font-size: 0.875rem;
    margin: 0;
}

.testimonial-controls {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1.5rem;
    margin-top: 2.5rem;
}

.testimonial-nav-btn {
    background: rgba(255,255,255,0.1);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255,255,255,0.3);
    padding: 1.25rem;
    border-radius: 50%;
    cursor: pointer;
    transition: var(--transition-spring);
    box-shadow: var(--shadow-xl);
    color: white;
}

.testimonial-nav-btn:hover {
    transform: scale(1.25);
}

.testimonial-dots {
    display: flex;
    gap: 0.75rem;
    background: rgba(255,255,255,0.1);
    backdrop-filter: blur(12px);
    padding: 0.75rem 1.5rem;
    border-radius: 9999px;
}

.testimonial-dot {
    width: 0.5rem;
    height: 0.5rem;
    border-radius: 9999px;
    background: rgba(255,255,255,0.4);
    border: none;
    cursor: pointer;
    transition: all 0.5s;
}

.testimonial-dot.active {
    width: 3rem;
    background: white;
    box-shadow: 0 0 10px rgba(255,255,255,0.5);
}

.testimonial-dot:hover:not(.active) {
    background: rgba(255,255,255,0.7);
    transform: scale(1.5);
}

/* Projects Section Home - EXACT MATCH to React ProjectsSection.tsx (py-24 = 6rem, overflow-hidden) */
.projects-section-home {
    padding: 6rem 0;
    background: hsl(var(--color-background));
    position: relative;
    overflow: hidden;
    max-width: 100%;
}

/* mb-20 = 5rem spacing before clients carousel (matching React mb-20) */
.projects-section-home .projects-list-vertical {
    margin-bottom: 2.5rem;
}

.projects-section-home .view-all-btn-container {
    margin-top: 2.5rem;
}

.title-underline {
    width: 6rem;
    height: 0.375rem;
    background: hsl(var(--color-primary));
    margin: 1.5rem auto 0;
    border-radius: 9999px;
}

/* Projects list matching React space-y-6 (1.5rem gap) */
.projects-list-vertical {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    max-width: 80rem;
    margin: 0 auto;
    /* Prevent children from causing horizontal overflow */
    max-width: 100%;
    min-width: 0;
}

/* Homepage Project Cards - Matches React exactly */
.homepage-project-card {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    background: hsl(var(--color-card));
    border-radius: var(--radius-lg);
    border: 1px solid hsl(var(--color-border) / 0.5);
    box-shadow: var(--shadow-md);
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    text-decoration: none;
    cursor: pointer;
    animation: fadeIn 0.5s ease forwards;
}

@media (min-width: 768px) {
    .homepage-project-card {
        flex-direction: row;
    }
}

.homepage-project-card:hover {
    transform: translateY(-0.25rem);
    box-shadow: var(--shadow-xl);
}

.homepage-project-image {
    width: 100%;
    height: 14rem;
    overflow: hidden;
    background: hsl(var(--color-muted));
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

@media (min-width: 480px) {
    .homepage-project-image {
        height: 16rem;
    }
}

@media (min-width: 768px) {
    .homepage-project-image {
        width: 20rem;
        height: auto;
        min-height: 12rem;
    }
}

.homepage-project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.7s;
}

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

.homepage-project-info {
    flex: 1;
    padding: 1rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

@media (min-width: 480px) {
    .homepage-project-info {
        padding: 1.25rem;
    }
}

@media (min-width: 768px) {
    .homepage-project-info {
        padding: 1.5rem;
    }
}

.homepage-project-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.375rem;
    font-size: 0.75rem;
    color: hsl(var(--color-muted-foreground));
    margin-bottom: 0.5rem;
}

@media (min-width: 480px) {
    .homepage-project-meta {
        gap: 0.5rem;
        font-size: 0.8125rem;
        margin-bottom: 0.625rem;
    }
}

@media (min-width: 768px) {
    .homepage-project-meta {
        font-size: 0.875rem;
        margin-bottom: 0.75rem;
    }
}

/* Hide separators on very small screens */
@media (max-width: 479px) {
    .homepage-meta-separator {
        display: none;
    }
    
    .homepage-project-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.25rem;
    }
}

.homepage-meta-item {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.homepage-meta-item svg {
    width: 1rem;
    height: 1rem;
}

.homepage-meta-separator {
    color: hsl(var(--color-border));
}

.homepage-project-title {
    font-size: 1.125rem;
    font-weight: 700;
    color: hsl(var(--color-primary));
    margin-bottom: 0.75rem;
    transition: color 0.3s;
    line-height: 1.3;
}

@media (min-width: 480px) {
    .homepage-project-title {
        font-size: 1.25rem;
        margin-bottom: 1rem;
    }
}

@media (min-width: 768px) {
    .homepage-project-title {
        font-size: 1.5rem;
    }
}

.homepage-project-card:hover .homepage-project-title {
    color: hsl(var(--color-primary) / 0.8);
}

.homepage-project-status {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: var(--radius);
    font-size: 0.875rem;
    font-weight: 500;
    width: fit-content;
}

.homepage-project-status.status-current {
    background: rgba(34, 197, 94, 0.1);
    color: rgb(22, 163, 74);
    border: 1px solid rgba(34, 197, 94, 0.3);
}

.homepage-project-status.status-completed {
    background: hsl(var(--color-muted));
    color: hsl(var(--color-muted-foreground));
}

/* Legacy project card styles for backwards compatibility */
.project-card-horizontal {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    background: hsl(var(--color-card));
    border-radius: var(--radius-lg);
    border: 1px solid hsl(var(--color-border) / 0.5);
    box-shadow: var(--shadow-md);
    transition: var(--transition-spring);
    text-decoration: none;
}

@media (min-width: 768px) {
    .project-card-horizontal { flex-direction: row; }
}

.project-card-horizontal:hover {
    transform: translateY(-0.25rem);
    box-shadow: var(--shadow-xl);
}

.project-card-horizontal .project-image {
    width: 100%;
    height: 16rem;
    overflow: hidden;
    background: hsl(var(--color-muted));
    flex-shrink: 0;
}

@media (min-width: 768px) {
    .project-card-horizontal .project-image {
        width: 20rem;
        height: auto;
    }
}

.project-card-horizontal .project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.7s;
}

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

.project-card-horizontal .project-info {
    flex: 1;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.project-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    color: hsl(var(--color-muted-foreground));
    margin-bottom: 0.75rem;
}

.project-meta span {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.project-meta span:not(:last-child)::after {
    content: '|';
    margin-left: 0.5rem;
    color: hsl(var(--color-border));
}

.project-card-horizontal h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: hsl(var(--color-primary));
    margin-bottom: 1rem;
    transition: color 0.3s;
}

@media (min-width: 768px) {
    .project-card-horizontal h3 { font-size: 1.5rem; }
}

.project-card-horizontal:hover h3 {
    color: hsl(var(--color-primary) / 0.8);
}

.project-status {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: var(--radius);
    font-size: 0.875rem;
    font-weight: 500;
    width: fit-content;
}

.status-ongoing {
    background: rgba(34, 197, 94, 0.1);
    color: rgb(22, 163, 74);
    border: 1px solid rgba(34, 197, 94, 0.3);
}

.status-completed {
    background: hsl(var(--color-muted));
    color: hsl(var(--color-muted-foreground));
}

.no-projects-text {
    text-align: center;
    color: hsl(var(--color-muted-foreground));
    padding: 3rem 0;
}

.view-all-btn-container {
    text-align: center;
    margin-top: 2.5rem;
}

.btn-primary-large {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 2rem;
    background: hsl(var(--color-primary));
    color: white;
    border-radius: var(--radius-lg);
    font-size: 1.125rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s;
}

.btn-primary-large:hover {
    background: hsl(var(--color-primary) / 0.9);
    color: white;
}

/* Clients Carousel Section - Contains animated track within viewport */
.clients-carousel-section {
    padding: 6rem 0;
    background: hsl(var(--color-background));
    position: relative;
    overflow: hidden !important;
    max-width: 100%;
    width: 100%;
    box-sizing: border-box;
    /* Isolate this section's transforms */
    -webkit-transform: translateZ(0);
    transform: translateZ(0);
    contain: layout paint;
}

.clients-carousel-wrapper {
    overflow: hidden !important;
    position: relative;
    max-width: 100%;
    width: 100%;
    /* Hardware acceleration keeps animation off the main layout flow */
    -webkit-transform: translateZ(0);
    transform: translateZ(0);
    will-change: contents;
    /* Contain the animated track */
    contain: layout paint;
}

.clients-carousel-track {
    display: flex;
    gap: 1rem;
    animation: scrollClients 40s linear infinite;
    /* Force GPU compositing so translateX doesn't affect document width */
    -webkit-transform: translate3d(0, 0, 0);
    transform: translate3d(0, 0, 0);
    will-change: transform;
    /* Prevent track from affecting parent layout */
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
}

.clients-carousel-wrapper:hover .clients-carousel-track {
    animation-play-state: paused;
}

@keyframes scrollClients {
    0% { transform: translate3d(0, 0, 0); }
    100% { transform: translate3d(-50%, 0, 0); }
}

.client-logo-card {
    flex-shrink: 0;
    width: 180px;
    height: 150px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    background: hsl(var(--color-card) / 0.8);
    backdrop-filter: blur(4px);
    border-radius: var(--radius-lg);
    border: 1px solid hsl(var(--color-border) / 0.5);
    box-shadow: var(--shadow-md);
    transition: all 0.7s;
}

.client-logo-card:hover {
    transform: translateY(-0.75rem);
    box-shadow: var(--shadow-xl);
    border-color: hsl(var(--color-primary) / 0.3);
    background: hsl(var(--color-card) / 0.95);
}

.client-logo-card img {
    max-width: 100%;
    max-height: 6rem;
    object-fit: contain;
    transition: all 0.7s;
    filter: brightness(1.1);
}

.client-logo-card:hover img {
    transform: scale(1.1);
}

/* Pulse Animation */
@keyframes pulse {
    0%, 100% { opacity: 0.4; }
    50% { opacity: 0.6; }
}

/* ==========================================================================
   New Components - Horizontal Cards, Lightbox, Carousel, Filter Bars
   ========================================================================== */

/* Project Row Cards (Horizontal Layout) */
.projects-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.project-row-card {
    display: flex;
    flex-direction: column;
    background: hsl(var(--color-card));
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid hsl(var(--color-border));
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
    text-decoration: none;
}

@media (min-width: 768px) {
    .project-row-card {
        flex-direction: row;
    }
}

.project-row-card:hover {
    box-shadow: var(--shadow-xl);
    transform: translateY(-2px);
}

.project-row-card .project-image {
    width: 100%;
    height: 200px;
    overflow: hidden;
}

@media (min-width: 768px) {
    .project-row-card .project-image {
        width: 33.333%;
        height: auto;
        min-height: 200px;
    }
}

.project-row-card .project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

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

.project-row-card .project-details {
    flex: 1;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.project-row-card .project-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    color: hsl(var(--color-muted-foreground));
    margin-bottom: 0.75rem;
}

.project-row-card .meta-item {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.project-row-card .meta-item svg {
    color: hsl(var(--color-muted-foreground));
}

.project-row-card .meta-separator {
    color: hsl(var(--color-border));
}

.project-row-card .project-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: hsl(var(--color-primary));
    margin-bottom: 0.75rem;
    transition: color 0.3s ease;
}

@media (min-width: 768px) {
    .project-row-card .project-title {
        font-size: 1.5rem;
    }
}

.project-row-card:hover .project-title {
    color: hsl(var(--color-primary) / 0.8);
}

.project-row-card .project-status {
    display: inline-flex;
    width: fit-content;
    padding: 0.25rem 0.75rem;
    border-radius: var(--radius);
    font-size: 0.75rem;
    font-weight: 500;
}

.project-row-card .project-status.current {
    background: rgba(34, 197, 94, 0.1);
    color: rgb(22, 163, 74);
}

.project-row-card .project-status.completed {
    background: hsl(var(--color-muted));
    color: hsl(var(--color-muted-foreground));
}

/* Projects Horizontal List (Featured Projects) */
.projects-horizontal-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.project-horizontal-card {
    display: flex;
    flex-direction: column;
    background: hsl(var(--color-card));
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid hsl(var(--color-border));
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
}

@media (min-width: 768px) {
    .project-horizontal-card {
        flex-direction: row;
    }
}

.project-horizontal-card:hover {
    box-shadow: var(--shadow-lg);
}

.project-horizontal-card .project-image {
    width: 100%;
    height: 200px;
    overflow: hidden;
}

@media (min-width: 768px) {
    .project-horizontal-card .project-image {
        width: 300px;
        height: auto;
    }
}

.project-horizontal-card .project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.project-horizontal-card .project-details {
    flex: 1;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.project-horizontal-card .project-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    color: hsl(var(--color-muted-foreground));
    margin-bottom: 0.5rem;
}

.project-horizontal-card .project-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: hsl(var(--color-primary));
    margin-bottom: 0.5rem;
}

/* Search & Filter Bar */
.search-filter-bar {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    padding: 1rem;
    background: hsl(var(--color-background));
    border: 1px solid hsl(var(--color-border));
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    margin-bottom: 2rem;
}

@media (min-width: 1024px) {
    .search-filter-bar {
        flex-direction: row;
        align-items: center;
        padding: 1rem 1.5rem;
    }
}

.search-filter-bar .search-input {
    position: relative;
    flex: 1;
    min-width: 0;
}

.search-filter-bar .search-input .icon {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    width: 20px;
    height: 20px;
    color: hsl(var(--color-muted-foreground));
}

.search-filter-bar .search-input input {
    width: 100%;
    padding: 0.75rem 1rem 0.75rem 3rem;
    background: transparent;
    border: none;
    outline: none;
    font-size: 0.875rem;
    color: hsl(var(--color-foreground));
}

.search-filter-bar .search-input input::placeholder {
    color: hsl(var(--color-muted-foreground));
}

.search-filter-bar .filter-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: hsl(var(--color-muted-foreground));
    font-size: 0.875rem;
    font-weight: 500;
}

.search-filter-bar .filter-label .icon {
    width: 20px;
    height: 20px;
}

.search-filter-bar .filter-select,
.filter-select {
    padding: 0.75rem 1rem;
    background: hsl(var(--color-background));
    border: 1px solid hsl(var(--color-border));
    border-radius: var(--radius);
    font-size: 0.875rem;
    color: hsl(var(--color-foreground));
    cursor: pointer;
    min-width: 150px;
}

.filter-bar {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    padding: 1rem;
    background: hsl(var(--color-card));
    border: 1px solid hsl(var(--color-border));
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-lg);
}

@media (min-width: 768px) {
    .filter-bar {
        flex-direction: row;
        align-items: center;
        padding: 1rem 1.5rem;
    }
}

.filter-bar .filter-divider {
    display: none;
    width: 1px;
    height: 40px;
    background: hsl(var(--color-border));
}

@media (min-width: 768px) {
    .filter-bar .filter-divider {
        display: block;
    }
}

.filters-section {
    padding: 1.5rem 0;
}

/* Results Count */
.results-count {
    font-size: 0.875rem;
    color: hsl(var(--color-muted-foreground));
    margin-bottom: 1rem;
}

/* No Results Message */
.no-results,
.no-results-message {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 4rem 2rem;
    text-align: center;
    background: hsl(var(--color-card));
    border-radius: var(--radius-xl);
    border: 1px solid hsl(var(--color-border));
}

.no-results.hidden,
.no-results-message.hidden {
    display: none;
}

.no-results svg,
.no-results-message svg {
    color: hsl(var(--color-muted-foreground) / 0.5);
    margin-bottom: 1rem;
}

.no-results h4,
.no-results-message h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: hsl(var(--color-foreground));
    margin-bottom: 0.5rem;
}

.no-results p,
.no-results-message p {
    color: hsl(var(--color-muted-foreground));
    margin-bottom: 1.5rem;
}

/* Tab Navigation Styles */
.tabs-section {
    padding: 2rem 0 0;
}

.tabs-section.bg-gray-200 {
    background: hsl(240 5% 92%);
}

.tab-navigation {
    display: flex;
    justify-content: flex-start;
    gap: 1.5rem;
    margin-bottom: 0;
}

.tab-navigation.centered {
    justify-content: center;
    gap: 3rem;
}

.tab-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    padding: 0.5rem;
    background: none;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.tab-btn:hover {
    transform: scale(1.05);
}

.tab-btn .tab-icon {
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-lg);
    background: hsl(var(--color-card) / 0.8);
    box-shadow: var(--shadow-md);
    transition: all 0.3s ease;
}

.tab-btn .tab-icon.large {
    width: 80px;
    height: 80px;
}

@media (min-width: 768px) {
    .tab-btn .tab-icon.large {
        width: 96px;
        height: 96px;
    }
}

.tab-btn .tab-icon svg {
    width: 24px;
    height: 24px;
    color: hsl(var(--color-primary));
}

.tab-btn.active .tab-icon {
    background: hsl(var(--color-primary));
    box-shadow: var(--shadow-lg), 0 0 0 4px rgba(255,255,255,0.5);
}

.tab-btn.active .tab-icon svg {
    color: white;
}

.tab-btn span {
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    color: hsl(var(--color-muted-foreground));
}

@media (min-width: 768px) {
    .tab-btn span {
        font-size: 0.875rem;
    }
}

.tab-btn.active span {
    color: hsl(var(--color-primary));
}

.tab-content-wrapper {
    padding: 3rem 0;
    margin-top: 1rem;
}

.tab-content-wrapper.bg-white {
    background: white;
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
    animation: fadeIn 0.5s ease;
}

.tab-title {
    font-size: 1.75rem;
    color: hsl(var(--color-primary));
    margin-bottom: 1rem;
}

@media (min-width: 768px) {
    .tab-title {
        font-size: 2.25rem;
    }
}

.divider {
    width: 100%;
    height: 1px;
    background: hsl(var(--color-border));
    margin-bottom: 1.5rem;
}

.divider.primary {
    background: hsl(var(--color-primary) / 0.3);
}

.tab-description {
    color: hsl(var(--color-muted-foreground));
    font-size: 1.125rem;
    margin-bottom: 2rem;
}

/* Clients Grid */
.clients-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
}

@media (min-width: 768px) {
    .clients-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

.clients-grid.six-cols {
    grid-template-columns: repeat(3, 1fr);
}

@media (min-width: 768px) {
    .clients-grid.six-cols {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (min-width: 1024px) {
    .clients-grid.six-cols {
        grid-template-columns: repeat(6, 1fr);
    }
}

.client-card {
    display: flex;
    align-items: center;
    justify-content: center;
    aspect-ratio: 1;
    padding: 1rem;
    background: hsl(var(--color-card));
    border: 1px solid hsl(var(--color-border));
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
}

.client-card.clickable {
    cursor: pointer;
}

.client-card:hover {
    box-shadow: var(--shadow-xl);
    transform: translateY(-4px);
    border-color: hsl(var(--color-primary) / 0.3);
}

.client-card img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

/* Lightbox Modal */
.lightbox-modal {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: none;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.9);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.lightbox-modal.active {
    display: flex;
    opacity: 1;
}

.lightbox-content {
    position: relative;
    max-width: 90vw;
    max-height: 90vh;
    background: white;
    padding: 1rem;
    border-radius: var(--radius-lg);
}

.lightbox-content img {
    max-width: 100%;
    max-height: 80vh;
    object-fit: contain;
}

.lightbox-close {
    position: absolute;
    top: -1rem;
    right: -1rem;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: hsl(var(--color-primary));
    color: white;
    border: none;
    border-radius: 50%;
    font-size: 1.5rem;
    cursor: pointer;
    transition: background 0.3s ease;
}

.lightbox-close:hover {
    background: hsl(var(--color-primary) / 0.8);
}

/* Hero Carousel */
.hero-carousel {
    position: relative;
    height: 80vh;
    min-height: 600px;
    overflow: hidden;
    padding-top: 80px;
}

.hero-carousel .hero-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: all 1s ease;
}

.hero-carousel .hero-slide.active {
    opacity: 1;
}

.hero-carousel .hero-bg-image {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-carousel .hero-overlay.primary-gradient {
    position: absolute;
    inset: 0;
    background: linear-gradient(to right, hsl(var(--color-primary) / 0.95), hsl(var(--color-primary) / 0.8), transparent);
    z-index: 1;
}

.hero-carousel .container {
    position: relative;
    z-index: 2;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding-top: 2rem;
}

.hero-carousel .hero-content {
    max-width: 42rem;
}

.hero-carousel .hero-content h1 {
    font-size: 2.5rem;
    font-weight: 700;
    color: white;
    line-height: 1.1;
    margin-bottom: 1.5rem;
}

@media (min-width: 768px) {
    .hero-carousel .hero-content h1 {
        font-size: 3rem;
    }
}

@media (min-width: 1024px) {
    .hero-carousel .hero-content h1 {
        font-size: 3.75rem;
    }
}

.hero-carousel .hero-content h1 em {
    font-style: italic;
    color: rgba(255, 255, 255, 0.8);
}

.hero-carousel .hero-content p {
    font-size: 1.125rem;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.6;
    margin-bottom: 2rem;
}

@media (min-width: 768px) {
    .hero-carousel .hero-content p {
        font-size: 1.25rem;
    }
}

.hero-carousel .hero-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

/* Carousel Arrows */
.carousel-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 30;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(8px);
    border: none;
    border-radius: 50%;
    color: white;
    cursor: pointer;
    transition: all 0.3s ease;
}

.carousel-arrow:hover {
    background: rgba(255, 255, 255, 0.2);
}

.carousel-arrow.prev {
    left: 1rem;
}

.carousel-arrow.next {
    right: 1rem;
}

.carousel-arrow svg {
    width: 24px;
    height: 24px;
}

/* Carousel Indicators */
.carousel-indicators {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 30;
    display: flex;
    gap: 0.75rem;
}

.carousel-indicators .indicator {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.carousel-indicators .indicator.active {
    width: 32px;
    border-radius: 4px;
    background: white;
}

.carousel-indicators .indicator:hover {
    background: rgba(255, 255, 255, 0.7);
}

/* Course Horizontal Cards (All Courses Page) */
.courses-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.course-horizontal-card {
    display: flex;
    flex-direction: column;
    background: hsl(var(--color-card));
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid hsl(var(--color-border));
    box-shadow: var(--shadow-lg);
    transition: all 0.3s ease;
}

@media (min-width: 768px) {
    .course-horizontal-card {
        flex-direction: row;
    }
}

.course-horizontal-card:hover {
    box-shadow: var(--shadow-xl);
}

.course-horizontal-card .course-image {
    position: relative;
    width: 100%;
    height: 200px;
    overflow: hidden;
}

@media (min-width: 768px) {
    .course-horizontal-card .course-image {
        width: 33.333%;
        height: auto;
    }
}

.course-horizontal-card .course-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

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

.course-horizontal-card .star-rating {
    position: absolute;
    bottom: 1rem;
    left: 1rem;
    display: flex;
    gap: 0.125rem;
}

.course-horizontal-card .star-rating svg {
    color: #facc15;
}

.course-horizontal-card .course-details {
    flex: 1;
    padding: 1.5rem;
}

.course-horizontal-card .course-details h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: hsl(var(--color-foreground));
    margin-bottom: 0.5rem;
    transition: color 0.3s ease;
}

.course-horizontal-card:hover .course-details h3 {
    color: hsl(var(--color-primary));
}

.course-horizontal-card .course-meta-inline {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    align-items: center;
    margin-bottom: 0.75rem;
}

.course-horizontal-card .course-meta-inline .price {
    font-size: 1.25rem;
    font-weight: 700;
    color: hsl(var(--color-primary));
}

.course-horizontal-card .course-meta-inline .meta-text {
    font-size: 0.875rem;
    color: hsl(var(--color-muted-foreground));
}

.course-horizontal-card .course-description {
    color: hsl(var(--color-muted-foreground));
    font-size: 0.9375rem;
    line-height: 1.6;
    margin-bottom: 1rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.course-horizontal-card .course-info-row {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 1rem;
}

.course-horizontal-card .info-item {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    font-size: 0.875rem;
    color: hsl(var(--color-muted-foreground));
}

.course-horizontal-card .info-item svg {
    color: hsl(var(--color-primary));
}

/* Vision Grid */
.vision-grid {
    display: grid;
    gap: 1.5rem;
}

.vision-grid.four-cols {
    grid-template-columns: repeat(1, 1fr);
}

@media (min-width: 640px) {
    .vision-grid.four-cols {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .vision-grid.four-cols {
        grid-template-columns: repeat(4, 1fr);
    }
}

.vision-card {
    padding: 1.5rem;
    background: hsl(var(--color-card));
    border-radius: var(--radius-lg);
    text-align: center;
    border: 1px solid transparent;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
}

.vision-card:hover {
    box-shadow: var(--shadow-xl);
    border-color: hsl(var(--color-primary) / 0.2);
}

.vision-card .vision-icon {
    width: 64px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    background: hsl(var(--color-primary) / 0.1);
    border-radius: var(--radius-xl);
    transition: all 0.3s ease;
}

.vision-card:hover .vision-icon {
    background: hsl(var(--color-primary));
    transform: scale(1.1);
}

.vision-card .vision-icon svg {
    width: 32px;
    height: 32px;
    color: hsl(var(--color-primary));
    transition: color 0.3s ease;
}

.vision-card:hover .vision-icon svg {
    color: white;
}

.vision-card h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: hsl(var(--color-foreground));
    margin-bottom: 0.5rem;
}

.vision-card p {
    font-size: 0.875rem;
    color: hsl(var(--color-muted-foreground));
    line-height: 1.6;
}

/* Features Grid */
.features-grid {
    display: grid;
    gap: 1.5rem;
}

.features-grid.three-cols {
    grid-template-columns: repeat(1, 1fr);
}

@media (min-width: 640px) {
    .features-grid.three-cols {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .features-grid.three-cols {
        grid-template-columns: repeat(3, 1fr);
    }
}

.feature-card {
    padding: 1.5rem;
    background: hsl(var(--color-card));
    border-radius: var(--radius-lg);
    border: 1px solid hsl(var(--color-border));
    transition: all 0.3s ease;
}

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

.feature-card .feature-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
    background: hsl(var(--color-primary) / 0.1);
    border-radius: var(--radius);
}

.feature-card .feature-icon svg {
    width: 24px;
    height: 24px;
    color: hsl(var(--color-primary));
}

.feature-card h3 {
    font-size: 1.125rem;
    font-weight: 600;
    color: hsl(var(--color-foreground));
    margin-bottom: 0.5rem;
}

.feature-card p {
    font-size: 0.875rem;
    color: hsl(var(--color-muted-foreground));
    line-height: 1.6;
}

/* Stats Banner */
.stats-banner {
    padding: 3rem 0;
}

.stats-banner.bg-primary {
    background: hsl(var(--color-primary));
}

.stats-row {
    display: grid;
    gap: 2rem;
    text-align: center;
}

.stats-row.four-cols {
    grid-template-columns: repeat(2, 1fr);
}

@media (min-width: 768px) {
    .stats-row.four-cols {
        grid-template-columns: repeat(4, 1fr);
    }
}

.stats-banner .stat .stat-value {
    font-size: 2rem;
    font-weight: 700;
    color: white;
    display: block;
}

@media (min-width: 768px) {
    .stats-banner .stat .stat-value {
        font-size: 2.5rem;
    }
}

.stats-banner .stat .stat-label {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.9);
}

/* Courses Grid (Training Page) */
.courses-grid.three-cols {
    display: grid;
    gap: 1.5rem;
    grid-template-columns: repeat(1, 1fr);
}

@media (min-width: 640px) {
    .courses-grid.three-cols {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .courses-grid.three-cols {
        grid-template-columns: repeat(3, 1fr);
    }
}

.course-card.hover-shadow {
    transition: all 0.3s ease;
}

.course-card.hover-shadow:hover {
    box-shadow: var(--shadow-xl);
}

.course-card .course-cohort {
    font-size: 0.875rem;
    color: hsl(var(--color-muted-foreground));
    margin-bottom: 0.5rem;
}

.course-card .course-description {
    font-size: 0.875rem;
    color: hsl(var(--color-muted-foreground));
    line-height: 1.6;
    margin-bottom: 1rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.course-card .course-meta-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    padding-top: 1rem;
    border-top: 1px solid hsl(var(--color-border));
    text-align: center;
}

.course-card .meta-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.25rem;
}

.course-card .meta-item svg {
    color: hsl(var(--color-primary));
}

.course-card .meta-item .meta-value {
    font-size: 0.75rem;
    font-weight: 600;
    color: hsl(var(--color-foreground));
}

.course-card .meta-item .meta-label {
    font-size: 0.625rem;
    color: hsl(var(--color-muted-foreground));
}

/* Two Column Layout with Image Overlay */
.two-column-layout.items-center {
    align-items: center;
}

.column-image.with-overlay {
    position: relative;
}

.column-image .image-tilt-bg {
    position: absolute;
    inset: 0;
    background: hsl(var(--color-primary) / 0.2);
    border-radius: var(--radius-xl);
    transform: rotate(3deg);
    transition: transform 0.3s ease;
}

.column-image:hover .image-tilt-bg {
    transform: rotate(6deg);
}

.column-image.with-overlay img {
    position: relative;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-xl);
    width: 100%;
    aspect-ratio: 16/9;
    object-fit: cover;
}

.play-button-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: none;
    border: none;
    cursor: pointer;
}

.play-button-overlay .play-circle {
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: hsl(var(--color-primary) / 0.9);
    border-radius: 50%;
    box-shadow: var(--shadow-lg);
    transition: transform 0.3s ease;
}

.play-button-overlay:hover .play-circle {
    transform: scale(1.1);
}

.play-button-overlay .play-circle svg {
    width: 32px;
    height: 32px;
    color: white;
    margin-left: 4px;
}

/* Section Header Inline */
.section-header-inline {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 2rem;
}

.section-header-inline h2 {
    font-size: 1.875rem;
    font-weight: 700;
    color: hsl(var(--color-foreground));
    margin-bottom: 0.5rem;
}

.section-header-inline p {
    color: hsl(var(--color-muted-foreground));
}

/* Publications Grid */
.publications-grid {
    display: grid;
    gap: 1.5rem;
    grid-template-columns: repeat(1, 1fr);
}

@media (min-width: 640px) {
    .publications-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .publications-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.publication-card {
    padding: 1.5rem;
    background: hsl(var(--color-card));
    border: 1px solid hsl(var(--color-border));
    border-radius: var(--radius-lg);
    transition: all 0.3s ease;
}

.publication-card:hover {
    box-shadow: var(--shadow-lg);
    border-color: hsl(var(--color-primary) / 0.3);
}

.publication-card .publication-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
    background: hsl(var(--color-primary) / 0.1);
    border-radius: var(--radius);
}

.publication-card .publication-icon svg {
    width: 24px;
    height: 24px;
    color: hsl(var(--color-primary));
}

.publication-card h4 {
    font-size: 1.125rem;
    font-weight: 600;
    color: hsl(var(--color-foreground));
    margin-bottom: 0.5rem;
}

.publication-card p {
    font-size: 0.875rem;
    color: hsl(var(--color-muted-foreground));
    line-height: 1.6;
    margin-bottom: 0.75rem;
}

.publication-card .publication-date {
    font-size: 0.75rem;
    color: hsl(var(--color-primary));
    font-weight: 600;
}

/* Background Gradient Primary */
.bg-gradient-primary {
    background: linear-gradient(135deg, hsl(var(--color-primary)) 0%, hsl(310 58% 45%) 100%);
}

.text-white {
    color: white;
}

.text-white-80 {
    color: rgba(255, 255, 255, 0.8);
}

.text-white-80 p {
    color: rgba(255, 255, 255, 0.8);
}

/* Quote Box Glass */
.quote-box.glass {
    padding: 2rem;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(8px);
    border-radius: var(--radius-lg);
    border: 1px solid rgba(255, 255, 255, 0.2);
    margin: 2rem auto;
    max-width: 600px;
}

.quote-box.glass blockquote {
    font-size: 1.25rem;
    font-style: italic;
    color: white;
    margin-bottom: 0.5rem;
}

.quote-box.glass cite {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.8);
}

/* Section Icon White */
.section-icon.white {
    width: 64px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
}

.section-icon.white svg {
    width: 32px;
    height: 32px;
    color: white;
}

/* Numbered Grid White */
.numbered-grid.white {
    display: grid;
    gap: 1.5rem;
    grid-template-columns: repeat(1, 1fr);
    margin-top: 2rem;
}

@media (min-width: 640px) {
    .numbered-grid.white {
        grid-template-columns: repeat(2, 1fr);
    }
}

.numbered-grid.white .numbered-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: var(--radius);
}

.numbered-grid.white .numbered-item .number {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: white;
    color: hsl(var(--color-primary));
    border-radius: 50%;
    font-weight: 700;
    flex-shrink: 0;
}

.numbered-grid.white .numbered-item p {
    color: white;
    margin: 0;
}

/* Card Icon Primary Background */
.card-icon.primary-bg {
    width: 64px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    background: hsl(var(--color-primary));
    border-radius: var(--radius-lg);
}

.card-icon.primary-bg svg {
    width: 32px;
    height: 32px;
    color: white;
}

/* Hover Lift Animation */
.hover-lift {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hover-lift:hover {
    transform: translateY(-4px);
}

/* ==========================================================================
   MOBILE RESPONSIVENESS ENHANCEMENTS
   Critical fixes for mobile view parity with React app
   ========================================================================== */

/* Mobile Hero Section Improvements */
@media (max-width: 639px) {
    .hero-carousel-centered {
        min-height: 400px;
        padding: 2rem 0;
    }
    
    .hero-main-title {
        font-size: 1.5rem !important;
        line-height: 1.2;
    }
    
    .hero-subtitle-badge {
        font-size: 0.75rem;
        padding: 0.375rem 0.75rem;
    }
    
    .hero-description {
        font-size: 0.8125rem;
        max-width: 280px;
        margin: 0 auto;
    }
    
    .hero-cta-buttons {
        flex-direction: row !important;
        gap: 0.5rem !important;
        justify-content: center;
    }
    
    .hero-btn-primary,
    .hero-btn-outline {
        padding: 0.5rem 0.875rem !important;
        font-size: 0.75rem !important;
    }
    
    .hero-glass-icon {
        padding: 0.5rem;
    }
    
    .hero-glass-icon svg {
        width: 20px;
        height: 20px;
    }
}

/* Mobile Navigation Enhancement */
@media (max-width: 1023px) {
    /* Keep consistent compact header sizing on mobile */
    .header-inner { height: 56px; }
    .site-header .site-logo img { height: 28px; max-height: 28px; }
    
    /* Ensure hamburger is always visible and clickable */
    .mobile-menu-toggle {
        display: flex !important;
        visibility: visible !important;
        opacity: 1 !important;
        pointer-events: auto !important;
    }
    
    .main-navigation {
        display: none !important;
    }
}

/* Mobile Services Grid */
@media (max-width: 639px) {
    .services-grid-5col {
        grid-template-columns: 1fr !important;
        gap: 1rem;
    }
    
    .service-card-lovable {
        padding: 1.25rem;
    }
    
    .service-card-lovable h3 {
        font-size: 1rem;
    }
    
    .service-card-lovable p {
        font-size: 0.8125rem;
    }
}

/* Mobile Approaches Grid */
@media (max-width: 639px) {
    .approaches-grid {
        grid-template-columns: 1fr !important;
        gap: 1.5rem;
    }
}

/* Mobile Partners Section */
@media (max-width: 639px) {
    .partners-logos-grid {
        gap: 1rem;
    }
    
    .partner-logo-card {
        padding: 1rem;
    }
    
    .partner-logo-card img {
        height: 3rem;
    }
}

/* Mobile Testimonials */
@media (max-width: 639px) {
    .testimonials-section-magenta {
        padding: 3rem 0;
    }
    
    .testimonials-title {
        font-size: 1.5rem;
    }
    
    .testimonial-card-main {
        padding: 1.5rem;
    }
    
    .testimonial-quote {
        font-size: 0.9375rem;
    }
    
    .testimonial-controls {
        flex-wrap: wrap;
        gap: 1rem;
    }
}

/* Mobile Projects Section */
@media (max-width: 479px) {
    .projects-section-home {
        padding: 3rem 0;
    }
    
    .section-header-centered h2 {
        font-size: 1.5rem;
    }
    
    .homepage-project-card {
        border-radius: var(--radius);
    }
    
    .homepage-project-image {
        height: 10rem;
    }
    
    .homepage-project-info {
        padding: 1rem;
    }
    
    .homepage-project-title {
        font-size: 1rem;
    }
    
    .homepage-project-status {
        font-size: 0.75rem;
        padding: 0.1875rem 0.5rem;
    }
}

/* Mobile Clients Carousel */
@media (max-width: 639px) {
    .clients-carousel-section {
        padding: 3rem 0;
    }
    
    .clients-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 0.75rem;
    }
    
    .client-card {
        min-height: 100px;
        padding: 1rem;
    }
}

/* Mobile Footer */
@media (max-width: 767px) {
    .footer-grid {
        grid-template-columns: 1fr !important;
        gap: 2rem;
    }
    
    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }
}

/* Mobile View All Button */
@media (max-width: 479px) {
    .view-all-btn-container {
        margin-top: 2rem;
    }
    
    .btn-primary-large {
        padding: 0.75rem 1.5rem;
        font-size: 0.875rem;
    }
}

/* Fix body scroll when mobile menu is open */
body.mobile-menu-open {
    overflow: hidden !important;
    position: fixed !important;
    width: 100% !important;
}

/* Ensure touch targets are at least 44x44px */
button, 
a, 
.mobile-menu-toggle,
.mobile-nav-link,
.mobile-nav-title {
    min-height: 44px;
}

/* Improve tap highlighting for mobile */
* {
    -webkit-tap-highlight-color: rgba(141, 37, 125, 0.1);
}

/* ==========================================================================
   CRITICAL: Mobile Overflow Guards
   These rules MUST be at the end to have highest specificity
   ========================================================================== */
@media (max-width: 1023px) {
    /* Force all sections to respect viewport width */
    section,
    .section,
    main,
    .site-main,
    header,
    footer,
    nav,
    .container {
        max-width: 100vw !important;
        overflow-x: hidden !important;
        box-sizing: border-box !important;
    }
    
    /* Prevent any element from being wider than viewport */
    img, video, iframe, embed, object {
        max-width: 100% !important;
        height: auto !important;
    }
    
    /* Ensure fixed/absolute elements don't cause overflow */
    .hero-carousel-centered,
    .hero-bg-container,
    .hero-bg-slide,
    .clients-carousel-section,
    .clients-carousel-wrapper {
        max-width: 100vw !important;
        overflow: hidden !important;
    }
    
    /* Force transforms to use GPU layer (isolates from document flow) */
    .hero-bg-slide,
    .hero-content-slide,
    .clients-carousel-track {
        -webkit-backface-visibility: hidden;
        backface-visibility: hidden;
        -webkit-transform-style: preserve-3d;
        transform-style: preserve-3d;
    }
}

/* Extra small devices - additional safeguards */
@media (max-width: 479px) {
    html, body {
        overflow-x: hidden !important;
        width: 100% !important;
        max-width: 100% !important;
    }
    
    /* Prevent flex items from forcing horizontal scroll */
    .homepage-project-card,
    .homepage-project-info,
    .homepage-project-meta,
    .mobile-nav-header,
    .service-card-lovable,
    .approach-card,
    .partner-card {
        min-width: 0 !important;
        max-width: 100% !important;
        flex-shrink: 1 !important;
    }
    
    /* Ensure text doesn't cause overflow */
    h1, h2, h3, h4, h5, h6, p, span, a {
        word-wrap: break-word;
        overflow-wrap: break-word;
        hyphens: auto;
    }
}

/* ================================
   MOBILE MENU CLICK FIX
   Prevent hero overlay from blocking header
   ================================ */

.site-header,
header,
.main-header {
  position: relative;
  z-index: 9999;
}

.menu-toggle,
.mobile-menu-toggle,
.nav-toggle {
  position: relative;
  z-index: 10000;
  pointer-events: auto;
}

@media (max-width: 768px) {
  #hero,
  .hero-carousel-centered,
  .hero-bg-container,
  .hero-overlay {
    pointer-events: none;
  }

  #hero * {
    pointer-events: none;
  }

  .site-header *,
  .menu-toggle {
    pointer-events: auto;
  }
}

/* ==========================================================================
   SINGLE PROJECT PAGE - Cloned from React ProjectDetail.tsx
   ========================================================================== */

/* Hero Section */
.single-project-page .project-hero {
    position: relative;
    height: 500px;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: flex-end;
    overflow: hidden;
}

.project-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(0,0,0,0.7), rgba(0,0,0,0.5), rgba(0,0,0,0.7));
}

.project-hero-content {
    position: relative;
    z-index: 10;
    width: 100%;
    padding-bottom: 3rem;
}

.project-hero .breadcrumb-light a,
.project-hero .breadcrumb-light span {
    color: rgba(255,255,255,0.9);
}

.project-hero .breadcrumb-light a:hover {
    color: #fff;
}

.project-hero-title {
    font-size: clamp(1.75rem, 4vw, 3rem);
    font-weight: 700;
    color: #fff;
    max-width: 900px;
    line-height: 1.2;
    margin: 1.5rem 0;
    text-shadow: 0 4px 8px rgba(0,0,0,0.5);
}

.project-hero-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 1rem;
}

.project-category-badge {
    background: hsl(var(--color-primary));
    color: #fff;
    padding: 0.5rem 1rem;
    border-radius: 9999px;
    font-size: 0.875rem;
    font-weight: 500;
}

.project-date-info {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: rgba(255,255,255,0.9);
    font-size: 0.9rem;
}

/* Project Details Card */
.project-details-card-section {
    background: #fff;
    padding: 0;
}

.project-details-card {
    background: #fff;
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    padding: 2rem;
    margin-top: -4rem;
    position: relative;
    z-index: 20;
    border: 1px solid hsl(var(--color-border));
}

.project-details-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
}

@media (max-width: 1024px) {
    .project-details-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 640px) {
    .project-details-grid {
        grid-template-columns: 1fr;
    }
}

.project-detail-item .detail-label {
    font-size: 0.75rem;
    font-weight: 600;
    color: hsl(var(--color-muted-foreground));
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.5rem;
}

.project-detail-item .detail-value {
    font-size: 1rem;
    font-weight: 500;
    color: hsl(var(--color-foreground));
}

.detail-with-icon {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.icon-primary {
    color: hsl(var(--color-primary));
}

/* Main Content Section */
.project-main-content-section {
    padding: 4rem 0;
    background: #fff;
}

.project-content-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 3rem;
}

@media (max-width: 1024px) {
    .project-content-grid {
        grid-template-columns: 1fr;
    }
}

/* Main Column */
.project-main-column {
    display: flex;
    flex-direction: column;
    gap: 3rem;
}

.content-block {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.content-heading {
    font-size: 1.5rem;
    font-weight: 700;
    color: hsl(var(--color-foreground));
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.content-heading svg {
    color: hsl(var(--color-primary));
}

.content-text {
    font-size: 1.125rem;
    line-height: 1.75;
    color: hsl(var(--color-muted-foreground));
}

/* Region Tags */
.region-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.region-tag {
    background: hsl(var(--color-primary) / 0.1);
    color: hsl(var(--color-primary));
    padding: 0.5rem 1rem;
    border-radius: 9999px;
    font-size: 0.875rem;
    font-weight: 500;
}

/* Partners List */
.partners-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.partners-list li {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: hsl(var(--color-muted-foreground));
}

.partners-list .bullet {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: hsl(var(--color-primary));
    flex-shrink: 0;
}

/* Objectives List */
.objectives-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.objectives-list li {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
}

.objective-number {
    width: 1.5rem;
    height: 1.5rem;
    border-radius: 50%;
    background: hsl(var(--color-primary) / 0.1);
    color: hsl(var(--color-primary));
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 0.875rem;
    font-weight: 700;
    margin-top: 0.125rem;
}

.objectives-list li span:last-child {
    color: hsl(var(--color-muted-foreground));
}

/* Outcomes List */
.outcomes-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.outcomes-list li {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
}

.outcome-bullet {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #22c55e;
    flex-shrink: 0;
    margin-top: 0.5rem;
}

.outcomes-list li span:last-child {
    color: hsl(var(--color-muted-foreground));
}

/* Sidebar */
.project-sidebar-column {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.sidebar-card {
    border-radius: var(--radius-lg);
    padding: 1.5rem;
}

.sidebar-experts {
    background: hsl(var(--color-muted));
    border: 1px solid hsl(var(--color-border));
}

.sidebar-contact {
    background: hsl(var(--color-primary) / 0.05);
    border: 1px solid hsl(var(--color-primary) / 0.1);
}

.sidebar-fields {
    background: #fff;
    border: 1px solid hsl(var(--color-border));
}

.sidebar-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: hsl(var(--color-foreground));
    margin-bottom: 1.5rem;
}

/* Experts List */
.experts-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.expert-item {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.expert-image {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #fff;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.expert-name {
    font-weight: 600;
    color: hsl(var(--color-foreground));
    margin-bottom: 0.125rem;
}

.expert-role {
    font-size: 0.875rem;
    color: hsl(var(--color-muted-foreground));
}

.sidebar-btn {
    margin-top: 1.5rem;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

/* Contact Links */
.contact-intro {
    color: hsl(var(--color-muted-foreground));
    margin-bottom: 1rem;
    font-size: 0.9rem;
}

.contact-links {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.contact-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: hsl(var(--color-muted-foreground));
    text-decoration: none;
    transition: color 0.2s;
}

.contact-link:hover {
    color: hsl(var(--color-primary));
}

/* Fields Tags */
.fields-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.field-tag {
    background: hsl(var(--color-muted));
    color: hsl(var(--color-foreground));
    padding: 0.375rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.875rem;
    font-weight: 500;
}

/* CTA Section */
.project-cta-section {
    padding: 4rem 0;
    background: #f3f4f6;
}

.cta-content {
    text-align: center;
    max-width: 700px;
    margin: 0 auto;
}

.cta-content h2 {
    font-size: 1.875rem;
    font-weight: 700;
    color: hsl(var(--color-foreground));
    margin-bottom: 1rem;
}

.cta-content p {
    color: hsl(var(--color-muted-foreground));
    margin-bottom: 2rem;
}

.cta-buttons {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
}

.cta-buttons .btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    font-weight: 500;
    border-radius: var(--radius-sm);
    text-decoration: none;
    transition: all 0.2s;
}

.cta-buttons .btn-primary {
    background: hsl(var(--color-primary));
    color: #fff;
}

.cta-buttons .btn-primary:hover {
    background: hsl(var(--color-secondary));
}

.cta-buttons .btn-outline {
    background: transparent;
    color: hsl(var(--color-foreground));
    border: 1px solid hsl(var(--color-border));
}

.cta-buttons .btn-outline:hover {
    background: hsl(var(--color-muted));
}

/* Related Projects Section */
.related-projects-section {
    padding: 5rem 0;
    background: #fff;
}

.related-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 3rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.related-header-text h2 {
    font-size: 1.875rem;
    font-weight: 700;
    color: hsl(var(--color-foreground));
}

.related-header-text p {
    color: hsl(var(--color-muted-foreground));
    margin-top: 0.5rem;
}

.related-header .btn-outline {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.625rem 1rem;
    border: 1px solid hsl(var(--color-border));
    border-radius: var(--radius-sm);
    color: hsl(var(--color-foreground));
    text-decoration: none;
    font-weight: 500;
    transition: all 0.2s;
}

.related-header .btn-outline:hover {
    background: hsl(var(--color-muted));
}

.related-projects-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

@media (max-width: 1024px) {
    .related-projects-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 640px) {
    .related-projects-grid {
        grid-template-columns: 1fr;
    }
}

.related-project-card {
    position: relative;
    height: 300px;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    text-decoration: none;
    display: block;
    transition: all 0.5s ease;
}

.related-project-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
}

.related-project-image {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.related-project-card:hover .related-project-image {
    transform: scale(1.1);
}

.related-project-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.8), rgba(0,0,0,0.4), transparent);
}

.related-project-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 1.5rem;
    color: #fff;
}

.related-project-category {
    font-size: 0.75rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    opacity: 0.8;
}

.related-project-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin-top: 0.5rem;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.related-project-location {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    font-size: 0.875rem;
    opacity: 0.9;
    margin-top: 0.5rem;
}

/* Mobile Responsive for Single Project */
@media (max-width: 768px) {
    .single-project-page .project-hero {
        height: 400px;
    }
    
    .project-details-card {
        margin-top: -2rem;
        padding: 1.5rem;
    }
    
    .project-main-content-section {
        padding: 2rem 0;
    }
    
    .content-heading {
        font-size: 1.25rem;
    }
    
    .content-text {
        font-size: 1rem;
    }
    
    .related-projects-section {
        padding: 3rem 0;
    }
    
    .related-header h2 {
        font-size: 1.5rem;
    }
}

/* ==========================================================================
   FIX #1: Testimonial Carousel - Smaller buttons on mobile
   ========================================================================== */
.testimonials-section-magenta .testimonial-nav {
    width: 40px;
    height: 40px;
}

@media (max-width: 768px) {
    .testimonials-section-magenta .testimonial-nav {
        width: 32px;
        height: 32px;
        padding: 0.25rem;
    }
    
    .testimonials-section-magenta .testimonial-nav svg {
        width: 14px;
        height: 14px;
    }
    
    .testimonials-section-magenta .testimonial-dots {
        padding: 0.375rem 0.75rem;
        gap: 0.375rem;
    }
    
    .testimonials-section-magenta .testimonial-dot {
        width: 6px;
        height: 6px;
    }
    
    .testimonials-section-magenta .testimonial-dot.active {
        width: 1.5rem;
    }
}

/* ==========================================================================
   FIX #2: Project Detail Page - Spacing between hero and details card
   ========================================================================== */
.single-project-page .project-details-card-section {
    padding-top: 2rem;
}

@media (max-width: 768px) {
    .single-project-page .project-details-card {
        margin-top: 1rem;
    }
    
    .single-project-page .project-hero {
        margin-bottom: 0;
    }
}

/* ==========================================================================
   FIX #3: Expert Images - Ensure images load properly with fallback styling
   ========================================================================== */
.sidebar-experts .expert-item .expert-image {
    width: 56px;
    height: 56px;
    min-width: 56px;
    min-height: 56px;
    border-radius: 50%;
    object-fit: cover;
    background: hsl(var(--color-primary) / 0.1);
    border: 2px solid hsl(var(--color-primary) / 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Fallback placeholder style for broken images */
.sidebar-experts .expert-item .expert-image:not([src]),
.sidebar-experts .expert-item .expert-image[src=""],
.sidebar-experts .expert-item .expert-image.placeholder {
    background: linear-gradient(135deg, hsl(var(--color-primary) / 0.2), hsl(var(--color-primary) / 0.1));
    color: hsl(var(--color-primary));
}

/* ==========================================================================
   FIX #4: Related Projects - Make text overlay visible on images
   ========================================================================== */
.related-project-card {
    position: relative;
    height: 300px;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    text-decoration: none;
    display: block;
    transition: all 0.5s ease;
}

.related-project-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0.5) 40%, rgba(0,0,0,0.2) 100%);
    pointer-events: none;
}

.related-project-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 1.5rem;
    color: #fff;
    z-index: 10;
}

.related-project-category {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: rgba(255,255,255,0.95);
    background: hsl(var(--color-primary));
    padding: 0.25rem 0.625rem;
    border-radius: 4px;
    display: inline-block;
    margin-bottom: 0.5rem;
}

.related-project-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin-top: 0.5rem;
    line-height: 1.3;
    color: #fff;
    text-shadow: 0 2px 8px rgba(0,0,0,0.5);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.related-project-location {
    display: flex;
    align-items: center;
    gap: 0.375rem;
    font-size: 0.875rem;
    color: rgba(255,255,255,0.9);
    margin-top: 0.75rem;
    text-shadow: 0 1px 4px rgba(0,0,0,0.4);
}

.related-project-location svg {
    color: rgba(255,255,255,0.85);
}

/* ==========================================================================
   FIX #5: Homepage Projects Section - Match Lovable format exactly
   ========================================================================== */
.projects-section-home .homepage-project-card {
    display: flex;
    flex-direction: column;
    background: hsl(var(--color-card));
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid hsl(var(--color-border));
    box-shadow: var(--shadow-md);
    transition: all 0.3s ease;
    text-decoration: none;
}

@media (min-width: 768px) {
    .projects-section-home .homepage-project-card {
        flex-direction: row;
    }
}

.projects-section-home .homepage-project-card:hover {
    box-shadow: var(--shadow-xl);
    transform: translateY(-4px);
}

.projects-section-home .homepage-project-image {
    width: 100%;
    height: 200px;
    overflow: hidden;
    flex-shrink: 0;
}

@media (min-width: 768px) {
    .projects-section-home .homepage-project-image {
        width: 280px;
        height: auto;
        min-height: 200px;
    }
}

.projects-section-home .homepage-project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.projects-section-home .homepage-project-card:hover .homepage-project-image img {
    transform: scale(1.05);
}

.projects-section-home .homepage-project-info {
    flex: 1;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.projects-section-home .homepage-project-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    color: hsl(var(--color-muted-foreground));
    margin-bottom: 0.75rem;
}

.projects-section-home .homepage-meta-item {
    display: flex;
    align-items: center;
    gap: 0.375rem;
}

.projects-section-home .homepage-meta-item svg {
    color: hsl(var(--color-muted-foreground));
    flex-shrink: 0;
}

.projects-section-home .homepage-meta-separator {
    color: hsl(var(--color-border));
}

.projects-section-home .homepage-project-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: hsl(var(--color-primary));
    margin-bottom: 0.75rem;
    transition: color 0.3s ease;
    line-height: 1.3;
}

@media (min-width: 768px) {
    .projects-section-home .homepage-project-title {
        font-size: 1.5rem;
    }
}

.projects-section-home .homepage-project-card:hover .homepage-project-title {
    color: hsl(310 58% 45%);
}

.projects-section-home .homepage-project-status {
    display: inline-block;
    width: fit-content;
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 600;
}

.projects-section-home .homepage-project-status.status-completed {
    background: hsl(var(--color-muted));
    color: hsl(var(--color-muted-foreground));
}

.projects-section-home .homepage-project-status.status-current {
    background: rgba(34, 197, 94, 0.1);
    color: #16a34a;
    border: 1px solid rgba(34, 197, 94, 0.3);
}

.projects-section-home .projects-list-vertical {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

/* Mobile adjustments for homepage projects */
@media (max-width: 639px) {
    .projects-section-home .homepage-project-info {
        padding: 1rem;
    }
    
    .projects-section-home .homepage-project-meta {
        font-size: 0.75rem;
    }
    
    .projects-section-home .homepage-project-title {
        font-size: 1.125rem;
    }
}
