/* ESG New Profile Page Styles */
.custom-container {
    width: 100%;
    padding: 0px 80px;
}

@media (max-width: 768px) {
    .custom-container {
        width: 100%;
        padding: 0px 20px;
    }
}

.desktop {
    display: block;
}

.mobile {
    display: none;
}

@media (max-width: 768px) {
    .desktop {
        display: none;
    }

    .mobile {
        display: block;
    }
}

body,
body .wrapper {
    background: #FFF9F4 !important;
}

section {
    background: #FFF9F4 !important;
}

/* --------------------------------------------------------------------------
   1. Header Base
   -------------------------------------------------------------------------- */
.esg-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 9999;
    padding: 0;
    background: transparent;
    transition: background-color 0.3s ease, box-shadow 0.3s ease, padding 0.3s ease;
}

.esg-header.esg-header--scrolled {
    background-color: #fff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
}

.esg-header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 25px 0;
    min-height: 100px;
    transition: padding 0.3s ease;
}

.esg-header.esg-header--scrolled .esg-header__inner {
    padding: 12px 0;
}

/* --------------------------------------------------------------------------
   2. Logo
   -------------------------------------------------------------------------- */
.esg-header__logo {
    flex-shrink: 0;
}

.esg-header__logo a {
    display: inline-block;
    text-decoration: none;
}

.esg-header__logo-img {
    height: 36px;
    width: auto;
    display: block;
    transition: opacity 0.3s ease;
}

.esg-header__logo-dark {
    display: none;
}

.esg-header__logo-white {
    display: block;
}

.esg-header.esg-header--scrolled .esg-header__logo-dark {
    display: block;
}

.esg-header.esg-header--scrolled .esg-header__logo-white {
    display: none;
}

/* --------------------------------------------------------------------------
   3. Navigation
   -------------------------------------------------------------------------- */
.esg-header__nav {
    display: flex;
    align-items: center;
    gap: 0;
}

.esg-header__menu {
    display: flex;
    align-items: center;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 0;
}

.esg-header__menu-item {
    position: relative;
}

.esg-header__menu-link {
    display: inline-block;
    padding: 8px 18px;
    font-size: 15px;
    line-height: 18px;
    font-weight: 300;
    font-family: 'Manrope', sans-serif;
    color: #E6E7E8;
    text-decoration: none;
    text-transform: capitalize;
    letter-spacing: 0.3px;
    transition: color 0.3s ease, opacity 0.3s ease;
    white-space: nowrap;
    font-family: inherit;
}

.esg-header__menu-link:hover,
.esg-header__menu-link:focus {
    color: #fff;
    opacity: 0.75;
    text-decoration: none;
}

.esg-header.esg-header--scrolled .esg-header__menu-link {
    color: #212121;
}

.esg-header.esg-header--scrolled .esg-header__menu-link:hover,
.esg-header.esg-header--scrolled .esg-header__menu-link:focus {
    color: #E8611A;
    opacity: 1;
}

/* --------------------------------------------------------------------------
   4. Search Button
   -------------------------------------------------------------------------- */
.esg-header__search {
    margin-left: 10px;
    flex-shrink: 0;
}

.esg-header__search-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    background: none;
    border: none;
    cursor: pointer;
    padding: 6px;
    outline: none;
    transition: opacity 0.3s ease;
}

.esg-header__search-btn:hover {
    opacity: 0.7;
}

.esg-header__search-btn svg path {
    fill: #fff;
    transition: fill 0.3s ease;
}

.esg-header.esg-header--scrolled .esg-header__search-btn svg path {
    fill: #212121;
}

/* --------------------------------------------------------------------------
   5. Mobile Toggle
   -------------------------------------------------------------------------- */
.esg-header__toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px 4px;
    flex-direction: column;
    gap: 5px;
    z-index: 10001;
    outline: none;
}

.esg-header__toggle-bar {
    display: block;
    width: 24px;
    height: 2px;
    background-color: #fff;
    border-radius: 2px;
    transition: transform 0.3s ease, opacity 0.3s ease, background-color 0.3s ease;
}

