/* top-header */

@media(max-width:992px) {

    .nav-links {
        margin-top: 15px;
        text-align: center;
    }

    .right-top {
        text-align: center;
        margin-top: 15px;
    }
}

@media(max-width:768px) {

    .college-subtitle {
        text-align: center;
    }

    .logo-box {
        text-align: center;
    }

    .right-section {
        text-align: center;
    }
}

/* nav */

@media(max-width:991px) {

    .gps-navbar .navbar-nav {
        gap: 0;
    }

    .gps-navbar .nav-link {
        padding: 12px 15px !important;
    }
}

/* hero-section */
@media(max-width:991px) {

    .gps-slider-area,
    .gps-slider-area img {
        height: 100%; /* Fixed by parent .col-lg-8 height in style.css */
    }

    .gps-slider-caption {
        width: 80%;
        left: 20px;
        bottom: 20px;
        padding: 15px;
    }

    .gps-slider-caption h3 {
        font-size: 11px;
    }

    .gps-placement-company {
        font-size: 12px;
    }

    .content-card-wrapper {
        padding: 19px !important;
    }

    .message-card-wrapper {
        padding: 19px !important;
    }
}

@media(max-width:576px) {
    .content-card-wrapper {
        padding: 12px !important;
    }
    .message-card-wrapper {
        padding: 12px !important;
    }
    .gps-slider-caption {
        width: 90%;
    }

    .gps-slider-caption h3 {
        font-size: 11px;
    }

    .gps-news-text {
        font-size: 15px;
        line-height: 20.5px;
    }
}

    /* top-notic-bar */

    /* <!-- ABOUT SECTION --> */
    /* RESPONSIVE */
    @media(max-width:1200px) {

        .gps-about-title {
            font-size: 42px;
        }

        .gps-about-text {
            font-size: 18px;
        }
    }

    @media(max-width:991px) {

        .gps-about-content {
            padding-left: 0;
            margin-top: 50px;
        }

        .gps-about-title {
            font-size: 36px;
        }
    }

    @media(max-width:576px) {

        .gps-about-section {
            padding: 50px 0;
        }

        .gps-profile-img {
            height: 260px;
        }

        .gps-about-title {
            font-size: 30px;
        }

        .gps-about-text {
            font-size: 16px;
            line-height: 1.8;
        }

        .gps-read-btn {
            font-size: 18px;
        }
    }

    /* <!-- image-card --> */
    @media(max-width:991px) {

        .gps-resource-img {
            height: 170px;
        }
    }

    @media(max-width:576px) {

        .gps-resource-section {
            padding: 50px 0;
        }

        .gps-resource-img {
            height: 160px;
        }

        .gps-resource-title {
            font-size: 16px;
        }
    }



    /* < !-- toggle --> */
    @media(max-width:991px) {

        .gps-important-box {
            margin-top: 35px;
        }
    }

    @media(max-width:576px) {

        .gps-tabs {
            flex-direction: column;
        }

        .gps-tab-btn {
            width: 100%;
            text-align: left;
        }

        .gps-notice-link,
        .gps-important-link {
            font-size: 16px;
        }
    }

    /* <!-- latest-image --> */


    @media(max-width:991px) {

        .gps-gallery-title {
            font-size: 38px;
        }

        .gps-gallery-img {
            height: 220px;
        }
    }

    @media(max-width:767px) {

        .gps-gallery-header {
            flex-direction: column;
            align-items: flex-start;
            gap: 20px;
        }

        .gps-gallery-title {
            font-size: 32px;
        }

        .gps-gallery-title i {
            font-size: 30px;
        }

        .gps-gallery-img {
            height: 200px;
        }

        .gps-gallery-btn {
            padding: 10px 22px;
            font-size: 16px;
        }
    }

    /* <!-- socel-media -->  */

    /* Responsive Mobile Fix */
    @media (max-width: 768px) {
        .footer-col {
            border-right: none;
            border-bottom: 1px solid #ddd;
            padding: 20px;
            min-height: auto;
        }
    }

/* =====================================================
   FACULTY PAGE — RESPONSIVE STYLES
   faculty.php?id=*&slug=*
   ===================================================== */

/* ---------- Breadcrumb ---------- */
@media (max-width: 768px) {
    .breadcrumb-custom {
        font-size: 12px;
        margin-bottom: 16px;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }
}

/* ---------- Dept Container ---------- */
@media (max-width: 768px) {
    .dept-container {
        padding-top: 18px;
        padding-bottom: 28px;
    }
}

/* ---------- Sidebar nav — collapse on tablet/mobile ---------- */
@media (max-width: 991px) {
    /* sidebar stacks above content on md screens */
    .dept-nav-card {
        margin-bottom: 18px;
    }
}


/* ---------- Content Header Box ---------- */
@media (max-width: 767px) {
    .content-header-box {
        padding: 14px 18px;
        margin-bottom: 22px;
    }

    .content-header-box h2 {
        font-size: 22px;
    }
}

/* ---------- Faculty Grid ---------- */
@media (max-width: 991px) {
    .faculty-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 576px) {
    .faculty-grid {
        grid-template-columns: 1fr;
        gap: 14px;
    }
}

/* ---------- About Intro Block ---------- */
@media (max-width: 767px) {
    /* The inline-styled about block */
    .col-lg-8 [style*="position: relative; background: linear-gradient"] {
        padding: 18px 16px !important;
    }
}

@media (max-width: 576px) {
    /* Stack icon + text vertically on small screens */
    .col-lg-8 [style*="display: flex; align-items: flex-start; gap: 16px"] {
        flex-direction: column !important;
        gap: 12px !important;
    }
}

