/* ========================================================================
   SGBIT – Main Theme CSS
   S.G. Balekundri Institute of Technology, Belagavi
   ======================================================================== */

/* ── CSS Variables ──────────────────────────────────────────────────────── */
:root {
    --sgbit-primary:   #1B3A5C;   /* Steel Blue Dark */
    --sgbit-accent:    #E8610A;   /* Orange */
    --sgbit-gold:      #E8610A;   /* Orange (unified) */
    --sgbit-light:     #f0f4f8;
    --sgbit-surface:   #ffffff;
    --sgbit-border:    #d0dae7;
    --sgbit-text:      #1a2b3c;
    --sgbit-muted:     #5f7a96;
    --sgbit-radius:    8px;
    --sgbit-shadow:    0 4px 24px rgba(27, 58, 92, 0.10);
    --sgbit-shadow-lg: 0 12px 40px rgba(27, 58, 92, 0.16);
    --sgbit-transition: all 0.28s cubic-bezier(0.4, 0, 0.2, 1);
    /* Aliases → unified theme vars */
    --sgb-primary: #1B3A5C;
    --sgb-accent:  #E8610A;
    --sgb-gold:    #E8610A;
}

/* ── Body & Typography ──────────────────────────────────────────────────── */
.sgbit-body {
    font-family: 'Inter', 'Segoe UI', Arial, sans-serif;
    color: var(--sgbit-text);
    background: #fff;
    -webkit-font-smoothing: antialiased;
}

/* ── Back to Top ────────────────────────────────────────────────────────── */
.sgbit-back-to-top {
    position: fixed;
    bottom: 28px;
    right: 24px;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--sgbit-accent);
    color: #fff;
    display: grid;
    place-items: center;
    font-size: 16px;
    z-index: 9999;
    opacity: 0;
    pointer-events: none;
    transition: var(--sgbit-transition);
    box-shadow: var(--sgbit-shadow);
}

.sgbit-back-to-top.visible {
    opacity: 1;
    pointer-events: auto;
}

.sgbit-back-to-top:hover {
    background: var(--sgbit-primary);
    color: #fff;
}

/* ── Breadcrumb Bar ─────────────────────────────────────────────────────── */
.sgbit-breadcrumb-bar {
    background: var(--sgbit-light);
    border-bottom: 1px solid var(--sgbit-border);
    padding: 10px 0;
}

.sgbit-breadcrumb {
    display: flex;
    align-items: center;
    gap: 6px;
    list-style: none;
    margin: 0;
    padding: 0;
    font-size: 13px;
    color: var(--sgbit-muted);
    flex-wrap: wrap;
}

.sgbit-breadcrumb li + li::before {
    content: "›";
    margin-right: 6px;
    color: var(--sgbit-muted);
}

.sgbit-breadcrumb a {
    color: var(--sgbit-accent);
}

.sgbit-breadcrumb .active {
    color: var(--sgbit-text);
    font-weight: 600;
}

/* ── Page Hero Banner — full styles in page-hero.blade.php component ────── */
/* Legacy fallback (component inlines complete animated styles) */
.sgbit-page-hero {
    background: linear-gradient(135deg, #020c18 0%, #031525 35%, #05233b 70%, #0a3a5c 100%);
    color: #fff;
    padding: 62px 0 56px;
    position: relative;
    overflow: hidden;
    border-bottom: 3px solid rgba(224,169,8,.5);
}
.sgbit-page-hero h1 {
    font-size: 36px;
    font-weight: 900;
    margin: 0 0 10px;
    font-family: 'Poppins', sans-serif;
    letter-spacing: -.02em;
    text-shadow: 0 2px 16px rgba(0,0,0,.35);
}
.sgbit-page-hero p {
    font-size: 16px;
    opacity: 0.82;
    margin: 0;
    line-height: 1.7;
}

/* ── Section Headings ───────────────────────────────────────────────────── */
.sgbit-section {
    padding: 64px 0;
}

.sgbit-section-head {
    margin-bottom: 40px;
}

.sgbit-section-label {
    display: inline-block;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--sgbit-accent);
    margin-bottom: 10px;
}

.sgbit-section-head h2 {
    font-size: 34px;
    font-weight: 800;
    color: var(--sgbit-primary);
    margin: 0 0 12px;
    font-family: 'Poppins', sans-serif;
    line-height: 1.2;
}

.sgbit-section-head p {
    font-size: 16px;
    color: var(--sgbit-muted);
    max-width: 680px;
}

.sgbit-section-head.text-center p {
    margin-left: auto;
    margin-right: auto;
}

.sgbit-divider {
    width: 60px;
    height: 4px;
    background: linear-gradient(to right, var(--sgbit-accent), var(--sgbit-gold));
    border-radius: 2px;
    margin: 12px 0 16px;
}

.sgbit-section-head.text-center .sgbit-divider {
    margin-left: auto;
    margin-right: auto;
}

/* ── Buttons ────────────────────────────────────────────────────────────── */
.sgbit-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 26px;
    border-radius: var(--sgbit-radius);
    font-weight: 700;
    font-size: 14px;
    text-decoration: none;
    transition: var(--sgbit-transition);
    cursor: pointer;
    border: 2px solid transparent;
}

.sgbit-btn-primary {
    background: var(--sgbit-accent);
    color: #fff;
    border-color: var(--sgbit-accent);
}

.sgbit-btn-primary:hover {
    background: var(--sgbit-primary);
    border-color: var(--sgbit-primary);
    color: #fff;
    transform: translateY(-1px);
    box-shadow: var(--sgbit-shadow);
}

.sgbit-btn-outline {
    background: transparent;
    color: var(--sgbit-primary);
    border-color: var(--sgbit-primary);
}

.sgbit-btn-outline:hover {
    background: var(--sgbit-primary);
    color: #fff;
}

.sgbit-btn-gold {
    background: var(--sgbit-gold);
    color: #fff;
    border-color: var(--sgbit-gold);
}

.sgbit-btn-gold:hover {
    background: #d45800;
    border-color: #d45800;
    color: #fff;
}

/* ── Cards ──────────────────────────────────────────────────────────────── */
.sgbit-card {
    background: var(--sgbit-surface);
    border: 1px solid var(--sgbit-border);
    border-radius: var(--sgbit-radius);
    overflow: hidden;
    transition: var(--sgbit-transition);
    height: 100%;
}

.sgbit-card:hover {
    box-shadow: var(--sgbit-shadow-lg);
    transform: translateY(-3px);
    border-color: var(--sgbit-accent);
}

.sgbit-card-thumb {
    height: 200px;
    background: var(--sgbit-light);
    overflow: hidden;
    position: relative;
}

.sgbit-card-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.sgbit-card:hover .sgbit-card-thumb img {
    transform: scale(1.06);
}

.sgbit-card-body {
    padding: 20px;
}

.sgbit-card-body h3 {
    font-size: 18px;
    font-weight: 700;
    color: var(--sgbit-primary);
    margin: 0 0 8px;
}

.sgbit-card-body p {
    font-size: 14px;
    color: var(--sgbit-muted);
    margin: 0 0 14px;
    line-height: 1.6;
}

.sgbit-card-tag {
    display: inline-block;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--sgbit-accent);
    margin-bottom: 8px;
}

