/* ArenesWeb Frontend Custom Styles */
:root {
    --arenes-font: 'Oxanium', sans-serif;
    --arenes-red: #ed1a3b;
    --arenes-gray-light: #f9f9f9;
    --arenes-dark: #1a1a1a;
}

body {
    font-family: var(--arenes-font);
    color: var(--arenes-dark);
}

/* Typography Enhancements */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-weight: 700;
}

.text-red {
    color: var(--arenes-red) !important;
}

.bg-red {
    background-color: var(--arenes-red) !important;
}

.bg-light-gray {
    background-color: var(--arenes-gray-light) !important;
}

/* Base Styles */
a {
    transition: color 0.3s ease;
    text-decoration: none;
}

a:hover {
    color: var(--arenes-red);
}

.font-italic-custom {
    font-family: var(--arenes-font);
    font-weight: 500;
    font-style: italic;
    font-size: 1.5rem;
    color: var(--arenes-red);
}

/* Container Genişliğini Artırmak (Örnek) */
@media (min-width: 1400px) {
    .container {
        max-width: 1600px !important;
        /* İstediğiniz daha büyük veya küçük max-width değerini buraya yazın */
    }
}


/* Header & Navigation */
.arenes-header {
    background: #fff;
    padding: 40px 0px 16px;
    position: sticky;
    top: 0;
    z-index: 1040;
}

.arenes-logo img {
    height: 40px;
}

.arenes-nav .nav-link {
    color: var(--arenes-dark);
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 0.5px;
    padding: 0.5rem 1rem;
    margin: 0 5px;
}

.arenes-nav .nav-link:hover,
.arenes-nav .nav-link.active {
    color: var(--arenes-red);
}

/* Hero Section */
.hero-wrapper {
    position: relative;
    width: 100%;
}

.hero-slanted-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-attachment: scroll;
    /* Base for mobile: small slant */
    clip-path: polygon(0% 0%, 100% 60px, 100% 100%, 0% calc(100% - 100px));
    z-index: 1;
}

@media (min-width: 768px) {
    .hero-slanted-bg {
        clip-path: polygon(0% 0%, 100% 100px, 100% 100%, 0% calc(100% - 130px));
    }
}

@media (min-width: 992px) {
    .hero-slanted-bg {
        /* Fixed pixel slant on desktop, regardless of viewport height */
        clip-path: polygon(0% 0%, 100% 140px, 100% 100%, 0% calc(100% - 150px));
    }
}

.hero-arrow {
    transition: all 0.3s ease;
    cursor: pointer;
    opacity: 0.8;
}

.hero-arrow:hover {
    opacity: 1;
    transform: scale(1.1);
    color: var(--arenes-red) !important;
}

/* Slider Text Animations */
.slider-text-animate>* {
    opacity: 0;
    transform: translateY(20px);
}

.carousel-item.active .slider-text-animate>* {
    opacity: 1;
    transform: translateY(0);
}

/* Staggered entrance */
.carousel-item.active .slider-text-animate>*:nth-child(1) {
    transition: all 0.6s ease-out 0.2s;
}

.carousel-item.active .slider-text-animate>*:nth-child(2) {
    transition: all 0.6s ease-out 0.4s;
}

.carousel-item.active .slider-text-animate>*:nth-child(3) {
    transition: all 0.6s ease-out 0.6s;
}

/* Hide outgoing instantly to prevent overlap during crossfade */
.carousel-item.active.carousel-item-start .slider-text-animate>*,
.carousel-item.active.carousel-item-end .slider-text-animate>* {
    opacity: 0;
    transition: none !important;
}

/* Double Image Grid (About) */
.about-images {
    position: relative;
    height: 400px;
    width: 100%;
    max-width: 500px;
    margin: 0 auto;
    display: flex;
    align-items: center;
}

.about-img-1 {
    width: 60%;
    height: auto;
    aspect-ratio: 1 / 1;
    border-radius: 50%;
    object-fit: cover;
    position: absolute;
    right: 49%;
    /* sits to the left of about-img-2 */
    top: 20%;
    z-index: 1;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.about-img-2 {
    width: 75%;
    height: auto;
    aspect-ratio: 1 / 1;
    border-radius: 50%;
    object-fit: cover;
    position: absolute;
    right: 0;
    top: 5%;
    z-index: 2;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
}

@media (max-width: 768px) {
    .about-images {
        margin: 0 auto;
        left: 0;
        right: 0;
        max-width: 340px;
    }
}

/* Services Section Slant */
.services-section-slanted {
    position: relative;
    /* Slant downwards to the right for both top and bottom edges (parallel) */
    clip-path: polygon(0 0, 100% clamp(40px, 6vw, 120px), 100% 100%, 0 calc(100% - clamp(40px, 6vw, 120px)));
    padding-top: 150px !important;
    padding-bottom: 150px !important;
    margin-top: -60px;
    z-index: 0;
}

/* Services Grid */
.service-card {
    background: #fff;
    padding: 30px 20px;
    height: 100%;
    transition: all 0.3s ease;
    border: 1px solid transparent;
    /* Bottom right cut effect */
    clip-path: polygon(0 0, 100% 0, 100% calc(100% - 30px), calc(100% - 30px) 100%, 0 100%);
}

.service-card:hover {
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.08);
    border-color: #f1f1f1;
    transform: translateY(-5px);
}

.service-desc {
    font-size: 0.85rem;
}

@media (max-width: 768px) {
    .service-desc {
        font-size: 0.95rem;
    }
}

.service-icon {
    font-size: 2.5rem;
    color: var(--arenes-red);
    margin-bottom: 20px;
}

.service-title {
    font-weight: 800;
    font-size: 1.1rem;
    text-transform: uppercase;
    margin-bottom: 15px;
}

.service-card hr {
    width: 40px;
    border: 2px solid var(--arenes-red);
    opacity: 1;
    margin: 15px 0;
}

/* Project Gallery (Masonry Like) */
.project-gallery {
    display: flex;
    width: 100%;
}

.project-item {
    flex: 1;
    position: relative;
    height: 500px;
    overflow: hidden;
    cursor: pointer;
    transition: flex 0.6s cubic-bezier(0.25, 0.8, 0.25, 1), filter 0.6s ease;
    filter: grayscale(100%);
}

.project-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* Dark gradient on edges to separate items when collapsed */
    background: linear-gradient(to right, rgba(0, 0, 0, 0.5) 0%, rgba(0, 0, 0, 0) 15%, rgba(0, 0, 0, 0) 85%, rgba(0, 0, 0, 0.5) 100%);
    pointer-events: none;
    z-index: 1;
    transition: opacity 0.5s ease;
}

.project-item:hover,
.project-item.active {
    flex: 4;
    filter: grayscale(0%);
}

.project-item:hover::before,
.project-item.active::before {
    opacity: 0.1;
}

.project-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s ease;
}

