/* CSS Variables for Light/Dark Mode - NewGen Brand Colors */
:root {
    /* Background Colors */
    --bg-primary: #F1F2EF;
    --bg-secondary: #D9D9D6; /* Warm Sand */
    --bg-tertiary: #D9D9D6; /* Soft Gray */

    /* Text Colors */
    --text-primary: #2E3438; /* Cool Charcoal */
    --text-secondary: #5A6670; /* Slate Gray */
    --text-tertiary: #5A6670;

    /* Border & Card Colors */
    --border-color: #D9D9D6;
    --card-bg: #ffffff;
    --card-border: #D9D9D6;

    /* Navigation */
    --nav-bg: rgba(255, 255, 255, 0.95);

    /* Hero Overlay */
    --hero-overlay-start: rgba(46, 52, 56, 0.75);
    --hero-overlay-mid: rgba(46, 52, 56, 0.5);
    --hero-overlay-end: rgba(46, 52, 56, 0.85);

    /* Brand Accent Colors - Simplified */
    --accent-primary: #245F82; /* Primary Brand Blue */
    --accent-secondary: #8FAD08; /* Accent Orange for CTAs and highlights */
    --accent-tertiary: #D76C53; /* Tertiary accent for hover states */

    /* Scrollbar */
    --scrollbar-track: #E9E4DA;
    --scrollbar-thumb: #5A6670;
}

[data-theme="dark"] {
    /* Background Colors */
    --bg-primary: #2E3438; /* Cool Charcoal */
    --bg-secondary: #1a1e22;
    --bg-tertiary: #3a4046;

    /* Text Colors */
    --text-primary: #E9E4DA; /* Warm Sand */
    --text-secondary: #D9D9D6; /* Soft Gray */
    --text-tertiary: #5A6670; /* Slate Gray */

    /* Border & Card Colors */
    --border-color: #5A6670;
    --card-bg: #3a4046;
    --card-border: #5A6670;

    /* Navigation */
    --nav-bg: rgba(46, 52, 56, 0.95);

    /* Hero Overlay */
    --hero-overlay-start: rgba(46, 52, 56, 0.85);
    --hero-overlay-mid: rgba(46, 52, 56, 0.6);
    --hero-overlay-end: #2E3438;

    /* Brand Accent Colors - Simplified */
    --accent-primary: #4A96C4; /* Primary Brand Blue (lightened for dark bg) */
    --accent-secondary: #A3C414; /* Accent Green for CTAs and highlights (brightened for dark bg) */
    --accent-tertiary: #E08B77; /* Tertiary terracotta for hover states (lightened for dark bg) */

    /* Scrollbar */
    --scrollbar-track: #2E3438;
    --scrollbar-thumb: #5A6670;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-primary);
    color: var(--text-primary);
    transition: background-color 0.3s ease, color 0.3s ease;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--scrollbar-track);
}

::-webkit-scrollbar-thumb {
    background: var(--scrollbar-thumb);
    border-radius: 4px;
}

/* Hero Video Background - Simplified with more space */
.hero-bg {
    position: relative;
    overflow: hidden;
    padding: 8rem 0;
    height: min(90vh, calc(100dvh - 80px));
    min-height: 70vh;
    background: url('assets/photos/hero-poster.jpg') center/cover no-repeat;
}

.hero-video {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    transform: translate(-50%, -50%);
    object-fit: cover;
    z-index: 0;
    opacity: 0;
    transition: opacity 0.6s ease;
}

.hero-video.loaded {
    opacity: 1;
}

.hero-overlay {
    background: linear-gradient(180deg, rgba(46, 52, 56, 0.85) 0%, rgba(46, 52, 56, 0.6) 50%, rgba(46, 52, 56, 0.9) 100%);
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1;
}

/* Card Hover Effects - More subtle */
.service-card,
.person-card {
    transition: all 0.3s ease;
    background-color: var(--card-bg);
    border-color: var(--card-border);
}

/* Service card hover disabled for services page minimal design */

.person-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px -8px rgba(36, 95, 130, 0.15);
}

/* Accent Text - White with shadow for visibility on video */
.text-gradient {
    color: #ffffff;
    font-weight: 800;
    font-size: 1.15em;
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.4),
                 0 4px 24px rgba(0, 0, 0, 0.3);
    letter-spacing: -0.02em;
}

.border-gradient-left {
    border-left: 4px solid var(--accent-primary);
}

/* Navigation Styles - Cleaner */
nav {
    background-color: var(--nav-bg);
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    transition: background-color 0.3s ease;
    top: 0;
    left: 0;
    right: 0;
}

[data-theme="dark"] nav {
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.nav-link {
    position: relative;
    padding-bottom: 4px;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--accent-secondary);
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

.logo-gradient {
    background: #4B622C;
}

/* Hero Badge */
.hero-badge {
    border-color: rgba(255, 255, 255, 0.3);
    background-color: rgba(255, 255, 255, 0.1);
}

.hero-badge span {
    color: var(--accent-secondary);
}

/* Hero Text - Always Light */
.hero-text-light {
    color: #ffffff !important;
}

.hero-stat-light {
    color: #ffffff !important;
}

.hero-stat-label {
    opacity: 0.8;
}

.hero-stats-border {
    border-color: rgba(255, 255, 255, 0.3);
}

/* Buttons - Unified Style */
.btn-primary,
.btn-secondary,
.btn-tertiary {
    background-color: var(--accent-primary);
    color: white;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    border-radius: 50px;
}

.btn-primary:hover,
.btn-secondary:hover,
.btn-tertiary:hover {
    background-color: var(--accent-tertiary);
    transform: translateY(-2px);
}

/* Hero Buttons - Simplified */
.hero-btn-1,
.hero-btn-2,
.hero-btn-3 {
    background-color: var(--accent-primary);
    color: white;
    transition: all 0.3s ease;
    border-radius: 50px;
}

.hero-btn-1:hover,
.hero-btn-2:hover,
.hero-btn-3:hover {
    background-color: var(--accent-tertiary);
    transform: translateY(-2px);
}

/* Theme Toggle Button */
.theme-toggle {
    background: transparent;
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    border-radius: 50px;
    padding: 0.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 36px;
    height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.theme-toggle:hover {
    border-color: var(--accent-primary);
    color: var(--accent-primary);
}

/* Search Bar Styles */
.search-container {
    position: relative;
}

.search-input {
    background-color: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    padding: 0.5rem 2.5rem 0.5rem 1rem;
    border-radius: 50px;
    transition: all 0.3s ease;
    width: 200px;
}

.search-input:focus {
    outline: none;
    border-color: var(--accent-primary);
    width: 250px;
}

.search-input::placeholder {
    color: var(--text-tertiary);
}

.search-icon {
    position: absolute;
    right: 0.75rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-tertiary);
    pointer-events: none;
}


/* Section Backgrounds */
.bg-primary {
    background-color: var(--bg-primary);
}

.bg-secondary {
    background-color: var(--bg-secondary);
}

.bg-tertiary {
    background-color: var(--bg-tertiary);
}

/* Footer Styles */
footer {
    background-color: var(--bg-primary);
    border-top: 1px solid var(--border-color);
}

.footer-section {
    border-color: var(--border-color);
}

.footer-bottom {
    border-color: var(--border-color);
}

.career-item {
    border-color: var(--border-color);
}

.person-card-footer {
    background-color: var(--bg-tertiary);
    border-color: var(--border-color);
}

/* Stats Card - Simplified */
.stats-card {
    background-color: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 0.5rem;
    padding: 1.5rem;
    transition: all 0.3s ease;
}

.stat-blue,
.stat-green,
.stat-teal,
.stat-gold {
    color: var(--accent-primary);
}

/* Process Step */
.process-step {
    background-color: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    transition: all 0.4s ease;
}

/* Process Animation Styles */
.process-container {
    padding: 2rem 0;
}

.process-line {
    position: absolute;
    top: 40px;
    left: 12.5%;
    right: 12.5%;
    height: 3px;
    background: var(--accent-primary);
    transform: scaleX(0);
    transform-origin: left;
    z-index: 0;
    display: none;
}

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

.process-line.animate {
    animation: drawLine 2s ease-out forwards;
}

@keyframes drawLine {
    to {
        transform: scaleX(1);
    }
}

.process-item {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

.process-item.animate {
    opacity: 1;
    transform: translateY(0);
}

.process-item[data-step="1"].animate {
    animation: fadeInUp 0.6s ease-out 0.2s forwards;
}

.process-item[data-step="2"].animate {
    animation: fadeInUp 0.6s ease-out 0.5s forwards;
}

.process-item[data-step="3"].animate {
    animation: fadeInUp 0.6s ease-out 0.8s forwards;
}

.process-item[data-step="4"].animate {
    animation: fadeInUp 0.6s ease-out 1.1s forwards;
}

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

.process-item:hover .process-step {
    transform: scale(1.05);
    border-color: var(--accent-primary);
    box-shadow: 0 0 15px rgba(36, 95, 130, 0.3);
}

.process-item:hover {
    transform: translateY(-5px);
}

.process-item.animate:hover {
    transform: translateY(-5px);
}

/* Text color utilities */
.text-primary {
    color: var(--text-primary);
}

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

.text-tertiary {
    color: var(--text-tertiary);
}

/* Video Container */
.video-container {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
    height: 0;
    overflow: hidden;
    border-radius: 0.5rem;
}

.video-container video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Client Story Card */
.client-story-card {
    background-color: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 1rem;
    overflow: hidden;
    transition: all 0.3s ease;
}

.client-story-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px -10px rgba(36, 95, 130, 0.3);
}

.story-quote {
    font-style: italic;
    line-height: 1.8;
    position: relative;
    padding-left: 1.5rem;
}

/* Testimonial Cards */
.testimonial-card {
    transition: all 0.3s ease;
}

.testimonial-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px -8px rgba(36, 95, 130, 0.25);
}

/* Testimonial Divider with Shimmer Effect */
.testimonial-divider {
    position: relative;
    height: 1px;
    width: 100%;
    background: var(--border-color);
    overflow: hidden;
}

.testimonial-divider::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(75, 98, 44, 0.6),
        rgba(75, 98, 44, 0.8),
        rgba(75, 98, 44, 0.6),
        transparent
    );
    opacity: 0;
    transform: translateX(-100%);
    will-change: transform, opacity;
}

.testimonial-card:hover .testimonial-divider::after {
    opacity: 1;
    animation: shimmer 0.8s ease-out forwards;
}

/* Service Card with Background Image */
.service-card-bg {
    background-size: cover;
    background-position: center;
    position: relative;
}

.service-card-overlay {
    background: linear-gradient(180deg, rgba(46, 52, 56, 0.75) 0%, rgba(46, 52, 56, 0.8) 100%);
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    transition: background 0.3s ease;
}

.service-card-bg:hover .service-card-overlay {
    background: linear-gradient(180deg, rgba(46, 52, 56, 0.7) 0%, rgba(46, 52, 56, 0.75) 100%);
}

.service-card-bg h3,
.service-card-bg p,
.service-card-bg li {
    color: #ffffff !important;
}

.service-card-bg .fa-check {
    color: var(--accent-secondary) !important;
}

/* Careers Hero Background */
.careers-hero-bg {
    position: relative;
    overflow: hidden;
    background-image: url('assets/images/puzzle.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.careers-hero-overlay {
    background: linear-gradient(180deg, rgba(46, 52, 56, 0.7) 0%, rgba(46, 52, 56, 0.7) 50%, rgba(46, 52, 56, 0.6) 100%);
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1;
}

/* Careers Masonry Layout */
.careers-masonry {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    grid-auto-rows: minmax(140px, auto);
    gap: 1.5rem;
    position: relative;
}

.careers-photo {
    position: relative;
    overflow: hidden;
    border-radius: 0.75rem;
    box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.2);
    transition: all 0.4s ease;
}

.careers-photo:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.3);
    z-index: 10;
}

.careers-photo-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.careers-photo:hover .careers-photo-img {
    transform: scale(1.1);
}

/* Portrait photos: 2:3 aspect ratio (2 columns wide, 3 rows tall) */
.careers-photo-portrait {
    aspect-ratio: 2 / 3;
}

/* Landscape photos: 3:2 aspect ratio (3 columns wide, 2 rows tall) */
.careers-photo-landscape {
    aspect-ratio: 3 / 2;
}

.careers-benefit-card {
    display: flex;
    flex-direction: column;
    justify-content: center;
    transition: all 0.3s ease;
    aspect-ratio: 2 / 3;
}

.careers-benefit-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 24px -8px rgba(36, 95, 130, 0.2);
    border-color: var(--accent-primary);
}

