/* ==========================================================================
   GURUKUL INSTITUTE OF TECHNOLOGY - DESIGN SYSTEM & STYLESHEET
   ========================================================================== */

/* --- CSS Variables & Design Tokens --- */
:root {
    color-scheme: light;
    --primary-color: #0f3b5f;      /* Deep Navy Blue */
    --secondary-color: #00b4d8;    /* Vibrant Cyan/Teal */
    --accent-orange: #ff8800;      /* Bright Orange */
    --dark-blue-bg: #0b2d49;       /* Darker Blue for Top Bar/Menu */
    --footer-dark: #051b2c;        /* Blackish Blue for Footer Copyright */
    --text-color: #2b3a4a;         /* Charcoal text for readability */
    --text-light: #5a6e7f;         /* Slate gray for secondary text */
    --bg-light: #f4f6f9;           /* Light white/gray background */
    --border-color: #e2eaf1;       /* Light border tone */
    --white: #ffffff;
    --gold: #ffc300;
    
    /* Box Shadows */
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 8px 20px rgba(15, 59, 95, 0.08);
    --shadow-lg: 0 12px 30px rgba(15, 59, 95, 0.15);
    
    /* Transitions */
    --transition-fast: all 0.2s ease;
    --transition-smooth: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

/* --- Base & Reset --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    color: var(--text-color);
    background-color: var(--bg-light);
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    color: var(--primary-color);
    line-height: 1.2;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition-fast);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

.container {
    width: 95%;
    max-width: 1240px;
    margin: 0 auto;
}

.section-padding {
    padding: 70px 0;
}

.section-title {
    text-align: center;
    font-size: 2.2rem;
    margin-bottom: 50px;
    position: relative;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background-color: var(--secondary-color);
    margin: 10px auto 0;
    border-radius: 2px;
}

/* ==========================================================================
   1. Top Utility Bar
   ========================================================================== */
.top-bar {
    background-color: #2fb6d4; /* Bright PCCOE Cyan-Blue */
    color: var(--white);
    font-size: 0.85rem;
    padding: 0;
    min-height: 40px;
    display: flex;
    align-items: center;
    border-bottom: none;
}

.top-bar-container {
    display: flex;
    justify-content: space-between;
    align-items: stretch;
    height: 40px;
}

.top-bar-contact {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 0;
}

.top-bar-contact a {
    display: flex;
    align-items: center;
    gap: 6px;
    font-weight: 500;
}

.top-bar-contact a:hover {
    color: var(--primary-color);
}

.top-bar-contact .separator {
    opacity: 0.5;
}

.top-bar-links {
    display: flex;
    align-items: stretch;
    height: 100%;
}

.top-bar-links a {
    display: flex;
    align-items: center;
    padding: 0 16px;
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--white);
    transition: background-color 0.2s ease;
    border-right: 1px solid rgba(255, 255, 255, 0.3);
}

.top-bar-links a:first-child {
    border-left: 1px solid rgba(255, 255, 255, 0.3);
}

.top-bar-links .btn-study {
    background-color: #f15a24; /* PCCOE Orange */
}

.top-bar-links .btn-study:hover {
    background-color: #d9481b;
}

.top-bar-links .btn-international {
    background-color: #002147; /* PCCOE Dark Navy */
}

.top-bar-links .btn-international:hover {
    background-color: #001530;
}

.top-bar-links .btn-admission {
    background-color: #f15a24;
}

.top-bar-links .btn-admission:hover {
    background-color: #d9481b;
}

.top-bar-links .btn-media {
    background-color: #2fb6d4;
}

.top-bar-links .btn-media:hover {
    background-color: #1fa3c4;
}

.top-bar-links .btn-aicte {
    background-color: #2fb6d4;
}

.top-bar-links .btn-aicte:hover {
    background-color: #1fa3c4;
}

/* ==========================================================================
   2. Main Identity Header
   ========================================================================== */
.main-header {
    background-color: var(--white);
    padding: 15px 0;
    border-bottom: 1px solid var(--border-color);
}

.header-container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 40px; /* Moves logos closer to the college name */
}

.header-logo-left, .header-logo-right {
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

.logo-outer-circle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 90px;
    height: 90px;
    border-radius: 50%;
    border: 2px solid #0056b3; /* Primary Blue outer ring */
    background-color: #f0f4f8; /* Soft blue background */
    padding: 5px;
    position: relative;
    box-shadow: 0 4px 10px rgba(0, 86, 179, 0.06);
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Orange dashed border matching the color scheme */
.logo-outer-circle::before {
    content: '';
    position: absolute;
    top: 3px;
    left: 3px;
    right: 3px;
    bottom: 3px;
    border-radius: 50%;
    border: 1.5px dashed #f15a24; /* Primary Orange dashed ring */
    pointer-events: none;
    transition: all 0.3s ease;
}

.logo-inner-circle {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background-color: var(--white);
    border: 2.5px double #0056b3; /* Blue double border */
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: inset 0 2px 4px rgba(0,0,0,0.05);
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    padding: 5px;
}

.college-logo, .govt-logo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    mix-blend-mode: multiply; /* Blends off-white image backgrounds seamlessly */
}

/* Hover effects */
.logo-outer-circle:hover {
    transform: scale(1.08) rotate(5deg); /* Subtle gear-style rotation on hover */
    border-color: #f15a24; /* Swaps colors on hover */
    box-shadow: 0 6px 18px rgba(241, 90, 36, 0.15);
}

.logo-outer-circle:hover::before {
    border-color: #0056b3;
}

.logo-outer-circle:hover .logo-inner-circle {
    border-color: #f15a24;
}

/* MSBTE specific outer circle (starts with Orange outer ring and Blue dashed ring) */
.logo-outer-circle.msbte-outer {
    border-color: #f15a24;
    background-color: #fffaf5; /* Soft orange background */
    box-shadow: 0 4px 10px rgba(241, 90, 36, 0.06);
}

.logo-outer-circle.msbte-outer::before {
    border-color: #0056b3; /* Blue dashed ring */
}

.logo-outer-circle.msbte-outer .logo-inner-circle {
    border-color: #f15a24; /* Orange double border */
    padding: 11px; /* Zoom out the logo by adding more inner padding */
}

.logo-outer-circle.msbte-outer:hover {
    border-color: #0056b3;
    box-shadow: 0 6px 18px rgba(0, 86, 179, 0.15);
}

.logo-outer-circle.msbte-outer:hover::before {
    border-color: #f15a24;
}

.logo-outer-circle.msbte-outer:hover .logo-inner-circle {
    border-color: #0056b3;
}

.header-title {
    text-align: center;
}

.header-title h4 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--primary-color);
    letter-spacing: 0.8px;
    margin-bottom: 4px;
    text-transform: uppercase;
}

.header-title h1 {
    font-size: 2.05rem;
    color: #0056b3; /* Rich Royal Blue */
    letter-spacing: 0.5px;
    margin-bottom: 6px;
    font-weight: 800;
    text-transform: uppercase;
}

.accreditations {
    font-size: 0.82rem;
    color: var(--text-light);
    font-weight: 700;
    font-style: italic;
    line-height: 1.4;
}

.header-logo-right {
    display: flex;
    justify-content: flex-end;
    align-items: center;
}

/* ==========================================================================
   3. Navigation Bar
   ========================================================================== */
.nav-bar {
    background-color: #f8f9fa; /* Light white/gray background */
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 0;
    z-index: 100;
    border-top: 1px solid #e9ecef;
    border-bottom: 2px solid #e2eaf1;
}

.nav-container {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0;
}

.menu-toggle {
    display: none;
    font-size: 1.5rem;
    color: var(--primary-color);
    cursor: pointer;
    padding: 15px;
}

.nav-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    width: 100%;
    gap: 2px;
}

.nav-links > li {
    position: relative;
}