.esg-header.esg-header--scrolled .esg-header__toggle-bar {
    background-color: #212121;
}

.esg-header__toggle.active .esg-header__toggle-bar:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.esg-header__toggle.active .esg-header__toggle-bar:nth-child(2) {
    opacity: 0;
}

.esg-header__toggle.active .esg-header__toggle-bar:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* --------------------------------------------------------------------------
   6. Fullscreen Search Overlay
   -------------------------------------------------------------------------- */
.esg-search-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.92);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.35s ease, visibility 0.35s ease;
}

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

.esg-search-overlay__close {
    position: absolute;
    top: 30px;
    right: 40px;
    background: none;
    border: none;
    color: #fff;
    font-size: 30px;
    cursor: pointer;
    padding: 8px;
    outline: none;
    transition: opacity 0.3s ease;
}

.esg-search-overlay__close:hover {
    opacity: 0.7;
}

.esg-search-overlay__inner {
    width: 100%;
    max-width: 680px;
    padding: 0 20px;
}

.esg-search-overlay__form {
    display: flex;
    align-items: center;
    border-bottom: 2px solid rgba(255, 255, 255, 0.4);
    padding-bottom: 10px;
}

.esg-search-overlay__input {
    flex: 1;
    background: transparent;
    border: none;
    outline: none;
    color: #fff;
    font-size: 22px;
    font-weight: 300;
    padding: 10px 0;
    font-family: inherit;
}

.esg-search-overlay__input::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.esg-search-overlay__submit {
    background: none;
    border: none;
    color: #fff;
    font-size: 20px;
    cursor: pointer;
    padding: 10px;
    outline: none;
    transition: opacity 0.3s ease;
}

.esg-search-overlay__submit:hover {
    opacity: 0.7;
}

/* --------------------------------------------------------------------------
   7. Responsive - Tablet
   -------------------------------------------------------------------------- */
@media (max-width: 991px) {
    .esg-header__toggle {
        display: flex;
    }

    .esg-header__nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 280px;
        height: 100vh;
        background: #fff;
        flex-direction: column;
        align-items: flex-start;
        padding: 80px 20px 30px;
        box-shadow: -4px 0 20px rgba(0, 0, 0, 0.12);
        transition: right 0.35s ease;
        z-index: 10000;
        overflow-y: auto;
    }

    .esg-header__nav.active {
        right: 0;
    }

    .esg-header__menu {
        flex-direction: column;
        align-items: flex-start;
        width: 100%;
        gap: 0;
    }

    .esg-header__menu-item {
        width: 100%;
        border-bottom: 1px solid #f0f0f0;
    }

    .esg-header__menu-link {
        color: #212121;
        padding: 14px 10px;
        font-size: 14px;
        display: block;
        width: 100%;
    }

    .esg-header__menu-link:hover,
    .esg-header__menu-link:focus {
        color: #E8611A;
        opacity: 1;
    }

    .esg-header__search {
        margin-left: 0;
        margin-top: 15px;
        padding: 0 10px;
    }

    .esg-header__search-btn svg path {
        fill: #212121;
    }

    .esg-header__nav::before {
        content: '';
        position: fixed;
        top: 0;
        left: 0;
        width: 100vw;
        height: 100vh;
        background: rgba(0, 0, 0, 0.4);
        z-index: -1;
        opacity: 0;
        visibility: hidden;
        transition: opacity 0.35s ease, visibility 0.35s ease;
    }

    .esg-header__nav.active::before {
        opacity: 1;
        visibility: visible;
    }
}

/* --------------------------------------------------------------------------
   8. Responsive - Mobile
   -------------------------------------------------------------------------- */
@media (max-width: 767px) {
    .esg-header__logo-img {
        height: 28px;
    }

    .esg-header__inner {
        padding: 14px 0;
    }

    .esg-header.esg-header--scrolled .esg-header__inner {
        padding: 10px 0;
    }
}

