/* ========================================================
   Patidarrang College - Modern Department Page Styling
   ======================================================== */

/* --- 1. Department Switcher Bar --- */
.dept-quick-switcher {
    background: #0b2239;
    padding: 12px 0;
    border-bottom: 3px solid #00B16A;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
}

.dept-switcher-inner {
    display: flex;
    align-items: center;
    gap: 12px;
}

.dept-switcher-label {
    color: #e2e8f0;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    white-space: nowrap;
    display: flex;
    align-items: center;
}

.dept-switcher-label i {
    color: #00B16A;
    margin-right: 6px;
}

.dept-pills-scroll {
    display: flex;
    align-items: center;
    gap: 8px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding-bottom: 2px;
    flex: 1;
}

.dept-pills-scroll::-webkit-scrollbar {
    display: none;
}

.dept-pill-btn {
    display: inline-block;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    color: #cbd5e1;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
    text-decoration: none !important;
    white-space: nowrap;
    transition: all 0.25s ease;
}

.dept-pill-btn:hover {
    color: #ffffff;
    background: rgba(0, 177, 106, 0.3);
    border-color: #00B16A;
}

.dept-pill-btn.active {
    color: #ffffff;
    background: #00B16A;
    border-color: #00B16A;
    box-shadow: 0 4px 12px rgba(0, 177, 106, 0.4);
}

/* --- 2. Section & Carousel Modernization --- */
section.contact.section {
    padding: 40px 0 70px 0 !important;
    background: #f8fafc;
}

.carousel {
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.1);
    border: 4px solid #ffffff;
    background: #e2e8f0;
}

.carousel-inner .carousel-item img {
    height: 380px !important;
    object-fit: cover !important;
    width: 100% !important;
}

.carousel-control-prev,
.carousel-control-next {
    width: 44px;
    height: 44px;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(11, 34, 57, 0.7);
    border-radius: 50%;
    opacity: 0.85;
    margin: 0 15px;
    transition: all 0.25s ease;
}

.carousel-control-prev:hover,
.carousel-control-next:hover {
    background: #00B16A;
    opacity: 1;
}

/* --- 3. Hero / Right Column Card --- */
.gradient-heading {
    font-size: 30px !important;
    font-weight: 800 !important;
    line-height: 1.3 !important;
    letter-spacing: 0.5px !important;
    text-align: left !important;
    color: #0b2239 !important;
    background: linear-gradient(135deg, #0b2239 0%, #00B16A 100%) !important;
    -webkit-background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
    animation: none !important;
    margin-bottom: 12px !important;
    text-transform: uppercase !important;
    padding: 0 !important;
}

.dept-hero-card {
    background: #ffffff;
    border: 1px solid #eef2f6;
    border-radius: 16px;
    padding: 28px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.04);
    text-align: left;
}

.dept-badge {
    display: inline-flex;
    align-items: center;
    padding: 5px 12px;
    background: #e8f5e9;
    color: #00B16A;
    border-radius: 30px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 12px;
    border: 1px solid rgba(0, 177, 106, 0.25);
}

.dept-badge i {
    margin-right: 6px;
}

.dept-hero-lead {
    color: #64748b;
    font-size: 14.5px;
    line-height: 1.6;
    margin-bottom: 18px;
}

.dept-meta-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 20px;
}

.dept-meta-pill {
    display: inline-flex;
    align-items: center;
    padding: 6px 12px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    font-size: 12.5px;
    font-weight: 600;
    color: #334155;
}

.dept-meta-pill i {
    color: #00B16A;
    margin-right: 6px;
}

.dept-quick-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.dept-action-btn {
    display: inline-flex;
    align-items: center;
    padding: 8px 16px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none !important;
    transition: all 0.25s ease;
    cursor: pointer;
}

.dept-action-btn.primary {
    background: #00B16A;
    color: #ffffff !important;
    box-shadow: 0 4px 12px rgba(0, 177, 106, 0.3);
}

.dept-action-btn.primary:hover {
    background: #009658;
    box-shadow: 0 6px 16px rgba(0, 177, 106, 0.4);
    transform: translateY(-2px);
}

.dept-action-btn.outline {
    background: transparent;
    color: #0b2239 !important;
    border: 1px solid #cbd5e1;
}

.dept-action-btn.outline:hover {
    background: #f1f5f9;
    border-color: #0b2239;
    transform: translateY(-2px);
}

