/*
 * Government Polytechnic Saharsa - Main Stylesheet
 * Modern Professional Design - GEMS Polytechnic Style
 * Bootstrap 5 Compatible
 */

/* ===========================
   CSS Variables & Root Styles
   =========================== */
:root {
    /* Primary Colors */
    --gp-primary: #0b2a57;
    --gp-primary-dark: #081f40;
    --gp-primary-light: #1a4078;
    
    /* Secondary Colors */
    --gp-secondary: #1d4f91;
    --gp-secondary-dark: #163d71;
    --gp-secondary-light: #2a66b1;
    
    /* Neutral Colors */
    --gp-white: #ffffff;
    --gp-light: #f8fafc;
    --gp-light-gray: #f1f5f9;
    --gp-gray: #64748b;
    --gp-dark-gray: #475569;
    --gp-text: #1e293b;
    
    /* UI Colors */
    --gp-border: #e2e8f0;
    --gp-shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.08);
    --gp-shadow: 0 4px 16px rgba(11, 42, 87, 0.1);
    --gp-shadow-lg: 0 10px 40px rgba(11, 42, 87, 0.15);
    
    /* Typography */
    --font-primary: 'Poppins', sans-serif;
    --font-heading: 'Merriweather', serif;
    
    /* Transitions */
    --transition: all 0.3s ease;
    --transition-fast: all 0.15s ease;
}

/* ===========================
   Global Styles
   =========================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-primary);
    color: var(--gp-text);
    background: var(--gp-white);
    line-height: 1.6;
    font-size: 16px;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.3;
    color: var(--gp-primary);
}

a {
    text-decoration: none;
    transition: var(--transition-fast);
}

img {
    max-width: 100%;
    height: auto;
}

/* Desktop/Laptop density tuning so page looks balanced at browser zoom 100% */
@media (min-width: 992px) and (max-width: 1700px) {
    body {
        font-size: 15px;
    }

    .gp-topbar {
        min-height: 46px;
        padding: 0.24rem 0;
        font-size: 11.8px;
    }

    .gp-quick-link {
        font-size: 0.8rem;
        padding: 0.12rem 0.36rem;
    }

    .gp-header {
        min-height: 106px;
    }

    .gp-brand-logo {
        width: 74px;
        height: 74px;
    }

    .gp-brand-title {
        font-size: 1.3rem;
    }

    .gp-brand-tagline {
        font-size: 0.72rem;
    }

    .gp-right-emblem-wrap {
        height: 68px;
    }

    .gp-right-emblem-image {
        max-width: 66px;
        max-height: 66px;
    }

    .gp-navbar {
        min-height: 64px;
    }

    .gp-navbar .nav-link {
        font-size: 0.94rem;
        padding: 0.78rem 0.5rem;
    }

    .announcement-strip {
        padding: 0.58rem 0;
    }

    .announcement-text {
        font-size: 0.93rem;
    }

    .hero-slider-shell,
    .home-news-panel {
        min-height: 460px;
    }

    .hero-content {
        min-height: 460px;
        padding: 1.7rem;
    }

    .hero-title {
        font-size: clamp(1.85rem, 3.8vw, 3rem);
        margin-bottom: 0.9rem;
    }

    .hero-subtitle {
        font-size: 1.08rem;
    }

    .home-news-header h2 {
        font-size: clamp(1.16rem, 2vw, 1.8rem);
    }
}

/* Medium laptops / larger tablets in landscape */
@media (min-width: 992px) and (max-width: 1250px) {
    .gp-topbar {
        min-height: 42px;
        font-size: 11px;
    }

    .gp-topbar-link {
        font-size: 0.8rem;
    }

    .gp-quick-link {
        font-size: 0.74rem;
        padding: 0.1rem 0.3rem;
    }

    .gp-header {
        min-height: 94px;
    }

    .gp-brand-logo {
        width: 66px;
        height: 66px;
    }

    .gp-brand-title {
        font-size: 1.12rem;
    }

    .gp-brand-tagline {
        font-size: 0.69rem;
    }

    .gp-right-emblem-wrap {
        width: 200px;
        height: 60px;
    }

    .gp-right-emblem-image {
        max-width: 58px;
        max-height: 58px;
    }

    .gp-navbar {
        min-height: 58px;
    }

    .gp-navbar .nav-link {
        font-size: 0.86rem;
        padding: 0.66rem 0.32rem;
    }

    .announcement-text {
        font-size: 0.86rem;
    }

    .hero-slider-shell,
    .home-news-panel {
        min-height: 410px;
    }

    .hero-content {
        min-height: 410px;
        padding: 1.3rem;
    }

    .hero-title {
        font-size: clamp(1.65rem, 3.4vw, 2.45rem);
    }
}

/* Standard laptop zoom(100%) safety tuning so header/nav does not clip */
@media (min-width: 1200px) and (max-width: 1550px) {
    .gp-navbar .container-fluid.px-lg-5 {
        padding-left: 1rem !important;
        padding-right: 1rem !important;
    }

    .gp-topbar {
        min-height: 42px;
        font-size: 11px;
    }

    .gp-topbar-link,
    .gp-quick-link {
        font-size: 0.76rem;
    }

    .gp-header {
        min-height: 96px;
    }

    .gp-brand-title {
        font-size: 1.2rem;
    }

    .gp-brand-tagline {
        font-size: 0.69rem;
    }

    .gp-navbar {
        min-height: 58px;
    }

    .gp-navbar .navbar-nav {
        gap: 0.08rem;
    }

    .gp-navbar .nav-link {
        font-size: 0.82rem;
        padding: 0.66rem 0.2rem;
    }

    .gp-navbar .dropdown-toggle::after {
        margin-left: 0.2rem;
        font-size: 0.56rem;
    }

    .gp-navbar .dropdown-menu {
        min-width: 205px;
    }

    .announcement-text {
        font-size: 0.92rem;
    }
}

/* ===========================
   Compact Header + Navbar
   =========================== */
