/* =========================================================
   ABOUT US - TABS & NAVIGATION STYLES
   Premium, Modern, Responsive
========================================================= */

.about-tabs {
    padding: 60px 0 100px;
    background: var(--bg-light);
    min-height: 600px;
}

.about-tabs .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ================= TAB MENU WRAPPER ================= */

.tab-menu-wrapper {
    position: sticky;
    top: 80px;
    z-index: 100;
    margin-bottom: 50px;
    background: var(--card-bg);
    padding: 10px;
    border-radius: 20px;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border);
}

.tab-menu {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    position: relative;
}

.tab-main-items {
    display: flex;
    gap: 5px;
    overflow-x: auto;
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE/Edge */
}

.tab-main-items::-webkit-scrollbar {
    display: none; /* Chrome/Safari */
}

/* ================= TAB BUTTONS ================= */

.tab-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 24px;
    background: transparent;
    border: none;
    border-radius: 14px;
    color: var(--text-medium);
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    white-space: nowrap;
}

.tab-btn i {
    font-size: 18px;
    transition: transform 0.3s ease;
}

.tab-btn:hover {
    color: var(--accent);
    background: var(--accent-light);
}

.tab-btn.active {
    background: var(--accent);
    color: #fff;
    box-shadow: 0 8px 20px rgba(213, 43, 30, 0.25);
}

.tab-btn.active i {
    transform: scale(1.1);
}

/* ================= DROPDOWN (MORE) ================= */

.tab-dropdown {
    position: relative;
    margin-left: 10px;
}

.tab-dropdown-toggle {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 20px;
    background: var(--bg-warm);
    border: 1px solid var(--border);
    border-radius: 14px;
    color: var(--text-dark);
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.tab-dropdown-toggle .chevron {
    font-size: 12px;
    transition: transform 0.3s ease;
}

.tab-dropdown.open .tab-dropdown-toggle .chevron {
    transform: rotate(180deg);
}

.tab-dropdown.open .tab-dropdown-toggle,
.tab-dropdown-toggle.active {
    background: var(--accent-light);
    color: var(--accent);
    border-color: var(--accent-muted);
}

.tab-dropdown-menu {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    min-width: 240px;
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 18px;
    box-shadow: var(--shadow-lg);
    padding: 10px;
    display: none;
    z-index: 1000;
    animation: tabMenuFade 0.3s ease;
}

.tab-dropdown.open .tab-dropdown-menu {
    display: block;
}

@keyframes tabMenuFade {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.tab-dropdown-item {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 18px;
    background: transparent;
    border: none;
    border-radius: 10px;
    color: var(--text-medium);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    text-align: left;
    transition: all 0.2s ease;
}

.tab-dropdown-item:hover {
    background: var(--bg-light);
    color: var(--accent);
}

.tab-dropdown-item.active {
    background: var(--accent-light);
    color: var(--accent);
    font-weight: 700;
}

/* ================= TAB CONTENTS ================= */

.tab-content {
    display: none;
    animation: tabContentFade 0.6s ease;
}

.tab-content.active {
    display: block;
}

@keyframes tabContentFade {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ================= RESPONSIVE ================= */

@media (max-width: 992px) {
    .tab-menu-wrapper {
        top: 70px;
        padding: 8px;
    }
    
    .tab-btn {
        padding: 10px 18px;
        font-size: 14px;
    }
}

@media (max-width: 768px) {
    .about-tabs {
        padding: 40px 0 60px;
    }
    
    .tab-main-items {
        flex: 1;
    }
    
    .tab-btn span {
        display: none; /* Icons only on small mobile if needed, or scroll */
    }
    
    .tab-btn {
        padding: 12px;
    }
}

@media (max-width: 480px) {
    .tab-dropdown-toggle span {
        display: none;
    }
    .tab-dropdown-toggle {
        padding: 12px;
    }
}