/* ── Stats Counter Row ──────────────────────────────────────────────────── */
.sgbit-stats-section {
    background: linear-gradient(135deg, var(--sgbit-primary), #0d5580);
    padding: 64px 0;
    color: #fff;
}

.sgbit-stat-item {
    text-align: center;
    padding: 24px 16px;
}

.sgbit-stat-icon {
    font-size: 40px;
    margin-bottom: 12px;
    color: var(--sgbit-gold);
}

.sgbit-stat-value {
    font-size: 52px;
    font-weight: 800;
    font-family: 'Poppins', sans-serif;
    line-height: 1;
    margin-bottom: 6px;
    color: #fff;
}

.sgbit-stat-label {
    font-size: 14px;
    font-weight: 600;
    opacity: 0.85;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* ── Department Cards ───────────────────────────────────────────────────── */
.sgbit-dept-card {
    background: #fff;
    border: 1px solid var(--sgbit-border);
    border-radius: var(--sgbit-radius);
    padding: 28px 24px;
    text-align: center;
    transition: var(--sgbit-transition);
    height: 100%;
    position: relative;
    overflow: hidden;
}

.sgbit-dept-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(to right, var(--sgbit-accent), var(--sgbit-gold));
}

.sgbit-dept-card:hover {
    box-shadow: var(--sgbit-shadow-lg);
    transform: translateY(-4px);
}

.sgbit-dept-icon {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background: var(--sgbit-light);
    display: grid;
    place-items: center;
    margin: 0 auto 16px;
    font-size: 28px;
    color: var(--sgbit-accent);
    border: 2px solid var(--sgbit-border);
}

.sgbit-dept-card h3 {
    font-size: 18px;
    font-weight: 700;
    color: var(--sgbit-primary);
    margin-bottom: 8px;
}

.sgbit-dept-card p {
    font-size: 13px;
    color: var(--sgbit-muted);
    margin-bottom: 16px;
    line-height: 1.5;
}

.sgbit-dept-meta {
    display: flex;
    justify-content: center;
    gap: 16px;
    font-size: 12px;
    color: var(--sgbit-muted);
    flex-wrap: wrap;
    margin-bottom: 16px;
}

.sgbit-dept-meta span {
    display: flex;
    align-items: center;
    gap: 4px;
}

/* ── Department Grid Nav (new) ──────────────────────────────────────────── */
@keyframes deptNavIn {
    from { opacity: 0; transform: translateY(10px) scale(0.96); }
    to   { opacity: 1; transform: translateY(0)    scale(1); }
}
@keyframes deptPageIn {
    from { opacity: 0; transform: translateY(20px); }
    to   { opacity: 1; transform: translateY(0); }
}
@keyframes newsPulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(242,108,0,.45); }
    50%       { box-shadow: 0 0 0 6px rgba(242,108,0,0); }
}

/* ── Department Hero Header ───────────────────────────────────────────────── */
@keyframes deptHeaderShimmer {
    0%   { background-position: -200% 0; }
    100% { background-position:  200% 0; }
}
@keyframes deptStatCount {
    from { opacity: 0; transform: translateY(8px) scale(.9); }
    to   { opacity: 1; transform: translateY(0) scale(1); }
}