/* Responsive adjustments for masonry */
@media (max-width: 1200px) {
    .careers-masonry {
        grid-template-columns: repeat(4, 1fr);
        gap: 1rem;
    }

    /* Reposition items for 4-column layout */
    .careers-masonry > div:nth-child(1) { grid-area: 1 / 1 / span 3 / span 2 !important; } /* Portrait */
    .careers-masonry > div:nth-child(2) { grid-area: 1 / 3 / span 3 / span 2 !important; } /* Benefit */
    .careers-masonry > div:nth-child(3) { grid-area: 4 / 1 / span 2 / span 3 !important; } /* Landscape */
    .careers-masonry > div:nth-child(4) { grid-area: 4 / 4 / span 3 / span 2 !important; } /* Benefit */
    .careers-masonry > div:nth-child(5) { grid-area: 6 / 1 / span 3 / span 2 !important; } /* Benefit */
    .careers-masonry > div:nth-child(6) { grid-area: 6 / 3 / span 3 / span 2 !important; } /* Portrait */
    .careers-masonry > div:nth-child(7) { grid-area: 7 / 1 / span 3 / span 2 !important; } /* Benefit */
    .careers-masonry > div:nth-child(8) { grid-area: 9 / 1 / span 2 / span 3 !important; } /* Landscape */
    .careers-masonry > div:nth-child(9) { grid-area: 9 / 4 / span 3 / span 2 !important; } /* Benefit */
    .careers-masonry > div:nth-child(10) { grid-area: 10 / 1 / span 2 / span 4 !important; } /* Landscape */
    .careers-masonry > div:nth-child(11) { grid-area: 12 / 1 / span 3 / span 2 !important; } /* Benefit */
}

@media (max-width: 768px) {
    .careers-masonry {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }

    /* Single 2-column layout - let items flow naturally with their aspect ratios */
    .careers-masonry > div {
        grid-column: span 2 !important;
        grid-row: auto !important;
    }

    /* Portrait and landscape maintain their aspect ratios */
    .careers-photo-portrait {
        aspect-ratio: 2 / 3;
    }

    .careers-photo-landscape {
        aspect-ratio: 3 / 2;
    }

    .careers-benefit-card {
        aspect-ratio: auto;
        min-height: 280px;
    }
}

/* Services Page Styles */
.services-nav-bar {
    border-bottom: 1px solid var(--border-color);
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
}

.service-nav-btn {
    background-color: transparent;
    border: 2px solid var(--border-color);
    color: var(--text-primary);
    transition: all 0.3s ease;
}

.service-nav-btn:hover {
    border-color: var(--accent-primary);
    color: var(--accent-primary);
    transform: translateY(-2px);
}

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

.service-detail-card {
    background-color: var(--card-bg);
    border-color: var(--card-border);
    transition: all 0.3s ease;
}

.service-detail-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px -8px rgba(36, 95, 130, 0.15);
    border-color: var(--accent-primary);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .hero-bg {
        min-height: 520px;
        height: 120vh; /* increase height ~30% for mobile */
        padding-top: 8.5rem; /* ensure space under fixed header */
    }

    .services-nav-bar {
        position: relative;
        top: 0;
    }
}

/* Mobile-only header and spacing adjustments */
@media (max-width: 768px) {
    /* Disable desktop dropdown panels on mobile; use mobile menu instead */
    #who-we-are-menu,
    #what-we-do-menu,
    #our-markets-menu {
        display: none !important;
    }

    /* Careers page cards full-width and consistent on mobile */
    .why-card {
        width: 95vw !important;
        max-width: none;
        min-height: 360px;
    }

    .why-newgen-grid {
        width: 100vw;
        margin-left: calc(50% - 50vw);
        margin-right: calc(50% - 50vw);
        padding-left: 1rem;
        padding-right: 1rem;
    }

    body {
        padding-top: 80px; /* ensure content starts below fixed header */
    }
}

/* Dropdown Menus */
#who-we-are-menu,
#what-we-do-menu,
#our-markets-menu {
    background-color: var(--card-bg);
    border-color: var(--border-color);
    transition: opacity 0.2s ease-in-out, transform 0.2s ease-in-out;
    transform-origin: top center;
}

#who-we-are-menu.hidden,
#what-we-do-menu.hidden,
#our-markets-menu.hidden {
    opacity: 0;
    transform: translateY(-10px);
    pointer-events: none;
}

/* Active state for dropdown buttons */
.nav-link.active {
    color: var(--accent-primary);
    position: relative;
}

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    right: 0;
    height: 2px;
    background-color: var(--accent-primary);
}

/* Dropdown links */
#who-we-are-menu a,
#what-we-do-menu a,
#our-markets-menu a {
    color: var(--text-primary);
    background-color: transparent;
    transition: background-color 0.2s ease, transform 0.2s ease;
    display: block;
}

#who-we-are-menu a:hover,
#what-we-do-menu a:hover,
#our-markets-menu a:hover {
    background-color: var(--bg-secondary);
    transform: translateX(4px);
}

/* Dropdown right-side content styling */
.dropdown-right-content {
    background: rgba(36, 95, 130, 0.03);
    border-left: 3px solid var(--accent-primary);
    padding: 2rem;
    border-radius: 0.5rem;
}

[data-theme="dark"] .dropdown-right-content {
    background: rgba(36, 95, 130, 0.1);
}

.dropdown-right-content p {
    font-size: 0.95rem;
    line-height: 1.8;
    color: var(--text-secondary);
}

.dropdown-right-content strong {
    color: var(--text-primary);
}

.dropdown-right-content em {
    color: var(--accent-primary);
    font-style: normal;
    font-weight: 600;
}

/* Core Markets Grid */
.core-markets-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
}

.market-item {
    padding: 1.25rem;
    border-radius: 0.5rem;
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
    background-color: transparent;
}

.market-item:hover {
    border-color: var(--accent-primary);
    background-color: rgba(36, 95, 130, 0.05);
    transform: translateX(5px);
}

.market-item i {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    display: block;
}

.market-item h4 {
    font-weight: 700;
    font-size: 1rem;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.market-item p {
    font-size: 0.8rem;
    color: var(--text-secondary);
    margin: 0;
    line-height: 1.5;
}

/* Market icon colors */
.market-icon-energy {
    color: #E08A3D;
}

.market-icon-water {
    color: #6BA8C8;
}

.market-icon-waste {
    color: #8FAD08;
}

/* Section Separators - Removed for cleaner look */

/* News Section */
.stories-logo {
    width: 100%;
    max-width: 500px;
    height: auto;
    padding: 0px 0;
}

.stories-logo-light {
    display: block;
}

.stories-logo-dark {
    display: none;
}

[data-theme="dark"] .stories-logo-light {
    display: none;
}

[data-theme="dark"] .stories-logo-dark {
    display: block;
}

/* Stories Page Header Logo */
.stories-logo-header {
    width: 100%;
    max-width: 500px;
    height: auto;
}

/* Story Page Content */
.prose {
    color: var(--text-primary);
}

.prose h2 {
    color: var(--text-primary);
    margin-top: 2rem;
    margin-bottom: 1rem;
}

.prose p {
    margin-bottom: 1.5rem;
    line-height: 1.8;
}

.prose a {
    color: var(--accent-primary);
    text-decoration: none;
    transition: color 0.3s ease;
}

.prose a:hover {
    color: var(--accent-tertiary);
}

.prose ul, .prose ol {
    margin-bottom: 1.5rem;
    padding-left: 1.5rem;
}

.prose li {
    margin-bottom: 0.5rem;
}

.prose blockquote {
    border-left: 4px solid var(--accent-secondary);
    padding-left: 1.5rem;
    margin: 2rem 0;
    font-style: italic;
    color: var(--text-secondary);
}

/* Featured Story Layout */
.featured-story-card {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    background-color: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 0.5rem;
    overflow: hidden;
    transition: all 0.3s ease;
    cursor: pointer;
}

.featured-story-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px -10px rgba(36, 95, 130, 0.3);
}

.featured-story-image {
    width: 100%;
    height: 100%;
    min-height: 400px;
    overflow: hidden;
    position: relative;
}

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

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

.featured-story-content {
    padding: 3rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.featured-story-category {
    display: inline-block;
    color: var(--accent-secondary);
    font-size: 0.875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 1rem;
}

.featured-story-title {
    font-size: 2.25rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 1rem;
    line-height: 1.2;
}

.featured-story-headline {
    font-size: 1.125rem;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

.featured-story-date {
    font-size: 0.875rem;
    color: var(--text-tertiary);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.featured-story-read-more {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--accent-primary);
    font-weight: 600;
    margin-top: 1rem;
    transition: all 0.3s ease;
}

.featured-story-card:hover .featured-story-read-more {
    color: var(--accent-tertiary);
    transform: translateX(5px);
}

/* Responsive Featured Story */
@media (max-width: 768px) {
    .featured-story-card {
        grid-template-columns: 1fr;
    }

    .featured-story-image {
        min-height: 250px;
    }

    .featured-story-content {
        padding: 2rem;
    }

    .featured-story-title {
        font-size: 1.75rem;
    }

    /* Fix spacing for More Stories button in mobile */
    #news-expand-section {
        margin-top: 3rem !important;
        padding-top: 1rem;
    }

    .more-stories-btn {
        display: block;
        text-align: center;
        padding: 0.75rem 0;
    }
}

/* More Stories Button */
.more-stories-btn {
    display: inline-block;
    color: var(--accent-secondary);
    font-size: 1.125rem;
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
    padding-bottom: 0.25rem;
    margin-top: 10px;
    z-index: 20;
}

.more-stories-btn::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent-secondary);
    transition: width 0.3s ease;
}

.more-stories-btn:hover {
    color: var(--accent-tertiary);
}

.more-stories-btn:hover::after {
    width: 100%;
}