.nav-links > li > a {
    display: block;
    padding: 12px 14px;
    font-size: 0.82rem;
    font-weight: 700;
    color: #1a1a1a;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    border-top: 3px solid transparent;
    transition: all 0.15s ease;
}

.nav-links > li > a:hover {
    color: #0056b3;
    background-color: #e9ecef;
}

.nav-links > li > a.active {
    color: #0056b3;
    background-color: var(--white);
    border-top: 3px solid #0056b3;
    border-left: 1px solid #e2eaf1;
    border-right: 1px solid #e2eaf1;
    box-shadow: 0 -2px 5px rgba(0,0,0,0.03);
}

/* Dropdown styling */
.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background-color: var(--white);
    min-width: 220px;
    box-shadow: var(--shadow-md);
    border-radius: 0 0 6px 6px;
    border-top: 3px solid #0056b3;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: var(--transition-fast);
    z-index: 1000;
}

.nav-links > li:hover {
    z-index: 150;
}

.nav-links > li:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-menu li a {
    display: block;
    padding: 12px 20px;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-color);
    border-bottom: 1px solid #f1f5f9;
    text-transform: none;
    letter-spacing: 0;
}

.dropdown-menu li a:hover {
    background-color: var(--bg-light);
    color: #0056b3;
    padding-left: 25px;
}

.dropdown-menu li:last-child a {
    border-bottom: none;
}

/* ==========================================================================
   4. Spotlight Banner
   ========================================================================== */
.spotlight-bar {
    display: flex;
    background-color: #f0f7fc;
    border-bottom: 1px solid #d1e4f2;
    height: 42px;
    align-items: center;
    overflow: hidden;
}

.spotlight-title {
    background-color: var(--secondary-color);
    color: var(--white);
    padding: 0 25px;
    height: 100%;
    display: flex;
    align-items: center;
    font-weight: 700;
    font-size: 0.85rem;
    position: relative;
    z-index: 5;
    flex-shrink: 0;
}

/* Triangular effect like PCCOE */
.spotlight-title::after {
    content: '';
    position: absolute;
    right: -15px;
    top: 0;
    width: 0;
    height: 0;
    border-top: 21px solid transparent;
    border-bottom: 21px solid transparent;
    border-left: 15px solid var(--secondary-color);
}

.spotlight-content {
    flex: 1;
    overflow: hidden;
    height: 100%;
    display: flex;
    align-items: center;
    padding-left: 30px;
}

.marquee-wrapper {
    width: 100%;
    overflow: hidden;
}

.marquee-text {
    display: flex;
    white-space: nowrap;
    animation: marquee 15s linear infinite;
}

.marquee-text:hover {
    animation-play-state: paused;
}

.marquee-item {
    padding-right: 50px;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--primary-color);
    display: flex;
    align-items: center;
    gap: 8px;
}

.text-gold {
    color: var(--gold);
}

.spotlight-quick-links {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 0 20px;
    height: 100%;
    background-color: #f0f7fc;
    z-index: 5;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--primary-color);
}

.spotlight-quick-links a:hover {
    color: var(--secondary-color);
}

.bar-separator {
    color: #cbd5e1;
}

@keyframes marquee {
    0% { transform: translate3d(0, 0, 0); }
    100% { transform: translate3d(-50%, 0, 0); } /* Loop cleanly */
}

/* ==========================================================================
   5. Hero Banner Slider
   ========================================================================== */
.hero-slider {
    position: relative;
    height: 520px;
    overflow: hidden;
    background-color: #000;
}

.slider-wrapper {
    height: 100%;
    width: 100%;
    position: relative;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0;
    z-index: 1;
    transition: opacity 1s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
}

.slide.active {
    opacity: 1;
    z-index: 2;
}

.slide-content {
    color: var(--white);
    max-width: 700px;
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease 0.5s;
}

.slide.active .slide-content {
    opacity: 1;
    transform: translateY(0);
}

.slide-content h2 {
    font-size: 3rem;
    color: var(--white);
    margin-bottom: 20px;
    text-shadow: 0 2px 10px rgba(0,0,0,0.5);
    font-weight: 800;
}

.slide-content p {
    font-size: 1.1rem;
    margin-bottom: 30px;
    opacity: 0.9;
    text-shadow: 0 1px 5px rgba(0,0,0,0.5);
}

.slide-actions {
    display: flex;
    gap: 15px;
}

.btn {
    padding: 12px 28px;
    border-radius: 5px;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 0.5px;
    transition: var(--transition-fast);
}

.btn-primary {
    background-color: var(--secondary-color);
    color: var(--white);
}

.btn-primary:hover {
    background-color: #0096b4;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 180, 216, 0.4);
}

.btn-secondary {
    background-color: transparent;
    color: var(--white);
    border: 2px solid var(--white);
}

.btn-secondary:hover {
    background-color: var(--white);
    color: var(--primary-color);
    transform: translateY(-2px);
}

/* Slider Controls */
.slider-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.4);
    border: none;
    color: var(--white);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    font-size: 1.2rem;
    cursor: pointer;
    z-index: 10;
    transition: var(--transition-fast);
    display: flex;
    align-items: center;
    justify-content: center;
}

.slider-nav:hover {
    background: var(--secondary-color);
}

.prev-slide { left: 20px; }
.next-slide { right: 20px; }

.slider-dots {
    position: absolute;
    bottom: 25px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    display: flex;
    gap: 10px;
}

.slider-dots .dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.4);
    cursor: pointer;
    transition: var(--transition-fast);
}

.slider-dots .dot.active {
    background-color: var(--secondary-color);
    width: 25px;
    border-radius: 6px;
}

/* ==========================================================================
   6. Three Columns Section (About, News, Desk)
   ========================================================================== */
.pillars-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.pillar-card {
    background-color: var(--white);
    border-radius: 10px;
    box-shadow: var(--shadow-md);
    padding: 30px;
    display: flex;
    flex-direction: column;
    transition: var(--transition-smooth);
    border-top: 4px solid var(--primary-color);
    position: relative;
    overflow: hidden;
}

.pillar-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

/* Specific Top Border Themes */
.pillar-card:nth-child(2) { border-top-color: var(--secondary-color); }
.pillar-card:nth-child(3) { border-top-color: var(--accent-orange); }

.pillar-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--border-color);
}

.pillar-icon-circle {
    width: 55px;
    height: 55px;
    border-radius: 50%;
    background-color: var(--bg-light);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border: 2px solid var(--border-color);
    flex-shrink: 0;
}

.pillar-icon-circle img {
    width: 35px;
    height: 35px;
    object-fit: contain;
}

.pillar-icon-circle.blue-theme {
    background-color: #e0f2fe;
    border-color: #bae6fd;
    color: var(--secondary-color);
    font-size: 1.4rem;
}

.pillar-icon-circle.image-theme img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.pillar-header h3 {
    font-size: 1.15rem;
    font-weight: 700;
    letter-spacing: 0.5px;
}

.pillar-body {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.pillar-body p {
    font-size: 0.9rem;
    color: var(--text-light);
    margin-bottom: 15px;
}

.pillar-body .quote {
    font-style: italic;
    color: var(--text-color);
    font-size: 0.92rem;
    position: relative;
    padding-left: 15px;
    border-left: 3px solid var(--accent-orange);
    margin-bottom: 20px;
}

.director-name {
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 0 !important;
}

.director-title {
    font-size: 0.8rem !important;
    color: var(--text-light);
}

/* News List Specifics */
.news-list-container {
    height: 220px;
    overflow-y: auto;
    margin-bottom: 20px;
    padding-right: 5px;
}

/* Custom scrollbar for news list */
.news-list-container::-webkit-scrollbar {
    width: 5px;
}
.news-list-container::-webkit-scrollbar-track {
    background: #f1f5f9;
}
.news-list-container::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 3px;
}