.project-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* Gradient Red to Transparent from top to bottom */
    background: linear-gradient(to bottom, rgba(237, 27, 36, 0.95) 0%, rgba(237, 27, 36, 0.7) 20%, rgba(237, 27, 36, 0) 50%);
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    padding: 30px;
    opacity: 0;
    transition: opacity 0.5s ease;
    z-index: 2;
    pointer-events: none;
    /* overlay itself is non-interactive */
}

/* Make the link inside the overlay clickable */
.project-overlay a {
    pointer-events: auto;
}

/* Text animation base */
.project-overlay .text-white {
    width: 350px;
    opacity: 0;
    transform: translateY(-20px);
    transition: all 0.5s ease 0.1s;
    white-space: nowrap;
}

/* Active item (default highlighted) */
.project-item.active {
    flex: 4;
    filter: grayscale(0%);
}

.project-item.active::before {
    opacity: 0.1;
}

.project-item.active .project-overlay {
    opacity: 1;
}

.project-item.active .project-overlay .text-white {
    opacity: 1;
    transform: translateY(0);
}

/* Hovered item */
.project-item:hover {
    flex: 4;
    filter: grayscale(0%);
}

.project-item:hover::before {
    opacity: 0.1;
}

.project-item:hover .project-overlay {
    opacity: 1;
}

.project-item:hover .project-overlay .text-white {
    opacity: 1;
    transform: translateY(0);
}

/* When gallery is in hover-mode, suppress active item back to grey */
.project-gallery.has-hover .project-item.active {
    flex: 1;
    filter: grayscale(100%);
}

.project-gallery.has-hover .project-item.active::before {
    opacity: 1;
}

.project-gallery.has-hover .project-item.active .project-overlay {
    opacity: 0;
}


/* ── Featured Projects — Mobile ─────────────────────────────────── */
@media (max-width: 768px) {
    .project-gallery {
        flex-direction: column;
    }

    .project-item {
        height: 260px;
        flex: none !important;
        filter: grayscale(0%) !important;
    }

    .project-item::before {
        opacity: 0 !important;
    }

    .project-item .project-overlay {
        opacity: 1 !important;
    }

    .project-item .project-overlay .text-white {
        opacity: 1 !important;
        transform: translateY(0) !important;
        white-space: normal;
        width: auto;
    }
}

/* Footer Section */
.arenes-footer {
    position: relative;
    background: var(--arenes-red);
    color: #fff;
    /* Slant downwards to the right (Left high, Right low) */
    clip-path: polygon(0 0, 100% clamp(40px, 6vw, 120px), 100% 100%, 0 100%);
    padding-top: calc(80px + clamp(40px, 6vw, 120px)) !important;
    padding-bottom: 20px;
    margin-top: calc(-1 * clamp(40px, 6vw, 120px));
    z-index: 10;
    margin-top: 20px;
}

.footer-logo {
    margin-bottom: 30px;
}

.footer-logo img {
    filter: brightness(0) invert(1);
    /* Ensure it's white if logo is colored */
    height: 40px;
}

.arenes-footer h5 {
    font-weight: 800;
    font-size: 0.9rem;
    text-transform: uppercase;
    margin-bottom: 20px;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.85rem;
}

.footer-links a:hover {
    color: #fff;
    padding-left: 5px;
}

.footer-social a {
    color: #fff;
    font-size: 1.2rem;
    margin-right: 15px;
}

/* Mega Menu */
.has-megamenu {
    position: static !important;
}

.megamenu {
    left: 15px;
    right: 15px;
    width: auto;
    border-top: 3px solid #ed1a3b !important;
}

.hover-bg-light {
    transition: all 0.3s ease;
}

.hover-bg-light:hover {
    background-color: #f8f9fa;
    color: #ed1a3b !important;
    transform: translateX(5px);
}

@media all and (min-width: 992px) {
    .has-megamenu:hover .megamenu {
        display: block;
        animation: fadeUp 0.3s ease forwards;
    }
}

@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.page-hero-skew {
    clip-path: polygon(0 0, 100% clamp(40px, 6vw, 120px), 100% 100%, 0 calc(100% - clamp(40px, 6vw, 120px)));
}


/* ======================================================
   MOBILE LANGUAGE SWITCHER
====================================================== */

.mobile-lang-switcher {
    position: relative;
}

.mobile-lang-btn {
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 0 10px;
    height: 40px;
    background: #f8f8f8;
    border: 1.5px solid #e8e8e8;
    border-radius: 20px;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.5px;
    color: #222;
    cursor: pointer;
    white-space: nowrap;
    transition: background 0.2s, border-color 0.2s;
    /* remove Bootstrap dropdown arrow */
}

.mobile-lang-btn::after {
    display: none;
    /* hide Bootstrap caret */
}

.mobile-lang-btn i {
    font-size: 0.95rem;
    color: #ed1a3b;
}

.mobile-lang-btn:hover,
.mobile-lang-btn:focus {
    background: #fff;
    border-color: #ed1a3b;
    color: #ed1a3b;
}

.mobile-lang-menu {
    min-width: 140px;
    border-radius: 12px;
    border: 1px solid #f0f0f0 !important;
    padding: 6px 0;
    margin-top: 6px !important;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12) !important;
}

.mobile-lang-opt {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 9px 14px;
    text-decoration: none;
    cursor: pointer;
    transition: background 0.15s;
    color: #333;
}

.mobile-lang-opt:hover {
    background: #fafafa;
    color: #ed1a3b;
}

.mobile-lang-opt.active {
    color: #ed1a3b;
    cursor: default;
}

.mobile-lang-opt .lang-code {
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.5px;
    min-width: 28px;
}

.mobile-lang-opt .lang-name {
    font-size: 0.72rem;
    color: #888;
    flex: 1;
}

.mobile-lang-opt.active .lang-name {
    color: #bbb;
}

.mobile-lang-opt i {
    font-size: 0.8rem;
    color: #ed1a3b;
    margin-left: auto;
}


/* ======================================================
   HOME PAGE: Hero / Slider
====================================================== */

.hero-wrapper {
    height: 84vh;
}

.slider-text-container {
    position: absolute;
    bottom: 18px;
    left: 15px;
}

.slider-text-animate h5 {
    font-size: 0.95rem;
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 4px;
}

.slider-text-animate h5:last-of-type {
    margin-bottom: 12px;
}

.slider-text-animate a {
    font-size: 0.8rem;
    font-weight: 700;
    color: #111;
    text-decoration: none;
}