.news-view-all-btn {
    color: var(--accent-primary);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.news-view-all-btn:hover {
    color: var(--accent-tertiary);
    transform: translateX(5px);
}

/* News Cards - Clean grid style with images */
.news-card {
    background-color: transparent;
    border: none;
    transition: all 0.2s ease;
    cursor: pointer;
    position: relative;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.news-card:hover {
    transform: translateY(-2px);
}

.news-card-image {
    width: 100%;
    height: 240px;
    overflow: hidden;
    position: relative;
    background: rgba(36, 95, 130, 0.03);
    margin-bottom: 1.5rem;
    display: flex;
    flex-direction: column;
}

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

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

.news-card-category {
    display: inline-block;
    background: transparent;
    color: var(--accent-secondary);
    padding: 0;
    margin-bottom: 0.75rem;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

/* Category Color Coding - Simplified */
.news-card-category.category-case-study,
.news-card-category.category-innovation,
.news-card-category.category-company-news,
.news-card-category.category-events {
    background: transparent;
    color: var(--accent-secondary);
}

.news-card-content {
    padding: 0;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.news-card-date {
    font-size: 0.875rem;
    color: white;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 0.5rem 1rem;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
    z-index: 2;
}

.news-card-title {
    font-size: 1.375rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.75rem;
    line-height: 1.3;
    transition: color 0.2s ease;
}

.news-card:hover .news-card-title {
    color: var(--accent-primary);
}

.news-card-headline {
    font-size: 0.9375rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 0;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.news-card-footer {
    display: none;
}

.news-card-read-more {
    display: none;
}

/* Placeholder for missing images */
.news-card-image-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(36, 95, 130, 0.05);
}

.news-card-image-placeholder i {
    font-size: 3rem;
    color: var(--accent-primary);
    opacity: 0.3;
}

/* News Expand Section */
#news-expand-section {
    margin-top: 2rem;
    position: relative;
    z-index: 10;
    clear: both;
}

/* News Expand Button */
.news-expand-btn {
    background-color: var(--accent-primary);
    border: 2px solid var(--accent-primary);
    color: white;
    padding: 1rem 2rem;
    border-radius: 0.5rem;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    box-shadow: 0 4px 12px rgba(36, 95, 130, 0.2);
}

.news-expand-btn:hover {
    background: var(--accent-tertiary);
    color: white;
    border-color: var(--accent-tertiary);
    transform: translateY(-2px);
    box-shadow: 0 8px 16px rgba(224, 138, 61, 0.3);
}

.news-expand-btn i {
    transition: transform 0.3s ease;
}

.news-expand-btn.expanded i {
    transform: rotate(180deg);
}

/* Hidden news rows */
.news-row-hidden {
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    margin-bottom: 0;
    transition: max-height 0.5s cubic-bezier(0.4, 0, 0.2, 1),
                opacity 0.4s ease,
                margin-bottom 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.news-row-peek {
    pointer-events: none;
    position: relative;
    max-height: 150px;
    overflow: hidden;
    transition: max-height 0.5s cubic-bezier(0.4, 0, 0.2, 1),
                opacity 0.4s ease;
}

.news-row-peek .news-card-image {
    display: none;
}

.news-row-peek::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 100%;
    background: linear-gradient(180deg, transparent 0%, rgba(255, 255, 255, 0.4) 40%, var(--bg-primary) 85%);
    pointer-events: none;
    transition: opacity 0.3s ease;
}

[data-theme="dark"] .news-row-peek::after {
    background: linear-gradient(180deg, transparent 0%, rgba(46, 52, 56, 0.4) 40%, var(--bg-primary) 85%);
}

/* Expanded state */
.news-row-expanded {
    max-height: 2000px;
    opacity: 1;
    margin-bottom: 2rem;
    pointer-events: auto;
    transition: max-height 0.6s cubic-bezier(0.4, 0, 0.2, 1),
                opacity 0.5s ease 0.1s,
                margin-bottom 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.news-row-expanded::after {
    opacity: 0;
}

/* People Page - Intro Text */
.people-intro-text {
    max-width: 60rem;
}

/* People Page - Search */
.people-search-input {
    width: 100%;
    padding: 1rem 3rem 1rem 1.5rem;
    border: 2px solid var(--border-color);
    border-radius: 50px;
    background-color: var(--bg-primary);
    color: var(--text-primary);
    font-size: 1rem;
    transition: all 0.3s ease;
}

.people-search-input:focus {
    outline: none;
    border-color: var(--accent-tertiary);
    box-shadow: 0 0 0 3px rgba(215, 108, 83, 0.1);
}

.people-search-icon {
    position: absolute;
    right: 1.25rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-secondary);
    pointer-events: none;
}

/* People Grid Container */
.people-grid-container {
    display: grid;
    grid-template-columns: repeat(3, 320px);
    max-width: 1200px;
    margin: 0 auto 4rem;
    gap: 3rem;
    justify-content: center;
}

@media (min-width: 769px) and (max-width: 1200px) {
    .people-grid-container {
        grid-template-columns: repeat(auto-fit, 320px);
    }
}

@media (max-width: 768px) {
    .people-grid-container {
        grid-template-columns: 320px;
    }
}

/* Person Profile Card */
.person-profile-card {
    text-align: center;
    width: 320px;
}

.person-photo-container {
    margin-bottom: 1rem;
    display: flex;
    justify-content: center;
}

.person-photo {
    border: 4px solid var(--bg-primary);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    width: 12.5rem;
    height: 12.5rem;
    border-radius: 50%;
}

.person-initials {
    background-color: var(--accent-primary);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    font-weight: bold;
}

.person-name {
    margin-bottom: 0.25rem;
}

.person-position {
    color: var(--accent-secondary);
    margin-bottom: 0.25rem;
}

.person-summary {
    color: var(--text-tertiary);
    margin-bottom: 1rem;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

[data-theme="dark"] .person-summary {
    color: #a1a1aa;
}

.person-links {
    display: flex;
    justify-content: center;
    gap: 1rem;
}

.person-link {
    color: var(--text-secondary);
    transition: color 0.3s ease;
}

.person-link:hover {
    color: var(--text-primary);
}

/* Group Separator */
.group-separator {
    margin-bottom: 3rem;
    margin-top: 2rem;
}

.group-header-content {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    justify-content: center;
}

.group-accent-line {
    height: 2px;
    width: 60px;
    background: linear-gradient(90deg, transparent 0%, var(--accent-secondary) 100%);
}

.group-header-content .group-accent-line:last-child {
    background: linear-gradient(90deg, var(--accent-secondary) 0%, transparent 100%);
}

/* Person Modal */
.person-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.person-modal.hidden {
    display: none;
}

.person-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    -webkit-backdrop-filter: blur(4px);
    backdrop-filter: blur(4px);
}

.person-modal-content {
    position: relative;
    background-color: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: 1rem;
    max-width: 600px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
    z-index: 1001;
}

.person-modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 50%;
    border: none;
    background-color: var(--bg-secondary);
    color: var(--text-secondary);
    font-size: 1.5rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 1002;
}

.person-modal-close:hover {
    background-color: var(--accent-secondary);
    color: white;
    transform: rotate(90deg);
}

#modal-body {
    padding: 3rem 2rem 2rem;
    text-align: center;
}

.modal-photo-container {
    margin-bottom: 1.5rem;
    display: flex;
    justify-content: center;
}

.modal-photo {
    border: 4px solid var(--bg-primary);
    box-shadow: 0 8px 24px rgba(0,0,0,0.15);
    width: 14rem;
    height: 14rem;
    border-radius: 50%;
}

.modal-initials {
    background-color: var(--accent-primary);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    font-weight: bold;
}

.modal-name {
    font-size: 1.75rem;
    font-weight: bold;
    text-transform: uppercase;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.modal-position {
    color: var(--accent-secondary);
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
}

.modal-summary {
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 2rem;
    text-align: left;
}

[data-theme="dark"] .modal-summary {
    color: #a1a1aa;
}

.modal-links {
    display: flex;
    justify-content: center;
    gap: 1rem;
}

.modal-link {
    width: 3rem;
    height: 3rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background-color: var(--bg-secondary);
    color: var(--text-secondary);
    transition: all 0.3s ease;
    font-size: 1.25rem;
}

.modal-link:hover {
    background: var(--accent-secondary);
    color: white;
    transform: translateY(-3px);
}

/* Modal Impact Sections */
.modal-impact-sections {
    margin: 1.5rem 0;
    padding: 1rem 0;
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}

.modal-impact-item {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    margin: 0.75rem 0;
    padding: 0.75rem;
    background: var(--bg-secondary);
    border-radius: 0.5rem;
    transition: all 0.3s ease;
}

.modal-impact-item:hover {
    background: var(--bg-tertiary);
    transform: translateX(4px);
}

.modal-impact-item i {
    color: var(--accent-primary);
    font-size: 1rem;
    margin-top: 0.25rem;
    flex-shrink: 0;
}

.modal-impact-link {
    color: var(--text-primary);
    text-decoration: none;
    font-size: 0.95rem;
    line-height: 1.5;
    flex: 1;
    transition: color 0.3s ease;
}

.modal-impact-link:hover {
    color: var(--accent-primary);
}

/* Make cards clickable */
.person-profile-card {
    cursor: pointer;
    transition: transform 0.2s ease;
}

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

/* Locations Page */
.dot-map-container {
    position: relative;
    width: 100%;
    max-width: 1000px;
    margin: 0 auto;
    background-color: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: 0.5rem;
    padding: 2rem;
}

#dotMap {
    width: 100%;
    height: auto;
}

.map-dot {
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    cursor: pointer;
    filter: drop-shadow(0 0 0 transparent);
}

.map-dot.base-dot {
    fill: var(--text-tertiary);
    opacity: 0.4;
}

.map-dot.base-dot:hover {
    opacity: 0.8;
    transform: translateY(-3px);
    filter: drop-shadow(0 0 8px var(--accent-secondary));
}

.map-dot.office-dot {
    fill: var(--accent-secondary);
    opacity: 1;
    r: 5;
}

.map-dot.office-dot:hover {
    transform: scale(1.3) translateY(-4px);
    filter: drop-shadow(0 0 12px var(--accent-secondary));
}

/* Office Info Card */
.office-info-card {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: var(--card-bg);
    border: 2px solid var(--accent-secondary);
    border-radius: 0.75rem;
    padding: 2rem;
    min-width: 300px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    z-index: 10;
    transition: all 0.3s ease;
    pointer-events: none;
}

.office-info-card.hidden {
    opacity: 0;
    visibility: hidden;
}

.office-card-city {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.office-card-address {
    color: var(--text-secondary);
    margin-bottom: 0.25rem;
}

.office-card-phone {
    color: var(--accent-secondary);
    font-weight: 600;
}

.office-card {
    background-color: var(--card-bg);
    border: 1px solid var(--card-border);
    transition: all 0.3s ease;
}

.office-card:hover {
    transform: translateY(-5px);
    border-color: var(--accent-primary);
}

/* Our Values Page */
.attribute-card {
    background-color: var(--card-bg);
    border: 1px solid var(--card-border);
    transition: all 0.3s ease;
}

.attribute-card:hover {
    transform: translateY(-5px);
    border-color: var(--accent-primary);
}

.core-values-menu {
    flex-shrink: 0;
}

.core-value-btn {
    background-color: transparent;
    border: none;
    color: var(--text-secondary);
    padding: 0.75rem 1.5rem;
    border-radius: 0.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 600;
}

.core-value-btn.active {
    background-color: var(--accent-primary);
    color: white;
}

.core-value-pane {
    display: none;
}

.core-value-pane.active {
    display: block;
}

/* ===================================
   VALUES SCROLL PAGE STYLES
   =================================== */

html {
    scroll-behavior: smooth;
    scroll-snap-type: y mandatory;
}

/* Scroll Progress Indicator */
.scroll-progress-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    z-index: 9999;
    display: flex;
}

.scroll-progress-segment {
    width: 20%;
    height: 100%;
    position: relative;
    overflow: hidden;
}

.scroll-progress-segment::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0%;
    height: 100%;
    transition: width 0.3s ease;
}

.quality-segment::before {
    background: linear-gradient(90deg, #6BA8C8, #3C6E8F);
}

.innovation-segment::before {
    background: linear-gradient(90deg, #E08A3D, #C9A14E);
}

.impact-segment::before {
    background: linear-gradient(90deg, #BFD952, #7A8E49);
}

.advisor-segment::before {
    background: linear-gradient(90deg, #1F6F78, #3C6E8F);
}

.community-segment::before {
    background: linear-gradient(90deg, #D76C53, #E08A3D);
}

.scroll-progress-segment.filled::before {
    width: 100%;
}

.scroll-progress-segment.active::before {
    width: var(--segment-progress, 0%);
}

/* Values Navigation Tracker */
.values-nav-tracker {
    position: fixed;
    right: 2rem;
    top: 50%;
    transform: translateY(-50%);
    z-index: 100;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    align-items: center;
}

.value-nav-arrow {
    position: relative;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    color: var(--text-tertiary);
    font-size: 0.75rem;
}

.value-nav-arrow:hover {
    color: var(--accent-secondary);
    transform: scale(1.2);
}

.value-nav-top:hover {
    transform: scale(1.2) translateY(-2px);
}

.value-nav-bottom:hover {
    transform: scale(1.2) translateY(2px);
}

/* Tooltip for arrows */
.value-nav-arrow::before {
    content: attr(title);
    position: absolute;
    right: calc(100% + 1rem);
    background-color: var(--card-bg);
    color: var(--text-primary);
    padding: 0.5rem 1rem;
    border-radius: 0.25rem;
    font-size: 0.875rem;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    border: 1px solid var(--border-color);
}

.value-nav-arrow:hover::before {
    opacity: 1;
}

.value-nav-dot {
    position: relative;
    width: 12px;
    height: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.dot-inner {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: transparent;
    border: 2px solid var(--text-tertiary);
    transition: all 0.3s ease;
}

.value-nav-dot:hover .dot-inner {
    border-color: var(--accent-secondary);
    transform: scale(1.3);
}

.value-nav-dot.active .dot-inner {
    background-color: var(--accent-secondary);
    border-color: var(--accent-secondary);
    width: 12px;
    height: 12px;
}

/* Tooltip on hover */
.value-nav-dot::before {
    content: attr(title);
    position: absolute;
    right: calc(100% + 1rem);
    background-color: var(--card-bg);
    color: var(--text-primary);
    padding: 0.5rem 1rem;
    border-radius: 0.25rem;
    font-size: 0.875rem;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    border: 1px solid var(--border-color);
}

.value-nav-dot:hover::before {
    opacity: 1;
}

/* Hide on mobile */
@media (max-width: 768px) {
    .values-nav-tracker {
        display: none;
    }
}

/* Values Hero Section */
.values-hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-primary);
    position: relative;
    overflow: hidden;
    scroll-snap-align: start;
    scroll-snap-stop: always;
}

.values-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 30% 50%, rgba(224, 138, 61, 0.05) 0%, transparent 50%);
    pointer-events: none;
}

.values-hero-content {
    text-align: center;
    z-index: 1;
    padding: 2rem;
}

.values-hero-title {
    font-size: clamp(3rem, 8vw, 6rem);
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 1.5rem;
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 1s ease forwards 0.2s;
}

.values-hero-subtitle {
    font-size: clamp(1.25rem, 3vw, 1.75rem);
    color: var(--text-secondary);
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 1s ease forwards 0.4s;
}

.scroll-indicator {
    position: absolute;
    bottom: 3rem;
    left: 50%;
    transform: translateX(-50%);
    font-size: 2rem;
    color: var(--accent-secondary);
    animation: bounce 2s infinite;
    opacity: 0;
    animation: fadeIn 1s ease forwards 1s, bounce 2s infinite 1s;
}

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

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

/* Value Sections */
.value-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    padding: 4rem 2rem;
    overflow: hidden;
    scroll-snap-align: start;
    scroll-snap-stop: always;
}

.value-section:nth-child(even) {
    background: var(--bg-secondary);
}

.value-container {
    max-width: 1200px;
    width: 100%;
    position: relative;
    opacity: 0;
    transform: translateY(60px);
    transition: all 1s cubic-bezier(0.16, 1, 0.3, 1);
}

.value-section.in-view .value-container {
    opacity: 1;
    transform: translateY(0);
}

.value-number {
    font-size: clamp(6rem, 15vw, 12rem);
    font-weight: 700;
    color: rgba(36, 95, 130, 0.06);
    position: absolute;
    top: -4rem;
    left: 0;
    line-height: 1;
    pointer-events: none;
    font-family: 'Inter', sans-serif;
    z-index: 1;
}

.value-content {
    padding-left: clamp(2rem, 8vw, 8rem);
    position: relative;
    z-index: 3;
}

.value-header {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.value-title {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0;
    position: relative;
}

.value-title::after {
    content: '';
    position: absolute;
    bottom: -0.5rem;
    left: 0;
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, var(--accent-secondary) 0%, transparent 100%);
}

.value-icon {
    font-size: 4rem;
    color: var(--accent-secondary);
    margin-bottom: 0;
    opacity: 0;
    transform: scale(0.8);
    transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.2s;
    flex-shrink: 0;
}

.value-section.in-view .value-icon {
    opacity: 1;
    transform: scale(1);
}

.value-description {
    font-size: clamp(1.125rem, 2vw, 1.5rem);
    line-height: 1.8;
    color: var(--text-secondary);
    margin-bottom: 3rem;
    max-width: 800px;
}

.value-story {
    margin-top: 3rem;
    margin-bottom: 5rem;
    opacity: 0;
    transform: translateX(-30px);
    transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.4s;
}

.value-section.in-view .value-story {
    opacity: 1;
    transform: translateX(0);
}

.story-quote {
    font-size: clamp(1rem, 2vw, 1.25rem);
    font-style: normal;
    color: var(--text-secondary);
    border-left: 4px solid var(--accent-secondary);
    padding-left: 2rem;
    max-width: 700px;
    line-height: 1.8;
}

[data-theme="dark"] .story-quote {
    color: #d4d4d8;
}

/* Value Next Arrow */
.value-next-arrow {
    position: absolute;
    bottom: 1rem;
    left: 50%;
    transform: translateX(-50%);
    width: 3rem;
    height: 3rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent-secondary);
    font-size: 1.5rem;
    transition: all 0.3s ease;
    opacity: 0.7;
    z-index: 10;
    animation: bounce 2s infinite;
}

