/* ============================================
   SMCET - St. Michael College of Engineering & Technology
   Main Stylesheet
   ============================================ */

/* ---- CSS Variables ---- */
:root {
    --primary: #0a2463;
    --primary-light: #1e3a7a;
    --primary-dark: #061747;
    --secondary: #e63946;
    --accent: #f4a261;
    --accent-gold: #d4a843;
    --success: #2a9d8f;
    --text-dark: #1a1a2e;
    --text-body: #4a4a6a;
    --text-light: #8888a0;
    --bg-light: #f7f8fc;
    --bg-white: #ffffff;
    --bg-dark: #0c1b3d;
    --gradient-primary: linear-gradient(135deg, #0a2463 0%, #1e3a7a 50%, #3d5a9e 100%);
    --gradient-hero: linear-gradient(90deg, rgba(10,36,99,0.6) 0%, rgba(30,58,122,0.4) 25%, rgba(30,58,122,0) 100%);
    --gradient-accent: linear-gradient(135deg, #e63946 0%, #f4a261 100%);
    --shadow-sm: 0 2px 10px rgba(10,36,99,0.08);
    --shadow-md: 0 8px 30px rgba(10,36,99,0.12);
    --shadow-lg: 0 20px 60px rgba(10,36,99,0.15);
    --shadow-xl: 0 30px 80px rgba(10,36,99,0.2);
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --radius-xl: 30px;
    --transition: all 0.3s cubic-bezier(0.4,0,0.2,1);
    --font-primary: 'Inter', sans-serif;
    --font-display: 'Playfair Display', serif;
}

/* ---- Reset & Base ---- */
*, *::before, *::after { box-sizing: border-box; }

html {
    scroll-behavior: smooth;
    overflow-x: clip;
}

body {
    font-family: var(--font-primary);
    color: var(--text-body);
    line-height: 1.7;
    background: var(--bg-white);
    overflow-x: clip;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-primary);
    color: var(--text-dark);
    font-weight: 700;
    line-height: 1.3;
}

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

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

img, video, iframe, object, embed { max-width: 100%; height: auto; }

/* ---- Top Bar ---- */
.top-bar {
    background: var(--primary-dark);
    padding: 8px 0;
    font-size: 0.82rem;
    color: rgba(255,255,255,0.85);
    border-bottom: 1px solid rgba(255,255,255,0.08);
}

.top-bar a {
    color: rgba(255,255,255,0.85);
}

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

.top-bar-left {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.top-bar-left span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.top-bar-left i { color: var(--accent); font-size: 0.85rem; }

.top-bar-right {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 14px;
}

.top-bar-right a i {
    font-size: 0.95rem;
    transition: var(--transition);
}

.top-bar-right a:hover i { color: var(--accent); transform: scale(1.15); }

.btn-apply-now {
    background: var(--gradient-accent);
    color: #fff !important;
    padding: 5px 18px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    animation: pulseGlow 2s infinite;
}

@keyframes pulseGlow {
    0%, 100% { box-shadow: 0 0 0 0 rgba(230,57,70,0.4); }
    50% { box-shadow: 0 0 0 10px rgba(230,57,70,0); }
}

/* ---- Navigation ---- */
#mainNav {
    background: var(--gradient-primary);
    padding: 0;
    transition: var(--transition);
    z-index: 1000;
    box-shadow: var(--shadow-md);
}

#mainNav.scrolled {
    padding: 0;
    background: var(--primary-dark);
    box-shadow: var(--shadow-lg);
}

.navbar-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 0;
}

.nav-logo {
    width: 55px;
    height: 55px;
    object-fit: contain;
    border-radius: 50%;
    background: white;
    padding: 3px;
    transition: var(--transition);
}

.navbar-brand:hover .nav-logo { transform: scale(1.08); }

.brand-text-img {
    height: 42px;
    width: auto;
    object-fit: contain;
    transition: var(--transition);
    filter: brightness(1.1); /* Slight boost to match logo richness */
}

.navbar-brand:hover .brand-text-img { transform: scale(1.02); }

.navbar-nav .nav-link {
    color: rgba(255,255,255,0.9) !important;
    font-weight: 500;
    font-size: 0.88rem;
    padding: 20px 14px !important;
    letter-spacing: 0.3px;
    position: relative;
    transition: var(--transition);
}

.navbar-nav .nav-link::before {
    content: '';
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background: var(--accent);
    transition: var(--transition);
    border-radius: 2px;
}

.navbar-nav .nav-link:hover::before,
.navbar-nav .nav-link.active::before { width: 60%; }

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active { color: #fff !important; }

/* Mega Menu */
.mega-menu {
    border: none;
    border-radius: var(--radius-md);
    padding: 24px;
    box-shadow: var(--shadow-xl);
    border-top: 3px solid var(--secondary);
    min-width: 500px;
    animation: fadeInUp 0.3s ease;
}

.mega-menu-lg { min-width: 700px; }

.mega-title {
    color: var(--primary);
    font-weight: 700;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding-bottom: 8px;
    margin-bottom: 10px;
    border-bottom: 2px solid var(--bg-light);
}

.mega-menu .dropdown-item,
.dropdown-menu .dropdown-item {
    padding: 8px 12px;
    border-radius: var(--radius-sm);
    font-size: 0.85rem;
    color: var(--text-body);
    display: flex;
    align-items: center;
    gap: 8px;
    transition: var(--transition);
}

.mega-menu .dropdown-item i,
.dropdown-menu .dropdown-item i {
    color: var(--primary);
    font-size: 1rem;
    width: 20px;
}

.mega-menu .dropdown-item:hover,
.dropdown-menu .dropdown-item:hover {
    background: var(--bg-light);
    color: var(--primary);
    transform: translateX(5px);
}

.dropdown-menu {
    border: none;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    border-top: 3px solid var(--secondary);
    padding: 10px;
    animation: fadeInUp 0.3s ease;
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ---- Hero Section ---- */
.hero-section {
    position: relative;
    height: 85vh;
    min-height: 600px;
    overflow: hidden;
}

.hero-swiper {
    width: 100%;
    height: 100%;
}

.hero-slide {
    position: relative;
    height: 100%;
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
}

.hero-slide::before {
    display: none;
}

.hero-content {
    position: absolute;
    top: 50%; left: 0;
    transform: translateY(-50%);
    width: 100%;
    z-index: 2;
    padding: 0 5%;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255,255,255,0.15);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.2);
    padding: 6px 20px;
    border-radius: 50px;
    color: #fff;
    font-size: 0.85rem;
    font-weight: 500;
    margin-bottom: 20px;
}

