/*
Theme Name: ECOLOGIX
Theme URI: https://ecologix.vn/
Author: Antigravity
Author URI: https://gemini.google.com/
Description: Custom smart trucking logistics platform B2B brochure website theme for ECOLOGIX. Fully optimized, translation-ready, with dynamic localization support.
Version: 1.0.0
Text Domain: ecologix
Domain Path: /languages
*/

/* --- GLOBAL RESET & VARIABLES --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary: #0B1F3A;
    --accent-green: #3ED598;
    --accent-blue: #00C2FF;
    --light: #f8f9fa;
    --gray: #6c757d;
    --dark-gray: #333;
    --border: #e0e0e0;
    --button-gap: 1rem;
}

body {
    font-family: 'Roboto', sans-serif;
    line-height: 1.6;
    color: var(--dark-gray);
    background: #fff;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: 'Roboto', sans-serif;
    font-weight: 700;
}

/* --- CONTAINER & SECTION LAYOUTS --- */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.section {
    padding: 5rem 2rem;
}

.section-label {
    color: #3ED598 !important;
}

.section-title {
    font-size: 2.2rem;
    color: var(--primary);
    margin-bottom: 3rem;
    text-align: center;
}

.section-cta {
    text-align: center;
    margin-top: 1rem;
    padding-top: 2rem;
}

/* --- HEADER & NAVIGATION --- */
header {
    background: var(--primary);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 100;
}

nav {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
}

.logo {
    font-size: 1.5rem;
    font-weight: 600;
    color: white;
    display: flex;
    align-items: center;
    gap: 0.8rem;
    text-decoration: none;
}

.logo img {
    height: 60px;
    width: auto;
}

nav ul {
    display: flex;
    list-style: none;
    gap: 1.7rem;
}

nav a {
    text-decoration: none;
    color: white;
    font-weight: 500;
    transition: color 0.3s;
}

nav a:hover {
    color: var(--accent-green);
}

.nav-cta {
    background: var(--accent-green);
    color: var(--primary);
    padding: 0.7rem 1.4rem;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s;
}

.nav-cta:hover {
    background: var(--accent-blue);
    color: white;
}

/* --- LANGUAGE SWITCHER --- */
.lang-switcher {
    display: flex;
    gap: 0.3rem;
    align-items: center;
    margin-left: 0.8rem;
}

.lang-btn {
    padding: 0.25rem 0.65rem;
    border-radius: 4px;
    font-size: 0.78rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.55);
    text-decoration: none;
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.2s;
}

.lang-btn.active,
.lang-btn:hover {
    color: var(--primary);
    background: var(--accent-green);
    border-color: var(--accent-green);
}

/* --- BUTTONS --- */
.btn {
    box-sizing: border-box;
    width: 230px;
    max-width: 100%;
    min-height: 52px;
    padding: 1rem 1rem;
    border: none;
    border-radius: 6px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn:hover::before {
    width: 300px;
    height: 300px;
}

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

.btn-primary:hover {
    background: var(--accent-blue);
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 10px 24px rgba(0, 194, 255, 0.4);
}

.btn-secondary {
    background: white;
    color: var(--primary);
    border: 2px solid var(--accent-green);
}

.btn-secondary:hover {
    background: var(--accent-green);
    transform: translateY(-3px);
    box-shadow: 0 10px 24px rgba(62, 213, 152, 0.3);
}

.cta-buttons {
    display: flex;
    gap: var(--button-gap);
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 3rem;
}

/* --- READY TO TRANSFORM & CTA SECTIONS --- */
.ready-section,
.cta-section {
    background: linear-gradient(135deg, #0B1F3A 0%, #1a3a5c 100%);
    color: white;
    text-align: center;
    padding: 5rem 2rem;
    position: relative;
    overflow: hidden;
}

.ready-section::before,
.cta-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background:
        radial-gradient(circle at 20% 50%, rgba(62, 213, 152, 0.08) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(0, 194, 255, 0.08) 0%, transparent 50%);
    pointer-events: none;
}

.ready-content,
.cta-content {
    position: relative;
    z-index: 2;
}

.ready-section h2,
.cta-section h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: white;
}

