/* =================================
   CUSTOM STYLES
   Project: ASEAN Centre for Energy
   ================================= */

/* Google Fonts - Inter */
@import url("https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap");

/* =================================
   CSS VARIABLES / DESIGN TOKENS
   ================================= */
:root {
    /* Colors from Figma */
    --color-primary: #155eef;
    /* Blue dark / 600 */
    --color-primary-hover: #2970ff;
    /* Blue dark / 500 */
    --color-primary-light: #eff4ff;
    /* Blue dark / 50 */
    --color-secondary: #535862;
    /* Gray / 600 */
    --color-dark: #252b37;
    /* Gray / 800 */
    --color-black: #000000;
    /* Base / Black */
    --color-white: #ffffff;
    /* Base / White */
    --color-gray-50: #fafafa;
    /* Gray / 50 */
    --color-gray-100: #f5f5f5;
    /* Gray / 100 */
    --color-gray-200: #e9eaeb;
    /* Gray / 200 - Borders */
    --color-gray-300: #d5d7da;
    /* Gray / 300 - Borders */
    --color-gray-blue: #edf2f7;
    /* Gray Blue - Newsletter background */

    /* Typography */
    --font-family: "Inter", sans-serif;
    --font-family-heading: "Raleway", sans-serif;

    /* Font Sizes */
    --font-size-sm: 14px;
    --font-size-md: 16px;
    --font-size-xl: 20px;
    --font-size-display-xs: 24px;
    --font-size-display-sm: 30px;
    --font-size-display-md: 36px;
    --font-size-display-lg: 48px;

    /* Line Heights */
    --line-height-sm: 20px;
    --line-height-md: 24px;
    --line-height-xl: 30px;
    --line-height-display-xs: 32px;
    --line-height-display-sm: 38px;
    --line-height-display-md: 44px;
    --line-height-display-lg: 60px;

    /* Spacing */
    --spacing-section: 80px;
    --spacing-lg: 56px;
    --spacing-md: 32px;
    --spacing-sm: 24px;
    --spacing-xs: 16px;

    /* Border Radius */
    --radius-sm: 5px;
    --radius-md: 8px;
    --radius-lg: 10px;
    --radius-xl: 15px;

    /* Header Heights
       Used for sticky header positioning and body padding.
       - Top bar: ~52px (padding 16px * 2 + content ~20px)
       - Navbar: 80px (min-height)
       - Total: 132px (top bar + navbar)
       - Mobile: 76px (navbar only, top bar hidden on tablet/mobile)
    */
    --header-top-bar-height: 52px;
    --header-navbar-height: 80px;
    --header-total-height: 132px;
    --header-mobile-height: 76px;
}

/* =================================
   GLOBAL STYLES
   ================================= */
body {
    font-family: var(--font-family);
    color: var(--color-black);
    font-size: var(--font-size-md);
    line-height: var(--line-height-md);
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-family);
    color: var(--color-black);
}

/* =================================
   CONTAINER / LAYOUT
   ================================= */

/* Custom container with 1440px max-width for content */
.container-custom {
    max-width: 1440px;
    margin: 0 auto;
    padding-left: 80px;
    padding-right: 80px;
    width: 100%;
}

/* =================================
   NAVIGATION COMPONENT
   ================================= */

/* Site Header Wrapper */
.site-header {
    position: relative;
    z-index: 1001;
    background-color: var(--color-white);
    transition: box-shadow 0.3s ease;
}

/* Fixed header when scrolled - entire header becomes sticky */
.site-header.site-header--scrolled {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* Add padding to body when header is fixed to prevent content jump */
body.header-fixed {
    padding-top: var(--header-total-height);
}

/* Top Bar */
.nav__top-bar {
    background-color: var(--color-gray-50);
    font-size: var(--font-size-sm);
    line-height: var(--line-height-sm);
    padding: 16px 0;
}

.nav__top-link {
    color: var(--color-dark);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s ease;
}

.nav__top-link:hover {
    color: var(--color-primary);
}

.nav__top-link.active {
    color: var(--color-primary);
}

/* Main Nav - Use fixed positioning when scrolled */
.navbar {
    min-height: 80px;
    padding-top: 12px;
    padding-bottom: 12px;
    background-color: var(--color-white);
    transition: all 0.3s ease;
    position: relative;
    z-index: 1001;
}

.navbar-brand {
    display: flex;
    align-items: center;
    height: 56px;
}

.navbar-brand img {
    height: 56px;
    width: auto;
    max-width: 100%;
    object-fit: contain;
}

.navbar-nav {
    height: 100%;
}

.navbar-toggler {
    border: none;
    padding: 0;
}

.navbar-toggler:focus {
    box-shadow: none;
}

/* Mobile Navigation Icons */
.nav__mobile-icons {
    gap: 16px;
    margin-right: 16px;
}

.nav__mobile-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8px;
    color: var(--color-dark);
    text-decoration: none;
}

.nav__mobile-icon:hover {
    opacity: 0.7;
}

.nav__main-link {
    font-size: var(--font-size-md);
    line-height: var(--line-height-md);
    font-weight: 500;
    color: var(--color-black) !important;
    padding: 0.5rem 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.nav__main-link:hover {
    color: var(--color-primary) !important;
}

.nav__main-link.active {
    color: var(--color-primary) !important;
}

/* Custom dropdown toggle - hide Bootstrap default caret */
.nav__main-link.dropdown-toggle::after {
    display: none;
}

/* Navbar scrolled state - adds shadow when stuck to top */
.navbar-scrolled {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* Desktop adjustments for hover gap fix */
@media (min-width: 992px) {
    .navbar {
        padding-top: 0;
        padding-bottom: 0;
    }

    .nav__main-link {
        height: 80px;
        padding: 0;
    }
}

/* =================================
   MEGA MENU - APAEC
   ================================= */

/* Mega Menu Container */
.mega-menu .dropdown-menu {
    position: absolute !important;
    transform: none !important;
}

.mega-menu .dropdown-menu.mega-menu__dropdown {
    position: fixed !important;
    top: var(--header-total-height);
    left: 0 !important;
    right: 0 !important;
    width: 100vw !important;
    max-width: 100vw !important;
    background-color: var(--color-white);
    border: none;
    border-radius: 0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    padding: 0;
    margin: 0;
    z-index: 999;

    /* Animation Initial State */
    display: block !important;
    /* Override Bootstrap display:none */
    visibility: hidden;
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.3s ease;
    transition-delay: 0.3s;
    /* 300ms delay before closing (unhover) */
}

/* Bridge the gap between nav item and mega menu */
.mega-menu .dropdown-menu.mega-menu__dropdown::before {
    content: "";
    position: absolute;
    top: -30px;
    left: 0;
    width: 100%;
    height: 30px;
    background: transparent;
}

/* Adjust mega menu position when header is fixed/scrolled */
.site-header.site-header--scrolled .mega-menu .dropdown-menu.mega-menu__dropdown {
    top: var(--header-total-height) !important;
}

/* Mega Menu Overlay - CSS-only using :has() selector */
.mega-menu-overlay {
    position: fixed;
    top: var(--header-total-height);
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    opacity: 0;
    visibility: hidden;
    transition:
        opacity 0.3s ease,
        visibility 0.3s ease;
    transition-delay: 0.3s;
    z-index: 998;
    pointer-events: none;
}

/* CSS-only trigger using :has() */
.site-header:has(.mega-menu:hover) .mega-menu-overlay {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transition-delay: 0.3s;
}

/* Adjust overlay position when header is scrolled */
.site-header.site-header--scrolled .mega-menu-overlay {
    top: var(--header-total-height);
}

.mega-menu__content {
    max-width: 1440px;
    margin: 0 auto;
    padding: 32px 80px 56px 80px;
    display: flex;
    flex-direction: column;
    gap: 24px;
    max-height: calc(100vh - var(--header-total-height) - 40px);
    overflow-y: auto;
}

.mega-menu__title {
    font-size: 18px;
    line-height: 28px;
    font-weight: 500;
    color: var(--color-black);
    margin: 0;
}

.mega-menu__grid {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

/* Programme Icons Grid - Direct CSS Grid for icon-based cards */
.mega-menu__grid--programme-icons {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}
.mega-menu__row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}

/* Knowledge Hub - Single container with all cards */
.mega-menu__row--knowledge-hub {
    grid-template-columns: repeat(4, 1fr);
}

/* Topics Megamenu - 3 column grid with programme-card style */
.mega-menu__row--topics {
    grid-template-columns: repeat(4, 1fr);
}


@media screen and (max-width: 1280px) {
    .mega-menu__grid--programme-icons {
        display: grid;
        grid-template-columns: repeat(5, 1fr);
        gap: 16px;
    }
    .mega-menu__row {
        display: grid;
        grid-template-columns: repeat(5, 1fr);
        gap: 16px;
    }

    /* Knowledge Hub - Single container with all cards */
    .mega-menu__row--knowledge-hub {
        grid-template-columns: repeat(5, 1fr);
    }

    /* Topics Megamenu - 3 column grid with programme-card style */
    .mega-menu__row--topics {
        grid-template-columns: repeat(5, 1fr);
    }

}

.mega-menu__row--topics .programme-card {
    height: 200px;
}

.mega-menu__row--topics .programme-card__content {
    padding: 24px;
}

.mega-menu__row--topics .programme-card__title {
    font-size: 18px;
    line-height: 26px;
}

/* Topic Card in Mega Menu (New Design) */
.topic-card-mega {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: flex-start;
    background-color: var(--color-white);
    border: 1px solid var(--color-gray-300);
    border-radius: var(--radius-lg);
    padding: 24px;
    height: 212px;
    /* Fixed height from Figma */
    text-decoration: none;
    transition: all 0.3s ease;
}

.topic-card-mega:hover .topic-card-mega__icon {
    /* Filter to turn #414651 (gray) to #2970FF (blue) */
    filter: brightness(0) saturate(100%) invert(33%) sepia(96%) saturate(4063%) hue-rotate(209deg) brightness(100%) contrast(106%);
}

.topic-card-mega:hover .topic-card-mega__icon-wrapper {
    border-color: var(--color-primary);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    transform: translateY(-2px);
}

.topic-card-mega__icon-wrapper {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    /* Circular */
    border: 1px solid var(--color-gray-300);
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--color-white);
    margin-bottom: 16px;
}

.topic-card-mega__icon {
    width: 24px;
    height: 24px;
    filter: brightness(0);
    /* Make black */
}

.topic-card-mega__title {
    font-size: 20px;
    /* Text xl */
    line-height: 30px;
    font-weight: 500;
    /* Medium */
    color: var(--color-black);
    margin: 0;
    width: 100%;
}

/* =================================
   KNOWLEDGE HUB MEGA MENU CARDS
   ================================= */

/* Knowledge Hub Card - Icon-based with Orange Hover */
.knowledge-hub-card {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    background-color: var(--color-white);
    border: 1px solid var(--color-gray-300);
    border-radius: var(--radius-lg);
    padding: 24px;
    height: 190px;
    text-decoration: none;
    transition: all 0.3s ease;
    gap: 32px;
}

/* Hover State - Orange Accent */
.knowledge-hub-card:hover {
    background-color: #fff4ed;
    /* Orange dark / 50 */
    border-color: #ff9c66;
    /* Orange dark / 500 */
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    transform: translateY(-2px);
}

.knowledge-hub-card__icon-wrapper {
    width: 48px;
    height: 48px;
    min-width: 48px;
    min-height: 48px;
    flex-shrink: 0;
    border-radius: 50%;
    border: 1px solid var(--color-gray-300);
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--color-white);
    transition: all 0.3s ease;
}

.knowledge-hub-card:hover .knowledge-hub-card__icon-wrapper {
    border-color: #ff9c66;
    /* Orange border on hover */
    background-color: #fff4ed;
    /* Match card background */
}

.knowledge-hub-card__icon {
    width: 24px;
    height: 24px;
    /* Default: Gray color for all icons */
    filter: brightness(0) saturate(100%) invert(27%) sepia(6%) saturate(903%) hue-rotate(184deg) brightness(95%) contrast(89%);
    transition: filter 0.3s ease;
}

.knowledge-hub-card:hover .knowledge-hub-card__icon {
    /* Hover: Orange color #FF4405 */
    filter: brightness(0) saturate(100%) invert(42%) sepia(93%) saturate(4840%) hue-rotate(4deg) brightness(101%) contrast(107%);
}

.knowledge-hub-card__title {
    font-size: 20px;
    line-height: 30px;
    font-weight: 500;
    color: var(--color-black);
    margin: 0;
    width: 100%;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Active state for APAEC link when mega menu is open */
.mega-menu .nav__main-link.active {
    color: var(--color-primary-hover) !important;
}

/* Ensure mega menu appears on hover with animation */
.mega-menu:hover .mega-menu__dropdown,
.mega-menu .mega-menu__dropdown:hover {
    visibility: visible;
    opacity: 1;
    transform: translateY(0);
    transition-delay: 0.3s;
    /* 300ms delay before opening (hover) */
}

/* =================================
   MOBILE OFFCANVAS MENU
   ================================= */

/* Offcanvas container */
#mobileMenu.offcanvas {
    width: 320px;
    max-width: 85vw;
    background: #fff;
    border-left: none;
    box-shadow: -4px 0 20px rgba(0, 0, 0, 0.15);
    overflow: hidden;
}

/* Mobile Menu Views - Drill Down Navigation */
.nav__mobile-view {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    flex-direction: column;
    background: #fff;
    transform: translateX(100%);
    transition: transform 0.3s ease;
}

.nav__mobile-view--main {
    transform: translateX(0);
}

.nav__mobile-view--main.hidden {
    transform: translateX(-30%);
}

.nav__mobile-view--sub {
    transform: translateX(100%);
}

.nav__mobile-view--sub.active {
    transform: translateX(0);
}

/* Main View Header */
.nav__mobile-view--main .offcanvas-header {
    display: flex;
    padding: 16px 24px;
    justify-content: flex-end;
    border-bottom: none;
}

.nav__mobile-view--main .offcanvas-header .nav__mobile-close {
    margin-right: -8px;
}

.nav__mobile-view--main .offcanvas-body {
    padding: 0 24px 24px;
    display: flex;
    flex-direction: column;
    flex: 1;
    overflow-y: auto;
}

/* Submenu View Header */
.nav__mobile-view--sub .offcanvas-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 24px;
    border-bottom: none;
}

.nav__mobile-view--sub .offcanvas-header .nav__mobile-back {
    margin-left: -16px;
}

.nav__mobile-view--sub .offcanvas-header .nav__mobile-close {
    margin-right: -8px;
}

.nav__mobile-back,
.nav__mobile-close {
    background: none;
    border: none;
    padding: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #333;
}

.nav__mobile-back:hover,
.nav__mobile-close:hover {
    color: #000;
}

.nav__mobile-title {
    font-weight: 600;
    font-size: 16px;
    color: var(--color-black);
}

.nav__mobile-view--sub .offcanvas-body {
    padding: 0 24px 24px;
    flex: 1;
    overflow-y: auto;
}

/* Mobile menu list */
.nav__mobile-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.nav__mobile-item {
    /* No border for cleaner look */
}

.nav__mobile-link {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 0;
    color: var(--color-black);
    text-decoration: none;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
}

.nav__mobile-link:hover {
    color: var(--color-primary);
}

/* Chevron icon */
.nav__mobile-chevron {
    flex-shrink: 0;
    color: #666;
}

.nav__mobile-link:hover .nav__mobile-chevron {
    color: var(--color-primary);
}

/* Submenu list */
.nav__mobile-sublist {
    list-style: none;
    padding: 0;
    margin: 0;
}

.nav__mobile-sublist li {
    /* No border for cleaner look */
}

.nav__mobile-sublink {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 0;
    color: #333;
    text-decoration: none;
    font-size: 16px;
    font-weight: 400;
}

.nav__mobile-sublink:hover {
    color: var(--color-primary);
}

/* Overview link - highlighted in primary color */
.nav__mobile-sublink--overview {
    color: var(--color-primary) !important;
    font-weight: 500;
}

/* Secondary links section */
.nav__mobile-secondary {
    margin-top: auto;
    padding-top: 24px;
    /* No border for cleaner look */
}

.nav__mobile-secondary-link {
    display: block;
    padding: 12px 0;
    color: #333;
    text-decoration: none;
    font-size: 16px;
}

.nav__mobile-secondary-link:hover {
    color: var(--color-primary);
}

/* Mobile navigation active states */
.nav__mobile-link.active {
    color: var(--color-primary);
}

.nav__mobile-link.active span {
    color: var(--color-primary);
}

.nav__mobile-sublink.active {
    color: var(--color-primary) !important;
    font-weight: 500;
}

.nav__mobile-secondary-link.active {
    color: var(--color-primary);
    font-weight: 600;
}

/* Offcanvas backdrop */
.offcanvas-backdrop.show {
    opacity: 0.5;
}

/* =================================
   HEADER SEARCH POPUP
   ================================= */
.header-search-popup {
    position: fixed;
    top: var(--header-total-height);
    left: 0;
    right: 0;
    background-color: var(--color-white);
    padding: 32px 0;
    z-index: 1050;
    display: none;
    opacity: 0;
    transform: translateY(-10px);
    transition:
        opacity 0.2s ease-out,
        transform 0.2s ease-out;
}

.header-search-popup.active {
    display: block;
    opacity: 1;
    transform: translateY(0);
}

.header-search-popup__content {
    display: flex;
    align-items: center;
    gap: 16px;
}

.header-search-popup__icon {
    /* Blue dark / 500: #2970FF */
    filter: invert(37%) sepia(93%) saturate(1775%) hue-rotate(209deg) brightness(101%) contrast(101%);
}

.header-search-popup__input {
    flex: 1;
    border: none;
    outline: none;
    background: transparent;
    font-family: var(--font-family);
    font-weight: 500;
    font-size: 18px;
    line-height: 28px;
    color: var(--color-black);
}

.header-search-popup__input::placeholder {
    color: var(--color-black);
    opacity: 0.5;
}

.header-search-popup__overlay {
    position: fixed;
    top: var(--header-total-height);
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #212121;
    opacity: 0;
    z-index: 1049;
    display: none;
    transition: opacity 0.2s ease-out;
}

.header-search-popup__overlay.active {
    display: block;
    opacity: 0.5;
}

/* Responsive - Tablet and below */
@media (max-width: 991.98px) {

    /* Adjust body padding for tablet/mobile (top bar hidden, only navbar) */
    body.header-fixed {
        padding-top: var(--header-mobile-height);
    }

    /* Header Logo - Tablet */
    .navbar-brand {
        height: 44px;
    }

    .navbar-brand img {
        height: 44px;
    }

    .header-search-popup {
        top: var(--header-mobile-height);
        padding: 24px 0;
    }

    .header-search-popup__overlay {
        top: var(--header-mobile-height);
    }

    .header-search-popup__input {
        font-size: 16px;
        line-height: 24px;
    }
}

/* Responsive - Mobile */
@media (max-width: 767.98px) {

    /* Header Logo - Mobile */
    .navbar-brand {
        height: 38px;
    }

    .navbar-brand img {
        height: 38px;
    }
}

/* =================================
   HERO SECTION
   ================================= */
.hero {
    padding: 80px 0 28px 0;
}

.hero__row {
    gap: 40px;
}

.hero__text-col {
    width: 520px;
    flex: 0 0 auto;
}

.hero__image-col {
    flex: 1 1 0;
    min-width: 0;
}

.hero__title {
    font-family: var(--font-family-heading);
    font-size: var(--font-size-display-lg);
    line-height: 1.25;
    font-weight: 600;
    letter-spacing: -0.96px;
    color: var(--color-black);
    margin-bottom: 32px;
}

.hero__content {
    display: flex;
    flex-direction: column;
    gap: 24px;
    align-items: flex-start;
}

.hero__description {
    font-size: var(--font-size-md);
    line-height: var(--line-height-md);
    color: var(--color-black);
    margin: 0;
}

.hero__image {
    height: 600px;
    overflow: hidden;
}

.hero__image img {
    height: 100%;
    object-fit: cover;
}

/* =================================
   NEWS & EVENTS SECTION
   ================================= */

/* Media Hub Page Title */
.media-hub__title {
    font-family: var(--font-family-heading);
    font-size: 40px;
    font-weight: 600;
    line-height: 1.25;
    color: var(--color-black);
    margin-bottom: 56px;
}

.news-events {
    padding: 28px 0 56px 0;
}

/* Media Hub page - adjusted padding per Figma */
.news-events--media-hub {
    padding-top: 48px;
    padding-bottom: 48px;
}

.news-events__row {
    display: flex;
    gap: 24px;
    align-items: start;
}

.news-events__grid {
    flex: 1 1 0;
    min-width: 0;
}

.news-events__sidebar {
    flex: 0 0 413px;
    width: 413px;
}