.news-list li {
    display: flex;
    gap: 15px;
    padding: 12px 0;
    border-bottom: 1px dashed var(--border-color);
}

.news-list li:first-child { padding-top: 0; }
.news-list li:last-child { border-bottom: none; }

.news-date {
    width: 45px;
    height: 45px;
    background-color: var(--primary-color);
    color: var(--white);
    border-radius: 6px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.75rem;
    line-height: 1.2;
    flex-shrink: 0;
}

.news-card .news-list li:nth-child(even) .news-date {
    background-color: var(--secondary-color);
}

.news-date span:first-child {
    font-size: 1.1rem;
}

.news-text p {
    font-size: 0.85rem;
    color: var(--text-color);
    margin-bottom: 0;
}

.read-more {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--secondary-color);
    margin-top: auto;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.read-more::after {
    content: '→';
    transition: var(--transition-fast);
}

.read-more:hover {
    color: var(--primary-color);
}

.read-more:hover::after {
    transform: translateX(4px);
}

/* ==========================================================================
   7. At A Glance Section (Collage + KPI Infographics Wheel)
   ========================================================================== */
.glance-section {
    background-color: var(--white);
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}

.glance-grid {
    display: grid;
    grid-template-columns: 55% 45%;
    gap: 40px;
    align-items: center;
}

/* Collage styling */
.glance-collage {
    width: 100%;
}

.collage-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-auto-rows: 110px;
    gap: 12px;
}

.collage-item {
    background-size: cover;
    background-position: center;
    border-radius: 8px;
    position: relative;
    overflow: hidden;
    cursor: pointer;
    box-shadow: var(--shadow-sm);
}

.collage-item.large {
    grid-column: span 2;
    grid-row: span 2;
}

.collage-item::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(15, 59, 95, 0.8), rgba(0,0,0,0));
    opacity: 0.7;
    transition: var(--transition-fast);
}

.collage-overlay {
    position: absolute;
    bottom: 15px;
    left: 15px;
    color: var(--white);
    z-index: 5;
    font-weight: 700;
    font-size: 0.9rem;
    letter-spacing: 0.5px;
    text-shadow: 0 1px 3px rgba(0,0,0,0.6);
}

.collage-item:hover::after {
    opacity: 0.95;
    background: linear-gradient(to top, var(--secondary-color), rgba(15, 59, 95, 0.4));
}

.collage-item.no-overlay::after {
    display: none !important;
}

.collage-item:hover {
    transform: scale(1.02);
    box-shadow: var(--shadow-md);
}

/* KPI Infographics Circular Wheel */
.glance-wheel-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.infographic-wheel {
    position: relative;
    width: 340px;
    height: 340px;
    border-radius: 50%;
    border: 2.5px dashed #c0d3e5;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 30px;
    background-color: rgba(240, 244, 248, 0.4);
}

.wheel-center {
    width: 125px;
    height: 125px;
    border-radius: 50%;
    background-color: var(--primary-color);
    color: var(--white);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    box-shadow: var(--shadow-md), inset 0 2px 4px rgba(255,255,255,0.2);
    z-index: 5;
    border: 4px solid var(--white);
    padding: 10px;
}

.wheel-center .trophy-icon {
    font-size: 2.4rem;
    color: #ffc300; /* Gold */
    margin-bottom: 4px;
    filter: drop-shadow(0 2px 5px rgba(0,0,0,0.15));
}

.wheel-center h3 {
    color: var(--white);
    font-size: 1.3rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 2px;
}

.wheel-center p {
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 1px;
    opacity: 0.9;
}

/* Wheel nodes positioned using polar layouts */
.wheel-node {
    position: absolute;
    width: 82px;
    height: 82px;
    border-radius: 50%;
    background-color: var(--white);
    box-shadow: var(--shadow-sm);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition-smooth);
    z-index: 4;
    border: 2.5px solid #e2eaf1;
    overflow: hidden;
}

/* Position surrounding nodes */
.n1 { top: -25px; left: 129px; }                /* 12 o'clock */
.n2 { top: 50px; right: -25px; }                 /* 2 o'clock */
.n3 { bottom: 50px; right: -25px; }              /* 4 o'clock */
.n4 { bottom: -25px; left: 129px; }             /* 6 o'clock */
.n5 { bottom: 50px; left: -25px; }               /* 8 o'clock */
.n6 { top: 50px; left: -25px; }                  /* 10 o'clock */

/* Accreditation Logos inside Wheel Nodes */
.accreditation-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: all 0.3s ease;
}

.wheel-node > span {
    display: none; /* Keep generic labels hidden in the nodes, text is shown in the detail card */
}

/* Hover effects for nodes */
.wheel-node:hover,
.wheel-node.active-node {
    background-color: var(--white);
    border-color: var(--secondary-color);
    transform: scale(1.16);
    box-shadow: 0 8px 24px rgba(0, 180, 216, 0.22);
}

.wheel-node:hover .accreditation-img,
.wheel-node.active-node .accreditation-img {
    transform: scale(1.08);
}

/* Interactive detail card */
.wheel-details-card {
    width: 100%;
    max-width: 380px;
    background-color: var(--bg-light);
    border-radius: 8px;
    padding: 15px 20px;
    text-align: center;
    border-left: 4px solid var(--secondary-color);
    box-shadow: var(--shadow-sm);
    min-height: 110px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.wheel-details-card h4 {
    font-size: 1.05rem;
    margin-bottom: 6px;
    color: var(--primary-color);
}

.wheel-details-card p {
    font-size: 0.85rem;
    color: var(--text-light);
    line-height: 1.5;
}

/* ==========================================================================
   8. Quick Links / Feature Icons Section
   ========================================================================== */
.quick-icons-section {
    background-color: #edf5fa;
}

.icons-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 20px;
}

.icon-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    background-color: var(--white);
    padding: 25px 15px;
    border-radius: 10px;
    box-shadow: var(--shadow-sm);
    transition: var(--transition-smooth);
}

.icon-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.icon-wrapper {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 15px;
    font-size: 1.8rem;
    color: var(--white);
    transition: var(--transition-smooth);
}

.icon-card:hover .icon-wrapper {
    transform: rotate(360deg);
}

