/* ==========================================================================
   Custom Styles - CitySpaces Theme
   ========================================================================== */

/* Prevent horizontal overflow on mobile */
html, body {
    overflow-x: hidden;
}

#page {
    overflow: hidden;
}

/* Slick slider overflow fix */
.slick-slider {
    overflow: hidden;
}

.slick-list {
    overflow: hidden;
}

/* AOS fallback - if JS fails, show elements after 3 seconds */
@keyframes aos-fallback {
    to {
        opacity: 1;
        transform: none;
    }
}

[data-aos] {
    animation: aos-fallback 0.6s ease-out 3s forwards;
}

[data-aos].aos-animate {
    animation: none;
}

/* ==========================================================================
   Navigation Styles - Slide-out Drawer
   ========================================================================== */

/* Collapsed Green Bar */
.main-navigation {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: var(--spacing-lg) var(--spacing-xl);
}
.admin-bar .main-navigation {
    top: 1.25rem;
}

.nav-bar-collapsed {
    background: var(--color-primary);
    padding: var(--spacing-md) var(--spacing-xl);
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: 0 auto;
    border-radius: 30px;
    box-shadow: var(--shadow-md);
}

.nav-bar-left {
    display: flex;
    align-items: center;
    position: relative;
}

.nav-bar-logo a {
    display: flex;
}

.nav-bar-logo img {
    height: 4rem;
    width: auto;
}

.nav-bar-logo .site-logo-text {
    color: var(--color-text-light);
    font-size: var(--font-size-h4);
    font-weight: var(--font-weight-semibold);
    text-decoration: none;
}

/* Hamburger Menu Button */
.nav-toggle {
    background: none;
    border: none;
    cursor: pointer;
    padding: var(--spacing-xs);
    display: flex;
    flex-direction: column;
    gap: 5px;
    z-index: 1;
    transition: 0.2s ease all;
}
.nav-toggle:hover {
    opacity: 0.8;
}

.hamburger-icon {
    display: flex;
    flex-direction: column;
    gap: 9px;
}

.hamburger-icon .line {
    display: block;
    width: 39px;
    height: 2px;
    background: var(--color-text-light);
    transition: all var(--transition-base);
}

/* Search Toggle */
.search-toggle {
    background: none;
    border: none;
    cursor: pointer;
    padding: var(--spacing-xs);
    display: flex;
    align-items: center;
    justify-content: center;
    transition:0.2s ease all;
}
.search-toggle:hover {
    opacity: 0.8;
}

.search-toggle.is-hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.search-toggle svg {
    width: 26px;
    height: 26px;
}

/* Navigation Drawer */
.nav-drawer {
    position: fixed;
    top: 0;
    left: -100%;
    height: 100vh;
    display: flex;
    z-index: 1001;
    transition: left var(--transition-base);
}
.admin-bar .nav-drawer {
    top: 32px;
}

.nav-drawer.is-open {
    left: 0;
}

/* Main Drawer Panel */
.nav-drawer-main {
    background: var(--color-primary);
    width: 28rem;
    height: 100vh;
    padding: var(--spacing-xl) var(--spacing-2xl);
    display: flex;
    flex-direction: column;
    gap: var(--spacing-xl);
    overflow-y: auto;
}

/* Drawer Header */
.nav-drawer-header {
    display: flex;
    gap: var(--spacing-xl);
    align-items: center;
}

.nav-close {
    background: none;
    border: none;
    cursor: pointer;
    padding: var(--spacing-xs);
    position: relative;
    width: 24px;
    height: 24px;
}

.close-icon {
    display: block;
    position: relative;
    width: 100%;
    height: 100%;
}

.close-icon .line {
    position: absolute;
    width: 23px;
    height: 3px;
    background: var(--color-text-light);
    top: 50%;
    left: 50%;
    transform-origin: center;
}

.close-icon .line:first-child {
    transform: translate(-50%, -50%) rotate(45deg);
}

.close-icon .line:last-child {
    transform: translate(-50%, -50%) rotate(-45deg);
}

.nav-logo {
    flex: 1;
}

.nav-logo img {
    max-height: 3rem;
    width: auto;
}

/* Navigation Menu */
.nav-menu-container {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-lg);
}

.nav-menu {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
}

.nav-menu > li {
    list-style: none;
}

.nav-menu a,
.nav-menu .menu-item-button {
    display: flex;
    align-items: center;
    gap: var(--spacing-xs);
    color: var(--color-text-light);
    font-size: 1rem;
    font-weight: var(--font-weight-medium);
    line-height: 1.5rem;
    text-decoration: none;
    transition: opacity var(--transition-base);
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    width: 100%;
    text-align: left;
    font-family: 'Domi';
}

.nav-menu a:hover,
.nav-menu .menu-item-button:hover {
    opacity: 0.8;
}


.submenu-arrow {
    transition: transform var(--transition-base);
}

.has-submenu.is-active > .menu-item-button .submenu-arrow {
    transform: rotate(180deg);
}

/* Hide submenus by default */
.nav-menu .sub-menu {
    display: none;
    list-style: none;
    padding: 0;
    margin: 0;
}

/* Nav Actions */
.nav-actions {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
    margin-top: auto;
}

.nav-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--spacing-xs);
    padding: var(--spacing-sm) var(--spacing-lg);
    border: 1px solid var(--color-text-light);
    border-radius: 5px;
    background: none;
    color: var(--color-text-light);
    font-size: 1rem;
    font-weight: var(--font-weight-medium);
    line-height: 1.5rem;
    text-decoration: none;
    cursor: pointer;
    transition: all var(--transition-base);
    width: 11rem;
}

.nav-btn:hover {
    background: var(--color-text-light);
    color: var(--color-primary);
}

.nav-btn:hover svg path {
    stroke: var(--color-primary);
}

.nav-btn-search {
    width: 10rem;
    justify-content: space-between;
    padding-left: var(--spacing-md);
    padding-right: var(--spacing-md);
}

/* Submenu Panel */
.nav-drawer-submenu {
    background: var(--color-secondary);
    width: 0;
    height: 100vh;
    padding: 0;
    overflow-y: auto;
    overflow-x: hidden;
    transition: width var(--transition-base), padding var(--transition-base);
}

.nav-drawer-submenu.is-open {
    width: 34rem;
    padding: var(--spacing-xl) var(--spacing-2xl);
}

/* Submenu Header with Close and Back buttons */
.submenu-header {
    display: none; /* Hidden on desktop */
}

.submenu-content {
    opacity: 0;
    transition: opacity var(--transition-fast);
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
}

.nav-drawer-submenu.is-open .submenu-content {
    opacity: 1;
    transition-delay: 0.2s;
}

/* Submenu Sections */
.submenu-section {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

/* Parent Link Title */
.submenu-parent-link {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
}

.submenu-title {
    color: var(--color-text-light);
    font-family: var(--font-family-primary);
    font-size: 1.65rem;
    font-weight: var(--font-weight-medium);
    line-height: 120%;
}

.submenu-title-arrow {
    width: 10px;
    height: auto;
    transform: rotate(-45deg);
    flex-shrink: 0;
}

/* Category Styling */
.submenu-category {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.submenu-category-title {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--color-text-light);
    font-family: var(--font-family-primary);
    font-size: 1.65rem;
    font-weight: var(--font-weight-medium);
    line-height: 120%;
    text-decoration: none;
    transition: opacity var(--transition-base);
}

.submenu-category-title:hover {
    opacity: 0.8;
}

.submenu-category-arrow {
    width: 10px;
    height: auto;
    transform: rotate(-45deg);
    flex-shrink: 0;
}

/* Submenu Items List */
.submenu-items {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.submenu-items li {
    list-style: none;
}

.submenu-items a {
    color: var(--color-text-light);
    font-family: var(--font-family-primary);
    font-size: 1rem;
    font-weight: var(--font-weight-medium);
    line-height: 120%;
    text-decoration: none;
    transition: opacity var(--transition-base);
    display: block;
}

.submenu-items a:hover {
    opacity: 0.8;
}

.submenu-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

/* Overlay */
.nav-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    opacity: 0;
    visibility: hidden;
    transition: opacity var(--transition-base), visibility var(--transition-base);
    z-index: 999;
}

.nav-overlay.is-visible {
    opacity: 1;
    visibility: visible;
}

/* Responsive */
@media (max-width: 768px) {
    .admin-bar .main-navigation {
        top: 3.25rem;
        padding: var(--spacing-lg) var(--spacing-sm);
    }
	.main-navigation {
        padding: var(--spacing-lg) var(--spacing-sm);
    }

    .search-toggle {
        display: none;
    }

    .nav-bar-logo img {
        height: 3rem;
    }

    .nav-drawer.is-open {
        right: 0;
    }

    .nav-drawer-header {
        justify-content: space-between;
    }

    .nav-logo {
        flex: none;
    }

    .nav-drawer-main {
        width: 100%;
        padding: var(--spacing-xl) var(--spacing-lg);
    }

    /* Mobile Submenu - Full Screen */
    .nav-drawer-submenu {
        position: fixed;
        top: 0;
        left: 0;
        width: 100% !important;
        height: 100vh;
        transform: translateX(100%);
        transition: transform var(--transition-base);
        z-index: 1001;
        padding: 0;
    }

    .nav-drawer-submenu.is-open {
        transform: translateX(0);
        padding: var(--spacing-xl) var(--spacing-lg);
        padding-top: 0;
    }

    .nav-menu a, .nav-menu .menu-item-button {
        font-size: 1.25rem;
        line-height: 2.25rem;
    }
    .nav-menu .menu-item-button svg {
        height: 1.25rem;
        width: 1.25rem;
        margin-top: 4px;
    }
    .submenu-items a {
        font-size: 1.25rem;
        line-height: 130%;
    }

    /* Submenu Header - Visible on mobile */
    .submenu-header {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: var(--spacing-lg) 0;
        margin-bottom: var(--spacing-lg);
        border-bottom: 1px solid rgba(249, 246, 241, 0.2);
    }

    .submenu-close {
        background: none;
        border: none;
        cursor: pointer;
        padding: 0.5rem;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .submenu-close .close-icon {
        position: relative;
        width: 24px;
        height: 24px;
    }

    .submenu-close .close-icon .line {
        position: absolute;
        width: 24px;
        height: 2px;
        background: var(--color-text-light);
        top: 50%;
        left: 0;
    }

    .submenu-close .close-icon .line:first-child {
        transform: rotate(45deg);
    }

    .submenu-close .close-icon .line:last-child {
        transform: rotate(-45deg);
    }

    .submenu-back {
        background: none;
        border: none;
        cursor: pointer;
        padding: 0.5rem;
        display: flex;
        align-items: center;
        gap: 0.5rem;
        color: var(--color-text-light);
        font-family: var(--font-family-primary);
        font-size: 1rem;
        font-weight: var(--font-weight-medium);
    }

    .submenu-back svg {
        width: 18px;
        height: 18px;
    }

}


/* ==========================================================================
   Home Page Styles 
   ========================================================================== */

.hero-section {
    display: flex;
    align-items: center;
    padding: 10rem 0 5rem;
    background-color: var(--color-background);
    position: relative;
    height: 100vh;
}

.hero-section:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 2;
}

.hero-background-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
}