.hero-badge i { color: var(--accent); }

.hero-title {
    color: #fff;
    font-family: var(--font-display);
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.15;
    margin-bottom: 20px;
    text-shadow: 0 4px 20px rgba(0,0,0,0.3);
}

.hero-title span {
    color: var(--accent);
}

.hero-description {
    color: rgba(255,255,255,0.9);
    font-size: 1.15rem;
    max-width: 600px;
    margin-bottom: 30px;
    line-height: 1.8;
}

.hero-buttons {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.hero-stats-bar {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background: rgba(10,36,99,0.85);
    backdrop-filter: blur(20px);
    border-top: 1px solid rgba(255,255,255,0.1);
    z-index: 3;
    padding: 20px 0;
}

.stat-item {
    text-align: center;
    color: #fff;
    padding: 10px;
}

.stat-number {
    font-size: 2.2rem;
    font-weight: 800;
    color: var(--accent);
    line-height: 1;
    margin-bottom: 5px;
}

.stat-label {
    font-size: 0.82rem;
    color: rgba(255,255,255,0.7);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Swiper Custom */
.hero-swiper .swiper-pagination-bullet {
    background: rgba(255,255,255,0.5);
    width: 12px;
    height: 12px;
    opacity: 1;
}

.hero-swiper .swiper-pagination-bullet-active {
    background: var(--accent);
    width: 35px;
    border-radius: 6px;
}

.hero-swiper .swiper-button-next,
.hero-swiper .swiper-button-prev {
    color: #fff;
    background: rgba(255,255,255,0.1);
    backdrop-filter: blur(10px);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    transition: var(--transition);
}

.hero-swiper .swiper-button-next:hover,
.hero-swiper .swiper-button-prev:hover {
    background: var(--secondary);
}

.hero-swiper .swiper-button-next::after,
.hero-swiper .swiper-button-prev::after {
    font-size: 1.2rem;
}

/* ---- Quick Links ---- */
.quick-links-section {
    position: relative;
    z-index: 10;
}

.quick-link-item {
    background: var(--bg-white);
    border-radius: var(--radius-md);
    padding: 25px 15px;
    height: 100%;
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    border: 1px solid rgba(10,36,99,0.08);
}

.quick-link-item:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-md);
    border-color: var(--primary);
}

.quick-link-item i {
    display: block;
    margin: 0 auto 15px;
    font-size: 2.2rem;
    color: var(--primary);
    transition: var(--transition);
}

.quick-link-item:hover i {
    color: var(--accent);
    transform: scale(1.1);
}

.quick-link-item h6 {
    margin: 0;
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--text-dark);
}

/* ---- Buttons ---- */
.btn-primary-custom {
    background: var(--gradient-accent);
    border: none;
    color: #fff;
    padding: 12px 32px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.95rem;
    letter-spacing: 0.5px;
    transition: var(--transition);
    box-shadow: 0 4px 15px rgba(230,57,70,0.3);
}

.btn-primary-custom:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(230,57,70,0.4);
    color: #fff;
}

.btn-outline-custom {
    background: transparent;
    border: 2px solid rgba(255,255,255,0.4);
    color: #fff;
    padding: 12px 32px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.95rem;
    transition: var(--transition);
    backdrop-filter: blur(5px);
}

.btn-outline-custom:hover {
    background: rgba(255,255,255,0.15);
    border-color: #fff;
    color: #fff;
    transform: translateY(-3px);
}

.btn-dark-custom {
    background: var(--primary);
    border: none;
    color: #fff;
    padding: 12px 32px;
    border-radius: 50px;
    font-weight: 600;
    transition: var(--transition);
}

.btn-dark-custom:hover {
    background: var(--primary-dark);
    color: #fff;
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

/* ---- Section Styles ---- */
.section-padding { padding: 80px 0; }

.section-header {
    text-align: center;
    margin-bottom: 50px;
}

.section-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(10,36,99,0.08);
    color: var(--primary);
    padding: 6px 20px;
    border-radius: 50px;
    font-size: 0.82rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 15px;
}

.section-badge i { font-size: 0.9rem; }

.section-title {
    font-family: var(--font-display);
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--text-dark);
    margin-bottom: 15px;
}

.section-title span { color: var(--secondary); }

.section-desc {
    color: var(--text-light);
    font-size: 1.05rem;
    max-width: 600px;
    margin: 0 auto;
}

/* ---- About Section ---- */
.about-section { background: var(--bg-white); }

.about-image-wrapper {
    position: relative;
}

.about-img-main {
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    position: relative;
}

.about-img-main img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    transition: var(--transition);
}

.about-img-main:hover img { transform: scale(1.05); }

.about-badge-float {
    position: absolute;
    bottom: -30px;
    right: -20px;
    width: 130px;
    height: 130px;
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-15px); }
}

.about-badge-float img {
    width: 100%;
    border-radius: 50%;
    box-shadow: var(--shadow-lg);
}

.about-content { padding-left: 30px; }

.about-content h2 {
    font-family: var(--font-display);
    font-size: 2.2rem;
    margin-bottom: 20px;
}

.about-content h2 span { color: var(--secondary); }

.about-features {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin: 25px 0;
}

.about-feature {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 15px;
    background: var(--bg-light);
    border-radius: var(--radius-sm);
    transition: var(--transition);
}

.about-feature:hover {
    background: var(--primary);
    color: #fff;
    transform: translateX(5px);
}

.about-feature:hover i { color: var(--accent); }

.about-feature i {
    font-size: 1.3rem;
    color: var(--primary);
    transition: var(--transition);
}

