.dp-hero { background: linear-gradient(135deg, #2f3f7f, #1e2d5c); color: #fff; padding: 50px 0; }
.dp-hero h1 { font-size: clamp(2rem, 4vw, 3rem); margin: 8px 0; }
.dp-back { color: #f0ba62; text-decoration: none; font-size: 14px; }
.dp-wrap { padding: 30px 12px 60px; }
.dp-tabs { gap: 8px; margin-bottom: 22px; flex-wrap: wrap; }
.dp-tabs .nav-link { border: 1px solid #ddd; color: #333; }
.dp-tabs .nav-link.active { background: #2f3f7f; border-color: #2f3f7f; }
.dp-card { background: #fff; border: 1px solid #e9e5dc; border-radius: 12px; padding: 22px; height: 100%; }
.dp-faculty { display: flex; gap: 16px; align-items: center; }
.dp-faculty img { width: 84px; height: 84px; object-fit: cover; border-radius: 50%; }
.dp-faculty h3, .dp-card h3 { font-size: 1.05rem; margin: 0 0 4px; }
.dp-years { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.dp-year { padding: 7px 14px; border: 1px solid #ddd; border-radius: 20px; font-size: 13px; text-decoration: none; color: #333; }
.dp-year.active { background: #2f3f7f; color: #fff; border-color: #2f3f7f; }
.dp-empty { color: #777; }
/* Faculty card: photo on top, details below */
.dp-card.dp-faculty {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    height: 100%;
    padding: 28px 20px 24px;
    transition: transform .25s, box-shadow .25s;
}

.dp-card.dp-faculty:hover {
    transform: translateY(-4px);
    box-shadow: 0 14px 30px rgba(0, 0, 0, .1);
}

.dp-faculty > img {
    width: 130px;
    height: 130px;
    object-fit: cover;
    object-position: top center;   /* keeps faces in frame */
    border-radius: 50%;
    border: 4px solid #fff;
    box-shadow: 0 0 0 2px #273a7d;  /* ring in your navy; change to match your theme */
    margin-bottom: 18px;
}

.dp-faculty h3 {
    margin: 0 0 6px;
    font-size: 1.15rem;
    font-weight: 700;
}

.dp-faculty p {
    margin: 0 0 4px;
    font-weight: 600;
    color: #273a7d;
}

.dp-faculty small {
    display: block;
    color: #6c757d;
}

.dp-faculty a {
    display: inline-block;
    margin-top: 8px;
    font-size: .85rem;
}
/* Lab cards: equal image frame, aligned text, responsive */
.dp-card.dp-lab {
    display: flex;
    flex-direction: column;
    padding: 16px;
}

.dp-lab-img {
    display: block;
    width: 100%;
    height: clamp(170px, 20vw, 240px);  /* smaller on phones, capped on desktop */
    object-fit: cover;                  /* same frame for every photo, no stretching */
    object-position: center 30%;        /* keeps faces and the top of buildings in view */
    border-radius: 10px;
    margin-bottom: 14px;
}

.dp-lab h3 {
    font-size: 1.1rem;
    margin: 0 0 6px;
}

.dp-lab p {
    margin: 0 0 10px;
    color: #555;
    line-height: 1.5;
}

.dp-lab small {
    margin-top: auto;                   /* pushes Equipment to the bottom of the card */
    color: #6c757d;
}
.dept-admin { padding: 24px; }
.dept-admin__hint { color: #6c757d; margin: 0 0 18px; }

.dept-list { display: flex; flex-direction: column; gap: 12px; max-width: 900px; }

.dept-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 14px 18px;
    background: #fff;
    border: 1px solid #e3e6ee;
    border-radius: 12px;
    transition: box-shadow .2s, transform .2s;
}
.dept-row:hover { box-shadow: 0 8px 20px rgba(30, 45, 92, .08); transform: translateY(-1px); }

.dept-name { display: flex; align-items: center; gap: 12px; font-weight: 600; color: #1e2d5c; }
.dept-icon {
    width: 38px; height: 38px; flex: none;
    display: inline-flex; align-items: center; justify-content: center;
    border-radius: 10px; background: #eef1fb; color: #2f3f7f;
}

.dept-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.dept-actions .btn { border-radius: 8px; padding: 6px 14px; font-weight: 500; }

@media (max-width: 575.98px) {
    .dept-row { flex-direction: column; align-items: flex-start; }
    .dept-actions { width: 100%; }
    .dept-actions .btn { flex: 1 1 auto; text-align: center; }
}
.about-admin { padding: 24px; max-width: 1000px; }
.about-admin__top {
    display: flex; align-items: center; justify-content: space-between;
    gap: 12px; flex-wrap: wrap; margin-bottom: 20px;
}
.about-admin__hint { color: #6c757d; }
.about-admin label { font-weight: 600; color: #1e2d5c; }
.about-admin__editor { font-family: Consolas, "Courier New", monospace; font-size: 14px; line-height: 1.6; }
.about-admin__actions {
    display: flex; justify-content: flex-end; gap: 8px;
    margin-top: 8px; padding-top: 16px; border-top: 1px solid #e9ecef;
}
@media (max-width: 575.98px) {
    .about-admin { padding: 16px; }
    .about-admin__actions .btn { flex: 1; }
}
.dp-about { padding: 28px 30px; }
.dp-about-badge {
    display: inline-block; margin-bottom: 14px; padding: 5px 14px;
    background: #eef1fb; color: #2f3f7f; border-radius: 20px;
    font-size: 13px; font-weight: 600; letter-spacing: .3px;
}
.dp-about-body { color: #333; line-height: 1.8; }
.dp-about-body p { margin: 0 0 14px; }
.dp-about-body ul, .dp-about-body ol { padding-left: 1.3rem; margin-bottom: 14px; }
.dp-about-body img { max-width: 100%; height: auto; border-radius: 8px; }
.dp-about-plain { white-space: pre-line; }   /* keeps line breaks in plain text */
.dp-about-actions { margin-top: 10px; padding-top: 10px; border-top: 1px solid #eee; }
.report-btn {
    background-color: green;
    color: #fff;
    border: 1px solid green;
    border-radius: 6px;
    padding: 8px 18px;
    text-decoration: none;
    transition: background-color .25s ease, box-shadow .25s ease, transform .25s ease;
}

.report-btn:hover,
.report-btn:focus {
    background-color: #0b6b0b;          /* darker green on hover */
    color: #fff;                        /* text stays white */
    box-shadow: 0 4px 10px rgba(0, 128, 0, .35);
    transform: translateY(-2px);
}

.report-btn:active {
    transform: translateY(0);
    box-shadow: none;
}
@media (max-width: 575.98px) {
    .dp-about { padding: 20px 16px; }
}
.dl-actions .dl-about   { background:#2f3f7f !important; border-color:#2f3f7f !important; color:#fff !important; }
.dl-actions .dl-about:hover { background:#1e2d5c !important; }

.dl-actions .dl-results { background:#f0ba62 !important; border-color:#f0ba62 !important; color:#1e2d5c !important; }
.dl-actions .dl-results:hover { background:#e5a83f !important; }
    .ab-wrap { background:#fff; border:1px solid #e3e6ee; border-radius:12px; padding:24px; max-width:1000px; box-shadow:0 2px 8px rgba(30,45,92,.05); }
    .ab-top { display:flex; align-items:center; justify-content:space-between; gap:12px; flex-wrap:wrap; margin-bottom:22px; padding-bottom:16px; border-bottom:1px solid #eef0f5; }
    .ab-hint { margin:0; color:#6c757d; }
    .ab-top .ab-back { margin-left:auto; }              /* pushes the button to the right */

    .ab-wrap label { font-weight:600; color:#1e2d5c; }
    .ab-editor { font-family:Consolas,"Courier New",monospace; font-size:14px; line-height:1.6; }

    .ab-actions { display:flex; justify-content:flex-end; gap:10px; margin-top:8px; padding-top:16px; border-top:1px solid #eef0f5; }

    .ab-btn-back { background:#fff !important; color:#2f3f7f !important; border:1px solid #2f3f7f !important; border-radius:8px; padding:7px 16px; font-weight:500; }
    .ab-btn-back:hover { background:#2f3f7f !important; color:#fff !important; }

    .ab-btn-save { background:#2f3f7f !important; border:1px solid #2f3f7f !important; color:#fff !important; border-radius:8px; padding:9px 22px; font-weight:600; }
    .ab-btn-save:hover { background:#1e2d5c !important; }

    .ab-btn-cancel { background:#f1f3f8 !important; color:#444 !important; border:1px solid #dfe3ec !important; border-radius:8px; padding:9px 20px; }

    @media (max-width: 575.98px) {
        .ab-wrap { padding:16px; }
        .ab-actions .btn { flex:1; }
    }
     .dl-wrap { padding: 8px 4px 24px; max-width: 980px; }
    .dl-hint { color: #6c757d; margin: 0 0 20px; font-size: 15px; }

    .dl-grid { display: grid; grid-template-columns: 1fr; gap: 14px; }

    .dl-card {
        display: flex; align-items: center; justify-content: space-between;
        gap: 16px; flex-wrap: wrap;
        background: #fff; border: 1px solid #e3e6ee; border-left: 4px solid #2f3f7f;
        border-radius: 12px; padding: 16px 20px;
        box-shadow: 0 2px 8px rgba(30, 45, 92, .05);
        transition: box-shadow .2s, transform .2s;
    }
    .dl-card:hover { box-shadow: 0 10px 24px rgba(30, 45, 92, .12); transform: translateY(-2px); }

    .dl-name { display: flex; align-items: center; gap: 14px; min-width: 240px; }
    .dl-icon {
        width: 44px; height: 44px; flex: none; border-radius: 12px;
        display: flex; align-items: center; justify-content: center;
        background: #eef1fb; color: #2f3f7f; font-size: 18px;
    }
    .dl-title { font-size: 1.05rem; font-weight: 700; color: #1e2d5c; line-height: 1.3; }

    .dl-actions { display: flex; gap: 8px; flex-wrap: wrap; }
    .dl-actions .btn { border-radius: 8px; padding: 7px 16px; font-weight: 500; }

    @media (max-width: 575.98px) {
        .dl-card { flex-direction: column; align-items: stretch; }
        .dl-actions { display: grid; grid-template-columns: repeat(3, 1fr); }
        .dl-actions .btn { padding: 8px 4px; text-align: center; }
    }
    .dp-about-img { max-width:100%; max-height:360px; border-radius:10px; margin-bottom:16px; object-fit:cover; }
     /* shown only on the printed report */
    .print-only { display: none; }

    @media print {
        @page { size: A4 landscape; margin: 12mm; }

        /* hide admin layout chrome, filter form and action buttons */
        .main-header, .main-sidebar, .main-footer, .content-header,
        .navbar, .no-print { display: none !important; }

        .content-wrapper, .content { margin: 0 !important; padding: 0 !important; background: #fff !important; }
        .card { border: 0 !important; box-shadow: none !important; }

        .print-only { display: block !important; }

        .print-report-head { text-align: center; margin-bottom: 14px; }
        .print-report-head h2 { margin: 0 0 4px; font-size: 20px; }
        .print-report-head h3 { margin: 0 0 8px; font-size: 16px; }
        .print-report-meta { display: flex; justify-content: space-between; font-size: 12px; margin-bottom: 8px; }

        table { width: 100%; font-size: 12px; }
        thead { display: table-header-group; }          /* repeat header on every page */
        tr { page-break-inside: avoid; }
        th, td { border: 1px solid #999 !important; padding: 6px 8px !important; }

        .badge { border: 1px solid #666; color: #000 !important; background: #fff !important; }
        a { color: #000 !important; text-decoration: none !important; }
    }