.hero-container {
    display: flex;
    gap: 1.5rem;
    align-items: center;
    max-width: var(--container-max-width);
    margin: 0 auto;
    position: relative;
    z-index: 4;
}

/* Hero Content - Left Side */
.hero-content {
    flex: 1;
    min-width: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding:0 3rem;
}

.hero-title {
    font-family: var(--font-family-primary);
    font-size: var(--font-size-h1);
    font-weight: var(--font-weight-bold);
    line-height: 1.2;
    letter-spacing: -0.163125rem;
    white-space: pre-wrap;
    margin: 0;
    color: var(--color-text-light);
}

/* Hero title line-by-line animation */
.hero-title .hero-line {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.hero-title.animate-in .hero-line {
    opacity: 1;
    transform: translateY(0);
}

/* Only first line/span gets accent color */
.hero-title > span:first-child,
.hero-title .hero-line:first-child {
    color: var(--color-primary);
}

/* Hero Slider - Right Side */
.hero-slider-wrapper {
    flex: 1;
    min-width: 0;
    max-width: 100%;
    overflow: hidden;
}

.hero-project-slider {
    border-radius: 2.5rem;
    overflow: hidden;
    max-width: 100%;
}

.hero-slide {
    outline: none;
}

.hero-slide-card {
    background: var(--color-background);
    border-radius: 2.5rem;
    overflow: hidden;
    height: 35rem;
    display: flex;
    flex-direction: column;
    position: relative;
}

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

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

.hero-slide-content {
    position: relative;
    z-index: 2;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 2.5rem;
}

/* Navigation Buttons */
.hero-slide-nav {
    display: flex;
    gap: 1rem;
}

.hero-nav-btn {
    width: 3rem;
    height: 3rem;
    background: var(--color-background);
    border: none;
    cursor: pointer;
    transition: transform var(--transition-base);
    border-radius: 500%;
    padding: 1rem;
}

.hero-nav-btn:hover {
    transform: scale(1.1);
}

.hero-nav-btn svg {
    width: 100%;
    height: 100%;
}

/* CTA Button Positioning */
.hero-slide-cta {
    align-self: flex-end;
    width: 100%;
    justify-content: flex-end;
}

/* Slick Carousel Overrides */
.hero-project-slider .slick-dots {
    bottom: 1.25rem;
}

.hero-project-slider .slick-dots li button:before {
    font-size: 0.75rem;
    color: var(--color-text-light);
    opacity: 0.5;
}

.hero-project-slider .slick-dots li.slick-active button:before {
    color: var(--color-text-light);
    opacity: 1;
}

/* Responsive */
@media (max-width: 1024px) {
    .hero-container {
        flex-direction: column;
    }
    
    .hero-content,
    .hero-slider-wrapper {
        width: 100%;
    }
    
    .hero-title {
        font-size: 3.75rem;
    }
}

@media (max-width: 768px) {
    .hero-section {
        padding: 8.75rem 1.5rem 2.5rem;
        min-height: auto;
    }

    .hero-container {
        width: 100%;
    }
    
    .hero-content {
        padding: 2rem 0;
        min-height: auto;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-slider-wrapper {
        width: 100%;
    }
    
    .hero-slide-card {
        height: 28rem;
    }
}

/* Intro Section */
.intro-section {
    padding: 8.75rem 0 3.8125rem;
    z-index: 3;
}

.intro-section .intro-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
    position: relative;
    z-index: 3;
}

.intro-column {
    padding: 6.75rem 4.625rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    flex: 1 0 0;
    align-self: stretch;
}

.intro-left-column {
    background-image: url(/wp-content/uploads/2025/11/9da0f3d4570aaf46c7f566615c74d5e9406de306.jpg);
    background-color: var(--color-orange);
    background-position: 50%;
    background-size: cover;
    background-repeat: no-repeat;
    background-blend-mode: color-dodge;
    border-radius: 44px 0 0 44px;
    position: relative;
    align-items: flex-start;
}
.intro-left-column:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--color-orange);
    opacity: .8;
    border-radius: 44px 0 0 44px;
    z-index: 1;
}

.intro-left-column h2 {
    color: var(--color-text-light);
    font-size: 3.5rem;
    font-weight: 600;
    line-height: 120%;
    margin-bottom: var(--spacing-lg);
    z-index: 2;
}

.intro-left-column p {
    color: var(--color-text-light);
    font-size: 2.675rem;
    font-weight: 600;
    line-height: 150%; /* 69px */
    letter-spacing: -1.38px;
    z-index: 2;
}

.intro-right-column {
    background: var(--color-background);
    border-radius: 0 44px 44px 0;
    border: 2px solid #000;
    border-left: 0;
    gap: 2rem;
    align-items: flex-start;
}

.intro-right-column h4 {
    font-size: 1.75rem;
    font-weight: 500;
    line-height: 140%; /* 2.55rem */
    letter-spacing: -0.06375rem;
}

.intro-right-column ul {
    list-style: none;
    padding-left: 0;
    font-size: 1.75rem;
    font-weight: var(--font-weight-semibold);
}
.intro-right-column ul li {
    margin-bottom: 0.5rem;
}
.intro-right-column ul li:last-child {
    margin-bottom: 0;
}

@media (max-width: 768px) {
    .intro-section .intro-grid {
        grid-template-columns: 1fr;
    }
    .intro-left-column {
        border-radius: 44px 44px 0 0;
            padding: 4.75rem 2.625rem;
    }
    .intro-left-column:before {
        border-radius: 44px 44px 0 0;
    }
    .intro-right-column {
        border-radius: 0 0 44px 44px;
        border-left: 2px solid #000;
        border-top: 0;
        padding: 4.75rem 2.625rem;
    }
}

/* Expertise Section */
.expertise-section  {
    position: relative;
    z-index: 3;
}

.expertise-section .section-header {
    margin-bottom: var(--spacing-2xl);
}

.expertise-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--spacing-xl);
}

.expertise-card {
    border: 2px solid var(--color-secondary);
    padding: 5rem 4.625rem;
    border-radius: var(--border-radius-2xl);
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 4.5rem;
    align-self: stretch;
}

@media (max-width: 768px) {
    .expertise-grid {
        grid-template-columns: 1fr;
    }
    .expertise-card {
        padding: 4rem 1.625rem;
    }
}

/* Impact Section */
.impact-section {
    z-index: 1;;
}
.stats-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--spacing-md);
}

