@media (max-width: 767px) {
    body {
        padding-top: 40px;
        /* Smaller padding for mobile */
    }
}

/* Header base styles - transparent initially */
#main-header {
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    transition: all 0.3s ease;
}

/* Scrolled state - dark semi-transparent background like mobile menu */
#main-header.header-scrolled {
    background-color: rgba(0, 0, 0, 0.9);
    /* Same as mobile: #000000CC = rgba(0,0,0,0.8) */
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
}

/* Mobile menu z-index */
#mobile-menu {
    z-index: 50;
    /* Higher than header */
}

/* Ensure content doesn't jump */
.main-content {
    position: relative;
    z-index: 1;
}

/* Smooth transitions */
#main-header * {
    transition: color 0.3s ease, opacity 0.3s ease;
}

/* Text visibility - assuming your initial design has white text */
#main-header {
    color: white;
}

#main-header .logo,
#main-header .menu-item a,
#main-header button {
    color: white;
}

/* Keep text white when scrolled */
#main-header.header-scrolled .logo,
#main-header.header-scrolled .menu-item a,
#main-header.header-scrolled button {
    color: white;
}

ul.wp-block-list {
    list-style-type: disc;
    margin-left: 16px;
    margin-bottom: 16px;
}

main.single-project,
main.single-product {
    h3 {
        margin-bottom: 32px;
    }

    h4 {
        font-size: 20px;
        margin-bottom: 24px;
        font-weight: 600;
    }

    p {
        margin-bottom: 16px;
    }

    @media (max-width: 1023px) {
        padding: 0 24px;
    }

    @media (min-width: 1024px) {
        padding: 0 34px;
    }

}

.text-panel {
    transition: max-height 0.4s ease-in-out, opacity 0.3s ease-in-out;
}

.text-panel.collapsed {
    max-height: 144px;
    overflow: hidden;
}

.text-panel.expanded {

    overflow: visible;
}

.rotate-icon {
    transition: transform 0.3s ease-in-out;
}

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

/* Fade effect for collapsed text */
.text-panel.collapsed::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 40px;
    background: linear-gradient(transparent, #000);
    pointer-events: none;
}

.text-container {
    position: relative;
}

.stats-container {
    opacity: 0;
    transform: translateY(50px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.stats-container.animate {
    opacity: 1;
    transform: translateY(0);
}

.counter-number {
    transition: all 0.3s ease;
}

.tab-filter {
    cursor: pointer;
    border-bottom: 2px solid transparent;
    padding-bottom: 8px;
    transition: all 0.3s ease;
}

.tab-filter.active {
    border-bottom-color: white;
}

#mobile-menu {
    /* Ensure mobile menu takes full height */
    height: 100vh;
}

#mobile-menu .overflow-y-auto {
    /* Custom scrollbar styling (optional) */
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, 0.3) transparent;
}

#mobile-menu .overflow-y-auto::-webkit-scrollbar {
    width: 6px;
}

#mobile-menu .overflow-y-auto::-webkit-scrollbar-track {
    background: transparent;
}

#mobile-menu .overflow-y-auto::-webkit-scrollbar-thumb {
    background-color: rgba(255, 255, 255, 0.3);
    border-radius: 3px;
}

#mobile-menu .overflow-y-auto::-webkit-scrollbar-thumb:hover {
    background-color: rgba(255, 255, 255, 0.5);
}


.navigation.pagination .nav-links {
    display: flex;
    gap: 16px;
    align-items: center;
}

.navigation.pagination .nav-links .current {
    color: #fff;
    font-weight: 600;
}