.value-next-arrow:hover {
    opacity: 1;
    transform: translateX(-50%) translateY(5px);
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateX(-50%) translateY(0);
    }
    40% {
        transform: translateX(-50%) translateY(-10px);
    }
    60% {
        transform: translateX(-50%) translateY(-5px);
    }
}

.value-visual {
    position: absolute;
    left: 0;
    top: 50%;
    width: 100%;
    height: 50%;
    opacity: 1;
    pointer-events: none;
    z-index: 0;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding-right: 5%;
}

.value-visual::before {
    content: attr(data-number);
    font-size: clamp(12rem, 20vw, 25rem);
    font-weight: 900;
    opacity: 0.15;
    line-height: 1;
    color: currentColor;
}

[data-theme="dark"] .value-visual::before {
    opacity: 0.1;
}

/* Individual value color blocks */
.quality-visual {
    color: #6BA8C8;
}

.innovation-visual {
    color: #E08A3D;
}

.impact-visual {
    color: #BFD952;
}

.advisor-visual {
    color: #1F6F78;
}

.community-visual {
    color: #D76C53;
}

/* Color-code icons per value */
#quality .value-icon {
    color: #6BA8C8;
}

#innovation .value-icon {
    color: #E08A3D;
}

#impact .value-icon {
    color: #BFD952;
}

#advisor .value-icon {
    color: #1F6F78;
}

#community .value-icon {
    color: #D76C53;
}

/* Color-code accent lines (story-quote borders) per value */
#quality .story-quote {
    border-left-color: #6BA8C8;
}

#innovation .story-quote {
    border-left-color: #E08A3D;
}

#impact .story-quote {
    border-left-color: #BFD952;
}

#advisor .story-quote {
    border-left-color: #1F6F78;
}

#community .story-quote {
    border-left-color: #D76C53;
}

/* Color-code navigation dots per value */
.value-nav-dot[data-value="quality"].active .dot-inner {
    background-color: #6BA8C8;
}

.value-nav-dot[data-value="innovation"].active .dot-inner {
    background-color: #E08A3D;
}

.value-nav-dot[data-value="impact"].active .dot-inner {
    background-color: #BFD952;
}

.value-nav-dot[data-value="advisor"].active .dot-inner {
    background-color: #1F6F78;
}

.value-nav-dot[data-value="community"].active .dot-inner {
    background-color: #D76C53;
}

/* Color-code navigation dot borders per value */
.value-nav-dot[data-value="quality"].active {
    border-color: #6BA8C8;
}

.value-nav-dot[data-value="innovation"].active {
    border-color: #E08A3D;
}

.value-nav-dot[data-value="impact"].active {
    border-color: #BFD952;
}

.value-nav-dot[data-value="advisor"].active {
    border-color: #1F6F78;
}

.value-nav-dot[data-value="community"].active {
    border-color: #D76C53;
}

/* Color-code gradient lines under value titles */
#quality .value-title::after {
    background: linear-gradient(90deg, #6BA8C8 0%, transparent 100%);
}

#innovation .value-title::after {
    background: linear-gradient(90deg, #E08A3D 0%, transparent 100%);
}

#impact .value-title::after {
    background: linear-gradient(90deg, #BFD952 0%, transparent 100%);
}

#advisor .value-title::after {
    background: linear-gradient(90deg, #1F6F78 0%, transparent 100%);
}

#community .value-title::after {
    background: linear-gradient(90deg, #D76C53 0%, transparent 100%);
}

/* Color-code down arrows per value */
#quality .value-next-arrow {
    color: #6BA8C8;
}

#innovation .value-next-arrow {
    color: #E08A3D;
}

#impact .value-next-arrow {
    color: #BFD952;
}

#advisor .value-next-arrow {
    color: #1F6F78;
}

#community .value-next-arrow {
    color: #D76C53;
}

/* Values Closing Section */
.values-closing {
    min-height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-primary);
    position: relative;
    overflow: hidden;
    padding: 4rem 2rem;
    scroll-snap-align: start;
}

.values-closing::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 70% 50%, rgba(224, 138, 61, 0.08) 0%, transparent 60%);
    pointer-events: none;
}

.values-closing-content {
    text-align: center;
    max-width: 800px;
    z-index: 1;
    opacity: 0;
    transform: translateY(40px);
    transition: all 1s cubic-bezier(0.16, 1, 0.3, 1);
}

.values-closing.in-view .values-closing-content {
    opacity: 1;
    transform: translateY(0);
}

.values-closing-title {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 2rem;
}

.values-closing-text {
    font-size: clamp(1.125rem, 2vw, 1.5rem);
    line-height: 1.8;
    color: var(--text-secondary);
    margin-bottom: 3rem;
}

.values-cta {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1.25rem 2.5rem;
    background: var(--accent-secondary);
    color: white;
    font-weight: 600;
    font-size: 1.125rem;
    border-radius: 0.5rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(224, 138, 61, 0.3);
}

.values-cta:hover {
    background: var(--accent-primary);
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(36, 95, 130, 0.3);
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .values-hero,
    .value-section,
    .values-closing {
        min-height: auto;
        height: auto;
        scroll-snap-align: none;
        scroll-snap-stop: normal;
        padding: 2.5rem 1.25rem;
    }

    .values-hero-content {
        padding: 1.5rem;
    }

    .values-hero::before {
        opacity: 0.08;
    }

    .value-content {
        padding-left: 1rem;
    }

    .value-number {
        font-size: 4rem;
        top: -2rem;
    }

    .value-visual {
        opacity: 0.02;
        width: 60%;
    }

    .story-quote {
        padding-left: 1rem;
        border-left-width: 3px;
    }
}

/* ======================================
   WHY NEWGEN SECTION - MODERN DESIGN
   ====================================== */

/* Header Animation */
.why-header {
    animation: fadeInUp 0.8s ease-out;
}

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

/* Modern Grid Layout */
.why-newgen-grid {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 2rem;
    margin-bottom: 4rem;
    grid-auto-rows: minmax(0, auto);
}

/* Base Card Styling */
.why-card {
    position: relative;
    border-radius: 1rem;
    overflow: hidden;
    background-color: var(--card-bg);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInCard 0.6s ease-out forwards;
}

/* Staggered animation delays */
.why-card-1 { animation-delay: 0.1s; }
.why-card-2 { animation-delay: 0.2s; }
.why-card-3 { animation-delay: 0.3s; }
.why-card-4 { animation-delay: 0.4s; }
.why-card-5 { animation-delay: 0.5s; }
.why-card-6 { animation-delay: 0.0s; }
.why-card-7 { animation-delay: 0.6s; }

@keyframes fadeInCard {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Card Sizes & Grid Placement */
.why-card-large {
    grid-column: span 7;
    min-height: 500px;
}

.why-card-medium {
    grid-column: span 6;
    min-height: 400px;
}

.why-card-small {
    grid-column: span 6;
    min-height: 300px;
}

/* Specific Card Positioning for Visual Flow */
/* Desktop Layout (12-column grid) */
/* Card 6: Collaborative Culture - Full width at top */
.why-card-6 {
    grid-column: 1 / -1;
    min-height: 450px;
    aspect-ratio: 21/9;
}

/* Card 1: Vertical portrait for Career1.jpg - Row 2, Left */
.why-card-1 {
    grid-column: 1 / span 5;
    grid-row: 2;
    height: 500px;
}

/* Card 3: Vertical portrait for Career5.jpg - Row 2, Right */
.why-card-3 {
    grid-column: 6 / span 7;
    grid-row: 2;
    height: 500px;
}

/* Card 4: Landscape with Career3.jpg - Row 3, Left */
.why-card-4 {
    grid-column: 1 / span 7;
    grid-row: 3;
    height: 400px;
}

/* Card 5: Text only - Row 3, Right */
.why-card-5 {
    grid-column: 8 / span 5;
    grid-row: 3;
    height: 400px;
}

/* Card 2: Narrow text-only - Row 4, Left */
.why-card-2 {
    grid-column: 1 / span 4;
    grid-row: 4;
    height: 400px;
}

/* Card 7: Work With Great People - Row 4, Right */
.why-card-7 {
    grid-column: 5 / span 8;
    grid-row: 4;
    height: 400px;
    position: relative;
}

/* Center content for cards 6 and 7 */
.why-card-6 .why-card-content,
.why-card-7 .why-card-content {
    justify-content: flex-end;
    align-items: center;
    text-align: center;
}

.why-card-6 .why-card-title,
.why-card-7 .why-card-title {
    text-align: center;
}

.why-card-6 .why-card-description,
.why-card-7 .why-card-description {
    text-align: center;
    max-width: 800px;
}

.why-card-6 .why-card-accent-line,
.why-card-7 .why-card-accent-line {
    margin: 0 auto;
}

/* Tablet Layout (max-width: 1200px) */
@media (max-width: 1200px) {
    .why-newgen-grid {
        grid-template-columns: repeat(8, 1fr);
        gap: 2rem;
    }

    /* Row 1: Card 6 - Full width */
    .why-card-6 {
        grid-column: 1 / -1;
        grid-row: 1;
        height: 350px;
    }

    /* Row 2: Card 1 and Card 3 side by side */
    .why-card-1 {
        grid-column: 1 / span 4;
        grid-row: 2;
        height: 450px;
    }

    .why-card-3 {
        grid-column: 5 / span 4;
        grid-row: 2;
        height: 450px;
    }

    /* Row 3: Card 4 and Card 5 */
    .why-card-4 {
        grid-column: 1 / span 5;
        grid-row: 3;
        height: 350px;
    }

    .why-card-5 {
        grid-column: 6 / span 3;
        grid-row: 3;
        height: 350px;
    }

    /* Row 4: Card 2 and Card 7 */
    .why-card-2 {
        grid-column: 1 / span 3;
        grid-row: 4;
        height: 350px;
    }

    .why-card-7 {
        grid-column: 4 / span 5;
        grid-row: 4;
        height: 350px;
    }
}

/* Mobile Layout (max-width: 768px) */
@media (max-width: 768px) {
    .why-newgen-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        width: 100vw;
        margin-left: calc(50% - 50vw);
        margin-right: calc(50% - 50vw);
        padding-left: 1rem;
        padding-right: 1rem;
    }

    /* All cards stack vertically and span full width */
    .why-card-1,
    .why-card-2,
    .why-card-3,
    .why-card-4,
    .why-card-5,
    .why-card-6,
    .why-card-7 {
        grid-column: 1 / -1;
        grid-row: auto;
        height: 360px;
        width: 100%;
    }
}