.dept-action-btn i {
    margin-right: 6px;
}

/* --- 4. Navigation Tabs Modernization --- */
.nav.nav-tabs {
    border-bottom: none !important;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding: 6px;
    background: #ffffff;
    border-radius: 14px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.04);
    border: 1px solid #e2e8f0;
    margin-top: 35px;
    margin-bottom: 25px;
}

.nav.nav-tabs .nav-item {
    margin-bottom: 0 !important;
    flex: 1 1 auto;
    text-align: center;
}

.nav.nav-tabs .nav-link {
    border: none !important;
    border-radius: 10px !important;
    padding: 13px 18px !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    color: #475569 !important;
    background: transparent !important;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1) !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    white-space: nowrap !important;
    cursor: pointer !important;
    margin: 0 !important;
}

.nav.nav-tabs .nav-link:hover {
    color: #00B16A !important;
    background: #e6f7ef !important;
}

.nav.nav-tabs .nav-link.active {
    background: #00B16A !important;
    color: #ffffff !important;
    box-shadow: 0 6px 18px rgba(0, 177, 106, 0.35) !important;
}

/* Icons for tabs */
.nav.nav-tabs #department-tab::before { content: "\f19c"; font-family: FontAwesome; margin-right: 8px; font-weight: normal; }
.nav.nav-tabs #faculty-tab::before { content: "\f0c0"; font-family: FontAwesome; margin-right: 8px; font-weight: normal; }
.nav.nav-tabs #activities-tab::before { content: "\f274"; font-family: FontAwesome; margin-right: 8px; font-weight: normal; }
.nav.nav-tabs #achievements-tab::before { content: "\f091"; font-family: FontAwesome; margin-right: 8px; font-weight: normal; }
.nav.nav-tabs #question-tab::before { content: "\f0f6"; font-family: FontAwesome; margin-right: 8px; font-weight: normal; }
.nav.nav-tabs #syllabus-tab::before { content: "\f02d"; font-family: FontAwesome; margin-right: 8px; font-weight: normal; }

/* --- 5. Tab Content Container --- */
.tab-content {
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    border: 1px solid #eef2f6;
    padding: 35px;
    position: relative;
    min-height: 350px;
}

.tab-content > .tab-pane {
    display: none;
    opacity: 0;
    transition: opacity 0.25s ease-in-out;
}

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

.tab-content > .tab-pane.show {
    opacity: 1;
}

/* Clean up old inner containers */
.tab-content .container.border {
    border: none !important;
    padding: 0 !important;
    margin: 0 !important;
    max-width: 100% !important;
}

.tab-content .p-3 {
    padding: 0 !important;
}

/* Headings inside Tab Content */
.tab-content h4 {
    color: #0b2239;
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 22px;
    position: relative;
    padding-bottom: 12px;
    display: flex;
    align-items: center;
}

.tab-content h4::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 3px;
    background: #00B16A;
    border-radius: 3px;
}

.tab-content hr {
    display: none;
}

.tab-content h5 {
    color: #0b2239;
    font-size: 18px;
    font-weight: 700;
    margin-top: 28px;
    margin-bottom: 14px;
    display: flex;
    align-items: center;
}

.tab-content h5::before {
    content: "\f054";
    font-family: FontAwesome;
    font-size: 11px;
    color: #00B16A;
    margin-right: 8px;
}

.tab-content p {
    color: #475569;
    font-size: 15px;
    line-height: 1.8;
    margin-bottom: 16px;
}

.tab-content ol,
.tab-content ul {
    padding-left: 20px;
    margin-bottom: 20px;
}

.tab-content ol li,
.tab-content ul li {
    color: #475569;
    font-size: 15px;
    line-height: 1.7;
    margin-bottom: 10px;
}

/* --- 6. Faculty Members Cards --- */
.tab-pane#faculty .row {
    margin-left: -12px;
    margin-right: -12px;
}

.tab-pane#faculty [class*="col-"] {
    padding-left: 12px;
    padding-right: 12px;
    margin-bottom: 24px;
}

.tab-pane#faculty .card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 24px 16px !important;
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.04);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.tab-pane#faculty .card:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 32px rgba(0, 0, 0, 0.1);
    border-color: #00B16A;
}

