/* RESET */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif;
    overflow-x: hidden;
}

:root {
--g2: linear-gradient(45deg, #8cb500, #0047aa);
}

/* HERO SECTION WITH BLACK TINT */
.hero {
    position: relative;
    min-height: 100vh;
    background-size: cover;
    background-position: center;
    color: white;
    overflow: hidden;
}

/* NAV */
nav {
    position: absolute;        /* 🔥 key fix */
    top: 0;
    left: 0;
    width: 100%;

    display: flex;
    align-items: center;
    padding: 2rem 4rem;
    z-index: 20;
}

.nav-spacer {
    flex: 1;
}

.logo img {
    width: 300px;
    border-radius: 12px;
}

/* NAV LINKS */
.nav-links {
    display: flex;
    gap: 1rem;
    list-style: none;
}

.nav-links > li > a {
    position: relative;
    padding: 0.75rem 2rem;
    border-radius: 50px;
    background: rgba(255,255,255,0.14);
    border: 1px solid rgba(255,255,255,0.25);
    color: #000000;
    text-decoration: none;
    backdrop-filter: blur(10px);
    transition: .4s ease;
    box-shadow: 0 0 10px #0047aa40;
}

/* RIPPLE */
.nav-links > li > a::after {
    content: "";
    position: absolute;
    inset: 0;
    background: var(--g2);
    opacity: .85;
    border-radius: inherit;
    transform: scale(0);
    transition: .5s ease;
    z-index: -1;
}

.nav-links > li > a:hover::after {
    transform: scale(1);
}

/* DROPDOWN */
.nav-item {
    position: relative;
}

.dropdown {
    position: absolute;
    top: 170%;
    left: 50%;
    transform: translateX(-50%) translateY(10px);

    padding: .75rem;
    background: rgba(0,0,0,.65);
    backdrop-filter: blur(14px);
    border-radius: 18px;
    border: 1px solid rgba(255,255,255,.2);
    box-shadow: 0 20px 40px rgba(0,0,0,.4);

    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: .35s ease;

    display: grid;
    grid-template-columns: 1fr; /* default: single column */
    gap: .25rem;
    min-width: 160px;
}

/* 🔥 If dropdown has MORE THAN 3 items → 2 columns */
.dropdown:has(a:nth-child(4)) {
    grid-template-columns: repeat(2, minmax(160px, 1fr));
    min-width: 340px;
}


/* ✅ ONLY JS CONTROLS VISIBILITY */
.nav-item.open .dropdown {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateX(-50%) translateY(0);
}

.dropdown a {
    display: block;
    padding: .75rem 1.25rem;
    border-radius: 12px;
    color: #fff;
    text-decoration: none;
    transition: .3s ease;
}

.dropdown a:hover {
    background: var(--g2);
    transform: translateX(4px);
}

/* HERO WRAPPER */
.downloads-hero {
    background: #ffffff;
    min-height: 60vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 4rem 2rem;
}

/* CONTENT */
.downloads-hero-content {
    max-width: 900px;
    text-align: center;
}

/* TITLE */
.downloads-hero-content h1 {
    font-size: 3.8rem;
    font-weight: 800;
    margin-bottom: 1rem;
    color: #000;
}

/* SUBTITLE */
.downloads-subtitle {
    font-size: 1.05rem;
    margin-bottom: 0.8rem;
    color: #000;
}

/* DESCRIPTION */
.downloads-description {
    font-size: 0.95rem;
    line-height: 1.6;
    color: rgba(0,0,0,0.7);
    margin-bottom: 2.2rem;
}

/* TABS */
.downloads-tabs {
    display: flex;
    justify-content: center;
    gap: 0.8rem;
}

/* TAB BUTTON */
.tab {
    min-width: 160px;
    padding: 0.5rem 1.2rem;
    border-radius: 999px;
    border: 1px solid rgba(0,0,0,0.6);
    background: transparent;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

/* ACTIVE TAB */
.tab.active {
    background: #efe3c6;
    border-color: transparent;
}

/* HOVER */
.tab:hover {
    background: rgba(0,0,0,0.05);
}

/* SECTION BACKDROP */
.downloads-cards-section {
    background: radial-gradient(circle at bottom, #1c8a6a, #001f18 70%);
    padding: 4.5rem 3rem 3rem;
}

/* CARD WRAPPER */
.cards-wrapper {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2.5rem;
    max-width: 1200px;
    margin: 0 auto;
}

/* GLASS CARD */
.glass-card {
    background: linear-gradient(
        180deg,
        rgba(0,0,0,0.45),
        rgba(0,0,0,0.75)
    );
    border-radius: 28px;
    padding: 2rem 2rem 2.4rem;
    color: #fff;

    border: 1px solid rgba(255,255,255,0.25);
    backdrop-filter: blur(16px);

    box-shadow:
        inset 0 0 40px rgba(255,255,255,0.08),
        0 30px 70px rgba(0,0,0,0.7);
}

/* ACTIVE CARD */
.glass-card.active {
    border-color: rgba(255,255,255,0.5);
}

/* TEXT */
.glass-card h3 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 0.6rem;
}

.glass-card p {
    font-size: 0.85rem;
    line-height: 1.5;
    color: rgba(255,255,255,0.85);
    margin-bottom: 1.4rem;
}

/* IMAGE */
.card-image {
    position: relative;
    border-radius: 18px;
    overflow: hidden;
}

.card-image img {
    width: 100%;
    height: 190px;
    object-fit: cover;
    display: block;
}

/* BUTTON */
.card-btn {
    position: absolute;
    right: 14px;
    bottom: 14px;

    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: none;
    font-size: 1.2rem;
    cursor: pointer;
    display: grid;
    place-items: center;
}

/* ACTIVE BUTTON */
.card-btn.active {
    background: #ffffff;
    color: #000;
}

/* MUTED BUTTON */
.card-btn.muted {
    background: rgba(255,255,255,0.35);
    color: #000;
}

/* DOTS */
.carousel-dots {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 2.5rem;
}

.carousel-dots span {
    width: 8px;
    height: 8px;
    background: rgba(255,255,255,0.4);
    border-radius: 50%;
}

.carousel-dots span.active {
    width: 24px;
    border-radius: 6px;
    background: #fff;
}

/* ===========================
   IN-PAGE VIEWER
=========================== */
.download-viewer {
    position: fixed;
    inset: 0;
    display: none;
    z-index: 999;
}

.download-viewer.active {
    display: block;
}

.viewer-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.65);
}