.ready-section p,
.cta-section p {
    font-size: 1.1rem;
    margin-bottom: 2.5rem;
    opacity: 0.95;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* --- FOOTER --- */
footer {
    background: var(--primary);
    color: white;
    text-align: center;
    padding: 2rem;
    margin-top: 0;
}

footer p {
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.8);
}

footer a {
    color: var(--accent-green);
    text-decoration: none;
}

footer a:hover {
    text-decoration: underline;
}

/* Utilities */
.fade-in-on-scroll {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.fade-in-on-scroll.visible {
    opacity: 1;
    transform: translateY(0);
}

/* --- MOBILE HAMBURGER MENU --- */
.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    z-index: 110;
    flex-direction: column;
    gap: 5px;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
}

.hamburger-bar {
    display: block;
    width: 24px;
    height: 2.5px;
    background: white;
    border-radius: 2px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    transform-origin: center;
}

.mobile-menu-toggle.active .hamburger-bar:nth-child(1) {
    transform: translateY(7.5px) rotate(45deg);
}

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

.mobile-menu-toggle.active .hamburger-bar:nth-child(3) {
    transform: translateY(-7.5px) rotate(-45deg);
}

/* --- NAV MENU & ACTIONS (Desktop defaults) --- */
.nav-menu {
    display: flex;
    align-items: center;
    gap: 2rem;
    flex: 1;
    justify-content: space-between;
    margin-left: 3rem;
}

.nav-actions {
    display: flex;
    gap: var(--button-gap);
    align-items: center;
}

.nav-link {
    color: white;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
}

.nav-link:hover {
    color: var(--accent-green);
}

/* Nav right controls: mobile lang-switcher + hamburger */
.nav-right-controls {
    display: none;
    /* hidden on desktop */
    align-items: center;
    gap: 0.8rem;
}

/* Desktop lang-switcher: visible on desktop */
.lang-switcher-desktop {
    display: flex;
}

/* Mobile lang-switcher: hidden on desktop (lives inside nav-right-controls) */
.lang-switcher-mobile {
    display: flex;
}

/* ===========================================
   RESPONSIVE BREAKPOINTS
   =========================================== */