.about-feature span {
    font-weight: 500;
    font-size: 0.9rem;
}

/* ---- Department Cards ---- */
.dept-card {
    background: var(--bg-white);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    height: 100%;
    border: 1px solid rgba(10,36,99,0.05);
}

.dept-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-xl);
}

.dept-card-img {
    position: relative;
    height: 200px;
    overflow: hidden;
}

.dept-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

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

.dept-card-overlay {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: linear-gradient(to top, rgba(10,36,99,0.8), transparent);
    opacity: 0;
    transition: var(--transition);
    display: flex;
    align-items: flex-end;
    padding: 20px;
}

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

.dept-card-overlay a {
    color: #fff;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
}

.dept-card-body {
    padding: 20px;
}

.dept-card-body h5 {
    font-weight: 700;
    font-size: 1rem;
    margin-bottom: 8px;
    transition: var(--transition);
}

.dept-card:hover .dept-card-body h5 { color: var(--primary); }

.dept-card-body p {
    font-size: 0.85rem;
    color: var(--text-light);
    margin-bottom: 0;
}

.dept-card-tag {
    display: inline-block;
    background: rgba(10,36,99,0.08);
    color: var(--primary);
    padding: 3px 12px;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 600;
    margin-top: 10px;
}

/* ---- Stats Section ---- */
.stats-section {
    background: var(--gradient-primary);
    position: relative;
    overflow: hidden;
}

.stats-section::before {
    content: '';
    position: absolute;
    top: -50%; right: -20%;
    width: 60%; height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.05) 0%, transparent 70%);
}

.stats-card {
    text-align: center;
    padding: 30px 20px;
    position: relative;
    z-index: 1;
}

.stats-icon {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 15px;
    background: rgba(255,255,255,0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.15);
    font-size: 1.8rem;
    color: var(--accent);
    transition: var(--transition);
}

.stats-card:hover .stats-icon {
    transform: scale(1.15);
    background: rgba(255,255,255,0.2);
}

.stats-card h3 {
    font-size: 2.8rem;
    font-weight: 800;
    color: #fff;
    margin-bottom: 5px;
}

.stats-card p {
    color: rgba(255,255,255,0.7);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin: 0;
}

/* ---- Placement Section ---- */
.placement-section { background: var(--bg-light); }

.placement-highlight {
    background: var(--bg-white);
    border-radius: var(--radius-lg);
    padding: 40px;
    box-shadow: var(--shadow-md);
    text-align: center;
    transition: var(--transition);
    border: 1px solid rgba(10,36,99,0.05);
}

.placement-highlight:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-xl);
}

.placement-icon {
    width: 80px; height: 80px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 2rem;
    background: rgba(10,36,99,0.06);
    color: var(--primary);
    transition: var(--transition);
}

.placement-highlight:hover .placement-icon {
    background: var(--primary);
    color: #fff;
    transform: scale(1.1);
}

.placement-highlight h3 {
    font-size: 2.2rem;
    font-weight: 800;
    color: var(--primary);
    margin-bottom: 5px;
}

.placement-highlight p {
    color: var(--text-light);
    font-size: 0.9rem;
    margin: 0;
}

/* ---- Events Section ---- */
.event-card {
    background: var(--bg-white);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    border: 1px solid rgba(10,36,99,0.05);
}

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

.event-card-img {
    position: relative;
    height: 200px;
    overflow: hidden;
}

.event-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.event-card:hover .event-card-img img { transform: scale(1.08); }

.event-date {
    position: absolute;
    top: 15px; left: 15px;
    background: var(--secondary);
    color: #fff;
    padding: 8px 15px;
    border-radius: var(--radius-sm);
    text-align: center;
    font-weight: 700;
    line-height: 1.2;
}

.event-date .day { font-size: 1.3rem; display: block; }
.event-date .month { font-size: 0.7rem; text-transform: uppercase; letter-spacing: 1px; }

.event-card-body {
    padding: 20px;
}

.event-card-body h5 {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.event-card-body p {
    font-size: 0.85rem;
    color: var(--text-light);
}

/* ---- Testimonials Section ---- */
.testimonial-section {
    background: var(--bg-light);
    position: relative;
}

.testimonial-card {
    background: var(--bg-white);
    border-radius: var(--radius-lg);
    padding: 35px;
    box-shadow: var(--shadow-sm);
    position: relative;
    margin: 20px 10px;
    border: 1px solid rgba(10,36,99,0.05);
    transition: var(--transition);
}

.testimonial-card:hover { box-shadow: var(--shadow-md); }

.testimonial-quote {
    font-size: 3rem;
    color: var(--primary);
    opacity: 0.15;
    position: absolute;
    top: 15px;
    right: 25px;
    font-family: Georgia, serif;
}

.testimonial-text {
    font-size: 0.95rem;
    color: var(--text-body);
    font-style: italic;
    line-height: 1.8;
    margin-bottom: 20px;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 12px;
}

.testimonial-avatar {
    width: 50px; height: 50px;
    border-radius: 50%;
    background: var(--gradient-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-weight: 700;
    font-size: 1.1rem;
}

.testimonial-author h6 {
    margin: 0;
    font-weight: 600;
    font-size: 0.95rem;
}

.testimonial-author span {
    font-size: 0.8rem;
    color: var(--text-light);
}

/* ---- CTA / Admission Banner ---- */
.cta-section {
    background: var(--gradient-primary);
    position: relative;
    overflow: hidden;
    padding: 80px 0;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: 0; right: 0;
    width: 400px; height: 400px;
    border-radius: 50%;
    background: rgba(244,162,97,0.15);
    transform: translate(30%, -30%);
}

.cta-section::after {
    content: '';
    position: absolute;
    bottom: 0; left: 0;
    width: 300px; height: 300px;
    border-radius: 50%;
    background: rgba(230,57,70,0.1);
    transform: translate(-30%, 30%);
}

.cta-content {
    position: relative;
    z-index: 1;
    text-align: center;
}

.cta-content h2 {
    color: #fff;
    font-family: var(--font-display);
    font-size: 2.5rem;
    margin-bottom: 15px;
}

.cta-content p {
    color: rgba(255,255,255,0.8);
    font-size: 1.1rem;
    margin-bottom: 30px;
}

.cta-buttons { display: flex; justify-content: center; gap: 15px; flex-wrap: wrap; }

/* ---- Management Section ---- */
.management-card {
    text-align: center;
    padding: 30px 20px;
    background: var(--bg-white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    border: 1px solid rgba(10,36,99,0.05);
}

.management-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-xl);
}

.management-img {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    margin: 0 auto 20px;
    overflow: hidden;
    border: 4px solid var(--primary);
    padding: 3px;
    transition: var(--transition);
}

.management-card:hover .management-img {
    border-color: var(--secondary);
}

.management-img img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
}