@media (max-width: 768px) {
    .hero-wrapper {
        height: auto !important;
        margin-bottom: 30px !important;
    }

    #heroCarousel,
    #heroCarousel .carousel-inner {
        height: auto !important;
    }

    #heroCarousel .carousel-item {
        height: auto !important;
        display: flex !important;
        flex-direction: column;
    }

    #heroCarousel .carousel-item>img {
        position: relative !important;
        height: 65vh !important;
        min-height: 240px;
        width: 100%;
        object-fit: cover;
        flex-shrink: 0;
    }

    #heroCarousel .carousel-item>.position-absolute {
        position: relative !important;
        top: auto !important;
        left: auto !important;
        width: 100% !important;
        height: auto !important;
        background: rgba(255, 255, 255, 0.97);
    }

    #heroCarousel .container.position-relative.h-100 {
        height: auto !important;
    }

    .slider-text-container {
        position: static !important;
        bottom: auto !important;
        left: auto !important;
        padding: 14px 16px 10px;
    }

    .slider-text-animate h5 {
        font-size: 0.88rem;
        margin-bottom: 3px;
    }

    .slider-text-animate h5:last-of-type {
        margin-bottom: 10px;
    }

    .slider-text-animate a {
        font-size: 0.82rem;
    }

    #heroArrowsWrap {
        position: relative !important;
        top: auto !important;
        left: auto !important;
        transform: none !important;
        width: 100% !important;
        height: auto !important;
        pointer-events: auto !important;
    }

    #heroArrowsInner {
        position: static !important;
        display: flex !important;
        justify-content: flex-end;
        padding: 10px 16px 14px;
        pointer-events: auto !important;
    }


    .hero-arrow i {
        font-size: 2.4rem !important;
        color: #333 !important;
        filter: none !important;
    }
}

/* Video slide — same dimensions & cover behaviour as img */
.slider-video {
    pointer-events: none;
    /* oklar tıklanabilir kalsın */
}

@media (max-width: 768px) {
    #heroCarousel .carousel-item>video {
        position: relative !important;
        height: 65vh !important;
        min-height: 240px;
        width: 100%;
        object-fit: cover;
        flex-shrink: 0;
    }
}


/* ======================================================
   PROJECTS LIST PAGE
====================================================== */

.projects-header-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    border-bottom: 2px solid #ed1a3b;
    padding-bottom: 5px;
    margin-bottom: 15px;
    flex-wrap: wrap;
}

.projects-title {
    color: #ed1a3b;
    font-weight: 800;
    text-transform: uppercase;
    font-size: 2.2rem;
    margin: 0;
    letter-spacing: 1px;
}

.type-links {
    display: flex;
    gap: 15px;
    align-items: center;
}

.type-link {
    color: #999;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.9rem;
    text-decoration: none;
    transition: color 0.3s;
}

.type-link:hover,
.type-link.active {
    color: #ed1a3b;
}

.type-separator {
    color: #ed1a3b;
}

.category-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    justify-content: flex-end;
    margin-bottom: 30px;
}

.category-btn {
    background: none;
    border: none;
    color: #999;
    font-weight: 700;
    font-size: 0.945rem;
    text-transform: uppercase;
    padding: 0;
    cursor: pointer;
    transition: color 0.3s;
    text-align: center;
    max-width: 165px;
    line-height: 1.2;
}

.category-btn:hover,
.category-btn.active {
    color: #ed1a3b;
}

.project-grid {
    display: flex;
    flex-wrap: wrap;
    margin: -15px -15px 142px -15px !important;
    min-height: 585px !important;
}

.project-grid .project-item {
    width: 33.333%;
    padding: 15px;
    height: auto;
    flex: none;
    filter: none;
    overflow: visible;
}

/* Remove accordion shadow from grid items */
.project-grid .project-item::before {
    display: none !important;
}

.project-card {
    display: block;
    position: relative;
    overflow: hidden;
    width: 100%;
    padding-bottom: 100%;
}

.project-card img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.project-card-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.7) 0%, rgba(0, 0, 0, 0) 60%);
    color: white;
    padding: 20px;
    opacity: 1;
    transition: background 0.4s ease;
    display: flex;
    flex-direction: column;
}

.project-card:hover img {
    transform: scale(1.05);
}

.project-card:hover .project-card-overlay {
    background: linear-gradient(to bottom, rgba(237, 27, 36, 0.9) 0%, rgba(237, 27, 36, 0) 60%);
}

.overlay-title {
    font-weight: 800;
    font-size: 1rem;
    text-transform: uppercase;
    margin-bottom: 2px;
}

.overlay-country {
    font-size: 0.75rem;
    font-weight: 500;
    opacity: 0.85;
}

/* Mobile Category Dropdown */
.cat-dropdown-wrap {
    display: none;
    margin-bottom: 28px;
    position: relative;
}

.cat-dropdown-trigger {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 13px 20px;
    background: #fff;
    color: #222;
    border: 1.5px solid #e0e0e0;
    border-left: 3px solid #ed1a3b;
    font-weight: 700;
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    cursor: pointer;
    clip-path: polygon(0 0, 100% 0, 100% calc(100% - 12px), calc(100% - 12px) 100%, 0 100%);
    user-select: none;
    transition: background 0.2s, border-color 0.2s;
}

.cat-dropdown-trigger:hover {
    background: #fafafa;
    border-color: #ed1a3b;
    border-left-color: #ed1a3b;
}

.cat-dropdown-trigger .cat-dd-arrow {
    width: 22px;
    height: 22px;
    border: 2px solid #ed1a3b;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.35s cubic-bezier(.4, 0, .2, 1);
    flex-shrink: 0;
}

.cat-dropdown-trigger .cat-dd-arrow i {
    font-size: 0.7rem;
    color: #ed1a3b;
    line-height: 1;
}

.cat-dropdown-trigger.open .cat-dd-arrow {
    transform: rotate(180deg);
}

.cat-dropdown-trigger .cat-dd-label {
    flex: 1;
    margin: 0 12px;
}

.cat-dropdown-trigger .cat-dd-label .cat-dd-hint {
    font-size: 0.6rem;
    color: #ed1a3b;
    font-weight: 500;
    letter-spacing: 2px;
    display: block;
    margin-bottom: 1px;
}

.cat-dropdown-panel {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #fff;
    border: 1px solid #f0f0f0;
    border-top: 3px solid #ed1a3b;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.12);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(.4, 0, .2, 1), opacity 0.3s;
    opacity: 0;
    z-index: 50;
    clip-path: polygon(0 0, 100% 0, 100% calc(100% - 12px), calc(100% - 12px) 100%, 0 100%);
}

.cat-dropdown-panel.open {
    max-height: 600px;
    opacity: 1;
}

.cat-dd-option {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 13px 20px;
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #555;
    cursor: pointer;
    border-bottom: 1px solid #f5f5f5;
    transition: color 0.2s, background 0.2s;
}

.cat-dd-option:last-child {
    border-bottom: none;
}

.cat-dd-option:hover {
    color: #ed1a3b;
    background: #fafafa;
}

.cat-dd-option.active {
    color: #ed1a3b;
}

.cat-dd-option.active::before {
    content: '';
    width: 6px;
    height: 6px;
    background: #ed1a3b;
    border-radius: 50%;
    flex-shrink: 0;
}