/* Closing image: 3:2 ratio for Career4.jpg */
.why-closing-image-wrapper {
    aspect-ratio: 3/2;
    height: auto;
    max-height: 600px;
}

/* Image Container */
.why-card-image-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.why-card-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Gradient Overlay for Better Text Contrast */
.why-card-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        to bottom,
        rgba(46, 52, 56, 0.1) 0%,
        rgba(46, 52, 56, 0.5) 70%,
        rgba(46, 52, 56, 0.85) 100%
    );
    transition: background 0.4s ease;
    z-index: 1;
}


/* Content Styling */
.why-card-content {
    position: relative;
    z-index: 2;
    padding: 2.5rem;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    color: white;
}

.why-card-content-only {
    background: linear-gradient(135deg, var(--accent-primary) 0%, rgba(36, 95, 130, 0.9) 100%);
    justify-content: center;
}

/* Icon Wrapper - Hidden */
.why-card-icon-wrapper {
    display: none;
}

.why-card-icon {
    display: none;
}

/* Title */
.why-card-title {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: white;
    line-height: 1.2;
    transition: transform 0.3s ease;
}


/* Description */
.why-card-description {
    font-size: 1.0625rem;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.95);
    margin-bottom: 1.5rem;
}

/* Accent Line */
.why-card-accent-line {
    width: 60px;
    height: 3px;
    background: var(--accent-secondary);
    border-radius: 2px;
    transition: width 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.why-card:hover .why-card-accent-line {
    width: 120px;
}

/* Closing Section with Large Image */
.why-closing-section {
    margin-top: 4rem;
}

.why-closing-image-wrapper {
    position: relative;
    width: 100%;
    aspect-ratio: 3/2;
    height: auto;
    max-height: 600px;
    border-radius: 1.5rem;
    overflow: hidden;
    box-shadow: 0 20px 50px -12px rgba(0, 0, 0, 0.25);
}

.why-closing-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.why-closing-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        to bottom,
        rgba(46, 52, 56, 0.5) 0%,
        rgba(46, 52, 56, 0.75) 100%
    );
    z-index: 1;
}

.why-closing-text-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    z-index: 2;
    padding: 2rem;
    max-width: 900px;
}

/* Tablet Responsive (768px - 1023px) */
@media (max-width: 1023px) {
    .why-newgen-grid {
        grid-template-columns: repeat(6, 1fr);
        gap: 1.5rem;
    }

    .why-card-large,
    .why-card-medium {
        grid-column: span 6 !important;
        min-height: 400px;
    }

    .why-card-small {
        grid-column: span 3 !important;
        min-height: 320px;
    }

    .why-card-6 {
        grid-column: 1 / span 6 !important;
    }

    .why-card-content {
        padding: 2rem;
    }

    .why-card-title {
        font-size: 1.75rem;
    }

    .why-closing-image-wrapper {
        height: 500px;
    }

    .why-closing-text-overlay h3 {
        font-size: 2.5rem !important;
    }

    .why-closing-text-overlay p {
        font-size: 1.25rem !important;
    }
}

/* Mobile Responsive (< 768px) */
@media (max-width: 767px) {
    .why-newgen-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .why-card-large,
    .why-card-medium,
    .why-card-small {
        grid-column: 1 / -1 !important;
        min-height: 350px;
    }

    .why-card-content {
        padding: 1.75rem;
    }

    .why-card-icon-wrapper {
        width: 56px;
        height: 56px;
    }

    .why-card-icon {
        font-size: 1.5rem;
    }

    .why-card-title {
        font-size: 1.5rem;
    }

    .why-card-description {
        font-size: 1rem;
    }

    .why-closing-image-wrapper {
        height: 400px;
        border-radius: 1rem;
    }

    .why-closing-text-overlay {
        padding: 1.5rem;
    }

    .why-closing-text-overlay i {
        font-size: 2.5rem !important;
        margin-bottom: 1rem !important;
    }

    .why-closing-text-overlay h3 {
        font-size: 2rem !important;
        margin-bottom: 1rem !important;
    }

    .why-closing-text-overlay p {
        font-size: 1.125rem !important;
    }
}

/* Dark Mode Support */
[data-theme="dark"] .why-card {
    background-color: var(--card-bg);
}

[data-theme="dark"] .why-card-content-only {
    background: linear-gradient(135deg, rgba(36, 95, 130, 0.9) 0%, rgba(36, 95, 130, 0.7) 100%);
}

[data-theme="dark"] .why-card-overlay {
    background: linear-gradient(
        to bottom,
        rgba(46, 52, 56, 0.5) 0%,
        rgba(46, 52, 56, 0.7) 70%,
        rgba(46, 52, 56, 0.8) 100%
    );
}

[data-theme="dark"] .why-closing-overlay {
    background: linear-gradient(
        to bottom,
        rgba(46, 52, 56, 0.6) 0%,
        rgba(46, 52, 56, 0.85) 100%
    );
}

/* ======================================
   CONTACT PAGE STYLES - MODERN DESIGN
   ====================================== */

/* Contact Hero Animation */
.contact-hero {
    animation: fadeInUp 0.8s ease-out;
}

/* Contact Method Cards */
.contact-method-card {
    background-color: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 1rem;
    padding: 2.5rem;
    text-align: center;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.contact-method-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--accent-primary) 0%, var(--accent-secondary) 100%);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s ease;
}

.contact-method-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.15);
    border-color: var(--accent-primary);
}

.contact-method-card:hover::before {
    transform: scaleX(1);
}

.contact-method-icon-wrapper {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--accent-primary) 0%, var(--accent-secondary) 100%);
    border-radius: 50%;
    margin: 0 auto 1.5rem;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.contact-method-card:hover .contact-method-icon-wrapper {
    transform: scale(1.1) rotate(5deg);
}

.contact-method-icon {
    font-size: 2rem;
    color: white;
}

.contact-method-link {
    display: inline-flex;
    align-items: center;
    font-weight: 600;
    color: var(--accent-primary);
    transition: all 0.3s ease;
    font-size: 1.125rem;
}

/* Contact Form Intro */
.contact-form-intro {
    animation: fadeInLeft 0.8s ease-out 0.2s both;
}

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

/* Trust Indicators */
.trust-indicator {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1.25rem;
    background-color: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 0.75rem;
    transition: all 0.3s ease;
}

.trust-indicator:hover {
    border-color: var(--accent-secondary);
    transform: translateX(4px);
}

.trust-indicator-icon {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--accent-secondary);
    color: white;
    border-radius: 0.5rem;
    font-size: 1.25rem;
}

/* Contact Form Container */
.contact-form-container {
    background-color: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 1.5rem;
    padding: 3rem;
    box-shadow: 0 10px 40px -10px rgba(0, 0, 0, 0.1);
    animation: fadeInRight 0.8s ease-out 0.4s both;
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Form Groups */
.form-group {
    margin-bottom: 1.75rem;
}

.form-label {
    display: block;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
    font-size: 0.9375rem;
}

.form-input {
    width: 100%;
    padding: 0.875rem 1rem;
    background-color: var(--bg-primary);
    border: 2px solid var(--border-color);
    border-radius: 0.5rem;
    color: var(--text-primary);
    font-size: 1rem;
    transition: all 0.3s ease;
    font-family: 'Inter', sans-serif;
}

.form-input:focus {
    outline: none;
    border-color: var(--accent-primary);
    box-shadow: 0 0 0 4px rgba(36, 95, 130, 0.1);
}

.form-input::placeholder {
    color: var(--text-tertiary);
    opacity: 0.6;
}

textarea.form-input {
    resize: vertical;
    min-height: 120px;
}

select.form-input {
    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 12 12'%3E%3Cpath fill='%235A6670' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    padding-right: 3rem;
}

/* Submit Button */
.form-submit-btn {
    width: 100%;
    padding: 1rem 2rem;
    background: linear-gradient(135deg, var(--accent-primary) 0%, var(--accent-secondary) 100%);
    color: white;
    font-weight: 600;
    font-size: 1.125rem;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 2rem;
    box-shadow: 0 4px 12px rgba(36, 95, 130, 0.3);
}

.form-submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(36, 95, 130, 0.4);
}

.form-submit-btn:active {
    transform: translateY(0);
}

.submit-btn-text {
    margin-right: 0.5rem;
}

/* Success Message */
.success-message {
    margin-top: 1.5rem;
    padding: 1.5rem;
    background-color: rgba(34, 197, 94, 0.1);
    border: 2px solid rgba(34, 197, 94, 0.3);
    border-radius: 0.75rem;
    text-align: center;
}

/* Office Location Cards */
.office-location-card {
    background-color: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 1rem;
    padding: 2rem;
    transition: all 0.3s ease;
    position: relative;
}

.office-location-card:hover {
    transform: translateY(-5px);
    border-color: var(--accent-primary);
    box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.15);
}

.office-card-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    background: linear-gradient(135deg, rgba(36, 95, 130, 0.1) 0%, rgba(224, 138, 61, 0.1) 100%);
    border-radius: 0.75rem;
    margin-bottom: 1rem;
    font-size: 1.5rem;
    color: var(--accent-primary);
}

/* Responsive Adjustments */
@media (max-width: 1023px) {
    .contact-form-container {
        padding: 2rem;
    }
}

@media (max-width: 767px) {
    .contact-method-card {
        padding: 2rem 1.5rem;
    }

    .contact-form-container {
        padding: 1.75rem;
    }

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

    .trust-indicator {
        padding: 1rem;
    }
}

/* Dark Mode Support */
[data-theme="dark"] .contact-method-card,
[data-theme="dark"] .contact-form-container,
[data-theme="dark"] .trust-indicator,
[data-theme="dark"] .office-location-card {
    background-color: var(--card-bg);
}

[data-theme="dark"] .form-input {
    background-color: var(--bg-tertiary);
}

/* ========================================================================
   SERVICES PAGE HERO SECTION - MODERN DESIGN
   ======================================================================== */

.services-hero-section {
    position: relative;
    width: 100%;
    min-height: 550px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: visible;
    z-index: 10;
}

/* Market Hero Sections */
.market-hero {
    min-height: 500px;
}

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

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

.services-hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        135deg,
        rgba(36, 95, 130, 0.75) 0%,
        rgba(36, 95, 130, 0.75) 50%,
        rgba(224, 138, 61, 0.6) 100%
    );
    z-index: 1;
}

.services-hero-content {
    position: relative;
    z-index: 2;
    padding: 8rem 0;
    width: 100%;
}

/* Responsive Adjustments */
@media (max-width: 1023px) {
    .services-hero-section {
        min-height: 500px;
    }

    .services-hero-content {
        padding: 5rem 0 4rem;
    }
}

@media (max-width: 767px) {
    .services-hero-section {
        min-height: 450px;
    }

    .services-hero-content {
        padding: 4rem 0 3rem;
    }

    .services-hero-content h1 {
        font-size: 2rem;
    }

    .services-hero-content p {
        font-size: 1rem;
    }
}

/* ========================================================================
   PAGE HERO SECTION - REUSABLE FOR CLIENTS, PROJECTS, ETC.
   ======================================================================== */

.page-hero-section {
    position: relative;
    width: 100%;
    min-height: 450px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    z-index: 10;
}

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

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

.page-hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        135deg,
        rgba(36, 95, 130, 0.8) 0%,
        rgba(36, 95, 130, 0.75) 50%,
        rgba(75, 98, 44, 0.7) 100%
    );
    z-index: 1;
}

.page-hero-content {
    position: relative;
    z-index: 2;
    padding: 7rem 0 5rem;
    width: 100%;
}

/* Responsive Adjustments for Page Hero */
@media (max-width: 1023px) {
    .page-hero-section {
        min-height: 400px;
    }

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

@media (max-width: 767px) {
    .page-hero-section {
        min-height: 350px;
    }

    .page-hero-content {
        padding: 5rem 0 3rem;
    }

    .page-hero-content h1 {
        font-size: 2rem;
    }

    .page-hero-content p {
        font-size: 0.9375rem;
    }
}

/* ========================================
   GLOBAL SITE SEARCH
   ======================================== */

/* Search Modal */
.search-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 9999;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding-top: 5vh;
}

.search-modal.hidden {
    display: none;
}

.search-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    -webkit-backdrop-filter: blur(4px);
    backdrop-filter: blur(4px);
}

.search-modal-content {
    position: relative;
    width: 90%;
    max-width: 700px;
    max-height: 80vh;
    background: var(--bg-primary);
    border-radius: 12px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    display: flex;
    flex-direction: column;
    animation: slideDown 0.3s ease;
}

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

.search-modal-header {
    padding: 1.5rem;
    border-bottom: 1px solid var(--border-color);
}