/* Icon specific theme colors from PCCOE style */
.bg-blue   { background-color: #2b70c9; }
.bg-cyan   { background-color: #00b4d8; }
.bg-orange { background-color: #ff9e00; }
.bg-navy   { background-color: #0b2d49; }
.bg-purple { background-color: #8338ec; }
.bg-teal   { background-color: #008080; }

.icon-card h4 {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--primary-color);
}

/* ==========================================================================
   9. Recruiters Banner
   ========================================================================== */
.recruiters-section {
    position: relative;
    background: linear-gradient(180deg, #f8fafc 0%, #ffffff 100%);
    color: var(--text-color);
    padding: 25px 0 35px 0;
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    align-items: center;
    overflow: hidden;
}

.recruiters-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('assets/recruiter_bg.png');
    background-size: contain;
    background-position: center;
    background-repeat: repeat-x;
    opacity: 0.18;
    pointer-events: none;
    z-index: 1;
}

.recruiters-title-bar {
    position: relative;
    z-index: 2;
    display: inline-block;
    margin: 0 auto 20px auto;
    padding: 6px 18px;
    background-color: rgba(0, 180, 216, 0.06);
    border: 1px solid rgba(0, 180, 216, 0.15);
    border-radius: 50px;
    text-align: center;
    font-weight: 700;
    font-size: 0.75rem;
    letter-spacing: 2px;
    color: var(--primary-color);
    box-shadow: 0 2px 8px rgba(0, 180, 216, 0.04);
}

.recruiters-carousel-container {
    position: relative;
    z-index: 2;
    padding: 10px 0;
    overflow: hidden;
    position: relative;
    width: 100%;
}

/* Infinite sliding track */
.recruiters-track {
    display: flex;
    align-items: center;
    gap: 40px;
    width: calc(230px * 22); /* Large width to hold 22 slides (11 logos * 2) */
    animation: scrollLogos 28s linear infinite;
}

.recruiter-logo {
    width: 190px;
    height: 70px;
    background-color: var(--white);
    border: 1.5px solid #f1f5f9;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 12px 20px;
    box-shadow: 0 4px 12px rgba(148, 163, 184, 0.06);
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    opacity: 0.9;
}

.recruiter-logo img {
    max-height: 100%;
    max-width: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    transition: all 0.3s ease;
}

.recruiter-logo:hover {
    opacity: 1;
    transform: translateY(-4px) scale(1.02);
    border-color: rgba(0, 180, 216, 0.4);
    box-shadow: 0 10px 25px rgba(0, 180, 216, 0.15);
}

.recruiter-logo:hover img {
    transform: scale(1.04);
}

@keyframes scrollLogos {
    0% { transform: translateX(0); }
    100% { transform: translateX(calc(-230px * 11)); } /* Slide exact half to repeat (11 logos) */
}

/* ==========================================================================
   10. Testimonials Section
   ========================================================================== */
.testimonials-section {
    background-color: var(--white);
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
    margin-bottom: 40px;
}

.testimonial-card {
    background-color: var(--bg-light);
    border-radius: 12px;
    box-shadow: var(--shadow-sm);
    padding: 30px 20px 20px;
    position: relative;
    display: flex;
    flex-direction: column;
    margin-top: 40px; /* Offset to make room for avatar */
    border-top: 5px solid var(--primary-color);
    transition: var(--transition-smooth);
}

.testimonial-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

/* Avatar placement overlapping border top */
.student-avatar-container {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    position: absolute;
    top: -38px;
    left: 50%;
    transform: translateX(-50%);
    overflow: hidden;
    border: 4px solid var(--white);
    box-shadow: var(--shadow-sm);
}

.student-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Different top borders & avatar backgrounds */
.border-orange { border-top-color: var(--accent-orange); }
.orange-bg { background-color: var(--accent-orange); }

.border-cyan { border-top-color: var(--secondary-color); }
.cyan-bg { background-color: var(--secondary-color); }

.border-green { border-top-color: #55a630; }
.green-bg { background-color: #55a630; }

.border-red { border-top-color: #e63946; }
.red-bg { background-color: #e63946; }

.testimonial-content {
    text-align: center;
    display: flex;
    flex-direction: column;
    height: 100%;
    padding-top: 15px;
}

.testimonial-content h4 {
    font-size: 1.05rem;
    color: var(--primary-color);
    margin-bottom: 2px;
    font-weight: 700;
}

.student-meta {
    font-size: 0.72rem;
    color: var(--text-light);
    margin-bottom: 10px;
    font-weight: 600;
}

.rating {
    color: var(--gold);
    font-size: 0.8rem;
    margin-bottom: 12px;
}

.quote-text-container {
    font-size: 0.85rem;
    color: var(--text-color);
    font-style: italic;
    line-height: 1.5;
    margin-bottom: 15px;
    flex: 1;
}

.social-link {
    margin-top: auto;
    display: flex;
    justify-content: center;
    gap: 10px;
}

.social-link a {
    color: #a0aec0;
    font-size: 1rem;
    transition: var(--transition-fast);
}

.social-link a:hover {
    color: var(--secondary-color);
}

.view-more-container {
    text-align: center;
}

.btn-view-more {
    display: inline-block;
    background-color: var(--primary-color);
    color: var(--white);
    padding: 10px 30px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    transition: var(--transition-fast);
    box-shadow: var(--shadow-sm);
}

.btn-view-more:hover {
    background-color: var(--secondary-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 180, 216, 0.3);
}

/* ==========================================================================
   11. Footer Section
   ========================================================================== */
.main-footer {
    background-color: var(--dark-blue-bg);
    color: var(--white);
}

/* Top footer widgets background is cyan like PCCOE */
.footer-widgets {
    background-color: var(--secondary-color);
    padding: 50px 0;
    color: var(--white);
}

.widgets-grid {
    display: grid;
    grid-template-columns: 32% 21% 21% 26%;
    gap: 30px;
}

.widget-col h3 {
    color: var(--white);
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 25px;
    position: relative;
}

.widget-col h3::after {
    content: '';
    display: block;
    width: 45px;
    height: 3px;
    background-color: var(--white);
    margin-top: 8px;
    border-radius: 2px;
}

.contact-details p {
    display: flex;
    gap: 12px;
    font-size: 0.85rem;
    margin-bottom: 15px;
    line-height: 1.5;
}

.contact-details p i {
    font-size: 1rem;
    margin-top: 3px;
    opacity: 0.9;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links li a {
    font-size: 0.85rem;
    opacity: 0.85;
    display: inline-block;
    transition: var(--transition-fast);
}

.footer-links li a:hover {
    opacity: 1;
    padding-left: 5px;
}

.map-container {
    overflow: hidden;
    border: 3px solid rgba(255,255,255,0.25);
    border-radius: 8px;
}

/* Middle links bar styling */
.footer-links-bar {
    background-color: #0b2235;
    padding: 15px 0;
    font-size: 0.78rem;
    text-align: center;
    border-bottom: 1px solid rgba(255,255,255,0.05);
    color: #a0aec0;
}

.footer-links-bar .links-title {
    font-weight: 700;
    color: var(--white);
    margin-right: 10px;
}

.footer-links-bar a {
    color: #cbd5e1;
    margin: 0 6px;
}

.footer-links-bar a:hover {
    color: var(--secondary-color);
}

/* Bottom copyright bar */
.footer-bottom {
    background-color: var(--footer-dark);
    padding: 18px 0;
    font-size: 0.8rem;
    color: #a0aec0;
}

.bottom-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}

.dev-link {
    color: var(--secondary-color);
    font-weight: 600;
}

.dev-link:hover {
    color: var(--white);
}

/* ==========================================================================
   12. Floating Social Media Handle Bar
   ========================================================================== */
.floating-socials {
    position: fixed;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    z-index: 99;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.social-btn {
    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 1.1rem;
    border-radius: 4px 0 0 4px;
    transition: var(--transition-smooth);
    box-shadow: var(--shadow-sm);
}

.social-btn:hover {
    width: 50px;
    padding-right: 8px;
}

.facebook  { background-color: #3b5998; }
.linkedin  { background-color: #0077b5; }
.twitter   { background-color: #111111; }
.instagram { background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888); }
.youtube   { background-color: #ff0000; }

/* ==========================================================================
   13. Responsive Media Queries
   ========================================================================== */
@media screen and (max-width: 1024px) {
    .header-title h1 { font-size: 1.6rem; }
    .header-title h3 { font-size: 1rem; }
    .nav-links > li > a { padding: 15px 8px; font-size: 0.8rem; }
    .pillars-grid { grid-template-columns: repeat(2, 1fr); }
    .pillars-grid > div:last-child { grid-column: span 2; }
    .testimonials-grid { grid-template-columns: repeat(2, 1fr); }
    .widgets-grid { grid-template-columns: repeat(2, 1fr); }
    .glance-grid { grid-template-columns: 100%; gap: 30px; }
}

@media screen and (max-width: 768px) {
    .top-bar-container { flex-direction: column; gap: 8px; text-align: center; }
    .header-container { display: flex; flex-direction: column; gap: 15px; text-align: center; }
    .header-logo-left { justify-content: center; }
    .header-logo-right { display: none; }
    
    .menu-toggle { display: block; }
    .nav-bar { background-color: var(--white); }
    
    .nav-links {
        display: none;
        flex-direction: column;
        width: 100%;
        position: absolute;
        top: 100%;
        left: 0;
        background-color: var(--white);
        box-shadow: var(--shadow-md);
        border-top: 1px solid var(--border-color);
    }
    
    .nav-links.open { display: flex; }
    .nav-links > li > a { padding: 15px 25px; border-bottom: 1px solid #f1f5f9; }
    
    .dropdown-menu {
        position: static;
        opacity: 1;
        visibility: visible;
        display: none;
        box-shadow: none;
        border-top: none;
        background-color: #f8fafc;
        transform: none;
        padding-left: 15px;
    }
    
    .dropdown:hover .dropdown-menu { display: block; }
    
    .spotlight-bar { flex-direction: column; height: auto; padding: 10px 0; }
    .spotlight-title { width: 100%; justify-content: center; height: 35px; }
    .spotlight-title::after { display: none; }
    .spotlight-content { padding-left: 0; margin: 8px 0; }
    .spotlight-quick-links { width: 100%; justify-content: center; background-color: transparent; }
    
    .hero-slider { height: 400px; }
    .slide-content h2 { font-size: 2.2rem; }
    .slide-content p { font-size: 0.95rem; }
    
    .pillars-grid { grid-template-columns: 100%; }
    .pillars-grid > div:last-child { grid-column: span 1; }
    .icons-grid { grid-template-columns: repeat(3, 1fr); }
    .testimonials-grid { grid-template-columns: 100%; }
    .widgets-grid { grid-template-columns: 100%; }
}

@media screen and (max-width: 480px) {
    .icons-grid { grid-template-columns: repeat(2, 1fr); }
    .slide-content h2 { font-size: 1.8rem; }
    .slide-actions { flex-direction: column; gap: 10px; width: 100%; }
    .btn { text-align: center; }
    .infographic-wheel { width: 280px; height: 280px; }
    .wheel-node { width: 55px; height: 55px; }
    .wheel-center { width: 90px; height: 90px; }
    .n1 { left: 112.5px; }
    .n2 { right: -10px; }
    .n3 { right: -10px; }
    .n4 { left: 112.5px; }
    .n5 { left: -10px; }
    .n6 { left: -10px; }
}

/* ==========================================================================
   14. Subpage Templates & Components Styling
   ========================================================================== */
.page-banner {
    position: relative;
    background-size: cover;
    background-position: center;
    padding: 20px 0;
    color: var(--white);
    text-align: center;
    border-bottom: 4px solid var(--secondary-color);
}

.page-banner::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(rgba(15, 59, 95, 0.88), rgba(5, 27, 44, 0.95));
    z-index: 1;
}

.banner-content {
    position: relative;
    z-index: 2;
}

.banner-content h1 {
    font-size: 1.8rem;
    color: var(--white);
    margin-bottom: 4px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.banner-content p {
    font-size: 0.88rem;
    opacity: 0.9;
    font-weight: 500;
    margin: 0;
}

.banner-content p a {
    color: var(--secondary-color);
}

.banner-content p a:hover {
    color: var(--white);
}

/* Two Column Layout for Subpages */
.subpage-layout {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 40px;
    margin-top: 40px;
    margin-bottom: 60px;
}

/* Sidebar Menu */
.sidebar-nav {
    background-color: var(--white);
    border-radius: 8px;
    box-shadow: var(--shadow-sm);
    padding: 20px;
    align-self: start;
    border: 1px solid var(--border-color);
}

.sidebar-title {
    font-size: 1.15rem;
    color: var(--primary-color);
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--secondary-color);
    text-transform: uppercase;
    font-weight: 700;
}

.sidebar-menu li {
    margin-bottom: 8px;
}

.sidebar-menu li a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 15px;
    font-size: 0.88rem;
    font-weight: 600;
    border-radius: 4px;
    color: var(--text-color);
    transition: var(--transition-fast);
}

.sidebar-menu li a i {
    color: var(--secondary-color);
    font-size: 0.95rem;
}

.sidebar-menu li a:hover,
.sidebar-menu li a.active {
    background-color: var(--primary-color);
    color: var(--white);
}

.sidebar-menu li a:hover i,
.sidebar-menu li a.active i {
    color: var(--gold);
}

/* Main Content Area */
.subpage-content {
    background-color: var(--white);
    border-radius: 8px;
    box-shadow: var(--shadow-sm);
    padding: 40px;
    border: 1px solid var(--border-color);
}

.subpage-content h2 {
    font-size: 1.75rem;
    margin-bottom: 25px;
    position: relative;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--border-color);
}

.subpage-content h2::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -1px;
    width: 80px;
    height: 3px;
    background-color: var(--accent-orange);
}

.subpage-content h3 {
    font-size: 1.25rem;
    margin: 25px 0 15px;
    color: var(--primary-color);
    border-left: 4px solid var(--secondary-color);
    padding-left: 10px;
}

.subpage-content p {
    margin-bottom: 15px;
    color: var(--text-color);
    font-size: 0.95rem;
    line-height: 1.7;
}

/* Custom Table Design */
.table-responsive {
    overflow-x: auto;
    margin: 25px 0;
}

.custom-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
    text-align: left;
}

.custom-table th {
    background-color: var(--primary-color);
    color: var(--white);
    padding: 12px 15px;
    font-weight: 600;
}

.custom-table td {
    padding: 12px 15px;
    border-bottom: 1px solid var(--border-color);
    color: var(--text-color);
}

.custom-table tr:nth-child(even) {
    background-color: var(--bg-light);
}

.custom-table tr:hover {
    background-color: rgba(0, 180, 216, 0.05);
}

/* Form Styles */
.form-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-top: 25px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group.full-width {
    grid-column: span 2;
}

.form-group label {
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--primary-color);
}

.form-control {
    padding: 12px 15px;
    border: 1.5px solid var(--border-color);
    border-radius: 5px;
    font-family: inherit;
    font-size: 0.9rem;
    transition: var(--transition-fast);
}

.form-control:focus {
    outline: none;
    border-color: var(--secondary-color);
    box-shadow: 0 0 0 3px rgba(0, 180, 216, 0.15);
}

/* Cards grids for Staff / Departments */
.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 25px;
    margin: 25px 0;
}

.profile-card {
    background-color: var(--white);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    text-align: center;
    transition: var(--transition-smooth);
    padding: 25px 15px;
}

.profile-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
    border-color: var(--secondary-color);
}

.profile-img-container {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    overflow: hidden;
    margin: 0 auto 15px;
    border: 4px solid var(--bg-light);
    box-shadow: var(--shadow-sm);
}

.profile-img-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.profile-card h4 {
    font-size: 1.1rem;
    margin-bottom: 5px;
    color: var(--primary-color);
}

.profile-card .profile-role {
    font-size: 0.8rem;
    color: var(--accent-orange);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 10px;
}

.profile-card .profile-info {
    font-size: 0.82rem;
    color: var(--text-light);
    margin-bottom: 15px;
}

/* Lists styling */
.custom-list {
    margin: 15px 0 25px 20px;
    list-style-type: none;
}

.custom-list li {
    position: relative;
    padding-left: 25px;
    margin-bottom: 10px;
    font-size: 0.95rem;
    color: var(--text-color);
}

.custom-list li::before {
    content: "\f00c"; /* check icon */
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    position: absolute;
    left: 0;
    top: 2px;
    color: var(--secondary-color);
    font-size: 0.88rem;
}

/* Contact info icons */
.contact-info-list {
    margin: 20px 0;
}

.contact-info-item {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    margin-bottom: 20px;
}

.contact-info-item i {
    color: var(--secondary-color);
    font-size: 1.2rem;
    background-color: var(--bg-light);
    width: 45px;
    height: 45px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.contact-info-text h5 {
    font-size: 1rem;
    margin-bottom: 4px;
    color: var(--primary-color);
}

.contact-info-text p {
    font-size: 0.88rem;
    color: var(--text-light);
    margin: 0;
}

/* Tabs System */
.tab-content {
    display: none;
    flex-direction: column;
}

.tab-content.active {
    display: flex;
    animation: fadeIn 0.4s ease;
}

.tab-content > * {
    order: 10;
}

.tab-content > h2 {
    order: 1;
}

.tab-content > .dept-carousel {
    order: 2;
}

.tab-content > .dept-title-grid {
    order: 3;
}

/* Department Tab Details */
.dept-details-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 30px;
    margin-top: 20px;
}

.dept-highlight-box {
    background-color: var(--bg-light);
    border-left: 4px solid var(--primary-color);
    padding: 20px;
    border-radius: 0 8px 8px 0;
    margin-bottom: 20px;
}

@media screen and (max-width: 992px) {
    .subpage-layout { grid-template-columns: 1fr; }
    .sidebar-nav { width: 100%; }
    .dept-details-grid { grid-template-columns: 1fr; }
}

@media screen and (max-width: 600px) {
    .form-grid { grid-template-columns: 1fr; }
    .form-group.full-width { grid-column: span 1; }
    .subpage-content { padding: 25px 15px; }
}

/* --- Department Carousel System --- */
.dept-carousel {
    position: relative;
    height: 300px;
    border-radius: 12px;
    overflow: hidden;
    margin: 15px 0 25px;
    box-shadow: var(--shadow-md);
    background-color: #000;
}

.dept-carousel .carousel-track {
    width: 100%;
    height: 100%;
    position: relative;
}

.dept-carousel .carousel-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
    z-index: 1;
}

.dept-carousel .carousel-slide.active {
    pointer-events: auto;
    z-index: 2;
}

.dept-carousel .carousel-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Glassmorphism Captions */
.dept-carousel .carousel-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(15, 59, 95, 0.95) 0%, rgba(15, 59, 95, 0.7) 70%, rgba(0,0,0,0) 100%);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    padding: 30px 25px 25px;
    color: var(--white);
    z-index: 5;
    transform: translateY(0);
    transition: all 0.5s ease;
}

.dept-carousel .carousel-caption h4 {
    color: var(--gold);
    font-size: 1.3rem;
    margin-bottom: 6px;
    font-weight: 700;
    text-shadow: 0 2px 4px rgba(0,0,0,0.5);
}

.dept-carousel .carousel-caption p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.9rem;
    line-height: 1.4;
    margin: 0;
    text-shadow: 0 1px 3px rgba(0,0,0,0.5);
}

/* Controls */
.dept-carousel .carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: var(--white);
    width: 45px;
    height: 45px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    transition: var(--transition-fast);
}

.dept-carousel .carousel-btn:hover {
    background: var(--secondary-color);
    border-color: var(--secondary-color);
    box-shadow: 0 0 15px rgba(0, 180, 216, 0.4);
    transform: translateY(-50%) scale(1.1);
}

.dept-carousel .prev-btn { left: 20px; }
.dept-carousel .next-btn { right: 20px; }

.dept-carousel .carousel-dots {
    position: absolute;
    bottom: 20px;
    right: 25px;
    display: flex;
    gap: 8px;
    z-index: 10;
}

.dept-carousel .carousel-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.35);
    cursor: pointer;
    transition: var(--transition-fast);
    border: 1px solid rgba(255,255,255,0.1);
}

