/* Hero: YSEALI Summit logo above the title */
.hero-logo {
    display: block;
    width: clamp(200px, 24vw, 380px);
    height: auto;
    margin-left: auto;
    margin-right: auto;
}

/* Highlight section: top rule on focus-area items (pairs with the template's .border-white-bottom-op-2) */
.border-white-top-op-2 {
    border-top: solid 1px rgba(255, 255, 255, .2);
}

/* Highlight section: accent line on Futures Fair cards, in the theme colour */
.border-top-accent {
    border-top: solid 3px var(--primary-color);
}

/* Highlight section: Regional Security Briefings cards */
.briefing-card {
    position: relative;
    height: 100%;
    padding: 40px;
    overflow: hidden;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, .08);
    background: var(--bg-dark-2);
    transition: transform .35s ease, border-color .35s ease, box-shadow .35s ease;
}

/* accent bar that grows along the bottom on hover */
.briefing-card::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 3px;
    background: var(--primary-color);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform .45s ease;
}

.briefing-card:hover {
    transform: translateY(-6px);
    border-color: rgba(var(--primary-color-rgb), .5);
    box-shadow: 0 18px 40px rgba(0, 0, 0, .35);
}

.briefing-card:hover::after {
    transform: scaleX(1);
}

/* large faint number in the top-right corner */
.briefing-card__num {
    position: absolute;
    top: 18px;
    right: 28px;
    font-size: 64px;
    font-weight: 800;
    line-height: 1;
    color: rgba(255, 255, 255, .06);
    pointer-events: none;
    transition: color .35s ease;
}

.briefing-card:hover .briefing-card__num {
    color: rgba(var(--primary-color-rgb), .35);
}

.briefing-card__icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    margin-bottom: 28px;
    border-radius: 12px;
    font-size: 26px;
    color: var(--primary-color);
    background: rgba(var(--primary-color-rgb), .12);
    transition: background-color .35s ease, color .35s ease;
}

.briefing-card:hover .briefing-card__icon {
    color: #fff;
    background: var(--primary-color);
}

.briefing-card h4 {
    margin-bottom: 12px;
}

.briefing-card p {
    opacity: .8;
}

@media (max-width: 575.98px) {
    .briefing-card {
        padding: 28px;
    }

    .briefing-card__num {
        font-size: 48px;
        right: 20px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .briefing-card,
    .briefing-card::after {
        transition: none;
    }

    .briefing-card:hover {
        transform: none;
    }
}

/* Highlight section: "Mark your Calendar" horizontal timeline */
.cal-item {
    position: relative;
    padding: 52px 12px 0;
}

/* connecting line, drawn per item so it runs dot to dot */
.cal-item::before {
    content: "";
    position: absolute;
    top: 12px;
    left: 0;
    right: 0;
    height: 2px;
    background: rgba(255, 255, 255, .2);
}

.cal-item:first-child::before { left: 50%; }
.cal-item:last-child::before  { right: 50%; }

.cal-dot {
    position: absolute;
    top: 2px;
    left: 50%;
    z-index: 1;
    width: 22px;
    height: 22px;
    margin-left: -11px;
    border-radius: 50%;
    border: 4px solid #fff;
    background: var(--bg-dark-1);
}

.cal-item h5 {
    margin-bottom: 8px;
}

.cal-item.is-key .cal-dot {
    border-color: var(--primary-color);
}

.cal-timeline .cal-item.is-key h5 {
    color: var(--primary-color);
}

/* below desktop the items wrap onto several rows, so drop the connecting line */
@media (max-width: 991.98px) {
    .cal-item {
        padding-bottom: 32px;
    }

    .cal-item::before {
        display: none;
    }
}

/* Eligibility section: requirement list with check marks and divider lines */
.elig-list {
    list-style: none;
    margin: 0;
    padding: 0;
    border-top: solid 1px rgba(255, 255, 255, .2);
}

.elig-list li {
    display: flex;
    align-items: flex-start;
    gap: 32px;
    margin: 0;
    padding: 32px 0;
    border-bottom: solid 1px rgba(255, 255, 255, .2);
}

.elig-list strong {
    color: #fff;
}

.elig-check {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    margin-top: 2px;
    border-radius: 50%;
    font-size: 16px;
    color: #fff;
    background: var(--primary-color);
}

@media (max-width: 575.98px) {
    .elig-list li {
        gap: 18px;
        padding: 24px 0;
    }
}

/* Contribute band: solid theme-colour strip after Eligibility */
.cta-band {
    padding: 100px 0;
}

/* solid white heading instead of the template's grey-to-white gradient text */
.cta-band h2 {
    margin-bottom: 24px;
    color: #fff;
    background: none;
    -webkit-background-clip: border-box;
            background-clip: border-box;
    -webkit-text-fill-color: currentColor;
}

.cta-band .lead {
    max-width: 760px;
    margin-left: auto;
    margin-right: auto;
    color: rgba(255, 255, 255, .9);
}

@media (max-width: 767.98px) {
    .cta-band {
        padding: 64px 0;
    }
}

/* FAQ section: segmented pill tabs (restyles the template's .de-tab.pill) */
.de-tab.pill.faq-tabs .d-tab-nav {
    display: flex !important; /* template stacks tabs below 768px with !important */
    gap: 6px;
    max-width: 520px;
    margin: 0 auto 48px;
    padding: 6px;
    border: 1px solid rgba(255, 255, 255, .1);
    border-radius: 999px;
    background: rgba(255, 255, 255, .04);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .04);
}