.cat-dd-option:not(.active)::before {
    content: '';
    width: 6px;
    height: 6px;
    border: 1.5px solid #ccc;
    border-radius: 50%;
    flex-shrink: 0;
}

@media (max-width: 991px) {
    .project-grid .project-item {
        width: 50%;
    }

    .projects-header-row {
        align-items: flex-start;
        flex-direction: column;
        gap: 10px;
    }

    .category-filters {
        justify-content: flex-start;
    }
}

@media (max-width: 768px) {
    .project-grid .project-item {
        width: 100%;
    }

    .type-links {
        flex-wrap: wrap;
    }

    .category-filters {
        display: none;
    }

    .cat-dropdown-wrap {
        display: block;
    }
}


/* ======================================================
   PROJECT DETAIL: Page Header & Gallery
====================================================== */

.page-header {
    margin-bottom: 50px;
}

.page-back-link {
    font-size: 1rem;
    font-weight: 500;
    color: #888;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 5px;
    transition: color 0.3s;
}

.page-back-link:hover {
    color: #eb1e3d;
}

.page-title {
    font-size: 2.5rem;
    font-weight: 800;
    color: #eb1e3d;
    text-transform: uppercase;
    margin-top: 5px;
}

:root {
    --gallery-slope: 4vw;
    --gallery-gap: 15px;
}

.gallery-wrap {
    margin-bottom: 80px;
    width: 100%;
    display: flex;
    flex-direction: column;
}

.row-main-wrap {
    width: 100%;
    clip-path: polygon(0 0, 100% 0, 100% calc(100% - var(--gallery-slope)), 0 100%);
    margin-bottom: 0;
    z-index: 3;
}

.gallery-main-link {
    display: block;
    width: 100%;
}

.row-main-img {
    width: 100%;
    height: 550px;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}

.gallery-main-link:hover .row-main-img {
    transform: scale(1.03);
}

.row-middle-wrap {
    display: flex;
    gap: var(--gallery-gap);
    width: 100%;
    margin-top: calc(-1 * var(--gallery-slope) + var(--gallery-gap));
    clip-path: polygon(0 var(--gallery-slope), 100% 0, 100% calc(100% - var(--gallery-slope)), 0 100%);
    z-index: 2;
}

.row-last-wrap {
    display: flex;
    gap: var(--gallery-gap);
    width: 100%;
    margin-top: calc(-1 * var(--gallery-slope) + var(--gallery-gap));
    clip-path: polygon(0 var(--gallery-slope), 100% 0, 100% 100%, 0 100%);
    z-index: 1;
}

.gallery-sub-link {
    flex: 1 1 0;
    min-width: 0;
    display: block;
    overflow: hidden;
}

.gallery-sub-img {
    width: 100%;
    height: 380px;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}

.gallery-sub-link:hover .gallery-sub-img {
    transform: scale(1.05);
}

@media (max-width: 768px) {

    .gallery-wrap,
    .row-main-wrap,
    .row-middle-wrap,
    .row-last-wrap {
        display: block !important;
        clip-path: none !important;
        margin-top: 0 !important;
        margin-bottom: 0 !important;
        z-index: auto !important;
        overflow: visible !important;
    }

    .row-main-wrap {
        clip-path: polygon(0 0, 100% 0, 100% 100%, 0 calc(100% - 6vw)) !important;
    }

    .row-main-img {
        height: 240px !important;
    }

    .gallery-sub-link {
        display: block !important;
        width: 100% !important;
        margin-top: 0 !important;
        margin-bottom: 6px !important;
        clip-path: polygon(0 0, 100% 6vw, 100% 100%, 0 calc(100% - 6vw)) !important;
    }

    .gallery-sub-img {
        height: 220px !important;
    }

    .row-last-wrap .gallery-sub-link:last-child {
        clip-path: polygon(0 0, 100% 6vw, 100% 100%, 0 calc(100% - 9vw)) !important;
    }
}


/* ======================================================
   CONTACT PAGE
====================================================== */

.contact-container {
    padding: 50px 0;
    font-family: inherit;
}

.contact-header {
    margin-bottom: 50px;
}

.contact-back-link {
    font-size: 1rem;
    font-weight: 500;
    color: #888;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 5px;
    transition: color 0.3s;
}

.contact-back-link:hover {
    color: #eb1e3d;
}

.contact-title {
    font-size: 2.5rem;
    font-weight: 800;
    color: #eb1e3d;
    text-transform: uppercase;
    margin-top: 5px;
}

.branch-box {
    margin-bottom: 40px;
    padding-right: 20px;
}

.branch-title {
    color: #eb1e3d;
    font-weight: 700;
    font-size: 1.1rem;
    margin-bottom: 15px;
    text-transform: uppercase;
}

.branch-info-row {
    display: flex;
    align-items: flex-start;
    margin-bottom: 15px;
    gap: 10px;
    font-size: 0.85rem;
    color: #333;
    font-weight: 500;
}

.branch-info-row i {
    color: #eb1e3d;
    font-size: 1.2rem;
    margin-top: 2px;
}

.contact-form-section {
    margin-top: 50px;
}

.contact-form-title {
    font-size: 0.95rem;
    font-weight: 700;
    color: #111;
    margin-bottom: 25px;
}

.form-control-custom {
    border: 1px solid #dcdcdc;
    border-radius: 30px;
    padding: 12px 20px;
    font-size: 0.9rem;
    font-weight: 500;
    color: #555;
    background-color: #fff;
}

.form-control-custom::placeholder {
    color: #aaa;
}

.form-control-custom:focus {
    border-color: #eb1e3d;
    box-shadow: none;
    outline: none;
}

.textarea-custom {
    border-radius: 20px;
    resize: none;
    padding: 15px 20px;
}

.btn-submit-red {
    background-color: #eb1e3d;
    color: white;
    border: none;
    padding: 10px 35px;
    border-radius: 30px;
    font-weight: 700;
    font-size: 0.95rem;
    transition: background-color 0.3s;
}

.btn-submit-red:hover {
    background-color: #d1122d;
    color: white;
}

@media (max-width: 768px) {
    .contact-container {
        padding: 30px 16px;
    }
}


/* ======================================================
   SEARCH PAGE
====================================================== */

.search-page {
    padding: 60px 0 80px;
    min-height: 60vh;
}

.search-header {
    margin-bottom: 48px;
}

.search-header h1 {
    font-size: 2rem;
    font-weight: 900;
    color: #111;
}

.search-header .hit-count {
    font-size: 0.85rem;
    color: #888;
    margin-top: 4px;
}

.search-query-word {
    color: #ed1a3b;
}

.search-form-wrap {
    margin-bottom: 48px;
}

.search-form-wrap .search-input {
    height: 56px;
    border-radius: 28px;
    border: 2px solid #e5e5e5;
    padding: 0 60px 0 24px;
    font-size: 1rem;
    font-weight: 500;
    width: 100%;
    outline: none;
    transition: border-color 0.2s;
}