.gp-topbar {
    min-height: 54px;
    background:
        linear-gradient(90deg, #153d75 0%, #1d4f91 48%, #153d75 100%);
    color: #fff;
    font-size: 12.5px;
    font-weight: 600;
    padding: 0.32rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: inset 0 -1px 0 rgba(0, 0, 0, 0.16);
}

.gp-topbar-contact-row,
.gp-topbar-links-row {
    display: flex;
    align-items: center;
}

.gp-topbar-contact-row {
    min-height: 22px;
    justify-content: flex-start;
}

.gp-topbar-links-row {
    min-height: 22px;
    justify-content: flex-end;
}

.gp-topbar a {
    color: #fff;
    text-decoration: none;
}

.gp-topbar-left,
.gp-topbar-right {
    display: flex;
    align-items: center;
    gap: 0.7rem;
}

.gp-topbar-left {
    flex-wrap: nowrap;
    justify-content: flex-start;
}

.gp-topbar-right {
    width: 100%;
    justify-content: flex-end;
    flex-wrap: wrap;
    overflow-x: visible;
}

.gp-topbar-link {
    display: inline-flex;
    align-items: center;
    gap: 0.38rem;
    opacity: 1;
    white-space: nowrap;
    transition: transform 0.2s ease, text-shadow 0.2s ease, opacity 0.2s ease;
}

.gp-topbar-link:hover,
.gp-quick-link:hover {
    color: #fff;
    opacity: 1;
    transform: translateY(-1px);
    text-shadow: 0 2px 8px rgba(255, 255, 255, 0.25);
}

.gp-topbar-link i {
    font-size: 11px;
}

.gp-quick-link {
    display: inline-flex;
    align-items: center;
    opacity: 1;
    white-space: nowrap;
    font-size: 0.88rem;
    font-weight: 700;
    letter-spacing: 0;
    padding: 0.14rem 0.46rem;
    border-radius: 999px;
    transition: transform 0.2s ease, text-shadow 0.2s ease, background-color 0.2s ease;
}

.gp-quick-link + .gp-quick-link::before {
    content: "|";
    opacity: 0.45;
    margin-right: 0.3rem;
    margin-left: 0;
}

.gp-quick-link:hover {
    background: rgba(255, 255, 255, 0.14);
}

.gp-header {
    background: #fff;
    border-bottom: 1px solid #e2e8f0;
    min-height: 128px;
}

.gp-brand-wrap {
    display: flex;
    align-items: center;
    gap: 1rem;
    text-decoration: none;
}

.gp-brand-logo {
    width: 88px;
    height: 88px;
    border-radius: 0;
    background: transparent;
    border: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #18365f;
    font-weight: 700;
    letter-spacing: 0.4px;
    flex-shrink: 0;
}

.gp-brand-image {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    background: transparent;
    mix-blend-mode: multiply;
}

.gp-brand-title {
    font-family: var(--font-heading);
    font-size: 1.45rem;
    line-height: 1.1;
    color: #15365f;
    font-weight: 700;
}

.gp-brand-tagline {
    font-size: 0.78rem;
    color: #5f6d82;
    font-weight: 600;
}

.gp-nba-placeholder {
    width: 260px;
    height: 72px;
    flex-shrink: 0;
}

.gp-right-emblem-wrap {
    width: 260px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    flex-shrink: 0;
}

.gp-right-emblem-image {
    max-width: 80px;
    max-height: 80px;
    width: auto;
    height: auto;
    object-fit: contain;
    background: transparent;
    mix-blend-mode: multiply;
}

.gp-navbar {
    background: linear-gradient(180deg, #ffffff 0%, #fdfdff 100%);
    border-top: 0;
    border-bottom: 1px solid #d8dfeb;
    min-height: 76px;
    z-index: 1028;
}

.gp-navbar.sticky-active {
    position: sticky;
    top: 0;
    box-shadow: 0 8px 24px rgba(20, 36, 63, 0.08);
}

.gp-navbar .navbar-nav {
    gap: 0.26rem;
}

.gp-navbar .nav-link {
    color: #1f2f45;
    font-size: 0.97rem;
    font-weight: 700;
    letter-spacing: 0;
    padding: 0.9rem 0.58rem;
    text-decoration: none;
    position: relative;
    white-space: nowrap;
    border-radius: 10px;
    transition: color 0.22s ease, background-color 0.22s ease, transform 0.22s ease, box-shadow 0.22s ease;
}

.gp-navbar .nav-link::before {
    content: "";
    position: absolute;
    left: 0.65rem;
    right: 0.65rem;
    bottom: 0.55rem;
    height: 2px;
    background: #1d4f91;
    border-radius: 2px;
    transform: scaleX(0);
    transform-origin: center;
    transition: transform 0.22s ease;
}

.gp-navbar .nav-link:hover {
    color: #1d4f91;
    background: #f8fafc;
    transform: translateY(-1px);
}

.gp-navbar .nav-link:hover::before,
.gp-navbar .nav-link.active::before {
    transform: scaleX(1);
}

.gp-navbar .nav-link.active {
    color: #1d4f91;
    background: linear-gradient(180deg, #f2f7ff 0%, #eaf2ff 100%);
    box-shadow: inset 0 0 0 1px #d5e3f5, 0 4px 12px rgba(29, 79, 145, 0.12);
}

.gp-navbar .dropdown-toggle::after {
    border: none;
    content: "\F282";
    font-family: "bootstrap-icons";
    font-size: 0.65rem;
    vertical-align: middle;
    margin-left: 0.3rem;
    transition: transform 0.22s ease;
}

.gp-navbar .dropdown-toggle[aria-expanded="true"]::after {
    transform: rotate(180deg);
}

.gp-navbar .dropdown-menu {
    border: 1px solid #e6ebf2;
    border-radius: 8px;
    box-shadow: 0 12px 30px rgba(20, 36, 63, 0.1);
    margin-top: 0.15rem;
    padding: 0.4rem;
    min-width: 230px;
}

.gp-navbar .dropdown-item {
    font-size: 0.9rem;
    font-weight: 600;
    border-radius: 6px;
    padding: 0.5rem 0.7rem;
    color: #1f2f45;
    text-decoration: none;
    border-bottom: 1px solid #e7edf5;
    transition: background-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.gp-navbar .dropdown-item:hover,
.gp-navbar .dropdown-item:focus {
    background: #f4f7fb;
    color: #1d4f91;
    transform: translateX(4px);
}
.gp-navbar .dropdown-menu li:last-child .dropdown-item {
    border-bottom: 0;
}

.gp-navbar .navbar-toggler {
    padding: 0.5rem 0.2rem;
}

.gp-navbar .navbar-toggler:focus {
    box-shadow: none;
}

/* Final desktop override: keep full navbar visible at 100% zoom */
@media (min-width: 1200px) and (max-width: 1550px) {
    .gp-navbar .container-fluid.px-lg-5 {
        padding-left: 1rem !important;
        padding-right: 1rem !important;
    }

    .gp-navbar .navbar-nav {
        gap: 0.08rem;
    }

    .gp-navbar .nav-link {
        font-size: 0.82rem;
        padding: 0.66rem 0.2rem;
    }

    .gp-navbar .dropdown-toggle::after {
        margin-left: 0.2rem;
        font-size: 0.56rem;
    }
}

@media (min-width: 992px) {
    .gp-navbar .dropdown-menu {
        display: block;
        opacity: 0;
        visibility: hidden;
        transform: translateY(8px);
        pointer-events: none;
        transition: opacity 0.22s ease, transform 0.22s ease, visibility 0.22s ease;
    }

    .gp-navbar .dropdown:hover > .dropdown-menu,
    .gp-navbar .dropdown.dropdown-hover-open > .dropdown-menu {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
        pointer-events: auto;
    }
}

@media (max-width: 991.98px) {
    .gp-topbar {
        min-height: 0;
        padding: 0.5rem 0;
        font-size: 12px;
    }

    .gp-topbar-contact-row,
    .gp-topbar-links-row {
        min-height: auto;
        align-items: flex-start;
        justify-content: flex-start;
        padding: 0.1rem 0;
    }

    .gp-topbar-right {
        flex-wrap: wrap;
        row-gap: 0.3rem;
        justify-content: flex-start;
    }

    .gp-topbar-left {
        width: 100%;
        flex-wrap: wrap;
        row-gap: 0.3rem;
    }

    .gp-quick-link + .gp-quick-link::before {
        margin-right: 0.45rem;
    }

    .gp-brand-title {
        font-size: clamp(1.02rem, 3.8vw, 1.35rem);
    }

    .gp-brand-tagline {
        font-size: 0.9rem;
    }

    .gp-brand-logo {
        width: 72px;
        height: 72px;
        font-size: 0.86rem;
    }

    .gp-nba-placeholder {
        display: none;
    }

    .gp-right-emblem-wrap {
        display: none;
    }

    .gp-navbar {
        min-height: 58px;
    }

    .gp-navbar .container-fluid.px-lg-5 {
        align-items: center;
    }

    .gp-navbar .navbar-toggler {
        padding: 0.35rem 0.1rem;
        margin: 0.15rem 0;
    }

    .gp-navbar .navbar-toggler-icon {
        width: 1.55rem;
        height: 1.55rem;
    }

    .gp-navbar .navbar-collapse {
        background: #fff;
        border-top: 1px solid #e6ebf2;
        border-radius: 0 0 12px 12px;
        box-shadow: 0 14px 30px rgba(20, 36, 63, 0.12);
        padding: 0.35rem 0;
        position: relative;
        z-index: 1030;
        max-height: 72vh;
        overflow-y: auto;
    }

    .gp-navbar .navbar-nav {
        gap: 0;
    }

    .gp-navbar .nav-link {
        padding: 0.8rem 0.4rem;
        border-bottom: 1px solid #f0f3f8;
        font-size: 1rem;
    }

    .gp-navbar .dropdown-menu {
        display: none;
        border: 0;
        box-shadow: none;
        margin-top: 0;
        padding: 0 0.35rem 0.35rem 0.9rem;
        background: #f8fbff;
    }

    .gp-navbar .dropdown.show > .dropdown-menu {
        display: block;
    }

    .gp-navbar .dropdown-item {
        font-size: 0.92rem;
        padding: 0.6rem 0.7rem;
    }

    .hero-cta {
        justify-content: center;
    }

    .home-apply-content {
        padding: 2rem 1.3rem;
    }

    .home-apply-content h2 {
        font-size: 1.6rem;
    }

    .home-apply-content h3 {
        font-size: 1.2rem;
    }

    .home-official-image {
        height: 220px;
    }
}

/* ===========================
   Top Contact Bar
   =========================== */
.top-contact-bar {
    background: linear-gradient(135deg, var(--gp-secondary-dark) 0%, var(--gp-secondary) 100%);
    color: var(--gp-white);
    font-size: 0.875rem;
    padding: 0.65rem 0;
    border-bottom: 2px solid rgba(255, 255, 255, 0.1);
}

.contact-item {
    color: var(--gp-white);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    transition: var(--transition-fast);
    opacity: 0.95;
}

.contact-item:hover {
    opacity: 1;
    color: var(--gp-white);
    transform: translateY(-1px);
}

.contact-item i {
    font-size: 1rem;
}

.quick-links {
    font-size: 0.85rem;
}

.quick-link-item {
    color: var(--gp-white);
    text-decoration: none;
    transition: var(--transition-fast);
    opacity: 0.9;
    display: inline-flex;
    align-items: center;
}

.quick-link-item:hover {
    opacity: 1;
    color: var(--gp-white);
    text-decoration: underline;
}

.quick-links .divider {
    color: rgba(255, 255, 255, 0.4);
    font-size: 0.75rem;
}

/* ===========================
   Header Section
   =========================== */
.identity-header {
    background: var(--gp-white);
    border-bottom: 1px solid var(--gp-border);
    box-shadow: var(--gp-shadow-sm);
}

.brand-wrap {
    display: inline-flex;
    align-items: center;
    transition: var(--transition-fast);
}

.brand-wrap:hover {
    transform: translateY(-2px);
}

.brand-logo-wrapper {
    position: relative;
}

.brand-mark {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--gp-primary) 0%, var(--gp-primary-light) 100%);
    color: var(--gp-white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 1.5rem;
    letter-spacing: 1px;
    box-shadow: 0 8px 20px rgba(11, 42, 87, 0.2);
    transition: var(--transition);
}

.brand-wrap:hover .brand-mark {
    box-shadow: 0 12px 28px rgba(11, 42, 87, 0.3);
    transform: scale(1.05);
}

.brand-text {
    margin-left: 0.5rem;
}

.brand-title {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--gp-primary);
    margin-bottom: 0.25rem;
    line-height: 1.2;
}

.brand-tagline {
    font-size: 0.95rem;
    color: var(--gp-gray);
    font-weight: 500;
    font-family: var(--font-primary);
}

.accreditation-wrapper {
    display: flex;
    justify-content: flex-end;
}

.accreditation-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    background: linear-gradient(135deg, #fff5f5 0%, #ffe4e4 100%);
    border: 2px solid var(--gp-secondary);
    border-radius: 12px;
    padding: 0.85rem 1.25rem;
    box-shadow: var(--gp-shadow);
    transition: var(--transition);
}

.accreditation-badge:hover {
    transform: translateY(-2px);
    box-shadow: var(--gp-shadow-lg);
}

.badge-icon {
    font-size: 2rem;
    color: var(--gp-secondary);
}

.badge-content {
    text-align: left;
}

.badge-title {
    font-weight: 700;
    font-size: 0.95rem;
    color: var(--gp-secondary);
    line-height: 1.2;
}

.badge-subtitle {
    font-size: 0.8rem;
    color: var(--gp-dark-gray);
    font-weight: 500;
}

/* ===========================
   Main Navigation
   =========================== */
.main-navbar {
    background: var(--gp-white);
    border-bottom: 1px solid var(--gp-border);
    box-shadow: var(--gp-shadow);
    padding: 0;
    z-index: 1030;
}

.main-navbar .navbar-nav {
    gap: 0.25rem;
}

.main-navbar .nav-link {
    color: var(--gp-text);
    font-weight: 600;
    font-size: 0.95rem;
    padding: 1rem 1.1rem;
    border-radius: 8px;
    transition: var(--transition-fast);
    position: relative;
}

.main-navbar .nav-link::after {
    content: '';
    position: absolute;
    bottom: 0.5rem;
    left: 50%;
    transform: translateX(-50%) scaleX(0);
    width: 60%;
    height: 3px;
    background: var(--gp-primary);
    border-radius: 2px;
    transition: var(--transition-fast);
}

.main-navbar .nav-link:hover,
.main-navbar .nav-link.active {
    color: var(--gp-primary);
    background: var(--gp-light);
}

.main-navbar .nav-link:hover::after,
.main-navbar .nav-link.active::after {
    transform: translateX(-50%) scaleX(1);
}

.main-navbar .dropdown-menu {
    border: none;
    border-radius: 12px;
    box-shadow: var(--gp-shadow-lg);
    padding: 0.75rem;
    margin-top: 0.5rem;
    min-width: 250px;
}

.main-navbar .dropdown-item {
    border-radius: 8px;
    padding: 0.65rem 1rem;
    font-weight: 500;
    color: var(--gp-text);
    transition: var(--transition-fast);
    display: flex;
    align-items: center;
}

.main-navbar .dropdown-item i {
    color: var(--gp-gray);
    transition: var(--transition-fast);
}

.main-navbar .dropdown-item:hover {
    background: linear-gradient(135deg, #f0f7ff 0%, #e6f2ff 100%);
    color: var(--gp-primary);
    transform: translateX(5px);
}

.main-navbar .dropdown-item:hover i {
    color: var(--gp-primary);
}

.main-navbar .dropdown-divider {
    margin: 0.5rem 0;
    border-color: var(--gp-border);
}

/* Desktop Dropdown Hover Effect */
@media (min-width: 992px) {
    .main-navbar .dropdown-menu {
        display: block;
        opacity: 0;
        visibility: hidden;
        transform: translateY(10px);
        transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s;
    }
    
    .main-navbar .dropdown:hover > .dropdown-menu {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }
}

/* ===========================
   Announcement Strip  
   =========================== */
.announcement-strip {
    background: linear-gradient(90deg, #153d75 0%, #1d4f91 52%, #153d75 100%);
    color: var(--gp-white);
    padding: 0.72rem 0;
    overflow: hidden;
    border-bottom: 1px solid #12345f;
    white-space: nowrap;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

.announcement-content {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    justify-content: center;
}

.announcement-text {
    font-weight: 700;
    font-size: 0.95rem;
    letter-spacing: 0;
}

.announcement-content i {
    animation: gpPulse 1.9s ease-in-out infinite;
}

@keyframes gpPulse {
    0%, 100% { transform: scale(1); opacity: 0.92; }
    50% { transform: scale(1.12); opacity: 1; }
}

/* ===========================
   Hero Section
   =========================== */
.hero-section {
    position: relative;
    padding: 0;
    background: #f3f6fb;
}

.hero-split-row {
    margin: 0;
    border: 1px solid #d7dfeb;
    background: #fff;
    overflow: hidden;
    box-shadow: 0 8px 26px rgba(12, 33, 65, 0.08);
}

.hero-slider-shell {
    position: relative;
    width: 100%;
    min-height: 560px;
    height: 100%;
}

.hero-slider {
    position: absolute;
    inset: 0;
    overflow: hidden;
    background: #132844;
}

.hero-slider img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 0.9s ease;
}

.hero-slider img.active {
    opacity: 1;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(110deg, rgba(15, 30, 52, 0.64), rgba(15, 30, 52, 0.36));
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    min-height: 560px;
    padding: 2.3rem 2.3rem 2.7rem;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}

.hero-title {
    font-size: clamp(1.8rem, 4.2vw, 3rem);
    font-weight: 900;
    color: var(--gp-white);
    margin-bottom: 1rem;
    text-shadow: 2px 4px 12px rgba(0, 0, 0, 0.3);
    line-height: 1.2;
    letter-spacing: 1px;
}

.hero-subtitle {
    font-size: clamp(1.1rem, 2vw, 1.5rem);
    color: rgba(255, 255, 255, 0.95);
    margin-bottom: 0;
    font-weight: 500;
    font-family: var(--font-primary);
}

.home-news-panel {
    border-left: 1px solid #d7dfeb;
    background: #f6f8fc;
    min-height: 560px;
}

.home-news-header {
    padding: 1rem 1.15rem;
    background: #edf1f6;
    border-bottom: 1px solid #d9e2ef;
}

.home-news-header-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.8rem;
}

.home-news-header h2 {
    color: #2a3448;
    font-size: clamp(1.2rem, 2vw, 1.65rem);
    font-family: var(--font-primary);
    font-weight: 700;
}

.home-news-toggle-btn {
    border: 1px solid #c6d2e5;
    background: #ffffff;
    color: #24334f;
    border-radius: 8px;
    font-weight: 700;
    font-size: 0.86rem;
    line-height: 1;
    padding: 0.42rem 0.75rem;
}

.home-news-toggle-btn:hover {
    background: #eaf0fa;
}

.home-news-body {
    max-height: 510px;
    overflow-y: auto;
    padding: 0.35rem 0.9rem 0.85rem;
}

.home-news-item {
    display: block;
    padding: 0.85rem 0.35rem;
    border-bottom: 1px solid #dbe3ef;
    color: inherit;
    text-decoration: none;
}

.home-news-item:hover {
    background: #eef3fb;
}

.home-news-date {
    display: inline-flex;
    align-items: center;
    font-size: 0.95rem;
    font-weight: 600;
    color: #273045;
    margin-right: 0.45rem;
}

.home-news-badge {
    display: inline-block;
    border-radius: 4px;
    padding: 0.15rem 0.48rem;
    font-size: 0.78rem;
    font-weight: 700;
    line-height: 1.2;
}

.home-news-badge.news {
    background: #3479d0;
    color: #fff;
}

.home-news-badge.notice {
    background: #d59b2f;
    color: #fff;
}

.home-news-title {
    margin: 0.45rem 0 0;
    color: #2f384d;
    font-size: 0.95rem;
    line-height: 1.45;
}

.home-news-empty {
    padding: 1.2rem 0.5rem;
    color: #5c667b;
    font-weight: 600;
}

.home-news-panel.news-collapsed {
    min-height: auto;
}

.home-news-panel.news-collapsed .home-news-header {
    border-bottom: 0;
}

.home-news-panel.news-collapsed .home-news-body {
    display: none;
}

.hero-split-row.news-hidden #heroNewsCol {
    display: none;
}

.hero-split-row.news-hidden #heroSliderCol {
    width: 100%;
    flex: 0 0 100%;
    max-width: 100%;
}

.home-interest-note {
    background: #eef4fc;
    border-top: 1px solid #d5e3f5;
    border-bottom: 1px solid #d5e3f5;
}

.home-interest-note p {
    font-weight: 600;
    color: #1d4f91;
}

.home-feature-strip {
    background: linear-gradient(90deg, #153d75 0%, #1d4f91 50%, #2a66b1 100%);
}

.home-feature-link {
    display: block;
    color: inherit;
    text-decoration: none;
    height: 100%;
}

.home-feature-card {
    color: #fff;
    padding: 1.5rem;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.06);
    position: relative;
    overflow: hidden;
    transition: transform 0.28s ease, box-shadow 0.28s ease, background-color 0.28s ease, border-color 0.28s ease;
    min-height: 252px;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.home-feature-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: -120%;
    width: 70%;
    height: 100%;
    background: linear-gradient(110deg, rgba(255, 255, 255, 0), rgba(255, 255, 255, 0.18), rgba(255, 255, 255, 0));
    transition: left 0.45s ease;
}

.home-feature-link:hover .home-feature-card {
    transform: translateY(-8px);
    box-shadow: 0 14px 28px rgba(16, 47, 96, 0.32);
    background: rgba(255, 255, 255, 0.11);
    border-color: rgba(255, 255, 255, 0.26);
}

.home-feature-link:hover .home-feature-card::before {
    left: 140%;
}

.home-feature-link:active .home-feature-card {
    transform: translateY(-3px) scale(0.99);
}

.home-feature-link:focus-visible .home-feature-card {
    outline: 2px solid #ffd166;
    outline-offset: 2px;
}

.home-feature-card i {
    font-size: 1.9rem;
    color: #ffd166;
    transition: transform 0.28s ease, color 0.28s ease;
}

.home-feature-link:hover .home-feature-card i {
    transform: translateY(-2px) scale(1.08);
    color: #ffe08a;
}

.home-feature-card h3 {
    margin-top: 0.8rem;
    margin-bottom: 0.65rem;
    color: #fff;
    font-size: 1.3rem;
}

.home-feature-card p {
    margin-bottom: 0;
    color: rgba(255, 255, 255, 0.95);
}

.home-about-logo {
    width: 280px;
    max-width: 100%;
    object-fit: contain;
    background: transparent;
    mix-blend-mode: multiply;
}

.home-apply-section {
    background: #fff;
}

.home-apply-image {
    width: 100%;
    height: 100%;
    min-height: 420px;
    object-fit: cover;
    display: block;
}

.home-apply-content {
    background: linear-gradient(135deg, rgba(122, 10, 28, 0.94), rgba(141, 14, 35, 0.92));
    color: #fff;
    height: 100%;
    padding: 3rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.home-apply-content h2,
.home-apply-content h3 {
    color: #fff;
}

.home-apply-content h2 {
    font-size: 2rem;
    margin-bottom: 0.85rem;
}

.home-apply-content h3 {
    font-size: 1.4rem;
    margin-bottom: 1rem;
    font-family: var(--font-primary);
}

.home-apply-content p {
    font-size: 1.15rem;
    line-height: 1.7;
    margin-bottom: 1.4rem;
}

.home-official-note {
    background: #f7f9fc;
}

.home-official-text h3 {
    margin-bottom: 0.8rem;
}

.home-official-text p {
    font-size: 1.1rem;
    line-height: 1.7;
    color: #223047;
}

.home-official-side {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.home-official-image {
    width: 100%;
    height: 260px;
    object-fit: cover;
    border-radius: 10px;
    border: 1px solid #d9e2ef;
}

.home-official-contact h4 {
    margin-bottom: 0.65rem;
}

.home-principal-image {
    width: 100%;
    max-width: 240px;
    height: 240px;
    object-fit: cover;
    border-radius: 10px;
    border: 1px solid #d7dee9;
}

.home-library-image {
    width: 100%;
    max-width: 320px;
    height: 220px;
    object-fit: cover;
    border-radius: 12px;
    border: 1px solid #d7dee9;
}

.home-tabs-section {
    background: #f2f4f7;
}

.home-tabs-image-wrap {
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid #d7dee9;
    background: #fff;
}

.home-tabs-image {
    width: 100%;
    height: 100%;
    min-height: 520px;
    object-fit: cover;
    display: block;
}

.home-tabs-content {
    background: #fff;
    border: 1px solid #d7dee9;
    border-radius: 10px;
    padding: 1.25rem;
}

.home-tabs-nav {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
    gap: 0.45rem;
    margin-bottom: 1.1rem;
}

.home-tab-btn {
    border: 1px solid #dde3ec;
    background: #f5f7fa;
    color: #5d6675;
    border-radius: 6px;
    font-weight: 700;
    font-size: 0.88rem;
    line-height: 1.25;
    min-height: 72px;
    padding: 0.72rem 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow-wrap: anywhere;
}

.home-tab-btn.active {
    color: #26344a;
    background: #eceff4;
    border-color: #cfd7e3;
}

.home-tab-panel {
    display: none;
}

.home-tab-panel.active {
    display: block;
}

.home-tab-intro {
    color: #2f3a4c;
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 0.95rem;
}

.home-tab-heading {
    margin-bottom: 0.65rem;
    font-size: 1.8rem;
}

.home-tab-points li {
    margin-bottom: 0.35rem;
    color: #1f2a3c;
    font-size: 0.96rem;
}

.home-tab-points li a {
    color: #123767;
    font-weight: 600;
    text-decoration: none;
}

.home-tab-points li a:hover {
    color: #1d4f91;
    text-decoration: underline;
}

.home-tabs-more-link {
    color: #1d4f91;
    font-weight: 700;
    font-size: 1.45rem;
    text-decoration: none;
}

.home-tabs-more-link:hover {
    color: #163d71;
    text-decoration: underline;
}

/* ===========================
   Section Styles
   =========================== */
.section-title {
    font-size: clamp(1.8rem, 3vw, 2.5rem);
    font-weight: 800;
    color: var(--gp-primary);
    margin-bottom: 1rem;
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 60px;
    height: 4px;
    background: var(--gp-secondary);
    border-radius: 2px;
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--gp-gray);
    font-weight: 500;
    max-width: 700px;
    margin: 0 auto 3rem;
}

/* About Section */
.about-section {
    background: var(--gp-light);
}

.info-card {
    background: var(--gp-white);
    border-radius: 16px;
    padding: 2.5rem;
    box-shadow: var(--gp-shadow);
    transition: var(--transition);
    border: 1px solid var(--gp-border);
}

.info-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--gp-shadow-lg);
}