/* --------------------------------------------------------------------------
   9. Utility
   -------------------------------------------------------------------------- */
body.esg-header-active nav.bootsnav {
    display: none !important;
}

/* ==========================================================================
   ESG Secondary Navigation (Sticky Tab Bar)
   ========================================================================== */

.esg-secondary-nav {
    position: relative;
    width: 100%;
    background: #fff;
    border-bottom: 1px solid #E0E0E0;
    z-index: 9998;
    transition: box-shadow 0.3s ease;
}

.esg-secondary-nav__list {
    display: flex;
    align-items: center;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 0;
    justify-content: space-between;
}

.esg-secondary-nav__item {
    position: relative;
}

.esg-secondary-nav__link {
    display: inline-block;
    padding: 25px 28px;
    font-family: 'Manrope', sans-serif;
    font-size: 15px;
    font-weight: 500;
    color: #555;
    text-decoration: none;
    white-space: nowrap;
    letter-spacing: 0.2px;
    transition: color 0.3s ease;
    position: relative;
}

.esg-secondary-nav__link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 3px;
    background: #F47920;
    border-radius: 2px 2px 0 0;
    transition: width 0.3s ease, left 0.3s ease;
}

.esg-secondary-nav__link:hover {
    color: #F47920;
    text-decoration: none;
}

.esg-secondary-nav__link.active {
    color: #1A1A1A;
    font-weight: 600;
}

.esg-secondary-nav__link.active::after {
    width: 100%;
    left: 0;
}

.esg-secondary-nav.is-phase2 {
    z-index: 9998;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    left: 0;
    right: 0;
}

.esg-secondary-nav.is-sticky {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 9998;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
}


.esg-header.esg-header--hidden {
    pointer-events: none;
    visibility: hidden;
}

.esg-secondary-nav-placeholder {
    display: none;
    width: 100%;
}

.esg-secondary-nav-placeholder.is-active {
    display: block;
}


@media (max-width: 991px) {
    .esg-secondary-nav .custom-container {
        overflow: hidden;
    }

    .esg-secondary-nav__list {
        display: flex;
        flex-wrap: nowrap;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        -ms-overflow-style: none;
        margin: 0;
        padding: 0;
        width: 100%;
    }

    .esg-secondary-nav__list::-webkit-scrollbar {
        display: none;
    }

    .esg-secondary-nav__item {
        flex: 0 0 auto;
        /* prevents items from shrinking */
    }

    .esg-secondary-nav__link {
        display: block;
        padding: 14px 18px;
        font-size: 14px;
        white-space: nowrap;
    }
}

@media (max-width: 480px) {
    .esg-secondary-nav__link {
        padding: 12px 16px;
        font-size: 13px;
    }
}


/* ==========================================================================
   ESG Overview New - Hero Banner Slider
   ========================================================================== */

.esg-hero-banner-section {
    position: relative;
    width: 100%;
    height: 100vh;
    min-height: 600px;
    overflow: hidden;
}

.esg-hero-swiper {
    width: 100%;
    height: 100%;
}

.esg-hero-slide {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.esg-hero-slide__bg {
    position: absolute;
    inset: 0;
    z-index: 1;
}

.esg-hero-slide__bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transform: scale(1.05);
    transition: transform 6s ease-out;
}

.swiper-slide-active .esg-hero-slide__bg img {
    transform: scale(1);
}

.esg-hero-slide__overlay {
    position: absolute;
    inset: 0;
    z-index: 2;
    background: linear-gradient(90deg,
            rgba(0, 0, 0, 0.65) 0%,
            rgba(0, 0, 0, 0.35) 50%,
            rgba(0, 0, 0, 0.1) 100%);
}

.esg-hero-slide__content {
    position: relative;
    z-index: 3;
    display: flex;
    flex-direction: column;
    justify-content: center;
    height: 100%;
    max-width: 620px;
    padding: 0 5% 80px;
}