.search-form-wrap .search-input:focus {
    border-color: #ed1a3b;
}

.search-form-wrap .search-btn {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: #ed1a3b;
    border: none;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.2s;
}

.search-form-wrap .search-btn:hover {
    background: #c41118;
}

.result-card {
    display: flex;
    gap: 20px;
    align-items: flex-start;
    padding: 20px 0;
    border-bottom: 1px solid #f0f0f0;
    text-decoration: none;
    color: inherit;
    transition: padding-left 0.2s;
}

.result-card:last-child {
    border-bottom: none;
}

.result-card:hover {
    padding-left: 6px;
}

.result-card:hover .result-title {
    color: #ed1a3b;
}

.result-icon-wrap {
    width: 48px;
    height: 48px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    flex-shrink: 0;
    color: #fff;
}

.result-thumb {
    width: 80px;
    height: 60px;
    object-fit: cover;
    border-radius: 8px;
    flex-shrink: 0;
}

.result-type {
    display: inline-block;
    font-size: 0.65rem;
    font-weight: 800;
    letter-spacing: 1px;
    text-transform: uppercase;
    padding: 2px 8px;
    border-radius: 20px;
    margin-bottom: 6px;
    color: #fff;
}

.result-title {
    font-size: 1rem;
    font-weight: 700;
    color: #111;
    margin-bottom: 4px;
    transition: color 0.2s;
}

.result-desc {
    font-size: 0.82rem;
    color: #777;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.result-url {
    font-size: 0.7rem;
    color: #aaa;
    margin-top: 4px;
}

.empty-state {
    text-align: center;
    padding: 80px 20px;
}

.empty-state i {
    font-size: 3rem;
    color: #ddd;
    display: block;
    margin-bottom: 16px;
}

.empty-state h3 {
    font-size: 1.2rem;
    font-weight: 700;
    color: #555;
    margin-bottom: 8px;
}

.empty-state p {
    font-size: 0.88rem;
    color: #999;
}

.filter-bar {
    margin-bottom: 24px;
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.filter-btn {
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.4px;
    text-transform: uppercase;
    padding: 6px 14px;
    border-radius: 20px;
    border: 1.5px solid #e5e5e5;
    background: #fff;
    cursor: pointer;
    transition: all 0.15s;
    color: #555;
}

.filter-btn.active,
.filter-btn:hover {
    background: #111;
    border-color: #111;
    color: #fff;
}


/* ======================================================
   ORGANIZATION CHART PAGE
====================================================== */

.org-banner {
    background: linear-gradient(135deg, #111111 0%, #2a2a2a 100%);
    padding: 80px 0 60px;
    position: relative;
    overflow: hidden;
}

.org-banner::before {
    content: "";
    position: absolute;
    top: -50px;
    right: -50px;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(237, 27, 36, 0.15) 0%, rgba(0, 0, 0, 0) 70%);
    border-radius: 50%;
}

.org-header-title {
    color: #fff;
    font-weight: 700;
    font-size: 2.5rem;
    position: relative;
    z-index: 2;
}

.org-header-line {
    width: 60px;
    height: 4px;
    background-color: #ed1a3b;
    margin: 20px auto;
    border-radius: 2px;
}

.org-tabs .nav-link.active {
    background-color: #f12140;
    color: white !important;
    border-color: #f12140 !important;
}

.org-tabs .nav-link {
    background-color: transparent;
    color: #f12140;
    border: 1px solid #f12140;
    transition: all 0.3s ease;
}

.org-tabs .nav-link:hover {
    background-color: #fce4e8;
    color: #f12140 !important;
}

.org-v2 {
    font-family: inherit;
    color: #444;
    padding-top: 30px;
    padding-bottom: 50px;
    overflow-x: auto;
}

.img-node {
    display: flex;
    align-items: center;
    position: relative;
    z-index: 3;
    background: transparent;
    margin-bottom: 20px;
}

.img-circle {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
    color: white;
    flex-shrink: 0;
    box-shadow: none;
}

.img-text {
    margin-left: 15px;
    font-size: 1.05rem;
    font-weight: 500;
    color: #444;
    white-space: nowrap;
}

.img-color-0 {
    background-color: #eb1e3d;
}

.img-color-1 {
    background-color: #f2314d;
}

.img-color-2 {
    background-color: #b8b8b8;
}

.level-1-container {
    position: relative;
    margin-left: 30px;
}

.level-1-row {
    position: relative;
    display: flex;
    flex-direction: row;
    align-items: center;
    padding-left: 40px;
}

.level-1-row::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 1px;
    background-color: #f6a1ab;
    z-index: 1;
}

.level-1-row:first-child::before {
    top: -20px;
}

.level-1-row:last-child::before {
    bottom: 50%;
}

.level-1-row::after {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    width: 40px;
    height: 1px;
    background-color: #f6a1ab;
}

.connector-bridge {
    position: relative;
    min-width: 80px;
    max-width: 200px;
    flex-grow: 1;
}

.connector-bridge::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background-color: #cfcfcf;
}

.level-2-container {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.level-2-row {
    position: relative;
    padding-left: 30px;
    display: flex;
    flex-direction: row;
    align-items: center;
}

.level-2-row::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 1px;
    background-color: #cfcfcf;
}

.level-2-row:first-child::before {
    top: 50%;
}

.level-2-row:last-child::before {
    bottom: 50%;
}

.level-2-row:first-child:last-child::before {
    display: none;
}

.level-2-row::after {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    width: 30px;
    height: 1px;
    background-color: #cfcfcf;
}


/* ======================================================
   PAGE DETAIL (GrapesJS content)
====================================================== */

.page-content {
    margin: 0 auto;
    font-size: 1rem;
    line-height: 1.8;
    padding-bottom: 80px;
}

/* ── Rich Text List Styles ─────────────────────────── */

.page-content ul,
.page-content ol {
    list-style: none;
    padding-left: 0;
    margin: 1.2rem 0 1.5rem;
}

/* Unordered list items */
.page-content ul>li {
    position: relative;
    padding: 0.45rem 0 0.45rem 2rem;
    color: #333;
    font-size: 0.97rem;
    line-height: 1.7;
    border-bottom: 1px solid #f3f3f3;
    transition: background 0.15s;
}

.page-content ul>li:last-child {
    border-bottom: none;
}

/* Red chevron marker */
.page-content ul>li::before {
    content: '\f285';
    /* bi-chevron-right */
    font-family: 'Bootstrap Icons';
    position: absolute;
    left: 0.2rem;
    top: 0.5rem;
    font-size: 0.65rem;
    color: #ed1a3b;
    font-weight: 700;
    line-height: 1.7;
}

/* Ordered list items */
.page-content ol {
    counter-reset: ae-counter;
}