.search-input-wrapper {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    position: relative;
    background: var(--bg-secondary);
    border-radius: 50px;
    padding: 0.5rem 1rem;
}

.search-icon {
    color: var(--text-tertiary);
    font-size: 1.25rem;
    flex-shrink: 0;
}

.search-input {
    flex: 1;
    padding: 0.75rem 0.5rem;
    border: none;
    background: transparent;
    color: var(--text-primary);
    font-size: 1.125rem;
    outline: none;
    min-width: 0;
}

.search-input::placeholder {
    color: var(--text-tertiary);
}

.search-close-btn {
    padding: 0.5rem;
    background: var(--bg-secondary);
    border: none;
    border-radius: 50px;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.search-close-btn:hover {
    background: var(--bg-tertiary);
    color: var(--text-primary);
}

.search-modal-body {
    flex: 1;
    overflow-y: auto;
    padding: 1rem;
}

/* Search Results */
.search-empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 4rem 2rem;
    text-align: center;
}

.search-category {
    margin-bottom: 2rem;
}

.search-category:last-child {
    margin-bottom: 0;
}

.search-category-title {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
    color: var(--text-tertiary);
    padding: 0.5rem 1rem;
    margin-bottom: 0.5rem;
}

.search-category-title i {
    font-size: 1rem;
}

.search-results-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.search-result-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: var(--bg-secondary);
    border-radius: 8px;
    text-decoration: none;
    transition: all 0.2s ease;
    border: 2px solid transparent;
}

.search-result-item:hover {
    background: var(--bg-tertiary);
    border-color: var(--accent-primary);
    transform: translateX(4px);
}

.search-result-icon {
    width: 40px;
    height: 40px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--accent-primary);
    color: white;
    border-radius: 8px;
    font-size: 1.125rem;
}

.search-result-content {
    flex: 1;
    min-width: 0;
}

.search-result-title {
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.25rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.search-result-description {
    font-size: 0.875rem;
    color: var(--text-secondary);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.search-result-arrow {
    flex-shrink: 0;
    color: var(--text-tertiary);
    transition: transform 0.2s ease;
}

.search-result-item:hover .search-result-arrow {
    transform: translateX(4px);
    color: var(--accent-primary);
}

/* Responsive */
@media (max-width: 768px) {
    .search-modal {
        padding-top: 2vh;
    }

    .search-modal-content {
        width: 95%;
        max-height: 90vh;
    }

    .search-modal-header {
        padding: 1rem;
    }

    .search-input-wrapper {
        gap: 0.5rem;
    }

    .search-icon {
        font-size: 1rem;
    }

    .search-input {
        font-size: 1rem;
        padding: 0.5rem;
    }

    .search-close-btn {
        padding: 0.375rem;
    }

    .search-result-item {
        padding: 0.875rem;
    }

    .search-result-icon {
        width: 36px;
        height: 36px;
        font-size: 1rem;
    }
}

/* Process Section with Stacking Cards and Video Animations */
#our-process {
    position: relative;
    /* gives the sticky header + stack some space to scroll out
       before the next section overlaps */
    padding-bottom: 8rem;
}

/* Keep cards sticky – this is the key.
   We let Tailwind's .sticky set position: sticky in HTML,
   so we DO NOT override it here. */
.process-card-container {
    /* do NOT set position here, we want Tailwind's .sticky */
    /* position: sticky;  <- leave this OUT */
}

/* Dynamic sticky positioning for cards:
   these offsets are relative to the header height so they always
   stack under the "Our Approach" header. */
.process-card-1 {
    top: calc(var(--sticky-header-height, 240px) + 5rem);
}

.process-card-2 {
    top: calc(var(--sticky-header-height, 240px) + 6rem);
}

.process-card-3 {
    top: calc(var(--sticky-header-height, 240px) + 7rem);
}

.process-card-4 {
    top: calc(var(--sticky-header-height, 240px) + 8rem);
}

/* Smooth card transforms (you already had something like this) */
.process-card {
    will-change: transform, filter;
    transition: transform 0.05s linear, filter 0.05s linear;
}

/* Sticky CTA so it travels with the stack and never tucks up under it */
.process-cta-container {
    position: relative;
    top: auto;
    z-index: 1;
    margin-top: 0;
    padding-bottom: 3rem;
}

/* Keep the Our Approach header visible during stacking */
.process-header {
    position: sticky;
    top: var(--process-header-offset, 80px);
    z-index: 10;
    background: var(--bg-primary);
    padding-top: 1rem;
    padding-bottom: 1rem;
}

.process-cta-section {
    margin-top: -6rem;
}

/* Hover effect can stay as-is */
.process-card-container:hover .process-card {
    border-color: var(--accent-primary) !important;
    box-shadow: 0 12px 32px -8px rgba(75, 98, 44, 0.25) !important;
}

/* Enable stacked sticky cards when active */
.process-stack-active .process-card-container {
    margin-bottom: 2rem;
}

.process-stack-active .process-card {
    will-change: transform;
}

/* When stacking is locked, disable sticky so CTA and content scroll normally */
/* Mobile: turn OFF sticky stack so it's just a simple vertical flow */
@media (max-width: 768px) {
    .process-card-container {
        position: relative !important;
        top: 0 !important;
        margin-bottom: 1.5rem !important;
    }

    .process-card {
        transform: none !important;
        filter: none !important;
    }

    .process-cta-container {
        position: static !important;
        top: auto !important;
        margin-top: 2rem !important;
    }

    #our-process {
        padding-bottom: 3rem;
    }
}



/* ========================================================================
   SERVICES PAGE - SEARCH BAR & ENHANCED STYLING
   ======================================================================== */

/* Services Search Input */
.services-search-input {
    background-color: rgba(255, 255, 255, 0.95);
    color: var(--text-primary);
}

.services-search-input::placeholder {
    color: var(--text-secondary);
}

[data-theme="dark"] .services-search-input {
    background-color: rgba(58, 64, 70, 0.95);
    color: var(--text-primary);
}

/* Enhanced Service Group Styling */
.service-category-group {
    background: var(--bg-primary);
    border-radius: 12px;
    padding: 1.5rem;
    border: 2px solid var(--border-color);
    transition: all 0.3s ease;
}

.service-category-group:hover {
    border-color: var(--accent-primary);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}

.service-category-title {
    position: relative;
    padding-bottom: 0.75rem;
    margin-bottom: 1.25rem;
}

.service-category-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 3px;
    background: var(--accent-primary);
    border-radius: 2px;
}

/* Service List Items */
.service-list-item {
    background: var(--bg-primary);
    transition: all 0.3s ease;
}

.service-list-item:hover {
    background: var(--bg-secondary);
    transform: translateX(8px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.service-list-item h4 {
    transition: color 0.3s ease;
}

.service-list-item:hover h4 {
    color: var(--accent-primary);
}

.service-list-item a {
    text-decoration: none;
    color: inherit;
    display: block;
}

/* Service filtered out during search */
.service-list-item.hidden {
    display: none;
}

.service-category-group.hidden {
    display: none;
}

/* Services Search Dropdown */
.services-search-dropdown {
    position: absolute;
    top: calc(100% + 0.5rem);
    left: 0;
    right: 0;
    background: var(--bg-primary);
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    max-height: 400px;
    overflow-y: auto;
    z-index: 1000;
}

.services-search-dropdown.hidden {
    display: none;
}

.search-result-item {
    padding: 1rem 1.5rem;
    border-bottom: 1px solid var(--border-color);
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.search-result-item:last-child {
    border-bottom: none;
}

.search-result-item:hover {
    background-color: var(--bg-secondary);
}

.search-result-name {
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.25rem;
}

.search-result-group {
    font-size: 0.75rem;
    color: var(--accent-primary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0.25rem;
}

.search-result-subtitle {
    font-size: 0.875rem;
    color: var(--text-secondary);
}

.search-no-results {
    padding: 2rem 1.5rem;
    text-align: center;
    color: var(--text-secondary);
}

/* ========================================================================
   SERVICES PAGE - MODERN MINIMAL COLUMNS
   ======================================================================== */

/* Services Section Title */
.services-section-title {
    text-align: center;
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0 auto 0.75rem;
    letter-spacing: -0.02em;
}

.services-section-subtitle {
    text-align: center;
    font-size: 1.125rem;
    font-weight: 400;
    color: var(--text-secondary);
    margin: 0 auto 2.5rem;
    max-width: 600px;
}

/* Services Grid */
.services-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 3rem;
    align-items: stretch;
}

/* Service Card - Clean, no background */
.service-card {
    padding: 0;
    background-color: transparent;
    border-color: transparent;
}

/* Subtle vertical dividers between columns */
.service-card:not(:first-child) {
    border-left: 1px solid var(--border-color);
    padding-left: 2rem;
}

/* Card Header - Minimal with accent */
.service-card-header {
    font-size: .9rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--accent-primary);
    margin: 0 0 1.25rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid var(--border-color);
}

/* Card List */
.service-card-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.service-card-list li {
    margin-bottom: 0.25rem;
}

.service-card-list li:last-child {
    margin-bottom: 0;
}

/* Service Link - Modern minimal */
.service-link {
    position: relative;
    color: var(--text-primary);
    text-decoration: none;
    font-size: 0.9375rem;
    font-weight: 450;
    display: block;
    padding: 0.5rem 0.75rem;
    margin-left: -0.75rem;
    border-radius: 6px;
    transition: all 0.2s ease;
    background: transparent;
}

.service-link:hover {
    background: linear-gradient(135deg, var(--bg-secondary) 0%, transparent 100%);
}

/* Service Link Name */
.service-link-name {
    display: block;
    transition: color 0.2s ease;
}

.service-link:hover .service-link-name {
    color: var(--accent-primary);
}

/* Service Description - Inline reveal on hover */
.service-link-desc {
    display: block;
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    font-size: 0.8125rem;
    font-weight: 400;
    color: var(--text-secondary);
    line-height: 1.5;
    transition: max-height 0.25s ease, opacity 0.25s ease, margin-top 0.25s ease;
    margin-top: 0;
}

.service-link:hover .service-link-desc {
    max-height: 80px;
    opacity: 1;
    margin-top: 0.35rem;
}

/* Responsive - 2 columns on medium screens */
@media (max-width: 1024px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 2.5rem;
    }

    /* Reset dividers for 2-column layout */
    .service-card:not(:first-child) {
        border-left: none;
        padding-left: 0;
    }

    /* Add divider only to right column (2nd and 4th items) */
    .service-card:nth-child(2n) {
        border-left: 1px solid var(--border-color);
        padding-left: 2rem;
    }
}

/* Responsive - 1 column on small screens */
@media (max-width: 640px) {
    .services-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    /* Remove all vertical dividers on mobile */
    .service-card:nth-child(2n),
    .service-card:not(:first-child) {
        border-left: none;
        padding-left: 0;
    }
}

/* ==========================================
   SECTOR CARDS (We Know Utilities)
   ========================================== */

.sector-card {
    position: relative;
    display: block;
    border-radius: 1rem;
    overflow: hidden;
    text-decoration: none;
    aspect-ratio: 3 / 4;
    transition: transform 0.3s ease;
}

.sector-card:hover {
    transform: translateY(-8px);
}

.sector-card-image {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.sector-card-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to bottom,
        rgba(0, 0, 0, 0.3) 0%,
        rgba(0, 0, 0, 0.5) 50%,
        rgba(0, 0, 0, 0.75) 100%
    );
    transition: background 0.3s ease;
}

.sector-card:hover .sector-card-overlay {
    background: linear-gradient(
        to bottom,
        rgba(0, 0, 0, 0.4) 0%,
        rgba(0, 0, 0, 0.6) 50%,
        rgba(0, 0, 0, 0.8) 100%
    );
}

.sector-card-content {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 1.5rem;
    color: white;
}

.sector-card-title {
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    color: white;
}

.sector-card-text {
    font-size: 0.9375rem;
    font-weight: 400;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 1rem;
}

.sector-card-cta {
    display: inline-flex;
    align-items: center;
    font-size: 0.875rem;
    font-weight: 600;
    color: white;
    opacity: 0.9;
    transition: opacity 0.2s ease;
}

.sector-card:hover .sector-card-cta {
    opacity: 1;
}

.sector-card-cta i {
    transition: transform 0.2s ease;
}

.sector-card:hover .sector-card-cta i {
    transform: translateX(4px);
}

/* Responsive - stack on mobile */
@media (max-width: 768px) {
    .sector-card {
        aspect-ratio: 16 / 9;
    }
}

/* ==========================================
   MOBILE NAVIGATION STYLES
   ========================================== */

/* Mobile Icon Buttons (Search & Theme Toggle) */
.mobile-icon-btn {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: none;
    color: var(--text-primary);
    cursor: pointer;
    transition: all 0.3s ease;
    border-radius: 8px;
}