.stat-card {
    padding: var(--spacing-lg) var(--spacing-lg) var(--spacing-md);
    border-radius: var(--border-radius-2xl);
    border: 1px solid var(--color-accent);
    min-height: 20rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.stat-number {
    font-size: var(--font-size-h2);
    font-weight: var(--font-weight-semibold);
    margin-bottom: var(--spacing-sm);
    color: var(--color-accent);
}

.stat-label {
    font-size: 1.875rem;
    color: var(--color-accent);
    line-height: 120%;
    max-width: 90%;
}

@media (max-width: 768px) {
    .stats-grid {
        grid-template-columns: 1fr;
    }
    .stat-number {
        font-size: 7rem;
    }
}

/* Highlights */
.why-section {
    z-index: 0;
}
.highlights {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--spacing-md);
}
.highlight-card {
    border-radius: 2.5rem;
    padding: var(--spacing-lg);
    border-radius: var(--border-radius-2xl);
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
    justify-content: flex-end;
}
.highlight-card p {
   font-weight: var(--font-weight-semibold);
    line-height: 120%;
    letter-spacing: -0.045rem;
    max-width: 90%;
}

@media (max-width: 768px) {
    .highlights {
        grid-template-columns: 1fr;
    }
    .highlight-card {
        min-height: 20rem;
    }
    .highlight-card p {
        font-size: var(--font-size-h4);
    }
}

/* Featured Projects */
.featured-projects-section {
    padding: 5rem 0;
    z-index: 1;
}

.featured-projects-slider {
    margin-bottom: 2rem;
}

.featured-slide {
    outline: none;
}

.featured-slide-inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-3xl);
    position: relative;
}

/* Left Side - Content */
.featured-project-title {
    font-size: 3.5rem;
    font-weight: var(--font-weight-semibold);
    line-height: 1.2;
    margin-bottom: 3rem;
    letter-spacing: -0.12rem;
}

.featured-project-description {
    font-size: 1.5rem;
    line-height: 1.5;
}

.featured-slide-inner span.decorative-line {
    position: absolute;
    left: 0;
    bottom: 1.3rem;
    display: block;
    width: 12.875rem;
    height: 0;
}

/* Right Side - Image */
.featured-slide-image {
    position: relative;
    border-radius: 2.5rem;
    overflow: hidden;
    height: 37.5rem;
}

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

.featured-project-btn-overlay {
    position: absolute;
    bottom: 2rem;
    right: 2rem;
}

/* Reverse Layout */
.featured-project.reverse-layout {
    margin-top: 8rem;
}
.featured-project.reverse-layout .featured-slide-content {
    order: 2;
}
.featured-project.reverse-layout span.decorative-line {
    order: 2;
    left: calc(50% + 2.5rem);
}

/* Navigation */
.featured-projects-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-right: 0;
    margin-top: 3rem;
}

.featured-nav-prev,
.featured-nav-next {
    background: none;
    display: inline-flex;
    align-items: center;
    gap: 1rem;
    color: var(--color-accent);
    border: none;
    border-radius: 2.5rem;
    cursor: pointer;
    transition: all var(--transition-base);
    font-size: 1.25rem;
    font-weight: var(--font-weight-medium);
    opacity: 1;
    visibility: visible;
}

.featured-nav-prev:disabled,
.featured-nav-next:disabled {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.featured-nav-next:hover {
    transform: translateX(0.25rem);
}

.featured-nav-prev:hover {
    transform: translateX(-0.25rem);
}

.next-label,
.prev-label {
    font-family: var(--font-family-primary);
}

.next-arrow,
.prev-arrow {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 3rem;
    height: 3rem;
}

.next-arrow svg,
.prev-arrow svg {
    width: 100%;
    height: 100%;
}

/* Responsive */
@media (max-width: 1024px) {
    .featured-slide-inner {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .featured-slide-content {
        padding-right: 0;
    }
    
    .featured-project-title {
        font-size: 2.5rem;
    }
    
    .featured-slide-image {
        height: 28rem;
    }
}

@media (max-width: 768px) {
    .featured-slide-inner {
        display: flex;
        flex-direction: column;
        gap: 1.5rem;
    }
    
    /* Reorder: Title (in content) -> Image -> Description -> Decorative Line */
    .featured-slide-content {
        display: contents; /* Break out children for reordering */
    }
    
    .featured-project-title {
        margin-bottom: 0;
        order: 1;
    }
    
    .featured-slide-image {
        height: 22rem;
        order: 2;
    }
    
    .featured-project-description {
        order: 3;
    }
    
    .featured-slide-inner span.decorative-line {
        position: relative;
        left: auto;
        order: 4;
        margin-top: 1.5rem;
        height: 3px;
        display: block;
    }
    .featured-slide-inner span.decorative-line svg {
        width: 14rem;
    }
}

/* Latest News */
.featured-news-section {
    z-index: 0;
}
.news-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--spacing-md);
}

.news-card {
    border-radius: var(--border-radius-2xl);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.news-card > a {
    display: block;
    overflow: hidden;
    border-radius: var(--border-radius-2xl) var(--border-radius-2xl) 0 0;
}

.news-card a img {
    aspect-ratio: 2 / 1.25;
    width: 100%;
    display: block;
    object-fit: cover;
    transition: transform var(--transition-base);
}

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

.news-content {
    padding: 2rem 2rem 3rem;
    min-height: 17rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: var(--spacing-lg);
    flex: 1;
    border: 2px solid var(--color-accent);
    border-top: 0;
    border-radius: 0 0 2.5rem 2.5rem;
    background: var(--color-background);
}

.news-text {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
}

.news-text p {
    font-size: 1.125rem;
    line-height: 1.5;
}

p.news-title {
    font-size: 1.5rem;
}

h4.news-title {
    font-size: 1.5rem;
    font-weight: 500;
    line-height: 1.3;
}

.news-cta {
    display: flex;
    align-items: center;
    gap: 1rem;
    justify-content: space-between;
}

.news-link {
    text-decoration: underline;
}

/* Land Acknowledgement */
.land-acknowledgement { 
    display: flex;
    flex-direction: column;
    padding: 4.5rem;
    align-items: flex-start;
    gap: 2rem;
    align-self: stretch;
    border-radius: 2.5rem;
    background: url(/wp-content/uploads/2025/11/c3b591b6bdf8f686f2ef954894d7b11b3e163443.jpg) lightgray 50% / cover no-repeat;
    background-color: #375347;
    background-blend-mode: exclusion;
    position: relative;
    margin-bottom: 3rem;
}
.land-acknowledgement:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #375347;
    opacity: .85;
    border-radius: 2.5rem;
    z-index: 1;
}
.land-acknowledgement h2, .land-acknowledgement p {
    color: var(--color-text-light);
    z-index: 2;
}

@media (max-width: 768px) {
    .land-acknowledgement {
        padding: 3.5rem 1.875rem;
    }
    .land-acknowledgement h2 {
        word-break: break-word;
        font-size: 2rem;
    }
}

/* Footer */
.site-footer {
    background: var(--color-secondary);
    color: var(--color-text-light);
    padding: var(--spacing-2xl) 0 var(--spacing-lg);
    position: relative;
    z-index: 3;
}

.footer-info {
    display: flex;
    justify-content: space-between;
}

.footer-logos {
    display: flex;
    gap: var(--spacing-3xl);
}

.footer-logo img {
    height: 3.5rem;
}

img.living-wage {
    height: 2.5rem;
    width: auto;
    margin-top: 0.5rem;
}

.footer-contact h3 {
    color: var(--color-text-light);
    font-size: 2rem;
    font-weight: 500;
}

.footer-contact p {
    color: var(--color-text-light);
    margin: 0.5rem 0;
    font-size: 1.125rem;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    margin-top: 3rem;
    border-top: 1px solid var(--color-text-light);
    padding-top: 4rem;
}

.footer-socials ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    gap: var(--spacing-md);
}

.footer-socials img {
    height: 2rem;
}

p.copyright {
    margin: 0;
    font-size: 0.875rem;
    color: var(--color-text-light)
}

/* Responsive */
@media (max-width: 768px) {
    .menu-toggle {
        display: block;
    }

    .primary-menu {
        display: none;
    }

    .stack-mobile {
        flex-direction: column;
        gap: var(--spacing-lg)
    }

    .hide-mobile {
        display: none;
    }

    .hero-wrapper,
    .intro-grid,
    .expertise-grid,
    .impact-wrapper,
    .news-grid {
        grid-template-columns: 1fr;
    }

    .hero-title {
        font-size: calc(var(--font-size-h1) * 0.75);
    }

    .container {
        padding: 0 var(--container-padding-mobile);
    }

    .container.narrow {
        padding: 0 4rem;
    }

    .d-grid {
        grid-template-columns: 1fr;
    }

    .site-footer {
        border-radius: var(--border-radius-2xl) var(--border-radius-2xl) 0 0;
        padding: 5rem 1rem;
    }

    .footer-info {
        flex-direction: column;
        gap: var(--spacing-2xl);
    }

    .footer-logos {
        justify-content: center;
        flex-direction: column;
        gap: 2rem;
    }

    .footer-logo img {
        height: 3.75rem;
    }

    img.living-wage {
        height: auto;
        max-width: 13rem;
        margin-top: 0;
    }

    .footer-bottom {
        gap: var(--spacing-lg);
        align-items: center;
        text-align: center;
    }

    .footer-socials ul {
        justify-content: center;
    }

}

