/* ==============================================================
   DIST COMMUNITY - GLOBAL STYLES (community.css)
   ============================================================== */

/* 🟢 1. PREMIUM HEADER (Slimmed Down & Academic Blue to fix clashing) */
.faculty-page-header {
    background: linear-gradient(135deg, #002147 0%, #0a305e 100%);
    box-shadow: inset 0 4px 10px rgba(0,0,0,0.15);
    padding: 20px 0; /* Slimmer height */
    color: white;
    text-align: center;
    margin-bottom: 40px;
}

.faculty-page-header h1 {
    font-family: "Nunito", sans-serif;
    font-weight: 800;
    color: #ffffff;
    margin-bottom: 2px;
    font-size: 28px;
}

.faculty-page-header p {
    color: rgba(255, 255, 255, 0.85);
    font-family: "Open Sans", sans-serif;
    margin: 0;
    font-size: 14px;
}

/* 🟢 2. DEPARTMENT TITLES */
.dep-title {
    background: #f8f9fa;
    border-left: 5px solid #d82c2e;
    padding: 15px 20px;
    margin: 30px 0 15px 0;
    border-radius: 4px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    text-align: left !important;
}

/* Remove top margin specifically for the HOD Grid */
.hod-grid-container .dep-title {
    margin-top: 0;
}

.dep-title h3 {
    color: #002147;
    font-family: "Nunito", sans-serif;
    font-weight: 800;
    margin: 0;
    font-size: 20px;
}

/* 🟢 3. FACULTY CARDS (Generated by Sir's Backend) */
.white-box {
    background: transparent !important;
    border: none !important;
    margin-top: 0 !important;
    padding: 0 !important;
    display: flex;
    flex-wrap: wrap;
    width: 100%;
}

/* Base Card Styling */
.white-box > div[class^="col-"] {
    padding: 15px;
    display: flex;
    align-items: flex-start;
    background: #ffffff;
    border: 1px solid #eef1f6;
    border-radius: 8px;
    margin-bottom: 20px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.white-box > div[class^="col-"]:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.08);
}

/* Grid Layout for Teaching & Non-Teaching Staff */
.standard-faculty-grid .white-box > div[class^="col-4"] {
    flex: 0 0 calc(33.333% - 20px);
    max-width: calc(33.333% - 20px);
    margin-right: 20px;
}

/* Grid Layout for HODs (Forces Sir's code to fill the col-lg-4 container) */
.hod-grid-container .white-box > div[class^="col-"] {
    flex: 0 0 100%;
    max-width: 100%;
    margin-right: 0;
    align-items: center;
}

/* Image Styling */
.white-box img {
    border-radius: 6px;
    border: none !important;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    width: 90px !important;
    height: 110px !important;
    object-fit: cover;
    margin-right: 15px !important;
}

.white-box > div[class^="col-"] > div {
    flex: 1;
}

/* Typography */
.faculty_name {
    font-family: "Nunito", sans-serif !important;
    font-size: 16px !important;
    font-weight: 800 !important;
    color: #1f212d !important;
    display: block;
    margin-bottom: 5px;
}

.title_case {
    font-family: "Open Sans", sans-serif;
    font-size: 13px !important;
    color: #777777 !important;
    line-height: 1.4 !important;
    margin-bottom: 10px !important;
}

/* Sir's Profile Button */
.ProfileButton {
    display: inline-block;
    background: transparent !important;
    border: 1px solid #d82c2e !important;
    color: #d82c2e !important;
    font-family: "Open Sans", sans-serif !important;
    font-size: 12px !important;
    font-weight: 700 !important;
    padding: 5px 15px !important;
    border-radius: 4px !important;
    text-transform: uppercase;
    transition: all 0.3s ease !important;
    text-decoration: none !important;
}

.ProfileButton:hover {
    background: #d82c2e !important;
    color: #ffffff !important;
}

/* Sir's Profile Popup Override */
#facultydet {
    background: #ffffff;
    border-radius: 8px;
    box-shadow: 0 15px 40px rgba(0,0,0,0.1);
    padding: 30px;
    margin-bottom: 40px;
    position: relative;
}