/* --- TABLET & BELOW (≤ 992px) --- */
@media (max-width: 992px) {
    .mobile-menu-toggle {
        display: flex;
    }

    .nav-right-controls {
        display: flex;
    }

    .lang-switcher-desktop {
        display: none !important;
    }

    nav {
        flex-wrap: wrap;
        position: relative;
    }

    .nav-menu {
        display: none;
        flex-direction: column;
        width: 100%;
        background: var(--primary);
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        padding: 1rem 2rem 2rem;
        box-shadow: 0 12px 32px rgba(0, 0, 0, 0.3);
        border-top: 1px solid rgba(255, 255, 255, 0.1);
        z-index: 100;
        gap: 0;
        animation: none;
        margin-left: 0;
    }

    .nav-menu.open {
        display: flex;
        animation: slideMenuDown 0.3s ease-out;
    }

    @keyframes slideMenuDown {
        from {
            opacity: 0;
            transform: translateY(-10px);
        }

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

    .nav-menu ul {
        flex-direction: column;
        gap: 0;
        width: 100%;
        padding: 0;
    }

    .nav-menu ul li {
        width: 100%;
        border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    }

    .nav-menu ul li a {
        display: block;
        padding: 0.9rem 0;
        font-size: 1rem;
    }

    .nav-actions {
        flex-direction: column;
        width: 100%;
        gap: var(--button-gap);
        padding-top: 1.2rem;
        margin-top: 0.5rem;
    }

    .nav-actions .nav-link,
    .nav-actions .nav-cta {
        width: 100%;
        text-align: center;
        padding: 0.8rem 1.5rem;
        border-radius: 6px;
    }

    .nav-actions .nav-link {
        border: 1px solid rgba(255, 255, 255, 0.2);
    }

    /* Section adjustments */
    .section {
        padding: 3.5rem 1.5rem;
    }

    .section-title {
        font-size: 1.8rem;
        margin-bottom: 2rem;
    }

    .container {
        padding: 0 1.5rem;
    }

    .ready-section h2,
    .cta-section h2 {
        font-size: 2rem;
    }

    .ready-section,
    .cta-section {
        padding: 4rem 1.5rem;
    }
}

/* --- MOBILE (≤ 768px) --- */
@media (max-width: 768px) {
    nav {
        padding: 0.8rem 1rem;
    }

    .logo img {
        height: 45px;
    }

    .section {
        padding: 3rem 1rem;
    }

    .section-title {
        font-size: 1.6rem;
        margin-bottom: 1.5rem;
    }

    .container {
        padding: 0 1rem;
    }

    .ready-section h2,
    .cta-section h2 {
        font-size: 1.7rem;
    }

    .ready-section p,
    .cta-section p {
        font-size: 1rem;
    }

    .ready-section,
    .cta-section {
        padding: 3rem 1rem;
    }

    .cta-buttons {
        flex-direction: column;
        align-items: center;
        gap: var(--button-gap);
    }

    .cta-buttons .btn {
        width: 100%;
        max-width: 320px;
    }

    .btn {
        padding: 0.85rem 1.8rem;
        font-size: 0.95rem;
    }

    footer {
        padding: 1.5rem 1rem;
    }

    footer p {
        font-size: 0.85rem;
        line-height: 1.7;
    }
}

/* --- SMALL MOBILE (≤ 480px) --- */
@media (max-width: 480px) {
    nav {
        padding: 0.7rem 0.8rem;
    }

    .logo img {
        height: 38px;
    }

    .section {
        padding: 2.5rem 0.8rem;
    }

    .section-title {
        font-size: 1.4rem;
    }

    .ready-section h2,
    .cta-section h2 {
        font-size: 1.4rem;
    }

    .btn {
        padding: 0.75rem 1.5rem;
        font-size: 0.9rem;
    }
}

/* --- GLOBAL HERO SECTION WITH 2D CANVAS BACKGROUND --- */
.about-hero-globe {
    position: relative;
    width: 100%;
    height: 75vh;
    min-height: 550px;
    display: flex;
    align-items: center;
    overflow: hidden;
    background: linear-gradient(135deg, #0B1F3A 0%, #1a3a5c 60%, #0d2d4a 100%);
    color: white;
}

#logistics-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: all;
}

.about-hero-globe .map-bg {
    position: absolute;
    top: 52%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 90%;
    background-image: url('https://upload.wikimedia.org/wikipedia/commons/b/bb/World_map_with_points.svg');
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0.08;
    filter: invert(1) sepia(1) saturate(5) hue-rotate(175deg) brightness(0.65);
    pointer-events: none;
    z-index: 2;
}

.about-hero-globe .glow-blob {
    position: absolute;
    width: clamp(250px, 40vw, 450px);
    height: clamp(250px, 40vw, 450px);
    border-radius: 50%;
    filter: blur(140px);
    opacity: 0.12;
    pointer-events: none;
    z-index: 2;
}

.about-hero-globe .blob-1 {
    background: #00f2fe;
    top: 15%;
    left: 20%;
    animation: float-blob 9s ease-in-out infinite alternate;
}

.about-hero-globe .blob-2 {
    background: #79F5C5;
    bottom: 10%;
    right: 15%;
    animation-delay: -6s;
    animation: float-blob 11s ease-in-out infinite alternate-reverse;
}

@keyframes float-blob {
    0% {
        transform: translate(0, 0) scale(1);
    }

    100% {
        transform: translate(50px, -30px) scale(1.15);
    }
}

.about-hero-globe .tech-lines {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.015) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.015) 1px, transparent 1px);
    background-size: 60px 60px;
    background-position: center center;
    mask-image: radial-gradient(circle at center, black 40%, transparent 80%);
    -webkit-mask-image: radial-gradient(circle at center, black 40%, transparent 80%);
    z-index: 2;
    pointer-events: none;
}

.about-hero-globe .about-hero-content {
    position: relative;
    z-index: 10;
    max-width: 1000px;
    margin: 0 auto;
    padding: 2.5rem;
    pointer-events: none;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.about-hero-globe .about-hero-content * {
    pointer-events: auto;
}

.about-hero-globe .about-hero-content h1 {
    font-size: 3.2rem;
    margin-bottom: 1rem;
    line-height: 1.2;
    font-weight: 800;
    color: #ffffff;
}

.about-hero-globe .about-hero-content p {
    font-size: 1.15rem;
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.6;
    margin-bottom: 2rem;
    max-width: 640px;
    margin-left: auto;
    margin-right: auto;
}

.about-hero-globe .labs-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.4rem 1rem;
    background: rgba(0, 194, 255, 0.06);
    border: 1px solid rgba(0, 194, 255, 0.25);
    border-radius: 100px;
    color: #00C2FF;
    font-family: 'Roboto', sans-serif;
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 1.2rem;
    pointer-events: auto;
}