/* ============================================
   Inner Pages
   ============================================ */

article {
    padding: var(--spacing-2xl) 0;
    position: relative;
    z-index: 3;
    min-height: 100vh;
}

.page-hero-section {
    position: relative;
    height: 70vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-color: var(--color-background);
    padding: 10rem 0 5rem;
}

.page-hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 2;
}

.page-hero-section.no-featured-image {
    background-image: url('/wp-content/uploads/2025/11/880c38943b6cc891879225058063c74ddb68eed2-1.jpg');
    background-color: var(--color-background);
}

/* Contact Page */
.page-id-35 .page-hero-section.no-featured-image {
    background-image: url('/wp-content/uploads/2025/11/c3b591b6bdf8f686f2ef954894d7b11b3e163443.jpg');
}

.page-hero-section.no-featured-image .page-hero-overlay {
    background: var(--color-accent);
    opacity: 0.9;
}

/* Expertise: Community Planning + Policy Pages */
.page-id-37 .page-hero-section.no-featured-image,
.parent-pageid-37 .page-hero-section.no-featured-image {
    background-color: var(--color-secondary);
    background-blend-mode: multiply;
}
.page-id-37 .page-hero-section.no-featured-image .page-hero-overlay,
.parent-pageid-37 .page-hero-section.no-featured-image .page-hero-overlay {
    background: var(--color-secondary);
    opacity: 0.7;
}
.page-id-37 .page-hero-title,
.parent-pageid-37 .page-hero-title {
    max-width: 100%;
    display: flex;
    flex-direction: column;
}

/* Expertise: Development Consulting Pages */
.page-id-47 .page-hero-section.no-featured-image,
.parent-pageid-47 .page-hero-section.no-featured-image {
    background-image: url('/wp-content/uploads/2025/11/9da0f3d4570aaf46c7f566615c74d5e9406de306.jpg');
    background-color: #2E78B4;
    background-blend-mode: overlay;
}
.page-id-47 .page-hero-section.no-featured-image .page-hero-overlay,
.parent-pageid-47 .page-hero-section.no-featured-image .page-hero-overlay {
    background-color: #2E78B4;
    opacity: 0.6;
}
.page-id-47 .page-hero-title,
.parent-pageid-47 .page-hero-title {
    max-width: 100%;
    display: flex;
    flex-direction: column;
}
.page-id-47 .page-hero-title-primary,
.parent-pageid-47 .page-hero-title-primary {
    color: var(--color-accent);
}
.parent-pageid-47 .page-hero-section .squiggly-line {
    top: 55%;
}

.page-hero-container {
    position: relative;
    z-index: 4;
    max-width: var(--container-max-width);
    width: 100%;
    margin: 0 auto;
    padding: 0 var(--container-padding);
    text-align: center;
}

.page-hero-title {
    font-family: var(--font-family-primary);
    font-size: var(--font-size-h1);
    font-weight: var(--font-weight-bold);
    line-height: 1.3;
    letter-spacing: -0.163125rem;
    margin: 0 auto;
    max-width: 72rem;
}

.page-hero-title-primary {
    color: var(--color-primary);
}

.page-hero-title-secondary {
    color: var(--color-text-light);
}

/* Squiggly line positioning for page hero */
.page-hero-section .squiggly-line {
    position: absolute;
    z-index: 3;
}

/* Responsive */
@media (max-width: 1024px) {
    .page-hero-title {
        font-size: 3.75rem;
    }
}

@media (max-width: 768px) {
    .page-hero-section {
        padding: 8.75rem 1.5rem 2.5rem;
        min-height: 25rem;
    }
    .page-hero-container {
        padding: 0;
    }
}

/* ============================================
   Reusable Components
   ============================================ */

/* Image-Text Section */
.image-text-section {
    padding: var(--spacing-3xl) 0;
}

.image-text-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-md);
    align-items: center;
}

.image-text-section.image-right .image-text-grid {
    grid-template-columns: 1fr 1fr;
}

.image-text-section.image-right .image-text-image {
    order: 2;
}

.image-text-section.image-right .image-text-content {
    order: 1;
}

.image-text-image img {
    width: 100%;
    height: auto;
    border-radius: var(--border-radius-2xl);
}

.image-text-content h2 {
    margin-bottom: var(--spacing-lg);
}

.image-text-text {
    font-size: 2.875rem;
    line-height: 130%;
    letter-spacing: -0.08625rem;
    font-weight: var(--font-weight-semibold);
}

/* Card Section Grid */
.card-section {
    padding: var(--spacing-3xl) 0;
    background-color: var(--color-background-light);
}

.card-section-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-3xl);
    align-items: center;
}

.card-section-intro h2 {
    margin-bottom: var(--spacing-md);
}

.card-section-intro p {
    color: var(--color-text-secondary);
    line-height: 1.6;
}

/* Accordion Component */
.accordion-section {
    padding: var(--spacing-xl) 0;
}

.accordion-section-title {
    margin-bottom: var(--spacing-2xl);
    text-align: center;
}

.accordion {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
}

.accordion-item {
    border: 1px solid var(--color-primary);
    display: flex;
    flex-direction: column;
    padding: 3rem 4.625rem;
    border-radius: var(--border-radius-2xl);
    position: relative;
}

.accordion-item .btn-arrow {
    transform: rotate(90deg);
}
.accordion-item:hover .btn-arrow {
    transform: rotate(0deg);
}

.accordion-toggle {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: none;
    border: none;
    cursor: pointer;
    text-align: left;
    transition: color var(--transition-base);
}

.accordion-title {
    font-family: var(--font-primary);
    font-size: var(--font-size-h4);
    font-weight: var(--font-weight-semibold);
    color: var(--color-accent);
    max-width: 47rem;
}

.accordion-toggle.active .accordion-icon span.btn-arrow {
    transform: rotate(45deg);
}

/* Hide Expand button when accordion is active */
.accordion-toggle.active .accordion-icon.btn {
    display: none;
}

/* Hide Expand button when accordion is active with link (X close shown instead) */
.accordion-item.has-link .accordion-toggle.active .accordion-icon {
    opacity: 0;
    visibility: hidden;
}

.accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    gap: var(--spacing-4xl);
}

.accordion-content-inner {
    color: var(--color-text-secondary);
    line-height: 1.6;
    flex: 1;
}

.accordion-content-inner p {
    padding: var(--spacing-lg) 0 0 0;
}

.accordion-content-cta {
    display: flex;
    align-items: flex-end;
}

/* Close button (for items without links) - styled same as expand but closes */
.accordion-close-btn {
    cursor: pointer;
    background: none;;
}

/* X Close button (for items with links) - positioned top right */
.accordion-close {
    position: absolute;
    top: 5rem;
    right: 5rem;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    color: var(--color-accent);
    transition: opacity 0.2s ease;
    opacity: 0;
    visibility: hidden;
        display: none;
}

/* Show X close button only when accordion is expanded */
/* .accordion-toggle.active ~ .accordion-content .accordion-close {
    opacity: 1;
    visibility: visible;
} */

.accordion-close:hover {
    opacity: 0.7;
}

.accordion-close svg {
    width: 20px;
    height: 20px;
}

/* Client Stories Section */
.client-stories-section {
    padding: var(--spacing-3xl) 0;
}

.client-stories-section .section-heading {
    text-align: center;
    margin-bottom: var(--spacing-2xl);
}

.client-stories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(18.75rem, 1fr));
    gap: var(--spacing-xl);
}

.client-story-card {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
}

.story-image {
    border-radius: var(--border-radius-lg);
    overflow: hidden;
}

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

.story-content blockquote {
    font-style: italic;
    color: var(--color-text-secondary);
    margin: 0 0 var(--spacing-sm) 0;
    padding-left: var(--spacing-md);
    border-left: 3px solid var(--color-primary);
}

.client-name {
    font-weight: var(--font-weight-semibold);
    color: var(--color-text);
    margin-bottom: var(--spacing-xs);
}

.read-more {
    color: var(--color-primary);
    text-decoration: none;
    font-weight: var(--font-weight-medium);
    transition: color var(--transition-base);
}

.read-more:hover {
    color: var(--color-secondary);
}

/* Areas of Service Section */
.areas-service-section {
    padding: var(--spacing-3xl) 0;
    background-color: var(--color-background);
}

/* ============================================
   Client Logo Slider
   ============================================ */

.client-logo-slider {
    padding: var(--spacing-2xl) 0;
}

.client-logo-slide {
    padding: 0 var(--spacing-lg);
    display: flex !important;
    align-items: center;
    justify-content: center;
    outline: none;
}

.client-logo-slide img {
    max-height: 80px;
    width: auto;
    max-width: 100%;
    object-fit: contain;
    filter: grayscale(100%);
    opacity: 0.6;
    transition: all var(--transition-base);
}

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