.page-content ol>li {
    position: relative;
    padding: 0.45rem 0 0.45rem 2.6rem;
    color: #333;
    font-size: 0.97rem;
    line-height: 1.7;
    border-bottom: 1px solid #f3f3f3;
    counter-increment: ae-counter;
}

.page-content ol>li:last-child {
    border-bottom: none;
}

.page-content ol>li::before {
    content: counter(ae-counter, decimal-leading-zero);
    position: absolute;
    left: 0;
    top: 0.45rem;
    font-size: 0.72rem;
    font-weight: 800;
    color: #ed1a3b;
    letter-spacing: 0.5px;
    line-height: 1.7;
    width: 2rem;
}

/* Nested lists */
.page-content ul ul,
.page-content ol ol,
.page-content ul ol,
.page-content ol ul {
    margin: 0.3rem 0 0.3rem 1.2rem;
    border-left: 2px solid #f0f0f0;
    padding-left: 0.8rem;
}

.page-content ul ul>li::before {
    content: '–';
    font-family: inherit;
    font-size: 0.8rem;
    color: #aaa;
    top: 0.45rem;
    left: 0.1rem;
}


.list-item-card {
    display: block;
    text-decoration: none;
    color: inherit;
    margin-bottom: 30px;
    border-radius: 8px;
    overflow: hidden;
    background: #fff;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.list-item-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.list-item-img {
    width: 100%;
    height: 240px;
    object-fit: cover;
}

.list-item-title {
    padding: 20px;
    font-size: 1.15rem;
    font-weight: 700;
    color: #111;
    margin: 0;
    transition: color 0.2s;
}

.list-item-card:hover .list-item-title {
    color: #ed1a3b;
}


/* ======================================================
   MEGAMENU (Components/Menu)
====================================================== */

.arenes-nav .nav-link {
    color: #1a1a1a;
    font-weight: 800;
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 0.6px;
    padding: 0.5rem 1rem;
    white-space: nowrap;
    position: relative;
    transition: color 0.2s;
    cursor: pointer;
    user-select: none;
}

.arenes-nav .nav-link::after {
    content: '';
    position: absolute;
    bottom: -3px;
    left: 1rem;
    right: 1rem;
    height: 2px;
    background: #ed1a3b;
    transform: scaleX(0);
    transform-origin: left center;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: none;
}

.arenes-nav .nav-link:hover::after,
.arenes-nav .nav-link.am-active::after,
.nav-item.am-open>.nav-link::after {
    transform: scaleX(1);
}

.arenes-nav .nav-link:hover,
.arenes-nav .nav-link.am-active,
.nav-item.am-open>.nav-link {
    color: #ed1a3b;
}

.am-caret {
    display: inline-block;
    font-size: 0.6rem;
    margin-left: 5px;
    vertical-align: middle;
    opacity: 0.5;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.2s;
}

.nav-item.am-open>.nav-link .am-caret {
    transform: rotate(180deg);
    opacity: 1;
}

.am-mega {
    position: fixed;
    left: 0;
    right: 0;
    z-index: 9100;
    display: none;
    opacity: 0;
    transform: translateY(-10px);
    transition: opacity 0.28s ease, transform 0.28s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.16);
    pointer-events: none;
}

.am-mega.am-visible {
    display: flex;
}

.am-mega.am-open {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.am-mega-inner {
    display: flex;
    width: 100%;
    min-height: 320px;
    max-height: 362px;
}

.am-img-panel {
    position: relative;
    width: 45%;
    flex-shrink: 0;
    overflow: hidden;
    background: #1a1a1a;
}

.am-img-panel img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.75;
    transition: transform 6s ease, opacity 0.3s;
    transform: scale(1.04);
}

.am-mega.am-open .am-img-panel img {
    transform: scale(1);
}

.am-img-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to right, rgba(0, 0, 0, 0.6) 0%, rgba(0, 0, 0, 0.1) 100%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 36px 40px;
}

.am-img-title {
    font-size: 2.2rem;
    font-weight: 900;
    color: #fff;
    text-transform: uppercase;
    line-height: 1.1;
    letter-spacing: 0;
    margin-bottom: 12px;
}

.am-img-more {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: rgba(255, 255, 255, 0.65);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    text-decoration: none;
    transition: color 0.2s, gap 0.2s;
}

.am-img-more:hover {
    color: #fff;
    gap: 14px;
}

.am-img-more i {
    font-size: 0.7rem;
}

.am-list-panel {
    flex: 1;
    background: #fff;
    padding: 0 56px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    overflow-y: auto;
}

.am-list-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 0;
    border-bottom: 1px solid #f0f0f0;
    text-decoration: none;
    color: #222;
    font-size: 0.92rem;
    font-weight: 600;
    letter-spacing: 0.2px;
    transition: color 0.2s, padding-left 0.2s;
    position: relative;
}

.am-list-item:last-child {
    border-bottom: none;
}

.am-list-item:hover {
    color: #ed1a3b;
    padding-left: 6px;
}

.am-list-arrow {
    color: #ed1a3b;
    font-size: 0.65rem;
    flex-shrink: 0;
    transition: transform 0.2s;
}

.am-list-item:hover .am-list-arrow {
    transform: translateX(4px);
}

#am-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.3);
    z-index: 100;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.28s ease;
}

#am-backdrop.am-bd-on {
    opacity: 1;
    pointer-events: auto;
}

ae-project-header {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    border-top: 1px solid #d1d1d1;
    border-bottom: 1px solid #d1d1d1;
    padding: 24px 0;
    margin-bottom: 30px;
}

ae-project-header .ae-meta {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 10px;
    min-width: 200px;
}

ae-project-header .ae-meta svg {
    flex-shrink: 0;
}

ae-project-header .ae-meta-label {
    display: block;
    font-size: 11px;
    color: #777;
    text-transform: uppercase;
}

ae-project-header .ae-meta-value {
    display: block;
    font-weight: 700;
    font-size: 14px;
    color: #222;
}

ae-project-title {
    display: block;
    color: #ed1a3b;
    font-weight: 800;
    text-transform: uppercase;
    font-size: 24px;
    margin-bottom: 15px;
}

ae-project-body {
    display: block;
    font-size: 15px;
    line-height: 1.8;
    color: #333;
    margin-bottom: 15px;
}


/* ======================================================
   NEWS MODULE
====================================================== */

.ae-news-hero {
    background: linear-gradient(135deg, #111 0%, #222 100%);
    padding: 72px 0 56px;
    position: relative;
    overflow: hidden;
}

.ae-news-hero::before {
    content: '';
    position: absolute;
    top: -80px;
    right: -80px;
    width: 350px;
    height: 350px;
    background: radial-gradient(circle, rgba(237, 27, 36, 0.18) 0%, transparent 70%);
    border-radius: 50%;
}

.ae-news-hero-title {
    color: #fff;
    font-size: 2.6rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: -0.5px;
    position: relative;
    z-index: 2;
    margin-bottom: 8px;
}

.ae-news-hero-sub {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.88rem;
    position: relative;
    z-index: 2;
    margin: 0;
}

.ae-news-card {
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: inherit;
    border-radius: 12px;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 100%;
}

.ae-news-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.12);
}