.about-hero-globe .labs-badge::before {
    content: '';
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background-color: #3ED598;
    box-shadow: 0 0 10px #3ED598;
}

.about-hero-globe .cta-actions {
    pointer-events: auto;
    display: flex;
    justify-content: center;
    gap: var(--button-gap);
}

.about-hero-globe .btn-globe-cyan {
    padding: 0.8rem 1.6rem;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    background: linear-gradient(135deg, #3ED598, #79F5C5);
    color: #0b1f3a;
    box-shadow: 0 4px 15px rgba(62, 213, 152, 0.2);
    transition: all 0.3s ease;
    border: 1px solid transparent;
}

.about-hero-globe .btn-globe-cyan:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(62, 213, 152, 0.35);
    background: linear-gradient(135deg, #79F5C5, #3ED598);
}

@keyframes pulse-border {
    0% {
        border-color: rgba(0, 242, 254, 0.3);
    }

    100% {
        border-color: rgba(0, 255, 135, 0.6);
    }
}

@keyframes blink {

    0%,
    100% {
        opacity: 0.4;
    }

    50% {
        opacity: 1;
    }
}


/* RESPONSIVE ADDITIONS */
@media (max-width: 1024px) {
    .about-hero-globe .about-hero-content {
        margin: 0 auto;
    }
}

@media (max-width: 768px) {
    .about-hero-globe {
        height: 550px;
        min-height: 550px;
        padding: 0;
        align-items: center;
        justify-content: center;
    }

    #logistics-canvas {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        z-index: 1;
    }

    .about-hero-globe .about-hero-content {
        max-width: 100%;
        margin: 0 auto;
        padding: 2rem 1.5rem;
        pointer-events: auto;
    }

    .about-hero-globe .about-hero-content h1 {
        font-size: 2.2rem;
    }
}

/* --- NEWS ARCHIVE --- */
.news-archive__hero {
    position: relative;
    overflow: hidden;
    padding: 9.5rem 2rem 4.5rem;
    background: linear-gradient(135deg, #081b33, #123b5d 58%, #0a2b4a);
    color: white;
}

.news-archive__hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: linear-gradient(rgba(119, 230, 196, .07) 1px, transparent 1px), linear-gradient(90deg, rgba(119, 230, 196, .07) 1px, transparent 1px);
    background-size: 36px 36px;
    mask-image: linear-gradient(to bottom, black, transparent);
}

.news-archive__hero-content {
    position: relative;
    z-index: 1;
    max-width: 840px;
    text-align: center;
}

.news-archive__eyebrow {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    margin-bottom: 1.1rem;
    padding: .48rem .8rem;
    border: 1px solid rgba(119, 230, 196, .35);
    border-radius: 99px;
    color: var(--accent-green);
    font-size: .72rem;
    font-weight: 800;
    letter-spacing: .13em;
}

.news-archive__eyebrow::before {
    content: '';
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--accent-green);
    box-shadow: 0 0 12px var(--accent-green);
}

.news-archive__hero h1 {
    margin-bottom: 1rem;
    color: white;
    font-family: 'Roboto', sans-serif;
    font-size: clamp(2.45rem, 5vw, 4.4rem);
    letter-spacing: -.05em;
    line-height: 1.05;
}

.news-archive__hero p {
    max-width: 690px;
    margin: 0 auto;
    color: rgba(255, 255, 255, .78);
    font-size: 1.08rem;
    line-height: 1.7;
}

.news-archive__glow {
    position: absolute;
    border-radius: 50%;
    filter: blur(12px);
    opacity: .42;
}

.news-archive__glow--one {
    top: -8rem;
    left: 8%;
    width: 21rem;
    height: 21rem;
    background: rgba(62, 213, 152, .28);
}

