
/* Mission section */
.mission-section {
    position: relative;
}

/* About Page Hero */
.about-hero {
    background: linear-gradient(rgba(0,0,0,0.5), rgba(0,0,0,0.5)),
                url('../images/about_us_images/About%20us%20header.webp')
                center / cover no-repeat;
    min-height: 400px;
    display: flex;
    align-items: center;
    position: relative;
    z-index: 1;
}

/* Mandate and Principles section */
.mandate-section {
    position: relative;
}

.mandate-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url('../images/Overlays%20misc/Overlay%201.webp');
    background-size: cover;
    background-position: center;
    opacity: 0.05;
    pointer-events: none;
    z-index: 0;
}

.mandate-section .container {
    position: relative;
    z-index: 1;
}

/* What We Do section */
.what-we-do-section {
    position: relative;
}

/* ===================================
   History Section
   =================================== */

.history-section {
    position: relative;
}

.history-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url('../images/Overlays%20misc/Overlay%201.webp');
    background-size: cover;
    background-position: center;
    opacity: 0.05;
    pointer-events: none;
    z-index: 0;
}

.history-section .container {
    position: relative;
    z-index: 1;
}

/* ===================================
   History Tabs — Navigation
   =================================== */

.history-tabs-wrapper {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}

.history-tabs-wrapper::-webkit-scrollbar {
    display: none;
}

.history-tabs-nav {
    display: flex;
    border-bottom: 3px solid var(--ipn-border-xlight);
    gap: 0;
    min-width: max-content;
    width: 100%;
}

.history-tab-btn {
    flex: 1;
    min-width: 160px;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 1.25rem 1.5rem 1rem;
    background: none;
    border: none;
    border-bottom: 3px solid transparent;
    margin-bottom: -3px;
    cursor: pointer;
    transition: color 0.3s ease;
    color: var(--ipn-text-xlight);
    text-align: center;
    position: relative;
}

.history-tab-btn::after {
    content: '';
    position: absolute;
    bottom: -3px;
    left: 50%;
    right: 50%;
    height: 3px;
    background: var(--ipn-primary);
    transition: left 0.3s ease, right 0.3s ease;
    border-radius: 3px 3px 0 0;
}

.history-tab-btn:hover::after,
.history-tab-btn.active::after {
    left: 0;
    right: 0;
}

.history-tab-btn .tab-year {
    display: block;
    width: 100%;
    font-size: 2rem;
    font-weight: 800;
    line-height: 1;
    margin-bottom: 0.3rem;
    color: inherit;
    transition: color 0.3s ease;
}

.history-tab-btn .tab-label {
    display: block;
    width: 100%;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    white-space: nowrap;
    transition: color 0.3s ease;
}

.history-tab-btn:hover {
    color: var(--ipn-primary);
}

.history-tab-btn.active {
    color: var(--ipn-secondary);
}

.history-tab-btn.active .tab-year {
    color: var(--ipn-primary);
}

/* ===================================
   History Tabs — Content Panes
   =================================== */

.history-tab-pane {
    display: none;
}

.history-tab-pane.active {
    display: block;
    animation: historyFadeIn 0.45s ease forwards;
}

@keyframes historyFadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Decorative large year watermark behind the text */
.history-pane-inner {
    position: relative;
    padding-top: 4rem;
}

.history-year-bg {
    position: absolute;
    top: -0.5rem;
    left: -0.5rem;
    font-size: 8rem;
    font-weight: 900;
    color: var(--ipn-primary);
    opacity: 0.07;
    line-height: 1;
    pointer-events: none;
    user-select: none;
    white-space: nowrap;
    z-index: 0;
}

.history-pane-body {
    position: relative;
    z-index: 1;
}

.history-year-badge {
    display: inline-block;
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--ipn-primary);
    background: rgba(var(--ipn-primary-rgb), 0.1);
    border: 1.5px solid rgba(var(--ipn-primary-rgb), 0.35);
    padding: 0.3rem 0.9rem;
    border-radius: 20px;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    margin-bottom: 0.85rem;
}

.history-pane-title {
    font-size: 1.85rem;
    color: var(--ipn-secondary);
    line-height: 1.3;
}

.history-pane-img {
    aspect-ratio: 4 / 3;
    object-fit: cover;
}

/* ===================================
   Responsive
   =================================== */

@media (max-width: 991.98px) {
    .history-tab-btn {
        min-width: 130px;
        padding: 1rem 1rem 0.75rem;
    }

    .history-tab-btn .tab-year {
        font-size: 1.6rem;
    }

    .history-year-bg {
        font-size: 6rem;
    }

    .history-pane-title {
        font-size: 1.5rem;
    }
}

@media (max-width: 575.98px) {
    .history-tab-btn {
        min-width: 90px;
        padding: 0.75rem 0.6rem 0.6rem;
    }

    .history-tab-btn .tab-year {
        font-size: 1.3rem;
    }

    .history-tab-btn .tab-label {
        font-size: 0.6rem;
    }

    .history-year-bg {
        font-size: 4.5rem;
    }

    .history-pane-title {
        font-size: 1.3rem;
    }
}