.management-card h5 {
    font-weight: 700;
    font-size: 1.05rem;
    margin-bottom: 5px;
}

.management-card .designation {
    color: var(--secondary);
    font-weight: 600;
    font-size: 0.85rem;
}

/* ---- Founder Section ---- */
.founder-section {
    background: var(--bg-light);
}

.founder-image {
    text-align: center;
}

.founder-image img {
    max-width: 350px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
}

.founder-content h2 {
    font-family: var(--font-display);
    font-size: 2.2rem;
    margin-bottom: 20px;
}

.founder-content h2 span { color: var(--secondary); }

/* ---- Page Banner ---- */
.page-banner {
    background: var(--gradient-primary);
    padding: 100px 0 60px;
    position: relative;
    overflow: hidden;
}

.page-banner::before {
    content: '';
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1440 320"><path fill="rgba(255,255,255,0.03)" d="M0,128L48,138.7C96,149,192,171,288,160C384,149,480,107,576,117.3C672,128,768,192,864,208C960,224,1056,192,1152,170.7C1248,149,1344,139,1392,133.3L1440,128L1440,320L1392,320C1344,320,1248,320,1152,320C1056,320,960,320,864,320C768,320,672,320,576,320C480,320,384,320,288,320C192,320,96,320,48,320L0,320Z"></path></svg>') no-repeat bottom;
    background-size: cover;
}

.page-banner h1 {
    color: #fff;
    font-family: var(--font-display);
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 10px;
    position: relative;
}

.page-banner .breadcrumb {
    background: none;
    padding: 0;
    margin: 0;
    position: relative;
}

.page-banner .breadcrumb-item a {
    color: rgba(255,255,255,0.8);
}

.page-banner .breadcrumb-item.active {
    color: var(--accent);
}

.page-banner .breadcrumb-item + .breadcrumb-item::before {
    color: rgba(255,255,255,0.5);
}

/* ---- Contact Section ---- */
.contact-form-card {
    background: var(--bg-white);
    border-radius: var(--radius-lg);
    padding: 40px;
    box-shadow: var(--shadow-lg);
}

.contact-form-card .form-control,
.contact-form-card .form-select {
    border: 2px solid rgba(10,36,99,0.1);
    border-radius: var(--radius-sm);
    padding: 12px 15px;
    font-size: 0.9rem;
    transition: var(--transition);
}

.contact-form-card .form-control:focus,
.contact-form-card .form-select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(10,36,99,0.1);
}

.contact-info-card {
    background: var(--gradient-primary);
    border-radius: var(--radius-lg);
    padding: 40px;
    color: #fff;
    height: 100%;
}

.contact-info-item {
    display: flex;
    gap: 15px;
    margin-bottom: 25px;
}

.contact-info-item i {
    font-size: 1.5rem;
    color: var(--accent);
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255,255,255,0.1);
    border-radius: 50%;
    flex-shrink: 0;
}

.contact-info-item h6 {
    color: #fff;
    font-weight: 600;
    margin-bottom: 5px;
}

.contact-info-item p,
.contact-info-item a {
    color: rgba(255,255,255,0.8);
    font-size: 0.9rem;
    margin: 0;
}

.contact-info-item a:hover { color: var(--accent); }

/* ---- Gallery Section ---- */
.gallery-item {
    position: relative;
    border-radius: var(--radius-md);
    overflow: hidden;
    margin-bottom: 20px;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.gallery-item:hover {
    transform: scale(1.03);
    box-shadow: var(--shadow-lg);
}

.gallery-item img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    transition: var(--transition);
}

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

.gallery-overlay {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(10,36,99,0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: var(--transition);
}

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

.gallery-overlay i {
    font-size: 2.5rem;
    color: #fff;
}

/* ---- Infrastructure Section ---- */
.infra-card {
    background: var(--bg-white);
    border-radius: var(--radius-md);
    padding: 30px;
    text-align: center;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    height: 100%;
    border: 1px solid rgba(10,36,99,0.05);
}

.infra-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary);
}

.infra-icon {
    width: 70px; height: 70px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 15px;
    font-size: 1.8rem;
    background: rgba(10,36,99,0.06);
    color: var(--primary);
    transition: var(--transition);
}

.infra-card:hover .infra-icon {
    background: var(--primary);
    color: #fff;
}

.infra-card h5 { font-size: 1rem; font-weight: 700; }
.infra-card p { font-size: 0.85rem; color: var(--text-light); margin: 0; }

/* ---- Admission Form ---- */
.admission-form {
    background: var(--bg-white);
    border-radius: var(--radius-lg);
    padding: 40px;
    box-shadow: var(--shadow-lg);
}

.admission-form .form-label {
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--text-dark);
}

/* ---- Footer ---- */
.site-footer {
    position: relative;
    background: var(--bg-dark);
    color: rgba(255,255,255,0.7);
}

.footer-wave {
    color: var(--bg-dark);
    margin-top: -2px;
}

.footer-wave svg {
    display: block;
    width: 100%;
    height: 60px;
}

.footer-main { padding: 60px 0 30px; }

.footer-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 15px;
}

.footer-brand img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: #fff;
    padding: 3px;
}

.footer-brand h3 {
    color: #fff;
    font-weight: 800;
    font-size: 1.4rem;
    margin: 0;
}

.footer-widget h4 {
    color: #fff;
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 12px;
}