.card-icon-header {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, var(--gp-primary) 0%, var(--gp-primary-light) 100%);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    box-shadow: 0 8px 20px rgba(11, 42, 87, 0.2);
}

.card-icon-header i {
    font-size: 2rem;
    color: var(--gp-white);
}

.card-heading {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--gp-primary);
    margin-bottom: 1.25rem;
}

.card-text {
    font-size: 1rem;
    line-height: 1.8;
    color: var(--gp-dark-gray);
    margin-bottom: 1.5rem;
}

.card-link {
    color: var(--gp-secondary);
    font-weight: 600;
    font-size: 1rem;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    transition: var(--transition-fast);
}

.card-link:hover {
    color: var(--gp-secondary-dark);
    transform: translateX(5px);
}

/* Departments Section */
.departments-section {
    background: var(--gp-light-gray);
}

.department-card {
    background: var(--gp-white);
    border-radius: 16px;
    padding: 2rem;
    box-shadow: var(--gp-shadow);
    transition: var(--transition);
    border: 1px solid var(--gp-border);
}

.department-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--gp-shadow-lg);
    border-color: var(--gp-primary);
}

.dept-badge {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--gp-secondary) 0%, var(--gp-secondary-light) 100%);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.25rem;
}

.dept-badge i {
    font-size: 1.75rem;
    color: var(--gp-white);
}

