/* =========================================
   CATEGORIES TABBED LAYOUT (CSS)
========================================= */

/* Main Container */
.cat-tab-system {
    display: flex;
    max-width: 1400px;
    margin: 60px auto;
    background: #ffffff;
    border-radius: 20px;
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    min-height: 75vh;
}

/* --- LEFT SIDE: TABS MENU --- */
.cat-tab-menu {
    width: 350px;
    background: var(--color-dark); /* Theme Dark Maroon */
    padding: 30px 0;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
}

.cat-tab-menu h3 {
    color: white;
    font-size: 1.4rem;
    font-weight: 800;
    padding: 0 30px 20px;
    margin-bottom: 10px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.tab-list {
    list-style: none;
    padding: 0;
    margin: 0;
    overflow-y: auto;
    /* Custom Scrollbar for tabs */
}
.tab-list::-webkit-scrollbar { width: 5px; }
.tab-list::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.2); border-radius: 10px; }

.tab-btn {
    width: 100%;
    text-align: left;
    background: transparent;
    border: none;
    color: rgba(255,255,255,0.7);
    padding: 18px 30px;
    font-size: 1.05rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    border-left: 4px solid transparent;
    display: flex;
    align-items: center;
    gap: 15px;
}

.tab-btn i {
    width: 20px;
    text-align: center;
    font-size: 1.2rem;
    opacity: 0.8;
}

.tab-btn:hover {
    color: white;
    background: rgba(255,255,255,0.05);
}

.tab-btn.active {
    color: white;
    background: rgba(247, 80, 35, 0.1);
    border-left-color: #f75023; /* Vibrant Orange */
    font-weight: 600;
}
.tab-btn.active i {
    color: #f75023;
    opacity: 1;
}

/* --- RIGHT SIDE: CONTENT AREA --- */
.cat-tab-content-area {
    flex: 1;
    padding: 50px;
    background: #fdfdfd;
    position: relative;
    overflow-y: auto;
}

.cat-content-panel {
    display: none;
    animation: slideFadeIn 0.5s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}

.cat-content-panel.active {
    display: block;
}

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

/* Content Panel Header */
.panel-header {
    display: flex;
    align-items: center;
    gap: 30px;
    margin-bottom: 40px;
    padding-bottom: 30px;
    border-bottom: 1px solid #eee;
}

.panel-icon-large {
    width: 80px;
    height: 80px;
    background: rgba(247, 80, 35, 0.1);
    color: #f75023;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    flex-shrink: 0;
}

.panel-header-text h2 {
    font-size: 2.2rem;
    color: #0b1a4a;
    font-weight: 800;
    margin-bottom: 10px;
}

.panel-header-text p {
    font-size: 1rem;
    color: #555;
    line-height: 1.6;
    margin: 0;
}

/* Professions Grid */
.professions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 20px;
}

.profession-card {
    background: white;
    border: 1px solid #eee;
    padding: 20px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    gap: 15px;
    transition: all 0.3s;
    cursor: default;
    box-shadow: 0 4px 10px rgba(0,0,0,0.02);
}

.profession-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(11, 26, 74, 0.1);
    border-color: rgba(247, 80, 35, 0.3);
}

.profession-icon {
    width: 40px;
    height: 40px;
    background: #f4f6fa;
    color: #0b1a4a;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    transition: all 0.3s;
}

.profession-card:hover .profession-icon {
    background: #f75023;
    color: white;
}

.profession-name {
    font-weight: 600;
    color: #333;
    font-size: 0.95rem;
}

/* --- MOBILE RESPONSIVE (App-Style Modern Interface) --- */
@media (max-width: 991px) {
    .cat-tab-system {
        flex-direction: column;
        margin: 0;
        border-radius: 0;
        box-shadow: none;
        background: #f4f6fa;
    }
    
    .cat-tab-menu {
        width: 100%;
        padding: 0;
        position: sticky;
        top: 70px;
        z-index: 100;
        background: white;
        box-shadow: 0 10px 20px rgba(0,0,0,0.05);
        border-bottom: 2px solid #f75023; /* Bhagwa border */
    }
    
    .cat-tab-menu h3 { display: none; }
    
    .tab-list {
        display: flex;
        overflow-x: auto;
        overflow-y: hidden;
        white-space: nowrap;
        scroll-snap-type: x mandatory;
        padding: 15px 10px;
        -webkit-overflow-scrolling: touch;
    }
    
    .tab-list::-webkit-scrollbar { display: none; }
    
    .tab-btn {
        width: auto;
        padding: 12px 22px;
        border-left: none;
        border-bottom: none;
        scroll-snap-align: center;
        white-space: nowrap;
        background: #f0f0f0;
        color: #555;
        border-radius: 50px;
        margin-right: 12px;
        font-size: 0.95rem;
        box-shadow: 0 4px 10px rgba(0,0,0,0.03);
    }
    
    .tab-btn i {
        color: #f75023; /* Bhagwa icons even when inactive */
    }
    
    .tab-btn.active {
        background: linear-gradient(135deg, #f75023, #ff7a00); /* Bhagwa Gradient */
        color: white;
        box-shadow: 0 8px 20px rgba(247, 80, 35, 0.4);
        font-weight: 700;
        transform: translateY(-2px);
    }
    .tab-btn.active i { color: white; }
    
    .cat-tab-content-area {
        padding: 25px 15px;
        background: transparent;
    }
    
    .panel-header {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 15px;
        background: white;
        padding: 25px 20px;
        border-radius: 20px;
        box-shadow: 0 5px 15px rgba(0,0,0,0.04);
        margin-bottom: 25px;
        border-top: 4px solid #f75023; /* Bhagwa highlight */
    }
    
    .panel-icon-large {
        width: 70px; height: 70px;
        font-size: 2rem;
        background: #f75023; /* Solid Bhagwa */
        color: white;
        box-shadow: 0 10px 20px rgba(247, 80, 35, 0.3);
    }
    
    .panel-header-text h2 {
        font-size: 1.6rem;
    }
    
    .panel-header-text p {
        font-size: 0.95rem;
    }

    /* Mobile Grid for Professions (Similar to Laptop) */
    .professions-grid {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
    
    .profession-card {
        padding: 15px 10px;
        border-radius: 12px;
        border: 1px solid #eee;
        box-shadow: 0 4px 10px rgba(0,0,0,0.02);
        background: white;
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 10px;
        transition: all 0.3s;
    }
    
    .profession-icon {
        width: 45px;
        height: 45px;
        background: rgba(247, 80, 35, 0.1);
        color: #f75023;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 1.2rem;
    }
    
    .profession-name {
        font-size: 0.85rem;
        font-weight: 600;
        line-height: 1.2;
    }
    
    .profession-card:active {
        background: #f75023;
        border-color: #f75023;
    }
    
    .profession-card:active .profession-icon {
        background: white;
        color: #f75023;
    }
    
    .profession-card:active .profession-name {
        color: white;
    }
}