.esg-hero-slide__label {
    display: inline-block;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 1.4px;
    text-transform: uppercase;
    color: #F36633;
    font-family: 'Manrope', sans-serif;
    line-height: 22px;
    margin-bottom: 10px;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease 0.3s, transform 0.6s ease 0.3s;
}

.swiper-slide-active .esg-hero-slide__label {
    opacity: 1;
    transform: translateY(0);
}

.esg-hero-slide__title {
    font-size: clamp(32px, 4.5vw, 56px);
    font-weight: 400;
    line-height: 1.15;
    color: #ffffff;
    margin: 0 0 22px;
    font-style: normal;
    font-family: 'Alexandria', sans-serif;
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.7s ease 0.45s, transform 0.7s ease 0.45s;
}

.swiper-slide-active .esg-hero-slide__title {
    opacity: 1;
    transform: translateY(0);
}

.esg-hero-slide__desc {
    font-size: 15px;
    font-weight: 400;
    font-family: 'Manrope', sans-serif;
    line-height: 1.7;
    color: #fff;
    margin: 0 0 32px;
    max-width: 480px;
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.7s ease 0.6s, transform 0.7s ease 0.6s;
}

.swiper-slide-active .esg-hero-slide__desc {
    opacity: 1;
    transform: translateY(0);
}

.esg-hero-slide__cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 32px;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.5px;
    color: #ffffff;
    border-radius: 4px;
    background: linear-gradient(106deg, #CE5600 0.12%, #EA8033 114%);
    text-decoration: none;
    width: fit-content;
    cursor: pointer;
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.7s ease 0.75s, transform 0.7s ease 0.75s,
        background 0.3s ease;
}

.swiper-slide-active .esg-hero-slide__cta {
    opacity: 1;
    transform: translateY(0);
}

.esg-hero-slide__cta:hover {
    background-color: #d06a1c;
    text-decoration: none;
    color: #ffffff;
}


/* ==========================================================================
   Hero Bottom Bar & Custom Pagination
   ========================================================================== */

.esg-hero-bottom-bar {
    position: absolute;
    bottom: 30px;
    left: 0;
    right: 0;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 5%;
}

/* Hide Swiper's default pagination — we use our own */
.esg-hero-pagination.swiper-pagination {
    display: none !important;
}

/* Hide old counter */
.esg-hero-slide-counter {
    display: none;
}

/* ---- Custom Pagination Component ---- */
.esg-custom-pagination {
    display: flex;
    align-items: center;
    gap: 16px;
}

/* Each pagination item is a flex row: dot + (line + number) */
.esg-pag-item {
    display: flex;
    align-items: center;
    cursor: pointer;
    gap: 0;
    position: relative;
}

/* The dot */
.esg-pag-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #fff;
    border: 2px solid transparent;
    flex-shrink: 0;
    transition: background 0.35s ease, border-color 0.35s ease, width 0.35s ease, height 0.35s ease;
    box-sizing: border-box;
    position: relative;
}

.esg-pag-item:hover .esg-pag-dot {
    background: rgba(255, 255, 255, 0.75);
}

/* Active dot — orange ring outline */
.esg-pag-item.active .esg-pag-dot {
    width: 10px;
    height: 10px;
    background: #F47920;
}

.esg-pag-item.active .esg-pag-dot::after {
    content: '';
    width: 24px;
    height: 24px;
    background: transparent;
    border: 2px solid #F47920;
    position: absolute;
    top: 50%;
    left: 50%;
    border-radius: 50%;
    transform: translate(-50%, -48%);
}

.esg-pag-item.active:hover .esg-pag-dot {
    background: #F47920;
}

/* The line — hidden by default, expands when active */
.esg-pag-line {
    display: block;
    width: 0;
    height: 2px;
    background-color: #e87722;
    transition: width 0.4s ease, margin 0.4s ease;
    margin-left: 0;
    flex-shrink: 0;
}

.esg-pag-item.active .esg-pag-line {
    width: 28px;
    margin-left: 5px;
}