/* News Grid (2x2 Layout) */
.news-grid__row {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

/* News Card */
.news-card {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.news-card__image {
    height: 250px;
    overflow: hidden;
}

.news-card__image img {
    height: 100%;
    object-fit: cover;
}

.news-card__title {
    font-family: var(--font-family-heading);
    font-size: var(--font-size-display-xs);
    line-height: 1.25;
    font-weight: 500;
    color: var(--color-black);
    margin: 0;
}

.news-card__badge {
    background-color: var(--color-gray-100);
    color: var(--color-black);
    font-size: var(--font-size-sm);
    line-height: var(--line-height-sm);
    font-weight: 500;
    padding: 4px 8px;
    border-radius: var(--radius-sm);
    display: inline-flex;
    width: fit-content;
}

/* Events Sidebar */
.events-sidebar {
    border: 1px solid var(--color-gray-200);
    border-radius: var(--radius-lg);
    padding: 24px;
    height: 100%;
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.events-sidebar__header {
    display: flex;
    justify-content: space-between;
    align-items: end;
}

.events-sidebar__title {
    font-family: var(--font-family-heading);
    font-size: var(--font-size-display-xs);
    line-height: 1.25;
    font-weight: 600;
    color: var(--color-black);
    margin: 0;
}

.events-sidebar__view-all {
    font-size: var(--font-size-md);
    line-height: var(--line-height-md);
    font-weight: 600;
    color: var(--color-primary);
    text-decoration: none;
}

.event-item {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.event-item__title {
    font-size: var(--font-size-xl);
    line-height: var(--line-height-xl);
    font-weight: 500;
    color: var(--color-black);
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    height: 60px;
}

.event-item__meta {
    display: flex;
    gap: 24px;
    font-size: var(--font-size-md);
    line-height: var(--line-height-md);
}

.event-item__date {
    font-weight: 600;
    color: var(--color-primary);
}

.event-item__location {
    color: var(--color-black);
}

.event-item__divider {
    margin: 0;
    border: 0;
    border-top: 1px solid var(--color-gray-200);
}

/* =================================
   DATA RESOURCES SECTION
   ================================= */
.data-resources {
    background-color: var(--color-primary-light);
    padding: var(--spacing-section) 0;
}

.data-resources__title {
    font-family: var(--font-family-heading);
    font-size: 32px;
    line-height: 1.25;
    font-weight: 500;
    color: var(--color-black);
}

/* Data Cards Carousel Wrapper */
.data-resources__carousel {
    overflow: hidden;
    position: relative;
    padding: 0 8px;
    margin: 0 -8px;
}

/* Data Cards Row - Enable horizontal scroll for carousel */
.data-resources .row {
    flex-wrap: nowrap;
    overflow-x: visible;
    transition: transform 0.3s ease-in-out;
}

/* Data Card Container - Show 3 cards + 25% peek of 4th card on desktop */
.data-resources .col-lg-auto {
    flex: 0 0 auto;
    width: calc(100% / 3.25);
}

.data-card {
    background-size: cover;
    background-position: center;
    border-radius: var(--radius-lg);
    padding: var(--spacing-md);
    height: 250px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: relative;
    overflow: hidden;
    text-decoration: none;
    color: inherit;
}

.data-card::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom,
            rgba(0, 0, 0, 0.5),
            rgba(0, 0, 0, 0.8));
    z-index: 1;
}

.data-card__icon {
    font-size: 40px;
    color: var(--color-white);
    position: relative;
    z-index: 2;
}

.data-card__title {
    font-size: var(--font-size-xl);
    line-height: var(--line-height-xl);
    font-weight: 600;
    color: var(--color-white);
    position: relative;
    z-index: 2;
}

/* =================================
   KEY PROJECTS SECTION
   ================================= */
.key-projects {
    padding: 80px 0;
}

.key-projects__title {
    font-family: var(--font-family-heading);
    font-size: 32px;
    line-height: 1.25;
    font-weight: 500;
    color: var(--color-black);
}

.project-card {
    background-color: var(--color-white);
    border: 1px solid var(--color-gray-300);
    border-radius: var(--radius-lg);
    padding: var(--spacing-md) var(--spacing-sm);
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.project-card__title {
    font-family: var(--font-family-heading);
    font-size: var(--font-size-display-xs);
    line-height: 1.25;
    font-weight: 500;
    color: var(--color-black);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    height: 60px;
}

.project-card__badge {
    font-size: var(--font-size-md);
    line-height: var(--line-height-md);
    font-weight: 500;
    padding: 4px 8px;
    border-radius: var(--radius-sm);
    display: inline-flex;
    width: fit-content;
    align-self: flex-start;
}

.project-card__badge--ongoing {
    background-color: var(--color-gray-100);
    color: var(--color-black);
}

.project-card__badge--finished {
    background-color: var(--color-primary-light);
    color: var(--color-primary-hover);
}

/* =================================
   KEY TOPICS SECTION
   ================================= */
.key-topics {
    padding: 80px 0;
}

.key-topics__header {
    display: flex;
    flex-direction: column;
    gap: 24px;
    margin-bottom: 56px;
}

.key-topics__title {
    font-family: var(--font-family-heading);
    font-size: 32px;
    line-height: 1.25;
    font-weight: 500;
    color: var(--color-black);
    margin: 0;
}

.key-topics__description {
    font-size: var(--font-size-md);
    line-height: var(--line-height-md);
    color: var(--color-black);
    max-width: 737px;
    margin: 0;
}

.key-topics__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

/* =================================
   PARTNERSHIPS SECTION
   ================================= */
.partnerships {
    background-color: var(--color-primary-light);
    padding: var(--spacing-section) 0;
}

/* Header */
.partnerships__header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 72px;
}

.partnerships__title {
    font-family: var(--font-family-heading);
    font-size: 32px;
    line-height: 1.25;
    font-weight: 500;
    letter-spacing: -0.96px;
    color: var(--color-black);
    margin: 0;
    max-width: 737px;
}

/* Carousel Controls */
.partnerships__controls {
    display: flex;
    gap: 16px;
    align-items: center;
}

.partnerships__control-btn {
    background-color: var(--color-primary);
    border: none;
    border-radius: 999px;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background-color 0.2s ease;
    flex-shrink: 0;
}

.partnerships__control-btn:hover {
    background-color: var(--color-primary-hover);
}

/* First button - rotated arrow for "previous" */
.partnerships__control-btn:first-child img {
    transform: rotate(180deg);
}

/* Carousel Wrapper */
.partnerships__carousel-wrapper {
    overflow: hidden;
    position: relative;
}

/* Carousel Container */
.partnerships__carousel {
    display: flex;
    gap: 24px;
    transition: transform 0.3s ease-in-out;
}

/* Partnership Card - Show 2 cards + 25% peek of 3rd on desktop */
.partnership-card {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    flex: 0 0 calc((100% - 24px) / 2.25);
    width: calc((100% - 24px) / 2.25);
    height: auto;
    text-decoration: none;
    color: inherit;
    display: block;
}

.partnership-card__image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.partnership-card__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom,
            rgba(0, 0, 0, 0.3) 0%,
            rgba(0, 0, 0, 0.6) 50%,
            rgba(0, 0, 0, 1) 100%);
    padding: 32px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    gap: var(--spacing-sm);
}

.partnership-card__title {
    font-family: var(--font-family-heading);
    font-size: 30px;
    line-height: 1.25;
    font-weight: 600;
    color: var(--color-white);
    margin: 0;
}

.partnership-card__description {
    font-size: var(--font-size-md);
    line-height: var(--line-height-md);
    color: var(--color-white);
    margin: 0;
}

/* Partnership Card Button */
.partnership-card__btn {
    border: 2px solid rgba(255, 255, 255, 0.12) !important;
    box-shadow:
        0px 0px 0px 1px inset rgba(10, 13, 18, 0.18),
        0px -2px 0px 0px inset rgba(10, 13, 18, 0.05);
    background-color: var(--color-primary);
    align-self: flex-start;
}

/* =================================
   VALUE PROPOSITION SECTION
   ================================= */
.value-proposition {
    padding: 80px 0;
}

/* Intro Text Wrapper */
.value-proposition__intro-wrapper {
    margin-bottom: 72px;
}

.value-proposition__intro {
    font-family: var(--font-family-heading);
    font-size: 32px;
    line-height: 1.25;
    font-weight: 500;
    color: var(--color-black);
    margin: 0;
}

/* Cards Container */
.value-proposition__cards {
    display: flex;
    gap: 24px;
    align-items: stretch;
}

/* Value Card */
.value-card {
    background-color: var(--color-gray-100);
    border-radius: var(--radius-xl);
    padding: var(--spacing-md);
    min-height: 400px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    flex: 1 1 0;
    min-width: 0;
}

/* Value Card Icon */
.value-card__icon {
    width: 48px;
    height: 48px;
    flex-shrink: 0;
}

.value-card__icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/* Card Content Wrapper */
.value-card__content {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.value-card__title {
    font-family: var(--font-family-heading);
    font-size: 24px;
    line-height: 1.25;
    font-weight: 600;
    color: var(--color-black);
    margin: 0;
}

.value-card__description {
    font-size: var(--font-size-md);
    line-height: var(--line-height-md);
    color: var(--color-black);
    margin: 0;
}

/* Card Button */
.value-card__btn {
    border: 2px solid rgba(255, 255, 255, 0.12) !important;
    box-shadow:
        0px 0px 0px 1px inset rgba(10, 13, 18, 0.18),
        0px -2px 0px 0px inset rgba(10, 13, 18, 0.05);
    width: fit-content;
    align-self: flex-start;
}

/* =================================
   NEWSLETTER SECTION
   ================================= */
.newsletter {
    background-color: var(--color-gray-blue);
    padding: 48px 0;
}

.newsletter__row {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 40px;
}

.newsletter__text {
    display: flex;
    flex-direction: column;
    gap: 24px;
    width: 520px;
    flex-shrink: 0;
}

.newsletter__title {
    font-family: var(--font-family-heading);
    font-size: 32px;
    line-height: 1.25;
    font-weight: 600;
    letter-spacing: -0.72px;
    color: var(--color-black);
    margin: 0;
}

.newsletter__description {
    font-size: var(--font-size-md);
    line-height: var(--line-height-md);
    color: var(--color-black);
    margin: 0;
}

.newsletter__link {
    font-weight: 700;
    color: var(--color-primary);
    text-decoration: none;
}

.newsletter__form-wrapper {
    width: 519px;
    flex-shrink: 0;
}

.newsletter__form {
    display: flex;
    gap: 16px;
}

.newsletter__input {
    flex: 1;
    height: 48px;
    background-color: var(--color-white);
    border: 1px solid var(--color-gray-300);
    border-radius: var(--radius-md);
    padding: 10px 14px;
    font-size: var(--font-size-sm);
    line-height: var(--line-height-sm);
}

.newsletter__input::placeholder {
    opacity: 0.5;
    color: var(--color-black);
}

.newsletter__button {
    height: 48px;
    padding: 10px 24px;
    font-size: var(--font-size-md);
    line-height: var(--line-height-md);
    font-weight: 500;
    white-space: nowrap;
    border: 2px solid rgba(255, 255, 255, 0.12);
    box-shadow:
        0px 0px 0px 1px inset rgba(10, 13, 18, 0.18),
        0px -2px 0px 0px inset rgba(10, 13, 18, 0.05);
}

/* =================================
   NEWS/MEDIA DETAIL PAGE
   ================================= */

/* News Detail Hero - extends .apaec-hero */
.apaec-hero--media {
    padding: 80px;
}

/* Content wrapper - gap 24px between title-block and meta */
.apaec-hero__content {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

/* Title block - gap 16px between breadcrumb and title */
.apaec-hero__title-block {
    display: flex;
    flex-direction: column;
    gap: 16px;
    color: var(--color-white);
}

/* Breadcrumb - Figma: Inter Medium, 14px, line-height 20px, gap 14px */
.apaec-hero__breadcrumb {
    display: flex;
    align-items: center;
    gap: 14px;
    font-size: 14px;
    line-height: 20px;
    font-weight: 500;
    color: var(--color-white);
}

.apaec-hero__breadcrumb a {
    color: var(--color-white);
    text-decoration: underline;
    text-decoration-skip-ink: none;
    text-underline-position: from-font;
    transition: opacity 0.2s ease;
}

.apaec-hero__breadcrumb a:hover {
    opacity: 0.8;
}

/* Title - Figma: Raleway SemiBold, 40px, line-height 1.25, width 736px */
.apaec-hero--media h1 {
    font-family: var(--font-family-heading);
    font-size: 40px;
    line-height: 1.25;
    font-weight: 600;
    color: var(--color-white);
    margin: 0;
    max-width: 736px;
}

/* Hero Meta - Figma: Inter Regular, 16px, line-height 24px, gap 16px */
.apaec-hero__meta {
    display: flex;
    align-items: center;
    gap: 16px;
    color: var(--color-white);
    font-size: 16px;
    line-height: 24px;
    font-weight: 400;
}

/* Separator dot - Figma: 6px × 6px white circle */
.apaec-hero__separator {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background-color: var(--color-white);
    flex-shrink: 0;
}

/* Article Content Section */
.article-content {
    padding: 80px 0;
    background-color: var(--color-white);
}

.article-content__container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    flex-direction: column;
    gap: 56px;
}

.article-content__body {
    font-size: var(--font-size-md);
    line-height: var(--line-height-md);
    color: var(--color-black);
}

.article-content__body p {
    margin-bottom: 16px;
}

.article-content__body p:last-child {
    margin-bottom: 0;
}

.article-content__image {
    width: 100%;
    height: 450px;
    object-fit: cover;
    border-radius: 0;
}

/* News Detail - Tablet */
@media (max-width: 991.98px) {
    .apaec-hero--media {
        padding: 60px;
    }

    .apaec-hero--media h1 {
        font-size: 32px;
        max-width: 100%;
    }

    .article-content {
        padding: 60px 0;
    }

    .article-content__container {
        gap: 40px;
    }

    .article-content__image {
        height: 350px;
    }
}

/* News Detail - Mobile */
@media (max-width: 767.98px) {
    .apaec-hero--media {
        padding: 40px 20px;
    }

    .apaec-hero--media h1 {
        font-size: 28px;
        line-height: 1.3;
    }

    .apaec-hero__content {
        gap: 16px;
    }

    .apaec-hero__title-block {
        gap: 12px;
    }

    .apaec-hero__breadcrumb {
        font-size: 12px;
        gap: 10px;
    }

    .apaec-hero__meta {
        flex-wrap: wrap;
        gap: 8px 16px;
        font-size: 14px;
    }

    .article-content {
        padding: 40px 0;
    }

    .article-content__container {
        gap: 32px;
        padding: 0 16px;
    }

    .article-content__image {
        height: 250px;
    }
}

/* =================================
   DOCUMENT DETAIL HERO
   ================================= */
.document-detail-hero {
    background-color: #eff4ff;
    padding: 80px 0;
}

.document-detail-hero__row {
    display: flex;
    gap: 56px;
    align-items: flex-end;
}

.document-detail-hero__info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 32px;
    align-items: flex-start;
}

.document-detail-hero__badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px;
    background-color: var(--color-white);
    border-radius: 5px;
    font-size: 14px;
    font-weight: 500;
    line-height: 1.5;
    color: var(--color-black);
    width: fit-content;
    height: 32px;
}

.document-detail-hero__title {
    font-family: var(--font-family-heading);
    font-size: 40px;
    font-weight: 500;
    line-height: 1.25;
    color: var(--color-black);
    margin: 0;
}

.document-detail-hero__meta {
    display: flex;
    align-items: center;
    gap: 16px;
    font-size: var(--font-size-md);
    line-height: var(--line-height-md);
    color: var(--color-black);
}

.document-detail-hero__separator {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background-color: var(--color-black);
}

.document-detail-hero__cover {
    flex-shrink: 0;
    width: 518px;
    height: 600px;
}

.document-detail-hero__cover-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.event-detail-hero__cover-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Event Detail Hero Breadcrumb */
.event-detail-hero__breadcrumb {
    display: flex;
    align-items: center;
    gap: 14px;
    font-size: 14px;
    font-weight: 500;
    line-height: 20px;
    color: var(--color-black);
    margin-bottom: 16px;
}

.event-detail-hero__breadcrumb a {
    color: var(--color-black);
    text-decoration: underline;
}

.event-detail-hero__breadcrumb a:hover {
    color: var(--color-primary);
}

/* Event Detail Hero Meta */
.event-detail-hero__meta {
    display: flex;
    align-items: center;
    gap: 16px;
    font-size: 16px;
    line-height: 24px;
    color: var(--color-black);
}

/* Event Detail Section Title */
.event-detail__section-title {
    font-family: var(--font-family-heading);
    font-size: 32px;
    font-weight: 500;
    line-height: 1.25;
    color: var(--color-black);
    margin-bottom: 32px;
}

/* Event Detail Content Section */
.event-detail-content {
    padding: 80px 0;
}

.event-detail-content__body {
    font-size: var(--font-size-md);
    line-height: var(--line-height-md);
    color: var(--color-black);
}

.event-detail-content__body p {
    margin-bottom: 16px;
}

.event-detail-content__body p:last-child {
    margin-bottom: 0;
}

/* Document Content */
.document-content {
    padding: 80px 0;
}

.document-content__container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 80px;
}

@media (max-width: 991.98px) {
    .document-content__container {
        padding: 0 40px;
    }
}

@media (max-width: 767.98px) {
    .document-content__container {
        padding: 0 20px;
    }
}

.document-content__body {
    font-size: var(--font-size-md);
    line-height: var(--line-height-md);
    color: var(--color-black);
}

.document-content__body p {
    margin-bottom: 16px;
}

.document-content__body p:last-child {
    margin-bottom: 0;
}

/* Related Newsletter Section */
.related-newsletter {
    padding: 48px 0;
}

/* Document Detail Responsive */
@media (max-width: 1399.98px) {
    .document-detail-hero__cover {
        width: 450px;
        height: 520px;
    }
}

@media (max-width: 1199.98px) {
    .document-detail-hero {
        padding: 60px 0;
    }

    .document-detail-hero__row {
        gap: 40px;
    }

    .document-detail-hero__cover {
        width: 380px;
        height: 440px;
    }

    .document-detail-hero__title {
        font-size: 32px;
    }

    .document-detail-hero__meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }

    .document-detail-hero__separator {
        display: none;
    }

    .event-detail-hero__meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
}

@media (max-width: 991.98px) {
    .document-detail-hero {
        padding: 60px 0;
    }

    .document-detail-hero__row {
        flex-direction: column-reverse;
        gap: 40px;
        align-items: flex-start;
    }

    .document-detail-hero__cover {
        width: 100%;
        height: 400px;
    }

    .document-detail-hero__title {
        font-size: 32px;
    }

    .document-detail-hero__meta {
        flex-wrap: wrap;
    }

    .document-content {
        padding: 60px 0;
    }

    .related-newsletter {
        padding: 48px 0;
    }
}

@media (max-width: 767.98px) {
    .document-detail-hero {
        padding: 40px 0;
    }

    .document-detail-hero__row {
        gap: 32px;
    }

    .document-detail-hero__cover {
        height: 300px;
    }

    .document-detail-hero__title {
        font-size: 28px;
    }

    .document-detail-hero__info {
        gap: 24px;
    }

    .document-content {
        padding: 40px 0;
    }

    .related-newsletter {
        padding: 40px 0;
    }

    .event-detail__section-title {
        font-size: 24px;
        margin-bottom: 24px;
    }

    .event-detail-content {
        padding: 40px 0;
    }
}

/* Related Newsletter uses container-custom so no custom padding needed */

/* =================================
   FOOTER
   ================================= */
.footer {
    position: relative;
    padding: 100px 0;
    overflow: hidden;
}

.footer__container {
    position: relative;
    display: flex;
    justify-content: space-between;
    gap: 80px;
    z-index: 1;
}

.footer__supergraphic {
    position: absolute;
    right: 0;
    bottom: 0;
    width: 908px;
    height: 511px;
    opacity: 0.5;
    pointer-events: none;
    z-index: 0;
}

.footer__supergraphic img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.footer__about {
    display: flex;
    flex-direction: column;
    gap: 22px;
    width: 402px;
    flex-shrink: 0;
}

.footer__logo {
    height: 56px;
    width: auto;
    max-width: 100%;
    object-fit: contain;
    object-position: left;
}

.footer__description {
    font-size: var(--font-size-md);
    line-height: var(--line-height-md);
    color: var(--color-black);
    opacity: 0.5;
}

.footer__social {
    display: flex;
    gap: 24px;
    align-items: center;
}

.footer__social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    color: var(--color-primary);
    transition: opacity 0.2s ease;
}

.footer__social-link:hover {
    opacity: 0.7;
}

.footer__social-link img {
    width: 32px;
    height: 32px;
}

.footer__column {
    display: flex;
    flex-direction: column;
    gap: 24px;
    flex-shrink: 0;
}

.footer__column--nav {
    width: 137px;
}

.footer__spacer {
    width: 137px;
    height: 120px;
    flex-shrink: 0;
}

.footer__column-title {
    font-size: var(--font-size-md);
    line-height: var(--line-height-md);
    font-weight: 600;
    color: var(--color-black);
    margin: 0;
}