.dept-name {
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--gp-primary);
    margin-bottom: 1rem;
}

.dept-code {
    margin-bottom: 1rem;
}

.dept-code .badge {
    font-size: 0.85rem;
    padding: 0.5rem 1rem;
    font-weight: 600;
}

.dept-description {
    color: var(--gp-dark-gray);
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

.dept-link {
    color: var(--gp-primary);
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    transition: var(--transition-fast);
}

.dept-link:hover {
    color: var(--gp-secondary);
    transform: translateX(5px);
}

/* Facilities Section */
.facilities-section {
    background: var(--gp-white);
}

.facility-card {
    background: var(--gp-white);
    border: 2px solid var(--gp-border);
    border-radius: 16px;
    padding: 2rem;
    text-align: center;
    transition: var(--transition);
}

.facility-card:hover {
    transform: translateY(-8px);
    border-color: var(--gp-primary);
    box-shadow: var(--gp-shadow-lg);
}

.facility-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #f0f7ff 0%, #e6f2ff 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
}

.facility-icon i {
    font-size: 2.25rem;
    color: var(--gp-primary);
}

.facility-name {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--gp-primary);
    margin-bottom: 1rem;
}

.facility-description {
    color: var(--gp-dark-gray);
    line-height: 1.7;
}

/* Notices Section */
.notices-section {
    background: var(--gp-light);
}

