/* wp-news-slider.css */
#wp-news-slider-hero {
    position: relative;
    height: calc(100vh - 156px);
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: rgba(var(--color-white), 1);
    top: 0;
    left: 50%;
    width: 100vw;
    transform: translateX(-50vw);
}

.wp-news-slider-slides {
    display: flex;
    height: 100%;
    transition: transform 0.5s ease-in-out;
    width: 100%; /* remove 100vw here */
}

.wp-news-slider-slide {
    width: 102%; /* each slide takes full container width */
    right: 2px;
    flex-shrink: 0;
    height: 100%;
    display: flex;
    position: relative;
}

.wp-news-slider-slide-image img {
    width: 102%;
    height: 105%;
    object-position: center;
    display: block;
}


.wp-news-slider-slides[data-slide-count] {
    width: calc(var(--slide-count, 1) * 100vw);
}

.wp-news-slider-slide {
    position: relative;
    width: 100vw;
    height: 100%;
    flex-shrink: 0;
    display: flex;
    box-sizing: border-box;
    z-index: 2;
}

.wp-news-slider-text {
    max-width: 1800px;
    width: 100%;
    margin: 0 auto;
    padding: 0 4rem;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
}

.wp-news-slider-text-ct {
    display: inline-block;      /* shrink to text size */
    position: relative;
    text-align: left;
    white-space: normal;
    word-break: break-word;
    padding: 0.5rem 1rem;
    z-index: 1;
    color: #fff;                /* text color */
}


.wp-news-slider-padding {
    padding-top: 2rem;
}

.wp-news-slider-cta {
    position: relative;
    z-index: 3;
    color: rgba(var(--color-primary), 1); /* was abyssal, now dark blue */

    /* Glass effect with gradient using main blue variables */
    background: linear-gradient(
            135deg,
            rgba(var(--color-primary), 0.25),
            rgba(var(--color-third), 0.2),
            rgba(var(--color-white), 0.15)
    );

    border: 1px solid rgba(var(--color-third), 0.4);
    border-radius: 30px;

    font-size: 1rem;
    padding: 1rem 2.5rem;
    cursor: pointer;
    font-family: Arimo;
    font-weight: 700;
    transition: background 0.3s ease, box-shadow 0.3s ease, transform 0.2s ease;
}

.wp-news-slider-cta:hover {
    background: linear-gradient(
            135deg,
            rgba(var(--color-primary), 0.35),
            rgba(var(--color-third), 0.3),
            rgba(var(--color-white), 0.25)
    );
    box-shadow: 0 8px 20px rgba(var(--color-black), 0.15);
    transform: scale(1.05);
}

.wp-news-slider-slide-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    overflow: hidden;
}

.wp-news-slider-slide-thumbnail {
    width: 100%;
    display: inline-block;
    height: 100%;
    object-fit: cover;
}

.wp-news-slider-slide-image.fallback {
    background: rgba(var(--color-shadow), 1);
    height: 100%;
}

.wp-news-slider-wave-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(var(--color-black), 0.3);
    z-index: 2;
    overflow: hidden;
}

.wp-news-slider-wave-overlay::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100px;
    height: 100px;
    background: radial-gradient(circle, rgba(var(--color-third), 0.4) 10%, transparent 70%);
    border-radius: 50%;
    transform: translate(-50%, -50%) scale(0);
    will-change: transform, opacity;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    transform-origin: center;
}

@keyframes wp-news-slider-wave-pulse {
    0% {
        transform: translate(-50%, -50%) scale(0);
        opacity: 1;
    }
    100% {
        transform: translate(-50%, -50%) scale(20);
        opacity: 0;
    }
}

.wp-news-slider-slide h2 {
    font-size: 55px;
    margin-bottom: 1rem;
    position: relative;
    z-index: 3;
    font-weight: 500;
    font-family: "Fira Sans";
    width: 700px;

    color: rgba(var(--color-third), 0.95); /* was mystic */

    transition: color 0.3s ease, text-shadow 0.3s ease;
}

.wp-news-slider-slide p {
    font-size: 1.5rem;
    max-width: 600px;
    margin-bottom: 2rem;
    line-height: 1.4;
    position: relative;
    z-index: 3;
    color: rgba(var(--color-third), 1); /* was tiffany */
}

/* Slider controls */
.wp-news-slider-controls {
    position: absolute;
    bottom: 20px;
    left: 50%;
    display: flex;
    gap: 10px;
    transform: translateX(-50%);
    z-index: 5;
}