/* Slick slider overrides for logo slider */
.client-logo-slider .slick-list {
    overflow: hidden;
}

.client-logo-slider .slick-track {
    display: flex;
    align-items: center;
}

/* ============================================
   Client Testimonials Slider
   ============================================ */

.client-testimonials-section {
    padding: var(--spacing-3xl) 0;
    background-color: var(--color-background-light);
}

.client-testimonials-section .section-heading {
    text-align: center;
    margin-bottom: var(--spacing-3xl);
}

.testimonials-slider-wrapper {
    position: relative;
    margin: 0 auto;
    padding: 0 6rem;
}

.testimonials-slider {
    outline: none;
}

.testimonial-slide {
    outline: none;
}
.testimonial-card {
    background: #B8C9D9;
    border-radius: 2.5rem;
    padding: 4rem 5rem;
    text-align: left;
    height: 30rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.testimonial-text {
    font-size: 1.75rem;
    line-height: 1.6;
    color: var(--color-accent);
    margin: 0 0 2rem 0;
    font-weight: var(--font-weight-normal);
    font-style: normal;
}

.testimonial-author {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.author-name {
    font-size: 1.25rem;
    font-weight: var(--font-weight-semibold);
    color: var(--color-accent);
    margin: 0;
}

.author-title {
    font-size: 1.125rem;
    font-weight: var(--font-weight-normal);
    color: var(--color-accent);
    margin: 0;
}

/* Navigation Arrows */
.testimonial-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 3rem;
    height: 3rem;
    background: var(--color-primary);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-base);
    z-index: 10;
    color: var(--color-text-light);
}

.testimonial-nav:hover {
    background: var(--color-primary);
    transform: translateY(-50%) scale(1.1);
}

.testimonial-nav-prev {
    left: 0;
}

.testimonial-nav-next {
    right: 0;
}

.testimonial-nav svg {
    width: 1.5rem;
    height: 1.5rem;
}

/* Slick Dots */
.testimonials-slider .slick-dots {
    display: flex !important;
    justify-content: center;
    gap: 0.5rem;
    padding: 0;
    margin: 2rem 0 0 0;
    bottom: -4.5rem;
    list-style: none;
}

.testimonials-slider .slick-dots li {
    margin: 0;
    padding: 0;
    width: auto;
    height: auto;
}

.testimonials-slider .slick-dots li button {
    width: 0.75rem;
    height: 0.75rem;
    padding: 0;
    border: none;
    border-radius: 50%;
    background: #D9D9D9;
    cursor: pointer;
    font-size: 0;
    transition: all var(--transition-base);
}

.testimonials-slider .slick-dots li button:before {
    display: none;
}

.testimonials-slider .slick-dots li.slick-active button {
    background: var(--color-accent);
}

/* Responsive */
@media (max-width: 768px) {
    .testimonials-slider-wrapper {
        padding: 0 4rem;
    }
    
    .testimonial-card {
        padding: 2rem 2.5rem;
    }
    
    .testimonial-text {
        font-size: 1rem;
    }
    
    .testimonial-nav {
        width: 2.5rem;
        height: 2.5rem;
    }
}

@media (max-width: 480px) {
    .testimonials-slider-wrapper {
        padding: 0 3rem;
    }
    
    .testimonial-card {
        padding: 1.5rem 2rem;
    }
    
    .testimonial-nav {
        width: 2rem;
        height: 2rem;
    }
    
    .testimonial-nav svg {
        width: 1rem;
        height: 1rem;
    }
}

/* Responsive Breakpoints */
@media (max-width: 1024px) {
    .image-text-grid,
    .card-section-grid {
        grid-template-columns: 1fr;
        gap: var(--spacing-2xl);
    }
    
    .image-text-section.image-right .image-text-image {
        order: 1;
    }
    
    .image-text-section.image-right .image-text-content {
        order: 2;
    }
}

@media (max-width: 768px) {
    .accordion-item {
        padding: 2.5rem;
    }
    .accordion-toggle {
        flex-direction: column;
        align-items: flex-start;
        gap: var(--spacing-lg);
    }
    .accordion-content {
        flex-direction: column;
        gap: var(--spacing-lg);
    }
    .client-stories-grid {
        grid-template-columns: 1fr;
    }
}

/* ============================================
   Projects Page - Filter, Grid, Pagination
   ============================================ */

.projects-page {
    padding-bottom: var(--spacing-3xl);
}

/* Filter Section */
.projects-filter-section {
    padding: var(--spacing-2xl) 0 0;
}

.projects-filter-form {
    display: flex;
    gap: var(--spacing-md);
    align-items: center;
    justify-content: space-between;
}

/* Search Input */
.filter-search {
    position: relative;
    min-width: 28rem;
    border: 2px solid var(--color-accent);
    border-radius: var(--border-radius-2xl);
    transition: border-color var(--transition-base);
    padding: 0.875rem 2rem;
    background-color: var(--color-background);
}

.filter-search:focus-within {
    border-color: var(--color-secondary);
}

.search-input {
    font-size: 1.125rem;
    border: 0;
    border-radius: 0;
    background: none;
    outline: none;
    width: 100%;
}

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

.search-icon {
    position: absolute;
    right: 1.5rem;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-accent);
    pointer-events: none;
}

/* Search Clear Button */
.search-clear {
    position: absolute;
    right: 4rem;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    padding: 0;
    border: none;
    background: var(--color-tertiary);
    border-radius: 50%;
    color: var(--color-accent);
    cursor: pointer;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.search-clear:hover {
    background: var(--color-accent);
    color: var(--color-text-light);
}

/* Filters */
.filters-wrap {
    display: flex;
    gap: var(--spacing-md);
    align-items: center;
    flex-wrap: wrap;
}

.filters {
    display: flex;
    gap: var(--spacing-sm);
    align-items: center;
    flex-wrap: wrap;
}

.filter-btn {
    position: relative;
    border: 2px solid var(--color-secondary);
    border-radius: var(--border-radius-2xl);
    padding: 0.875rem 1.75rem;
    font-size: 1rem;
    font-family: inherit;
    background: var(--color-background);
    color: var(--color-secondary);
    transition: 0.3s all;
    text-align: center;
    cursor: pointer;
}

.filter-btn:hover {
    background: var(--color-secondary);
    color: var(--color-text-light);
}

.filter-btn.active {
    background: var(--color-primary);
    border-color: var(--color-primary);
    color: var(--color-text-light);
}

/* Projects Grid */
.projects-grid-section {
    padding: var(--spacing-xl) 0 var(--spacing-3xl);
}

.projects-grid-section > .container {
    position: relative;
}

/* Projects Loading Overlay */
.projects-loading {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--color-cream);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    min-height: 200px;
}

.loading-spinner {
    width: 40px;
    height: 40px;
    border: 3px solid var(--color-tertiary);
    border-top-color: var(--color-primary);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--spacing-md);
    margin-bottom: var(--spacing-3xl);
    transition: opacity 0.3s ease;
}

/* Project Card */
.project-card {
    background: var(--color-background-light);
    border-radius: var(--border-radius-2xl);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease, opacity 0.4s ease;
    display: flex;
    flex-direction: column;
}

.project-card.is-hidden {
    opacity: 0;
    pointer-events: none;
    position: absolute;
    visibility: hidden;
}

.project-card-image {
    position: relative;
    overflow: hidden;
    height: 17rem;
    background: #E5E7EB;
}

.project-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-base);
}

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

.project-card-content {
    background: var(--color-background);
    padding: 2.5rem 2rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    flex: 1;
    border: 2px solid var(--color-accent);
    border-top: 0;
    border-radius: 0 0 2.5rem 2.5rem;
}

.project-card-title {
    font-size: 1.5rem;
    font-weight: var(--font-weight-medium);
    line-height: 1.3;
    margin: 0;
}

.project-card-title a {
    color: var(--color-accent);
    text-decoration: none;
    transition: color var(--transition-base);
}

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

.project-card-category {
    font-size: 0.9375rem;
    line-height: 1.5;
    margin: 0;
    flex: 1;
}

/* No Results */
.no-projects-found {
    text-align: center;
    padding: var(--spacing-3xl) 0;
}

.no-projects-found p {
    font-size: 1.125rem;
    color: var(--color-text-secondary);
}

/* Pagination */
.projects-pagination {
    display: flex;
    justify-content: flex-end;
    margin-top: var(--spacing-2xl);
}

.projects-pagination .page-numbers {
    display: flex;
    list-style: none;
    padding: 0;
    margin: 0;
    gap: 0.5rem;
    align-items: center;
}

.projects-pagination .page-numbers li {
    list-style: none;
}

.projects-pagination a.page-numbers,
.projects-pagination span.page-numbers {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 2.5rem;
    height: 2.5rem;
    padding: 0.5rem;
    border-radius: 0.375rem;
    font-weight: var(--font-weight-medium);
    text-decoration: none;
    color: var(--color-accent);
    transition: all var(--transition-base);
}