.dept-carousel .carousel-dot.active {
    background-color: var(--gold);
    width: 25px;
    border-radius: 5px;
}

/* ==========================================
   CAROUSEL ANIMATION TYPES PER DEPARTMENT
   ========================================== */

/* 1. Computer Engineering: Fade + Ken Burns (Zoom) */
.carousel-computer .carousel-slide {
    opacity: 0;
    transition: opacity 1.2s ease-in-out;
}
.carousel-computer .carousel-slide img {
    transform: scale(1);
    transition: transform 7s linear;
}
.carousel-computer .carousel-slide.active {
    opacity: 1;
}
.carousel-computer .carousel-slide.active img {
    transform: scale(1.15);
}

/* 2. Mechanical Engineering: 3D Horizontal Spin Flip */
.carousel-mechanical {
    perspective: 1200px;
}
.carousel-mechanical .carousel-slide {
    opacity: 0;
    transform: rotateY(90deg) scale(0.85);
    transition: transform 0.9s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.9s;
    transform-style: preserve-3d;
}
.carousel-mechanical .carousel-slide.active {
    opacity: 1;
    transform: rotateY(0deg) scale(1);
}

/* 3. Civil Engineering: Horizontal Slide & Push */
.carousel-civil .carousel-slide {
    opacity: 0;
    transform: translateX(100%);
    transition: transform 0.8s cubic-bezier(0.77, 0, 0.175, 1), opacity 0.8s;
}
.carousel-civil .carousel-slide.active {
    opacity: 1;
    transform: translateX(0);
}