.wp-news-slider-control-btn {
    width: 15px;
    height: 15px;
    border-radius: 50%;
    background: #ddd;
    border: none;
    cursor: pointer;
}

.wp-news-slider-control-btn.active,
.wp-news-slider-control-btn:hover,
.wp-news-slider-control-btn:focus {
    background: rgba(var(--color-secondary), 1); /* was viridian */
    outline: none;
}


/* wp-team-section.css */
/* Team Grid Section - ORBIT DESIGN */
/* Section background + title */
.team-section {
    padding: 40px 2rem 4rem 2rem;
    text-align: center;
    color: rgba(var(--color-white), 1);
    position: relative;
}

.team-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100vw;
    height: 100%;
    background-color: rgba(var(--color-bright-cyan), 0.01);
    border: 1px solid rgba(var(--color-white), 0.2);
    border-radius: 0;
    z-index: -1;
    pointer-events: none;
}

.team-section h2 {
    font-size: 2rem;
    margin-bottom: 40px;
    font-weight: bold;
    font-family: "Fira Sans";
    color: rgba(var(--color-secondary), 0.9);
    text-shadow: 0 1px 2px rgba(var(--color-black), 0.3),
    0 0 3px rgba(var(--color-secondary), 0.25);
    transition: color 0.3s ease, text-shadow 0.3s ease;
}

.team-title {
    border-bottom: 1px solid rgba(var(--color-primary), 0.2);
}

/* Orbit Container */
.team-orbit-container {
    position: relative;
    width: 100%;
    max-width: 1200px;
    height: 600px;
    margin: 0 auto;
}

.team-center {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 10;
    max-width: 400px;
}

.team-orbiter {
    position: absolute;
    width: 240px;
    text-align: center;
    transition: transform 0.3s ease;
}

.team-orbiter:hover {
    transform: scale(1.05);
    z-index: 20;
}

/* Orbit positions for desktop */
.team-orbiter:nth-child(1) { top: 10%; left: 15%; }
.team-orbiter:nth-child(2) { top: 10%; right: 15%; }
.team-orbiter:nth-child(3) { top: 35%; left: 5%; }
.team-orbiter:nth-child(4) { top: 35%; right: 5%; }
.team-orbiter:nth-child(5) { bottom: 20%; left: 15%; }
.team-orbiter:nth-child(6) { bottom: 20%; right: 15%; }

/* Photo styling */
.team-photo {
    position: relative;
    display: inline-block;
    width: 180px;
    height: 180px;
    border-radius: 50%;
    margin-bottom: 1rem;
}

.team-center .team-photo {
    width: 220px;
    height: 220px;
}

.team-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    background: rgba(var(--color-secondary), 0.15);
    border: 2px solid rgba(var(--color-secondary), 0.4);
    box-shadow: 0 0 15px rgba(var(--color-secondary), 0.3);
}

.team-photo:hover img {
    transform: scale(1.05);
    box-shadow: 0 8px 20px rgba(var(--color-black), 0.15);
}

/* Fallback for missing avatars */
.team-photo .avatar-fallback {
    width: 100%;
    height: 100%;
    background: rgba(var(--color-secondary), 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: rgba(var(--color-secondary), 0.7);
    font-size: 0.9rem;
}

/* Text */
.team-name {
    font-size: 1.3rem;
    color: rgba(var(--color-primary), 1);
    font-weight: 300;
    font-family: "Fira Sans";
    margin-top: 1rem;
    margin-bottom: 1rem;
}

.team-center .team-name {
    font-size: 1.4rem;
    color: rgba(var(--color-primary), 1);
    font-weight: 300;
    font-family: "Fira Sans";
    margin-top: 1rem;
    margin-bottom: 1rem;
}

.team-job {
    font-size: 0.95rem;
    opacity: 0.85;
    margin-bottom: 1rem;
    color: rgba(var(--color-secondary), 0.85);
}

.team-center .team-job {
    font-size: 0.95rem;
    opacity: 0.85;
}

.team-desc {
    font-size: 0.95rem;
    opacity: 0.85;
    max-width: 280px;
    margin: 0 auto 1rem auto;
    line-height: 1.5;
}

.team-center .team-desc {
    max-width: 400px;
    font-size: 1rem;
}

/* Social icons */
.team-socials {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 1rem;
}

.team-socials a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    color: rgba(var(--color-white), 1);
    font-size: 1rem;
    background: rgba(var(--color-secondary), 0.25);
    border: 1px solid rgba(var(--color-secondary), 0.7);
    text-shadow: 0 1px 2px rgba(var(--color-black), 0.4);
    transition: background 0.3s ease, color 0.3s ease, transform 0.2s ease, border 0.3s ease;
    text-decoration: none;
}