.dept-hero-header {
    position: relative;
    background: linear-gradient(135deg, #04192d 0%, #0a2e56 50%, #1148a0 100%);
    border-radius: 14px;
    padding: 18px 24px 16px;
    margin-bottom: 10px;
    overflow: hidden;
    box-shadow: 0 6px 28px rgba(5,35,59,.26);
}
.dept-hero-header::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; height: 3px;
    background: linear-gradient(90deg, #f26c00 0%, #ffab40 50%, #f26c00 100%);
    background-size: 200% 100%;
    animation: deptHeaderShimmer 3s linear infinite;
}
.dept-hero-header::after {
    content: '';
    position: absolute; inset: 0;
    background:
        radial-gradient(ellipse at 10% 60%, rgba(26,86,164,.30) 0%, transparent 55%),
        radial-gradient(ellipse at 90% 15%, rgba(242,108,0,.14) 0%, transparent 50%);
    pointer-events: none;
}
.dept-hero-inner {
    position: relative; z-index: 1;
    display: flex; align-items: center;
    justify-content: space-between; gap: 16px;
}
.dept-hero-left { min-width: 0; flex: 1; }
.dept-hero-breadcrumb {
    display: flex; align-items: center; gap: 5px;
    font-size: 11px; color: rgba(255,255,255,.50);
    margin-bottom: 5px; flex-wrap: wrap;
}
.dept-hero-breadcrumb a {
    color: rgba(255,255,255,.50); text-decoration: none; transition: color .2s;
}
.dept-hero-breadcrumb a:hover { color: #f26c00; }
.dept-hero-breadcrumb .bc-sep { font-size: 8px; color: rgba(255,255,255,.28); }
.dept-hero-breadcrumb .bc-cur { color: rgba(255,255,255,.80); font-weight: 600; }
.dept-hero-title {
    font-size: clamp(15px, 2.2vw, 21px);
    font-weight: 800; color: #fff; margin: 0 0 8px;
    line-height: 1.2; letter-spacing: -.3px;
}
.dept-hero-badges {
    display: flex; align-items: center; gap: 6px; flex-wrap: wrap;
}
.dept-badge-abbr {
    background: #f26c00; color: #fff;
    font-size: 10px; font-weight: 800; letter-spacing: .6px;
    text-transform: uppercase; padding: 3px 11px; border-radius: 20px;
}
.dept-badge-info {
    font-size: 10px; font-weight: 600; color: rgba(255,255,255,.70);
    background: rgba(255,255,255,.09); border: 1px solid rgba(255,255,255,.14);
    padding: 3px 9px; border-radius: 20px;
    display: inline-flex; align-items: center; gap: 4px;
}
.dept-badge-nba {
    font-size: 10px; font-weight: 700; color: #ffcb70;
    background: rgba(255,203,112,.12); border: 1px solid rgba(255,203,112,.26);
    padding: 3px 9px; border-radius: 20px;
    display: inline-flex; align-items: center; gap: 4px;
}
.dept-hero-hod {
    display: flex; align-items: center; gap: 10px; flex-shrink: 0;
    background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.13);
    border-radius: 10px; padding: 8px 14px 8px 8px;
    transition: background .2s;
}
.dept-hero-hod:hover { background: rgba(255,255,255,.13); }
.dept-hero-hod-img {
    width: 42px; height: 42px; border-radius: 50%;
    object-fit: cover; border: 2px solid rgba(255,255,255,.26); flex-shrink: 0;
}
.dept-hero-hod-fallback {
    width: 42px; height: 42px; border-radius: 50%; flex-shrink: 0;
    background: rgba(255,255,255,.12); border: 2px solid rgba(255,255,255,.20);
    display: grid; place-items: center;
    color: rgba(255,255,255,.50); font-size: 16px;
}
.dept-hero-hod-role {
    font-size: 9.5px; color: rgba(255,255,255,.50);
    text-transform: uppercase; letter-spacing: .5px; font-weight: 600;
}
.dept-hero-hod-name {
    font-size: 13px; font-weight: 700; color: #fff; white-space: nowrap;
}

/* Responsive hero header */
@media (max-width: 991px) { .dept-hero-hod { display: none; } }
@media (max-width: 767px) {
    .dept-hero-header { padding: 14px 16px 12px; }
    .dept-hero-title  { font-size: 15px; }
}

/* ── Department Tab Navigation ──────────────────────────────────────────── */
.dept-tab-nav-wrap {
    position: relative; margin-bottom: 18px;
    background: linear-gradient(145deg, #05233b 0%, #0c3660 55%, #163e6e 100%);
    border-radius: 10px; padding: 7px 8px;
    box-shadow: 0 6px 22px rgba(5,35,59,.24);
    overflow: hidden;
}
.dept-tab-nav-wrap::before {
    content: '';
    position: absolute; inset: 0;
    background: radial-gradient(ellipse at 20% 50%, rgba(26,86,164,.18) 0%, transparent 60%),
                radial-gradient(ellipse at 80% 20%, rgba(242,108,0,.10) 0%, transparent 50%);
    pointer-events: none;
}
.dept-tab-nav {
    display: flex; overflow-x: auto; gap: 4px;
    scrollbar-width: none; -ms-overflow-style: none;
    position: relative; z-index: 1;
}
.dept-tab-nav::-webkit-scrollbar { display: none; }
.dept-tab-nav a {
    display: flex; flex-direction: column; align-items: center;
    gap: 3px; flex-shrink: 0; min-width: 56px;
    padding: 7px 10px 6px;
    background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.11);
    border-radius: 7px;
    color: rgba(255,255,255,.68);
    font-size: 8.5px; font-weight: 600;
    letter-spacing: .35px; text-align: center; text-transform: uppercase;
    text-decoration: none;
    transition: background .2s, border-color .2s, color .2s, transform .2s cubic-bezier(.34,1.56,.64,1), box-shadow .2s;
    opacity: 0;
    animation: deptNavIn .35s ease-out forwards;
}
.dept-tab-nav a i {
    font-size: 14px;
    transition: transform .2s cubic-bezier(.34,1.56,.64,1);
}
.dept-tab-nav a:hover {
    background: rgba(26,86,164,.42); border-color: rgba(26,86,164,.60);
    color: #fff; transform: translateY(-3px);
    box-shadow: 0 6px 18px rgba(0,0,0,.22);
}
.dept-tab-nav a:hover i { transform: scale(1.2) rotate(-5deg); }
.dept-tab-nav a.active {
    background: linear-gradient(135deg, #1a56a4 0%, #f26c00 100%);
    border-color: transparent; color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 5px 18px rgba(26,86,164,.50);
}
.dept-tab-nav a.active i { transform: scale(1.1); }

/* stagger animation delays */
.dept-tab-nav a:nth-child(1)  { animation-delay: .03s; }
.dept-tab-nav a:nth-child(2)  { animation-delay: .06s; }
.dept-tab-nav a:nth-child(3)  { animation-delay: .09s; }
.dept-tab-nav a:nth-child(4)  { animation-delay: .12s; }
.dept-tab-nav a:nth-child(5)  { animation-delay: .15s; }
.dept-tab-nav a:nth-child(6)  { animation-delay: .18s; }
.dept-tab-nav a:nth-child(7)  { animation-delay: .21s; }
.dept-tab-nav a:nth-child(8)  { animation-delay: .24s; }
.dept-tab-nav a:nth-child(9)  { animation-delay: .27s; }
.dept-tab-nav a:nth-child(10) { animation-delay: .30s; }
.dept-tab-nav a:nth-child(11) { animation-delay: .33s; }
.dept-tab-nav a:nth-child(12) { animation-delay: .36s; }
.dept-tab-nav a:nth-child(13) { animation-delay: .39s; }
.dept-tab-nav a:nth-child(14) { animation-delay: .42s; }
.dept-tab-nav a:nth-child(15) { animation-delay: .45s; }
.dept-tab-nav a:nth-child(16) { animation-delay: .48s; }
.dept-tab-nav a:nth-child(17) { animation-delay: .51s; }
.dept-tab-nav a:nth-child(18) { animation-delay: .54s; }

@media (max-width: 480px) {
    .dept-tab-nav a { min-width: 50px; padding: 6px 7px 5px; font-size: 7.5px; }
    .dept-tab-nav a i { font-size: 13px; }
}

/* ── Backward-compat: old grid-nav (other pages) ── */
.sgbit-dept-grid-nav {
    display: grid; grid-template-columns: repeat(5,1fr); gap: 6px;
    background: linear-gradient(145deg,#05233b 0%,#0c3660 55%,#163e6e 100%);
    border-radius: 10px; padding: 10px; margin-bottom: 20px;
    box-shadow: 0 8px 28px rgba(5,35,59,.28);
}
.sgbit-dept-grid-nav a {
    display: flex; flex-direction: column; align-items: center;
    justify-content: center; gap: 4px; padding: 8px 4px 7px;
    background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.11);
    border-radius: 7px; color: rgba(255,255,255,.72);
    font-size: 9px; font-weight: 600; letter-spacing: .4px;
    text-align: center; text-transform: uppercase; text-decoration: none;
    transition: background .22s, color .22s, transform .22s; opacity: 0;
    animation: deptNavIn .38s ease-out forwards;
}
.sgbit-dept-grid-nav a i { font-size: 15px; display: block; }
.sgbit-dept-grid-nav a:hover { background: rgba(26,86,164,.45); border-color: rgba(26,86,164,.65); color: #fff; transform: translateY(-4px); }
.sgbit-dept-grid-nav a.active { background: linear-gradient(135deg,#1a56a4,#f26c00); border-color: transparent; color: #fff; }
.dept-page-header { display:none; } /* hidden — replaced by dept-hero-header */

/* Breadcrumb */
.dept-page-breadcrumb {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 11px;
    color: rgba(255,255,255,.50);
    margin-bottom: 6px;
    flex-wrap: wrap;
}
.dept-page-breadcrumb a {
    color: rgba(255,255,255,.55);
    text-decoration: none;
    transition: color .2s;
}
.dept-page-breadcrumb a:hover { color: #f26c00; }
.dept-page-breadcrumb-sep { font-size: 8px; color: rgba(255,255,255,.30); }
.dept-page-breadcrumb > span:last-child { color: rgba(255,255,255,.80); font-weight: 600; }

/* Title */
.dept-page-title {
    font-size: 20px;
    font-weight: 700;
    color: #fff;
    margin: 0 0 6px;
    line-height: 1.2;
    letter-spacing: -.2px;
}

/* Short name + badges */
.dept-page-short {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}
.dept-page-short-badge {
    background: #f26c00;
    color: #fff;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .6px;
    text-transform: uppercase;
    padding: 2px 10px;
    border-radius: 20px;
}
.dept-page-short-est {
    font-size: 11px;
    color: rgba(255,255,255,.55);
}
.dept-page-short-nba {
    font-size: 10px;
    font-weight: 700;
    color: #ffcb70;
    background: rgba(255,203,112,.12);
    border: 1px solid rgba(255,203,112,.25);
    padding: 2px 9px;
    border-radius: 20px;
}

/* HOD strip on right */
.dept-page-header-right { flex-shrink: 0; }
.dept-page-hod-strip {
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(255,255,255,.08);
    border: 1px solid rgba(255,255,255,.12);
    border-radius: 10px;
    padding: 8px 14px 8px 8px;
}
.dept-page-hod-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid rgba(255,255,255,.25);
    flex-shrink: 0;
}
.dept-page-hod-avatar-fallback {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(255,255,255,.12);
    border: 2px solid rgba(255,255,255,.20);
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255,255,255,.50);
    font-size: 18px;
    flex-shrink: 0;
}
.dept-page-hod-role {
    font-size: 10px;
    color: rgba(255,255,255,.50);
    text-transform: uppercase;
    letter-spacing: .5px;
    font-weight: 600;
}
.dept-page-hod-name {
    font-size: 13px;
    font-weight: 700;
    color: #fff;
    white-space: nowrap;
}

/* Responsive */
@media (max-width: 767px) {
    .dept-page-header { flex-direction: column; align-items: flex-start; padding: 14px 16px; }
    .dept-page-title { font-size: 16px; }
    .dept-page-header-right { width: 100%; }
    .dept-page-hod-strip { width: 100%; }
    .dept-page-hod-name { white-space: normal; }
}

/* ── Department Sub-Nav Grid ──────────────────────────────────────────────── */
.sgbit-dept-grid-nav {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 6px;
    background: linear-gradient(145deg, #05233b 0%, #0c3660 55%, #163e6e 100%);
    border-radius: 10px;
    padding: 10px;
    margin-bottom: 20px;
    box-shadow: 0 8px 28px rgba(5,35,59,.28);
    position: relative;
    overflow: hidden;
}

.sgbit-dept-grid-nav::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at 20% 50%, rgba(26,86,164,.18) 0%, transparent 60%),
                radial-gradient(ellipse at 80% 20%, rgba(242,108,0,.10) 0%, transparent 50%);
    pointer-events: none;
}

.sgbit-dept-grid-nav a {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    padding: 8px 4px 7px;
    background: rgba(255,255,255,.07);
    border: 1px solid rgba(255,255,255,.11);
    border-radius: 7px;
    color: rgba(255,255,255,.72);
    font-size: 9px;
    font-weight: 600;
    letter-spacing: .4px;
    text-align: center;
    text-transform: uppercase;
    text-decoration: none;
    transition: background .22s, border-color .22s, color .22s,
                transform .22s cubic-bezier(.34,1.56,.64,1), box-shadow .22s;
    opacity: 0;
    animation: deptNavIn .38s ease-out forwards;
}

/* stagger each of the 15 links */
.sgbit-dept-grid-nav a:nth-child(1)  { animation-delay: .04s; }
.sgbit-dept-grid-nav a:nth-child(2)  { animation-delay: .07s; }
.sgbit-dept-grid-nav a:nth-child(3)  { animation-delay: .10s; }
.sgbit-dept-grid-nav a:nth-child(4)  { animation-delay: .13s; }
.sgbit-dept-grid-nav a:nth-child(5)  { animation-delay: .16s; }
.sgbit-dept-grid-nav a:nth-child(6)  { animation-delay: .19s; }
.sgbit-dept-grid-nav a:nth-child(7)  { animation-delay: .22s; }
.sgbit-dept-grid-nav a:nth-child(8)  { animation-delay: .25s; }
.sgbit-dept-grid-nav a:nth-child(9)  { animation-delay: .28s; }
.sgbit-dept-grid-nav a:nth-child(10) { animation-delay: .31s; }
.sgbit-dept-grid-nav a:nth-child(11) { animation-delay: .34s; }
.sgbit-dept-grid-nav a:nth-child(12) { animation-delay: .37s; }
.sgbit-dept-grid-nav a:nth-child(13) { animation-delay: .40s; }
.sgbit-dept-grid-nav a:nth-child(14) { animation-delay: .43s; }
.sgbit-dept-grid-nav a:nth-child(15) { animation-delay: .46s; }

.sgbit-dept-grid-nav a i {
    font-size: 15px;
    transition: transform .22s cubic-bezier(.34,1.56,.64,1);
    display: block;
}

.sgbit-dept-grid-nav a:hover {
    background: rgba(26,86,164,.45);
    border-color: rgba(26,86,164,.65);
    color: #fff;
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0,0,0,.25);
}

.sgbit-dept-grid-nav a:hover i {
    transform: scale(1.25) rotate(-6deg);
}

.sgbit-dept-grid-nav a.active {
    background: linear-gradient(135deg, #1a56a4 0%, #f26c00 100%);
    border-color: transparent;
    color: #fff;
    transform: translateY(-3px);
    box-shadow: 0 6px 22px rgba(26,86,164,.55);
}

.sgbit-dept-grid-nav a.active i {
    transform: scale(1.1);
}

/* Page content fade-in */
.sgbit-dept-main {
    animation: deptPageIn .5s .1s ease-out both;
}

/* ── Department News — Vertical Scrolling Ticker ─────────────────────────── */
.dept-side-sticky {
    position: sticky;
    top: 90px;
}

.dept-side-ticker {
    background: linear-gradient(145deg, #05233b 0%, #0c3660 55%, #163e6e 100%);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 28px rgba(5,35,59,.22);
}

.dept-side-ticker-head {
    background: linear-gradient(135deg, #f26c00 0%, #d45900 100%);
    color: #fff;
    padding: 11px 16px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .5px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.dept-side-dot {
    width: 8px; height: 8px;
    background: #fff;
    border-radius: 50%;
    flex-shrink: 0;
    animation: newsPulse 1.8s ease-in-out infinite;
}

.dept-side-ticker-track {
    height: 320px;
    overflow: hidden;
}

.dept-side-ticker-items {
    animation: sideTickerScroll 24s linear infinite;
}

.dept-side-ticker-track:hover .dept-side-ticker-items {
    animation-play-state: paused;
}

.dept-side-ticker-item {
    padding: 12px 16px;
    border-bottom: 1px solid rgba(255,255,255,.08);
}

.dept-side-ticker-title {
    font-size: 13px;
    color: rgba(255,255,255,.88);
    line-height: 1.5;
    font-weight: 500;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.dept-side-ticker-title a {
    color: rgba(255,255,255,.88);
    text-decoration: none;
    transition: color .2s;
}

.dept-side-ticker-title a:hover { color: #f26c00; }

.dept-side-ticker-date {
    font-size: 11px;
    color: rgba(255,255,255,.42);
    margin-top: 4px;
}

.dept-side-ticker-links {
    display: flex;
    gap: 8px;
    margin-top: 6px;
    flex-wrap: wrap;
}

@keyframes sideTickerScroll {
    0%   { transform: translateY(0); }
    100% { transform: translateY(-50%); }
}

/* Badge + link shared styles */
.sgbit-news-badge {
    font-size: 9.5px;
    font-weight: 700;
    letter-spacing: .5px;
    padding: 2px 7px;
    border-radius: 20px;
    text-transform: uppercase;
}

.sgbit-news-badge.pinned { background: rgba(255,164,0,.20); color: #fbbf24; border: 1px solid rgba(255,164,0,.30); }
.sgbit-news-badge.new    { background: rgba(52,211,153,.18); color: #34d399; border: 1px solid rgba(52,211,153,.28); }

.sgbit-news-link {
    font-size: 11px;
    font-weight: 600;
    color: rgba(255,255,255,.60);
    display: inline-flex;
    align-items: center;
    gap: 4px;
    transition: color .15s;
    text-decoration: none;
}

.sgbit-news-link:hover { color: #f26c00; }

/* ── Department page card hover animations ───────────────────────────────── */
.sgbit-dept-card-hover {
    transition: transform .22s ease, box-shadow .22s ease;
}
.sgbit-dept-card-hover:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 32px rgba(5,35,59,.12);
}

/* ── Responsive ─────────────────────────────────────────────────────────── */
@media (max-width: 1199px) {
    .sgbit-dept-grid-nav { grid-template-columns: repeat(5, 1fr); }
}
@media (max-width: 991px) {
    .sgbit-dept-grid-nav { grid-template-columns: repeat(5, 1fr); gap: 5px; padding: 8px; }
}
@media (max-width: 767px) {
    .sgbit-dept-grid-nav { grid-template-columns: repeat(5, 1fr); gap: 4px; padding: 7px; }
    .sgbit-dept-grid-nav a { font-size: 8.5px; padding: 7px 3px 6px; }
    .sgbit-dept-grid-nav a i { font-size: 14px; }
    .sgbit-news-panel { position: static; margin-top: 24px; }
}
@media (max-width: 480px) {
    .sgbit-dept-grid-nav { grid-template-columns: repeat(3, 1fr); }
    .sgbit-dept-grid-nav a { font-size: 8px; gap: 3px; }
}

/* ══════════════════════════════════════════════════════════════════════════
   DEPARTMENT OVERVIEW PAGE — v3 Compact Modern Redesign
══════════════════════════════════════════════════════════════════════════ */

/* Scroll-reveal */
.dept-reveal {
    opacity: 0; transform: translateY(20px);
    transition: opacity .48s cubic-bezier(.22,1,.36,1), transform .48s cubic-bezier(.22,1,.36,1);
}
.dept-reveal.is-visible { opacity: 1; transform: translateY(0); }

/* ── Stats Bar ──────────────────────────────────────────────────────────── */
.dept-stats-bar {
    display: grid; grid-template-columns: repeat(4,1fr);
    gap: 10px; margin-bottom: 14px;
}
.dept-stat-item {
    background: #fff; border: 1px solid var(--sgbit-border);
    border-radius: 10px; padding: 13px 10px 11px;
    text-align: center; position: relative; overflow: hidden;
    transition: transform .2s, box-shadow .2s;
}
.dept-stat-item::after {
    content: ''; position: absolute; top: 0; left: 0; right: 0;
    height: 3px; background: var(--stat-color, var(--sgbit-accent));
    border-radius: 3px 3px 0 0;
}
.dept-stat-item:hover { transform: translateY(-3px); box-shadow: 0 8px 20px rgba(0,0,0,.09); }
.dept-stat-icon {
    width: 34px; height: 34px; border-radius: 8px;
    background: color-mix(in srgb, var(--stat-color, var(--sgbit-accent)) 12%, transparent);
    display: grid; place-items: center;
    margin: 0 auto 7px; font-size: 14px;
    color: var(--stat-color, var(--sgbit-accent));
}
.dept-stat-val  { font-size: 15px; font-weight: 800; color: var(--sgbit-primary); line-height: 1.2; }
.dept-stat-lbl  { font-size: 9px; font-weight: 600; color: var(--sgbit-muted); text-transform: uppercase; letter-spacing: .4px; margin-top: 3px; }

/* ── Top intro: video + HOD side by side ──────────────────────────────── */
.dept-intro-grid {
    display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-bottom: 14px; align-items: start;
}
.dept-intro-grid .dept-hod-premium { margin-bottom: 0; }
@media (max-width: 991px) { .dept-intro-grid { grid-template-columns: 1fr; } }

/* ── Shared section card ────────────────────────────────────────────────── */
.dept-card {
    background: #fff; border: 1px solid var(--sgbit-border);
    border-radius: 12px; padding: 16px 18px; margin-bottom: 14px;
    transition: box-shadow .2s;
}
.dept-card:hover { box-shadow: 0 5px 18px rgba(5,35,59,.08); }

/* ── Inline section header ──────────────────────────────────────────────── */
.dept-inner-head {
    display: flex; align-items: center; gap: 10px;
    margin-bottom: 12px; padding-bottom: 10px;
    border-bottom: 1px solid var(--sgbit-border);
}
.dih-icon {
    width: 30px; height: 30px; border-radius: 7px;
    background: linear-gradient(135deg, var(--sgbit-accent), var(--sgbit-primary));
    display: grid; place-items: center;
    color: #fff; font-size: 13px; flex-shrink: 0;
}
.dept-inner-head h2 {
    font-size: 14px; font-weight: 700; color: var(--sgbit-primary); margin: 0; flex: 1;
}
.dept-inner-head .dih-link {
    font-size: 11px; color: var(--sgbit-accent); font-weight: 600;
    text-decoration: none; white-space: nowrap;
    padding: 3px 10px; border: 1px solid var(--sgbit-accent);
    border-radius: 20px; transition: background .16s, color .16s;
}
.dept-inner-head .dih-link:hover { background: var(--sgbit-accent); color: #fff; }

/* ── Overview card ──────────────────────────────────────────────────────── */
.dept-overview-card {
    border-left: 3px solid var(--sgbit-accent) !important;
    border-radius: 0 12px 12px 0 !important;
}
.dept-overview-card p, .dept-overview-card li {
    font-size: 13.5px; line-height: 1.78; color: var(--sgbit-text);
}

/* ── Content Tabs (Overview / Vision / Mission) ─────────────────────────── */
.dept-content-tabs {
    background: #fff; border: 1px solid var(--sgbit-border);
    border-radius: 12px; margin-bottom: 14px; overflow: hidden;
}
.dept-ctabs-nav {
    display: flex; border-bottom: 1px solid var(--sgbit-border); background: #f8fafc;
}
.dept-ctabs-nav button {
    flex: 1; padding: 9px 10px;
    background: none; border: none; border-bottom: 2px solid transparent;
    font-size: 11px; font-weight: 700; color: var(--sgbit-muted);
    text-transform: uppercase; letter-spacing: .4px;
    cursor: pointer; transition: color .18s, border-color .18s, background .18s;
    display: flex; align-items: center; justify-content: center; gap: 5px;
}
.dept-ctabs-nav button.active { color: var(--sgbit-accent); border-bottom-color: var(--sgbit-accent); background: #fff; }
.dept-ctabs-nav button:hover  { color: var(--sgbit-accent); }
.dept-ctab-panel { display: none; padding: 16px 18px; }
.dept-ctab-panel.active { display: block; }
.dept-ctab-panel p, .dept-ctab-panel li { font-size: 13.5px; line-height: 1.78; color: var(--sgbit-text); margin-bottom: 0; }
.dept-ctab-panel .vm-text { font-size: 13.5px; color: #374151; line-height: 1.75; white-space: pre-line; }
.dept-ctab-vision-label {
    display: inline-flex; align-items: center; gap: 5px;
    font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: .5px;
    color: #1e40af; background: #eef4ff; border: 1px solid #bfdbfe;
    padding: 3px 10px; border-radius: 20px; margin-bottom: 10px;
}
.dept-ctab-mission-label {
    display: inline-flex; align-items: center; gap: 5px;
    font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: .5px;
    color: #15803d; background: #f0fdf4; border: 1px solid #bbf7d0;
    padding: 3px 10px; border-radius: 20px; margin-bottom: 10px;
}

/* ── Vision / Mission standalone grid ──────────────────────────────────── */
.dept-vm-grid {
    display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 14px;
}
.dept-vm-card {
    border-radius: 10px; padding: 15px 16px;
    position: relative; overflow: hidden;
    transition: transform .2s, box-shadow .2s;
}
.dept-vm-card:hover { transform: translateY(-2px); box-shadow: 0 6px 18px rgba(0,0,0,.09); }
.dept-vm-card.vision  { background: linear-gradient(135deg,#eef4ff,#dbeafe); border-left: 3px solid #1a56a4; }
.dept-vm-card.mission { background: linear-gradient(135deg,#f0fdf4,#dcfce7); border-left: 3px solid #16a34a; }
.dept-vm-icon         { font-size: 20px; margin-bottom: 7px; }
.dept-vm-card.vision  .dept-vm-icon { color: #1a56a4; }
.dept-vm-card.mission .dept-vm-icon { color: #16a34a; }
.dept-vm-card h3 { font-size: 11px; font-weight: 700; letter-spacing: .4px; text-transform: uppercase; margin-bottom: 7px; }
.dept-vm-card.vision  h3 { color: #1e40af; }
.dept-vm-card.mission h3 { color: #15803d; }
.dept-vm-card p, .dept-vm-card .vm-text { font-size: 13px; color: #374151; line-height: 1.72; margin: 0; }

/* ── HOD Premium Card ───────────────────────────────────────────────────── */
.dept-hod-premium {
    background: linear-gradient(135deg, #05233b 0%, #0d3d70 100%);
    border-radius: 12px; padding: 18px 20px;
    display: flex; gap: 16px; color: #fff;
    margin-bottom: 14px; position: relative; overflow: hidden;
}
.dept-hod-premium::after {
    content: '\201C'; position: absolute; right: 12px; top: -16px;
    font-size: 88px; font-family: Georgia, serif; line-height: 1;
    color: rgba(255,255,255,.05); pointer-events: none;
}
.dept-hod-photo {
    width: 74px; height: 74px; border-radius: 50%;
    object-fit: cover; flex-shrink: 0; border: 3px solid rgba(255,255,255,.22);
}
.dept-hod-fallback {
    width: 74px; height: 74px; border-radius: 50%; flex-shrink: 0;
    background: rgba(255,255,255,.10); border: 3px solid rgba(255,255,255,.16);
    display: grid; place-items: center;
    font-size: 24px; color: rgba(255,255,255,.45);
}
.dept-hod-body { flex: 1; min-width: 0; }
.dept-hod-role  { font-size: 10px; color: #f26c00; font-weight: 700; text-transform: uppercase; letter-spacing: .6px; margin-bottom: 4px; }
.dept-hod-name  { font-size: 15px; font-weight: 700; color: #fff; margin-bottom: 9px; }
.dept-hod-msg   { font-size: 12.5px; color: rgba(255,255,255,.76); line-height: 1.65; }
.dept-hod-email { font-size: 11px; color: rgba(255,255,255,.46); margin-top: 8px; }

/* ── Programs ───────────────────────────────────────────────────────────── */
.dept-prog-grid {
    display: grid; grid-template-columns: repeat(auto-fill, minmax(200px,1fr)); gap: 7px;
}
.dept-prog-item {
    display: flex; align-items: center; gap: 9px;
    padding: 8px 12px; background: var(--sgbit-light);
    border-radius: 7px; border: 1px solid var(--sgbit-border);
    font-size: 13px; font-weight: 600; color: var(--sgbit-primary);
    transition: border-color .16s, background .16s, transform .16s;
}
.dept-prog-item:hover { border-color: var(--sgbit-accent); background: #eef4ff; transform: translateX(2px); }
.dept-prog-item i { color: var(--sgbit-accent); font-size: 12px; flex-shrink: 0; }

/* ── Placement Band ─────────────────────────────────────────────────────── */
.dept-placement-band {
    background: linear-gradient(135deg, #0d2f5e 0%, #1a56a4 100%);
    border-radius: 12px; padding: 16px 18px; margin-bottom: 14px; color: #fff;
}
.dept-placement-head {
    display: flex; align-items: flex-start; justify-content: space-between;
    margin-bottom: 12px; gap: 12px;
}
.dept-placement-title { font-size: 14px; font-weight: 700; color: #fff; }
.dept-placement-year  { font-size: 10px; color: rgba(255,255,255,.55); margin-top: 2px; }
.dept-placement-link  { font-size: 11px; color: #fbbf24; text-decoration: none; font-weight: 600; white-space: nowrap; }
.dept-placement-link:hover { text-decoration: underline; color: #fde68a; }
.dept-placement-stats-grid {
    display: grid; grid-template-columns: repeat(4,1fr); gap: 8px;
}
.dept-ps-item {
    background: rgba(255,255,255,.10); border: 1px solid rgba(255,255,255,.13);
    border-radius: 8px; padding: 11px 6px; text-align: center; transition: background .2s;
}
.dept-ps-item:hover { background: rgba(255,255,255,.17); }
.dept-ps-item i   { font-size: 15px; margin-bottom: 4px; display: block; }
.dept-ps-val { font-size: 16px; font-weight: 800; color: #fff; line-height: 1.1; }
.dept-ps-lbl { font-size: 8.5px; color: rgba(255,255,255,.60); font-weight: 600; text-transform: uppercase; letter-spacing: .4px; margin-top: 3px; }

/* ── Achievements ───────────────────────────────────────────────────────── */
.dept-ach-list { list-style: none; padding: 0; margin: 0; }
.dept-ach-list li {
    display: flex; gap: 10px; align-items: flex-start;
    padding: 8px 0; border-bottom: 1px dashed var(--sgbit-border);
    transition: background .15s;
}
.dept-ach-list li:last-child { border-bottom: none; padding-bottom: 0; }
.dept-ach-list li:hover { background: #fafbfc; border-radius: 6px; padding-left: 4px; }
.dept-ach-bullet {
    width: 25px; height: 25px; border-radius: 50%;
    background: linear-gradient(135deg, #f26c00, #d45900);
    display: grid; place-items: center; flex-shrink: 0;
    font-size: 9.5px; color: #fff;
}
.dept-ach-name { font-size: 13px; font-weight: 600; color: var(--sgbit-primary); }
.dept-ach-meta { font-size: 11px; color: var(--sgbit-muted); margin-top: 1px; }

/* ── Alumni mini cards ──────────────────────────────────────────────────── */
.dept-alumni-mini { display: flex; flex-wrap: wrap; gap: 10px; }
.dept-alumni-card {
    flex: 1 1 100px; text-align: center;
    padding: 12px 8px; background: var(--sgbit-light);
    border-radius: 8px; border: 1px solid var(--sgbit-border);
    transition: transform .2s, box-shadow .2s;
}
.dept-alumni-card:hover { transform: translateY(-2px); box-shadow: 0 5px 14px rgba(0,0,0,.09); }
.dept-alumni-card img, .dept-alumni-fallback {
    width: 48px; height: 48px; border-radius: 50%;
    object-fit: cover; border: 2px solid var(--sgbit-border);
    margin: 0 auto 6px; display: block;
}
.dept-alumni-fallback { background: var(--sgbit-border); display: grid; place-items: center; font-size: 16px; color: var(--sgbit-muted); }
.dept-alumni-name { font-size: 11px; font-weight: 700; color: var(--sgbit-primary); }
.dept-alumni-co   { font-size: 10px; color: var(--sgbit-accent); margin-top: 1px; }
.dept-alumni-yr   { font-size: 9px; color: var(--sgbit-muted); margin-top: 1px; }

/* ── Faculty preview grid ───────────────────────────────────────────────── */
.dept-faculty-mini { display: grid; grid-template-columns: repeat(4,1fr); gap: 10px; }
.dept-fac-card {
    text-align: center; padding: 12px 7px;
    background: var(--sgbit-light); border-radius: 8px;
    border: 1px solid var(--sgbit-border);
    transition: transform .2s, box-shadow .2s, border-color .2s;
}
.dept-fac-card:hover { transform: translateY(-3px); box-shadow: 0 6px 16px rgba(0,0,0,.09); border-color: var(--sgbit-accent); }
.dept-fac-photo, .dept-fac-fallback {
    width: 54px; height: 54px; border-radius: 50%;
    object-fit: cover; border: 2px solid var(--sgbit-border);
    margin: 0 auto 7px; display: block;
}
.dept-fac-fallback { background: #e8edf2; display: grid; place-items: center; font-size: 20px; color: #b0bec5; }
.dept-fac-name  { font-size: 11px; font-weight: 700; color: var(--sgbit-primary); line-height: 1.3; }
.dept-fac-desig { font-size: 9px; color: var(--sgbit-accent); margin-top: 2px; }

/* ── Responsive overrides ───────────────────────────────────────────────── */
@media (max-width: 767px) {
    .dept-stats-bar              { grid-template-columns: repeat(2,1fr); gap: 8px; }
    .dept-vm-grid                { grid-template-columns: 1fr; }
    .dept-placement-stats-grid   { grid-template-columns: repeat(2,1fr); }
    .dept-hod-premium            { flex-direction: column; gap: 14px; }
    .dept-faculty-mini           { grid-template-columns: repeat(3,1fr); }
    .dept-prog-grid              { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
    .dept-faculty-mini { grid-template-columns: repeat(2,1fr); }
}

/* ── Department Inner Nav (legacy – keep for fallback) ───────────────────── */
.sgbit-dept-nav {
    display: flex;
    gap: 0;
    border-bottom: 3px solid var(--sgbit-border);
    overflow-x: auto;
    scrollbar-width: none;
    margin-bottom: 32px;
}
.sgbit-dept-nav::-webkit-scrollbar { display: none; }
.sgbit-dept-nav a {
    display: inline-block;
    padding: 12px 20px;
    font-size: 14px;
    font-weight: 600;
    color: var(--sgbit-muted);
    white-space: nowrap;
    border-bottom: 3px solid transparent;
    margin-bottom: -3px;
    transition: var(--sgbit-transition);
}
.sgbit-dept-nav a:hover,
.sgbit-dept-nav a.active {
    color: var(--sgbit-accent);
    border-bottom-color: var(--sgbit-accent);
}

/* ── Faculty Card ───────────────────────────────────────────────────────── */
.sgbit-faculty-card {
    background: #fff;
    border: 1px solid var(--sgbit-border);
    border-radius: var(--sgbit-radius);
    padding: 24px 20px;
    text-align: center;
    transition: var(--sgbit-transition);
    height: 100%;
}

.sgbit-faculty-card:hover {
    box-shadow: var(--sgbit-shadow);
    border-color: var(--sgbit-accent);
}

.sgbit-faculty-photo {
    width: 96px;
    height: 96px;
    border-radius: 50%;
    object-fit: cover;
    margin: 0 auto 14px;
    display: block;
    border: 3px solid var(--sgbit-border);
}

.sgbit-faculty-card h3 {
    font-size: 17px;
    font-weight: 700;
    color: var(--sgbit-primary);
    margin-bottom: 4px;
}

.sgbit-faculty-card .desig {
    font-size: 13px;
    color: var(--sgbit-accent);
    font-weight: 600;
    margin-bottom: 4px;
}

.sgbit-faculty-card .qual {
    font-size: 12px;
    color: var(--sgbit-muted);
    margin-bottom: 10px;
}

.sgbit-faculty-links {
    display: flex;
    justify-content: center;
    gap: 8px;
    flex-wrap: wrap;
}

.sgbit-faculty-links a {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--sgbit-light);
    color: var(--sgbit-primary);
    display: grid;
    place-items: center;
    font-size: 13px;
    border: 1px solid var(--sgbit-border);
    transition: var(--sgbit-transition);
}

.sgbit-faculty-links a:hover {
    background: var(--sgbit-accent);
    color: #fff;
    border-color: var(--sgbit-accent);
}

/* ── Placement Cards ────────────────────────────────────────────────────── */
.sgbit-placement-card {
    background: #fff;
    border: 1px solid var(--sgbit-border);
    border-radius: var(--sgbit-radius);
    padding: 24px 20px;
    display: flex;
    gap: 16px;
    align-items: flex-start;
    transition: var(--sgbit-transition);
}

.sgbit-placement-card:hover {
    box-shadow: var(--sgbit-shadow);
    border-color: var(--sgbit-accent);
}

.sgbit-placement-photo {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--sgbit-border);
    flex-shrink: 0;
}

.sgbit-placement-info h3 {
    font-size: 16px;
    font-weight: 700;
    color: var(--sgbit-primary);
    margin-bottom: 2px;
}

.sgbit-placement-info .company {
    font-size: 14px;
    color: var(--sgbit-accent);
    font-weight: 600;
    margin-bottom: 4px;
}

.sgbit-placement-info .package {
    display: inline-block;
    background: #e8f7f0;
    color: #1a7a4b;
    font-size: 12px;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: 20px;
}

.sgbit-placement-info .dept-badge {
    display: inline-block;
    background: var(--sgbit-light);
    color: var(--sgbit-muted);
    font-size: 11px;
    padding: 3px 10px;
    border-radius: 20px;
    margin-left: 6px;
}

/* ── Company Logo Strip ─────────────────────────────────────────────────── */
.sgbit-company-strip {
    background: var(--sgbit-light);
    padding: 32px 0;
    border-top: 1px solid var(--sgbit-border);
    border-bottom: 1px solid var(--sgbit-border);
}

.sgbit-company-logos {
    display: flex;
    gap: 24px;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
}

.sgbit-company-logo-item {
    width: 120px;
    height: 60px;
    object-fit: contain;
    filter: grayscale(60%);
    opacity: 0.75;
    transition: var(--sgbit-transition);
}

.sgbit-company-logo-item:hover {
    filter: grayscale(0);
    opacity: 1;
}

/* ── Placement Stats Table ──────────────────────────────────────────────── */
.sgbit-stats-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    border: 1px solid var(--sgbit-border);
    border-radius: var(--sgbit-radius);
    overflow: hidden;
}

.sgbit-stats-table th {
    background: var(--sgbit-primary);
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    padding: 14px 16px;
    text-align: left;
}

.sgbit-stats-table td {
    padding: 12px 16px;
    border-bottom: 1px solid var(--sgbit-border);
    font-size: 14px;
    color: var(--sgbit-text);
}

.sgbit-stats-table tr:last-child td {
    border-bottom: 0;
}

.sgbit-stats-table tr:nth-child(even) td {
    background: var(--sgbit-light);
}

/* ── About Page Content ─────────────────────────────────────────────────── */
.sgbit-content-box {
    background: #fff;
    border: 1px solid var(--sgbit-border);
    border-radius: var(--sgbit-radius);
    padding: 32px;
}

.sgbit-content-box h2 {
    font-size: 26px;
    font-weight: 700;
    color: var(--sgbit-primary);
    margin-bottom: 16px;
    font-family: 'Poppins', sans-serif;
}

.sgbit-content-box p, .sgbit-content-box li {
    font-size: 15px;
    line-height: 1.75;
    color: var(--sgbit-text);
}

.sgbit-content-box ul {
    padding-left: 20px;
}

.sgbit-content-box ul li {
    margin-bottom: 6px;
}

/* ── Principal / HOD Message Box ────────────────────────────────────────── */
.sgbit-message-card {
    background: #fff;
    border-left: 5px solid var(--sgbit-accent);
    border-radius: 0 var(--sgbit-radius) var(--sgbit-radius) 0;
    padding: 32px;
    box-shadow: var(--sgbit-shadow);
}

.sgbit-message-person {
    display: flex;
    align-items: center;
    gap: 18px;
    margin-bottom: 20px;
}

.sgbit-message-photo {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--sgbit-border);
    flex-shrink: 0;
}

.sgbit-message-person h3 {
    font-size: 20px;
    font-weight: 700;
    color: var(--sgbit-primary);
    margin: 0 0 4px;
}

.sgbit-message-person .role {
    font-size: 14px;
    color: var(--sgbit-accent);
    font-weight: 600;
}

.sgbit-message-body {
    font-size: 15px;
    line-height: 1.8;
    color: var(--sgbit-text);
}

.sgbit-message-body blockquote {
    border-left: 3px solid var(--sgbit-gold);
    padding-left: 16px;
    margin: 16px 0;
    color: var(--sgbit-muted);
    font-style: italic;
}

/* ── Vision / Mission Cards ─────────────────────────────────────────────── */
.sgbit-vm-card {
    background: var(--sgbit-light);
    border-top: 4px solid var(--sgbit-accent);
    border-radius: var(--sgbit-radius);
    padding: 28px 24px;
    height: 100%;
}

.sgbit-vm-card.mission-card {
    border-top-color: var(--sgbit-gold);
}

.sgbit-vm-card h3 {
    font-size: 22px;
    font-weight: 700;
    color: var(--sgbit-primary);
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.sgbit-vm-card h3 i {
    color: var(--sgbit-accent);
}

.sgbit-vm-card.mission-card h3 i {
    color: var(--sgbit-gold);
}

.sgbit-vm-card p, .sgbit-vm-card li {
    font-size: 15px;
    line-height: 1.75;
    color: var(--sgbit-text);
}

/* ── Compliance / Docs Table ────────────────────────────────────────────── */
.sgbit-docs-table {
    width: 100%;
}

.sgbit-docs-table th {
    background: var(--sgbit-primary);
    color: #fff;
    font-size: 14px;
    padding: 12px 16px;
}

.sgbit-docs-table td {
    padding: 12px 16px;
    border-bottom: 1px solid var(--sgbit-border);
    font-size: 14px;
    vertical-align: middle;
}

.sgbit-docs-table tr:last-child td { border-bottom: none; }

.sgbit-docs-table a {
    color: var(--sgbit-accent);
    font-weight: 600;
}

.sgbit-doc-download {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    background: var(--sgbit-light);
    border: 1px solid var(--sgbit-border);
    border-radius: 4px;
    font-size: 13px;
    color: var(--sgbit-primary);
    font-weight: 600;
    transition: var(--sgbit-transition);
}

.sgbit-doc-download:hover {
    background: var(--sgbit-accent);
    color: #fff;
    border-color: var(--sgbit-accent);
}

/* ── NAAC Criteria Cards ────────────────────────────────────────────────── */
.sgbit-naac-card {
    background: #fff;
    border: 1px solid var(--sgbit-border);
    border-radius: var(--sgbit-radius);
    padding: 24px;
    display: flex;
    gap: 16px;
    align-items: flex-start;
    transition: var(--sgbit-transition);
    height: 100%;
}

.sgbit-naac-card:hover {
    box-shadow: var(--sgbit-shadow);
    border-color: var(--sgbit-accent);
}

.sgbit-naac-num {
    width: 50px;
    height: 50px;
    border-radius: var(--sgbit-radius);
    background: var(--sgbit-primary);
    color: #fff;
    font-size: 22px;
    font-weight: 800;
    display: grid;
    place-items: center;
    flex-shrink: 0;
}

.sgbit-naac-card h3 {
    font-size: 17px;
    font-weight: 700;
    color: var(--sgbit-primary);
    margin-bottom: 6px;
}

.sgbit-naac-card p {
    font-size: 13px;
    color: var(--sgbit-muted);
    margin-bottom: 12px;
}

/* ── Contact Page ───────────────────────────────────────────────────────── */
.sgbit-contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 32px;
}

.sgbit-contact-info-card {
    background: var(--sgbit-primary);
    color: #fff;
    border-radius: var(--sgbit-radius);
    padding: 36px 28px;
}

.sgbit-contact-info-card h2 {
    font-size: 26px;
    font-weight: 700;
    margin-bottom: 24px;
}

.sgbit-contact-item {
    display: flex;
    gap: 14px;
    align-items: flex-start;
    margin-bottom: 20px;
}

.sgbit-contact-item-icon {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: rgba(255,255,255,0.12);
    display: grid;
    place-items: center;
    font-size: 16px;
    color: var(--sgbit-gold);
    flex-shrink: 0;
}

.sgbit-contact-item-text p {
    margin: 0;
    font-size: 14px;
    opacity: 0.85;
    line-height: 1.5;
}

.sgbit-contact-item-text strong {
    display: block;
    font-size: 15px;
    margin-bottom: 2px;
}

.sgbit-contact-social {
    display: flex;
    gap: 10px;
    margin-top: 24px;
}

.sgbit-contact-social a {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255,255,255,0.15);
    color: #fff;
    display: grid;
    place-items: center;
    font-size: 16px;
    transition: var(--sgbit-transition);
}

.sgbit-contact-social a:hover {
    background: var(--sgbit-gold);
    color: #fff;
}

/* ── Contact Form ───────────────────────────────────────────────────────── */
.sgbit-contact-form-card {
    background: #fff;
    border: 1px solid var(--sgbit-border);
    border-radius: var(--sgbit-radius);
    padding: 36px 28px;
    box-shadow: var(--sgbit-shadow);
}

.sgbit-contact-form-card h2 {
    font-size: 24px;
    font-weight: 700;
    color: var(--sgbit-primary);
    margin-bottom: 24px;
}

.sgbit-form-group {
    margin-bottom: 18px;
}

.sgbit-form-group label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: var(--sgbit-text);
    margin-bottom: 6px;
}

.sgbit-form-control {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid var(--sgbit-border);
    border-radius: var(--sgbit-radius);
    font-size: 14px;
    color: var(--sgbit-text);
    background: #fff;
    transition: var(--sgbit-transition);
    font-family: inherit;
}

.sgbit-form-control:focus {
    outline: none;
    border-color: var(--sgbit-accent);
    box-shadow: 0 0 0 3px rgba(4, 154, 211, 0.12);
}

.sgbit-form-control.is-invalid {
    border-color: #dc3545;
}

.sgbit-alert-success {
    background: #d4edda;
    border: 1px solid #c3e6cb;
    color: #155724;
    padding: 14px 18px;
    border-radius: var(--sgbit-radius);
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

/* ── Map Container ──────────────────────────────────────────────────────── */
.sgbit-map-wrap {
    border-radius: var(--sgbit-radius);
    overflow: hidden;
    border: 1px solid var(--sgbit-border);
    margin-top: 32px;
}

.sgbit-map-wrap iframe {
    display: block;
    width: 100%;
    height: 400px;
    border: 0;
}

/* ── Student Activities ─────────────────────────────────────────────────── */
.sgbit-activity-card {
    background: #fff;
    border: 1px solid var(--sgbit-border);
    border-radius: var(--sgbit-radius);
    overflow: hidden;
    transition: var(--sgbit-transition);
    height: 100%;
}

.sgbit-activity-card:hover {
    box-shadow: var(--sgbit-shadow);
    border-color: var(--sgbit-accent);
}

.sgbit-activity-thumb {
    height: 180px;
    background: var(--sgbit-light);
    overflow: hidden;
}

.sgbit-activity-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.sgbit-activity-card:hover .sgbit-activity-thumb img {
    transform: scale(1.06);
}

.sgbit-activity-body {
    padding: 18px;
}

.sgbit-activity-body h3 {
    font-size: 17px;
    font-weight: 700;
    color: var(--sgbit-primary);
    margin-bottom: 6px;
}

.sgbit-activity-body p {
    font-size: 13px;
    color: var(--sgbit-muted);
    margin-bottom: 10px;
    line-height: 1.5;
}

/* ── Lab Cards ──────────────────────────────────────────────────────────── */
.sgbit-lab-card {
    background: var(--sgbit-light);
    border: 1px solid var(--sgbit-border);
    border-radius: var(--sgbit-radius);
    padding: 20px;
    display: flex;
    gap: 14px;
    align-items: flex-start;
}

.sgbit-lab-icon {
    width: 48px;
    height: 48px;
    border-radius: var(--sgbit-radius);
    background: var(--sgbit-primary);
    color: #fff;
    display: grid;
    place-items: center;
    font-size: 20px;
    flex-shrink: 0;
}

.sgbit-lab-card h4 {
    font-size: 16px;
    font-weight: 700;
    color: var(--sgbit-primary);
    margin-bottom: 4px;
}

.sgbit-lab-card p {
    font-size: 13px;
    color: var(--sgbit-muted);
    margin: 0;
}

/* ── Sidebar ────────────────────────────────────────────────────────────── */
.sgbit-sidebar-card {
    background: #fff;
    border: 1px solid var(--sgbit-border);
    border-radius: var(--sgbit-radius);
    overflow: hidden;
    margin-bottom: 24px;
}

.sgbit-sidebar-head {
    background: var(--sgbit-primary);
    color: #fff;
    padding: 12px 18px;
    font-size: 16px;
    font-weight: 700;
}

.sgbit-sidebar-body {
    padding: 16px;
}

.sgbit-sidebar-links {
    list-style: none;
    margin: 0;
    padding: 0;
}

.sgbit-sidebar-links li {
    border-bottom: 1px solid var(--sgbit-border);
}

.sgbit-sidebar-links li:last-child {
    border-bottom: none;
}

.sgbit-sidebar-links a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 4px;
    font-size: 14px;
    color: var(--sgbit-text);
    font-weight: 500;
    transition: var(--sgbit-transition);
}

.sgbit-sidebar-links a:hover {
    color: var(--sgbit-accent);
    padding-left: 8px;
}

.sgbit-sidebar-links a i {
    color: var(--sgbit-accent);
    width: 16px;
}

/* ── Testimonials (Homepage) ────────────────────────────────────────────── */
.sgbit-testimonials-section {
    background: var(--sgbit-light);
    padding: 64px 0;
}

.sgbit-testimonial-card {
    background: #fff;
    border-radius: var(--sgbit-radius);
    padding: 28px;
    box-shadow: var(--sgbit-shadow);
    height: 100%;
    position: relative;
}

.sgbit-testimonial-card::before {
    content: "\201C";
    position: absolute;
    top: 16px;
    right: 20px;
    font-size: 72px;
    line-height: 1;
    color: var(--sgbit-light);
    font-family: Georgia, serif;
}

.sgbit-testimonial-text {
    font-size: 15px;
    line-height: 1.7;
    color: var(--sgbit-text);
    margin-bottom: 20px;
    font-style: italic;
}

.sgbit-testimonial-author {
    display: flex;
    align-items: center;
    gap: 12px;
}

.sgbit-testimonial-author img {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--sgbit-border);
}

.sgbit-testimonial-author h4 {
    font-size: 15px;
    font-weight: 700;
    color: var(--sgbit-primary);
    margin: 0 0 2px;
}

.sgbit-testimonial-author span {
    font-size: 12px;
    color: var(--sgbit-accent);
}

/* ── Quick Links Banner ─────────────────────────────────────────────────── */
.sgbit-quick-links-section {
    background: var(--sgbit-primary);
    padding: 48px 0;
}

.sgbit-quick-link-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 12px;
    padding: 20px 12px;
    border-radius: var(--sgbit-radius);
    transition: var(--sgbit-transition);
    color: #fff;
}

.sgbit-quick-link-item:hover {
    background: rgba(255,255,255,0.10);
    color: #fff;
    transform: translateY(-3px);
}

.sgbit-quick-link-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: rgba(255,255,255,0.14);
    display: grid;
    place-items: center;
    font-size: 24px;
    color: var(--sgbit-gold);
    border: 2px solid rgba(255,255,255,0.2);
}

.sgbit-quick-link-item span {
    font-size: 13px;
    font-weight: 600;
    opacity: 0.9;
}

/* ── Enhanced Footer ────────────────────────────────────────────────────── */
.iisc-footer {
    background: #051a2c;
}

.sgbit-footer-brand {
    margin-bottom: 16px;
}

.sgbit-footer-brand h4 {
    font-size: 17px;
    font-weight: 800;
    color: #fff;
    margin-bottom: 4px;
    line-height: 1.3;
}

.sgbit-footer-brand p {
    font-size: 12px;
    color: #8da8bc;
    margin: 0;
}

.sgbit-footer-accred {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: 12px;
}

.sgbit-accred-badge {
    display: inline-block;
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.2);
    color: #d4e6f4;
    font-size: 11px;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 4px;
    letter-spacing: 0.5px;
}

.sgbit-footer-heading {
    color: var(--sgbit-gold);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    margin-bottom: 14px;
    padding-bottom: 8px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.iisc-footer .iisc-footer-bottom {
    border-top-color: rgba(255,255,255,0.08);
}

/* ── Admissions Page ────────────────────────────────────────────────────── */
.sgbit-admission-steps {
    counter-reset: steps;
}

.sgbit-admission-step {
    display: flex;
    gap: 20px;
    margin-bottom: 28px;
    align-items: flex-start;
}

.sgbit-step-num {
    counter-increment: steps;
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background: var(--sgbit-accent);
    color: #fff;
    font-size: 18px;
    font-weight: 800;
    display: grid;
    place-items: center;
    flex-shrink: 0;
}

.sgbit-step-num::after {
    content: counter(steps);
}

.sgbit-step-content h4 {
    font-size: 17px;
    font-weight: 700;
    color: var(--sgbit-primary);
    margin-bottom: 4px;
}

.sgbit-step-content p {
    font-size: 14px;
    color: var(--sgbit-muted);
    margin: 0;
}

/* ── Accordion (for Q&A or details) ────────────────────────────────────── */
.sgbit-accordion .accordion-button {
    font-weight: 600;
    color: var(--sgbit-primary);
    font-size: 15px;
}

.sgbit-accordion .accordion-button:not(.collapsed) {
    background: var(--sgbit-light);
    color: var(--sgbit-accent);
    box-shadow: none;
}

.sgbit-accordion .accordion-button::after {
    color: var(--sgbit-accent);
}

/* ── Pagination ─────────────────────────────────────────────────────────── */
.sgbit-pagination .page-link {
    color: var(--sgbit-primary);
    border-color: var(--sgbit-border);
}

.sgbit-pagination .page-item.active .page-link {
    background-color: var(--sgbit-accent);
    border-color: var(--sgbit-accent);
}

.sgbit-pagination .page-link:hover {
    background-color: var(--sgbit-light);
    color: var(--sgbit-accent);
}

/* ── Responsive ─────────────────────────────────────────────────────────── */
@media (max-width: 991px) {
    .sgbit-page-hero h1 { font-size: 28px; }
    .sgbit-section-head h2 { font-size: 26px; }
    .sgbit-contact-grid { grid-template-columns: 1fr; }
    .sgbit-stat-value { font-size: 38px; }
}

@media (max-width: 767px) {
    .sgbit-section { padding: 40px 0; }
    .sgbit-page-hero { padding: 40px 0 36px; }
    .sgbit-page-hero h1 { font-size: 1.55rem; }
    .sgbit-content-box { padding: 20px; }
    .sgbit-message-card { padding: 20px; }
    .sgbit-message-person { flex-direction: column; text-align: center; }
    .sgbit-contact-form-card { padding: 20px 16px; }
    .sgbit-contact-info-card { padding: 20px 16px; }
}

@media (max-width: 575px) {
    .sgbit-section-head h2 { font-size: 22px; }
    .sgbit-dept-nav a { padding: 10px 14px; font-size: 13px; }
}