.ae-news-card-img-wrap {
    position: relative;
    overflow: hidden;
    aspect-ratio: 16/10;
    background: #f5f5f5;
    flex-shrink: 0;
}

.ae-news-card-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
    transition: transform 0.5s ease;
}

.ae-news-card:hover .ae-news-card-img {
    transform: scale(1.06);
}

.ae-news-no-img {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    color: #ccc;
}

.ae-news-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    background: #ed1a3b;
    color: #fff;
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.8px;
    text-transform: uppercase;
    padding: 4px 10px;
    border-radius: 20px;
}

.ae-news-card-body {
    padding: 20px 22px 24px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.ae-news-card-date {
    font-size: 0.75rem;
    color: #aaa;
    margin-bottom: 10px;
    font-weight: 500;
}

.ae-news-card-title {
    font-size: 1.05rem;
    font-weight: 800;
    color: #111;
    line-height: 1.4;
    margin-bottom: 10px;
    transition: color 0.2s;
}

.ae-news-card:hover .ae-news-card-title {
    color: #ed1a3b;
}

.ae-news-card-desc {
    font-size: 0.87rem;
    color: #666;
    line-height: 1.65;
    flex: 1;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-bottom: 16px;
}

.ae-news-read-more {
    font-size: 0.78rem;
    font-weight: 800;
    color: #ed1a3b;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: flex;
    align-items: center;
    gap: 6px;
    margin-top: auto;
    transition: gap 0.2s;
}

.ae-news-card:hover .ae-news-read-more {
    gap: 10px;
}

.ae-pagination .page-link {
    border-radius: 8px !important;
    margin: 0 3px;
    border: 1.5px solid #e5e5e5;
    color: #444;
    font-weight: 600;
    font-size: 0.88rem;
    padding: 8px 14px;
    transition: all 0.2s;
}

.ae-pagination .page-item.active .page-link {
    background: #ed1a3b;
    border-color: #ed1a3b;
    color: #fff;
}

.ae-pagination .page-link:hover {
    background: #f9f9f9;
    border-color: #ed1a3b;
    color: #ed1a3b;
}

.ae-news-back {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #888;
    font-size: 0.82rem;
    font-weight: 600;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 20px;
    transition: color 0.2s;
}

.ae-news-back:hover {
    color: #ed1a3b;
}

.ae-news-detail-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 16px;
}

.ae-news-detail-date {
    font-size: 0.82rem;
    color: #999;
    font-weight: 500;
}

.ae-news-detail-title {
    font-size: 2.2rem;
    font-weight: 900;
    color: #111;
    line-height: 1.25;
    margin-bottom: 20px;
}

.ae-news-detail-lead {
    font-size: 1.12rem;
    color: #555;
    line-height: 1.75;
    border-left: 3px solid #ed1a3b;
    padding-left: 20px;
    margin-bottom: 32px;
    font-style: italic;
}

.ae-news-detail-cover {
    margin-bottom: 40px;
    border-radius: 12px;
    overflow: hidden;
    aspect-ratio: 16 / 7;
    width: 100%;
}

.ae-news-detail-cover-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
    display: block;
}

.ae-news-detail-content {
    margin-bottom: 48px;
}

.ae-news-back-bottom {
    border-top: 1px solid #f0f0f0;
    padding-top: 32px;
}

@media (max-width: 768px) {
    .ae-news-hero-title {
        font-size: 1.8rem;
    }

    .ae-news-detail-title {
        font-size: 1.5rem;
    }
}

/* ======================================================
   PARAMETRIC DROPDOWN FILTERS
====================================================== */
.parametric-filters {
    margin-bottom: 2rem;
}

.parametric-dropdown-wrap {
    position: relative;
    width: 100%;
}

.parametric-dropdown-trigger {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 24px;
    background: #fff;
    border: 1px solid #eaeaea;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03);
}

.parametric-dropdown-trigger:hover,
.parametric-dropdown-trigger.open {
    border-color: #ed1a3b;
    box-shadow: 0 8px 25px rgba(237, 26, 59, 0.1);
}

.para-dd-label {
    display: flex;
    flex-direction: column;
}

.para-dd-hint {
    font-size: 0.65rem;
    text-transform: uppercase;
    font-weight: 700;
    color: #888;
    letter-spacing: 1px;
    margin-bottom: 2px;
}

.para-dd-selected {
    font-size: 1rem;
    font-weight: 700;
    color: #222;
}

.para-dd-arrow {
    color: #ed1a3b;
    font-size: 1.2rem;
    transition: transform 0.3s ease;
}

.parametric-dropdown-trigger.open .para-dd-arrow {
    transform: rotate(180deg);
}

.parametric-dropdown-panel {
    position: absolute;
    top: calc(100% + 10px);
    left: 0;
    width: 100%;
    background: #fff;
    border-radius: 8px;
    border: 1px solid #eaeaea;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.08);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 100;
    padding: 8px 0;
    max-height: 350px;
    overflow-y: auto;
}

.parametric-dropdown-panel.open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.para-dd-option {
    display: block;
    padding: 10px 24px;
    color: #555;
    font-size: 0.95rem;
    font-weight: 500;
    text-decoration: none;
    cursor: pointer;
    transition: background 0.2s, color 0.2s;
}

.para-dd-option:hover {
    background: #fdfdfd;
    color: #ed1a3b;
}

.para-dd-option.active {
    background: rgba(237, 26, 59, 0.05);
    color: #ed1a3b;
    font-weight: 700;
    border-left: 3px solid #ed1a3b;
}

/* Pure CSS Mega Menu overrides */
.arenes-nav .nav-item {
    position: static !important;
    /* Allow am-mega to be relative to header */
}

.arenes-nav .nav-link {
    position: relative;
    /* For the red underline */
}

/* Keep the nav links strictly above the backdrop to prevent flicker */
.nav-item[data-mega-trigger]>.nav-link {
    z-index: 200;
}

/* Bridge the visual gap completely */
.nav-item[data-mega-trigger]>.nav-link::before {
    content: "";
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    height: 60px;
    z-index: 10;
    pointer-events: auto;
}

/* Anchor to the full sticky header, including the utility bar, at any height. */
.am-mega {
    position: absolute !important;
    top: 100% !important;
    left: 0 !important;
    right: 0 !important;
    margin: 0;
    z-index: 1050 !important;
    /* Stacked above the body backdrop (1030) */

    /* Webuild-style reveal: stationary panel, short grouped content fade. */
    display: flex !important;
    visibility: hidden;
    opacity: 1 !important;
    transform: none !important;
    clip-path: none !important;
    pointer-events: none;
    transition: visibility 0s linear 80ms !important;
}