.footer-widget h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 3px;
    background: var(--secondary);
    border-radius: 2px;
}

.footer-social {
    display: flex;
    gap: 10px;
    margin-top: 20px;
}

.footer-social a {
    width: 40px; height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255,255,255,0.08);
    color: rgba(255,255,255,0.7);
    font-size: 1rem;
    transition: var(--transition);
}

.footer-social a:hover {
    background: var(--secondary);
    color: #fff;
    transform: translateY(-3px);
}

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

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

.footer-links a {
    color: rgba(255,255,255,0.7);
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: var(--transition);
}

.footer-links a::before {
    content: '\F285';
    font-family: 'bootstrap-icons';
    font-size: 0.7rem;
    color: var(--accent);
}

.footer-links a:hover { color: var(--accent); transform: translateX(5px); }

.footer-contact {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-contact li {
    display: flex;
    gap: 12px;
    margin-bottom: 15px;
}

.footer-contact li i {
    color: var(--accent);
    font-size: 1.1rem;
    margin-top: 3px;
    flex-shrink: 0;
}

.footer-contact a { color: rgba(255,255,255,0.7); }
.footer-contact a:hover { color: var(--accent); }

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.08);
    padding: 20px 0;
}

.footer-bottom p {
    margin: 0;
    font-size: 0.85rem;
}

/* ---- Back to Top ---- */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--secondary);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    box-shadow: var(--shadow-md);
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: var(--transition);
    z-index: 999;
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover {
    background: var(--primary);
    color: #fff;
    transform: translateY(-5px);
}

/* ---- Department Detail ---- */
.dept-detail-sidebar {
    background: var(--bg-white);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    padding: 25px;
    border: 1px solid rgba(10,36,99,0.05);
}

.dept-detail-sidebar h5 {
    font-weight: 700;
    font-size: 1rem;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--bg-light);
}

.dept-detail-sidebar .nav-link {
    padding: 10px 15px;
    color: var(--text-body);
    border-radius: var(--radius-sm);
    transition: var(--transition);
    font-size: 0.9rem;
    font-weight: 500;
}

.dept-detail-sidebar .nav-link:hover,
.dept-detail-sidebar .nav-link.active {
    background: var(--primary);
    color: #fff;
}

.dept-content-card {
    background: var(--bg-white);
    border-radius: var(--radius-md);
    padding: 30px;
    box-shadow: var(--shadow-sm);
    border: 1px solid rgba(10,36,99,0.05);
}

.faculty-card {
    background: var(--bg-light);
    border-radius: var(--radius-md);
    padding: 20px;
    text-align: center;
    transition: var(--transition);
}

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

.faculty-card img {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 12px;
    border: 3px solid var(--primary);
}

.faculty-card h6 { font-weight: 700; font-size: 0.9rem; margin-bottom: 3px; }
.faculty-card span { font-size: 0.8rem; color: var(--text-light); }

/* ============================================
   RESPONSIVE DESIGN — Comprehensive Mobile Fix
   ============================================ */

/* ---- XL Breakpoint (≤1199px) — Tablets Landscape ---- */
@media (max-width: 1199px) {
    .mega-menu { min-width: auto; }
    .mega-menu-lg { min-width: auto; }

    /* Swiper nav arrows smaller */
    .hero-swiper .swiper-button-next,
    .hero-swiper .swiper-button-prev {
        width: 42px;
        height: 42px;
    }
    .hero-swiper .swiper-button-next::after,
    .hero-swiper .swiper-button-prev::after {
        font-size: 1rem;
    }
}

/* ---- LG Breakpoint (≤991px) — Tablets Portrait ---- */
@media (max-width: 991px) {
    .top-bar { display: none; }

    /* Hero */
    .hero-title { font-size: 2.5rem; }
    .hero-section { height: 70vh; min-height: 500px; }
    .hero-description { font-size: 1rem; max-width: 100%; }

    /* Sections */
    .section-title { font-size: 2rem; }
    .section-padding { padding: 60px 0; }
    .section-desc { padding: 0 15px; }

    /* About */
    .about-content { padding-left: 0; margin-top: 40px; }
    .about-features { grid-template-columns: 1fr; }
    .about-img-main img { height: 320px; }

    /* Navigation collapse */
    .navbar-collapse {
        background: var(--primary-dark);
        padding: 15px;
        border-radius: var(--radius-md);
        margin-top: 10px;
        max-height: 70vh;
        overflow-y: auto;
    }
    .navbar-nav .nav-link { padding: 12px 15px !important; }
    .mega-menu,
    .dropdown-menu {
        border: none;
        box-shadow: none;
        border-top: 1px solid rgba(255,255,255,0.1);
        background: rgba(255,255,255,0.05);
    }
    .mega-menu .dropdown-item,
    .dropdown-menu .dropdown-item {
        color: rgba(255,255,255,0.8);
        padding: 10px 15px;
    }
    .mega-menu .dropdown-item:hover,
    .dropdown-menu .dropdown-item:hover {
        background: rgba(255,255,255,0.1);
        color: #fff;
        transform: none;
    }
    .mega-title { color: var(--accent); }

    /* Stats */
    .stats-card { padding: 20px 15px; }
    .stats-icon { width: 60px; height: 60px; font-size: 1.5rem; }

    /* Placement */
    .placement-highlight { padding: 30px; }
    .placement-icon { width: 65px; height: 65px; font-size: 1.6rem; }
    .placement-highlight h3 { font-size: 1.8rem; }

    /* Management */
    .management-img { width: 130px; height: 130px; }

    /* Footer bottom center */
    .footer-bottom .row > div { text-align: center !important; }

    /* Department detail sidebar */
    .dept-detail-sidebar {
        position: relative !important;
        top: auto !important;
        margin-bottom: 25px;
    }

    /* Popup modal responsive */
    #sitePopupOverlay > div {
        max-width: 90vw !important;
    }
    #sitePopupOverlay img#popupImage {
        max-width: 90vw !important;
        max-height: 75vh !important;
    }
}

