/* Sub Navigation - Tabs Style */
/* This stylesheet provides tab-style navigation for Banting House and similar sections */

/* Tabs Container */
.sub-navigation--tabs {
    background-color: transparent;
    border-bottom: 1px solid #e0e0e0;
    padding: 0;
    margin-top: 1rem;
    margin-bottom: 1.5rem;
}

/* Note: no .container override here — the tabs must use the standard Bootstrap
   .container so they align with the breadcrumb container above. */

/* Tabs List */
.sub-navigation__tabs {
    display: flex;
    gap: 0;
    list-style: none;
    margin: 0;
    padding: 0;
    flex-wrap: wrap;
    border-bottom: none;
}

/* Tab Item */
.sub-navigation__tab-item {
    margin: 0;
    position: relative;
}

/* Tab Link */
.sub-navigation__tab-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.875rem 1.5rem;
    color: #5a5a5a;
    text-decoration: none;
    background-color: transparent;
    border: none;
    border-bottom: 3px solid transparent;
    transition: all 0.3s ease;
    font-weight: 500;
    font-size: 0.95rem;
    white-space: nowrap;
    position: relative;
}

.sub-navigation__tab-link:hover {
    color: #1e3268;
    background-color: #f5f5f5;
    border-bottom-color: #bbb;
}

/* Active Tab */
.sub-navigation__tab-link--active {
    color: #1e3268;
    border-bottom-color: #1e3268;
    font-weight: 600;
    background-color: #f9f9f9;
}

.sub-navigation__tab-link--active:hover {
    border-bottom-color: #1e3268;
    background-color: #f9f9f9;
}

/* Tab Icon */
.sub-navigation__tab-icon {
    width: 1.25rem;
    height: 1.25rem;
    object-fit: contain;
}

/* Tab Text */
.sub-navigation__tab-text {
    font-weight: inherit;
}

/* Responsive Design */
@media (max-width: 992px) {
    .sub-navigation__tab-link {
        padding: 0.75rem 1.25rem;
        font-size: 0.9rem;
    }
}

@media (max-width: 768px) {
    .sub-navigation--tabs {
        margin-top: 0.5rem;
        margin-bottom: 1rem;
    }

    .sub-navigation__tabs {
        overflow-x: auto;
        overflow-y: hidden;
        flex-wrap: nowrap;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: thin;
        scrollbar-color: #ccc transparent;
    }

    .sub-navigation__tabs::-webkit-scrollbar {
        height: 4px;
    }

    .sub-navigation__tabs::-webkit-scrollbar-track {
        background: transparent;
    }

    .sub-navigation__tabs::-webkit-scrollbar-thumb {
        background-color: #ccc;
        border-radius: 2px;
    }

    .sub-navigation__tab-link {
        padding: 0.625rem 1rem;
        font-size: 0.875rem;
    }
}

@media (max-width: 576px) {
    .sub-navigation__tab-link {
        padding: 0.5rem 0.875rem;
        font-size: 0.8125rem;
    }

    .sub-navigation__tab-icon {
        width: 1rem;
        height: 1rem;
    }
}

/* Focus Styles for Accessibility */
.sub-navigation__tab-link:focus {
    outline: 2px solid #1e3268;
    outline-offset: 2px;
}

/* Print Styles */
@media print {
    .sub-navigation--tabs {
        display: none;
    }
}