/* 4. Electrical Engineering: Light Expansion Reveal */
.carousel-electrical .carousel-slide {
    opacity: 0;
    clip-path: polygon(50% 0%, 50% 0%, 50% 100%, 50% 100%);
    transition: clip-path 1.2s cubic-bezier(0.19, 1, 0.22, 1), opacity 0.6s ease;
}
.carousel-electrical .carousel-slide.active {
    opacity: 1;
    clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%);
}

/* 5. E&TC Engineering: Perspective Tilt Stack */
.carousel-etc {
    perspective: 1200px;
}
.carousel-etc .carousel-slide {
    opacity: 0;
    transform: rotateX(45deg) translateY(60px) scale(0.8);
    transition: transform 0.85s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.85s;
}
.carousel-etc .carousel-slide.active {
    opacity: 1;
    transform: rotateX(0deg) translateY(0) scale(1);
}

/* ==========================================
   ENHANCED DEPARTMENT LAYOUT & STYLING
   ========================================== */

/* Glow Stats Card / Header */
.dept-title-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
    margin: 20px 0 25px;
}

.dept-meta-card {
    background-color: var(--white);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 15px;
    text-align: center;
    box-shadow: var(--shadow-sm);
    transition: var(--transition-smooth);
    border-top: 3px solid var(--primary-color);
}

.dept-meta-card:nth-child(2) { border-top-color: var(--secondary-color); }
.dept-meta-card:nth-child(3) { border-top-color: var(--accent-orange); }
.dept-meta-card:nth-child(4) { border-top-color: #55a630; }

.dept-meta-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

.dept-meta-card i {
    font-size: 1.4rem;
    color: var(--primary-color);
    margin-bottom: 6px;
    opacity: 0.85;
}
.dept-meta-card:nth-child(2) i { color: var(--secondary-color); }
.dept-meta-card:nth-child(3) i { color: var(--accent-orange); }
.dept-meta-card:nth-child(4) i { color: #55a630; }

.dept-meta-card h4 {
    font-size: 0.85rem;
    color: var(--text-light);
    margin-bottom: 4px;
    text-transform: uppercase;
    font-weight: 600;
}

.dept-meta-card p {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--primary-color);
    margin: 0;
}

/* Vision & Mission Row */
.dept-vision-mission {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 25px;
    margin: 30px 0;
}

.vm-card {
    background: linear-gradient(135deg, var(--white) 0%, #f7fafc 100%);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 25px 30px;
    box-shadow: var(--shadow-sm);
    position: relative;
    border-left: 5px solid var(--primary-color);
    transition: var(--transition-smooth);
}

.vm-card.mission {
    border-left-color: var(--secondary-color);
}

.vm-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.vm-card h3 {
    font-size: 1.25rem;
    margin: 0 0 15px;
    border: none;
    padding: 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.vm-card h3 i {
    color: var(--primary-color);
}
.vm-card.mission h3 i {
    color: var(--secondary-color);
}

.vm-card p {
    font-size: 0.9rem;
    line-height: 1.6;
    margin-bottom: 0;
}

.vm-card ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.vm-card ul li {
    font-size: 0.9rem;
    line-height: 1.5;
    position: relative;
    padding-left: 20px;
    margin-bottom: 8px;
}

.vm-card ul li::before {
    content: "➔";
    position: absolute;
    left: 0;
    color: var(--secondary-color);
    font-size: 0.8rem;
}

/* Statistics Grid */
.dept-stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin: 30px 0;
}

.dept-stat-card {
    background-color: var(--white);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 20px 15px;
    text-align: center;
    box-shadow: var(--shadow-sm);
    transition: var(--transition-smooth);
}

.dept-stat-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    border-color: var(--secondary-color);
}

.stat-num {
    font-size: 2.2rem;
    font-weight: 800;
    color: var(--secondary-color);
    line-height: 1.1;
    margin-bottom: 6px;
    font-family: 'Outfit', sans-serif;
}

.stat-label {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-light);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Upgraded Laboratory Cards */
.lab-card {
    background-color: var(--white);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition-smooth);
    display: flex;
    flex-direction: column;
}