.de-tab.pill.faq-tabs .d-tab-nav li {
    display: flex !important;
    flex: 1 1 0;
    align-items: center;
    justify-content: center;
    padding: 12px 18px;
    border-radius: 999px;
    font-size: 15px;
    font-weight: 600;
    letter-spacing: .01em;
    color: rgba(255, 255, 255, .6);
    opacity: 1;
    user-select: none;
    transition: background-color .3s ease, color .3s ease, box-shadow .3s ease;
}

.de-tab.pill.faq-tabs .d-tab-nav li:not(.active-tab):hover {
    color: #fff;
    background: rgba(255, 255, 255, .06);
}

.de-tab.pill.faq-tabs .d-tab-nav .active-tab {
    color: #fff;
    background: var(--primary-color);
    box-shadow: 0 8px 24px rgba(var(--primary-color-rgb), .45);
}

/* small screens: keep the tabs on one row */
@media (max-width: 575.98px) {
    .de-tab.pill.faq-tabs .d-tab-nav {
        gap: 4px;
        padding: 4px;
        margin-bottom: 32px;
    }

    .de-tab.pill.faq-tabs .d-tab-nav li {
        padding: 10px 8px;
        font-size: 14px;
    }
}

/* FAQ section: smooth accordion (replaces the template's jQuery slide accordion) */
.faq-item {
    border-bottom: 1px solid rgba(255, 255, 255, .15);
}

.faq-q {
    margin: 0;
    font-size: inherit;
    line-height: inherit;
}

.faq-toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    width: 100%;
    padding: 22px 0;
    border: 0;
    background: none;
    font-family: var(--body-font);
    font-size: 17px;
    font-weight: 600;
    line-height: 1.4;
    text-align: left;
    color: #fff;
    cursor: pointer;
    transition: color .25s ease;
}

.faq-toggle[aria-expanded="true"] {
    color: var(--primary-color);
}

.faq-toggle:focus-visible {
    outline: 2px solid var(--primary-color);
    outline-offset: 4px;
    border-radius: 4px;
}

/* the template's original chevron (FontAwesome angle-down), rotated up when open */
.faq-icon {
    flex: 0 0 auto;
    width: 30px;
    text-align: center;
    transition: transform .35s ease;
}

.faq-icon::before {
    font-family: "FontAwesome";
    content: "\f107";
    font-size: 15px;
    font-weight: normal;
    color: #fff;
}

.faq-toggle[aria-expanded="true"] .faq-icon {
    transform: rotate(180deg);
}

/* height animation: grid row 0fr -> 1fr animates to the content's real height */
.faq-a {
    display: grid;
    grid-template-rows: 0fr;
    transition: grid-template-rows .4s ease;
}

.faq-a.is-open {
    grid-template-rows: 1fr;
}

.faq-a-inner {
    min-height: 0;
    overflow: hidden;
}

.faq-a-inner p {
    padding: 0 56px 24px 0;
    color: rgba(255, 255, 255, .75);
    opacity: 0;
    transform: translateY(-6px);
    transition: opacity .3s ease, transform .3s ease;
}

.faq-a.is-open .faq-a-inner p {
    opacity: 1;
    transform: none;
    transition-delay: .1s;
}

@media (max-width: 575.98px) {
    .faq-toggle {
        padding: 18px 0;
        font-size: 16px;
    }

    .faq-a-inner p {
        padding-right: 0;
    }
}

@media (prefers-reduced-motion: reduce) {
    .faq-a,
    .faq-a-inner p,
    .faq-icon {
        transition: none;
    }
}

/* Footer social icons: Facebook / Instagram profile menus */
.social-menu {
    position: relative;
    display: inline-block;
}

.social-menu__toggle {
    padding: 0;
    border: 0;
    background: none;
    color: inherit;
    cursor: pointer;
}

.social-menu__toggle:focus-visible {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
    border-radius: 6px;
}

/* keep the open icon highlighted like the template's hover state */
.social-menu.is-open .social-menu__toggle i {
    background: #fff;
    color: #333;
}

.social-menu__list {
    position: absolute;
    bottom: calc(100% + 12px);
    left: 50%;
    z-index: 20;
    min-width: 220px;
    margin: 0;
    padding: 8px;
    list-style: none;
    text-align: left;
    border: 1px solid rgba(255, 255, 255, .1);
    border-radius: 10px;
    background: var(--bg-dark-2);
    box-shadow: 0 16px 40px rgba(0, 0, 0, .45);
    opacity: 0;
    visibility: hidden;
    transform: translate(-50%, 8px);
    transition: opacity .25s ease, transform .25s ease, visibility .25s;
}

/* small pointer under the menu */
.social-menu__list::after {
    content: "";
    position: absolute;
    top: 100%;
    left: 50%;
    margin-left: -7px;
    border: 7px solid transparent;
    border-top-color: var(--bg-dark-2);
}

.social-menu.is-open .social-menu__list {
    opacity: 1;
    visibility: visible;
    transform: translate(-50%, 0);
}

.social-menu__list a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 12px;
    border-radius: 6px;
    font-size: 15px;
    color: #fff;
    text-decoration: none;
    white-space: nowrap;
    transition: background-color .2s ease;
}

.social-menu__list a:hover,
.social-menu__list a:focus-visible {
    background: rgba(255, 255, 255, .08);
    outline: none;
}

/* undo the template's 36px icon tiles inside the menu */
.dark-scheme .social-icons .social-menu__list i {
    width: 18px;
    height: auto;
    margin: 0;
    padding: 0;
    font-size: 15px;
    background: none;
    color: var(--primary-color);
}

@media (prefers-reduced-motion: reduce) {
    .social-menu__list {
        transition: none;
    }
}