.projects-pagination a.page-numbers:hover {
    background: #e2ece6;
}

.projects-pagination span.current {
    background: var(--color-primary);
    color: var(--color-text-light);
}

.projects-pagination .prev,
.projects-pagination .next {
    display: flex;
    align-items: center;
    justify-content: center;
}

.projects-pagination .prev svg,
.projects-pagination .next svg {
    width: 1.25rem;
    height: 1.25rem;
}

/* Responsive Breakpoints */
@media (max-width: 1024px) {
    .projects-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .projects-filter-form {
        flex-direction: column;
        align-items: stretch;
    }
    
    .filter-search,
    .filter-dropdown {
        width: 100%;
    }
    
    .category-select,
    .type-select {
        width: 100%;
    }

    .filters {
        width: 100%;
    }

    .filter-btn {
        padding: 0.75rem 1.5rem;
        font-size: 0.9375rem;
        flex: 1;
    }
    
    .projects-grid {
        grid-template-columns: 1fr;
        gap: var(--spacing-lg);
    }
    
    .project-card-content {
        padding: 1.25rem;
    }
}

@media (max-width: 480px) {
    .projects-pagination a.page-numbers,
    .projects-pagination span.page-numbers {
        min-width: 2rem;
        height: 2rem;
        font-size: 0.875rem;
    }
}


/* ============================================
   Projects Carousel Component
   ============================================ */

.projects-carousel-section {
    padding: var(--spacing-3xl) 0;
    overflow: hidden; /* Clip the right overflow */
}

.projects-carousel-title {
    text-align: left;
    margin-bottom: var(--spacing-2xl);
}

.projects-carousel-wrapper {
    position: relative;
}

/* The container inside wrapper - left side aligns, right side overflows */
.projects-carousel-wrapper > .container {
    max-width: none;
    padding-right: 0;
    margin-right: 0;
}

.projects-carousel-slider {
    overflow: visible !important;
}

.projects-carousel-slider .slick-list {
    overflow: visible !important;
    padding: 0 !important;
}

.projects-carousel-slider .slick-track {
    display: flex;
    gap: 32px;
}

.projects-carousel-slide {
    outline: none;
    width: 520px !important; /* Fixed card width - shows ~2.5 cards on desktop */
    flex-shrink: 0;
}

.projects-carousel-card {
    background: #B8C9D9;
    border-radius: var(--border-radius-2xl);
    overflow: hidden;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.project-carousel-image {
    position: relative;
    overflow: hidden;
    height: 24rem; /* Taller image area */
    background: #E5E7EB;
}

.project-carousel-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-base);
}

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

.project-carousel-content {
    padding: 2rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    flex: 1;
}

.project-carousel-title {
    font-size: 1.25rem;
    font-weight: var(--font-weight-semibold);
    line-height: 1.3;
    color: var(--color-accent);
    margin: 0;
}

.project-carousel-category {
    font-size: 0.875rem;
    color: var(--color-accent);
    margin: 0 0 0.5rem 0;
    opacity: 0.8;
}

.project-carousel-link {
    margin-top: auto;
    align-self: flex-start;
}

/* Custom Progress Bar Navigation */
.projects-carousel-progress {
    margin-top: var(--spacing-2xl);
    display: flex;
    justify-content: center;
}
.progress-bar {
    width: 23.625rem;
    height: 0.625rem;
    background: #D9D9D9;
    border-radius: 3.125rem;
    overflow: hidden;
    position: relative;
    cursor: pointer;
    display: flex;
}

.progress-fill {
    height: 100%;
    background: var(--color-primary);
    border-radius: 2px;
    width: 0%;
    transition: width 0.3s ease;
    pointer-events: none;
}

/* Hide default Slick dots and arrows */
.projects-carousel-slider .slick-dots {
    display: none !important;
}

.projects-carousel-slider .slick-arrow {
    display: none !important;
}

/* Responsive */
@media (max-width: 1280px) {
    .projects-carousel-slide {
        width: 460px !important;
    }
}

@media (max-width: 1024px) {
    .projects-carousel-slider .slick-track {
        gap: 24px;
    }
    
    .projects-carousel-slide {
        width: 380px !important;
    }
}

@media (max-width: 768px) {
    .projects-carousel-slide {
        width: 300px !important;
    }
    
    .project-carousel-content {
        padding: 1.5rem;
    }
    
    .project-carousel-title {
        font-size: 1.125rem;
    }
}

/* ============================================
   Projects Inner Page
   ============================================ */

.project-header-img {
    width: 100%;
    aspect-ratio: 2 / 1;
}

.project-header {
    display: flex;
    gap: var(--spacing-2xl);
}

.project-sidebar {
    width: 35%;
    display: flex;
    flex-direction: column;
    gap: var(--spacing-lg);
}
.single-team .project-sidebar {
    width: 40%;
}

.project-sidebar img {
    width: 100%;
    object-fit: cover;
}
.single-team .project-sidebar img {
    aspect-ratio: 1 / 1;
}

.project-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: var(--spacing-lg);
}

.expertise-item {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
    margin-top: var(--spacing-lg);
}
.expertise-item svg {
    flex: 0 0 24px;
}

@media (max-width: 1024px) {
    .project-header {
        flex-direction: column;
    }
    
    .project-sidebar {
        width: 100% !important;
        flex-direction: row;
        flex-wrap: wrap;
        gap: var(--spacing-md);
    }
    
    .project-content {
        width: 100%;
    }
}

@media (max-width: 768px) {
    .design-dev-box {
        padding: 2.5rem
    }
     .design-dev-box h2 {
        font-size: 3rem;
     }
    
}

/* ============================================
   Gallery Slider (Case Study)
   ============================================ */

.gallery-slider-section {
    padding: var(--spacing-3xl) 0;
}

.gallery-slider-wrapper {
    position: relative;
    margin: 0 auto;
}

.gallery-slider {
    border-radius: var(--border-radius-2xl);
    overflow: hidden;
}

.gallery-slide {
    outline: none;
}

.gallery-image-wrapper {
    position: relative;
    width: 100%;
    height: 600px;
    overflow: hidden;
    background: #E5E7EB;
    border-radius: var(--border-radius-2xl);
}

.gallery-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Navigation Arrows */
.gallery-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 3.5rem;
    height: 3.5rem;
    background: var(--color-secondary);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-base);
    z-index: 10;
    color: var(--color-text-light);
}

.gallery-nav:hover {
    transform: translateY(-50%) scale(1.1);
}

.gallery-nav-prev {
    left: 2.5rem;
}

.gallery-nav-next {
    right: 2.5rem;
}

.gallery-nav svg {
    width: 1.75rem;
    height: 1.75rem;
}

/* Slick Dots for Gallery */
.gallery-slider .slick-dots {
    display: flex !important;
    justify-content: center;
    gap: 0.5rem;
    padding: 0;
    margin: 2rem 0 0 0;
    list-style: none;
}

.gallery-slider .slick-dots li {
    margin: 0;
    padding: 0;
    width: auto;
    height: auto;
}

.gallery-slider .slick-dots li button {
    width: 0.75rem;
    height: 0.75rem;
    padding: 0;
    border: none;
    border-radius: 50%;
    background: #D9D9D9;
    cursor: pointer;
    font-size: 0;
    transition: all var(--transition-base);
}

.gallery-slider .slick-dots li button:before {
    display: none;
}

.gallery-slider .slick-dots li.slick-active button {
    background: var(--color-accent);
    width: 2rem;
    border-radius: 0.375rem;
}

/* Responsive */
@media (max-width: 1024px) {
    .gallery-nav-prev {
        left: 1rem;
    }
    
    .gallery-nav-next {
        right: 1rem;
    }
    
    .gallery-image-wrapper {
        height: 500px;
    }
}

@media (max-width: 768px) {
    .gallery-image-wrapper {
        height: 400px;
    }
    
    .gallery-nav {
        width: 3rem;
        height: 3rem;
    }
    
    .gallery-nav svg {
        width: 1.5rem;
        height: 1.5rem;
    }
}

@media (max-width: 480px) {
    .gallery-image-wrapper {
        height: 300px;
    }
    
    .gallery-nav {
        width: 2.5rem;
        height: 2.5rem;
    }
    
    .gallery-nav svg {
        width: 1.25rem;
        height: 1.25rem;
    }
    
    .gallery-nav-prev {
        left: 0.5rem;
    }
    
    .gallery-nav-next {
        right: 0.5rem;
    }
}

/* ============================================
   Timeline - Horizontal Scroll
   ============================================ */

.timeline-section {
    padding: 0;
	z-index: 2;
    min-height: 100vh;
    display: flex;
    align-items: center;
}

.timeline-wrapper {
    position: relative;
    padding: 0 0 0 4rem;
    display: flex;
    flex-direction: column;
    width: 100%;
}

.timeline-scroll {
    display: flex;
    gap: var(--spacing-xl);
    overflow-x: auto;
    overflow-y: hidden;
    padding: var(--spacing-lg) 0;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE/Edge */
    padding-right: 3rem;
}