.team-socials a:hover {
    background: rgba(var(--color-primary), 0.4);
    transform: scale(1.1);
    color: rgba(var(--color-white), 1);
    box-shadow: 0 4px 12px rgba(var(--color-black), 0.15);
    border: 1px solid rgba(var(--color-secondary), 0.9);
}

.team-socials img {
    width: 20px;
    height: 20px;
}

/* Button under grid */
.team-button {
    margin-top: 3rem;
}

.btn-more {
    display: inline-block;
    padding: 0.8rem 1.8rem;
    border-radius: 25px;
    font-weight: 700;
    text-transform: uppercase;
    font-family: Arimo;
    cursor: pointer;
    transition: all 0.3s ease;
    background: rgba(var(--color-secondary), 0.25);
    border: 1px solid rgba(var(--color-secondary), 0.4);
    color: rgba(var(--color-white), 1);
    text-shadow: 0 1px 2px rgba(var(--color-black), 0.4);
    text-decoration: none;
}

.btn-more:hover {
    background: rgba(var(--color-secondary), 0.4);
    box-shadow: 0 4px 12px rgba(var(--color-secondary), 0.2);
    transform: scale(1.05);
    color: rgba(var(--color-white), 1);
}

/* Tablet Styles (992px and below) */
@media (max-width: 1024px) {
    .team-orbit-container {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
        height: auto;
        padding: 2rem;
    }

    .team-center {
        position: relative;
        top: auto;
        left: auto;
        transform: none;
        grid-column: 1 / -1;
        margin-bottom: 2rem;
        max-width: 100%;
    }

    .team-orbiter {
        position: relative;
        top: auto !important;
        left: auto !important;
        right: auto !important;
        bottom: auto !important;
        width: 100%;
        margin: 0 auto;
    }

    .team-photo {
        width: 170px;
        height: 170px;
    }

    .team-center .team-photo {
        width: 180px;
        height: 180px;
    }

    .team-name {
        font-size: 1.1rem;
    }

    .team-center .team-name {
        font-size: 1.3rem;
    }

    .team-desc {
        font-size: 0.9rem;
        max-width: 240px;
    }
}

/* Mobile Styles (768px and below) */
@media (max-width: 768px) {
    .team-orbit-container {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        padding: 1rem;
    }

    .team-section {
        padding: 20px 1rem 2rem 1rem;
    }

    .team-section h2 {
        font-size: 1.5rem;
        margin-bottom: 20px;
    }

    .team-photo {
        width: 170px;
        height: 170px;
    }

    .team-center .team-photo {
        width: 180px;
        height: 180px;
    }

    .team-name {
        font-size: 1rem;
    }

    .team-center .team-name {
        font-size: 1.2rem;
    }

    .team-job {
        font-size: 0.9rem;
    }

    .team-desc {
        font-size: 0.85rem;
        max-width: 100%;
        padding: 0 1rem;
    }

    .team-socials a {
        width: 32px;
        height: 32px;
        font-size: 0.9rem;
    }

    .team-socials img {
        width: 18px;
        height: 18px;
    }

    .team-button {
        margin-top: 2rem;
    }
    
}

/* Small Mobile Styles (480px and below) */
@media (max-width: 480px) {
    .team-orbit-container {
        gap: 1rem;
        padding: 0.5rem;
    }

    .team-photo {
        width: 170px;
        height: 170px;
    }

    .team-center .team-photo {
        width: 180px;
        height: 180px;
    }

    .team-desc {
        font-size: 0.8rem;
        padding: 0;
    }

    .team-socials {
        gap: 0.75rem;
    }

    .team-socials a {
        width: 28px;
        height: 28px;
        font-size: 0.8rem;
    }

    .team-socials img {
        width: 16px;
        height: 16px;
    }
}

/* wp-video.css */
/* wp-video.css */
.wp-video {
    width: 100%;
    padding: 4rem 0;
    display: flex;
    justify-content: center;
}

.wp-video__container {
    display: grid;
    grid-template-columns: 1fr; /* Video slightly larger (15% increase) */
    gap: 3rem;
    align-items: center;
    width: 100%;
}