.news-archive__glow--two {
    right: 6%;
    bottom: -11rem;
    width: 27rem;
    height: 27rem;
    background: rgba(0, 194, 255, .24);
}

.news-archive__content {
    background: #f6faf9;
}

.news-archive__heading {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 2rem;
}

.news-archive__heading p {
    color: var(--primary);
    font-family: 'Roboto', sans-serif;
    font-size: 1.7rem;
    font-weight: 700;
}

.news-archive__heading span {
    color: var(--gray);
    font-size: .92rem;
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.4rem;
}

.news-card {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border: 1px solid rgba(11, 31, 58, .09);
    border-radius: 15px;
    background: white;
    box-shadow: 0 10px 24px rgba(11, 31, 58, .06);
    transition: transform .25s ease, box-shadow .25s ease;
}

.news-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 18px 36px rgba(11, 31, 58, .13);
}

.news-card__media {
    display: block;
    height: 190px;
    overflow: hidden;
    background: #0b2744;
}

.news-card__media>img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .35s ease;
}

.news-card:hover .news-card__media>img {
    transform: scale(1.06);
}

.news-card__placeholder {
    position: relative;
    display: block;
    width: 100%;
    height: 100%;
    overflow: hidden;
    background: radial-gradient(circle at 20% 30%, rgba(62, 213, 152, .4), transparent 34%), linear-gradient(135deg, #0b2847, #174b6e);
}

.news-card__placeholder::before,
.news-card__placeholder::after {
    content: '';
    position: absolute;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(119, 230, 196, .9), transparent);
    transform: rotate(-22deg);
}

.news-card__placeholder::before {
    top: 40%;
    left: 4%;
    width: 80%;
}

.news-card__placeholder::after {
    top: 65%;
    right: -12%;
    width: 74%;
    transform: rotate(28deg);
}

.news-card__placeholder span {
    position: absolute;
    top: 53%;
    left: 47%;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--accent-green);
    box-shadow: 0 0 0 7px rgba(62, 213, 152, .14), 0 0 24px var(--accent-green);
}

.news-card__placeholder small {
    position: absolute;
    right: 1rem;
    bottom: .8rem;
    color: rgba(255, 255, 255, .72);
    font-size: .62rem;
    font-weight: 800;
    letter-spacing: .14em;
}

.news-card__body {
    display: flex;
    flex: 1;
    flex-direction: column;
    padding: 1.35rem;
}

.news-card__meta {
    display: flex;
    justify-content: space-between;
    gap: .5rem;
    margin-bottom: .8rem;
    color: #138553;
    font-size: .72rem;
    font-weight: 700;
}

.news-card__meta a {
    color: inherit;
    text-decoration: none;
}

.news-card__meta time {
    color: var(--gray);
    font-weight: 500;
}

.news-card h2 {
    margin-bottom: .7rem;
    font-size: 1.25rem;
    line-height: 1.3;
}

.news-card h2 a {
    color: var(--primary);
    text-decoration: none;
}

.news-card p {
    margin-bottom: 1.2rem;
    color: var(--gray);
    font-size: .92rem;
    line-height: 1.65;
}

.news-card__link {
    margin-top: auto;
    color: #138553;
    font-size: .88rem;
    font-weight: 700;
    text-decoration: none;
}

.news-card__link span {
    display: inline-block;
    margin-left: .35rem;
    transition: transform .2s ease;
}

.news-card:hover .news-card__link span {
    transform: translateX(4px);
}

.news-pagination {
    margin-top: 2.4rem;
    text-align: center;
}

.news-pagination .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    margin: 0 .16rem;
    padding: 0 .75rem;
    border: 1px solid rgba(11, 31, 58, .12);
    border-radius: 7px;
    color: var(--primary);
    text-decoration: none;
}

.news-pagination .page-numbers.current,
.news-pagination .page-numbers:hover {
    border-color: var(--accent-green);
    background: var(--accent-green);
}

.news-archive__empty {
    padding: 4rem 1rem;
    border-radius: 16px;
    background: white;
    text-align: center;
}

.news-archive__empty>span {
    color: var(--accent-green);
    font-size: 2rem;
}