.timeline-scroll::-webkit-scrollbar {
    display: none; /* Chrome/Safari */
}

.timeline-item {
    flex: 0 0 auto;
    width: 20rem;
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
}
/* .timeline-item.layout-vertical {
    width: 40rem;
} */

.timeline-item.layout-vertical .timeline-image img {
    /* max-height: 25rem; */
    object-position: top;
}

.timeline-year {
    margin-bottom: var(--spacing-sm);
}

.timeline-year h3 {
    font-size: 2.5rem;
    font-weight: var(--font-weight-bold);
    color: var(--color-accent);
    margin: 0;
}

.timeline-content {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-xl);
    border-radius: var(--border-radius-2xl);
    height: 100%;
}

/* Horizontal Layout (Default) - Image on top, text below */
.timeline-item.layout-horizontal .timeline-content {
    flex-direction: column;
}

/* Vertical Layout - Image on left, text on right */
/* .timeline-item.layout-vertical .timeline-content {
    flex-direction: row;
    align-items: flex-start;
}

.timeline-item.layout-vertical .timeline-image {
    flex: 0 0 50%;
    max-width: 50%;
}

.timeline-item.layout-vertical .timeline-text {
    flex: 1;
} */

.timeline-image {
    border-radius: var(--border-radius-2xl);
    overflow: hidden;
    background: #E5E7EB;
}

.timeline-image img {
    width: 100%;
    height: 17rem;
    display: block;
    object-fit: cover;
}

.timeline-text {
    font-size: 0.9375rem;
    line-height: 1.6;
    color: var(--color-text);
}

.timeline-text h4 {
    font-size: 1.125rem;
    font-weight: var(--font-weight-semibold);
    margin: 0 0 0.5rem 0;
    color: var(--color-accent);
}

.timeline-text p {
    margin: 0 0 0.75rem 0;
    font-size: var(--font-size-base);
}

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

/* Custom Scrollbar */
.timeline-scrollbar {
    border-radius: 3.125rem;
    background: #D4D4D4;
    display: flex;
    width: 23.625rem;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    gap: 0.625rem;
    align-self: center;
    position: relative;
    cursor: pointer;
}
.timeline-scrollbar-thumb {
    border-radius: 1.25rem;
    background: var(--color-primary);
    min-width: 2.5rem;
    height: 0.625rem;
    transition: width 0.15s ease, background 0.2s ease;
    cursor: grab;
}
.timeline-scrollbar-thumb:hover {
    background: var(--color-primary-dark, var(--color-primary));
}
.timeline-scrollbar-thumb:active {
    cursor: grabbing;
}

/* Responsive */
@media (max-width: 1024px) {
    .timeline-wrapper {
        padding: 0 3rem;
    }
    
    .timeline-item {
        width: 400px;
    }
}

@media (max-width: 768px) {
    .timeline-wrapper {
        padding: 0 2.5rem;
    }
    
    .timeline-item {
        width: 350px;
    }
    
    .timeline-year h3 {
        font-size: 2rem;
    }
    
    .timeline-nav {
        width: 2.5rem;
        height: 2.5rem;
    }
    
    .timeline-nav svg {
        width: 1.25rem;
        height: 1.25rem;
    }
	
	.timeline-image img {
		max-height: 20rem;
	}
}

@media (max-width: 480px) {
    .timeline-wrapper {
        padding: 0 2rem;
    }
    
    .timeline-item {
        width: 280px;
    }
    
    .timeline-content {
        padding: var(--spacing-md);
    }
    
    /* .timeline-item.layout-vertical .timeline-content {
        flex-direction: column;
    }
    
    .timeline-item.layout-vertical .timeline-image {
        flex: 0 0 auto;
        max-width: 100%;
    } */
    
    .timeline-year h3 {
        font-size: 1.75rem;
    }
}

/* ============================================
   Values Section - Multi-Column List
   ============================================ */

.values-section {
    padding: var(--spacing-3xl) 0;
    background-color: var(--color-background);
}

.values-heading {
    margin-bottom: var(--spacing-lg);
}

.values-content {
    border-radius: 0 0 var(--border-radius-2xl) var(--border-radius-2xl);
    padding: var(--spacing-3xl);
    border: 2px solid var(--color-accent);
    border-top: 0;
}

.values-list {
    column-count: 2;
    column-gap: var(--spacing-3xl);
    list-style: none;
    padding: 0;
    margin: 0;
    position: relative;
}

.value-item:before {
    content: "";
    width: 2px;
    background: var(--color-accent);
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
}

.value-item {
    display: flex;
    align-items: flex-start;
    gap: var(--spacing-md);
    margin-bottom: var(--spacing-lg);
    break-inside: avoid;
    page-break-inside: avoid; 
}

.value-item svg {
    flex-shrink: 0;
    margin-top: 0.5rem;
}

.value-item span {
    font-size: 1.25rem;
    line-height: 1.6;
    color: var(--color-text);
}

/* Responsive */
@media (max-width: 768px) {
    .values-list {
        column-count: 1;
    }
    .values-content {
        padding: var(--spacing-xl);
    }
    .value-item:before {
        display: none;
    }
}

/* FORM */
.gform_wrapper input[type="text"],
.gform_wrapper input[type="email"],
.gform_wrapper input[type="tel"],
.gform_wrapper textarea,
.gform_wrapper select {
    width: 100%;
    padding: 0.875rem 1rem !important;
    border-radius: var(--border-radius-md);
    border: 0;
    font-size: 1rem;
}
.gform_wrapper input[type="text"]::placeholder,
.gform_wrapper input[type="email"]::placeholder,
.gform_wrapper input[type="tel"]::placeholder,
.gform_wrapper textarea::placeholder {
    color: var(--color-accent);
}
.gform_wrapper.gravity-theme .gform_footer button {
    background: none;
}

/* ============================================
   News Single Page
   ============================================ */

.single-post .content blockquote p {
    font-size: 2.875rem;
    line-height: 130%;
    letter-spacing: -0.08625rem;
    padding: 0 4rem;
}

/* ============================================
   Filter Slideout Panel
   ============================================ */

/* Overlay */
.filter-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(1, 59, 68, 0.5);
    opacity: 0;
    visibility: hidden;
    z-index: 1100;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.filter-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* Slideout Panel */
.filter-slideout {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    width: 100%;
    max-width: 480px;
    background: var(--color-tertiary);
    color: var(--color-accent);
    z-index: 1200;
    transform: translateX(-100%);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 0 24px 24px 0;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
}

.filter-slideout.active {
    transform: translateX(0);
}

.filter-form {
    display: flex;
    flex-direction: column;
    height: 100%;
    padding: 74px 42px;
    gap: 48px;
}

/* Filter Header */
.filter-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.filter-header-title {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-family-heading);
    font-size: 20px;
    font-weight: 500;
    line-height: 32px;
    color: var(--color-text-light);
}

.filter-header-title svg line {
    stroke: var(--color-text-light);
}

.filter-close {
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-text-light);
}

.filter-close:hover {
    opacity: 0.7;
}

/* Filter Section */
.filter-section {
    display: flex;
    flex-direction: column;
    gap: 23px;
}

.filter-section-title {
    font-family: var(--font-family-heading);
    font-size: 40px;
    font-weight: 500;
    line-height: 1.2;
    letter-spacing: -1.2px;
    color: var(--color-text-light);
    margin: 0;
}