/* The number — hidden by default, fades in when active */
.esg-pag-num {
    font-size: 14px;
    font-weight: 400;
    color: #F47920;
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
    width: 0;
    overflow: hidden;
    opacity: 0;
    transition: width 0.35s ease, opacity 0.35s ease 0.1s, margin 0.35s ease;
    margin-left: 0;
    flex-shrink: 0;
    font-family: 'Montserrat', sans-serif;
}

.esg-pag-item.active .esg-pag-num {
    width: 22px;
    opacity: 1;
    margin-left: 5px;
}

/* ---- Navigation Arrows ---- */
.esg-hero-nav {
    display: flex;
    align-items: center;
    gap: 12px;
}

.esg-hero-nav__btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 1.5px solid rgba(255, 255, 255, 0.4);
    background: transparent;
    color: rgba(255, 255, 255, 0.7);
    cursor: pointer;
    transition: border-color 0.3s ease, color 0.3s ease, background-color 0.3s ease;
}

.esg-hero-nav__btn:hover {
    border-color: #e87722;
    color: #e87722;
}

.esg-hero-nav__btn:active {
    background-color: rgba(232, 119, 34, 0.15);
}


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

@media (max-width: 1024px) {
    .esg-hero-slide__content {
        max-width: 520px;
        padding-bottom: 100px;
    }

    .esg-hero-slide__title {
        font-size: clamp(28px, 4vw, 44px);
    }
}

@media (max-width: 768px) {
    .esg-hero-banner-section {
        height: 100vh;
        min-height: 550px;
    }

    .esg-hero-slide {
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        height: 100%;
    }

    .esg-hero-slide__content {
        max-width: 100%;
        padding: 80px 6% 0px;
        justify-content: center;
        height: 80%;
        align-items: center;
        text-align: center;
    }

    .esg-hero-slide__overlay {
        background: linear-gradient(180deg,
                rgba(0, 0, 0, 0.2) 0%,
                rgba(0, 0, 0, 0.7) 100%);
    }

    .esg-hero-slide__title {
        font-size: clamp(26px, 6vw, 36px);
    }

    .esg-hero-slide__desc {
        font-size: 14px;
        line-height: 1.6;
    }

    .esg-hero-bottom-bar {
        bottom: 20px;
        padding: 0 6%;
    }

    .esg-custom-pagination {
        gap: 14px;
    }

    .esg-pag-dot {
        width: 8px;
        height: 8px;
    }

    .esg-pag-item.active .esg-pag-dot {
        width: 12px;
        height: 12px;
    }

    .esg-pag-item.active .esg-pag-line {
        width: 20px;
    }

    .esg-pag-num {
        font-size: 12px;
    }

    .esg-hero-nav__btn {
        width: 38px;
        height: 38px;
    }
}

@media (max-width: 480px) {
    .esg-hero-slide__label {
        font-size: 14px;
        letter-spacing: 1.4px;
    }

    .esg-hero-slide__title {
        font-size: 32px;
        margin-bottom: 16px;
        line-height: 44px;
    }

    .esg-hero-slide__desc {
        font-size: 15px;
        line-height: 140%;
        margin-bottom: 24px;
    }

    .esg-hero-slide__cta {
        padding: 10px 20px;
        font-size: 14px;
        line-height: 28px;
    }

    .esg-pag-item.active .esg-pag-line {
        width: 16px;
    }

    .esg-pag-num {
        font-size: 14px;
    }

    .esg-pag-item.active .esg-pag-num {
        width: 18px;
    }
}

/* ==========================================================================
   Case Study Main Container
   ========================================================================== */

.esg-case-study-main-container {
    position: relative;

    .custom-container {
        padding: 80px;
    }

    @media (max-width: 768px) {
        .custom-container {
            width: 100%;
            padding: 40px 20px;
        }
    }
}

.esg-cs-bird {
    position: absolute;
    top: 50px;
    left: 500px;
    width: auto;
    height: auto;
    object-fit: cover;
    z-index: 1;
}