.footer__link-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.footer__link {
    font-size: var(--font-size-md);
    line-height: var(--line-height-md);
    color: var(--color-black);
    text-decoration: none;
    transition: color 0.2s ease;
    display: inline-block;
}

.footer__link:hover {
    color: var(--color-primary);
}

/* Navigation lists (columns 3 & 4) */
.footer__nav-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.footer__nav-link {
    font-size: var(--font-size-md);
    line-height: var(--line-height-md);
    font-weight: 600;
    color: var(--color-black);
    text-decoration: none;
    transition: color 0.2s ease;
    display: inline-block;
}

.footer__nav-link:hover {
    color: var(--color-primary);
}

/* =================================
   BUTTONS
   ================================= */
.btn-primary {
    background-color: var(--color-primary);
    border: 2px solid rgba(255, 255, 255, 0.12);
    color: var(--color-white);
    font-weight: 600;
    font-size: var(--font-size-sm);
    line-height: var(--line-height-sm);
    padding: 10px 14px;
    border-radius: var(--radius-md);
    box-shadow:
        0px 0px 0px 1px inset rgba(10, 13, 18, 0.18),
        0px -2px 0px 0px inset rgba(10, 13, 18, 0.05);
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: auto;
    white-space: nowrap;
}

.btn-primary:hover,
.btn-primary:focus {
    background-color: var(--color-primary-hover);
    border: 2px solid rgba(255, 255, 255, 0.12);
    color: var(--color-white);
}