.mobile-icon-btn:hover {
    background-color: var(--bg-secondary);
}

.mobile-icon-btn:active {
    transform: scale(0.95);
}

/* Hamburger Menu Button */
.mobile-menu-btn {
    width: 44px;
    height: 44px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 6px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 8px;
    transition: all 0.3s ease;
    border-radius: 8px;
}

.mobile-menu-btn:hover {
    background-color: var(--bg-secondary);
}

.hamburger-line {
    width: 24px;
    height: 2px;
    background-color: var(--text-primary);
    transition: all 0.3s ease;
    border-radius: 2px;
}

.mobile-menu-btn.active .hamburger-line:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

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

.mobile-menu-btn.active .hamburger-line:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

/* Mobile Menu Panel */
.mobile-menu {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: var(--nav-bg);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    z-index: 999; /* above header, below modals */
    height: 100vh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    padding-top: 80px; /* account for header height */
}

.mobile-menu.hidden {
    display: none;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.mobile-menu-content {
    padding: 1.5rem;
    max-width: 500px;
    margin: 0 auto;
    width: 100%;
    flex: 1;
    overflow-y: auto;
}

/* Mobile Menu Sections */
.mobile-menu-section {
    border-bottom: 1px solid var(--border-color);
    padding: 1rem 0;
}

.mobile-menu-section:last-child {
    border-bottom: none;
}

.mobile-menu-close {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 0.5rem;
}

.mobile-menu-close button {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    background: var(--bg-secondary);
    color: var(--text-primary);
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.mobile-menu-close button:hover {
    background: var(--bg-tertiary);
}

/* Locations page spacing tweaks */
@media (max-width: 768px) {
    .locations-section {
        padding-top: 0rem !important;
        padding-bottom: 2rem !important;
    }

    .locations-map {
        margin-bottom: 0rem !important;
    }

    .locations-list {
        margin-bottom: 0 !important;
    }
}

/* Mobile Menu Section Buttons (expandable) */
.mobile-menu-section-btn {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    background: transparent;
    border: none;
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--text-primary);
    cursor: pointer;
    transition: all 0.2s ease;
    border-radius: 8px;
    min-height: 48px;
}

.mobile-menu-section-btn:hover {
    background-color: var(--bg-secondary);
}

.mobile-menu-section-btn:active {
    transform: scale(0.98);
}

.mobile-menu-chevron {
    transition: transform 0.3s ease;
    color: var(--text-secondary);
}

.mobile-menu-chevron.rotated {
    transform: rotate(180deg);
}

/* Mobile Submenu */
.mobile-submenu {
    padding-left: 1rem;
    padding-top: 0.5rem;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.mobile-submenu.hidden {
    display: none;
}

/* Mobile Menu Links */
.mobile-menu-link {
    display: block;
    padding: 0.875rem 1rem;
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 1rem;
    transition: all 0.2s ease;
    border-radius: 6px;
    min-height: 48px;
    display: flex;
    align-items: center;
}

.mobile-menu-link:hover {
    background-color: var(--bg-secondary);
    color: var(--text-primary);
}

.mobile-menu-link:active {
    transform: scale(0.98);
}

.mobile-menu-link-main {
    display: block;
    padding: 1rem;
    color: var(--text-primary);
    text-decoration: none;
    font-size: 1.125rem;
    font-weight: 600;
    transition: all 0.2s ease;
    border-radius: 8px;
    min-height: 48px;
    display: flex;
    align-items: center;
}

.mobile-menu-link-main:hover {
    background-color: var(--bg-secondary);
}

.mobile-menu-link-main:active {
    transform: scale(0.98);
}

/* Mobile Contact Button */
.mobile-menu-contact-btn {
    display: block;
    width: 100%;
    padding: 1rem 1.5rem;
    background-color: var(--accent-primary);
    color: white;
    text-align: center;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    border-radius: 9999px;
    transition: all 0.2s ease;
    min-height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.mobile-menu-contact-btn:hover {
    background-color: var(--accent-secondary);
    transform: scale(1.02);
}

.mobile-menu-contact-btn:active {
    transform: scale(0.98);
}

/* ==========================================
   MOBILE OPTIMIZATIONS
   ========================================== */

/* Touch Target Optimization for All Interactive Elements */
@media (max-width: 768px) {
    /* Ensure all buttons and links meet 44x44px minimum */
    button, a, input[type="submit"], input[type="button"] {
        min-height: 44px;
        min-width: 44px;
    }

    /* Hero text optimization for small screens */
    .hero-text-light h1,
    h1.hero-text-light {
        font-size: 2rem !important;
        line-height: 1.2;
    }

    /* Stats grid - single column on very small screens */
    @media (max-width: 480px) {
        .hero-stats-border {
            grid-template-columns: 1fr !important;
        }
    }

    /* Form inputs - larger touch targets */
    input[type="text"],
    input[type="email"],
    input[type="tel"],
    textarea,
    select {
        min-height: 48px;
        font-size: 16px; /* Prevents zoom on iOS */
        padding: 0.75rem 1rem;
    }

    /* Button spacing in hero sections */
    .hero-btn-1,
    .hero-btn-2,
    .hero-btn-3 {
        min-height: 48px;
        padding: 0.875rem 1.5rem;
    }

    /* Contact form optimization */
    .form-input {
        min-height: 48px;
        font-size: 16px;
        padding: 0.875rem 1rem;
    }

    .form-submit-btn {
        min-height: 52px;
        font-size: 1rem;
    }

    /* Service list items - better spacing */
    .service-list-item {
        margin-bottom: 0.75rem;
    }

    .service-list-item .p-3 {
        padding: 1rem !important;
    }

    /* Video controls accessibility */
    video::-webkit-media-controls {
        transform: scale(1.2);
    }

    /* Client story cards - better mobile layout */
    .client-story-card {
        margin-bottom: 1.5rem;
    }

    /* Real outcomes cards - single column */
    .person-card {
        margin-bottom: 1rem;
    }
}

/* Extra small screens (320px - 375px) */
@media (max-width: 375px) {
    /* Further reduce hero text size */
    h1 {
        font-size: 1.75rem !important;
    }

    h2 {
        font-size: 1.25rem !important;
    }

    /* Reduce padding on containers */
    .max-w-7xl {
        padding-left: 1rem;
        padding-right: 1rem;
    }

    /* Stack everything vertically */
    .flex-col {
        gap: 1rem;
    }
}

/* Tablet optimization (769px - 1024px) */
@media (min-width: 769px) and (max-width: 1024px) {
    /* Slightly smaller hero text for tablets */
    .hero-text-light h1 {
        font-size: 3.5rem;
    }

    /* Better grid spacing */
    .grid {
        gap: 1.5rem;
    }
}

/* ===========================
   Admin Settings Modal Styles
   =========================== */

.admin-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.admin-modal.hidden {
    display: none;
}

.admin-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.75);
    -webkit-backdrop-filter: blur(4px);
    backdrop-filter: blur(4px);
    z-index: 1;
}

.admin-modal-content {
    position: relative;
    z-index: 2;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    width: 100%;
    max-width: 900px;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}

.admin-modal-header {
    padding: 1.5rem 2rem;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-shrink: 0;
}

.admin-modal-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    margin: 0;
}

.admin-close-btn {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-secondary);
    color: var(--text-primary);
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 1.25rem;
}

.admin-close-btn:hover {
    background: var(--accent-tertiary);
    color: white;
    transform: scale(1.1);
}

.admin-modal-body {
    padding: 2rem;
    overflow-y: auto;
    flex: 1;
}

.admin-section {
    margin-bottom: 2.5rem;
}

.admin-section:last-child {
    margin-bottom: 0;
}

.admin-section-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 1.25rem;
    display: flex;
    align-items: center;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid var(--accent-primary);
}

.admin-label {
    display: block;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
}

.admin-select {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    background: var(--bg-primary);
    color: var(--text-primary);
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.admin-select:hover {
    border-color: var(--accent-primary);
}

.admin-select:focus {
    outline: none;
    border-color: var(--accent-primary);
    box-shadow: 0 0 0 3px rgba(75, 98, 44, 0.1);
}

/* Font preview in dropdown options */
#font-selector option {
    padding: 0.5rem;
    font-size: 1rem;
}

/* Individual font families for preview */
#font-selector option[value="'Abel', sans-serif"] { font-family: 'Abel', sans-serif; }
#font-selector option[value="'Archivo', sans-serif"] { font-family: 'Archivo', sans-serif; }
#font-selector option[value="'Barlow', sans-serif"] { font-family: 'Barlow', sans-serif; }
#font-selector option[value="'Cabin', sans-serif"] { font-family: 'Cabin', sans-serif; }
#font-selector option[value="'DM Sans', sans-serif"] { font-family: 'DM Sans', sans-serif; }
#font-selector option[value="'Epilogue', sans-serif"] { font-family: 'Epilogue', sans-serif; }
#font-selector option[value="'Fira Sans', sans-serif"] { font-family: 'Fira Sans', sans-serif; }
#font-selector option[value="'Hind', sans-serif"] { font-family: 'Hind', sans-serif; }
#font-selector option[value="'Inter', sans-serif"] { font-family: 'Inter', sans-serif; }
#font-selector option[value="'Josefin Sans', sans-serif"] { font-family: 'Josefin Sans', sans-serif; }
#font-selector option[value="'Karla', sans-serif"] { font-family: 'Karla', sans-serif; }
#font-selector option[value="'Lato', sans-serif"] { font-family: 'Lato', sans-serif; }
#font-selector option[value="'Lexend', sans-serif"] { font-family: 'Lexend', sans-serif; }
#font-selector option[value="'Manrope', sans-serif"] { font-family: 'Manrope', sans-serif; }
#font-selector option[value="'Montserrat', sans-serif"] { font-family: 'Montserrat', sans-serif; }
#font-selector option[value="'Mukta', sans-serif"] { font-family: 'Mukta', sans-serif; }
#font-selector option[value="'Mulish', sans-serif"] { font-family: 'Mulish', sans-serif; }
#font-selector option[value="'Nunito', sans-serif"] { font-family: 'Nunito', sans-serif; }
#font-selector option[value="'Open Sans', sans-serif"] { font-family: 'Open Sans', sans-serif; }
#font-selector option[value="'Oswald', sans-serif"] { font-family: 'Oswald', sans-serif; }
#font-selector option[value="'Outfit', sans-serif"] { font-family: 'Outfit', sans-serif; }
#font-selector option[value="'Oxygen', sans-serif"] { font-family: 'Oxygen', sans-serif; }
#font-selector option[value="'Plus Jakarta Sans', sans-serif"] { font-family: 'Plus Jakarta Sans', sans-serif; }
#font-selector option[value="'Poppins', sans-serif"] { font-family: 'Poppins', sans-serif; }
#font-selector option[value="'PT Sans', sans-serif"] { font-family: 'PT Sans', sans-serif; }
#font-selector option[value="'Quicksand', sans-serif"] { font-family: 'Quicksand', sans-serif; }
#font-selector option[value="'Raleway', sans-serif"] { font-family: 'Raleway', sans-serif; }
#font-selector option[value="'Roboto', sans-serif"] { font-family: 'Roboto', sans-serif; }
#font-selector option[value="'Rubik', sans-serif"] { font-family: 'Rubik', sans-serif; }
#font-selector option[value="'Source Sans Pro', sans-serif"] { font-family: 'Source Sans Pro', sans-serif; }
#font-selector option[value="'Space Grotesk', sans-serif"] { font-family: 'Space Grotesk', sans-serif; }
#font-selector option[value="'Ubuntu', sans-serif"] { font-family: 'Ubuntu', sans-serif; }
#font-selector option[value="'Urbanist', sans-serif"] { font-family: 'Urbanist', sans-serif; }
#font-selector option[value="'Work Sans', sans-serif"] { font-family: 'Work Sans', sans-serif; }
#font-selector option[value="'Arvo', serif"] { font-family: 'Arvo', serif; }
#font-selector option[value="'Bitter', serif"] { font-family: 'Bitter', serif; }
#font-selector option[value="'Cardo', serif"] { font-family: 'Cardo', serif; }
#font-selector option[value="'Cormorant', serif"] { font-family: 'Cormorant', serif; }
#font-selector option[value="'Crimson Text', serif"] { font-family: 'Crimson Text', serif; }
#font-selector option[value="'EB Garamond', serif"] { font-family: 'EB Garamond', serif; }
#font-selector option[value="'Libre Baskerville', serif"] { font-family: 'Libre Baskerville', serif; }
#font-selector option[value="'Lora', serif"] { font-family: 'Lora', serif; }
#font-selector option[value="'Merriweather', serif"] { font-family: 'Merriweather', serif; }
#font-selector option[value="'Playfair Display', serif"] { font-family: 'Playfair Display', serif; }
#font-selector option[value="'PT Serif', serif"] { font-family: 'PT Serif', serif; }
#font-selector option[value="'Roboto Slab', serif"] { font-family: 'Roboto Slab', serif; }
#font-selector option[value="'Source Serif Pro', serif"] { font-family: 'Source Serif Pro', serif; }
#font-selector option[value="'Anton', sans-serif"] { font-family: 'Anton', sans-serif; }
#font-selector option[value="'Bebas Neue', sans-serif"] { font-family: 'Bebas Neue', sans-serif; }
#font-selector option[value="'Fjalla One', sans-serif"] { font-family: 'Fjalla One', sans-serif; }
#font-selector option[value="'Permanent Marker', cursive"] { font-family: 'Permanent Marker', cursive; }
#font-selector option[value="'Righteous', sans-serif"] { font-family: 'Righteous', sans-serif; }
#font-selector option[value="'Saira Condensed', sans-serif"] { font-family: 'Saira Condensed', sans-serif; }
#font-selector option[value="Arial, sans-serif"] { font-family: Arial, sans-serif; }
#font-selector option[value="Calibri, sans-serif"] { font-family: Calibri, sans-serif; }
#font-selector option[value="'Courier New', monospace"] { font-family: 'Courier New', monospace; }
#font-selector option[value="Georgia, serif"] { font-family: Georgia, serif; }
#font-selector option[value="'Segoe UI', Tahoma, sans-serif"] { font-family: 'Segoe UI', Tahoma, sans-serif; }
#font-selector option[value="Tahoma, sans-serif"] { font-family: Tahoma, sans-serif; }
#font-selector option[value="'Times New Roman', serif"] { font-family: 'Times New Roman', serif; }
#font-selector option[value="'Trebuchet MS', sans-serif"] { font-family: 'Trebuchet MS', sans-serif; }
#font-selector option[value="'Tw Cen MT', sans-serif"] { font-family: 'Tw Cen MT', sans-serif; }
#font-selector option[value="Verdana, sans-serif"] { font-family: Verdana, sans-serif; }