.viewer-panel {
    position: absolute;
    right: 0;
    top: 0;
    height: 100%;
    width: 420px;
    padding: 3rem;
    overflow-y: auto;

    animation: slideIn 0.4s ease forwards;
}

@keyframes slideIn {
    from { transform: translateX(100%); }
    to   { transform: translateX(0); }
}

.viewer-panel h2 {
    font-size: 1.6rem;
    font-weight: 800;
    margin-bottom: 1rem;
}

.viewer-panel p {
    font-size: 0.95rem;
    line-height: 1.7;
    color: #333;
}

.viewer-close {
    position: absolute;
    top: 18px;
    right: 18px;
    border: none;
    background: transparent;
    font-size: 2rem;
    cursor: pointer;
}

.glass-card {
    display: none;
}

.glass-card.show {
    display: block;
    animation: fadeUp 0.35s ease;
}

@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}


/* ================= FOOTER ================= */
.footer {
    display: flex;
    justify-content: space-between;
    padding: 50px 80px;
    background: linear-gradient(145deg, #0047a5, #003579);
    color: #fff;
    font-family: "Poppins", sans-serif;
    position: relative;
}

/* LEFT SIDE */
.footer-left h2 {
    font-size: 28px;
    font-weight: 600;
    line-height: 1.4;
    margin-bottom: 20px;
}

.footer-badges {
    display: flex;
    gap: 25px;
    margin-bottom: 25px;
}

.footer-badges span {
    display: flex;
    align-items: center;
    font-size: 14px;
}

.dot {
    width: 10px;
    height: 10px;
    background: #00d063;
    border-radius: 50%;
    margin-right: 8px;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 20px 0 30px 0;
    font-size: 15px;
    line-height: 1.9;
}

.footer-links li {
    cursor: pointer;
    transition: opacity 0.2s;
}

.footer-links li:hover {
    opacity: 0.7;
}

.footer-copy {
    font-size: 13px;
    opacity: 0.85;
}

/* RIGHT SIDE */
.footer-right {
    width: 40%;
    text-align: right;
    margin-right: 60px;
}

.footer-desc {
    font-size: 15px;
    opacity: 0.9;
    line-height: 1.6;
    margin-bottom: 50px;
}

.footer-btn {
    padding: 10px 22px;
    border-radius: 30px;
    background: #fff;
    color: #003579;
    border: none;
    font-weight: 600;
    cursor: pointer;
    margin-bottom: 30px;
    transition: 0.3s;
}

.footer-btn:hover {
    transform: translateX(3px);
}

.arrow {
    margin-left: 6px;
}

.footer-logo {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    margin: 20px 0;
}

.footer-logo img {
    width: 250px;
    margin-right: 15px;
    border-radius: 12px;
}

.footer-logo-text h3 {
    font-size: 22px;
    font-weight: 700;
    line-height: 1.1;
}

.footer-logo-text p {
    font-size: 12px;
    margin-top: 6px;
    opacity: 0.85;
}

.footer-legal {
    margin-top: 25px;
}

.footer-legal a {
    color: #fff;
    font-size: 13px;
    margin-left: 20px;
    text-decoration: none;
    opacity: 0.85;
}

.footer-legal a:hover {
    opacity: 1;
}

/* FLOATING ICONS */
.footer-floating-icons {
    position: absolute;
    right: 40px;
    top: 80px;
}

.circle-btn {
    width: 45px;
    height: 45px;
    background: #004fbb;
    border-radius: 50%;
    border: none;
    color: #fff;
    font-size: 22px;
    cursor: pointer;
    margin-bottom: 15px;
}

.side-icons {
    display: flex;
    flex-direction: column;
    gap: 12px;
    background: #003f96;
    padding: 12px;
    border-radius: 30px;
}

.icon-btn {
    width: 42px;
    height: 42px;
    background: #0051c5;
    border-radius: 10px;
    border: none;
    cursor: pointer;
    color: white;
    font-size: 18px;
}

/* ---------- RESPONSIVE ---------- */
@media (max-width: 900px) {
    .indigenous-cards {
        grid-template-columns: 1fr;
    }

    .indigenous-header h1 {
        font-size: 4.5rem;
    }

    .indigenous-header h2 {
        font-size: 2.4rem;
    }

    .indigenous-header h3 {
        font-size: 2rem;
    }
}

@media (max-width: 900px) {
    .impact-wrapper {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

@media (max-width: 900px) {
    .values-timeline::before {
        left: 20px;
    }

    .value-row {
        grid-template-columns: 40px 1fr;
        gap: 2rem;
    }

    .icon,
    .marker {
        grid-column: 1;
    }

    .content {
        grid-column: 2;
        text-align: left !important;
    }
}