.lab-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    border-color: var(--secondary-color);
}

.lab-header {
    background-color: var(--primary-color);
    color: var(--white);
    padding: 15px 20px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.lab-header i {
    font-size: 1.3rem;
    color: var(--gold);
}

.lab-header h4 {
    color: var(--white);
    font-size: 1rem;
    margin: 0;
    font-weight: 600;
}

.lab-body {
    padding: 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.lab-body p {
    font-size: 0.85rem;
    line-height: 1.5;
    color: var(--text-color);
    margin-bottom: 15px;
}

.lab-equip-tags {
    margin-top: auto;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.equip-tag {
    background-color: var(--bg-light);
    color: var(--primary-color);
    font-size: 0.72rem;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 20px;
    border: 1px solid var(--border-color);
}

/* Syllabus Timeline Journey */
.syllabus-journey {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin: 30px 0;
    position: relative;
}

.syllabus-card {
    background-color: var(--white);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 20px;
    box-shadow: var(--shadow-sm);
    position: relative;
    transition: var(--transition-smooth);
}

.syllabus-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
    border-color: var(--accent-orange);
}

.year-badge {
    position: absolute;
    top: -12px;
    left: 20px;
    background-color: var(--accent-orange);
    color: var(--white);
    font-size: 0.75rem;
    font-weight: 700;
    padding: 4px 12px;
    border-radius: 20px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.syllabus-card h4 {
    margin-top: 10px;
    font-size: 1.05rem;
    color: var(--primary-color);
    margin-bottom: 12px;
}

.syllabus-card ul {
    list-style: none;
    padding: 0;
}

.syllabus-card ul li {
    font-size: 0.82rem;
    line-height: 1.4;
    color: var(--text-color);
    position: relative;
    padding-left: 15px;
    margin-bottom: 8px;
}

.syllabus-card ul li::before {
    content: "•";
    color: var(--accent-orange);
    position: absolute;
    left: 0;
    font-size: 1.2rem;
    line-height: 1;
    top: -2px;
}

/* Project Spotlight Section */
.project-spotlight {
    background: linear-gradient(135deg, var(--dark-blue-bg) 0%, var(--primary-color) 100%);
    border-radius: 12px;
    padding: 30px;
    color: var(--white);
    margin: 35px 0;
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-md);
}

.project-spotlight::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(0, 180, 216, 0.15) 0%, rgba(0,0,0,0) 70%);
    border-radius: 50%;
}

.spotlight-badge {
    display: inline-block;
    background-color: rgba(255, 136, 0, 0.2);
    border: 1px solid var(--accent-orange);
    color: var(--accent-orange);
    font-size: 0.7rem;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 20px;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 15px;
}

.project-spotlight h3 {
    color: var(--white);
    font-size: 1.4rem;
    border: none;
    padding: 0;
    margin: 0 0 10px 0;
}

.project-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 30px;
    align-items: center;
}

.project-info p {
    color: rgba(255, 255, 255, 0.85) !important;
    font-size: 0.88rem !important;
    line-height: 1.5;
    margin-bottom: 15px;
}

.project-highlights {
    display: flex;
    gap: 15px;
}

.proj-h-item {
    background-color: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.1);
    padding: 10px 15px;
    border-radius: 6px;
    text-align: center;
}

.proj-h-item span {
    display: block;
    font-size: 0.72rem;
    color: rgba(255,255,255,0.6);
    text-transform: uppercase;
}

.proj-h-item strong {
    font-size: 0.9rem;
    color: var(--gold);
}

.project-media img {
    border-radius: 8px;
    border: 3px solid rgba(255,255,255,0.1);
    box-shadow: var(--shadow-sm);
    width: 100%;
    height: 170px;
    object-fit: cover;
}

/* Industry Partnerships / Recruiters */
.dept-industry-partners {
    margin: 30px 0;
}

.partner-logo-row {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 15px;
}

.partner-tag {
    background-color: var(--bg-light);
    color: var(--primary-color);
    border: 1px solid var(--border-color);
    padding: 8px 18px;
    border-radius: 6px;
    font-size: 0.82rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: var(--transition-fast);
}

.partner-tag i {
    color: var(--secondary-color);
}

.partner-tag:hover {
    background-color: var(--primary-color);
    color: var(--white);
    border-color: var(--primary-color);
    transform: translateY(-2px);
}

/* Upgraded HOD Profile */
.hod-profile-card {
    background: linear-gradient(135deg, #ffffff 0%, #f7fafc 100%);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 30px;
    display: flex;
    gap: 30px;
    align-items: center;
    box-shadow: var(--shadow-sm);
    margin-top: 30px;
    border-top: 4px solid var(--accent-orange);
}

.hod-img-circle {
    width: 130px;
    height: 130px;
    border-radius: 50%;
    border: 4px solid var(--white);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
    flex-shrink: 0;
    transition: var(--transition-smooth);
}

.hod-profile-card:hover .hod-img-circle {
    transform: rotate(5deg) scale(1.05);
    border-color: var(--secondary-color);
}

.hod-img-circle img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hod-details h4 {
    font-size: 1.25rem;
    color: var(--primary-color);
    margin-bottom: 2px;
}

.hod-title {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--accent-orange);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 12px;
}

.hod-quote {
    font-style: italic;
    color: var(--text-color);
    font-size: 0.9rem;
    line-height: 1.5;
    position: relative;
    padding-left: 20px;
    border-left: 3px solid var(--secondary-color);
    margin-bottom: 15px;
}

.hod-meta {
    font-size: 0.8rem;
    color: var(--text-light);
    font-weight: 500;
}

/* ==========================================================================
   RESPONSIVE DESIGN ADAPTATIONS FOR DEPARTMENTS
   ========================================================================== */
@media screen and (max-width: 992px) {
    .dept-title-grid { grid-template-columns: repeat(2, 1fr); }
    .dept-vision-mission { grid-template-columns: 1fr; }
    .dept-stats-grid { grid-template-columns: repeat(2, 1fr); }
    .syllabus-journey { grid-template-columns: 1fr; gap: 25px; }
    .syllabus-card { padding-top: 25px; }
    .project-grid { grid-template-columns: 1fr; }
    .hod-profile-card { flex-direction: column; text-align: center; }
    .hod-img-circle { margin: 0 auto; }
    .hod-quote { padding-left: 0; border-left: none; border-top: 2px solid var(--secondary-color); padding-top: 15px; }
}

@media screen and (max-width: 580px) {
    .dept-title-grid { grid-template-columns: 1fr; }
    .dept-stats-grid { grid-template-columns: 1fr; }
    .dept-carousel { height: 210px; }
    .dept-carousel .carousel-caption { padding: 15px; }
    .dept-carousel .carousel-caption h4 { font-size: 1.05rem; }
    .dept-carousel .carousel-caption p { font-size: 0.8rem; }
    .dept-carousel .carousel-btn { width: 35px; height: 35px; }
}