.notice-card {
    background: var(--gp-white);
    border-left: 4px solid var(--gp-secondary);
    border-radius: 12px;
    padding: 2rem;
    box-shadow: var(--gp-shadow);
    transition: var(--transition);
}

.notice-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--gp-shadow-lg);
    border-left-width: 6px;
}

.notice-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.25rem;
}

.notice-header i {
    font-size: 1.5rem;
    color: var(--gp-secondary);
}

.notice-date {
    font-size: 0.875rem;
    color: var(--gp-gray);
    font-weight: 600;
}

.notice-title {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--gp-primary);
    margin-bottom: 1rem;
}

.notice-excerpt {
    color: var(--gp-dark-gray);
    line-height: 1.7;
}

/* CTA Section */
.cta-section {
    background: linear-gradient(135deg, var(--gp-primary-dark) 0%, var(--gp-primary) 100%);
    color: var(--gp-white);
}

.cta-wrapper {
    background: linear-gradient(135deg, var(--gp-primary) 0%, var(--gp-primary-light) 100%);
    border-radius: 20px;
    padding: 3rem;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.cta-title {
    font-size: clamp(1.8rem, 3vw, 2.5rem);
    font-weight: 800;
    color: var(--gp-white);
    margin-bottom: 1rem;
}

.cta-text {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.95);
    margin-bottom: 0;
}

.cta-wrapper .btn-light {
    background: var(--gp-white);
    color: var(--gp-primary);
    border: none;
    border-radius: 10px;
    transition: var(--transition);
}

.cta-wrapper .btn-light:hover {
    background: var(--gp-light);
    transform: translateY(-3px);
    box-shadow: 0 12px 32px rgba(255, 255, 255, 0.3);
}

/* ===========================
   Footer Styles - GEMS Polytechnic Layout
   =========================== */
.site-footer {
    background: linear-gradient(180deg, #0f0f0f 0%, #141414 100%);
    color: #cfcfcf;
    margin-top: 0;
}

.footer-main {
    padding: 4rem 0 2.5rem;
}

/* Footer Section Titles */
.footer-title {
    font-family: var(--font-primary);
    font-size: 1rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    color: var(--gp-white);
    margin-bottom: 0.75rem;
}

/* Red Underline Accent */
.footer-underline {
    width: 40px;
    height: 3px;
    background: var(--gp-secondary);
    margin-bottom: 1.5rem;
}

/* Footer Content */
.footer-content {
    margin-top: 1.5rem;
}

.footer-college-name {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--gp-white);
    margin-bottom: 1rem;
    line-height: 1.4;
}

.footer-address {
    font-size: 0.95rem;
    line-height: 1.7;
    color: #cfcfcf;
    margin-bottom: 1rem;
    display: flex;
    align-items: flex-start;
}

.footer-address i {
    color: var(--gp-secondary);
    margin-top: 3px;
}

.footer-contact-item {
    font-size: 0.95rem;
    margin-bottom: 0.65rem;
    display: flex;
    align-items: center;
}

.footer-contact-item i {
    color: var(--gp-secondary);
    font-size: 0.9rem;
}

.footer-contact-item a {
    color: #cfcfcf;
    text-decoration: none;
    transition: var(--transition-fast);
}

.footer-contact-item a:hover {
    color: var(--gp-white);
    text-decoration: underline;
}

/* Footer Links */
.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
    margin-top: 1.5rem;
}

.footer-links li {
    margin-bottom: 0.65rem;
}

.footer-links a {
    color: #cfcfcf;
    text-decoration: none;
    font-size: 0.95rem;
    transition: var(--transition-fast);
    display: inline-block;
    line-height: 1.6;
}

.footer-links a:hover {
    color: var(--gp-white);
    text-decoration: underline;
    transform: translateX(3px);
}

/* Footer Bottom Bar */
.footer-bottom {
    background: rgba(0, 0, 0, 0.3);
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding: 1.5rem 0;
}

.footer-bottom p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
    margin: 0.5rem 0;
}

/* Back to Top Button - GEMS Style */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: var(--gp-white);
    border: none;
    border-radius: 50%;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background: var(--gp-white);
    transform: translateY(-5px);
    box-shadow: 0 6px 28px rgba(0, 0, 0, 0.35);
}