.esg-cs-sun {
    position: absolute;
    top: 40px;
    right: -80px;
    width: auto;
    height: auto;
    object-fit: cover;
    z-index: 1;
}

@media screen and (max-width: 900px) {
    .esg-cs-bird {
        top: 20px;
        left: 200px;
    }

    .esg-cs-sun {
        top: 30px;
        right: -45px;
        width: 88px;
        height: 89px;
    }
}

/* ==========================================================================
   Case Study Header
   ========================================================================== */

.esg-cs-header {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
}

.esg-cs-header__eyebrow {
    font-family: 'Manrope', sans-serif;
    font-size: 14px;
    font-weight: 600;
    line-height: 22px;
    letter-spacing: 1.4px;
    text-transform: uppercase;
    color: #F47920;
    margin: 0;
}

.esg-cs-header__title {
    font-family: 'Alexandria', sans-serif;
    font-size: 44px;
    font-weight: 400;
    line-height: 1.4;
    color: #000000;
    margin: 0;
}

@media (max-width: 1200px) {
    .esg-cs-header__title {
        font-size: 38px;
    }
}

@media (max-width: 991px) {
    .esg-cs-header__title {
        font-size: 34px;
    }
}

@media (max-width: 768px) {
    .esg-cs-header__title {
        font-size: 26px;
        text-transform: capitalize;
    }
}

/* ==========================================================================
   Case Study Filters
   ========================================================================== */

.esg-cs-filters {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-top: 40px;
}

/* --------------------------------------------------------------------------
   Search Box
   -------------------------------------------------------------------------- */

.esg-cs-search {
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 1 1 0%;
    min-width: 0;
    height: 50px;
    padding: 0 24px;
    background: #FAFAFA;
    border: none;
    border-bottom: 1px solid rgba(0, 0, 0, 0.3);
}

.esg-cs-search__icon {
    flex-shrink: 0;
    width: 24px;
    height: 24px;
}

.esg-cs-search__input {
    flex: 1;
    min-width: 0;
    border: none;
    outline: none;
    background: transparent;
    font-family: 'Manrope', sans-serif;
    font-size: 16px;
    font-weight: 500;
    line-height: 26px;
    color: #000;
    border: none !important;
    padding: 0 !important;
}

.esg-cs-search__input::placeholder {
    color: #999;
}

.esg-cs-search__clear {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    padding: 0;
    background: none;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transform: scale(0.7);
    transition: opacity 0.25s ease, visibility 0.25s ease, transform 0.25s ease;
}

.esg-cs-search--has-value .esg-cs-search__clear {
    opacity: 1;
    visibility: visible;
    transform: scale(1);
}

.esg-cs-search__clear:hover svg circle,
.esg-cs-search__clear:hover svg path {
    stroke: #F47920;
}

/* --------------------------------------------------------------------------
   Dropdown (shared)
   -------------------------------------------------------------------------- */

.esg-cs-dropdown {
    position: relative;
    flex-shrink: 0;
    width: 305px;
}

.esg-cs-dropdown__trigger {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    height: 50px;
    padding: 0 24px;
    background: #fff;
    border: none;
    border-bottom: 1px solid #888;
    cursor: pointer;
    transition: border-color 0.3s ease;
}

.esg-cs-dropdown__trigger:hover {
    border-bottom-color: #F47920;
}

.esg-cs-dropdown.open .esg-cs-dropdown__trigger {
    border-bottom-color: #F47920;
}