/* ---------- About – Subfields Section ---------- */
@media (max-width: 767px) {
    .about-subfields-section .d-flex.align-items-center.mb-4 {
        flex-direction: column;
        align-items: flex-start !important;
        gap: 10px;
    }

    .about-subfields-section .d-flex.align-items-center.mb-4 img {
        width: 50px !important;
        height: 50px !important;
        margin-right: 0 !important;
    }

    .about-subfields-section .row.g-3 > .col-md-6 {
        flex: 0 0 100%;
        max-width: 100%;
    }
}

/* ---------- Techniques Section ---------- */
@media (max-width: 767px) {
    .about-techniques-section .row.g-4 > .col-md-6 {
        flex: 0 0 100%;
        max-width: 100%;
    }

    .about-techniques-section [style*="padding: 20px 28px"] {
        padding: 14px 16px !important;
    }
}

/* ---------- PEOs / POs / PSOs Sections ---------- */
@media (max-width: 576px) {
    .peo-section,
    .po-section,
    .pso-section {
        margin-top: 30px !important;
    }

    /* Shrink the large number badges */
    .peo-section [style*="width: 50px"],
    .po-section [style*="width: 50px"],
    .pso-section [style*="width: 50px"] {
        width: 40px !important;
        height: 40px !important;
        font-size: 12px !important;
    }

    /* Reduce row padding */
    .peo-section [style*="padding: 20px 24px"],
    .po-section [style*="padding: 20px 24px"],
    .pso-section [style*="padding: 20px 24px"] {
        padding: 14px 14px !important;
        gap: 12px !important;
    }
}

/* ---------- HOD Profile Card ---------- */
@media (max-width: 767px) {
    .hod-profile-page .row.g-4.align-items-center {
        flex-direction: column;
    }

    .hod-profile-page .col-lg-4.col-md-5.text-center {
        flex: 0 0 100%;
        max-width: 100%;
    }

    .hod-profile-page .col-lg-8.col-md-7 {
        flex: 0 0 100%;
        max-width: 100%;
    }

    .hod-card-premium {
        padding: 18px !important;
    }

    .hod-profile-page h2[style] {
        font-size: 22px !important;
    }
}

/* ---------- Awards & Recognition ---------- */
@media (max-width: 767px) {
    .awards-recognition-section .row.g-4 > [class*="col-md"] {
        flex: 0 0 100%;
        max-width: 100%;
    }

    .awards-recognition-section [style*="padding: 22px 26px"] {
        padding: 16px 18px !important;
    }
}

/* ---------- Lab Infrastructure ---------- */
@media (max-width: 767px) {
    .lab-infrastructure-section [style*="display: flex; align-items: center; gap: 14px; margin-bottom: 28px"] {
        flex-wrap: wrap;
        gap: 10px !important;
    }

    /* Stack lab sidebar + display vertically */
    .glass-ambient-container .row.g-0 {
        flex-direction: column;
    }

    .glass-ambient-container .col-lg-4.col-md-5 {
        flex: 0 0 100%;
        max-width: 100%;
        border-right: none !important;
        border-bottom: 1px solid #e2e8f0;
    }

    .glass-ambient-container .col-lg-8.col-md-7 {
        flex: 0 0 100%;
        max-width: 100%;
    }

    .lab-display-area {
        min-height: 260px !important;
    }

    .lab-pane img {
        min-height: 220px !important;
    }

    .lab-sidebar-list {
        max-height: 200px;
        overflow-y: auto;
    }
}

/* ---------- Future Scope Grid ---------- */
@media (max-width: 767px) {
    .scope-grid {
        grid-template-columns: 1fr !important;
        gap: 14px !important;
    }
}

@media (max-width: 480px) {
    .scope-card {
        padding: 16px 18px 14px 18px !important;
    }

    .psu-partner-card {
        padding: 20px 18px !important;
    }
}

/* ---------- Timetable / Routine ---------- */
@media (max-width: 576px) {
    .routine-item-row {
        flex-direction: column;
        align-items: flex-start !important;
        gap: 12px;
        padding: 16px 18px !important;
    }

    .routine-action-block {
        width: 100%;
        justify-content: flex-end;
    }

    .premium-routine-header {
        padding: 18px 20px !important;
    }

    .premium-routine-header h3 {
        font-size: 18px !important;
    }
}

/* ---------- Contact Details Box (on about page) ---------- */
@media (max-width: 576px) {
    .true-glass-card.mt-5 {
        padding: 18px !important;
    }

    .true-glass-card .row.g-4 > .col-md-6 {
        flex: 0 0 100%;
        max-width: 100%;
    }
}

/* ---------- Vision / Mission Block ---------- */
@media (max-width: 576px) {
    [style*="padding: 14px 22px; border-bottom: 1px solid #e2e8f0"] {
        padding: 12px 16px !important;
    }

    [style*="padding: 18px 24px 20px 24px"] {
        padding: 14px 16px !important;
    }
}

/* ---------- General glassmorphism card padding ---------- */
@media (max-width: 576px) {
    .glass-dashboard-console {
        padding: 18px 14px;
    }

    .true-glass-card {
        padding: 18px !important;
        border-radius: 12px;
    }
}

/* ---------- Prevent horizontal overflow site-wide ---------- */
@media (max-width: 767px) {
    body {
        overflow-x: hidden;
    }

    .dept-container .row {
        --bs-gutter-x: 0.75rem;
    }
}