@media (max-width: 960px) {
    .news-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 600px) {
    .news-archive__hero {
        padding: 7.2rem 1rem 3.5rem;
    }

    .news-archive__hero p {
        font-size: .98rem;
    }

    .news-archive__heading {
        align-items: flex-start;
        flex-direction: column;
    }

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

    .news-card__media {
        height: 205px;
    }
}

/* Shared content-heading scale across all page templates. */
:root {
    --content-heading-h2: clamp(1.85rem, 2.7vw, 2.5rem);
    --content-heading-h3: clamp(1.2rem, 1.55vw, 1.4rem);
}

main h2:not(.news-card h2) {
    font-size: var(--content-heading-h2) !important;
    line-height: 1.16 !important;
}

main h3 {
    font-size: var(--content-heading-h3) !important;
    line-height: 1.3 !important;
}

/* Article-card titles intentionally remain compact for a balanced news grid. */
main .news-card h2 {
    font-size: 1.25rem !important;
    line-height: 1.3 !important;
}

/* WordPress pagination outputs a nested ul/li list; keep the whole control centered. */
.news-pagination {
    display: flex;
    justify-content: center;
}

.news-pagination ul.page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    min-width: 0;
    height: auto;
    margin: 0;
    padding: 0;
    border: 0;
    background: transparent;
    list-style: none;
}

.news-pagination ul.page-numbers>li {
    margin: 0;
}

.archive-page {
    background: #f7f9fb;
}

.container {
    width: min(1200px, 92%);
    margin: 0 auto;
}

.archive-hero {
    padding: 70px 0 40px;
    background: linear-gradient(135deg, #0f172a, #1e293b);
    color: #fff;
}

.archive-hero h1 {
    margin: 0;
    font-size: 42px;
    font-weight: 700;
}

.archive-description {
    max-width: 760px;
    margin-top: 15px;
    font-size: 17px;
    line-height: 1.7;
    opacity: .85;
}

.archive-content {
    padding: 50px 0 70px;
}

.post-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}

.post-card {
    background: #fff;
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 10px 35px rgba(15, 23, 42, .08);
    transition: .25s ease;
}

.post-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 18px 45px rgba(15, 23, 42, .14);
}

.post-thumb {
    display: block;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: #e5e7eb;
}

.post-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: .3s ease;
}

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

.post-info {
    padding: 22px;
}

.post-meta {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    font-size: 13px;
    color: #64748b;
    margin-bottom: 10px;
}

.post-meta a {
    color: #64748b;
    text-decoration: none;
}

.post-title {
    margin: 0 0 12px;
    font-size: 21px;
    line-height: 1.35;
}

.post-title a {
    color: #0f172a;
    text-decoration: none;
}

.post-title a:hover {
    color: #16a34a;
}

.post-excerpt {
    color: #475569;
    font-size: 15px;
    line-height: 1.7;
}

.read-more {
    display: inline-block;
    margin-top: 18px;
    color: #16a34a;
    font-weight: 600;
    text-decoration: none;
}

.pagination {
    margin-top: 45px;
    text-align: center;
}

.pagination .nav-links {
    display: flex;
    justify-content: center;
    gap: 8px;
    flex-wrap: wrap;
}

.pagination a,
.pagination span {
    padding: 10px 14px;
    border-radius: 10px;
    background: #fff;
    color: #0f172a;
    text-decoration: none;
}

.pagination .current {
    background: #16a34a;
    color: #fff;
}

.no-posts {
    background: #fff;
    padding: 40px;
    border-radius: 16px;
    text-align: center;
}

@media (max-width: 991px) {
    .post-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .archive-hero h1 {
        font-size: 34px;
    }
}

@media (max-width: 575px) {
    .post-grid {
        grid-template-columns: 1fr;
    }

    .archive-hero {
        padding: 45px 0 30px;
    }

    .archive-hero h1 {
        font-size: 28px;
    }
}

/* Left-align section titles on Services and Solutions page templates */
[class*="template-services"] .section-title,
[class*="template-solutions"] .section-title {
    text-align: left;
}

/* Custom Global Mobile Padding Alignments (15px side paddings) */
@media (max-width: 768px) {
    .section {
        padding-left: 15px !important;
        padding-right: 15px !important;
        padding-top: 3rem !important;
        padding-bottom: 3rem !important;
    }
}