/* --- Horizontal Department Navigation --- */
.dept-tab-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: var(--white);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 8px;
    margin: 30px 0 10px;
    box-shadow: var(--shadow-sm);
    gap: 8px;
}

.dept-tab-nav a {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 20px;
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--primary-color);
    border-radius: 8px;
    transition: var(--transition-smooth);
    white-space: nowrap;
}

.dept-tab-nav a i {
    font-size: 1.1rem;
    color: var(--secondary-color);
    transition: var(--transition-fast);
}

.dept-tab-nav a:hover {
    background-color: rgba(0, 180, 216, 0.05);
    color: var(--secondary-color);
}

.dept-tab-nav a.active {
    background-color: var(--primary-color);
    color: var(--white);
    box-shadow: 0 4px 10px rgba(15, 59, 95, 0.2);
}

.dept-tab-nav a.active i {
    color: var(--gold);
}

/* Adjust full width layout */
.full-width-layout {
    grid-template-columns: 1fr !important;
    margin-top: 20px !important;
}

.full-width-layout .subpage-content {
    padding: 40px;
}

/* Responsive Tabs Navigation */
@media screen and (max-width: 992px) {
    .dept-tab-nav {
        flex-wrap: wrap;
        gap: 6px;
    }
    .dept-tab-nav a {
        flex: 0 0 calc(50% - 6px);
        padding: 10px 15px;
        font-size: 0.88rem;
    }
}

@media screen and (max-width: 580px) {
    .dept-tab-nav a {
        flex: 0 0 100%;
    }
}

/* --- Department Sub-Tabs Navigation --- */
.dept-sub-tabs {
    display: flex;
    justify-content: center;
    gap: 15px;
    background-color: var(--bg-light);
    border: 1px solid var(--border-color);
    padding: 10px;
    border-radius: 30px;
    margin: 0 auto 30px;
    max-width: 800px;
    box-shadow: var(--shadow-sm);
}

.sub-tab-btn {
    background: transparent;
    border: none;
    outline: none;
    padding: 10px 24px;
    font-size: 0.92rem;
    font-weight: 700;
    color: var(--text-color);
    border-radius: 20px;
    cursor: pointer;
    transition: var(--transition-smooth);
    display: flex;
    align-items: center;
    gap: 8px;
}

.sub-tab-btn i {
    font-size: 1rem;
    color: var(--secondary-color);
}

.sub-tab-btn:hover {
    color: var(--secondary-color);
    background-color: rgba(0, 180, 216, 0.05);
}

.sub-tab-btn.active {
    background-color: var(--white);
    color: var(--primary-color);
    box-shadow: var(--shadow-sm);
}

/* Sub-Tab Content States */
.sub-tab-content {
    display: none;
}

.sub-tab-content.active {
    display: block;
    animation: fadeIn 0.4s ease;
}

/* --- Faculty Tab Styling --- */
.faculty-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 20px;
}

.faculty-card {
    background-color: var(--white);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition-smooth);
    display: flex;
    flex-direction: column;
    text-align: center;
    position: relative;
}

.faculty-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
    border-color: var(--secondary-color);
}

.faculty-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background-color: var(--gold);
    color: var(--primary-color);
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 0.72rem;
    font-weight: 800;
    text-transform: uppercase;
    box-shadow: var(--shadow-sm);
}

.faculty-img-container {
    width: 130px;
    height: 130px;
    border-radius: 50%;
    overflow: hidden;
    margin: 30px auto 15px;
    border: 4px solid var(--bg-light);
    box-shadow: var(--shadow-sm);
    transition: var(--transition-smooth);
}

.faculty-card:hover .faculty-img-container {
    border-color: var(--secondary-color);
    transform: scale(1.05);
}

.faculty-img-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.faculty-info {
    padding: 0 20px 25px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.faculty-info h4 {
    font-size: 1.15rem;
    color: var(--primary-color);
    margin-bottom: 5px;
}

.faculty-info .fac-designation {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--accent-orange);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 12px;
}

.faculty-info .fac-details {
    font-size: 0.88rem;
    color: var(--text-color);
    margin-bottom: 15px;
    text-align: left;
    background-color: var(--bg-light);
    padding: 10px 15px;
    border-radius: 8px;
    border: 1px dashed var(--border-color);
}

.faculty-info .fac-details p {
    margin: 5px 0;
    font-size: 0.85rem;
    display: flex;
    justify-content: space-between;
}

.faculty-info .fac-details strong {
    color: var(--primary-color);
}

.faculty-contact {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-top: auto;
}

.faculty-contact a {
    color: var(--text-light);
    font-size: 1.1rem;
    transition: var(--transition-fast);
}

.faculty-contact a:hover {
    color: var(--secondary-color);
}

/* --- Academics (Question Papers) Styling --- */
.academic-sem-tabs {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 30px;
}

.sem-year-box {
    background-color: var(--white);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 20px;
    box-shadow: var(--shadow-sm);
    transition: var(--transition-smooth);
}

.sem-year-box:hover {
    box-shadow: var(--shadow-md);
    border-color: var(--secondary-color);
}

.sem-year-box h4 {
    color: var(--primary-color);
    font-size: 1.1rem;
    border-bottom: 2px solid var(--bg-light);
    padding-bottom: 10px;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.sem-year-box h4 i {
    color: var(--secondary-color);
}

.sem-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.sem-block h5 {
    font-size: 0.9rem;
    color: var(--accent-orange);
    margin-bottom: 8px;
    font-weight: 700;
}

.paper-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.paper-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 12px;
    background-color: var(--bg-light);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    margin-bottom: 8px;
    transition: var(--transition-fast);
}

.paper-item:hover {
    background-color: var(--white);
    border-color: var(--secondary-color);
}

.paper-info {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-color);
}

.paper-downloads {
    display: flex;
    gap: 8px;
}

.btn-download-paper {
    font-size: 0.72rem;
    font-weight: 700;
    padding: 4px 8px;
    background-color: var(--primary-color);
    color: var(--white);
    border-radius: 4px;
    transition: var(--transition-fast);
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.btn-download-paper:hover {
    background-color: var(--secondary-color);
    color: var(--white);
}

/* --- Gallery Tab Styling --- */
.dept-gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.gallery-card {
    height: 220px;
    border-radius: 12px;
    overflow: hidden;
    position: relative;
    box-shadow: var(--shadow-sm);
    cursor: pointer;
}

.gallery-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.gallery-overlay {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(to top, rgba(15, 59, 95, 0.9), rgba(0, 0, 0, 0.2));
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 20px;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.gallery-card:hover img {
    transform: scale(1.1);
}

.gallery-card:hover .gallery-overlay {
    opacity: 1;
}

.gallery-overlay h4 {
    color: var(--white);
    font-size: 1rem;
    margin-bottom: 4px;
    transform: translateY(10px);
    transition: transform 0.4s ease;
}

.gallery-overlay p {
    color: var(--gold);
    font-size: 0.8rem;
    font-weight: 600;
    margin: 0;
    transform: translateY(10px);
    transition: transform 0.4s ease 0.1s;
}

.gallery-card:hover .gallery-overlay h4,
.gallery-card:hover .gallery-overlay p {
    transform: translateY(0);
}

/* Responsive adjustments for sub-tabs */
@media screen and (max-width: 992px) {
    .academic-sem-tabs {
        grid-template-columns: 1fr;
    }
}

@media screen and (max-width: 600px) {
    .dept-sub-tabs {
        flex-direction: column;
        border-radius: 15px;
        align-items: stretch;
    }
    .sub-tab-btn {
        justify-content: center;
    }
}