/* ---- MD Breakpoint (≤767px) — Phones Landscape / Small Tablets ---- */
@media (max-width: 767px) {
    /* Hero */
    .hero-title { font-size: 2rem; }
    .hero-description { font-size: 0.95rem; }
    .hero-section { height: 60vh; min-height: 450px; }
    .hero-content { padding: 0 4%; }
    .hero-buttons { flex-direction: column; gap: 10px; }
    .hero-buttons .btn { text-align: center; width: 100%; }

    /* Stats bar */
    .stat-number { font-size: 1.5rem; }
    .stat-label { font-size: 0.7rem; letter-spacing: 0.5px; }
    .hero-stats-bar { padding: 12px 0; }

    /* Swiper arrows hide */
    .hero-swiper .swiper-button-next,
    .hero-swiper .swiper-button-prev { display: none; }

    /* Section */
    .section-title { font-size: 1.7rem; }
    .section-padding { padding: 50px 0; }
    .section-header { margin-bottom: 35px; }
    .section-badge { font-size: 0.75rem; padding: 5px 16px; }

    /* About */
    .about-img-main img { height: 260px; }
    .about-badge-float { display: none; }
    .about-content h2 { font-size: 1.7rem; }

    /* Department cards */
    .dept-card-img { height: 170px; }

    /* Stats section */
    .stats-card h3 { font-size: 2rem; }
    .stats-icon { width: 55px; height: 55px; font-size: 1.4rem; }

    /* Placement */
    .placement-highlight { padding: 25px; }
    .placement-highlight h3 { font-size: 1.6rem; }
    .placement-icon { width: 60px; height: 60px; font-size: 1.5rem; }

    /* Management */
    .management-card { padding: 25px 15px; }
    .management-img { width: 120px; height: 120px; }
    .management-card h5 { font-size: 0.95rem; }

    /* Infrastructure cards */
    .infra-card { padding: 22px 18px; }
    .infra-icon { width: 55px; height: 55px; font-size: 1.4rem; }

    /* News cards */
    .news-card img { height: 170px !important; }

    /* Testimonials */
    .testimonial-card { padding: 25px; margin: 15px 5px; }
    .testimonial-text { font-size: 0.88rem; }
    .testimonial-quote { font-size: 2.5rem; }

    /* CTA */
    .cta-section { padding: 60px 0; }
    .cta-content h2 { font-size: 1.8rem; }
    .cta-content p { font-size: 1rem; }
    .cta-buttons { flex-direction: column; align-items: center; gap: 10px; }
    .cta-buttons .btn { width: 100%; max-width: 300px; text-align: center; }

    /* Footer */
    .footer-main { padding: 40px 0 20px; }
    .footer-widget { margin-bottom: 10px; }
    .footer-bottom { text-align: center; }
    .footer-bottom .col-md-6 { text-align: center !important; }

    /* Contact */
    .contact-form-card,
    .contact-info-card { padding: 25px; }
    .contact-info-item i { width: 42px; height: 42px; font-size: 1.2rem; }

    /* Page banner */
    .page-banner { padding: 80px 0 40px; }
    .page-banner h1 { font-size: 1.8rem; }

    /* Gallery */
    .gallery-item img { height: 200px; }

    /* Back to top - account for bottom nav */
    .back-to-top {
        bottom: 80px;
        right: 20px;
        width: 42px;
        height: 42px;
        font-size: 1.2rem;
    }

    /* Buttons */
    .btn-primary-custom,
    .btn-outline-custom,
    .btn-dark-custom {
        padding: 10px 24px;
        font-size: 0.88rem;
    }

    /* Tables in content cards scroll */
    .dept-content-card table {
        display: block;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    /* Department detail page */
    .dept-content-card { padding: 22px; }
    .dept-content-card h3 { font-size: 1.3rem; }

    /* Quick link items */
    .quick-link-item { padding: 18px 12px; }
    .quick-link-item i { font-size: 1.6rem; margin-bottom: 8px; }
    .quick-link-item h6 { font-size: 0.78rem; }

    /* Marquee / Associations */
    .marquee-card { min-width: 130px; height: 50px; padding: 8px 14px; }
    .marquee-card.assoc-card { min-width: 170px; height: 55px; }
    .marquee-card h6 { font-size: 0.82rem; }

    /* Map iframe */
    iframe[src*="google.com/maps"] { height: 300px !important; }

    /* Popup modal */
    #sitePopupOverlay > div {
        max-width: 92vw !important;
    }
    #sitePopupOverlay img#popupImage {
        max-width: 92vw !important;
        max-height: 70vh !important;
        border-radius: 8px !important;
    }
    #popupCloseBtn {
        top: -10px !important;
        right: -10px !important;
        width: 32px !important;
        height: 32px !important;
        font-size: 18px !important;
    }

    /* Founder section */
    .founder-image img { max-width: 280px; }
    .founder-content h2 { font-size: 1.7rem; }
}