.esg-cs-dropdown__label {
    font-family: 'Manrope', sans-serif;
    font-size: 14px;
    font-weight: 500;
    line-height: 1.4;
    color: #000;
    text-transform: uppercase;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.esg-cs-dropdown__chevron {
    flex-shrink: 0;
    width: 12px;
    height: 24px;
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.esg-cs-dropdown.open .esg-cs-dropdown__chevron {
    transform: rotate(180deg);
}

/* --------------------------------------------------------------------------
   Dropdown Panel (animated)
   -------------------------------------------------------------------------- */

.esg-cs-dropdown__panel {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    z-index: 100;
    background: #fff;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
    border-radius: 0 0 4px 4px;
    overflow: hidden;
    max-height: 0;
    opacity: 0;
    transform: translateY(-4px);
    transition:
        max-height 0.35s cubic-bezier(0.4, 0, 0.2, 1),
        opacity 0.3s ease,
        transform 0.3s ease;
    pointer-events: none;
}

.esg-cs-dropdown.open .esg-cs-dropdown__panel {
    max-height: 280px;
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.esg-cs-dropdown__list {
    list-style: none;
    margin: 0;
    padding: 8px 0;
}

.esg-cs-dropdown__option {
    padding: 10px 24px;
    font-family: 'Manrope', sans-serif;
    font-size: 14px;
    font-weight: 400;
    line-height: 1.5;
    color: #333;
    cursor: pointer;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.esg-cs-dropdown__option:hover {
    background: #FFF3E8;
    color: #000;
}

.esg-cs-dropdown__option.active {
    color: #F47920;
    font-weight: 600;
}

/* --------------------------------------------------------------------------
   Responsive - Tablet
   -------------------------------------------------------------------------- */

@media (max-width: 1200px) {
    .esg-cs-dropdown {
        width: 260px;
    }
}

@media (max-width: 991px) {
    .esg-cs-filters {
        flex-wrap: wrap;
    }

    .esg-cs-search {
        flex: 1 1 100%;
    }

    .esg-cs-dropdown {
        flex: 1 1 calc(50% - 10px);
        width: auto;
    }
}

/* --------------------------------------------------------------------------
   Responsive - Mobile
   -------------------------------------------------------------------------- */

@media (max-width: 576px) {
    .esg-cs-filters {
        flex-direction: column;
        gap: 16px;
    }

    .esg-cs-search,
    .esg-cs-dropdown {
        width: 100%;
        flex: unset;
    }

    .esg-cs-search {
        padding: 0 16px;
    }

    .esg-cs-dropdown__trigger {
        padding: 0 16px;
    }
}

/* ==========================================================================
   Case Study Card Grid
   ========================================================================== */

.esg-cs-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-top: 32px;
}

/* --------------------------------------------------------------------------
   Card Base
   -------------------------------------------------------------------------- */

.esg-cs-card {
    position: relative;
    display: flex;
    flex-direction: column;
    background: #FFF9F4;
    border: 1px solid #E6E7E8;
    padding-bottom: 12px;
    text-decoration: none;
    color: #000;
    overflow: hidden;
}

.esg-cs-card:hover {
    text-decoration: none;
    color: #000;
}

/* --------------------------------------------------------------------------
   Card Image
   -------------------------------------------------------------------------- */

.esg-cs-card__image {
    position: relative;
    width: 100%;
    aspect-ratio: 1 / 1;
    overflow: hidden;
}

.esg-cs-card__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease;
}

.esg-cs-card:hover .esg-cs-card__image img {
    transform: scale(1.05);
}

/* --------------------------------------------------------------------------
   Card Body
   -------------------------------------------------------------------------- */

.esg-cs-card__body {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    flex: 1;
    gap: 24px;
    padding: 16px 16px 0;
}

.esg-cs-card__body::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: -12px;
    background: #FFEFE4;
    z-index: 0;
    transform: scaleY(0);
    transform-origin: top center;
    transition: transform 0.45s cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: none;
}

.esg-cs-card:hover .esg-cs-card__body::before {
    transform: scaleY(1);
}

.esg-cs-card__body>* {
    position: relative;
    z-index: 1;
}

.esg-cs-card__text {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.esg-cs-card__title {
    font-family: 'Alexandria', sans-serif;
    font-size: 18px;
    font-weight: 400;
    line-height: 1.4;
    color: #000;
    margin: 0;
    text-transform: capitalize;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.esg-cs-card__desc {
    font-family: 'Manrope', sans-serif;
    font-size: 15px;
    font-weight: 400;
    line-height: 1.7;
    color: #000;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.esg-cs-card__meta {
    font-family: 'Manrope', sans-serif;
    font-size: 14px;
    font-weight: 400;
    line-height: 24px;
    color: #000;
    margin: 0;
}

.esg-cs-card__meta strong {
    font-weight: 700;
}

/* --------------------------------------------------------------------------
   Card Grid Responsive
   -------------------------------------------------------------------------- */

@media (max-width: 1200px) {
    .esg-cs-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

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

@media (max-width: 768px) {
    .esg-cs-grid {
        grid-template-columns: 1fr;
        gap: 24px;
        margin-top: 32px;
    }
}

/* ==========================================================================
   Case Study Pagination
   ========================================================================== */

.esg-cs-pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 80px;
    padding-top: 20px;
    margin-top: 40px;
}

.esg-cs-pagination__btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 4px;
    background: none;
    border: none;
    cursor: pointer;
    font-family: 'Manrope', sans-serif;
    font-size: 14px;
    font-weight: 500;
    line-height: 20px;
    color: #000;
    transition: color 0.3s ease;
    outline: none;
}

.esg-cs-pagination__btn:hover:not(:disabled) {
    color: #F47920;
}

.esg-cs-pagination__btn:disabled {
    opacity: 0.35;
    cursor: default;
}

.esg-cs-pagination__prev-wrap,
.esg-cs-pagination__next-wrap {
    display: contents;
}

.esg-cs-pagination__numbers {
    display: flex;
    align-items: center;
    gap: 2px;
}

.esg-cs-pagination__num {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 90px;
    border: 1px solid transparent;
    background: none;
    cursor: pointer;
    font-family: 'Manrope', sans-serif;
    font-size: 14px;
    font-weight: 500;
    line-height: 20px;
    color: #000;
    transition: color 0.3s ease,
        border-color 0.3s ease,
        background-color 0.3s ease;
    outline: none;
    padding: 0;
}

.esg-cs-pagination__num:hover {
    color: #F47920;
    border-color: #F47920;
}

.esg-cs-pagination__num.active {
    color: #000;
    border-color: #F47920;
    background: #FFEFE4;
    font-weight: 500;
}

.esg-cs-pagination__dots {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    font-family: 'Manrope', sans-serif;
    font-size: 14px;
    font-weight: 500;
    color: #000;
    user-select: none;
}

/* ---------- Grid Transition Helpers ---------- */

.esg-cs-card.cs-hidden {
    display: none;
}

.esg-cs-grid.cs-animating .esg-cs-card:not(.cs-hidden) {
    animation: csFadeIn 0.35s ease forwards;
}

@keyframes csFadeIn {
    from {
        opacity: 0;
        transform: translateY(12px);
    }

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

/* ---------- AJAX Loading State ---------- */

.esg-cs-grid--loading {
    opacity: 0.5;
    pointer-events: none;
    transition: opacity 0.2s ease;
}

.esg-cs-grid.cs-animating .esg-cs-card {
    animation: csFadeIn 0.35s ease forwards;
}

/* ---------- No Results ---------- */

.esg-cs-no-results {
    grid-column: 1 / -1;
    text-align: center;
    padding: 60px 20px;
    font-family: 'Manrope', sans-serif;
    font-size: 16px;
    color: #666;
}

/* ---------- Pagination Responsive — Mobile ---------- */

@media (max-width: 768px) {
    .esg-cs-pagination {
        flex-wrap: wrap;
        gap: 24px;
        padding-top: 16px;
        margin-top: 32px;
    }

    .esg-cs-pagination__numbers {
        order: -1;
        width: 100%;
        justify-content: center;
        gap: 2px;
    }

    .esg-cs-pagination__prev-wrap,
    .esg-cs-pagination__next-wrap {
        display: block;
    }

    .esg-cs-pagination__prev-wrap {
        order: 0;
    }

    .esg-cs-pagination__next-wrap {
        order: 1;
        margin-left: auto;
    }
}