/* Text block: title + description */
.wp-video__content {
    font-family: 'Fira Sans', sans-serif;
    color: rgba(var(--color-primary), 1); /* blue text */
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

/* Title styling */
.wp-video__title {
    font-size: 2.5rem;
    font-weight: 700;
    line-height: 1.2;
    margin: 0;
}

/* Subtitle/description styling */
.wp-video__desc {
    font-size: 1.25rem;
    line-height: 1.6;
    font-weight: 400;
}

/* Button adjustment */
.wp-video__content .btn-more {
    margin-top: 1.5rem; /* push button down from text */
    width: fit-content;  /* button shrinks to content, not full width */
    padding: 0.8rem 1.5rem; /* adjust size if needed */
}

/* Video embed */
.wp-video__embed iframe {
    width: 100%;
    height: 100%;
    aspect-ratio: 16 / 9; /* keeps 16:9 ratio */
    border: none;
    border-radius: 12px;
}

/* Responsive: stack text and video on smaller screens */
@media (max-width: 1024px) {
    .wp-video__container {
        grid-template-columns: 1fr; /* single column */
        gap: 2rem;
    }

    .wp-video__title {
        font-size: 2rem;
    }

    .wp-video__desc {
        font-size: 1.1rem;
    }

    .wp-video__content .cta-button1 {
        align-self: flex-start; /* keeps button aligned with text */
    }
}


/* wp-expertise.css */
/* Layout Base */
.wp-landing-row {
    position: relative;
    z-index: 1;
    padding: clamp(40px, 6vw, 60px) clamp(15px, 5vw, 20px);
    color: rgba(var(--color-white), 1);
    font-family: 'Fira Sans', sans-serif;
    background-color: transparent;
    min-height: calc(100vh - 107px);
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.wp-landing-row::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100vw;
    height: 100%;
    background: linear-gradient(
            to bottom,
            rgba(var(--color-primary), 0.9) 0%,     /* top: primary, slightly more opaque */
            rgba(var(--color-primary), 0.7) 30%,    /* intermediate fade */
            rgba(var(--color-third), 0.7) 70%,      /* start blending into third */
            rgba(var(--color-third), 0.9) 100%      /* bottom: third, slightly more opaque */
    );
    border: 1px solid rgba(var(--color-white), 0.05);
    z-index: -1;
    pointer-events: none;
}

/* Columns Container */
.wp-landing-columns {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: clamp(15px, 3vw, 30px);
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
}

/* Columns */
.wp-landing-one-third {
    flex: 1 1 calc(33.333% - 30px);
    min-width: 260px;
    background: rgba(var(--color-white), 0.1);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    border: 1px solid rgba(var(--color-white), 0.2);
    border-radius: 20px;
    padding: clamp(15px, 3vw, 20px) clamp(10px, 2vw, 15px);
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease, background 0.3s ease;
    opacity: 1;
}

.wp-landing-one-third:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 24px rgba(var(--color-black), 0.15);
    background: rgba(var(--color-white), 0.15);
}

/* Typography */
.wp-landing-heading {
    font-size: clamp(1rem, 1.5vw, 1.3rem);
    font-weight: 500;
    margin-bottom: 10px;
    color: rgba(var(--color-white), 1); /* white */
}

.wp-landing-heading-wrap{
    justify-content: center;
    display: flex;
}
.wp-landing-heading-wrap h2 {
    font-size: 2rem;
    margin-bottom: 10px;
    font-weight: bold;
    font-family: "Fira Sans";
    color: rgba(var(--color-white), 1); /* white */
    text-shadow: 0 1px 2px rgba(var(--color-black), 0.3), 0 0 3px rgba(var(--color-third), 0.25);
    transition: color 0.3s ease, text-shadow 0.3s ease;
}

.wp-landing-subheading {
    font-size: clamp(0.85rem, 1.2vw, 1rem);
    font-weight: 300;
    line-height: 1.6;
    color: rgba(var(--color-white), 1); /* white */
    margin-bottom: 20px;
}

/* Buttons */
.wp-landing-button-wrap {
    margin-top: 15px;
}

.wp-landing-button {
    display: inline-block;
    background-color: rgba(var(--color-white), 0.15);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    border: 1px solid rgba(var(--color-white), 0.2);
    padding: clamp(8px, 1.5vw, 12px) clamp(16px, 3vw, 20px);
    border-radius: 20px;
    color: rgba(var(--color-white), 1);
    font-size: clamp(0.75rem, 1vw, 0.85rem);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    cursor: pointer;
    transition: background 0.3s ease, transform 0.2s ease, box-shadow 0.3s ease;
}