/* Filter Options */
.filter-options {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.filter-option {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    color: var(--color-text-light);
}

.filter-option input {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.filter-checkbox {
    width: 24px;
    height: 24px;
    flex-shrink: 0;
    color: var(--color-text-light);
}

.filter-checkbox .checkbox-checked {
    display: none;
}

.filter-checkbox .checkbox-unchecked {
    display: block;
}

.filter-option input:checked + .filter-checkbox .checkbox-checked {
    display: block;
}

.filter-option input:checked + .filter-checkbox .checkbox-unchecked {
    display: none;
}

.filter-label {
    font-family: var(--font-family-heading);
    font-size: 1rem;
    font-weight: 500;
    line-height: 1.3;
    color: var(--color-text-light);
}

/* Filter Actions */
.filter-actions {
    display: flex;
    align-items: flex-end;
    gap: 14px;
    margin-top: auto;
    padding-bottom: 74px;
}

.filter-actions button {
    background: none;
}

/* Filter Toggle Button */
.news-filter-section {
    padding-bottom: 2rem;
}

.news-filter-section .container {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.filter-toggle-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    border: 1px solid var(--color-accent);
    color: var(--color-accent);
    font-size: 1rem;
    font-weight: 500;
    padding: .75rem 1.5rem;
    border-radius: 100px;
    cursor: pointer;
    transition: background 0.3s ease;
    background: var(--color-background);
}

.filter-toggle-btn:hover {
    opacity: 0.85;
}

.filter-count {
    background: var(--color-secondary);
    color: var(--color-cream);
    width: 22px;
    height: 22px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    color: var(--color-text-light);
}

/* Active Filters Tags */
.active-filters {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.active-filter-tag {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--color-secondary);
    color: var(--color-cream);
    padding: .75rem 1.5rem;
    border-radius: 100px;
    font-size: 1rem;
    color: var(--color-text-light);
}

.remove-filter {
    color: var(--color-text-light);
    font-size: 1.25rem;
    line-height: 1;
    text-decoration: none;
    opacity: 0.7;
    transition: opacity 0.2s ease;
}

.remove-filter:hover {
    opacity: 1;
}

/* Clear All Link - News Filter Section */
.clear-all-link {
    color: var(--color-accent);
    font-family: var(--font-family-heading);
    font-size: 1rem;
    font-weight: 500;
    text-decoration: underline;
    text-underline-offset: 3px;
    transition: opacity 0.2s ease;
}

.clear-all-link:hover {
    opacity: 0.7;
}

/* Clear All Button - Slideout Panel */
.clear-all-btn {
    color: var(--color-accent);
    font-family: var(--font-family-heading);
    font-size: 1rem;
    font-weight: 500;
    text-decoration: underline;
    text-underline-offset: 3px;
    transition: opacity 0.2s ease;
    padding: 0.75rem 0;
}

.clear-all-btn:hover {
    opacity: 0.7;
}

.clear-all-btn.is-hidden {
    display: none;
}

/* Responsive */
@media (max-width: 768px) {
    .filter-slideout {
        max-width: 100%;
        border-radius: 0;
    }

    .filter-form {
        padding: 40px 24px;
        gap: 32px;
    }

    .filter-section-title {
        font-size: 28px;
    }

    .filter-actions {
        padding-bottom: 40px;
    }

    .btn-cream {
        padding: 20px 30px;
        font-size: 18px;
        line-height: 1.4;
    }
}

/* ===================================
   Desktop Search Slideout
   =================================== */
.nav-search-slideout {
    position: absolute;
    top: 50%;
    left: 60px;
    transform: translateY(-50%) scaleX(0);
    transform-origin: left center;
    visibility: hidden;
    pointer-events: none;
    transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1), visibility 0.25s ease;
    z-index: 100;
}

.nav-search-slideout.is-open {
    visibility: visible;
    pointer-events: auto;
    transform: translateY(-50%) scaleX(1);
}

.nav-search-form {
    display: flex;
    align-items: center;
    border-radius: 50px;
    padding: 6px 8px 6px 20px;
    gap: 8px;
    background: none;
    border: 1px solid var(--color-text-light);
}

.nav-search-input {
    border: none;
    background: transparent;
    font-size: 1rem;
    color: var(--color-text-light);
    width: 18rem;
    outline: none;
}

.nav-search-input::placeholder {
    color: var(--color-text-light)
}

.nav-search-submit {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background-color: var(--color-primary);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    transition: background-color 0.2s ease;
    flex-shrink: 0;
}

.nav-search-submit svg {
    width: 26px;
    height: 26px;
}

/* ===================================
   Mobile Drawer Search Form
   =================================== */
.nav-drawer-search-form {
    display: flex;
    align-items: center;
    background-color: transparent;
    border: 1px solid var(--color-text-light);
    border-radius: 5px;
    padding: var(--spacing-sm) var(--spacing-lg);
    gap: 10px;
    width: 11rem;
    margin-top: 10px;
    transition: width 0.3s ease;
}

.nav-drawer-search-form:focus-within {
    width: 16rem;
}

.nav-drawer-search-input {
    border: none;
    background: transparent;
    font-size: 1rem;
    color: var(--color-text-light);
    flex: 1;
    min-width: 0;
    outline: none;
}

.nav-drawer-search-input::placeholder {
    color: var(--color-text-light)
}

.nav-drawer-search-submit {
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: transparent;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    transition: opacity 0.2s ease;
    flex-shrink: 0;
}

.nav-drawer-search-submit:hover {
    opacity: 0.9;
}

/* ===================================
   Search Results Page
   =================================== */
.search-results-page .page-hero {
    background-color: var(--color-primary);
    padding: 120px 0 60px;
}

.search-results-page .page-title {
    color: var(--color-text-light);
    font-family: var(--font-primary);
    font-size: clamp(32px, 5vw, 48px);
    font-weight: 400;
    margin: 0;
}

.search-results-page .page-title span {
    color: var(--color-secondary);
    font-style: italic;
}

.search-results-section {
    padding: 60px 0 100px;
    background-color: var(--color-cream);
}

/* Search Again Form */
.search-again-form {
    max-width: 600px;
    margin: 0 auto 50px;
}

.search-again-form .search-form {
    display: flex;
    align-items: center;
    background-color: var(--color-text-light);
    border-radius: 50px;
    padding: 8px 10px 8px 24px;
    gap: 10px;
    border: 2px solid var(--color-accent);
}

.search-again-form .search-input {
    border: none;
    background: transparent;
    font-size: 18px;
    color: var(--color-accent);
    flex: 1;
    min-width: 0;
    outline: none;
    padding: 10px 0;
}

.search-again-form .search-input::placeholder {
    color: rgba(1, 59, 68, 0.5);
}

.search-again-form .search-submit {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    background-color: var(--color-secondary);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    transition: background-color 0.2s ease;
    flex-shrink: 0;
    color: var(--color-text-light);
}

.search-again-form .search-submit:hover {
    background-color: var(--color-secondary);
}

/* Results Count */
.results-count {
    font-size: 1rem;
    margin-bottom: 2.5rem;
}

/* Search Results Grid */
.search-results-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
}

.search-result-item {
    background-color: var(--color-text-light);
    border-radius: 12px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.search-result-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.12);
}

.result-thumbnail {
    display: block;
    aspect-ratio: 16/10;
    overflow: hidden;
}

.result-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.search-result-item:hover .result-thumbnail img {
    transform: scale(1.05);
}

.result-content {
    padding: 24px;
}

.result-type {
    display: inline-block;
    font-family: var(--font-secondary);
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--color-secondary);
    margin-bottom: 10px;
}

.result-title {
    font-family: var(--font-primary);
    font-size: 22px;
    font-weight: 400;
    line-height: 1.3;
    margin: 0 0 12px;
}

.result-title a {
    color: var(--color-primary);
    text-decoration: none;
    transition: color 0.2s ease;
}

.result-title a:hover {
    color: var(--color-secondary);
}

.result-excerpt {
    font-family: var(--font-secondary);
    font-size: 15px;
    line-height: 1.6;
    color: rgba(1, 59, 68, 0.7);
    margin: 0 0 16px;
}

.result-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-family: var(--font-secondary);
    font-size: 14px;
    font-weight: 600;
    color: var(--color-primary);
    text-decoration: none;
    transition: gap 0.2s ease, color 0.2s ease;
}

.result-link:hover {
    gap: 10px;
    color: var(--color-secondary);
}

/* No Results */
.no-results {
    text-align: center;
    padding: 60px 20px;
    max-width: 500px;
    margin: 0 auto;
}

.no-results h2 {
    font-family: var(--font-primary);
    font-size: 32px;
    font-weight: 400;
    color: var(--color-primary);
    margin: 0 0 16px;
}

.no-results p {
    font-family: var(--font-secondary);
    font-size: 16px;
    line-height: 1.6;
    color: rgba(1, 59, 68, 0.7);
    margin: 0 0 30px;
}

/* Search Results Pagination */
.search-results-section .nav-links {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin-top: 60px;
}

.search-results-section .page-numbers {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    height: 44px;
    padding: 0 12px;
    font-family: var(--font-secondary);
    font-size: 16px;
    color: var(--color-primary);
    background-color: var(--color-text-light);
    border-radius: 8px;
    text-decoration: none;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.search-results-section .page-numbers:hover {
    background-color: var(--color-primary);
    color: var(--color-text-light);
}

.search-results-section .page-numbers.current {
    background-color: var(--color-primary);
    color: var(--color-text-light);
}

.search-results-section .page-numbers.prev,
.search-results-section .page-numbers.next {
    background-color: transparent;
}

.search-results-section .page-numbers.prev:hover,
.search-results-section .page-numbers.next:hover {
    background-color: var(--color-primary);
}

.search-results-section .page-numbers.prev svg,
.search-results-section .page-numbers.next svg {
    stroke: var(--color-primary);
    transition: stroke 0.2s ease;
}

.search-results-section .page-numbers.prev:hover svg,
.search-results-section .page-numbers.next:hover svg {
    stroke: var(--color-text-light);
}

/* Search Results Mobile */
@media (max-width: 768px) {
    .search-results-page .page-hero {
        padding: 100px 0 40px;
    }
    
    .search-results-section {
        padding: 40px 0 80px;
    }
    
    .search-again-form {
        margin-bottom: 40px;
    }
    
    .search-again-form .search-input {
        font-size: 16px;
    }
    
    .search-results-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .result-content {
        padding: 20px;
    }
    
    .result-title {
        font-size: 20px;
    }
}