/* ---- SM Breakpoint (≤575px) — Phones Portrait ---- */
@media (max-width: 575px) {
    /* Hero */
    .hero-title { font-size: 1.55rem; }
    .hero-section { height: 55vh; min-height: 400px; }
    .hero-description { font-size: 0.88rem; margin-bottom: 20px; }
    .hero-badge { font-size: 0.75rem; padding: 5px 14px; margin-bottom: 12px; }
    .hero-content { padding: 0 3%; }

    /* Stats bar */
    .stat-number { font-size: 1.2rem; }
    .stat-label { font-size: 0.62rem; }
    .hero-stats-bar { padding: 10px 0; }
    .stat-item { padding: 6px 4px; }

    /* Section */
    .section-title { font-size: 1.45rem; }
    .section-padding { padding: 40px 0; }
    .section-desc { font-size: 0.92rem; }
    .section-header { margin-bottom: 30px; }

    /* About */
    .about-img-main img { height: 220px; }
    .about-content h2 { font-size: 1.45rem; }
    .about-feature { padding: 10px 12px; }
    .about-feature i { font-size: 1.1rem; }
    .about-feature span { font-size: 0.82rem; }

    /* Department cards */
    .dept-card-img { height: 150px; }
    .dept-card-body { padding: 15px; }
    .dept-card-body h5 { font-size: 0.9rem; }
    .dept-card-body p { font-size: 0.78rem; }

    /* Stats section */
    .stats-card h3 { font-size: 1.6rem; }
    .stats-card p { font-size: 0.78rem; }
    .stats-card { padding: 15px 10px; }
    .stats-icon { width: 50px; height: 50px; font-size: 1.2rem; margin-bottom: 10px; }

    /* Placement */
    .placement-highlight { padding: 20px 15px; }
    .placement-highlight h3 { font-size: 1.4rem; }
    .placement-highlight p { font-size: 0.8rem; }
    .placement-icon { width: 55px; height: 55px; font-size: 1.3rem; margin-bottom: 12px; }

    /* Management */
    .management-card { padding: 20px 12px; }
    .management-img { width: 100px; height: 100px; margin-bottom: 15px; }
    .management-card h5 { font-size: 0.88rem; }
    .management-card .designation { font-size: 0.78rem; }

    /* Infrastructure */
    .infra-card { padding: 18px 14px; }
    .infra-icon { width: 48px; height: 48px; font-size: 1.2rem; }
    .infra-card h5 { font-size: 0.9rem; }
    .infra-card p { font-size: 0.8rem; }

    /* News */
    .news-card img { height: 150px !important; }

    /* Testimonials */
    .testimonial-card { padding: 20px 16px; }
    .testimonial-text { font-size: 0.85rem; line-height: 1.7; }
    .testimonial-quote { font-size: 2rem; top: 8px; right: 14px; }
    .testimonial-avatar { width: 42px; height: 42px; font-size: 0.95rem; }
    .testimonial-author h6 { font-size: 0.88rem; }

    /* CTA */
    .cta-section { padding: 45px 0; }
    .cta-content h2 { font-size: 1.45rem; }
    .cta-content p { font-size: 0.9rem; margin-bottom: 20px; }

    /* Footer */
    .footer-main { padding: 30px 0 15px; }
    .footer-brand h3 { font-size: 1.2rem; }
    .footer-widget h4 { font-size: 1rem; margin-bottom: 15px; }
    .footer-links a { font-size: 0.85rem; }
    .footer-social a { width: 36px; height: 36px; font-size: 0.9rem; }

    /* Contact */
    .contact-form-card,
    .contact-info-card { padding: 20px 16px; }
    .contact-info-item { gap: 12px; margin-bottom: 20px; }
    .contact-info-item i { width: 38px; height: 38px; font-size: 1.1rem; }
    .contact-info-item h6 { font-size: 0.9rem; }
    .contact-info-item p, .contact-info-item a { font-size: 0.82rem; }

    /* Page banner */
    .page-banner { padding: 70px 0 30px; }
    .page-banner h1 { font-size: 1.5rem; word-wrap: break-word; }
    .page-banner .breadcrumb { font-size: 0.8rem; }

    /* Gallery */
    .gallery-item img { height: 180px; }

    /* Buttons */
    .btn-primary-custom,
    .btn-outline-custom,
    .btn-dark-custom {
        padding: 10px 20px;
        font-size: 0.85rem;
    }

    /* Department detail */
    .dept-content-card { padding: 18px 14px; }
    .dept-content-card h3 { font-size: 1.15rem; }
    .dept-detail-sidebar { padding: 18px; }
    .dept-detail-sidebar h5 { font-size: 0.9rem; }
    .dept-detail-sidebar .nav-link { padding: 8px 12px; font-size: 0.82rem; }

    /* Faculty cards */
    .faculty-card img { width: 80px; height: 80px; }
    .faculty-card h6 { font-size: 0.82rem; }
    .faculty-card span { font-size: 0.72rem; }

    /* Quick links */
    .quick-link-item { padding: 15px 10px; }
    .quick-link-item i { font-size: 1.4rem; margin-bottom: 6px; }
    .quick-link-item h6 { font-size: 0.72rem; }

    /* Marquee */
    .marquee-card { min-width: 110px; height: 45px; padding: 6px 10px; }
    .marquee-card.assoc-card { min-width: 150px; height: 50px; }
    .marquee-card h6 { font-size: 0.75rem; }

    /* Brand */
    .brand-name { font-size: 0.85rem; }
    .brand-sub { font-size: 0.6rem; }
    .nav-logo { width: 45px; height: 45px; }

    /* Founder */
    .founder-image img { max-width: 240px; }
    .founder-content h2 { font-size: 1.45rem; }

    /* Map */
    iframe[src*="google.com/maps"] { height: 250px !important; }

    /* Popup */
    #sitePopupOverlay > div { max-width: 94vw !important; }
    #sitePopupOverlay img#popupImage {
        max-width: 94vw !important;
        max-height: 65vh !important;
    }
}

/* ---- XS Breakpoint (≤480px) — Very Small Phones ---- */
@media (max-width: 480px) {
    /* Hero */
    .hero-title { font-size: 1.35rem; }
    .hero-section { height: 50vh; min-height: 360px; }
    .hero-description { font-size: 0.82rem; }

    /* Section */
    .section-title { font-size: 1.3rem; }
    .section-padding { padding: 35px 0; }

    /* Stats */
    .stat-number { font-size: 1.05rem; }
    .stat-label { font-size: 0.58rem; }

    /* CTA */
    .cta-content h2 { font-size: 1.25rem; }
    .cta-content p { font-size: 0.82rem; }

    /* Page banner */
    .page-banner { padding: 60px 0 25px; }
    .page-banner h1 { font-size: 1.3rem; }

    /* Management */
    .management-img { width: 90px; height: 90px; }
    .management-card h5 { font-size: 0.82rem; }

    /* Stats section */
    .stats-card h3 { font-size: 1.4rem; }
    .stats-icon { width: 44px; height: 44px; font-size: 1.1rem; }

    /* Buttons extra small */
    .btn-primary-custom,
    .btn-outline-custom,
    .btn-dark-custom {
        padding: 9px 18px;
        font-size: 0.82rem;
    }

    /* Footer */
    .footer-main { padding: 25px 0 12px; }

    /* Contact */
    .contact-form-card,
    .contact-info-card { padding: 16px 12px; }

    /* Quick links tighter */
    .quick-link-item { padding: 12px 8px; }
    .quick-link-item i { font-size: 1.2rem; }
    .quick-link-item h6 { font-size: 0.68rem; }

    /* Placement */
    .placement-highlight h3 { font-size: 1.2rem; }
    .placement-icon { width: 48px; height: 48px; font-size: 1.1rem; }

    /* Infra */
    .infra-card { padding: 15px 10px; }
    .infra-icon { width: 42px; height: 42px; font-size: 1rem; }

    /* Map */
    iframe[src*="google.com/maps"] { height: 220px !important; }
}