/* Hover States - PURE CSS */
.nav-item[data-mega-trigger]:hover .am-mega {
    visibility: visible !important;
    opacity: 1 !important;
    transform: none !important;
    clip-path: none !important;
    pointer-events: auto !important;
    transition: visibility 0s !important;
}

/* Reveal the complete group together; avoid per-item slide/stagger and photo zoom. */
.am-mega-inner {
    opacity: 0;
    transition: opacity 160ms ease;
}
.nav-item[data-mega-trigger]:hover .am-mega-inner {
    opacity: 1;
    transition: opacity 220ms ease 80ms;
}
.am-mega .am-list-item,
.am-mega .am-img-title,
.am-mega .am-img-more {
    opacity: 1;
    transform: none;
    transition: color 180ms ease, background-color 180ms ease;
}
.am-mega .am-img-panel img,
.am-mega.am-open .am-img-panel img {
    transform: none;
    transition: none;
}
.nav-item[data-mega-trigger]:hover>.nav-link .am-caret {
    transform: rotate(180deg);
    opacity: 1;
}

.nav-item[data-mega-trigger]:hover>.nav-link {
    color: #ed1a3b;
}

.nav-item[data-mega-trigger]:hover>.nav-link::after {
    transform: scaleX(1);
}

/* Backdrop trigger using modern CSS :has() */
body:has(.nav-item[data-mega-trigger]:hover) #am-backdrop {
    opacity: 1;
    pointer-events: auto;
    transition: opacity 220ms ease !important;
}

#am-backdrop {
    z-index: 1030 !important;
    /* Positioned at body level, stacked exactly below header (1040) */
    background: rgba(0, 0, 0, 0.4) !important;
    transition: opacity 160ms ease !important;
}

@media (prefers-reduced-motion: reduce) {
    .am-mega, .am-mega-inner, #am-backdrop { transition: none !important; }
}

/* Desktop: brand and utilities above a full-width navigation row. */
@media (min-width:1200px) {
    .header-main.container { width:96%; max-width:1880px; padding-top:20px; padding-bottom:0; }
    .header-brand-row { display:grid; grid-template-columns:190px minmax(0,1fr) auto auto auto; align-items:center; margin:0; padding-bottom:20px; }
    .header-brand-row > :first-child { grid-column:1; grid-row:1; width:190px; padding:0; }
    .header-main .arenes-logo img { width:190px; max-width:100%; }
    .header-tools { display:contents !important; }
    .header-tools .utility-bar, .header-tools .utility-inner { display:contents; }
    .header-tools .utility-worldwide { grid-column:5; grid-row:1; justify-self:end; margin:0 0 0 16px; }
    .header-tools .utility-control { grid-column:3; grid-row:1; justify-self:end; margin:0; }
    .header-tools .utility-language { grid-column:4; grid-row:1; justify-self:end; width:82px; padding:0 17px; border-right:1px solid #ddd; }
    .header-navigation { border-top:1px solid #eee; padding:12px 0; }
    .header-navigation .arenes-nav { justify-content:space-between !important; gap:8px; }
    .header-navigation .arenes-nav > * { flex:0 1 auto; min-width:min-content; }
    .header-navigation .arenes-nav .nav-link { font-size:14px; letter-spacing:0; padding:8px 0; margin:0; white-space:nowrap; text-align:left; line-height:1.4; }
    .header-navigation .am-caret { margin-left:3px; font-size:.55rem; }
}
@media (min-width:1200px) and (max-width:1599px) {
    .header-navigation .arenes-nav > :nth-child(4) .nav-link,
    .header-navigation .arenes-nav > :nth-child(5) .nav-link,
    .header-navigation .arenes-nav > :nth-child(7) .nav-link { white-space:normal; }
}
/* Shared black footer, matching the 2026 homepage on every public page. */
body .arenes-footer{background:#050505;clip-path:none;margin-top:0;padding-top:50px!important;padding-bottom:30px}
body .arenes-footer .container{max-width:1440px!important;width:84%}
body #newsletterBtn{background:#ed0926!important}
body .arenes-footer h4{font-size:23px!important}
body .arenes-footer .footer-links a:hover{color:#ff4963}
body .arenes-footer .row{row-gap:24px}
@media(max-width:767px){body .arenes-footer .container{width:90%}}
body .arenes-footer .col-lg-3:first-child>.mb-4.d-flex{flex-wrap:wrap;gap:5px 0}
body .arenes-footer .col-lg-3:first-child>.mb-4.d-flex span{white-space:nowrap}
/* Responsive CMS content and vertical organization hierarchy. */
.page-content img{max-width:100%;height:auto}
.page-content [class*="col-"]{min-width:0}
.org-v2{justify-content:safe center!important}
.org-v2>div{flex-shrink:0}
@media(max-width:991px){
 .cms-about-page{overflow-wrap:anywhere;padding-bottom:32px}
 .cms-about-page>div:first-child{display:grid!important;grid-template-columns:minmax(0,1fr);gap:24px!important;margin-left:0;margin-right:0}
 .cms-about-page>div:first-child>div{width:100%;min-width:0;padding-left:0;padding-right:0}
 .cms-about-page>div:first-child img{display:block;width:100%!important;max-width:540px;margin:0 auto;height:auto!important}
 .cms-about-page h2{font-size:clamp(24px,5vw,32px)}
 .cms-about-page h3{font-size:22px;margin-top:28px}
 .cms-about-page h4{font-size:20px;overflow-wrap:anywhere}
 .cms-about-page p{font-size:16px;line-height:1.75}
 .org-page .org-tabs{margin-bottom:24px!important;padding:0 12px}
 .org-page .org-tabs .nav-link{white-space:normal;font-size:14px}
 .org-page .org-v2{display:block!important;padding:8px 12px 28px;overflow:visible}
 .org-page .org-v2>div{width:100%;min-width:0}
 .org-page .img-node{width:100%;min-width:0;margin-bottom:12px;align-items:flex-start;background:#f8fafb;border:1px solid #edf0f3;border-radius:10px;padding:12px}
 .org-page .img-circle{width:38px;height:38px;font-size:20px}
 .org-page .img-text{white-space:normal;overflow-wrap:anywhere;min-width:0;margin-left:10px;font-size:15px;line-height:1.5}
 .org-page .img-text.small,.org-page .img-text .small{font-size:13px!important}
 .org-page .level-1-container{margin-left:16px;border-left:2px solid #f3c0ca;padding-left:12px}
 .org-page .level-1-row,.org-page .level-2-row{display:block;padding-left:0;min-width:0}
 .org-page .level-2-container{display:block;margin:10px 0 16px 10px;padding-left:10px;border-left:1px solid #dce1e5;min-width:0}
 .org-page .level-1-row::before,.org-page .level-1-row::after,.org-page .level-2-row::before,.org-page .level-2-row::after,.org-page .connector-bridge{display:none}
}