.tab-pane#faculty .card img {
    width: 140px !important;
    height: 160px !important;
    object-fit: cover !important;
    border-radius: 14px !important;
    border: 3px solid #e8f5e9;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    background: #f1f5f9;
}

.tab-pane#faculty .card:hover img {
    transform: scale(1.03);
    border-color: #00B16A;
}

.tab-pane#faculty .card h5 {
    padding-top: 16px !important;
    margin-top: 0 !important;
    margin-bottom: 6px !important;
    font-size: 15px !important;
    font-weight: 700 !important;
    color: #0b2239 !important;
    line-height: 1.4 !important;
}

.tab-pane#faculty .card h5::before {
    display: none;
}

.faculty-hod-badge {
    display: inline-block;
    padding: 3px 12px;
    background: #e8f5e9;
    color: #00B16A;
    border-radius: 20px;
    font-size: 11.5px;
    font-weight: 700;
    margin-top: 4px;
    border: 1px solid rgba(0, 177, 106, 0.25);
}

/* --- 7. Modern Data Tables --- */
.tab-content .table-responsive {
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid #e2e8f0;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03);
    margin-top: 20px;
    margin-bottom: 25px;
}

.tab-content .table {
    margin-bottom: 0;
    border: none;
}

.tab-content .table thead th {
    background: #0b2239;
    color: #ffffff;
    font-weight: 700;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    padding: 14px 16px;
    border: none;
    vertical-align: middle;
}

.tab-content .table-striped tbody tr:nth-of-type(odd) {
    background-color: #fbfcfe;
}

.tab-content .table tbody tr:hover {
    background-color: #f0fdf4 !important;
}

.tab-content .table td {
    padding: 14px 16px;
    vertical-align: middle;
    color: #334155;
    font-size: 14px;
    border-top: 1px solid #f1f5f9;
}

.tab-content .table tr th.text-info,
.tab-content .table tr td.text-success,
.tab-content .table tr th.h4 {
    background-color: #e6f7ef !important;
    color: #00B16A !important;
    font-weight: 700 !important;
    font-size: 15px !important;
    padding: 12px 16px !important;
    border: none !important;
    text-align: center;
}

/* Modern Document View Button */
.tab-content .table a[target="_blank"] {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 6px 14px;
    background: #e8f5e9;
    color: #00B16A;
    border-radius: 8px;
    font-weight: 600;
    font-size: 13px;
    text-decoration: none !important;
    transition: all 0.25s ease;
    border: 1px solid rgba(0, 177, 106, 0.25);
}

.tab-content .table a[target="_blank"]:hover {
    background: #00B16A;
    color: #ffffff !important;
    box-shadow: 0 4px 12px rgba(0, 177, 106, 0.35);
    transform: translateY(-1px);
}

.tab-content .table a[target="_blank"] img {
    display: none;
}

.tab-content .table a[target="_blank"]::before {
    content: "\f15c";
    font-family: FontAwesome;
    margin-right: 6px;
    font-size: 13px;
}

.tab-content .table a[target="_blank"]::after {
    content: "View";
}

/* --- 8. Empty Tab State --- */
.dept-empty-tab {
    padding: 45px 20px;
    text-align: center;
    background: #f8fafc;
    border-radius: 12px;
    border: 1px dashed #cbd5e1;
    margin-top: 15px;
}

.dept-empty-tab i {
    font-size: 42px;
    color: #cbd5e1;
    margin-bottom: 12px;
    display: block;
}

.dept-empty-tab h6 {
    color: #64748b;
    font-weight: 700;
    margin-bottom: 4px;
}

.dept-empty-tab p {
    color: #94a3b8;
    font-size: 13px;
    margin-bottom: 0;
}

/* --- 9. Responsive Adjustments --- */
@media (max-width: 991px) {
    .gradient-heading {
        font-size: 26px !important;
        text-align: center !important;
        margin-top: 25px;
    }
    .dept-hero-card {
        text-align: center;
    }
    .dept-meta-pills,
    .dept-quick-actions {
        justify-content: center;
    }
    .carousel-inner .carousel-item img {
        height: 300px !important;
    }
}

@media (max-width: 767px) {
    .nav.nav-tabs {
        flex-wrap: nowrap;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }
    .nav.nav-tabs::-webkit-scrollbar {
        display: none;
    }
    .nav.nav-tabs .nav-item {
        flex: 0 0 auto;
    }
    .tab-content {
        padding: 22px 18px;
    }
}