/* Carousel Control Buttons */
.carousel-control__btn {
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* =================================
   ANIMATION SYSTEM
   ================================= */

/* Keyframe Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

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

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.95);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes ripple {
    0% {
        transform: scale(0);
        opacity: 1;
    }

    100% {
        transform: scale(4);
        opacity: 0;
    }
}

@keyframes slideUnderline {
    from {
        width: 0;
    }

    to {
        width: 100%;
    }
}

/* Animation Utility Classes */
.animate-fade-in-up {
    animation: fadeInUp 0.6s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.animate-scale-in {
    animation: scaleIn 0.5s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

/* Stagger Delays for Grid Items */
.stagger-delay-1 {
    animation-delay: 0ms;
}

.stagger-delay-2 {
    animation-delay: 100ms;
}

.stagger-delay-3 {
    animation-delay: 200ms;
}

.stagger-delay-4 {
    animation-delay: 300ms;
}

.stagger-delay-5 {
    animation-delay: 400ms;
}

.stagger-delay-6 {
    animation-delay: 500ms;
}

/* Elements start hidden, JS will trigger animation */
.animate-on-scroll {
    opacity: 0;
}

/* Ripple Effect Container */
.ripple-container {
    position: relative;
    overflow: hidden;
}

.ripple-effect {
    position: absolute;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.5);
    pointer-events: none;
    animation: ripple 0.6s ease-out;
}

/* Smooth Transitions Base */
.smooth-hover {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* =================================
   ENHANCED HOVER ANIMATIONS
   ================================= */

/* News Cards - Enhanced Hover */
.news-card {
    cursor: pointer;
}

.news-card__title {
    transition: color 0.3s ease;
}

.news-card:hover .news-card__title {
    color: var(--color-primary);
}

/* Event Items - Hover Effect */
.event-item {
    cursor: pointer;
    padding: 16px;
    margin: -16px;
    border-radius: var(--radius-md);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.event-item:hover {
    background-color: var(--color-primary-light);
    transform: translateX(8px);
}

.event-item__title {
    transition: color 0.3s ease;
}

.event-item:hover .event-item__title {
    color: var(--color-primary);
}

/* Events Sidebar View All Link */
.events-sidebar__view-all {
    position: relative;
    transition: color 0.3s ease;
}

.events-sidebar__view-all::after {
    content: "";
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--color-primary);
    transition: width 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.events-sidebar__view-all:hover::after {
    width: 100%;
}

/* Data Cards - Enhanced Hover with Glow */
.data-card {
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: none;
}

.data-card:hover {
    transform: none;
    box-shadow: 0 16px 32px rgba(21, 94, 239, 0.25);
}

.data-card__title {
    transition: transform 0.3s ease;
}

.data-card:hover .data-card__title {
    transform: translateY(-4px);
}

/* Project Cards - Border Glow and Arrow Animation */
.project-card {
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.project-card:hover {
    border-color: var(--color-primary);
    box-shadow: 0 8px 24px rgba(21, 94, 239, 0.15);
    transform: translateY(-4px);
}

.project-card img[src*="arrow-up-right"] {
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.project-card:hover img[src*="arrow-up-right"] {
    transform: translate(4px, -4px);
}

/* Partnership Cards - Hover Effect */
.partnership-card {
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.partnership-card:hover {
    transform: scale(1.02);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

.partnership-card__image {
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.partnership-card:hover .partnership-card__image {
    transform: scale(1.03);
}

.partnership-card__btn {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.partnership-card:hover .partnership-card__btn {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(21, 94, 239, 0.4);
}

/* Value Cards - Background Shift and Shadow */
.value-card {
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.value-card:hover {
    background-color: #f0f0f0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    transform: translateY(-2px);
}

.value-card__btn {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.value-card:hover .value-card__btn {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(21, 94, 239, 0.25);
}

/* =================================
   BUTTON ANIMATIONS
   ================================= */

/* Enhanced Button Hover */
.btn-primary {
    position: relative;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-primary:hover {
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 8px 16px rgba(21, 94, 239, 0.3);
}

.btn-primary:active {
    transform: translateY(0) scale(0.98);
    box-shadow: 0 2px 8px rgba(21, 94, 239, 0.2);
}

/* Carousel Control Buttons - Pulse on Hover */
.carousel-control__btn,
.partnerships__control-btn {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.carousel-control__btn:hover,
.partnerships__control-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(21, 94, 239, 0.4);
}

.carousel-control__btn:active,
.partnerships__control-btn:active {
    transform: scale(0.95);
}

/* =================================
   LINK ANIMATIONS
   ================================= */

/* Newsletter Link - Underline Animation */
.newsletter__link {
    position: relative;
    transition: color 0.3s ease;
}

.newsletter__link::after {
    content: "";
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--color-primary-hover);
    transition: width 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.newsletter__link:hover {
    color: var(--color-primary-hover);
}

.newsletter__link:hover::after {
    width: 100%;
}

/* =================================
   APAEC PAGE STYLES
   ================================= */

/* APAEC Hero Section */
.apaec-hero {
    background-image: url("../../assets/images/backgrounds/hero-apaec.png");
    background-size: cover;
    background-position: center center;
    min-height: 500px;
    height: 500px;
    display: flex;
    align-items: flex-end;
    padding: 48px 0;
    position: relative;
}

.apaec-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(to right,
            rgba(0, 0, 0, 0.85) 0%,
            rgba(0, 0, 0, 0.6) 35%,
            rgba(0, 0, 0, 0.25) 70%,
            rgba(0, 0, 0, 0) 100%);
}

.apaec-hero .container-custom {
    position: relative;
    z-index: 1;
}

/* Breadcrumb Navigation */
.breadcrumb-nav {
    font-size: 14px;
    line-height: 20px;
    font-weight: 500;
    color: var(--color-white);
    margin-bottom: 16px;
}

.breadcrumb-nav a {
    color: var(--color-white);
    text-decoration: underline;
    text-decoration-skip-ink: none;
    text-underline-position: from-font;
    transition: opacity 0.2s ease;
}

.breadcrumb-nav a:hover {
    opacity: 0.8;
}

/* APAEC Hero Title - Exact Figma Specs */
.apaec-hero h1 {
    font-family: var(--font-family-heading);
    font-size: 40px;
    line-height: 1.25;
    font-weight: 600;
    letter-spacing: -0.8px;
    color: var(--color-white);
    margin: 0;
    max-width: 628px;
}

/* About APAEC Section */
.apaec-about {
    background-color: #f5f8ff;
    padding: 80px 0;
}

.apaec-about .row {
    gap: 48px;
}

/* Constrain heading column to fixed width from Figma (286px) */
.apaec-about .col-auto {
    flex: 0 0 auto;
    width: 286px;
    max-width: 286px;
}

.apaec-about h2 {
    font-family: var(--font-family-heading);
    font-size: 24px;
    line-height: 1.25;
    font-weight: 500;
    color: rgba(0, 0, 0, 0.5);
    margin: 0;
    /* Allow wrapping within the fixed 286px container */
    word-wrap: break-word;
}

.apaec-about__content {
    max-width: 953px;
    font-size: 20px;
    line-height: 2;
    font-weight: 400;
    color: var(--color-black);
}

.apaec-about__content p {
    margin-bottom: 20px;
}

.apaec-about__content p:last-child {
    margin-bottom: 0;
}

/* About Section with Red Accent Bar - APAEC Detail Page Only */
.apaec-about--accent {
    position: relative;
}

.apaec-about--accent::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    width: 16px;
    height: 100%;
    background-color: #c91414;
}

.bg-light-blue {
    background-color: #f5f8ff;
}

/* =================================
   SECRETARIATS PAGE
   ================================= */

/* Secretariats Hero Section */
.secretariats-hero {
    background-image: url("../../assets/images/backgrounds/secretariats-hero.png");
    background-size: cover;
    background-position: center top;
    min-height: 500px;
    height: 500px;
    display: flex;
    align-items: flex-end;
    padding: 48px 0;
    position: relative;
}

.secretariats-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom,
            rgba(0, 0, 0, 0.2) 0%,
            rgba(0, 0, 0, 0.4) 40%,
            rgba(0, 0, 0, 0.7) 100%);
}

.secretariats-hero .container-custom {
    position: relative;
    z-index: 1;
}

.secretariats-hero h1 {
    font-family: var(--font-family-heading);
    font-size: 48px;
    line-height: 60px;
    font-weight: 600;
    letter-spacing: -0.96px;
    color: var(--color-white);
    margin: 0;
}

/* Programme Areas Section */
.programme-areas {
    padding: 80px 0;
}

.programme-areas h2 {
    font-family: var(--font-family-heading);
    font-size: 32px;
    line-height: 1.25;
    font-weight: 500;
    color: var(--color-black);
    margin: 0 0 56px 0;
    max-width: 737px;
}

.programme-areas .row {
    margin-bottom: 24px;
}

.programme-areas .row:last-child {
    margin-bottom: 0;
}

.programme-card {
    display: block;
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    height: 250px;
    border: 1px solid var(--color-white);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.programme-card:hover {
    transform: scale(1.02);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.25);
}

.programme-card__image {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

.programme-card__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.programme-card__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom,
            rgba(0, 0, 0, 0),
            rgba(0, 0, 0, 0.8));
}

.programme-card__content {
    position: absolute;
    inset: 0;
    padding: 32px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: flex-end;
    z-index: 2;
}

.programme-card__icon {
    width: 24px;
    height: 24px;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.programme-card:hover .programme-card__icon {
    transform: translate(4px, -4px);
}

.programme-card__title {
    font-size: var(--font-size-display-xs);
    line-height: var(--line-height-display-xs);
    font-weight: 600;
    color: var(--color-white);
    width: 100%;
    margin: 0;
}

/* Programme Card - Icon Style (for APAEC page) */
.programme-card-icon {
    display: flex;
    flex-direction: column;
    gap: 32px;
    padding: 24px;
    height: 190px;
    background: #fff;
    border: 1px solid #d5d7da;
    border-radius: 10px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.programme-card-icon__badge {
    width: 48px;
    height: 48px;
    min-width: 48px;
    min-height: 48px;
    flex-shrink: 0;
    border-radius: 99px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    transition: background 0.3s ease;
    overflow: hidden;
}

.programme-card-icon__badge img {
    width: 48px;
    height: 48px;
    object-fit: contain;
    transition:
        filter 0.3s ease,
        width 0.3s ease,
        height 0.3s ease;
}

.programme-card-icon__title {
    font-family: "Inter", sans-serif;
    font-weight: 500;
    font-size: 20px;
    line-height: 30px;
    color: #000;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* APG - Red */
.programme-card-icon--apg:hover {
    background: rgba(201, 20, 20, 0.16);
    border-color: #fef1f1;
}

.programme-card-icon--apg:hover .programme-card-icon__badge {
    background: #C91414;
}

.programme-card-icon--apg:hover .programme-card-icon__badge img {
    width: 32px;
    height: 32px;
    filter: brightness(0) invert(1);
}

/* OGCSS - Purple */
.programme-card-icon--ogcss:hover {
    background: rgba(188, 171, 242, 0.16);
}

.programme-card-icon--ogcss:hover .programme-card-icon__badge {
    background: #7857d9;
}

.programme-card-icon--ogcss:hover .programme-card-icon__badge img {
    width: 32px;
    height: 32px;
    filter: brightness(0) invert(1);
}

/* CCTR - Gray */
.programme-card-icon--cctr:hover {
    background: rgba(201, 202, 204, 0.16);
}

.programme-card-icon--cctr:hover .programme-card-icon__badge {
    background: #939598;
}

.programme-card-icon--cctr:hover .programme-card-icon__badge img {
    width: 32px;
    height: 32px;
    filter: brightness(0) invert(1);
}

/* EE&C - Teal */
.programme-card-icon--eec:hover {
    background: rgba(114, 227, 209, 0.16);
}

.programme-card-icon--eec:hover .programme-card-icon__badge {
    background: #21ccb0;
}

.programme-card-icon--eec:hover .programme-card-icon__badge img {
    width: 32px;
    height: 32px;
    filter: brightness(0) invert(1);
}

/* RE - Green */
.programme-card-icon--re:hover {
    background: rgba(172, 206, 163, 0.16);
}

.programme-card-icon--re:hover .programme-card-icon__badge {
    background: #599c47;
}

.programme-card-icon--re:hover .programme-card-icon__badge img {
    width: 32px;
    height: 32px;
    filter: brightness(0) invert(1);
}

/* REPP - Navy */
.programme-card-icon--repp:hover {
    background: rgba(42, 99, 170, 0.16);
}

.programme-card-icon--repp:hover .programme-card-icon__badge {
    background: #083d7d;
}

.programme-card-icon--repp:hover .programme-card-icon__badge img {
    width: 32px;
    height: 32px;
    filter: brightness(0) invert(1);
}

/* CNE - Yellow */
.programme-card-icon--cne:hover {
    background: rgba(255, 216, 99, 0.16);
}

.programme-card-icon--cne:hover .programme-card-icon__badge {
    background: #ffbf00;
}

.programme-card-icon--cne:hover .programme-card-icon__badge img {
    width: 32px;
    height: 32px;
    filter: brightness(0) invert(1);
}

/* Programme Card for Carousel - Simplified structure for carousel compatibility */
.programme-card-carousel {
    display: block;
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    height: 250px;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.programme-card-carousel:hover {
    transform: scale(1.02);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.25);
}

.programme-card-carousel__image {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

.programme-card-carousel__image::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom,
            rgba(0, 0, 0, 0),
            rgba(0, 0, 0, 0.8));
}

.programme-card-carousel__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.programme-card-carousel__content {
    position: absolute;
    inset: 0;
    padding: 32px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: flex-end;
    z-index: 2;
}

.programme-card-carousel__icon {
    width: 24px;
    height: 24px;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.programme-card-carousel:hover .programme-card-carousel__icon {
    transform: translate(4px, -4px);
}

.programme-card-carousel__title {
    font-size: var(--font-size-display-xs);
    line-height: var(--line-height-display-xs);
    font-weight: 600;
    color: var(--color-white);
    width: 100%;
    margin: 0;
}

/* APAEC Document Section */
.apaec-document {
    background-color: #ffffff;
    padding: 80px 0;
}

.apaec-document__wrapper {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 40px;
}

.apaec-document__content {
    flex: 1 1 700px;
    max-width: 700px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 24px;
}

.apaec-document__title {
    font-family: var(--font-family-heading);
    font-size: 32px;
    line-height: 1.25;
    font-weight: 500;
    color: var(--color-black);
    margin: 0;
}

.apaec-document__description {
    font-size: 20px;
    line-height: 2;
    font-weight: 400;
    color: var(--color-black);
    margin: 0;
}

.apaec-document__image-wrapper {
    flex: 0 1 462px;
    max-width: 462px;
    height: 568px;
    padding: 8px;
    box-shadow:
        36px 41px 15px rgba(0, 76, 240, 0),
        23px 26px 14px rgba(0, 76, 240, 0.01),
        13px 15px 12px rgba(0, 76, 240, 0.04),
        6px 7px 9px rgba(0, 76, 240, 0.07),
        1px 2px 5px rgba(0, 76, 240, 0.08);
}

.apaec-document__image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Official Documents Section */
.official-documents {
    padding: 48px 0;
}

.official-documents__title {
    font-family: var(--font-family-heading);
    font-size: 32px;
    line-height: 1.25;
    font-weight: 500;
    color: var(--color-black);
    margin: 0 0 56px 0;
}

.document-card {
    display: flex;
    flex-direction: column;
    gap: 24px;
    transition: transform 0.3s ease;
}

.document-card:hover {
    transform: translateY(-4px);
}

.document-card__image {
    width: 100%;
    /* height: 500px; */
    aspect-ratio: 256 / 359;
    object-fit: cover;
}

.document-card__body {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.document-card__title {
    font-family: var(--font-family-heading);
    font-size: 24px;
    line-height: 1.25;
    font-weight: 500;
    color: var(--color-black);
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    height: 90px;
}

.document-card__actions {
    display: flex;
    gap: 16px;
    align-items: center;
}

.btn-outline-primary {
    background-color: var(--color-white);
    border: 2px solid rgba(255, 255, 255, 0.12);
    color: var(--color-primary-hover);
    font-weight: 600;
    font-size: var(--font-size-sm);
    line-height: var(--line-height-sm);
    padding: 10px 14px;
    border-radius: var(--radius-md);
    box-shadow:
        0px 0px 0px 1px inset rgba(10, 13, 18, 0.18),
        0px -2px 0px 0px inset rgba(10, 13, 18, 0.05);
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.btn-outline-primary:hover {
    background-color: var(--color-primary-light);
    color: var(--color-primary);
    border-color: var(--color-primary);
}

/* Related Media Section */
.related-media {
    padding: 48px 0;
}

.related-media__header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 56px;
}

.related-media__title {
    font-family: var(--font-family-heading);
    font-size: 32px;
    line-height: 1.25;
    font-weight: 500;
    color: var(--color-black);
    margin: 0;
}

.media-card {
    display: block;
    transition: transform 0.3s ease;
}

.media-card:hover {
    transform: translateY(-4px);
}

.media-card__image {
    width: 100%;
    height: 250px;
    object-fit: cover;
    border-radius: var(--radius-lg);
}

.media-card__body {
    display: flex;
    flex-direction: column;
    gap: 24px;
    margin-top: 24px;
}

.media-card__title {
    font-family: var(--font-family-heading);
    font-size: 24px;
    line-height: 1.25;
    font-weight: 500;
    color: var(--color-black);
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    height: 60px;
}

.media-card__badge {
    background-color: var(--color-gray-100);
    color: var(--color-black);
    font-size: 14px;
    line-height: 20px;
    font-weight: 500;
    padding: 4px 8px;
    border-radius: 5px;
    display: inline-block;
    width: fit-content;
    align-self: flex-start;
}

/* Three Pillars Section */
.three-pillars {
    padding: 80px 0;
}

.pillar-card {
    background-color: var(--color-gray-100);
    border-radius: var(--radius-xl);
    padding: 32px;
    height: 400px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.pillar-card:hover {
    background-color: #f0f0f0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    transform: translateY(-2px);
}

.pillar-card__body {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.pillar-card__title {
    font-size: var(--font-size-display-sm);
    line-height: var(--line-height-display-sm);
    font-weight: 600;
    color: var(--color-black);
    margin: 0;
}

.pillar-card__text {
    font-size: var(--font-size-md);
    line-height: var(--line-height-md);
    color: var(--color-black);
    margin: 0;
}

.pillar-card__footer {
    display: flex;
}

/* =================================
   ACCESSIBILITY - REDUCED MOTION
   ================================= */

@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }

    /* Keep hover states but remove transforms */
    .news-card:hover,
    .data-card:hover,
    .project-card:hover,
    .partnership-card:hover,
    .value-card:hover {
        transform: none;
    }

    .btn-primary:hover {
        transform: none;
    }
}

/* =================================
   RESPONSIVE ADJUSTMENTS
   ================================= */

/* Large tablets and below - Mega Menu Responsive */
@media (max-width: 1199.98px) {
    .mega-menu__content {
        padding: 24px 40px 48px 40px;
    }

    .mega-menu__row {
        grid-template-columns: repeat(3, 1fr);
    }

    .mega-menu__row--partial {
        grid-template-columns: repeat(2, 1fr);
    }

    .mega-menu__row--topics {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Small desktops and large tablets - Prevent horizontal scroll in newsletter */
@media (max-width: 1199.98px) {
    .newsletter__row {
        gap: 32px;
    }

    .newsletter__text {
        width: 46%;
        min-width: 400px;
    }

    .newsletter__form-wrapper {
        width: 50%;
        min-width: 400px;
    }

    /* APAEC Document - Small Desktop */
    .apaec-document__wrapper {
        gap: 32px;
    }

    .apaec-document__content {
        flex: 1 1 600px;
        max-width: 600px;
    }

    .apaec-document__title {
        font-size: 32px;
        line-height: 40px;
    }

    .apaec-document__description {
        font-size: 18px;
    }

    .apaec-document__image-wrapper {
        flex: 0 1 380px;
        max-width: 380px;
        height: 467px;
    }

    /* Footer - Small Desktop */
    .footer__container {
        gap: 40px;
    }

    .footer__about {
        width: auto;
        max-width: 320px;
        min-width: 280px;
        flex-shrink: 1;
    }

    .footer__column {
        flex-shrink: 0;
        min-width: min-content;
    }
}

/* Tablet and below */
@media (max-width: 991.98px) {
    :root {
        --spacing-section: 40px;
        --font-size-display-lg: 36px;
        --line-height-display-lg: 44px;
        --font-size-display-md: 30px;
        --line-height-display-md: 38px;
    }

    .container-custom {
        padding-left: 40px;
        padding-right: 40px;
    }

    /* Mega Menu - Tablet */
    .mega-menu__content {
        padding: 24px 24px 40px 24px;
    }

    .mega-menu__row {
        grid-template-columns: repeat(2, 1fr);
    }

    .mega-menu__row--knowledge-hub {
        grid-template-columns: repeat(2, 1fr);
    }

    .mega-menu__row--topics {
        grid-template-columns: repeat(2, 1fr);
    }

    .mega-menu__row--topics .programme-card {
        height: 180px;
    }

    .mega-menu__row--partial {
        grid-template-columns: repeat(2, 1fr);
    }

    .mega-menu__grid--programme-icons {
        grid-template-columns: repeat(2, 1fr);
    }

    .hero {
        padding: 40px 0 20px 0;
    }

    .hero__row {
        flex-direction: column;
        gap: 32px;
    }

    .hero__text-col {
        width: 100%;
    }

    .hero__image {
        height: 400px;
    }

    /* APAEC About Section - Responsive */
    .apaec-about .col-auto {
        width: 100%;
        max-width: 100%;
        margin-bottom: 24px;
    }

    .apaec-about .row {
        flex-direction: column;
        gap: 24px;
    }

    /* Hide top bar on tablet/mobile */
    .nav__top-bar {
        display: none;
    }

    /* Mobile Navigation */
    .navbar>.container-custom {
        display: flex;
        flex-wrap: wrap;
        align-items: center;
        justify-content: space-between;
    }

    .navbar-brand {
        order: 1;
    }

    .nav__mobile-icons {
        order: 2;
        margin-left: auto;
    }

    .navbar-toggler {
        order: 3;
        margin-left: 0;
    }

    .navbar-collapse {
        order: 4;
        width: 100%;
        background: white;
        padding: 1rem;
        border-radius: 0.5rem;
        margin-top: 0.5rem;
        box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.1);
    }

    .navbar-nav {
        align-items: flex-start !important;
        gap: 0 !important;
    }

    .news-events {
        padding: 20px 0 40px 0;
    }

    .news-events__row {
        flex-direction: column;
        gap: 24px;
    }

    .news-events__sidebar {
        flex: 1 1 auto;
        width: 100%;
    }

    .news-grid__row {
        grid-template-columns: repeat(2, 1fr);
        gap: 24px;
    }

    /* Data Resources - Show 2 cards + 25% peek of 3rd card on tablet */
    .data-resources .col-lg-auto {
        width: calc(100% / 2.25);
    }

    .data-card {
        height: 200px;
    }

    .key-topics__grid .programme-card {
        height: 200px;
    }

    .key-topics__header {
        margin-bottom: 40px;
    }

    /* Key topics - 2 cards per row on tablet */
    .key-topics__grid {
        grid-template-columns: repeat(2, 1fr);
    }

    /* Value Proposition - Stack cards on tablet */
    .value-proposition {
        padding: 40px 0;
    }

    .value-proposition__intro-wrapper {
        margin-bottom: 48px;
    }

    .value-proposition__cards {
        flex-direction: column;
        gap: 24px;
    }

    .value-card {
        height: auto;
        min-height: auto;
        width: 100%;
        gap: 24px;
        justify-content: flex-start;
    }

    .value-card__btn {
        flex-shrink: 0;
        margin-top: auto;
    }

    /* Partnerships responsive */
    .partnerships__header {
        margin-bottom: 48px;
    }

    /* Show 1 card + 25% peek of 2nd on tablet */
    .partnership-card {
        flex: 0 0 calc(100% / 1.25);
        width: calc(100% / 1.25);
    }

    .partnership-card__overlay {
        padding: 24px;
    }

    /* Key Projects - Reduce spacing on tablet */
    .key-projects {
        padding: 40px 0;
    }

    .key-projects__title {
        font-size: 36px;
        line-height: 44px;
    }

    .project-card {
        padding: 24px 20px;
    }

    .project-card__title {
        font-size: 20px;
        line-height: 30px;
        height: 60px;
    }

    /* Footer responsive */
    .footer__container {
        flex-direction: column;
        gap: 40px;
    }

    .footer__about {
        width: 100%;
    }

    .footer__logo {
        height: 44px;
    }

    /* Newsletter responsive - Tablet */
    .newsletter {
        padding: 40px 0;
    }

    .newsletter__row {
        flex-direction: column;
        align-items: stretch;
        gap: 32px;
    }

    .newsletter__text {
        width: 100%;
    }

    .newsletter__form-wrapper {
        width: 100%;
    }

    /* APAEC Page - Tablet */
    .apaec-hero {
        height: 400px;
        padding: 40px 0;
    }

    /* About APAEC - Tablet */
    .apaec-about {
        padding: 56px 0;
    }

    .apaec-about .row {
        flex-direction: column;
        gap: 32px;
    }

    .apaec-about h2 {
        font-size: 24px;
        line-height: 32px;
        white-space: normal;
    }

    .apaec-about__content {
        max-width: 100%;
        font-size: 18px;
        line-height: 1.8;
    }

    /* Programme Areas - Tablet */
    .programme-areas {
        padding: 56px 0;
    }

    .programme-areas h2 {
        font-size: 36px;
        line-height: 44px;
        letter-spacing: -0.72px;
        margin-bottom: 24px;
        max-width: 100%;
        grid-column: 1 / -1;
    }

    /* Make container a grid, flatten rows */
    .programme-areas .container-custom {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }

    /* Remove row structure */
    .programme-areas .row {
        display: contents;
    }

    /* Remove Bootstrap column styling */
    .programme-areas [class*="col-"] {
        width: auto;
        max-width: none;
        padding: 0;
        margin: 0;
    }

    .programme-card {
        height: 200px;
    }

    /* APAEC Document - Tablet */
    .apaec-document {
        padding: 56px 0;
    }

    .apaec-document__wrapper {
        flex-direction: row;
        align-items: flex-end;
        gap: 24px;
    }

    .apaec-document__content {
        flex: 1 1 auto;
        min-width: 0;
        align-items: flex-start;
    }

    .apaec-document__title {
        font-size: 30px;
        line-height: 38px;
    }

    .apaec-document__description {
        font-size: 18px;
    }

    .apaec-document__image-wrapper {
        flex: 0 0 auto;
        width: 300px;
        height: 369px;
    }

    /* Official Documents - Tablet (2 columns) */
    .official-documents {
        padding: 40px 0;
    }

    .official-documents__title {
        font-size: 36px;
        line-height: 44px;
        letter-spacing: -0.72px;
        margin-bottom: 40px;
    }

    .document-card__image {
        /* height: 400px; */
        aspect-ratio: 256 / 359;
    }

    .pillar-card {
        height: auto;
        min-height: 320px;
    }

    /* Footer - Tablet */
    .footer {
        padding: 60px 0;
    }

    .footer__container {
        flex-wrap: wrap;
        gap: 40px;
    }

    .footer__about {
        width: 100%;
        max-width: 100%;
    }

    .footer__column--nav {
        width: auto;
    }

    .footer__spacer {
        display: none;
    }

    .footer__supergraphic {
        width: 600px;
        height: 340px;
    }
}

/* Mobile */
@media (max-width: 767.98px) {
    :root {
        --font-size-display-lg: 30px;
        --line-height-display-lg: 38px;
        --font-size-display-md: 24px;
        --line-height-display-md: 32px;
    }

    /* Mega Menu - Mobile - Hide mega menu on mobile, use simple dropdown instead */
    .mega-menu .mega-menu__dropdown {
        display: none !important;
    }

    /* Show simple text-based dropdown on mobile instead */
    .mega-menu .dropdown-menu.mega-menu__dropdown::before {
        content: "Please view on desktop for full mega menu experience";
        display: block;
        padding: 20px;
        text-align: center;
        color: var(--color-secondary);
        font-size: 14px;
    }

    /* Simplify animations on mobile for better performance */
    .news-card:hover,
    .data-card:hover,
    .project-card:hover,
    .value-card:hover {
        transform: translateY(-4px) scale(1.01);
    }

    .partnership-card:hover {
        transform: scale(1.02);
    }

    /* Disable image zoom on mobile (touch devices) */
    .news-card:hover .news-card__image img,
    .partnership-card:hover .partnership-card__image {
        transform: none;
    }

    /* Reduce shadow complexity on mobile */
    .news-card:hover,
    .data-card:hover,
    .project-card:hover {
        box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
    }

    .container-custom {
        padding-left: 20px;
        padding-right: 20px;
    }

    .hero {
        padding: 40px 0 20px 0;
    }

    .hero__row {
        gap: 24px;
    }

    .hero__title {
        margin-bottom: 24px;
    }

    .hero__image {
        height: 300px;
    }

    .news-events {
        padding: 20px 0 40px 0;
    }

    .news-grid__row {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .news-events__row {
        gap: 24px;
    }

    /* Data Resources - Show 1 card + 25% peek of 2nd card on mobile */
    .data-resources .col-lg-auto {
        width: calc(100% / 1.25);
    }

    .key-topics__header {
        margin-bottom: 32px;
        gap: 16px;
    }

    /* Key topics - stack vertically on mobile */
    .key-topics__grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .key-topics__grid .programme-card {
        height: 200px;
    }

    /* Value Proposition - Mobile */
    .value-proposition {
        padding: 40px 0;
    }

    .value-proposition__intro-wrapper {
        margin-bottom: 40px;
    }

    .value-proposition__cards {
        gap: 20px;
    }

    .value-card {
        min-height: auto;
        height: auto;
        padding: 24px;
        gap: 24px;
        justify-content: flex-start;
    }

    .value-card__btn {
        flex-shrink: 0;
        margin-top: auto;
    }

    /* Partnerships responsive */
    .partnerships__header {
        flex-direction: row;
        align-items: flex-start;
        justify-content: space-between;
        gap: 16px;
        margin-bottom: 32px;
    }

    .partnerships__title {
        flex: 1;
        max-width: none;
    }

    .partnerships__controls {
        flex-shrink: 0;
    }

    /* Show 1 card + 25% peek of 2nd on mobile */
    .partnership-card {
        flex: 0 0 calc(100% / 1.25);
        width: calc(100% / 1.25);
    }

    .partnership-card__overlay {
        padding: 20px;
    }

    .partnership-card__title {
        font-size: 24px;
        line-height: 32px;
    }

    /* Key Projects - Adjust for mobile */
    .key-projects {
        padding: 40px 0;
    }

    .key-projects__title {
        font-size: 30px;
        line-height: 38px;
    }

    .project-card {
        padding: 20px 16px;
    }

    .project-card__title {
        font-size: 20px;
        line-height: 28px;
        height: 56px;
    }

    /* Reduce gap between logo and title on mobile */
    .project-card .d-flex.justify-content-between {
        margin-bottom: 32px !important;
    }

    /* Footer - Mobile */
    .footer {
        padding: 40px 0;
    }

    .footer__container {
        flex-direction: column;
        gap: 32px;
    }

    .footer__about {
        width: 100%;
    }

    .footer__column {
        width: 100%;
    }

    .footer__logo {
        height: 38px;
    }

    .footer__supergraphic {
        width: 300px;
        height: 200px;
    }

    /* Newsletter responsive - Mobile */
    .newsletter {
        padding: 32px 0;
    }

    .newsletter__row {
        gap: 24px;
    }

    .newsletter__text {
        gap: 16px;
        min-width: 0;
    }

    .newsletter__form-wrapper {
        min-width: 0;
    }

    .newsletter__form {
        gap: 12px;
    }

    .newsletter__input {
        min-width: 0;
    }

    .newsletter__button {
        flex-shrink: 0;
    }

    /* APAEC Page - Mobile */
    .apaec-hero {
        height: 300px;
        padding: 32px 0;
    }

    .apaec-hero h1 {
        font-size: 30px;
        line-height: 38px;
        letter-spacing: -0.6px;
        max-width: 100%;
    }

    .secretariats-hero {
        height: 300px;
        padding: 32px 0;
    }

    .secretariats-hero h1 {
        font-size: 30px;
        line-height: 38px;
        letter-spacing: -0.6px;
    }

    .apaec-about {
        padding: 40px 0;
    }

    .apaec-about .row {
        flex-direction: column;
        gap: 24px;
    }

    .apaec-about h2 {
        font-size: 20px;
        line-height: 28px;
        white-space: normal;
    }

    .apaec-about__content {
        max-width: 100%;
        font-size: 16px;
        line-height: 1.6;
    }

    .apaec-about__content p {
        margin-bottom: 16px;
    }

    /* Programme Areas - Mobile */
    .programme-areas {
        padding: 40px 0;
    }

    .programme-areas h2 {
        font-size: 30px;
        line-height: 38px;
        letter-spacing: -0.6px;
        margin-bottom: 16px;
        max-width: 100%;
    }

    /* Single column layout */
    .programme-areas .container-custom {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .programme-card {
        height: 180px;
    }

    .programme-card__content {
        padding: 24px;
    }

    .programme-card__title {
        font-size: 20px;
        line-height: 28px;
    }

    /* APAEC Document - Mobile */
    .apaec-document {
        padding: 40px 0;
    }

    .apaec-document__wrapper {
        flex-direction: column;
        align-items: center;
        gap: 24px;
    }

    .apaec-document__content {
        width: 100%;
        align-self: stretch;
    }

    .apaec-document__title {
        font-size: 24px;
        line-height: 32px;
        letter-spacing: -0.48px;
    }

    .apaec-document__description {
        font-size: 16px;
        line-height: 1.6;
    }

    .apaec-document__image-wrapper {
        width: 100%;
        height: auto;
        aspect-ratio: 462 / 568;
    }

    .official-documents {
        padding: 40px 0;
    }

    .document-card__image {
        /* height: 300px; */
        aspect-ratio: 256 / 359;
    }

    .related-media {
        padding: 40px 0;
    }

    .media-card__image {
        height: 200px;
    }

    .three-pillars {
        padding: 40px 0;
    }

    .pillar-card {
        min-height: 280px;
        padding: 24px;
    }
}

/* =================================
   SECRETARIATS DETAIL PAGE
   ================================= */

/* Secretariat Content Section with Sidebar */
.secretariat-content {
    padding: 80px 0;
    background-color: var(--color-white);
}

.secretariat-sidebar {
    flex: 0 0 285px;
    width: 285px;
}

.secretariat-main {
    flex: 1 1 0;
    min-width: 0;
    padding-left: 56px;
}

/* Sidebar Navigation */
.sidebar-nav {
    display: flex;
    flex-direction: column;
    gap: 16px;
    position: sticky;
    top: 100px;
}

.sidebar-nav__header {
    display: flex;
    align-items: center;
    gap: 16px;
}

.sidebar-nav__dot {
    width: 8px;
    height: 8px;
    background-color: var(--color-primary-hover);
    border-radius: 50%;
    flex-shrink: 0;
}

.sidebar-nav__title {
    font-size: 20px;
    line-height: 30px;
    font-weight: 500;
    color: var(--color-black);
    margin: 0;
}

/* Progress Track Container */
.sidebar-nav__progress {
    display: flex;
    gap: 16px;
    align-items: stretch;
    padding-left: 20px;
}

.sidebar-nav__progress-track {
    width: 8px;
    flex-shrink: 0;
    position: relative;
}

.sidebar-nav__progress-track::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    width: 8px;
    height: 100%;
    background-color: #eef2f6;
    border-radius: 99px;
}

.sidebar-nav__progress-fill {
    position: absolute;
    left: 0;
    top: 7px;
    width: 8px;
    height: 22px;
    background-color: var(--color-primary-hover);
    border-radius: 99px;
    transition: all 0.3s ease;
    z-index: 1;
}

/* Navigation Links */
.sidebar-nav__links {
    display: flex;
    flex-direction: column;
    gap: 24px;
    padding: 4px 0;
}

.sidebar-nav__link {
    font-size: 20px;
    line-height: 30px;
    font-weight: 500;
    color: var(--color-secondary);
    text-decoration: none;
    transition: color 0.3s ease;
}

.sidebar-nav__link--active {
    font-weight: 600;
    color: var(--color-primary-hover);
}

.sidebar-nav__link:hover {
    color: var(--color-primary-hover);
}

/* Content Sections */
.content-section {
    display: flex;
    flex-direction: column;
    gap: 32px;
    margin-bottom: 64px;
}

.content-section:last-child {
    margin-bottom: 0;
}

.content-section__title {
    font-family: var(--font-family-heading);
    font-size: 32px;
    line-height: 1.25;
    font-weight: 500;
    color: var(--color-black);
    margin: 0;
}

.content-section__text {
    font-size: 18px;
    line-height: 28px;
    font-weight: 400;
    color: var(--color-black);
    margin: 0;
}

.content-section__list {
    font-size: 18px;
    line-height: 28px;
    font-weight: 400;
    color: var(--color-black);
    margin: 0;
    padding-left: 27px;
}

.content-section__list li {
    margin-bottom: 0;
}

.content-section__list li:last-child {
    margin-bottom: 0;
}

.content-section__cta {
    display: flex;
    gap: 24px;
    align-items: center;
    margin-top: 32px;
}

.content-section__cta .btn {
    min-width: 160px;
    height: 48px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    font-weight: 600;
    line-height: 24px;
    padding: 10px 14px;
    border-radius: 8px;
}

.content-section__cta .btn-primary {
    background-color: #155eef;
    border-color: #155eef;
}

.content-section__cta .btn-primary:hover {
    background-color: #1045b5;
    border-color: #1045b5;
}

.content-section__cta .btn-outline-primary {
    color: #155eef;
    border-color: rgba(10, 13, 18, 0.18);
    background-color: #fff;
}

.content-section__cta .btn-outline-primary:hover {
    background-color: #f5f8ff;
    color: #155eef;
    border-color: #155eef;
}

/* Team Member Cards */
.team-member-card {
    position: relative;
    border-radius: 5px;
    overflow: hidden;
    aspect-ratio: 302 / 330;
    display: flex;
    align-items: flex-end;
    padding: 16px;
    transition: transform 0.3s ease;
}

.team-member-card:hover {
    transform: translateY(-4px);
}

.team-member-card__image {
    position: absolute;
    inset: 0;
    background-color: #d9d9d9;
    background-size: cover;
    background-position: center;
}

.team-member-card__info {
    position: relative;
    z-index: 2;
    background-color: var(--color-white);
    border-radius: 5px;
    padding: 14px;
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.team-member-card__name {
    font-size: 18px;
    line-height: 28px;
    font-weight: 600;
    color: var(--color-black);
    margin: 0;
}

.team-member-card__role {
    font-size: 14px;
    line-height: 20px;
    font-weight: 400;
    color: var(--color-black);
    opacity: 0.5;
    margin: 0;
}

/* =================================
   MEMBERS LIST - Horizontal Format
   ================================= */
.members-list {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.member-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 24px;
}

.member-row__info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.member-row__name {
    font-family: var(--font-family);
    font-size: 24px;
    line-height: 28px;
    font-weight: 600;
    color: var(--color-black);
    margin: 0;
}

.member-row__role {
    font-size: 14px;
    line-height: 20px;
    font-weight: 400;
    color: var(--color-black);
    margin: 0;
}

.member-row__social {
    display: flex;
    gap: 24px;
    align-items: center;
}

.member-row__social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    transition: opacity 0.2s ease;
}

.member-row__social-link:hover {
    opacity: 0.7;
}

.member-row__divider {
    border: none;
    border-top: 1px solid var(--color-gray-300);
    margin: 0;
    opacity: 1;
}

/* Related Events Section */
.related-events {
    padding: 48px 0;
}

.related-events__header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 56px;
}

.related-events__title {
    font-family: var(--font-family-heading);
    font-size: 32px;
    line-height: 1.25;
    font-weight: 500;
    color: var(--color-black);
    margin: 0;
}

/* Events List Section (Events Hub Page) */
section.events-list {
    padding: 48px 0;
}

/* Events List Container (used in Related Events sections) */
.events-list {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.events-list__items {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

/* Event List Item */
.event-list-item {
    border: 1px solid var(--color-gray-300);
    border-radius: 10px;
    padding: 24px;
    transition: all 0.3s ease;
}

.event-list-item:hover {
    border-color: var(--color-primary);
    box-shadow: 0 4px 12px rgba(21, 94, 239, 0.1);
    transform: translateX(4px);
}

.event-list-item__content {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.event-list-item__title {
    font-size: 20px;
    line-height: 30px;
    font-weight: 500;
    color: var(--color-black);
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.event-list-item__meta {
    display: flex;
    gap: 24px;
    align-items: center;
    flex-wrap: wrap;
}

.event-list-item__date {
    font-size: 16px;
    line-height: 24px;
    font-weight: 600;
    color: var(--color-primary);
}

.event-list-item__location {
    font-size: 16px;
    line-height: 24px;
    font-weight: 400;
    color: var(--color-black);
}

.event-list-item__badge {
    background-color: var(--color-gray-100);
    color: var(--color-black);
    font-size: 14px;
    line-height: 20px;
    font-weight: 500;
    padding: 4px 8px;
    border-radius: 5px;
    display: inline-block;
}

/* =================================
   OPPORTUNITIES PAGE STYLES
   ================================= */

/* Opportunities List Section */
.opportunities-list {
    padding: 48px 0;
}

.opportunities-list__items {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.opportunities-list__footer {
    margin-top: 24px;
}

/* Opportunity List Item */
.opportunity-list-item {
    border: 1px solid var(--color-gray-300);
    border-radius: 10px;
    padding: 24px;
    transition: all 0.3s ease;
    display: block;
}

.opportunity-list-item:hover {
    border-color: var(--color-primary);
    box-shadow: 0 4px 12px rgba(21, 94, 239, 0.1);
    transform: translateX(4px);
}

.opportunity-list-item__content {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.opportunity-list-item__title {
    font-size: 20px;
    line-height: 30px;
    font-weight: 500;
    color: var(--color-black);
    margin: 0;
}

.opportunity-list-item__meta {
    display: flex;
    gap: 24px;
    align-items: center;
    flex-wrap: wrap;
}

.opportunity-list-item__deadline {
    font-size: 16px;
    line-height: 24px;
    font-weight: 600;
    color: var(--color-primary);
}

.opportunity-list-item__location {
    font-size: 16px;
    line-height: 24px;
    font-weight: 400;
    color: var(--color-black);
}

.opportunity-list-item__badge {
    background-color: var(--color-gray-100);
    color: var(--color-black);
    font-size: 14px;
    line-height: 20px;
    font-weight: 500;
    padding: 4px 8px;
    border-radius: 5px;
    display: inline-block;
}

/* Opportunities List Responsive */
@media (max-width: 767.98px) {
    .opportunities-list {
        padding: 32px 0;
    }

    .opportunity-list-item {
        padding: 16px;
    }

    .opportunity-list-item__title {
        font-size: 16px;
        line-height: 24px;
    }

    .opportunity-list-item__meta {
        gap: 12px;
    }

    .opportunity-list-item__deadline,
    .opportunity-list-item__location {
        font-size: 14px;
        line-height: 20px;
    }
}

/* Opportunity Detail Hero */
.opportunity-detail-hero {
    background-size: cover;
    background-position: center;
    min-height: 500px;
    display: flex;
    align-items: flex-end;
    padding: 80px 0;
    position: relative;
}

.opportunity-detail-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom,
            rgba(0, 0, 0, 0.3) 0%,
            rgba(0, 0, 0, 0.5) 50%,
            rgba(0, 0, 0, 0.7) 100%);
}

.opportunity-detail-hero .container-custom {
    position: relative;
    z-index: 1;
}

.opportunity-detail-hero__content {
    max-width: 628px;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.opportunity-detail-hero__breadcrumb {
    display: flex;
    align-items: center;
    gap: 14px;
    font-size: 14px;
    line-height: 20px;
    font-weight: 500;
    color: var(--color-white);
}

.opportunity-detail-hero__breadcrumb a {
    color: var(--color-white);
    text-decoration: underline;
}

.opportunity-detail-hero__breadcrumb a:hover {
    opacity: 0.8;
}

.opportunity-detail-hero__breadcrumb span {
    color: var(--color-white);
}

.opportunity-detail-hero__title {
    font-family: var(--font-family-heading);
    font-size: 40px;
    line-height: 1.25;
    font-weight: 600;
    color: var(--color-white);
    margin: 0;
}

.opportunity-detail-hero__date {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 16px;
    line-height: 24px;
    font-weight: 400;
    color: var(--color-white);
}

.opportunity-detail-hero__date img {
    filter: brightness(0) invert(1);
    opacity: 1;
}

.opportunity-detail-hero__actions {
    display: flex;
    gap: 16px;
    align-items: center;
}

.opportunity-detail-hero__actions .btn-outline-light {
    background-color: var(--color-white);
    border-color: var(--color-white);
    color: var(--color-primary);
}

.opportunity-detail-hero__actions .btn-outline-light:hover {
    background-color: rgba(255, 255, 255, 0.9);
    border-color: rgba(255, 255, 255, 0.9);
    color: var(--color-primary);
}

/* Opportunity Detail Content */
.opportunity-detail-content {
    padding: 80px 0;
}

.opportunity-detail-content__section {
    margin-bottom: 48px;
}

.opportunity-detail-content__section:last-child {
    margin-bottom: 0;
}

.opportunity-detail-content__title {
    font-family: var(--font-family-heading);
    font-size: 32px;
    line-height: 1.25;
    font-weight: 600;
    color: var(--color-black);
    margin: 0 0 24px 0;
}

.opportunity-detail-content__body {
    font-size: 16px;
    line-height: 24px;
    font-weight: 400;
    color: var(--color-black);
}

.opportunity-detail-content__body p {
    margin-bottom: 32px;
}

.opportunity-detail-content__body p:last-child {
    margin-bottom: 0;
}

.opportunity-detail-content__body ul {
    margin: 0;
    padding-left: 24px;
}

.opportunity-detail-content__body ul li {
    margin-bottom: 8px;
}

.opportunity-detail-content__body ul li:last-child {
    margin-bottom: 0;
}

/* Opportunity Detail Responsive */
@media (max-width: 991.98px) {
    .opportunity-detail-hero {
        min-height: 400px;
        padding: 48px 0;
    }

    .opportunity-detail-hero__title {
        font-size: 32px;
    }

    .opportunity-detail-content {
        padding: 48px 0;
    }

    .opportunity-detail-content__title {
        font-size: 24px;
    }
}

@media (max-width: 767.98px) {
    .opportunity-detail-hero {
        min-height: 350px;
        padding: 32px 0;
    }

    .opportunity-detail-hero__content {
        gap: 16px;
    }

    .opportunity-detail-hero__title {
        font-size: 24px;
    }

    .opportunity-detail-hero__date {
        font-size: 14px;
    }

    .opportunity-detail-hero__actions {
        flex-wrap: wrap;
        gap: 12px;
    }

    .opportunity-detail-content {
        padding: 32px 0;
    }

    .opportunity-detail-content__section {
        margin-bottom: 32px;
    }

    .opportunity-detail-content__title {
        font-size: 20px;
        margin-bottom: 16px;
    }

    .opportunity-detail-content__body {
        font-size: 14px;
        line-height: 22px;
    }
}

/* =================================
   TOPICS PAGE STYLES
   ================================= */

/* Topics Hero Section */
.topics-hero {
    background-image: url("../../assets/images/backgrounds/hero-topics.png");
    background-size: cover;
    background-position: center center;
    min-height: 500px;
    height: 500px;
    display: flex;
    align-items: flex-end;
    padding: 48px 0;
    position: relative;
}

.topics-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom,
            rgba(0, 0, 0, 0.2) 0%,
            rgba(0, 0, 0, 0.4) 40%,
            rgba(0, 0, 0, 0.7) 100%);
}

.topics-hero .container-custom {
    position: relative;
    z-index: 1;
}

.topics-hero h1 {
    font-family: var(--font-family-heading);
    font-size: 40px;
    line-height: 1.25;
    font-weight: 600;
    color: var(--color-white);
    margin: 0;
    max-width: 628px;
}

/* Topics Explore Section */
.topics-explore {
    padding: 48px 80px;
}

.topics-explore__title {
    font-family: var(--font-family-heading);
    font-size: 32px;
    line-height: 1.25;
    font-weight: 500;
    color: var(--color-black);
    margin: 0 0 56px 0;
}

.topics-explore__grid {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.topics-explore__row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

/* =================================
   SECRETARIATS DETAIL RESPONSIVE
   ================================= */

@media (max-width: 991.98px) {

    /* =================================
       TOPICS PAGE - TABLET
       ================================= */
    .topics-explore {
        padding: 40px 32px;
    }

    .topics-explore__title {
        font-size: 28px;
        line-height: 1.25;
        margin-bottom: 40px;
    }

    .topics-explore__row {
        grid-template-columns: repeat(2, 1fr);
    }

    .secretariat-content {
        padding: 40px 0;
    }

    /* Hide entire sidebar in tablet and mobile */
    .secretariat-sidebar {
        display: none;
    }

    /* Remove row negative margins when sidebar is hidden */
    .secretariat-content .row {
        margin-left: 0;
        margin-right: 0;
    }

    /* Remove negative margins from nested rows (member cards, etc.) */
    .secretariat-content .content-section .row {
        margin-left: 0;
        margin-right: 0;
    }

    .secretariat-main {
        padding-left: 0;
        padding-right: 0;
        width: 100%;
    }

    .content-section {
        margin-bottom: 48px;
    }

    .content-section__title {
        font-size: 36px;
        line-height: 44px;
    }

    .related-events {
        padding: 40px 0;
    }

    .related-events__title {
        font-size: 36px;
        line-height: 44px;
        margin-bottom: 40px;
    }

    /* Ensure related sections have consistent padding */
    .related-media,
    .official-documents {
        padding: 40px 0;
    }
}

@media (max-width: 767.98px) {
    .secretariat-content {
        padding: 32px 0;
    }

    /* Remove row negative margins for mobile */
    .secretariat-content .row {
        margin-left: 0;
        margin-right: 0;
    }

    /* Remove negative margins from nested rows (member cards, etc.) */
    .secretariat-content .content-section .row {
        margin-left: 0;
        margin-right: 0;
    }

    .secretariat-main {
        padding-left: 0;
        padding-right: 0;
    }

    .content-section {
        gap: 24px;
        margin-bottom: 40px;
    }

    .content-section__title {
        font-size: 30px;
        line-height: 38px;
    }

    .content-section__text,
    .content-section__list {
        font-size: 16px;
        line-height: 24px;
    }

    .event-list-item {
        padding: 20px;
    }

    .event-list-item__title {
        font-size: 18px;
        line-height: 28px;
    }

    .event-list-item__meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }

    /* Members List - Mobile */
    .member-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
    }

    .member-row__name {
        font-size: 20px;
        line-height: 24px;
    }

    .member-row__social {
        gap: 16px;
    }

    /* Related Events Header - Mobile */
    .related-events__header {
        flex-direction: column;
        align-items: flex-start;
        gap: 24px;
        margin-bottom: 40px;
    }

    /* Ensure all related sections have consistent mobile padding */
    .related-media,
    .related-events,
    .official-documents,
    .key-projects {
        padding: 32px 0;
    }

    .related-media__title,
    .related-events__title,
    .official-documents__title {
        font-size: 30px;
        line-height: 38px;
    }

    /* =================================
       TOPICS PAGE - MOBILE
       ================================= */
    .topics-hero {
        min-height: 300px;
        height: 300px;
        padding: 32px 0;
    }

    .topics-hero h1 {
        font-size: 32px;
        line-height: 1.25;
    }

    .topics-explore {
        padding: 32px 16px;
    }

    .topics-explore__title {
        font-size: 24px;
        line-height: 1.25;
        margin-bottom: 32px;
    }

    .topics-explore__row {
        grid-template-columns: 1fr;
        gap: 16px;
    }
}

/* =================================
   INITIATIVES PAGE (PROJECTS & PARTNERSHIPS)
   ================================= */

/* Hero Section with Search */
.initiatives-hero {
    background-size: cover;
    background-position: center;
    background-image: url("../images/backgrounds/hero-topics.png");
    position: relative;
    min-height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 80px;
}

.initiatives-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg,
            rgba(0, 0, 0, 0.2) 0%,
            rgba(0, 0, 0, 0.7) 40%,
            rgba(0, 0, 0, 1) 100%);
    z-index: 1;
}

.initiatives-hero__content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    margin: 0 auto;
}

.initiatives-hero__title {
    font-family: var(--font-family-heading);
    font-size: var(--font-size-display-lg);
    line-height: var(--line-height-display-lg);
    font-weight: 600;
    color: var(--color-white);
    margin: 0 0 32px 0;
    letter-spacing: -0.96px;
}

.initiatives-hero__search {
    width: 100%;
}

/* Search Input Styling */
.search-input__wrapper {
    position: relative;
    display: flex;
    align-items: center;
    background: var(--color-white);
    border: 1px solid var(--color-gray-300);
    border-radius: 25px;
    padding: 0 24px;
    height: 56px;
    width: 100%;
}

.search-input__icon {
    margin-right: 16px;
    flex-shrink: 0;
}

.search-input {
    flex: 1;
    border: none;
    outline: none;
    background: transparent;
    font-size: var(--font-size-md);
    font-family: var(--font-family);
    color: var(--color-black);
}

.search-input::placeholder {
    color: rgba(0, 0, 0, 0.5);
}

/* =================================
   OUR PROJECTS SECTION
   ================================= */
.our-projects {
    padding: var(--spacing-section) 0;
    background-color: var(--color-white);
}

.our-projects__title {
    font-family: var(--font-family-heading);
    font-size: var(--font-size-display-lg);
    line-height: var(--line-height-display-lg);
    font-weight: 500;
    letter-spacing: -0.96px;
    color: var(--color-black);
    margin: 0 0 56px 0;
}

.our-projects__grid {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 32px;
}

.our-projects__row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.our-projects__footer {
    display: flex;
    justify-content: flex-start;
    margin-top: 56px;
}

/* =================================
   OUR PARTNERSHIPS SECTION
   ================================= */
.our-partnerships {
    padding: var(--spacing-section) 0;
    background-color: var(--color-primary-light);
}

.our-partnerships__title {
    font-family: var(--font-family-heading);
    font-size: var(--font-size-display-lg);
    line-height: var(--line-height-display-lg);
    font-weight: 500;
    letter-spacing: -0.96px;
    color: var(--color-black);
    margin: 0 0 72px 0;
}

.our-partnerships__grid {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.our-partnerships__row {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

/* Fix for small desktop view in Our Partnerships grid */
.our-partnerships__row .partnership-card {
    width: 100%;
    flex: 1 1 auto;
}

/* Partnership Card - Updated for background image with overlay */
.partnership-card {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    min-height: 450px;
    display: flex;
    flex-direction: column;
}

.partnership-card__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg,
            rgba(0, 0, 0, 0) 0%,
            rgba(0, 0, 0, 0.3) 30%,
            rgba(0, 0, 0, 0.5) 50%,
            rgba(0, 0, 0, 0.8) 100%);
    z-index: 1;
}

.partnership-card__content {
    padding: 160px 32px 32px 32px;
    display: flex;
    flex-direction: column;
    gap: 24px;
    flex: 1;
    justify-content: flex-end;
    position: relative;
    z-index: 2;
}

.partnership-card__title {
    font-family: var(--font-family-heading);
    font-size: 30px;
    line-height: 1.25;
    font-weight: 600;
    color: var(--color-white);
    margin: 0;
}

.partnership-card__description {
    font-size: var(--font-size-md);
    line-height: var(--line-height-md);
    color: var(--color-white);
    margin: 0;
}

.partnership-card__btn {
    align-self: flex-start;
}

/* =================================
   INITIATIVES PAGE - RESPONSIVE
   ================================= */
@media (max-width: 768px) {

    /* Hero Section */
    .initiatives-hero {
        min-height: 350px;
        padding: 32px 16px;
    }

    .initiatives-hero__title {
        font-size: 36px;
        line-height: 44px;
        letter-spacing: -0.72px;
    }

    /* Projects Grid */
    .our-projects {
        padding: 32px 16px;
    }

    .our-projects__title {
        font-size: 30px;
        line-height: 38px;
        margin-bottom: 32px;
    }

    .our-projects__row {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    /* Partnerships Section */
    .our-partnerships {
        padding: 32px 16px;
    }

    .our-partnerships__title {
        font-size: 30px;
        line-height: 38px;
        margin-bottom: 32px;
    }

    .our-partnerships__row {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .partnership-card__image-wrapper {
        height: 200px;
    }

    .partnership-card__content {
        padding: 24px;
        gap: 16px;
    }

    .partnership-card__title {
        font-size: 20px;
        line-height: 28px;
    }
}

/* =================================
   SEARCH POPUP COMPONENT
   ================================= */
.initiatives-hero__search {
    position: relative;
    z-index: 1002;
    /* Higher than navbar when active if needed, but usually navbar is 1001 */
}

.search-popup {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    width: 100%;
    background-color: var(--color-white);
    border-radius: 15px;
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.15);
    z-index: 9999;
    /* Ensure it's above everything */
    display: none;
    border: 1px solid #2970ff;
    opacity: 0;
    transform: translateY(-10px);
    transition: all 0.2s ease-out;
    text-align: left;
}

.search-popup.active {
    display: block !important;
    opacity: 1 !important;
    transform: translateY(0) !important;
}

/* Header */
.search-popup__header {
    padding: 24px 40px;
    border-bottom: 1px solid var(--color-gray-200);
    background-color: var(--color-gray-50);
}

/* Content */
.search-popup__content {
    padding: 24px;
}

.search-popup__list {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.search-popup__item {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 12px 16px;
    margin: 0 -16px;
    border-radius: 8px;
    text-decoration: none;
    transition: background-color 0.2s ease;
}

.search-popup__item:hover {
    background-color: #f5f5f5;
}

.search-popup__item-content {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.search-popup__item-category {
    font-size: 16px;
    font-weight: 400;
    color: var(--color-black);
    opacity: 0.5;
    order: 2;
}

.search-popup__item-title {
    font-size: 16px;
    font-weight: 400;
    color: var(--color-black);
    margin: 0;
    line-height: 24px;
    order: 1;
}

.search-popup__see-all {
    display: block;
    font-size: 16px;
    font-weight: 700;
    color: var(--color-black);
    text-decoration: none;
    padding-top: 24px;
    transition: opacity 0.2s ease;
}

.search-popup__see-all:hover {
    opacity: 0.7;
    color: var(--color-black);
}

/* =================================
   SEARCH RESULTS PAGE
   ================================= */

/* Hero Section Modifier for Search Page */
.apaec-hero--search {
    min-height: 500px;
}

.apaec-hero--search .container-custom {
    z-index: 101;
    /* Override parent z-index: 1 to be above sticky tabs (z-index: 100) */
}

/* Hero Search Input (pill style) */
.search-hero__input {
    display: flex;
    align-items: center;
    gap: 16px;
    background: var(--color-white);
    border: 1px solid var(--color-gray-300);
    border-radius: 25px;
    padding: 8px 24px;
    max-width: 630px;
    height: 56px;
    margin-top: 24px;
}

.search-hero__input input {
    border: none;
    outline: none;
    font-family: var(--font-family);
    font-size: 16px;
    font-weight: 500;
    color: var(--color-black);
    flex: 1;
    background: transparent;
}

.search-hero__input input::placeholder {
    color: var(--color-black);
    opacity: 0.5;
}

/* Search Hero Input Wrapper (with popup support) */
.search-hero__input-wrapper {
    position: relative;
    max-width: 630px;
    margin-top: 24px;
}

.search-hero__input-wrapper .search-input__wrapper {
    width: 100%;
}

.search-hero__input-wrapper .search-popup {
    max-width: 100%;
}

/* Search Results Section */
.search-results {
    padding: 48px 0;
}

.search-results__header {
    margin-bottom: 8px;
}

.search-results__label {
    display: block;
    font-family: var(--font-family);
    font-size: 20px;
    font-weight: 600;
    line-height: 30px;
    color: var(--color-black);
    margin-bottom: 8px;
}

.search-results__query {
    font-family: var(--font-family);
    font-size: 30px;
    font-weight: 600;
    line-height: 38px;
    color: var(--color-black);
    margin: 0;
}

/* Search Results Tabs */
.search-results__tabs-wrapper {
    border-bottom: 1px solid var(--color-gray-300);
    padding-top: 24px;
    padding-bottom: 0;
    /* Sticky positioning */
    position: sticky;
    top: 0;
    z-index: 100;
    background-color: #fff;
}

.search-results__tabs {
    display: flex;
    gap: 32px;
    overflow-x: auto;
    position: relative;
}

.search-results__tab {
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-family);
    font-size: 14px;
    font-weight: 600;
    line-height: 20px;
    color: #6f6f6f;
    text-decoration: none;
    white-space: nowrap;
    position: relative;
    padding-bottom: 16px;
    transition: color 0.2s ease;
}

.search-results__tab:hover {
    color: var(--color-black);
}

.search-results__tab--active {
    color: var(--color-black);
    font-weight: 600;
}

.search-results__tab--active::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--color-black);
}

.search-results__badge {
    background: var(--color-gray-blue);
    padding: 2px 8px;
    border-radius: 16px;
    font-weight: 400;
    font-size: 14px;
    line-height: 20px;
}

/* Search Page Document Section Header Gap (56px) */
.search-section__header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 56px;
}

.search-section__header .official-documents__title,
.search-section__header .search-newsletter__title,
.search-section__header .related-events__title {
    margin: 0;
}

/* Policy Briefs Section - Padding to match Figma */
.search-section--policy {
    padding-top: 48px;
    padding-bottom: 96px;
}

/* Section Divider */
.search-section__divider {
    height: 4px;
    background: var(--color-gray-300);
    opacity: 0.56;
}

.search-section__divider--thick {
    height: 8px;
    opacity: 1;
}

/* Light Blue Background Section */
.search-section--blue {
    background: #f5f8ff;
    padding: 48px 0;
}

/* Newsletter Section */
.search-newsletter {
    background: #f5f8ff;
    padding: 48px 0;
}

.search-newsletter .container-custom {
    padding-top: 0;
    padding-bottom: 0;
}

.search-newsletter__title {
    font-family: var(--font-family-heading);
    font-size: 32px;
    font-weight: 600;
    line-height: 1.25;
    color: var(--color-black);
    margin: 0;
}

/* Newsletter Card */
.newsletter-card {
    background: var(--color-white);
    border: 1px solid var(--color-gray-300);
    border-radius: 10px;
    padding: 32px 24px;
    display: flex;
    flex-direction: column;
    gap: 48px;
    height: 100%;
    transition:
        box-shadow 0.2s ease,
        transform 0.2s ease;
}

.newsletter-card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    transform: translateY(-2px);
}

.newsletter-card__thumbnail {
    width: 100px;
    height: 100px;
    border-radius: 5px;
    object-fit: cover;
}

.newsletter-card__title {
    font-family: var(--font-family-heading);
    font-size: 24px;
    font-weight: 500;
    line-height: 1.25;
    color: var(--color-black);
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Responsive Adjustments for Search Page */
@media (max-width: 991.98px) {
    .apaec-hero--search {
        min-height: 400px;
    }

    .search-hero__input,
    .search-hero__input-wrapper {
        max-width: 100%;
    }

    .search-results__tabs {
        gap: 24px;
    }

    .search-newsletter__title {
        font-size: 28px;
    }
}

@media (max-width: 767.98px) {
    .apaec-hero--search {
        min-height: 350px;
    }

    .search-results__label {
        font-size: 16px;
    }

    .search-results__query {
        font-size: 24px;
        line-height: 1.25;
    }

    .search-results__tabs {
        gap: 16px;
    }

    .search-results__tab {
        font-size: 13px;
    }

    .search-section__header {
        margin-bottom: 32px;
    }

    .newsletter-card {
        padding: 24px 16px;
        gap: 32px;
    }

    .newsletter-card__thumbnail {
        width: 80px;
        height: 80px;
    }

    .newsletter-card__title {
        font-size: 20px;
    }

    .search-newsletter__title {
        font-size: 24px;
    }
}

/* =================================
   PAGINATION COMPONENT
   ================================= */

.pagination-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 20px 0 0;
    margin-top: 56px;
    border-top: 1px solid var(--color-gray-300);
}

.pagination__btn-wrap {
    flex: 1;
}

.pagination__btn-wrap--prev {
    display: flex;
    justify-content: flex-start;
}

.pagination__btn-wrap--next {
    display: flex;
    justify-content: flex-end;
}

.pagination__btn {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 8px 12px;
    background: var(--color-white);
    border: 1px solid var(--color-gray-300);
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    color: #414651;
    text-decoration: none;
    transition: all 0.2s ease;
    box-shadow:
        0px 0px 0px 1px rgba(10, 13, 18, 0.18) inset,
        0px -2px 0px 0px rgba(10, 13, 18, 0.05) inset;
}

.pagination__btn:hover {
    background: var(--color-gray-100);
    color: #414651;
}

.pagination__btn--disabled {
    opacity: 0.5;
    pointer-events: none;
}

.pagination__btn i {
    font-size: 16px;
    color: #a4a7ae;
}

.pagination__numbers {
    display: flex;
    gap: 2px;
}

.pagination__number {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 500;
    color: #717680;
    text-decoration: none;
    transition: all 0.2s ease;
}

.pagination__number:hover {
    background: var(--color-gray-100);
    color: #414651;
}

.pagination__number--active {
    background: var(--color-gray-100);
    color: #414651;
}

.pagination__number--ellipsis {
    pointer-events: none;
}

/* Responsive pagination */
@media (max-width: 767.98px) {
    .pagination-wrapper {
        gap: 8px;
    }

    .pagination__btn-wrap {
        flex: 0 0 auto;
    }

    .pagination__btn span {
        display: none;
    }

    .pagination__btn {
        padding: 8px 10px;
    }

    .pagination__numbers {
        gap: 0;
    }

    .pagination__number {
        width: 36px;
        height: 36px;
        font-size: 13px;
    }
}

/* =================================
   SEARCH CATEGORY DETAIL SECTION
   ================================= */

.search-category-detail {
    padding: 48px 0 80px;
}

.search-category-detail__title {
    font-family: var(--font-family-heading);
    font-size: 32px;
    font-weight: 600;
    line-height: 1.25;
    color: var(--color-black);
    margin: 0 0 56px;
}

/* Responsive */
@media (max-width: 991.98px) {
    .search-category-detail__title {
        font-size: 28px;
        margin-bottom: 40px;
    }
}

@media (max-width: 767.98px) {
    .search-category-detail {
        padding: 32px 0 48px;
    }

    .search-category-detail__title {
        font-size: 24px;
        margin-bottom: 32px;
    }

    .pagination-wrapper {
        margin-top: 40px;
    }
}

/* =================================
   INITIATIVE DETAIL PAGE
   ================================= */

/* Initiative Overview Section */
.initiative-overview {
    background-color: #f5f8ff;
    padding: 80px 0;
    text-align: center;
}

.initiative-overview__text {
    font-family: var(--font-family);
    font-size: 18px;
    font-weight: 400;
    line-height: 28px;
    color: var(--color-black);
    margin: 0 0 48px;
}

.initiative-overview__logos {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 56px;
    flex-wrap: wrap;
}

.initiative-overview__logos img {
    height: 40px;
    width: auto;
    object-fit: contain;
}

/* Responsive Initiative Overview */
@media (max-width: 991.98px) {
    .initiative-overview {
        padding: 60px 0;
    }

    .initiative-overview__text {
        font-size: 16px;
        line-height: 26px;
    }

    .initiative-overview__logos {
        gap: 32px;
    }
}

@media (max-width: 767.98px) {
    .initiative-overview {
        padding: 40px 0;
    }

    .initiative-overview__text {
        font-size: 15px;
        line-height: 24px;
        margin-bottom: 32px;
    }

    .initiative-overview__logos {
        gap: 24px;
    }

    .initiative-overview__logos img {
        height: 32px;
    }
}

/* Logo Card (for Partner/Accelerator sections) */
.logo-card {
    background-color: var(--color-white);
    border: 1px solid var(--color-gray-200);
    border-radius: var(--radius-lg);
    padding: 32px;
    display: flex;
    flex-direction: column;
    gap: 48px;
    transition:
        border-color 0.2s ease,
        box-shadow 0.2s ease;
}

.logo-card:hover {
    border-color: var(--color-primary);
    box-shadow: 0 4px 12px rgba(21, 94, 239, 0.1);
}

.logo-card__image {
    height: 65px;
    width: auto;
    max-width: 220px;
    object-fit: contain;
}

.logo-card__name {
    font-family: var(--font-family);
    font-size: 16px;
    font-weight: 500;
    line-height: 24px;
    color: var(--color-black);
    margin: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Responsive Logo Card */
@media (max-width: 767.98px) {
    .logo-card {
        padding: 24px;
        gap: 32px;
    }

    .logo-card__image {
        height: 32px;
    }

    .logo-card__name {
        font-size: 14px;
    }
}

/* FAQ Section */
.faq-section {
    background-color: #f5f8ff;
    padding: 56px 0;
}

.faq-section__title {
    font-family: var(--font-family-heading);
    font-size: 32px;
    font-weight: 600;
    line-height: 1.25;
    color: var(--color-black);
    margin: 0 0 48px;
}

.faq-list {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.faq-item {
    background-color: var(--color-white);
    border: 1px solid var(--color-gray-300);
    border-radius: var(--radius-lg);
    overflow: hidden;
}

.faq-item__header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.faq-item__header:hover {
    background-color: var(--color-gray-50);
}

.faq-item__question {
    font-family: var(--font-family);
    font-size: 20px;
    font-weight: 500;
    line-height: 30px;
    color: var(--color-black);
    margin: 0;
    flex: 1;
    padding-right: 16px;
}

.faq-item__icon {
    font-size: 20px;
    color: var(--color-black);
    transition: transform 0.3s ease;
    flex-shrink: 0;
}

.faq-item__header.collapsed .faq-item__icon {
    transform: rotate(180deg);
}

.faq-item__answer {
    padding: 0 24px 24px;
}

.faq-item__answer p {
    font-family: var(--font-family);
    font-size: 16px;
    font-weight: 400;
    line-height: 24px;
    color: var(--color-black);
    margin: 0;
}

/* Responsive FAQ */
@media (max-width: 991.98px) {
    .faq-section {
        padding: 48px 0;
    }

    .faq-section__title {
        font-size: 28px;
        margin-bottom: 32px;
    }

    .faq-item__question {
        font-size: 18px;
        line-height: 28px;
    }
}

@media (max-width: 767.98px) {
    .faq-section {
        padding: 32px 0;
    }

    .faq-section__title {
        font-size: 24px;
        margin-bottom: 24px;
    }

    .faq-list {
        gap: 16px;
    }

    .faq-item__header {
        padding: 16px;
    }

    .faq-item__question {
        font-size: 16px;
        line-height: 24px;
    }

    .faq-item__answer {
        padding: 0 16px 16px;
    }

    .faq-item__answer p {
        font-size: 14px;
        line-height: 22px;
    }
}

/* Initiative Detail Content - Events list inside sidebar content */
.initiative-detail-content .events-list {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

/* =================================
   KNOWLEDGE HUB PAGE
   ================================= */

/* Knowledge Hub Hero */
.apaec-hero--knowledge-hub {
    min-height: 500px;
    display: flex;
    align-items: flex-end;
    padding-bottom: 80px;
}

.apaec-hero--knowledge-hub h1 {
    font-family: var(--font-family-heading);
    font-size: 40px;
    font-weight: 600;
    line-height: 1.25;
    color: var(--color-white);
    margin: 0;
}

/* Knowledge Hub Section Titles */
.knowledge-hub__section-title {
    font-family: var(--font-family-heading);
    font-size: 32px;
    font-weight: 500;
    line-height: 1.25;
    color: var(--color-black);
    margin: 0 0 48px;
}

/* Knowledge Hub Dashboards Section */
.knowledge-hub__dashboards {
    padding: 80px 0 48px;
}

.knowledge-hub__dashboards .data-card {
    height: 250px;
    text-decoration: none;
}

.knowledge-hub__dashboards .data-card__title {
    text-decoration: none;
}

/* Country Profile Section */
.country-profile {
    padding: 48px 0;
}

/* Country Card Component */
.country-card {
    display: flex;
    flex-direction: column;
    gap: 48px;
    padding: 32px 24px;
    background-color: var(--color-white);
    border: 1px solid #d5d7da;
    border-radius: 10px;
    text-decoration: none;
    transition: all 0.2s ease;
}

.country-card:hover {
    border-color: var(--color-primary);
    box-shadow: 0 4px 12px rgba(21, 94, 239, 0.1);
}

.country-card__header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.country-card__flag {
    width: 75px;
    height: 40px;
    object-fit: contain;
}

.country-card__arrow {
    flex-shrink: 0;
}

.country-card__title {
    font-family: var(--font-family-heading);
    font-size: 24px;
    font-weight: 500;
    line-height: 1.25;
    color: var(--color-black);
    margin: 0;
}

/* Knowledge Hub Documents Section */
.knowledge-hub__documents {
    padding: 48px 0;
}

/* Document Card Tall Variant */
.document-card--tall {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.document-card--tall .document-card__image {
    width: 100%;
    /* height: 500px; */
    aspect-ratio: 256 / 359;
    object-fit: cover;
    border-radius: 0;
}

.document-card--tall .document-card__body {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.document-card--tall .document-card__title {
    font-family: var(--font-family-heading);
    font-size: 24px;
    font-weight: 500;
    line-height: 1.25;
    color: var(--color-black);
    margin: 0;
}

.document-card--tall .document-card__actions {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

/* =================================
   KNOWLEDGE HUB DETAIL PAGE
   ================================= */

/* Hero Variant for Knowledge Hub Detail */
.apaec-hero--knowledge-hub-detail {
    min-height: 500px;
    height: 500px;
    display: flex;
    align-items: flex-end;
    padding-bottom: 80px;
}

.apaec-hero--knowledge-hub-detail h1 {
    font-family: var(--font-family-heading);
    font-size: 40px;
    font-weight: 600;
    line-height: 1.25;
    color: var(--color-white);
    margin: 0;
    max-width: 628px;
}

/* Data Section */
.knowledge-hub-detail__data {
    padding: 48px 0;
}

.knowledge-hub-detail__data-header {
    display: flex;
    flex-direction: column;
    gap: 24px;
    margin-bottom: 24px;
}

.knowledge-hub-detail__data-title {
    font-family: var(--font-family-heading);
    font-size: 32px;
    font-weight: 500;
    line-height: 1.25;
    color: var(--color-black);
    margin: 0;
}

.knowledge-hub-detail__data-separator {
    height: 2px;
    background-color: #c4c4c4;
    opacity: 0.5;
    margin-bottom: 24px;
}

.knowledge-hub-detail__data-description {
    font-size: 18px;
    line-height: 28px;
    color: var(--color-black);
    margin-bottom: 24px;
}

.knowledge-hub-detail__data-content {
    width: 100%;
}

.knowledge-hub-detail__data-image {
    width: 100%;
    height: auto;
    display: block;
}

/* Related Reports Section for Knowledge Hub Detail */
.knowledge-hub-detail__reports {
    padding-top: 48px;
    padding-bottom: 48px;
}

.knowledge-hub-detail__reports .related-media__title--standalone {
    margin-bottom: 56px;
}

/* Standalone title variant (without header wrapper) */
.related-media__title--standalone {
    font-family: var(--font-family-heading);
    font-size: 32px;
    font-weight: 500;
    line-height: 1.25;
    color: var(--color-black);
}

/* Country Profile Detail Section */
.country-profile-detail {
    background-color: #f5f8ff;
    padding: 48px 0;
}

.country-profile-detail__title {
    font-family: var(--font-family-heading);
    font-size: 32px;
    font-weight: 500;
    line-height: 1.25;
    color: var(--color-black);
    margin: 0 0 24px 0;
    max-width: 737px;
}

.country-profile-detail__content {
    font-family: var(--font-family);
    font-size: 18px;
    font-weight: 400;
    line-height: 28px;
    color: var(--color-black);
}

.country-profile-detail__content p {
    margin-bottom: 18px;
}

.country-profile-detail__content p:last-child {
    margin-bottom: 0;
}

/* Responsive Knowledge Hub Detail */
@media (max-width: 991.98px) {
    .apaec-hero--knowledge-hub-detail {
        min-height: 400px;
        height: auto;
        padding-bottom: 60px;
    }

    .apaec-hero--knowledge-hub-detail h1 {
        font-size: 32px;
    }

    .knowledge-hub-detail__data-title,
    .related-media__title--standalone,
    .country-profile-detail__title {
        font-size: 28px;
    }

    .country-profile-detail {
        padding: 40px 0;
    }

    .country-profile-detail__content {
        font-size: 16px;
        line-height: 26px;
    }

    .knowledge-hub-detail__reports .related-media__title--standalone {
        margin-bottom: 40px;
    }
}

@media (max-width: 767.98px) {
    .apaec-hero--knowledge-hub-detail {
        min-height: 300px;
        padding-bottom: 40px;
    }

    .apaec-hero--knowledge-hub-detail h1 {
        font-size: 28px;
    }

    .knowledge-hub-detail__data {
        padding: 32px 0;
    }

    .knowledge-hub-detail__data-title,
    .related-media__title--standalone,
    .country-profile-detail__title {
        font-size: 24px;
    }

    .country-profile-detail {
        padding: 32px 0;
    }

    .country-profile-detail__content {
        font-size: 16px;
        line-height: 24px;
    }

    .country-profile-detail__content p {
        margin-bottom: 16px;
    }

    .knowledge-hub-detail__reports {
        padding-top: 32px;
        padding-bottom: 32px;
    }

    .knowledge-hub-detail__reports .related-media__title--standalone {
        margin-bottom: 32px;
    }
}

/* Responsive Knowledge Hub */
@media (max-width: 991.98px) {
    .apaec-hero--knowledge-hub {
        min-height: 400px;
        padding-bottom: 60px;
    }

    .apaec-hero--knowledge-hub h1 {
        font-size: 32px;
    }

    .knowledge-hub__section-title {
        font-size: 28px;
        margin-bottom: 32px;
    }

    .knowledge-hub__dashboards {
        padding: 60px 0 40px;
    }

    .country-card {
        gap: 32px;
        padding: 24px 20px;
    }

    .country-card__title {
        font-size: 20px;
    }

    .document-card--tall .document-card__image {
        /* height: 400px; */
        aspect-ratio: 256 / 359;
    }

    .document-card--tall .document-card__title {
        font-size: 20px;
    }
}

@media (max-width: 767.98px) {
    .apaec-hero--knowledge-hub {
        min-height: 300px;
        padding-bottom: 40px;
    }

    .apaec-hero--knowledge-hub h1 {
        font-size: 28px;
    }

    .knowledge-hub__section-title {
        font-size: 24px;
        margin-bottom: 24px;
    }

    .knowledge-hub__dashboards {
        padding: 40px 0 32px;
    }

    .knowledge-hub__dashboards .data-card {
        height: 200px;
    }

    .country-profile {
        padding: 32px 0;
    }

    .country-card {
        gap: 24px;
        padding: 20px 16px;
    }

    .country-card__flag {
        width: 60px;
        height: 32px;
    }

    .country-card__title {
        font-size: 18px;
    }

    .knowledge-hub__documents {
        padding: 32px 0;
    }

    .document-card--tall .document-card__image {
        /* height: 300px; */
        aspect-ratio: 256 / 359;
    }

    .document-card--tall .document-card__title {
        font-size: 18px;
    }

    .document-card--tall .document-card__actions {
        flex-direction: column;
    }

    .document-card--tall .document-card__actions .btn {
        width: 100%;
        text-align: center;
    }
}

/* =================================
   COMING SOON PAGE STYLES
   ================================= */

/* Coming Soon Hero Section */
.coming-soon-hero {
    background-image: url("../images/backgrounds/coming-soon-bg.jpg");
    background-size: cover;
    background-position: center center;
    min-height: 500px;
    display: flex;
    align-items: center;
    position: relative;
}

.coming-soon-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(to right,
            rgba(0, 0, 0, 0.7) 0%,
            rgba(0, 0, 0, 0.5) 40%,
            rgba(0, 0, 0, 0.3) 70%,
            rgba(0, 0, 0, 0.2) 100%);
    backdrop-filter: blur(2px);
}

.coming-soon-hero .container-custom {
    position: relative;
    z-index: 1;
}

.coming-soon-hero__content {
    display: flex;
    flex-direction: column;
    gap: 24px;
    max-width: 800px;
}

.coming-soon-hero__title {
    font-family: var(--font-family-heading);
    font-size: 40px;
    line-height: 1.25;
    font-weight: 600;
    color: var(--color-white);
    margin: 0;
}

.coming-soon-hero__description {
    font-size: 16px;
    line-height: 24px;
    font-weight: 400;
    color: var(--color-white);
    margin: 0;
}

.coming-soon-hero__cta {
    align-self: flex-start;
}

/* Responsive Coming Soon */
@media (max-width: 991.98px) {
    .coming-soon-hero {
        min-height: 400px;
    }

    .coming-soon-hero__title {
        font-size: 32px;
    }

    .coming-soon-hero__content {
        gap: 20px;
    }
}

@media (max-width: 767.98px) {
    .coming-soon-hero {
        min-height: 350px;
    }

    .coming-soon-hero__title {
        font-size: 28px;
    }

    .coming-soon-hero__description {
        font-size: 14px;
        line-height: 22px;
    }

    .coming-soon-hero__content {
        gap: 16px;
    }
}

/* =================================
   SERVICES PAGE - TRAINING & CAPACITY BUILDING
   ================================= */

/* Service Cards Section */
.service-cards {
    padding: var(--spacing-section) 0;
}

/* Service Card - Alternating Image+Text Block */
.service-card {
    display: flex;
    align-items: flex-end;
    gap: 56px;
    margin-bottom: var(--spacing-lg);
}

.service-card:last-child {
    margin-bottom: 0;
}

.service-card__image {
    flex: 0 0 40%;
    overflow: hidden;
}

.service-card__image img {
    width: 100%;
    height: auto;
    aspect-ratio: 518/600;
    object-fit: cover;
    display: block;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.service-card:hover .service-card__image img {
    transform: scale(1.03);
}

.service-card__content {
    flex: 1;
}

.service-card__title {
    font-family: var(--font-family-heading);
    font-size: 32px;
    line-height: 1.25;
    font-weight: 500;
    color: var(--color-dark);
    margin-bottom: 24px;
}

.service-card__description {
    font-size: 20px;
    line-height: 2;
    color: var(--color-dark);
    margin-bottom: 40px;
}

/* Service Card without button - remove bottom margin on description */
.service-card__description:last-child {
    margin-bottom: 0;
}

/* Service Card Reverse - Image on right */
.service-card--reverse {
    flex-direction: row-reverse;
}

/* Service Cards Light Blue Background */
.service-cards--blue {
    background-color: #eff4ff;
}

/* FAQ Section Light Background Modifier */
.faq-section--light {
    background-color: var(--color-gray-50);
}

/* FAQ Section White Background Modifier */
.faq-section--white {
    background-color: var(--color-white);
}

/* =================================
   SUPPORTED BY SECTION
   ================================= */

.supported-by-section {
    background-color: #f5f8ff;
    padding: 80px 0;
    text-align: center;
}

.supported-by-section__title {
    font-family: var(--font-family-body);
    font-size: 18px;
    font-weight: 400;
    line-height: 28px;
    color: var(--color-black);
    margin-bottom: 48px;
}

.supported-by-section__logos {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 56px;
    flex-wrap: wrap;
}

.supported-by-section__logo {
    height: 200px;
    width: auto;
}

/* Responsive Supported By Section */
@media (max-width: 767.98px) {
    .supported-by-section {
        padding: 48px 0;
    }

    .supported-by-section__title {
        margin-bottom: 32px;
    }

    .supported-by-section__logos {
        gap: 32px;
    }

    .supported-by-section__logo {
        height: 100px;
    }
}

/* Content Section List Styles */
.content-section__list {
    padding-left: 20px;
    margin: 0;
}

.content-section__list li {
    font-size: var(--font-size-md);
    line-height: var(--line-height-md);
    color: var(--color-secondary);
    margin-bottom: 16px;
}

.content-section__list li:last-child {
    margin-bottom: 0;
}

/* Responsive Service Cards */
@media (max-width: 991.98px) {
    .service-cards {
        padding: var(--spacing-lg) 0;
    }

    .service-card,
    .service-card--reverse {
        flex-direction: column;
        gap: var(--spacing-md);
        margin-bottom: var(--spacing-md);
    }

    .service-card__image {
        flex: none;
        width: 100%;
    }

    .service-card__title {
        font-size: 24px;
        line-height: 1.3;
        margin-bottom: var(--spacing-sm);
    }

    .service-card__description {
        font-size: 16px;
        line-height: 1.75;
        margin-bottom: var(--spacing-md);
    }
}

@media (max-width: 767.98px) {
    .service-card {
        gap: var(--spacing-sm);
    }

    .service-card__title {
        font-size: 22px;
        margin-bottom: var(--spacing-xs);
    }

    .service-card__description {
        font-size: 15px;
        margin-bottom: var(--spacing-sm);
    }
}

/* =================================
   ABOUT PAGE
   ================================= */

/* Mission & Vision Section */
.about-mission-vision {
    background-color: #eff4ff;
    padding: var(--spacing-section) 0;
}

.about-mission-vision__cards {
    display: flex;
    gap: 24px;
}

.about-mission-vision__card {
    flex: 1;
    background-color: var(--color-white);
    border-radius: var(--radius-xl);
    padding: var(--spacing-md);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 280px;
}

.about-mission-vision__text {
    font-family: var(--font-family-heading);
    font-size: 24px;
    line-height: 1.25;
    font-weight: 600;
    margin: 0;
}

.about-mission-vision__highlight {
    color: var(--color-black);
}

.about-mission-vision__muted {
    color: rgba(0, 0, 0, 0.5);
}

.about-mission-vision__label {
    font-family: var(--font-family);
    font-size: 18px;
    line-height: 28px;
    font-weight: 500;
    color: var(--color-black);
    opacity: 0.5;
    margin: 0;
}

/* Secretariats Section */
.about-secretariats {
    padding: var(--spacing-section) 0;
}

.about-secretariats__title {
    font-family: var(--font-family-heading);
    font-size: 32px;
    line-height: 1.25;
    font-weight: 500;
    color: var(--color-black);
    margin: 0 0 56px 0;
}

.about-secretariats__grid {
    display: flex;
    gap: 16px;
    margin-bottom: 56px;
}

.about-secretariats__card {
    flex: 1;
    background-color: var(--color-white);
    border: 1px solid #d5d7da;
    border-radius: var(--radius-lg);
    padding: 32px 24px;
    display: flex;
    flex-direction: column;
    gap: 48px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.about-secretariats__card:hover {
    border-color: var(--color-primary);
    box-shadow: 0 8px 24px rgba(21, 94, 239, 0.15);
    transform: translateY(-4px);
}

.about-secretariats__card img[src*="arrow-up-right"] {
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.about-secretariats__card:hover img[src*="arrow-up-right"] {
    transform: translate(4px, -4px);
}

.about-secretariats__card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.about-secretariats__logo {
    height: 40px;
    width: auto;
    object-fit: contain;
}

.about-secretariats__link {
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-black);
    text-decoration: none;
    transition: transform 0.2s ease;
}

.about-secretariats__link:hover {
    transform: translate(4px, -4px);
    color: var(--color-primary);
}

.about-secretariats__card-body {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.about-secretariats__card-title {
    font-family: var(--font-family-heading);
    font-size: 24px;
    line-height: 1.25;
    font-weight: 500;
    color: var(--color-black);
    margin: 0;
}

.about-secretariats__card-description {
    font-size: 14px;
    line-height: 20px;
    color: var(--color-black);
    margin: 0;
}

.about-secretariats__btn {
    width: fit-content;
}

/* About Page Responsive */
@media (max-width: 991.98px) {
    .about-mission-vision {
        padding: 48px 0;
    }

    .about-mission-vision__cards {
        flex-direction: column;
    }

    .about-secretariats {
        padding: 48px 0;
    }

    .about-secretariats__grid {
        flex-direction: column;
    }

    .about-secretariats__title {
        font-size: 28px;
        margin-bottom: 32px;
    }
}

@media (max-width: 575.98px) {
    .about-mission-vision__text {
        font-size: 20px;
    }

    .about-secretariats__card-title {
        font-size: 20px;
    }
}

/* =================================
   STRUCTURE AND GOVERNANCE PAGE
   ================================= */

/* Structure Intro Section */
.structure-intro {
    background-color: #f5f8ff;
    padding: 80px 0;
}

.structure-intro__row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 48px;
}

.structure-intro__title-col {
    flex: 0 0 299px;
}

.structure-intro__title {
    font-family: var(--font-family-heading);
    font-size: 24px;
    font-weight: 500;
    line-height: 1.25;
    color: var(--color-black);
    opacity: 0.5;
    margin: 0;
}

.structure-intro__content-col {
    flex: 1;
    max-width: 953px;
}

.structure-intro__description {
    font-family: var(--font-family);
    font-size: 18px;
    font-weight: 400;
    line-height: 28px;
    color: var(--color-black);
    margin: 0;
}

/* Organization Structure Section */
.org-structure {
    background-color: var(--color-white);
    padding: 48px 0;
}

.org-structure__title {
    font-family: var(--font-family-heading);
    font-size: 32px;
    font-weight: 500;
    line-height: 1.25;
    color: var(--color-black);
    margin: 0 0 32px 0;
}

.org-structure__image-wrapper {
    width: 100%;
}

.org-structure__image {
    width: 100%;
    height: auto;
    display: block;
}

/* Leadership Section */
.leadership-section {
    background-color: var(--color-white);
    padding: 48px 0;
}

.leadership-section__title {
    font-family: var(--font-family-heading);
    font-size: 32px;
    font-weight: 500;
    line-height: 1.25;
    color: var(--color-black);
    margin: 0 0 56px 0;
}

.leadership-section__group {
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.leadership-section__subtitle {
    font-family: var(--font-family-heading);
    font-size: 24px;
    font-weight: 600;
    line-height: 1.25;
    color: var(--color-black);
    margin: 0;
}

.leadership-section__cards {
    display: flex;
    gap: 24px;
    flex-wrap: wrap;
}

.leadership-section__cards .team-member-card {
    width: 302px;
    aspect-ratio: 302 / 330;
    flex-shrink: 0;
}

/* Team Member Section */
.team-member-section {
    background-color: var(--color-white);
    padding: 48px 0;
}

.team-member-section__title {
    font-family: var(--font-family-heading);
    font-size: 32px;
    font-weight: 500;
    line-height: 1.25;
    color: var(--color-black);
    margin: 0 0 56px 0;
}

.team-member-section__group {
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.team-member-section__subtitle {
    font-family: var(--font-family-heading);
    font-size: 24px;
    font-weight: 600;
    line-height: 1.25;
    color: var(--color-black);
    margin: 0;
}

.team-member-section__btn {
    align-self: flex-start;
}

/* Team List */
.team-list {
    display: flex;
    flex-direction: column;
    gap: 24px;
    width: 100%;
}

.team-list__item {
    display: flex;
    align-items: flex-end;
    gap: 24px;
}

.team-list__info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.team-list__name {
    font-family: var(--font-family);
    font-size: 20px;
    font-weight: 500;
    line-height: 30px;
    color: var(--color-black);
    margin: 0;
}

.team-list__role {
    font-family: var(--font-family);
    font-size: 16px;
    font-weight: 400;
    line-height: 24px;
    color: var(--color-black);
    margin: 0;
}

/* Social Icons in Team List */
.team-list__socials {
    display: flex;
    gap: 24px;
    align-items: center;
    flex-shrink: 0;
}

.team-list__social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    transition: opacity 0.2s ease;
}

.team-list__social-link:hover {
    opacity: 0.7;
}

.team-list__social-link img {
    width: 100%;
    height: 100%;
}

.team-list__divider {
    height: 1px;
    background-color: var(--color-gray-200);
    width: 100%;
}

/* Governing Council Section */
.governing-council {
    background-color: #f5f8ff;
    padding: 56px 0;
}

.governing-council__title {
    font-family: var(--font-family-heading);
    font-size: 32px;
    font-weight: 600;
    line-height: 1.25;
    color: var(--color-black);
    margin: 0 0 48px 0;
}

.governing-council__list {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.governing-council__item {
    background-color: var(--color-white);
    border: 1px solid var(--color-gray-300);
    border-radius: var(--radius-lg);
    overflow: hidden;
}

.governing-council__header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.governing-council__header:hover {
    background-color: var(--color-gray-50);
}

.governing-council__country {
    display: flex;
    align-items: center;
    gap: 16px;
}

.governing-council__flag {
    width: 43px;
    object-fit: cover;
    border-radius: 2px;
}

.governing-council__country-name {
    font-family: var(--font-family);
    font-size: 20px;
    font-weight: 500;
    line-height: 30px;
    color: var(--color-black);
}

.governing-council__icon {
    font-size: 20px;
    color: var(--color-black);
    transition: transform 0.3s ease;
}

.governing-council__header:not(.collapsed) .governing-council__icon {
    transform: rotate(180deg);
}

.governing-council__content {
    padding: 0 24px 24px;
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.governing-council__members {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.governing-council__member {
    display: flex;
    align-items: flex-start;
    gap: 24px;
}

.governing-council__avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}

.governing-council__member-info {
    display: flex;
    flex-direction: column;
    gap: 12px;
    flex: 1;
}

.governing-council__member-name {
    font-family: var(--font-family);
    font-size: 20px;
    font-weight: 500;
    line-height: 30px;
    color: var(--color-black);
    margin: 0;
}

.governing-council__member-role {
    font-family: var(--font-family);
    font-size: 16px;
    font-weight: 400;
    line-height: 24px;
    color: var(--color-black);
    margin: 0;
}

.governing-council__divider {
    height: 1px;
    background-color: var(--color-gray-200);
    width: 100%;
}

.governing-council__contact {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.governing-council__contact-item {
    display: flex;
    align-items: flex-start;
    gap: 24px;
}

.governing-council__contact-icon {
    width: 24px;
    height: 24px;
    flex-shrink: 0;
}

.governing-council__contact-text {
    font-family: var(--font-family);
    font-size: 16px;
    font-weight: 400;
    line-height: 24px;
    color: var(--color-black);
    margin: 0;
    flex: 1;
}

.governing-council__contact-link {
    font-family: var(--font-family);
    font-size: 16px;
    font-weight: 400;
    line-height: 24px;
    color: var(--color-primary-hover);
    text-decoration: none;
    transition: color 0.2s ease;
}

.governing-council__contact-link:hover {
    color: var(--color-primary);
    text-decoration: underline;
}

/* Structure and Governance Responsive */
@media (max-width: 991.98px) {
    .structure-intro {
        padding: 56px 0;
    }

    .structure-intro__row {
        flex-direction: column;
        gap: 24px;
    }

    .structure-intro__title-col {
        flex: none;
        width: 100%;
    }

    .structure-intro__title {
        opacity: 1;
    }

    .structure-intro__content-col {
        max-width: 100%;
    }

    .leadership-section__title,
    .team-member-section__title,
    .org-structure__title,
    .governing-council__title {
        font-size: 28px;
        margin-bottom: 40px;
    }

    .leadership-section__subtitle,
    .team-member-section__subtitle {
        font-size: 22px;
    }

    .governing-council__member {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
    }

    .governing-council__avatar {
        width: 64px;
        height: 64px;
    }
}

@media (max-width: 767.98px) {
    .structure-intro {
        padding: 40px 0;
    }

    .structure-intro__title {
        font-size: 20px;
    }

    .structure-intro__description {
        font-size: 16px;
        line-height: 24px;
    }

    .leadership-section,
    .team-member-section,
    .org-structure {
        padding: 32px 0;
    }

    .governing-council {
        padding: 40px 0;
    }

    .leadership-section__title,
    .team-member-section__title,
    .org-structure__title,
    .governing-council__title {
        font-size: 24px;
        margin-bottom: 32px;
    }

    .leadership-section__subtitle,
    .team-member-section__subtitle {
        font-size: 20px;
    }

    .team-list__name,
    .governing-council__country-name,
    .governing-council__member-name {
        font-size: 18px;
        line-height: 28px;
    }

    .team-list__role,
    .governing-council__member-role {
        font-size: 14px;
        line-height: 22px;
    }

    .team-list__item {
        flex-direction: column;
        align-items: flex-start;
    }

    .team-list__socials {
        margin-top: 8px;
        gap: 16px;
    }

    .team-list__social-link {
        width: 28px;
        height: 28px;
    }

    .governing-council__header {
        padding: 16px;
    }

    .governing-council__content {
        padding: 0 16px 16px;
        gap: 24px;
    }

    .governing-council__contact-item {
        gap: 16px;
    }

    .governing-council__contact-text,
    .governing-council__contact-link {
        font-size: 14px;
        line-height: 22px;
    }
}

@media (max-width: 575.98px) {
    .team-member-card {
        width: 100%;
    }

    /* Keep leadership card at fixed desktop size */
    .leadership-section__cards .team-member-card {
        width: 302px;
        aspect-ratio: 302 / 330;
    }

    .governing-council__flag {
        width: 32px;
    }

    .governing-council__avatar {
        width: 56px;
        height: 56px;
    }
}

/* =================================
   CONTACT PAGE
   ================================= */

/* Contact Section */
.contact-section {
    padding: var(--spacing-section) 0;
}

.contact-section__row {
    display: flex;
    gap: 80px;
    align-items: flex-start;
}

/* Contact Info (Left Column) */
.contact-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 48px;
}

.contact-info__header {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.contact-info__title {
    font-family: var(--font-family-heading);
    font-size: 32px;
    font-weight: 600;
    line-height: 1.25;
    color: var(--color-black);
    margin: 0;
}

.contact-info__description {
    font-size: var(--font-size-md);
    line-height: var(--line-height-md);
    color: var(--color-black);
    margin: 0;
}

.contact-info__items {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.contact-info__item {
    display: flex;
    gap: 16px;
    align-items: flex-start;
}

.contact-info__icon {
    width: 24px;
    height: 24px;
    flex-shrink: 0;
    margin-top: 4px;
}

.contact-info__text {
    font-size: 18px;
    line-height: 28px;
    color: var(--color-black);
    margin: 0;
}

/* Contact Form (Right Column) */
.contact-form {
    width: 519px;
    flex-shrink: 0;
}

.contact-form__group {
    margin-bottom: 24px;
}

.contact-form__label {
    display: block;
    font-size: var(--font-size-md);
    font-weight: 500;
    line-height: var(--line-height-md);
    color: var(--color-black);
    margin-bottom: 16px;
}

.contact-form__input,
.contact-form__textarea {
    width: 100%;
    height: 48px;
    padding: 10px 14px;
    font-size: var(--font-size-sm);
    line-height: var(--line-height-sm);
    font-family: var(--font-family);
    border: 1px solid var(--color-gray-300);
    border-radius: var(--radius-md);
    background-color: var(--color-white);
    transition:
        border-color 0.2s ease,
        box-shadow 0.2s ease;
}

.contact-form__input:focus,
.contact-form__textarea:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(21, 94, 239, 0.1);
}

.contact-form__input::placeholder,
.contact-form__textarea::placeholder {
    color: var(--color-black);
    opacity: 0.5;
}

.contact-form__textarea {
    height: 200px;
    resize: vertical;
}

.contact-form__privacy {
    font-size: var(--font-size-md);
    font-weight: 500;
    line-height: var(--line-height-md);
    color: var(--color-black);
    margin-bottom: 24px;
}

.contact-form__submit {
    width: 100%;
    height: 56px;
    font-size: var(--font-size-md);
    font-weight: 500;
}

/* Contact Page Responsive Styles */
@media (max-width: 991.98px) {
    .contact-section__row {
        flex-direction: column;
        gap: 48px;
    }

    .contact-form {
        width: 100%;
    }
}

@media (max-width: 767.98px) {
    .contact-section {
        padding: 48px 0;
    }

    .contact-info {
        gap: 32px;
    }

    .contact-info__title {
        font-size: 24px;
    }

    .contact-info__text {
        font-size: 16px;
        line-height: 24px;
    }

    .contact-form__group {
        margin-bottom: 20px;
    }

    .contact-form__label {
        margin-bottom: 12px;
    }

    .contact-form__textarea {
        height: 150px;
    }

    .contact-form__submit {
        height: 48px;
    }
}

/* =================================
   ARTICLES RESULTS SECTION
   ================================= */

.articles-results {
    padding: 48px 0;
}

.articles-results__header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
}

.articles-results__count {
    font-size: var(--font-size-md);
    line-height: var(--line-height-md);
    color: var(--color-black);
}

.articles-results__sort {
    display: flex;
    align-items: center;
    gap: 16px;
}

.articles-results__sort-label {
    font-size: var(--font-size-md);
    line-height: var(--line-height-md);
    color: var(--color-black);
}

.articles-results__sort-dropdown {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    transition: opacity 0.2s ease;
}

.articles-results__sort-dropdown:hover {
    opacity: 0.8;
}

.articles-results__sort-value {
    font-size: var(--font-size-md);
    font-weight: 600;
    line-height: var(--line-height-md);
    color: var(--color-primary);
}

.articles-results__sort-dropdown i {
    color: var(--color-primary);
    font-size: 14px;
}

/* Media Card Simple Modifier (for articles listing) */
.media-card--simple .media-card__body {
    gap: 0;
}

/* Articles Results Responsive Styles */
@media (max-width: 767.98px) {
    .articles-results {
        padding: 32px 0;
    }

    .articles-results__header {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
        margin-bottom: 24px;
    }

    .articles-results__sort {
        gap: 12px;
    }
}

/* Articles Sort Dropdown Menu */
.articles-results__sort-dropdown {
    background: transparent;
    border: none;
    padding: 0;
}

.articles-results__sort-menu {
    min-width: 160px;
    padding: 8px 0;
    border: 1px solid var(--color-gray-200);
    border-radius: var(--radius-md);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.articles-results__sort-menu .dropdown-item {
    font-size: var(--font-size-sm);
    line-height: var(--line-height-sm);
    padding: 10px 16px;
    color: var(--color-black);
    transition: background-color 0.2s ease;
}

.articles-results__sort-menu .dropdown-item:hover {
    background-color: #f5f5f5;
}

.articles-results__sort-menu .dropdown-item.active,
.articles-results__sort-menu .dropdown-item:active {
    background-color: #f5f5f5;
    color: var(--color-primary);
    font-weight: 600;
}

/* =================================
   AUTH MODALS (Sign In / Sign Up)
   ================================= */

/* Ensure auth modals appear above site header (z-index: 1001) */
#signInModal,
#signUpModal {
    z-index: 1060;
}

.modal-backdrop {
    z-index: 1055;
}

.auth-modal {
    width: 100%;
    max-width: 628px;
    padding: 32px;
    border-radius: var(--radius-xl);
    background: var(--color-white);
    border: none;
}

.auth-modal__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
}

.auth-modal__logo {
    height: 48px;
    width: auto;
}

.auth-modal__close {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    padding: 0;
    background: transparent;
    border: none;
    cursor: pointer;
    color: var(--color-black);
    transition: opacity 0.2s ease;
}

.auth-modal__close:hover {
    opacity: 0.7;
}

.auth-modal__body {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.auth-modal__title {
    font-family: var(--font-family-heading);
    font-size: var(--font-size-display-xs);
    font-weight: 600;
    line-height: 1.25;
    color: var(--color-black);
    margin: 0;
}

.auth-modal__subtitle {
    font-family: var(--font-family);
    font-size: var(--font-size-md);
    font-weight: 400;
    line-height: var(--line-height-md);
    color: var(--color-black);
    margin: -16px 0 0 0;
}

.auth-modal__form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.auth-modal__field {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.auth-modal__label {
    font-family: var(--font-family);
    font-size: var(--font-size-md);
    font-weight: 600;
    line-height: var(--line-height-md);
    color: var(--color-black);
    margin: 0;
}

.auth-modal__input {
    height: 48px;
    padding: 8px 16px;
    background: var(--color-white);
    border: 1px solid var(--color-gray-300);
    border-radius: var(--radius-sm);
    font-family: var(--font-family);
    font-size: var(--font-size-md);
    font-weight: 500;
    line-height: var(--line-height-md);
    color: var(--color-black);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.auth-modal__input::placeholder {
    color: var(--color-black);
    opacity: 0.5;
}

.auth-modal__input:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(21, 94, 239, 0.1);
}

.auth-modal__input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.auth-modal__input--password {
    width: 100%;
    padding-right: 48px;
}

.auth-modal__password-toggle {
    position: absolute;
    right: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 16px;
    height: 16px;
    padding: 0;
    background: transparent;
    border: none;
    cursor: pointer;
    opacity: 0.5;
    transition: opacity 0.2s ease;
}

.auth-modal__password-toggle:hover {
    opacity: 1;
}

.auth-modal__forgot-link {
    font-family: var(--font-family);
    font-size: var(--font-size-md);
    font-weight: 600;
    line-height: var(--line-height-md);
    color: var(--color-primary);
    text-decoration: none;
    transition: color 0.2s ease;
}

.auth-modal__forgot-link:hover {
    color: var(--color-primary-hover);
}

.auth-modal__btn {
    width: 100%;
    height: 48px;
    padding: 10px 14px;
    background: var(--color-primary);
    border: 2px solid rgba(255, 255, 255, 0.12);
    border-radius: var(--radius-md);
    font-family: var(--font-family);
    font-size: var(--font-size-md);
    font-weight: 500;
    line-height: var(--line-height-md);
    color: var(--color-white);
    cursor: pointer;
    transition: background-color 0.2s ease;
    box-shadow:
        inset 0 0 0 1px rgba(10, 13, 18, 0.18),
        inset 0 -2px 0 0 rgba(10, 13, 18, 0.05);
}

.auth-modal__btn:hover {
    background: var(--color-primary-hover);
}

.auth-modal__footer-text {
    font-family: var(--font-family);
    font-size: var(--font-size-md);
    font-weight: 500;
    line-height: var(--line-height-md);
    color: var(--color-black);
    text-align: center;
    margin: 0;
}

.auth-modal__switch-link {
    font-weight: 600;
    color: var(--color-primary);
    text-decoration: none;
    transition: color 0.2s ease;
}

.auth-modal__switch-link:hover {
    color: var(--color-primary-hover);
}

.auth-modal__checkbox {
    display: flex;
    align-items: center;
    gap: 16px;
}

.auth-modal__checkbox-input {
    width: 24px;
    height: 24px;
    margin: 0;
    border: 1px solid #949494;
    border-radius: var(--radius-sm);
    cursor: pointer;
    accent-color: var(--color-primary);
}

.auth-modal__checkbox-label {
    font-family: var(--font-family);
    font-size: var(--font-size-md);
    font-weight: 500;
    line-height: var(--line-height-md);
    color: var(--color-black);
    margin: 0;
    cursor: pointer;
}

.auth-modal__cancel-link {
    display: block;
    font-family: var(--font-family);
    font-size: var(--font-size-md);
    font-weight: 600;
    line-height: var(--line-height-md);
    color: var(--color-primary);
    text-align: center;
    text-decoration: none;
    transition: color 0.2s ease;
}

.auth-modal__cancel-link:hover {
    color: var(--color-primary-hover);
}

/* Auth Modal Responsive */
@media (max-width: 767.98px) {
    .auth-modal {
        padding: 24px;
        margin: 16px;
        max-width: calc(100% - 32px);
    }

    .auth-modal__logo {
        height: 40px;
    }

    .auth-modal__title {
        font-size: 20px;
    }

    .auth-modal__checkbox {
        align-items: flex-start;
    }

    .auth-modal__checkbox-input {
        flex-shrink: 0;
        margin-top: 2px;
    }
}

/* =================================
   TEAM MEMBER DETAIL MODAL
   ================================= */

/* Ensure team member modal appears above backdrop and site header */
.team-member-modal {
    z-index: 1060;
}

/* Modal Container */
.team-member-modal .modal-dialog {
    max-width: 1040px;
}

.team-member-modal .modal-content {
    background-color: #F5F8FF;
    border: none;
    border-radius: 0;
    padding: 80px 40px;
    position: relative;
}

/* Close Button */
.team-member-modal__close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 32px;
    height: 32px;
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-black);
    font-size: 24px;
    z-index: 10;
    transition: opacity 0.2s ease;
}

.team-member-modal__close:hover {
    opacity: 0.7;
}

/* Modal Body - Two Column Layout */
.team-member-modal__body {
    display: flex;
    gap: 56px;
    align-items: flex-start;
}

/* Left Column - Info */
.team-member-modal__info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 40px;
}

/* Header Section */
.team-member-modal__header {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.team-member-modal__name {
    font-family: var(--font-family-heading);
    font-size: 40px;
    line-height: 1.25;
    font-weight: 700;
    color: var(--color-black);
    margin: 0;
}

.team-member-modal__role-wrapper {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.team-member-modal__role {
    font-family: var(--font-family-heading);
    font-size: 24px;
    line-height: 1.25;
    font-weight: 400;
    color: var(--color-black);
    margin: 0;
}

/* Social Icons */
.team-member-modal__socials {
    display: flex;
    gap: 8px;
    align-items: center;
}

.team-member-modal__social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.2s ease;
}

.team-member-modal__social-link:hover {
    opacity: 0.7;
}

.team-member-modal__social-link {
    width: 18px;
    height: 18px;
}

.team-member-modal__social-link img {
    display: block;
    width: 100%;
    height: 100%;
}

/* Details Section */
.team-member-modal__details {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.team-member-modal__section {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.team-member-modal__section-title {
    font-family: var(--font-family-heading);
    font-size: 20px;
    line-height: 1.25;
    font-weight: 500;
    color: var(--color-black);
    margin: 0;
}

.team-member-modal__section-text {
    font-family: var(--font-family);
    font-size: 14px;
    line-height: 1.25;
    font-weight: 400;
    color: var(--color-black);
    margin: 0;
}

.team-member-modal__divider {
    height: 1px;
    background-color: var(--color-gray-300);
    width: 100%;
}

/* Expertise List */
.team-member-modal__expertise-list {
    font-family: var(--font-family);
    font-size: 14px;
    line-height: 1.25;
    font-weight: 400;
    color: var(--color-black);
    margin: 0;
    padding-left: 21px;
}

.team-member-modal__expertise-list li {
    margin-bottom: 0;
}

/* Download Button */
.team-member-modal__btn {
    border: 2px solid rgba(255, 255, 255, 0.12) !important;
    box-shadow: 0px 0px 0px 1px inset rgba(10, 13, 18, 0.18),
        0px -2px 0px 0px inset rgba(10, 13, 18, 0.05),
        0px 1px 2px 0px rgba(10, 13, 18, 0.05);
    width: fit-content;
}

/* Right Column - Photo */
.team-member-modal__photo {
    width: 407px;
    height: 480px;
    flex-shrink: 0;
    border-radius: 5px;
    overflow: hidden;
    background-color: #d9d9d9;
}

.team-member-modal__photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Make team member cards clickable */
.team-member-card--clickable {
    cursor: pointer;
}

/* Team Member Modal Responsive - Tablet */
@media (max-width: 991.98px) {
    .team-member-modal .modal-dialog {
        max-width: 90%;
        margin: 20px auto;
    }

    .team-member-modal .modal-content {
        padding: 60px 32px;
    }

    .team-member-modal__body {
        flex-direction: column-reverse;
        gap: 40px;
    }

    .team-member-modal__photo {
        width: 100%;
        height: 350px;
    }

    .team-member-modal__name {
        font-size: 32px;
    }

    .team-member-modal__role {
        font-size: 20px;
    }
}

/* Team Member Modal Responsive - Mobile */
@media (max-width: 767.98px) {
    .team-member-modal .modal-content {
        padding: 48px 24px;
    }

    .team-member-modal__close {
        top: 16px;
        right: 16px;
    }

    .team-member-modal__info {
        gap: 32px;
    }

    .team-member-modal__name {
        font-size: 28px;
    }

    .team-member-modal__role {
        font-size: 18px;
    }

    .team-member-modal__photo {
        height: 280px;
    }
}

/* News Clipping Horizontal Cards (override/additions) */
/* News Clipping Horizontal Cards (Updated Design) */
.newsclip-card {
  display: flex;
  gap: 32px;
  padding: 0;
  border: none;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  transition: none;
  margin-bottom: 40px;
  align-items: stretch;
}
.newsclip-card:hover {
  transform: none;
  box-shadow: none;
}
.newsclip-card__image-link {
  flex-shrink: 0;
  width: 400px;
  display: flex;
}
.newsclip-card__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 12px;
  display: block;
  min-height: 240px;
}
.newsclip-card__body {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
}
.newsclip-card__countries {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
}
.newsclip-country-chip {
  background: #F2F4F7;
  color: #344054;
  padding: 4px 12px;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 500;
  line-height: normal;
}
.newsclip-more-countries {
  color: #155EEF;
  font-size: 14px;
  font-weight: 500;
  margin-left: 4px;
  text-decoration: none;
  position: relative;
  cursor: pointer;
}
.newsclip-countries-tooltip {
  visibility: hidden;
  opacity: 0;
  position: absolute;
  bottom: calc(100% + 12px);
  left: 50%;
  transform: translateX(-50%);
  background: #FFF;
  border: 1px solid #E4E7EC;
  border-radius: 8px;
  padding: 8px 12px;
  box-shadow: 0px 12px 16px -4px rgba(16, 24, 40, 0.08), 0px 4px 6px -2px rgba(16, 24, 40, 0.03);
  white-space: nowrap;
  color: #155EEF;
  font-weight: 500;
  z-index: 100;
  transition: all 0.2s ease-in-out;
}
.newsclip-countries-tooltip::after {
  content: "";
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  border-left: 7px solid transparent;
  border-right: 7px solid transparent;
  border-top: 7px solid #FFF;
  z-index: 2;
}
.newsclip-countries-tooltip::before {
  content: "";
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  border-left: 8px solid transparent;
  border-right: 8px solid transparent;
  border-top: 8px solid #E4E7EC;
  margin-top: 1px;
  z-index: 1;
}
.newsclip-more-countries:hover .newsclip-countries-tooltip {
  visibility: visible;
  opacity: 1;
  bottom: calc(100% + 8px);
}
.newsclip-card__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 20px;
  margin-bottom: 12px;
  font-size: 14px;
  color: #667085;
}
.newsclip-meta-item {
  display: flex;
  align-items: center;
  gap: 8px;
}
.newsclip-card__title {
  margin: 0 0 12px;
  font-size: 28px;
  line-height: 38px;
  font-weight: 600;
  color: #101828;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.newsclip-card__excerpt {
  margin: 0 0 24px;
  font-size: 16px;
  line-height: 24px;
  color: #475467;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
/* Re-using existing btn-outline-primary with specific adjustments if needed */
.newsclip-card .btn-outline-primary {
  align-self: flex-start;
  padding: 10px 18px;
  border: 1px solid #D0D5DD;
  border-radius: 8px;
  color: #155EEF;
  font-weight: 600;
  background: #FFF;
  box-shadow: 0px 1px 2px rgba(16, 24, 40, 0.05);
  transition: all 0.2s ease;
}
.newsclip-card .btn-outline-primary:hover {
  background: #F9FAFB;
  color: #155EEF;
  border-color: #D0D5DD;
}

@media (max-width: 1200px) {
  .newsclip-card__image-link { width: 320px; }
  .newsclip-card__image { height: 200px; }
  .newsclip-card__title { font-size: 24px; line-height: 32px; }
}
@media (max-width: 991px) {
  .newsclip-card { gap: 20px; }
  .newsclip-card__image-link { width: 260px; }
  .newsclip-card__image { height: 180px; }
}
@media (max-width: 767px) {
  .newsclip-card { flex-direction: column; gap: 16px; align-items: stretch; }
  .newsclip-card__image-link { width: 100%; }
  .newsclip-card__image { height: 200px; }
}

/* =============================================
   About Page - Video Section
   ============================================= */
.about-video-section {
    background: #FFFFFF;
    padding: 80px 0;
}
.about-video-section__inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 40px;
}
@media(min-width: 1024px) {
    .about-video-section__inner {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        gap: 60px;
    }
}
.about-video-section__media {
    flex: 1;
    width: 100%;
    display: flex;
    justify-content: center;
}
@media(min-width: 1024px) {
    .about-video-section__media { max-width: 519px; }
}
.about-video-section__image-wrapper {
    position: relative;
    width: 100%;
    max-width: 519px;
    background: #FFFFFF;
    padding: 8px;
    box-shadow: 1px 2px 5px 0px rgba(0,76,240,.08),6px 7px 9px 0px rgba(0,76,240,.07),13px 15px 12px 0px rgba(0,76,240,.04),23px 26px 14px 0px rgba(0,76,240,.01),36px 41px 15px 0px rgba(0,76,240,0);
    border-radius: 4px;
}
.about-video-section__image {
    width: 100%;
    height: auto;
    aspect-ratio: 519 / 300;
    object-fit: cover;
    display: block;
}
.about-video-section__play-btn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%,-50%);
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    transition: transform 0.2s ease;
}
.about-video-section__play-btn:hover {
    transform: translate(-50%,-50%) scale(1.05);
}
.about-video-section__content {
    flex: 1;
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 24px;
}
@media(min-width: 1024px) {
    .about-video-section__content { max-width: 700px; }
}
.about-video-section__title {
    font-family: 'Raleway', sans-serif;
    font-weight: 500;
    font-size: 32px;
    line-height: 1.25;
    color: #101828;
    margin: 0;
}
.about-video-section__desc {
    font-family: 'Inter', sans-serif;
    font-weight: 400;
    font-size: 20px;
    line-height: 2.0;
    color: #475467;
    margin: 0;
}
.about-video-section__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #155EEF;
    color: #FFFFFF;
    padding: 10px 14px;
    border-radius: 8px;
    font-family: 'Inter', sans-serif;
    font-weight: 500;
    font-size: 16px;
    line-height: 20px;
    text-decoration: none;
    box-shadow: 0px 1px 2px 0px rgba(10,13,18,.05),inset 0px -2px 0px 0px rgba(10,13,18,.05),inset 0px 0px 0px 1px rgba(10,13,18,.18);
    transition: all 0.2s ease;
}
.about-video-section__btn:hover {
    background: #1251d1;
    color: #FFFFFF;
    transform: translateY(-1px);
}
@media(max-width: 1023px) {
    .about-video-section__title { font-size: 28px; }
    .about-video-section__desc { font-size: 18px; }
}

/* =============================================
   About Page - Media Kit Section
   ============================================= */
.media-kit-section {
    background: #EFF4FF;
    padding: 80px 0;
}
.media-kit-section__title {
    font-family: 'Raleway', sans-serif;
    font-weight: 500;
    font-size: 32px;
    line-height: 1.25;
    color: #000000;
    margin-bottom: 56px;
}
.media-kit-section__wrapper {
    display: flex;
    flex-direction: column;
    gap: 24px;
}
.media-kit-card {
    background: #FFFFFF;
    display: flex;
    flex-direction: column;
    padding: 24px 20px;
    border-radius: 4px;
}
@media (min-width: 768px) {
    .media-kit-card { padding: 32px 24px; }
}
.media-kit-card__header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
}
.media-kit-card__title {
    font-family: 'Raleway', sans-serif;
    font-weight: 500;
    font-size: 20px;
    line-height: 1.25;
    color: #101828;
    margin: 0;
}
@media (min-width: 768px) {
    .media-kit-card__title { font-size: 24px; }
}
.media-kit-card__toggle {
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease;
}
.media-kit-card.active .media-kit-card__toggle { transform: rotate(180deg); }
.media-kit-card__body {
    display: none;
    flex-direction: column;
    gap: 32px;
    margin-top: 56px;
}
.media-kit-card.active .media-kit-card__body { display: flex; }
.media-kit-row {
    display: flex;
    flex-direction: column;
    gap: 32px;
    align-items: flex-start;
    border-radius: 10px;
    width: 100%;
    max-width: 1232px;
    min-height: 80px;
}
@media (min-width: 768px) {
    .media-kit-row { flex-direction: row; align-items: center; }
}
.media-kit-row__image {
    width: 250px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    overflow: hidden;
}
.media-kit-row__image--bordered {
    max-width: 259px;
    height: 146px;
    border: 1px solid #D5D7DA;
    border-radius: 0;
}
.media-kit-row__image--dark-preview {
    background: #CDD5DF;
    border: none;
}
.media-kit-row__image img,
.media-kit-row__video-thumb {
    width: 100%;
    height: auto;
    object-fit: contain;
}
.media-kit-row__content {
    display: flex;
    flex: 1;
    flex-direction: column;
    gap: 16px;
    width: 100%;
}
@media (min-width: 768px) {
    .media-kit-row__content {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
    }
}
.media-kit-row__text {
    display: flex;
    flex-direction: column;
    gap: 8px;
    max-width: 600px;
}
.media-kit-row__title {
    font-family: 'Inter', sans-serif;
    font-weight: 500;
    font-size: 20px;
    line-height: 30px;
    color: #000000;
    margin: 0;
}
.media-kit-row__subtitle {
    font-family: 'Inter', sans-serif;
    font-weight: 400;
    font-size: 16px;
    line-height: 1.6;
    color: #475467;
    margin: 0;
    opacity: 0.8;
}
@media (min-width: 768px) {
    .media-kit-row__subtitle { font-size: 18px; line-height: 2.0; opacity: 0.56; }
}
.media-kit-row__action {
    flex-shrink: 0;
    position: relative;
}
.btn-primary--slim {
    padding: 10px 14px;
    font-family: 'Inter', sans-serif;
    font-weight: 500;
    font-size: 16px;
    line-height: 20px;
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: #155EEF;
    color: #FFFFFF;
    border: 2px solid transparent;
    text-decoration: none;
    cursor: pointer;
    box-shadow: 0px 1px 2px 0px rgba(10,13,18,.05),inset 0px -2px 0px 0px rgba(10,13,18,.05),inset 0px 0px 0px 1px rgba(10,13,18,.18);
}
.btn-primary--slim:hover { background: #1251d1; color: #FFFFFF; }
.media-kit-divider { width: 100%; height: 1px; background: #EAECF0; }
.media-kit-dropdown-wrapper { position: relative; display: inline-block; }
.media-kit-dropdown {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    margin-top: 8px;
    background: #FFFFFF;
    border-radius: 8px;
    box-shadow: 0px 4px 6px -2px rgba(16,24,40,.03),0px 12px 16px -4px rgba(16,24,40,.08);
    border: 1px solid #EAECF0;
    flex-direction: column;
    gap: 4px;
    padding: 10px 14px;
    width: max-content;
    min-width: 153px;
    z-index: 10;
}
.media-kit-dropdown.show { display: flex; }
.media-kit-dropdown__item {
    font-family: 'Inter', sans-serif;
    font-weight: 400;
    font-size: 14px;
    line-height: 20px;
    color: #344054;
    text-decoration: none;
    padding: 4px 0;
    transition: color 0.2s ease;
}
.media-kit-dropdown__item:hover { color: #101828; }