.back-to-top i {
    font-size: 1.5rem;
    color: var(--gp-secondary);
    transition: var(--transition-fast);
}

.back-to-top:hover i {
    color: var(--gp-secondary-dark);
}

/* ===========================
   Inner Page Shared Design
   =========================== */
.inner-page-hero {
    position: relative;
    overflow: hidden;
    padding: 4.5rem 0 4rem;
    background: linear-gradient(125deg, #0b2a57 0%, #173f78 55%, #1d4f91 100%);
    color: #fff;
}

.inner-page-hero::before,
.inner-page-hero::after {
    content: "";
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
}

.inner-page-hero::before {
    width: 320px;
    height: 320px;
    background: rgba(255, 255, 255, 0.1);
    top: -80px;
    right: -80px;
}

.inner-page-hero::after {
    width: 220px;
    height: 220px;
    background: rgba(255, 255, 255, 0.08);
    bottom: -90px;
    left: -40px;
}

.inner-page-kicker {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.82rem;
    letter-spacing: 1.2px;
    text-transform: uppercase;
    font-weight: 700;
    margin-bottom: 0.9rem;
    color: rgba(255, 255, 255, 0.92);
}

.inner-page-title {
    color: #fff;
    font-size: clamp(2rem, 4vw, 3rem);
    margin-bottom: 0.9rem;
}

.inner-page-subtitle {
    max-width: 780px;
    margin: 0;
    color: rgba(255, 255, 255, 0.92);
    font-size: 1.04rem;
    line-height: 1.8;
}

.section-shell {
    padding: 4.2rem 0;
}

.section-shell.alt {
    background: #f6f9fd;
}

.department-detail-shell {
    background: #f4f7fc;
    padding-bottom: 5rem;
}

.department-detail-shell .row > [class*="col-"] {
    display: flex;
    flex-direction: column;
}

.department-detail-shell .content-card {
    height: auto;
}

.department-side-col .department-contact-card {
    flex: 0 0 auto;
    min-height: 0;
}

.department-topic-nav .nav-link {
    border-radius: 10px;
    color: #123767;
    font-weight: 600;
    margin-bottom: 0.35rem;
    border: 1px solid #e2e8f2;
    background: #ffffff;
    padding: 0.62rem 0.75rem;
}

.department-topic-nav .nav-link:last-child {
    margin-bottom: 0;
}

.department-topic-nav .nav-link:hover {
    color: #1d4f91;
    border-color: #d6deea;
    background: #f7faff;
}

.department-topic-nav .nav-link.active,
.department-topic-nav .show > .nav-link {
    color: #fff;
    background: #1d4f91;
    border-color: #1d4f91;
}

.department-topic-content .content-card {
    min-height: 100%;
}

.student-corner-shell {
    background: #f4f7fc;
    padding-bottom: 4rem;
}

.student-corner-side .content-card {
    position: sticky;
    top: 92px;
}

.student-topic-nav .nav-link {
    border-radius: 10px;
    color: #123767;
    font-weight: 600;
    margin-bottom: 0.35rem;
    border: 1px solid #e2e8f2;
    background: #ffffff;
    padding: 0.62rem 0.75rem;
}

.student-topic-nav .nav-link:last-child {
    margin-bottom: 0;
}

.student-topic-nav .nav-link:hover {
    color: #1d4f91;
    border-color: #d6deea;
    background: #f7faff;
}

.student-topic-nav .nav-link.active,
.student-topic-nav .show > .nav-link {
    color: #fff;
    background: #1d4f91;
    border-color: #1d4f91;
}

.student-topic-content .content-card {
    min-height: 470px;
}

.placement-shell {
    background: #f4f7fc;
    padding-bottom: 4.2rem;
}

.placement-side-card {
    position: sticky;
    top: 92px;
}

.placement-topic-nav .nav-link {
    border-radius: 10px;
    color: #123767;
    font-weight: 600;
    margin-bottom: 0.35rem;
    border: 1px solid #e2e8f2;
    background: #ffffff;
    padding: 0.62rem 0.75rem;
}

.placement-topic-nav .nav-link:last-child {
    margin-bottom: 0;
}

.placement-topic-nav .nav-link:hover {
    color: #1d4f91;
    border-color: #d6deea;
    background: #f7faff;
}

.placement-topic-nav .nav-link.active,
.placement-topic-nav .show > .nav-link {
    color: #fff;
    background: #1d4f91;
    border-color: #1d4f91;
}

.placement-topic-content .content-card {
    min-height: 520px;
}

.alumni-shell {
    background: #f4f7fc;
    padding-bottom: 4.2rem;
}

.alumni-filter-bar {
    background: #ffffff;
    border: 1px solid #dde5f0;
    border-radius: 14px;
    padding: 1rem 1.1rem;
    margin-bottom: 1.4rem;
    box-shadow: 0 8px 18px rgba(16, 44, 87, 0.08);
}

.alumni-filter-form .form-select {
    min-width: 200px;
}

.alumni-card {
    background: #ffffff;
    border-radius: 16px;
    border: 1px solid #e1e9f3;
    overflow: hidden;
    box-shadow: 0 8px 20px rgba(16, 44, 87, 0.1);
    height: 100%;
}

.alumni-card-media {
    background: linear-gradient(145deg, #eaf1fb, #dbe6f6);
    min-height: 220px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.alumni-card-media img {
    width: 100%;
    height: 220px;
    object-fit: cover;
}

.alumni-card-placeholder {
    font-size: 3rem;
    color: #6f84a6;
}

.alumni-card-body {
    padding: 1.15rem 1.15rem 1.25rem;
}

.alumni-card-body h3 {
    margin-bottom: 0.35rem;
    color: #102c57;
    font-size: 1.15rem;
}

.alumni-role {
    color: #7b0f15;
    font-weight: 600;
}

.alumni-company {
    color: #263f65;
    font-weight: 600;
}

.alumni-meta-list {
    display: grid;
    gap: 0.28rem;
    color: #2f4669;
    font-size: 0.93rem;
}

.alumni-summary {
    margin-top: 0.85rem;
    color: #415a7d;
    font-size: 0.92rem;
    line-height: 1.58;
}

.admission-shell {
    background: #f4f7fc;
    padding-bottom: 4.2rem;
}

.admission-side-card {
    position: sticky;
    top: 92px;
}

.admission-topic-nav .nav-link {
    border-radius: 10px;
    color: #123767;
    font-weight: 600;
    margin-bottom: 0.35rem;
    border: 1px solid #e2e8f2;
    background: #ffffff;
    padding: 0.62rem 0.75rem;
}

.admission-topic-nav .nav-link:last-child {
    margin-bottom: 0;
}

.admission-topic-nav .nav-link:hover {
    color: #1d4f91;
    border-color: #d6deea;
    background: #f7faff;
}

.admission-topic-nav .nav-link.active,
.admission-topic-nav .show > .nav-link {
    color: #fff;
    background: #1d4f91;
    border-color: #1d4f91;
}

.admission-topic-content .content-card {
    min-height: 520px;
}

.facilities-shell {
    background: #f4f7fc;
    padding-bottom: 4.2rem;
}

.facilities-side-card {
    position: sticky;
    top: 92px;
}

.facilities-topic-nav .nav-link {
    border-radius: 10px;
    color: #123767;
    font-weight: 600;
    margin-bottom: 0.35rem;
    border: 1px solid #e2e8f2;
    background: #ffffff;
    padding: 0.62rem 0.75rem;
}

.facilities-topic-nav .nav-link:last-child {
    margin-bottom: 0;
}

.facilities-topic-nav .nav-link:hover {
    color: #1d4f91;
    border-color: #d6deea;
    background: #f7faff;
}

.facilities-topic-nav .nav-link.active,
.facilities-topic-nav .show > .nav-link {
    color: #fff;
    background: #1d4f91;
    border-color: #1d4f91;
}

.facilities-topic-content .content-card {
    min-height: 350px;
}

.quality-side-card {
    position: sticky;
    top: 92px;
}

.quality-topic-nav .nav-link {
    border-radius: 10px;
    color: #123767;
    font-weight: 600;
    margin-bottom: 0.35rem;
    border: 1px solid #e2e8f2;
    background: #ffffff;
    padding: 0.62rem 0.75rem;
}

.quality-topic-nav .nav-link:last-child {
    margin-bottom: 0;
}

.quality-topic-nav .nav-link:hover {
    color: #1d4f91;
    border-color: #d6deea;
    background: #f7faff;
}

.quality-topic-nav .nav-link.active,
.quality-topic-nav .show > .nav-link {
    color: #fff;
    background: #1d4f91;
    border-color: #1d4f91;
}

.quality-topic-content .content-card,
.quality-topic-content .table-card {
    margin-bottom: 0;
}

.placement-officer-card {
    display: grid;
    grid-template-columns: 200px 1fr;
    gap: 1rem;
    align-items: stretch;
    border: 1px solid #dce5f2;
    border-radius: 14px;
    overflow: hidden;
    background: #fff;
}

.placement-officer-media {
    background: #f3f7fd;
    min-height: 220px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.placement-officer-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.placement-officer-placeholder {
    width: 88px;
    height: 88px;
    border-radius: 50%;
    background: #dbe6f7;
    color: #123767;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
}

.placement-officer-info {
    padding: 1rem 1rem 1rem 0;
}

.placement-officer-info h4 {
    font-size: 1.15rem;
    margin-bottom: 0.65rem;
}

.student-form-title {
    font-size: 1.15rem;
    margin-bottom: 0.9rem;
}

.student-report-form .form-label {
    font-weight: 600;
    color: #123767;
}

.student-report-form .form-control {
    min-height: 46px;
    border-color: #d5ddea;
}

.student-report-form textarea.form-control {
    min-height: 140px;
}

.student-report-form .form-control:focus {
    border-color: var(--gp-primary);
    box-shadow: 0 0 0 0.2rem rgba(11, 42, 87, 0.12);
}

.inner-page-banner-image {
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--gp-shadow-lg);
    border: 1px solid #d9e2ef;
    margin-top: -2.6rem;
    position: relative;
    z-index: 3;
}

.inner-page-banner-image img {
    width: 100%;
    height: 320px;
    object-fit: cover;
    display: block;
}

.content-card {
    background: #fff;
    border: 1px solid var(--gp-border);
    border-radius: 16px;
    box-shadow: var(--gp-shadow);
    padding: 1.8rem;
    height: 100%;
}

.content-card h3 {
    font-size: 1.3rem;
    margin-bottom: 0.85rem;
}

.content-card p:last-child {
    margin-bottom: 0;
}

.page-link-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.page-link-list li {
    padding: 0.45rem 0;
    border-bottom: 1px solid #e6edf6;
}

.page-link-list li:last-child {
    border-bottom: 0;
}

.page-link-list a {
    color: #10376a;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
}

.page-link-list a:hover {
    color: #7b0f15;
}

.about-impact-shell {
    background: linear-gradient(180deg, #f4f7fc 0%, #eef3fb 100%);
}

.about-impact-wrap {
    background: #ffffff;
    border: 1px solid #d9e2ef;
    border-radius: 18px;
    box-shadow: var(--gp-shadow);
    padding: 2rem;
}

.about-impact-title {
    font-size: clamp(1.8rem, 3vw, 2.4rem);
    margin-bottom: 0.8rem;
}

.about-impact-text {
    color: #32445f;
    line-height: 1.8;
    margin-bottom: 1.2rem;
}

.about-impact-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.9rem;
}

.about-impact-card {
    background: #f8fbff;
    border: 1px solid #dce6f3;
    border-radius: 12px;
    padding: 1rem;
}

.about-impact-card i {
    font-size: 1.35rem;
    color: #8d1224;
}

.about-impact-card h3 {
    margin-top: 0.5rem;
    margin-bottom: 0.35rem;
    font-size: 1.05rem;
}

.about-impact-card p {
    margin-bottom: 0;
    color: #42536c;
    font-size: 0.95rem;
}

.about-link-panel {
    background: linear-gradient(140deg, #0f2f60 0%, #183f79 100%);
    border: 1px solid #1f4b89;
    border-radius: 14px;
    padding: 1.25rem;
}

.about-link-panel h3 {
    color: #ffffff;
    margin-bottom: 0.8rem;
}

.about-link-panel .page-link-list li {
    border-bottom-color: rgba(255, 255, 255, 0.2);
}

.about-link-panel .page-link-list a {
    color: #e7f0ff;
}

.about-link-panel .page-link-list a:hover {
    color: #ffffff;
}

.contact-map-card {
    border-radius: 16px;
}

.contact-map-embed {
    min-height: 430px;
    width: 100%;
}

.contact-map-embed iframe {
    display: block;
    width: 100% !important;
    min-height: 430px;
    border: 0;
}

.affiliation-image {
    width: 100%;
    height: 210px;
    object-fit: cover;
    border-radius: 12px;
    border: 1px solid #d9e2ef;
}

.affiliation-image-placeholder {
    width: 100%;
    height: 210px;
    border-radius: 12px;
    border: 1px dashed #c4cfde;
    background: #f6f9fd;
    color: #5d6777;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    text-align: center;
    padding: 1rem;
}

.affiliation-image-placeholder i {
    font-size: 1.6rem;
}

.icon-tile {
    width: 62px;
    height: 62px;
    border-radius: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #f0f7ff 0%, #e1ecfb 100%);
    color: var(--gp-primary);
    font-size: 1.6rem;
    margin-bottom: 1rem;
}

.mini-stat {
    background: #fff;
    border: 1px solid var(--gp-border);
    border-radius: 16px;
    box-shadow: var(--gp-shadow-sm);
    padding: 1.2rem;
    text-align: center;
    height: 100%;
}

.mini-stat .value {
    font-size: 2rem;
    line-height: 1.1;
    color: var(--gp-secondary);
    font-weight: 800;
}

.mini-stat .label {
    color: var(--gp-dark-gray);
    font-weight: 600;
    margin: 0.25rem 0 0;
}

.gp-form-card {
    background: #fff;
    border: 1px solid var(--gp-border);
    border-radius: 16px;
    box-shadow: var(--gp-shadow);
    padding: 2rem;
}

.gp-form-card .form-label {
    font-weight: 600;
    color: var(--gp-primary);
}

.gp-form-card .form-control,
.gp-form-card .form-select {
    border-color: #d5ddea;
    min-height: 46px;
}

.gp-form-card .form-control:focus,
.gp-form-card .form-select:focus {
    border-color: var(--gp-primary);
    box-shadow: 0 0 0 0.2rem rgba(11, 42, 87, 0.12);
}

.table-card {
    background: #fff;
    border: 1px solid var(--gp-border);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--gp-shadow);
}

.table-card .table thead th {
    background: #f2f6fb;
    color: var(--gp-primary);
    border-bottom: 1px solid #dfe8f4;
}

.table-card .table td,
.table-card .table th {
    padding: 0.95rem 1rem;
    vertical-align: middle;
}

.anchor-offset {
    display: block;
    position: relative;
    top: -100px;
    visibility: hidden;
}

.reveal-on-scroll {
    opacity: 0;
    transform: translateY(22px);
    transition: opacity 0.55s ease, transform 0.55s ease;
}

.reveal-on-scroll.in-view {
    opacity: 1;
    transform: translateY(0);
}

@media (max-width: 991.98px) {
    .inner-page-hero {
        padding: 3.25rem 0;
    }

    .inner-page-banner-image {
        margin-top: -1.4rem;
    }

    .inner-page-banner-image img {
        height: 220px;
    }

    .section-shell {
        padding: 3.1rem 0;
    }

    .department-detail-shell {
        padding-bottom: 3.2rem;
    }

    .department-topic-nav .nav-link {
        padding: 0.7rem 0.75rem;
        font-size: 0.95rem;
    }

    .student-corner-shell {
        padding-bottom: 3rem;
    }

    .placement-shell {
        padding-bottom: 3rem;
    }

    .admission-shell {
        padding-bottom: 3rem;
    }

    .facilities-shell {
        padding-bottom: 3rem;
    }

    .student-corner-side .content-card {
        position: static;
    }

    .placement-side-card {
        position: static;
    }

    .admission-side-card {
        position: static;
    }

    .facilities-side-card {
        position: static;
    }

    .quality-side-card {
        position: static;
    }

    .student-topic-nav .nav-link {
        padding: 0.7rem 0.75rem;
        font-size: 0.95rem;
    }

    .student-topic-content .content-card {
        min-height: 0;
    }

    .placement-topic-content .content-card {
        min-height: 0;
    }

    .alumni-filter-form .form-select {
        min-width: 0;
    }

    .admission-topic-content .content-card {
        min-height: 0;
    }

    .facilities-topic-content .content-card {
        min-height: 0;
    }

    .placement-officer-card {
        grid-template-columns: 1fr;
    }

    .placement-officer-media {
        min-height: 200px;
    }

    .placement-officer-info {
        padding: 1rem;
    }

    .about-impact-wrap {
        padding: 1.25rem;
    }

    .about-impact-grid {
        grid-template-columns: 1fr;
    }
}

/* ===========================
   Responsive Design
   =========================== */
@media (max-width: 991.98px) {
    .container-fluid.px-lg-5 {
        padding-left: 1rem !important;
        padding-right: 1rem !important;
    }

    .gp-header {
        min-height: auto;
    }

    .gp-brand-wrap {
        gap: 0.65rem;
    }

    .gp-brand-logo {
        width: 64px;
        height: 64px;
    }

    .gp-brand-title {
        font-size: clamp(1.28rem, 4.8vw, 1.8rem);
        line-height: 1.2;
    }

    .gp-brand-tagline {
        font-size: 0.8rem;
    }

    .announcement-strip {
        white-space: normal;
    }

    .announcement-content {
        flex-wrap: wrap;
        text-align: center;
        padding: 0 0.85rem;
    }

    .announcement-text {
        line-height: 1.35;
    }

    .brand-mark {
        width: 60px;
        height: 60px;
        font-size: 1.25rem;
    }
    
    .brand-title {
        font-size: 1.25rem;
    }
    
    .brand-tagline {
        font-size: 0.85rem;
    }
    
    .accreditation-badge {
        flex-direction: column;
        text-align: center;
        padding: 0.75rem 1rem;
    }
    
    .badge-content {
        text-align: center;
    }
    
    .main-navbar .nav-link {
        padding: 0.75rem 1rem;
        border-radius: 0;
        border-bottom: 1px solid var(--gp-border);
    }
    
    .main-navbar .nav-link::after {
        display: none;
    }
    
    .main-navbar .dropdown-menu {
        border-radius: 0;
        box-shadow: none;
        border: none;
        border-top: 1px solid var(--gp-border);
        margin: 0;
        padding: 0;
    }
    
    .main-navbar .dropdown-item {
        border-bottom: 1px solid var(--gp-border);
        padding-left: 2rem;
    }
    
    .hero-section,
    .hero-slider-shell,
    .hero-slider,
    .hero-slider img,
    .home-news-panel {
        min-height: 340px;
    }

    .hero-content {
        min-height: 340px;
        padding: 1.45rem;
    }

    .home-news-panel {
        border-left: 0;
        border-top: 1px solid #d7dfeb;
    }

    .home-news-body {
        max-height: 320px;
    }

    .table-card,
    .table-responsive {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .table-card .table {
        min-width: 640px;
    }

    .content-card,
    .home-tabs-content,
    .gp-form-card {
        padding: 1rem;
    }
    
    .info-card,
    .department-card,
    .facility-card,
    .notice-card {
        padding: 1.5rem;
    }
    
    .cta-wrapper {
        padding: 2rem;
        text-align: center;
    }
    
    .cta-wrapper .btn-light {
        margin-top: 1.5rem;
        width: 100%;
    }

    .home-tabs-image {
        min-height: 300px;
    }

    .home-tabs-nav {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .home-tab-heading {
        font-size: 1.55rem;
    }

    .home-tabs-more-link {
        font-size: 1.2rem;
    }

    /* Prevent any section cutting on mobile */
    body,
    .gp-header,
    .gp-navbar,
    .section-shell,
    .content-card,
    .table-card {
        max-width: 100%;
        overflow-x: hidden;
    }

    img,
    video,
    iframe {
        max-width: 100%;
        height: auto;
    }

    .row > [class*="col-"] {
        min-width: 0;
    }

    .gp-navbar .navbar-collapse {
        max-height: 78vh;
        overflow-y: auto;
    }

    .gp-navbar .nav-link {
        white-space: normal;
        line-height: 1.35;
    }

    .content-card h3,
    .table-card h3 {
        word-break: break-word;
    }
}

@media (max-width: 575.98px) {
    .container-fluid.px-lg-5 {
        padding-left: 0.8rem !important;
        padding-right: 0.8rem !important;
    }

    .top-contact-bar {
        font-size: 0.8rem;
    }

    .gp-topbar-left,
    .gp-topbar-right {
        gap: 0.45rem;
    }

    .gp-topbar-link,
    .gp-quick-link {
        font-size: 0.84rem;
    }

    .gp-brand-wrap {
        align-items: center;
        gap: 0.65rem;
    }

    .gp-brand-logo {
        width: 62px;
        height: 62px;
    }

    .gp-brand-title {
        font-size: 1.05rem;
        line-height: 1.15;
    }

    .gp-brand-tagline {
        font-size: 0.72rem;
        line-height: 1.35;
    }

    .gp-navbar .nav-link {
        font-size: 0.92rem;
        padding: 0.72rem 0.3rem;
    }

    .gp-navbar .dropdown-item {
        font-size: 0.88rem;
    }

    .quick-links {
        justify-content: center !important;
    }
    
    .announcement-text {
        font-size: 0.85rem;
    }

    .hero-section,
    .hero-slider-shell,
    .hero-slider,
    .hero-slider img,
    .home-news-panel {
        min-height: 260px;
    }

    .hero-content {
        min-height: 260px;
        padding: 1.2rem;
    }

    .hero-title {
        font-size: clamp(1.65rem, 8.7vw, 2.2rem);
        margin-bottom: 0.8rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .home-news-header h2 {
        font-size: 1.18rem;
    }

    .home-news-body {
        max-height: 240px;
        padding: 0.2rem 0.6rem 0.6rem;
    }

    .home-news-title {
        font-size: 0.95rem;
    }

    .home-feature-card {
        min-height: 0;
        padding: 1.15rem;
    }
    
    .section-title {
        font-size: 1.75rem;
    }
    
    .section-subtitle {
        font-size: 1rem;
    }
    
    /* Footer Responsive */
    .footer-main {
        padding: 3rem 0 2rem;
    }
    
    .footer-title {
        font-size: 0.95rem;
        margin-top: 1.5rem;
    }
    
    .back-to-top {
        bottom: 20px;
        right: 20px;
        width: 45px;
        height: 45px;
    }
    
    .back-to-top i {
        font-size: 1.3rem;
    }

    .home-tabs-nav {
        grid-template-columns: 1fr;
    }

    .hero-split-row {
        border-radius: 10px;
        overflow: hidden;
    }

    .home-news-item {
        padding: 0.6rem 0.4rem;
    }

    .table-card .table {
        min-width: 560px;
    }

    .inner-page-title,
    .hero-title {
        word-break: break-word;
    }
}

/* ===========================
   Utility Classes
   =========================== */
.text-primary {
    color: var(--gp-primary) !important;
}

.bg-primary {
    background-color: var(--gp-primary) !important;
}

.btn-primary {
    background-color: var(--gp-secondary);
    border-color: var(--gp-secondary);
}

.btn-primary:hover {
    background-color: var(--gp-secondary-dark);
    border-color: var(--gp-secondary-dark);
}

/* Smooth Scroll */
html {
    scroll-behavior: smooth;
}

/* Selection */
::selection {
    background: var(--gp-primary);
    color: var(--gp-white);
}

/* Focus Outline */
*:focus-visible {
    outline: 2px solid var(--gp-primary);
    outline-offset: 2px;
}