.admin-color-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

.admin-color-item {
    display: flex;
    flex-direction: column;
}

.admin-color-input-wrapper {
    display: flex;
    gap: 0.75rem;
    align-items: center;
}

.admin-color-picker {
    width: 60px;
    height: 44px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    cursor: pointer;
    padding: 4px;
    background: var(--bg-primary);
    transition: all 0.2s ease;
}

.admin-color-picker:hover {
    border-color: var(--accent-primary);
    transform: scale(1.05);
}

.admin-color-picker::-webkit-color-swatch-wrapper {
    padding: 0;
    border-radius: 6px;
}

.admin-color-picker::-webkit-color-swatch {
    border: none;
    border-radius: 4px;
}

.admin-hex-input {
    flex: 1;
    padding: 0.75rem 1rem;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    background: var(--bg-primary);
    color: var(--text-primary);
    font-size: 0.875rem;
    font-family: 'Courier New', monospace;
    text-transform: uppercase;
    transition: all 0.2s ease;
}

.admin-hex-input:hover {
    border-color: var(--accent-primary);
}

.admin-hex-input:focus {
    outline: none;
    border-color: var(--accent-primary);
    box-shadow: 0 0 0 3px rgba(75, 98, 44, 0.1);
}

.admin-actions {
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border-color);
}

.admin-btn {
    padding: 0.875rem 1.75rem;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    border: none;
}

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

.admin-btn-primary:hover {
    background: var(--accent-tertiary);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(75, 98, 44, 0.3);
}

.admin-btn-secondary {
    background: var(--bg-secondary);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
}

.admin-btn-secondary:hover {
    background: var(--bg-tertiary);
    border-color: var(--accent-primary);
    transform: translateY(-2px);
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .admin-modal-content {
        max-width: 100%;
        max-height: 100vh;
        border-radius: 0;
    }

    .admin-modal-header {
        padding: 1rem 1.5rem;
    }

    .admin-modal-title {
        font-size: 1.25rem;
    }

    .admin-modal-body {
        padding: 1.5rem;
    }

    .admin-color-grid {
        grid-template-columns: 1fr;
    }

    .admin-actions {
        flex-direction: column;
    }

    .admin-btn {
        width: 100%;
        justify-content: center;
    }
}

/* ========================================
   TESTIMONIAL CATEGORY ICONS
   ======================================== */

.testimonial-category-icons {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    display: flex;
    gap: 0.5rem;
    opacity: 0.25;
    z-index: 1;
}

.testimonial-category-icons i {
    font-size: 1.1rem;
    color: var(--text-tertiary);
    transition: opacity 0.3s ease;
}

.testimonial-card:hover .testimonial-category-icons,
.client-story-card:hover .testimonial-category-icons {
    opacity: 0.5;
}

/* ========================================
   PROJECT PROFILE CARDS (Clients Page)
   ======================================== */

.project-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 0.75rem;
    transition: all 0.3s ease;
    overflow: hidden;
}

.project-card:hover {
    border-color: var(--accent-primary);
    box-shadow: 0 4px 15px -5px rgba(0, 0, 0, 0.1);
}

.project-header {
    padding: 1.25rem 1.5rem;
    cursor: pointer;
    transition: background 0.2s ease;
}

.project-header:hover {
    background: var(--bg-secondary);
}

.project-expand-icon {
    color: var(--text-tertiary);
    transition: transform 0.3s ease, color 0.3s ease;
}

.project-card:hover .project-expand-icon {
    color: var(--accent-primary);
}

.project-expand-icon.rotate-180 {
    transform: rotate(180deg);
}

.project-details {
    border-top: 1px solid var(--border-color);
    animation: projectSlideDown 0.3s ease;
}

@keyframes projectSlideDown {
    from {
        opacity: 0;
        max-height: 0;
    }
    to {
        opacity: 1;
        max-height: 1000px;
    }
}

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

.project-client-logo {
    height: 2.5rem;
    width: auto;
    max-width: 120px;
    object-fit: contain;
}

.project-highlights {
    list-style: disc;
    padding-left: 1.25rem;
    margin-bottom: 1rem;
}

.project-highlights li {
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
    line-height: 1.5;
}

.project-profile-text {
    color: var(--text-secondary);
    line-height: 1.7;
}

.project-profile-text p {
    margin-bottom: 1rem;
}

.project-profile-text p:last-child {
    margin-bottom: 0;
}

.project-profile-text ul,
.project-profile-text ol {
    margin: 1rem 0;
    padding-left: 1.5rem;
}

.project-profile-text ul {
    list-style-type: disc;
}

.project-profile-text ol {
    list-style-type: decimal;
}

.project-profile-text li {
    margin-bottom: 0.5rem;
    padding-left: 0.25rem;
}

.project-profile-text li:last-child {
    margin-bottom: 0;
}

/* Project Search Bar */
.projects-search-container {
    position: relative;
    max-width: 600px;
    margin: 0 auto 2rem;
}

.projects-search-input {
    width: 100%;
    padding: 1rem 1.25rem 1rem 3rem;
    border: 2px solid var(--border-color);
    border-radius: 50px;
    background: var(--bg-primary);
    color: var(--text-primary);
    font-size: 1rem;
    transition: all 0.3s ease;
}

.projects-search-input:focus {
    outline: none;
    border-color: var(--accent-primary);
    box-shadow: 0 0 0 4px rgba(75, 98, 44, 0.1);
}

.projects-search-input::placeholder {
    color: var(--text-tertiary);
}

.projects-search-icon {
    position: absolute;
    left: 1.25rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-tertiary);
}

/* Compact Search Result Style Project Cards */
.project-result {
    background: var(--card-bg);
    border-bottom: 1px solid var(--border-color);
    transition: background 0.2s ease;
}

.project-result:first-child {
    border-top: 1px solid var(--border-color);
}

.project-result:hover {
    background: var(--bg-secondary);
}

.project-result-header {
    padding: 0.875rem 1rem;
    cursor: pointer;
}

.project-result-title {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.75rem;
    margin-bottom: 0.25rem;
}

.project-result-link {
    font-size: 1.0625rem;
    font-weight: 600;
    color: var(--accent-primary);
    line-height: 1.3;
    transition: color 0.2s ease;
}

.project-result:hover .project-result-link {
    color: var(--accent-secondary);
    text-decoration: underline;
}

.project-result .project-expand-icon {
    font-size: 0.75rem;
    color: var(--text-tertiary);
    transition: transform 0.2s ease, color 0.2s ease;
    flex-shrink: 0;
    margin-top: 0.25rem;
}

.project-result:hover .project-expand-icon {
    color: var(--accent-primary);
}

.project-result .project-expand-icon.rotate-180 {
    transform: rotate(180deg);
}

.project-result-meta {
    font-size: 0.8125rem;
    color: var(--text-secondary);
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.375rem;
}

.project-result-client {
    color: var(--text-primary);
    font-weight: 500;
}

.project-result-separator {
    color: var(--text-tertiary);
}

.project-result-snippet {
    font-size: 0.8125rem;
    color: var(--text-tertiary);
    line-height: 1.5;
    margin-top: 0.375rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.project-result .project-details {
    border-top: 1px solid var(--border-color);
    background: var(--bg-secondary);
}

.project-result .project-details-content {
    padding: 1rem 1.25rem;
}

/* Pagination Styles */
.pagination-container {
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border-color);
}

.pagination-info {
    text-align: center;
    font-size: 0.875rem;
    color: var(--text-secondary);
    margin-bottom: 1rem;
}

.pagination-controls {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.pagination-pages {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.pagination-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.375rem;
    padding: 0.5rem 0.875rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-primary);
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 0.5rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.pagination-btn:hover:not(.disabled):not(.active) {
    background: var(--bg-secondary);
    border-color: var(--accent-primary);
    color: var(--accent-primary);
}

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

.pagination-btn.disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.pagination-number {
    min-width: 2.25rem;
    padding: 0.5rem;
}

.pagination-ellipsis {
    padding: 0.5rem 0.25rem;
    color: var(--text-tertiary);
}

.pagination-nav {
    font-weight: 500;
}

/* Responsive pagination */
@media (max-width: 640px) {
    .pagination-controls {
        gap: 0.375rem;
    }

    .pagination-btn {
        padding: 0.4rem 0.625rem;
        font-size: 0.8125rem;
    }

    .pagination-number {
        min-width: 2rem;
    }

    .pagination-pages {
        gap: 0.125rem;
    }
}

/* No Results Message */
.no-results-message {
    text-align: center;
    padding: 3rem;
    color: var(--text-secondary);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .project-header {
        padding: 1rem;
    }

    .project-details-content {
        padding: 1rem;
    }

    .project-client-logo {
        height: 2rem;
    }
}

/* Story Content Typography */
#story-content {
    font-size: 1.125rem;
    line-height: 1.8;
    color: var(--text-primary);
}

#story-content p {
    margin-bottom: 1.5rem;
}

#story-content h2 {
    font-size: 1.75rem;
    font-weight: 700;
    margin-top: 2.5rem;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

#story-content h3 {
    font-size: 1.375rem;
    font-weight: 600;
    margin-top: 2rem;
    margin-bottom: 0.75rem;
    color: var(--text-primary);
}

#story-content h4 {
    font-size: 1.125rem;
    font-weight: 600;
    margin-top: 1.5rem;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

/* Lists in story content */
#story-content ul {
    list-style-type: disc;
    padding-left: 1.5rem;
    margin-bottom: 1.5rem;
}

#story-content ol {
    list-style-type: decimal;
    padding-left: 1.5rem;
    margin-bottom: 1.5rem;
}

#story-content li {
    margin-bottom: 0.5rem;
    padding-left: 0.25rem;
}

#story-content ul ul {
    list-style-type: circle;
    margin-top: 0.5rem;
    margin-bottom: 0.5rem;
}

#story-content ol ol {
    list-style-type: lower-alpha;
    margin-top: 0.5rem;
    margin-bottom: 0.5rem;
}

/* Links in story content */
#story-content a {
    color: var(--accent-primary);
    text-decoration: underline;
    text-underline-offset: 2px;
}

#story-content a:hover {
    color: var(--accent-secondary);
}

/* Blockquotes in story content */
#story-content blockquote {
    border-left: 4px solid var(--accent-primary);
    padding-left: 1.5rem;
    margin: 1.5rem 0;
    font-style: italic;
    color: var(--text-secondary);
}

/* Images in story content */
#story-content img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 1.5rem 0;
}

/* Code in story content */
#story-content code {
    background: var(--bg-secondary);
    padding: 0.125rem 0.375rem;
    border-radius: 4px;
    font-size: 0.875em;
}

#story-content pre {
    background: var(--bg-secondary);
    padding: 1rem;
    border-radius: 8px;
    overflow-x: auto;
    margin: 1.5rem 0;
}

#story-content pre code {
    background: none;
    padding: 0;
}
