/* homepage banner indicator */
.page-front .banner .carousel-indicators [data-bs-target]{background-color: #ff0000!important;}

/* /dpd */
.swipe-tab{
    font-size:20px; 
    text-align: center;
    display: flex !important;
    align-items: center;
    justify-content: flex-end;
    height: 50px;
    flex-wrap: nowrap;
    background: none;
    border: 0;
    color: #525252;
    font-size: 16px;
    cursor: pointer;
    padding-right: 40px;
    text-align: center;
    border-bottom: 2px solid rgba(0, 0, 0, 0);
    transition: all 0.5s;
}
.swipe-tab.active-tab{color: #fff; background: #FFB422;font-weight: bold;padding: 1rem;}

/* youtube swip tab */
.actives.active::before {
    content: "\f04b";
    color: #12054A;
    font-family: "Font Awesome 5 free";
    border-top: 0 solid !important;
    border-right: 0 solid transparent !important;
    border-bottom: 0 !important;
    border-left: 0 solid transparent !important;
    vertical-align: middle;
    font-weight: 900;
    position: absolute;
    font-size: 15px;
    left: 10px;
    top: 25%;
}

/* policy advocacy & dcpp etc */
/* new faq-tab styles */
    :root{
        --bg: #0b1020;
        --card: rgba(255,255,255,0.06);
        --card-2: rgba(255,255,255,0.08);
        --stroke: rgba(255,255,255,0.12);
        --text: rgba(255,255,255,0.92);
        --muted: rgba(255,255,255,0.66);
        --accent: #ffb020;
        --accent-2: #ff7a18;
        --shadow: 0 18px 60px rgba(0,0,0,0.45);
        --radius: 18px;
        --radius-sm: 12px;
    }
    .faq-wrap { padding: 2rem 1.5rem; }
    .faq-wrap h1.faq-title { font-size: 2.4rem; font-weight: 600;  margin-bottom: 2rem; }
    .faq-wrap .tab-list { list-style: none; padding: 0; margin: 0; }
    .faq-wrap .tab-list li { 
        padding: 0.75rem 0; 
        text-align: center; 
        cursor: pointer; 
        font-size: 1rem; 
        transition: all 0.2s; 
        padding: 1rem 1.5rem;
        display: flex !important;
        align-items: center;
        justify-content: flex-end;
        height: 50px;
        flex-wrap: nowrap;
        color: #525252;
        font-size: 16px;
        cursor: pointer;
        text-align: center;
        border-bottom: 2px solid rgba(0, 0, 0, 0);
        transition: all 0.5s;
    }
    
    .faq-wrap .tab-list li.active {
        background: #f5a623; 
        color: #fff; 
        font-weight: 600; 
        padding: 1rem 1rem; 
        font-weight: 600;
    }
    .faq-wrap .accordion-item { 
        background: #fff;
        border: none;
        box-shadow: rgba(0, 0, 0, 0.05) 0px 6px 24px 0px, rgba(0, 0, 0, 0.08) 0px 0px 0px 1px;
        margin: 0.5rem;
        border-radius: 0px !important;
    }
    .faq-wrap .accordion-button:focus{
        outline: none!important;
        border-color: #fff!important;
        box-shadow: none!important;
    }
    .faq-wrap .accordion-button { font-size: 0.95rem; font-weight: 400; box-shadow: none; padding: 1.1rem 1rem; }
    .faq-wrap .accordion-button:not(.collapsed) {background:#fff; box-shadow: none; }
    .faq-wrap .accordion-button::after { filter: opacity(0.5); }
        .faq-wrap .accordion-body { font-size: 0.9rem; padding: 0.5rem 1rem 1.2rem; }
    .faq-wrap .tab-pane { display: none; }
    .faq-wrap .tab-pane.active { display: block; }

    /* Mobile / tablet: one tab = full width of strip, swipe horizontally */
    @media (max-width: 992px) {
        .faq-wrap .tab-nav {
        margin-bottom: 1rem;
        }
        .faq-wrap .tab-list {
            display: flex;
            flex-direction: row;
            flex-wrap: nowrap;
            overflow-x: auto;
            overflow-y: hidden;
            scroll-snap-type: x mandatory;
            -webkit-overflow-scrolling: touch;
            overscroll-behavior-x: contain;
            gap: 0;
            scrollbar-width: thin;
        }
        .faq-wrap .tab-list::-webkit-scrollbar {
            height: 4px;
        }
        .faq-wrap .tab-list::-webkit-scrollbar-thumb {
            background: rgba(0, 0, 0, 0.2);
            border-radius: 4px;
        }
        .faq-wrap .tab-list li {
            flex: 0 0 100%;
            min-width: 100%;
            max-width: 100%;
            width: 100%;
            scroll-snap-align: start;
            scroll-snap-stop: always;
            margin: 0;
            box-sizing: border-box;
            display: flex;
            align-items: center;
            justify-content: center;
            text-align: center;
            background: #fff;
            color: #111;
            border: 1px solid #e5e5e5;
            border-right: none;
            padding: 0.85rem 1rem;
            font-size: 0.95rem;
        }
        .faq-wrap .tab-list li:last-child {
        border-right: 1px solid #e5e5e5;
        }
        .faq-wrap .tab-list li.active {
        background: #f5a623;
        color: #fff;
        font-weight: 600;
        border-color: #f5a623;
        }
        .faq-wrap .tab-list li.active + li {
        border-left-color: #e5e5e5;
        }
    }



/*awards, dpd & csam  */
/* ── Tablet & Mobile: horizontal scrollable strip ───────────────────────── */
@media (max-width: 991px) {
    /* awards */
     .swipe-tabs {
        display: flex;
        flex-direction: row;
        overflow-x: auto;
        overflow-y: hidden;
        white-space: nowrap;
        -webkit-overflow-scrolling: touch; /* smooth scroll on iOS */
        scroll-behavior: smooth;
        gap: 0;

        /* Hide scrollbar — all browsers */
        scrollbar-width: none;          /* Firefox */
        -ms-overflow-style: none;       /* IE / Edge */
    }

    /* Hide scrollbar — Chrome / Safari */
    .swipe-tabs::-webkit-scrollbar {
        display: none;
    }

    .swipe-tab {
        flex: 0 0 100%;          /* each tab = full device width */
        width: 100%;
        box-sizing: border-box;
        text-align: center;
        white-space: normal;     /* allow text to wrap inside tab */
        display: block!important;
    }
    /* dpd */

    .nav.nav-pills.flex-column {
        flex-direction: row !important; /* override Bootstrap flex-column */
        overflow-x: auto;
        overflow-y: hidden;
        white-space: nowrap;
        -webkit-overflow-scrolling: touch;
        scroll-behavior: smooth;
        flex-wrap: nowrap !important;   /* override Bootstrap wrap */
        gap: 0;

        /* Hide scrollbar — all browsers */
        scrollbar-width: none;
        -ms-overflow-style: none;
    }

    /* Hide scrollbar — Chrome / Safari */
    .nav.nav-pills.flex-column::-webkit-scrollbar {
        display: none;
    }

    .nav.nav-pills.flex-column .nav-item {
        flex: 0 0 100%;         /* each item = full device width */
        width: 100%;
        box-sizing: border-box;
    }

    .nav.nav-pills.flex-column .nav-item .nav-link {
        width: 100%;
        text-align: center;
        white-space: normal;    /* allow text to wrap inside */
        box-sizing: border-box;
        display: block;
        padding-right: 0px;
    }

    /* csam page*/
     nav.nav.nav-pills.flex-column {
        flex-direction: row !important;
        overflow-x: auto;
        overflow-y: hidden;
        -webkit-overflow-scrolling: touch;
        scroll-behavior: smooth;
        flex-wrap: nowrap !important;

        /* Hide scrollbar — all browsers */
        scrollbar-width: none;
        -ms-overflow-style: none;
    }

    /* Hide scrollbar — Chrome / Safari */
    nav.nav.nav-pills.flex-column::-webkit-scrollbar {
        display: none;
    }

    /* 
        The links here sit inside a <p> tag (not <li>),
        so we target the <p> and links directly 
    */
    nav.nav.nav-pills.flex-column p {
        display: flex;
        flex-direction: row;
        flex-wrap: nowrap;
        margin: 0;
        padding: 0;
        width: max-content; /* let <p> grow beyond viewport */
    }

    nav.nav.nav-pills.flex-column p .nav-link {
        flex: 0 0 100vw;        /* each link = full device width */
        width: 100vw;
        text-align: center;
        white-space: normal;    /* allow text to wrap inside */
        box-sizing: border-box;
        display: block;
    }
    
}

/* ── Mobile only ─────────────────────────────────────────────────────────── */
@media (max-width: 575px) {

    .swipe-tab {
        flex: 0 0 100%;
        font-size: 14px;
    }

    .nav.nav-pills.flex-column .nav-item .nav-link {
        font-size: 14px;
        display: block;
        padding-right: 0px;
    }
    
    nav.nav.nav-pills.flex-column p .nav-link {
        font-size: 14px;
        display: block;
    }
}
