/**
 * News Navigation Styles
 * Adapted from About page (.deabout) for consistency.
 */

/* Main Container Override/Adjustment if needed */
.information__wrapper .news-nav__tabs {
    background: #fff;
    border-radius: 14px;
    padding: 10px;
    box-shadow: 0 6px 18px rgba(0, 0, 0, .06);
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin-bottom: 24px;
    /* Space between tabs and content */
}

/* Tab Item */
.news-nav__tab {
    appearance: none;
    border: none;
    /* Reset button styles */
    border-radius: 10px;
    padding: 12px 18px;
    background: #f2f5f9;
    color: #173750;
    font-size: 16px;
    /* Explicit font size */
    font-weight: 600;
    cursor: pointer;
    width: 100%;
    text-align: center;
    text-decoration: none;
    transition: background .2s ease, color .2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1.2;
}

.news-nav__tab:hover {
    background: #e1e6eb;
    color: #173750;
    text-decoration: none;
}

.news-nav__tab.is-active {
    background: #173750;
    color: #fff;
}

/* Panels */
.news-nav__panel {
    display: none;
    animation: fadeIn 0.3s ease-in-out;
}

.news-nav__panel.is-visible {
    display: block;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(5px);
    }

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

/* Mobile Responsiveness */
@media (max-width: 767.98px) {
    .information__wrapper .news-nav__tabs {
        display: flex;
        gap: 10px;
        overflow-x: auto;
        padding: 10px 4px;
        /* Scrollbar styling for better UX */
        scrollbar-width: none;
        /* Firefox */
        -ms-overflow-style: none;
        /* IE/Edge */
    }

    .information__wrapper .news-nav__tabs::-webkit-scrollbar {
        display: none;
        /* Chrome/Safari/Webkit */
    }

    .news-nav__tab {
        flex: 1 0 160px;
        /* Min width for touch targets */
        white-space: normal;
        /* Allow text wrap */
        font-size: 14px;
    }
}