/* ---- Touch-friendly global improvements ---- */
@media (hover: none) and (pointer: coarse) {
    /* Disable hover transforms on touch devices to prevent jank */
    .dept-card:hover { transform: none; }
    .quick-link-item:hover { transform: none; }
    .infra-card:hover { transform: none; }
    .management-card:hover { transform: none; }
    .placement-highlight:hover { transform: none; }
    .event-card:hover { transform: none; }
    .gallery-item:hover { transform: none; }
    .faculty-card:hover { transform: none; }

    /* Ensure minimum tap target of 44px */
    .navbar-nav .nav-link { min-height: 44px; display: flex; align-items: center; }
    .mega-menu .dropdown-item,
    .dropdown-menu .dropdown-item { min-height: 44px; }
    .footer-links a { min-height: 40px; }
}

/* ---- Loading Animation ---- */
.loading-overlay {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: var(--primary-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    transition: opacity 0.5s ease;
}

.loading-overlay.hide {
    opacity: 0;
    pointer-events: none;
}

.loading-spinner {
    width: 60px;
    height: 60px;
    border: 4px solid rgba(255,255,255,0.1);
    border-top-color: var(--accent);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin { to { transform: rotate(360deg); } }

/* ---- Marquee / Notice Bar ---- */
.notice-bar {
    background: var(--secondary);
    color: #fff;
    padding: 2px 0;
    font-size: 0.75rem;
    font-weight: 500;
    overflow: hidden;
    line-height: 1;
}

.notice-bar .notice-label {
    background: var(--primary-dark);
    padding: 2px 10px;
    border-radius: 3px;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.65rem;
    letter-spacing: 0.5px;
    margin-right: 10px;
    display: inline-block;
}

.marquee-wrap {
    overflow: hidden;
    white-space: nowrap;
}

.marquee-content {
    display: inline-block;
    animation: marquee 30s linear infinite;
}

@keyframes marquee {
    0% { transform: translateX(100%); }
    100% { transform: translateX(-100%); }
}

/* ---- Quick Links Section ---- */
.quick-links-section {
    padding: 0;
}

.quick-link-item {
    background: var(--bg-white);
    padding: 25px 20px;
    text-align: center;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    height: 100%;
    border: 1px solid rgba(10,36,99,0.05);
}

.quick-link-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
    border-color: var(--primary);
}

.quick-link-item i {
    font-size: 2rem;
    color: var(--primary);
    margin-bottom: 10px;
    display: block;
    transition: var(--transition);
}

.quick-link-item:hover i { color: var(--secondary); transform: scale(1.2); }

.quick-link-item h6 {
    font-weight: 600;
    font-size: 0.85rem;
    margin: 0;
}

.quick-link-item a {
    color: var(--text-dark);
    text-decoration: none;
}

/* ---- Campus View Section ---- */
.campus-view-section {
    padding: 80px 0;
    background: var(--bg-white);
    overflow: hidden;
}

.marquee-row {
    margin-bottom: 40px;
}

.marquee-row:last-child {
    margin-bottom: 0;
}

.marquee-subtitle {
    text-align: center;
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 20px;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.marquee-strip {
    width: 100%;
    overflow: hidden;
    position: relative;
    padding: 10px 0;
    display: flex;
}

/* Fading edges */
.marquee-strip::before,
.marquee-strip::after {
    content: "";
    position: absolute;
    top: 0;
    width: 80px;
    height: 100%;
    z-index: 2;
    pointer-events: none;
}

.marquee-strip::before {
    left: 0;
    background: linear-gradient(to right, var(--bg-white) 0%, transparent 100%);
}

.marquee-strip::after {
    right: 0;
    background: linear-gradient(to left, var(--bg-white) 0%, transparent 100%);
}

.marquee-track {
    display: flex;
    gap: 15px;
    width: max-content;
    will-change: transform;
}

.marquee-track.left-to-right {
    animation: scrollLeftToRight 30s linear infinite;
}

.marquee-track.right-to-left {
    animation: scrollRightToLeft 30s linear infinite;
}

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

/* Keyframes for smooth infinite scrolling */
@keyframes scrollLeftToRight {
    0% { transform: translateX(calc(-50% - 15px)); }
    100% { transform: translateX(0); }
}

@keyframes scrollRightToLeft {
    0% { transform: translateX(0); }
    100% { transform: translateX(calc(-50% - 15px)); }
}

.marquee-card {
    background: #fff;
    border: 1px solid rgba(10, 36, 99, 0.2);
    border-radius: 8px;
    padding: 10px 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 160px;
    height: 60px;
    box-shadow: none;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.3s, border-color 0.3s;
    cursor: pointer;
}

.marquee-card:hover {
    transform: scale(1.08);
    box-shadow: var(--shadow-md);
    border-color: var(--primary);
    z-index: 5;
}

.marquee-card h6 {
    margin: 0;
    font-size: 0.95rem;
    color: var(--primary-dark);
    font-weight: 700;
}

.marquee-card .placeholder-logo {
    width: 40px;
    height: 40px;
    border: 1px dashed rgba(10,36,99,0.3);
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-light);
    font-size: 0.65rem;
    background: rgba(10,36,99,0.02);
}

.marquee-card.assoc-card {
    min-width: 220px;
    height: 70px;
    gap: 12px;
}

/* ---- Animations ---- */
[data-aos] {
    transition-duration: 800ms !important;
}