.wp-landing-button:hover {
    background-color: rgba(var(--color-white), 0.25);
    transform: scale(1.05);
    box-shadow: 0 8px 20px rgba(var(--color-black), 0.15);
}

/* Icons */
.wp-landing-icon {
    display: flex;
    justify-content: center;
    width: 100%;
    height: clamp(60px, 10vw, 80px);
    margin-bottom: clamp(15px, 3vw, 20px);
    color: rgba(var(--color-bright-cyan), 1); /* accent color */
}

.wp-landing-icon img {
    max-width: 100%;
    max-height: 100%;
}

/* Show More / Less CSS with Smooth Transition */
.wp-landing-column:nth-child(n+7) {
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    margin: 0;
    padding: 0;
    transition: max-height 0.6s ease, opacity 0.6s ease, margin 0.6s ease, padding 0.6s ease;
}

#toggle-services:checked + .wp-landing-columns .wp-landing-column:nth-child(n+7) {
    max-height: 500px;
    opacity: 1;
    margin: clamp(15px, 3vw, 20px) 0 0;
    padding: clamp(15px, 3vw, 20px) clamp(10px, 2vw, 15px);
    max-width: 380px;
}

/* Hide checkbox */
#toggle-services {
    display: none;
}

.show-more-label {
    display: inline-block;
    padding: 0.8rem 1.8rem;
    border-radius: 25px;
    font-weight: 700;
    text-transform: uppercase;
    font-family: Arimo;
    transition: all 0.3s ease;
    cursor: pointer;
    background: rgba(var(--color-third), 0.5); /* was turquoise */
    border: 1px solid rgba(var(--color-white), 0.4);
    color: rgba(var(--color-white), 1);
    text-shadow: 0 1px 2px rgba(var(--color-black), 0.4);
}

.show-more-label:hover {
    background: rgba(var(--color-third), 0.4);
    box-shadow: 0 4px 12px rgba(var(--color-third), 0.2);
    transform: scale(1.05);
    color: rgba(var(--color-white), 1);
}

/* Dynamic button text */
#toggle-services:checked + .wp-landing-columns + .show-more-label::after {
    content: " Ascunde Servicii";
}

#toggle-services:not(:checked) + .wp-landing-columns + .show-more-label::after {
    content: " Vezi Toate Serviciile";
}

/* By default, show "Show More" and hide "Show Less" */
.show-more-text {
    display: inline;
}
.show-less-text {
    display: none;
}

/* When checkbox is checked, toggle texts */
#toggle-services:checked + .wp-landing-columns + .wp-landing-colums-center .show-more-text {
    display: none;
}
#toggle-services:checked + .wp-landing-columns + .wp-landing-colums-center .show-less-text {
    display: inline;
}

.wp-landing-colums-center{
    display: flex;
    justify-content: center;
    padding-top: 2rem;
}

/* Responsive */
@media (max-width: 1024px) {
    .wp-landing-one-third {
        flex: 1 1 calc(45% - 20px);
    }
}

@media (max-width: 768px) {
    .wp-landing-one-third {
        flex: 1 1 100%;
    }

}


/* wp-stats.css */

/* ===== Stats ===== */
.wp-landing-stats {
    position: relative;
    z-index: 1;
    padding: 100px 20px;
    color: rgba(var(--color-white), 0.9);
    text-align: center;
    background-color: transparent;
}

.wp-landing-stats::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100vw;
    height: 100%;
    background: linear-gradient(
            to bottom,
            rgba(var(--color-primary), 0.85),
            rgba(var(--color-third), 0.85)
    );
    border: 1px solid rgba(var(--color-white), 0.05);
    z-index: -2;
}

.wp-landing-stats__container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 60px;
    flex-wrap: wrap;
    max-width: 100vw;
    margin: 0 auto;
}



/* ===== Stats ===== */
.wp-landing-stats {
    position: relative;
    z-index: 1;
    padding: 80px 20px;
    color: rgba(var(--color-white), 0.9);
    text-align: center;
    background-color: transparent;
}

.wp-landing-stats::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100vw;
    height: 100%;
    background: linear-gradient(
            to bottom,
            rgba(var(--color-primary), 0.85),
            rgba(var(--color-third), 0.85)
    );
    border: 1px solid rgba(var(--color-white), 0.05);
    z-index: -2;
}

/* Grid container */
.wp-landing-stats__container {
    display: grid;
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
}

/* Each stat item */
.stat {
    text-align: center;
    margin-bottom: 30px;
    border: 1px solid rgba(var(--color-white), 0.2);
    padding: 5px 60px;
    border-radius: 12px;
    background-color: rgba(var(--color-white), 0.05);
    box-shadow: 0 2px 6px rgba(var(--color-black), 0.1);
    transition: all 0.3s ease;
}

.stat:hover {
    border-color: rgba(var(--color-white), 0.4);
    box-shadow: 0 4px 12px rgba(var(--color-black), 0.2);
}

.stat .number {
    font-size: 48px;
    font-weight: 600;
    position: relative;
    color: rgba(var(--color-white), 0.9);
    text-shadow: 0 1px 3px rgba(var(--color-black), 0.5);
    transition: all 0.3s ease;
}

.stat .number:hover {
    color: rgba(var(--color-white), 0.95);
    text-shadow: 0 2px 4px rgba(var(--color-black), 0.6);
    transform: scale(1.05);
}

.stat .label {
    font-size: 12px;
    font-weight: 400;
    margin-top: 10px;
    color: rgba(var(--color-white), 0.85);
    text-shadow: 0 1px 2px rgba(var(--color-black), 0.4);
    transition: color 0.3s ease, text-shadow 0.3s ease;
}

.stat .label {
    display: block;
    margin-top: 10px;
    width: calc(100% + 120px); /* cancel out left+right padding (60px each) */
    margin-left: -60px;        /* pull it out */
    margin-right: -50px;
    text-align: center;
}


.stat .label:hover {
    color: rgba(var(--color-white), 0.95);
    text-shadow: 0 1px 3px rgba(var(--color-black), 0.5);
}

/* ===== Responsive ===== */

/* Desktop >=1080px: 2 rows */
@media (min-width: 1080px) {
    .wp-landing-stats__container {
        grid-auto-flow: column;
        max-width: 100vw;
    }
}

/* Tablet 601px–1024px: 2 big stats on top, 3 smaller stats below */
@media (min-width: 601px) and (max-width: 1024px) {
    .wp-landing-stats__container {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        grid-template-areas:
            "stat1 stat1 stat2 "  /* top row: 2 big stats side by side */
            "stat3 stat4 stat5"; /* bottom row: 3 smaller stats */
        gap: 30px;
        align-items: stretch; /* top stats equal height */
    }

    /* Assign areas to the stats */
    .stat:nth-child(1) { grid-area: stat1; }
    .stat:nth-child(2) { grid-area: stat2; }
    .stat:nth-child(3) { grid-area: stat3; }
    .stat:nth-child(4) { grid-area: stat4; }
    .stat:nth-child(5) { grid-area: stat5; }

    .stat .label {
        display: block;
        margin-top: 10px;
        width: calc(100% + 100px);
        margin-left: -40px;
        margin-right: -30px;
        text-align: center;
    }

    /* Top stats: equal width and height */
    .stat:nth-child(1),
    .stat:nth-child(2) {
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: stretch; /* stretch to match row height */
        font-size: 1.2em;
    }

    /* Bottom row: smaller stats */
    .stat:nth-child(n+3) {
        font-size: 1em;
    }

    /* Adjust number and label sizes */
    .stat .number {
        font-size: 40px;
    }

    .stat .label {
        font-size: 14px;
    }
}

/* Mobile <=600px: first two full width, rest 2 per row */
@media (max-width: 600px) {
    .wp-landing-stats__container {
        display: grid;
        grid-template-columns: repeat(2, 1fr); /* 2 columns for smaller stats */
        gap: 20px;
    }

    /* First two stats: full width */
    .stat:nth-child(1),
    .stat:nth-child(2) {
        grid-column: span 2; /* each takes entire row */
    }

    /* Remaining stats: 2 per row */
    .stat:nth-child(n+3) {
        grid-column: span 1;
    }

    /* Adjust sizes */
    .stat .number {
        font-size: 32px;
    }

    .stat .label {
        font-size: 14px;
    }

    .stat .label {
        display: block;
        margin-top: 10px;
        width: calc(100% + 100px);
        margin-left: -50px;
        margin-right: -40px;
        text-align: center;
    }
}


/* Desktop >=1080px: one liner */
@media (min-width: 1080px) {
    .wp-landing-stats__container {
        grid-template-columns: repeat(5, 1fr);
        grid-template-rows: 1fr; /* force one row */
        gap: 40px;
        align-items: stretch;
    }

    .stat {
        margin-bottom: 0; /* remove extra bottom margin */
    }
}


