/* ==========================================================================
   College Website — Premium Theme
   Design language: soft gradients, glassmorphism, rounded UI, micro-animations
   ========================================================================== */

:root {
    --clr-primary: #1e3a8a;
    --clr-primary-light: #3b5fd9;
    --clr-secondary: #0ea5a4;
    --clr-accent: #f59e0b;
    --clr-accent-2: #7c3aed;
    --clr-ink: #12203f;
    --clr-body: #45516b;
    --clr-muted: #7c8aa8;
    --clr-bg: #f6f8fc;
    --clr-surface: #ffffff;
    --clr-border: #e7ebf5;
    --gradient-primary: linear-gradient(135deg, #1e3a8a 0%, #3b5fd9 55%, #0ea5a4 100%);
    --gradient-warm: linear-gradient(135deg, #f59e0b 0%, #f97316 100%);
    --gradient-hero: linear-gradient(120deg, rgba(15, 23, 62, 0.92) 0%, rgba(30, 58, 138, 0.82) 45%, rgba(14, 165, 164, 0.75) 100%);
    --shadow-soft: 0 10px 30px rgba(18, 32, 63, 0.08);
    --shadow-medium: 0 18px 45px rgba(18, 32, 63, 0.14);
    --shadow-glow: 0 0 0 1px rgba(255,255,255,0.5) inset, 0 20px 40px rgba(30, 58, 138, 0.18);
    --radius-lg: 22px;
    --radius-md: 16px;
    --radius-sm: 10px;
    --font-display: "Poppins", "Segoe UI", sans-serif;
    --font-body: "Inter", "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    font-family: var(--font-body);
    color: var(--clr-body);
    background: var(--clr-bg);
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-display);
    color: var(--clr-ink);
    font-weight: 600;
}

a { color: var(--clr-primary); text-decoration: none; transition: color .2s ease; }
a:hover { color: var(--clr-secondary); }

.section-pad { padding: 70px 0; }
.section-pad-sm { padding: 40px 0; }

.section-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 16px;
    border-radius: 50px;
    background: rgba(30, 58, 138, 0.08);
    color: var(--clr-primary);
    font-weight: 600;
    font-size: .78rem;
    letter-spacing: .08em;
    text-transform: uppercase;
    margin-bottom: 14px;
}

.section-title {
    font-size: clamp(1.6rem, 2.4vw, 2.4rem);
    margin-bottom: 12px;
}

.section-sub {
    color: var(--clr-muted);
    max-width: 640px;
    margin: 0 auto 40px;
}

/* ---------- Buttons ---------- */
.btn-gradient {
    background: var(--gradient-primary);
    color: #fff;
    border: none;
    padding: 12px 28px;
    border-radius: 50px;
    font-weight: 600;
    box-shadow: var(--shadow-soft);
    transition: transform .25s ease, box-shadow .25s ease;
}
.btn-gradient:hover { color: #fff; transform: translateY(-3px); box-shadow: var(--shadow-medium); }

.btn-outline-soft {
    background: rgba(255,255,255,0.12);
    border: 1.5px solid rgba(255,255,255,0.6);
    color: #fff;
    padding: 12px 28px;
    border-radius: 50px;
    font-weight: 600;
    backdrop-filter: blur(6px);
    transition: all .25s ease;
}
.btn-outline-soft:hover { background: #fff; color: var(--clr-primary); }

/* ---------- Top utility bar ---------- */
.topbar {
    background: var(--clr-ink);
    color: #cfd8ef;
    font-size: .85rem;
    padding: 7px 0;
}
.topbar a { color: #cfd8ef; }
.topbar a:hover { color: #fff; }
.topbar .social-links a {
    display: inline-flex; align-items: center; justify-content: center;
    width: 28px; height: 28px; border-radius: 50%;
    background: rgba(255,255,255,0.08); margin-left: 6px;
}
.topbar .social-links a:hover { background: var(--gradient-primary); }

/* ---------- Sticky header / mega menu ---------- */
.site-header {
    position: sticky; top: 0; z-index: 1030;
    background: rgba(255,255,255,0.9);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 18px rgba(18,32,63,0.06);
    transition: box-shadow .2s ease;
}
.site-header .navbar-brand { display: flex; align-items: center; gap: 12px; }
.site-header .navbar-brand img { height: 48px; }
.site-header .brand-text .name { font-family: var(--font-display); font-weight: 700; color: var(--clr-ink); font-size: 1.05rem; line-height: 1.15; display: block; }
.site-header .brand-text .tagline { font-size: .72rem; color: var(--clr-muted); }

.main-nav .nav-link {
    font-weight: 600;
    color: var(--clr-ink) !important;
    padding: 10px 14px !important;
    border-radius: 10px;
    position: relative;
}
.main-nav .nav-link:hover, .main-nav .nav-link.active { color: var(--clr-primary) !important; background: rgba(30,58,138,0.06); }

.mega-menu {
    border: none;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-medium);
    padding: 22px;
    margin-top: 10px !important;
}
.mega-menu .mega-col-title {
    font-size: .72rem; text-transform: uppercase; letter-spacing: .08em;
    color: var(--clr-muted); font-weight: 700; margin-bottom: 10px;
}
.mega-menu a.mega-link {
    display: flex; align-items: center; gap: 10px;
    padding: 8px 10px; border-radius: 10px; color: var(--clr-body); font-weight: 500;
}
.mega-menu a.mega-link:hover { background: rgba(30,58,138,0.07); color: var(--clr-primary); }
.mega-menu a.mega-link i { color: var(--clr-secondary); width: 18px; text-align: center; }

/* ---------- Hero ---------- */
.hero-slider { position: relative; overflow: hidden; }
.hero-slide {
    position: relative;
    min-height: 88vh;
    display: flex; align-items: center;
    background-size: cover; background-position: center;
}
.hero-slide::before { content: ""; position: absolute; inset: 0; background: var(--gradient-hero); }
.hero-slide .container { position: relative; z-index: 2; }
.hero-slide .hero-eyebrow {
    display: inline-block; padding: 6px 18px; border-radius: 50px;
    background: rgba(255,255,255,0.15); color: #fff; font-weight: 600;
    letter-spacing: .06em; text-transform: uppercase; font-size: .78rem;
    backdrop-filter: blur(6px); margin-bottom: 18px;
}
.hero-slide h1 {
    color: #fff; font-size: clamp(2rem, 4.2vw, 3.6rem); font-weight: 700; line-height: 1.15;
    text-shadow: 0 4px 24px rgba(0,0,0,0.25);
}
.hero-slide p.lead { color: rgba(255,255,255,0.9); font-size: 1.15rem; max-width: 560px; }
.hero-slider .owl-dots { position: absolute; bottom: 26px; left: 0; right: 0; text-align: center; z-index: 3; }
.hero-slider .owl-dot span { background: rgba(255,255,255,0.4) !important; width: 10px !important; height: 10px !important; margin: 4px !important; }
.hero-slider .owl-dot.active span { background: #fff !important; width: 26px !important; border-radius: 6px !important; }

/* ---------- Glass cards ---------- */
.glass-card {
    background: rgba(255,255,255,0.65);
    border: 1px solid rgba(255,255,255,0.6);
    backdrop-filter: blur(14px);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-soft);
}

.floating-stats {
    position: relative; margin-top: -70px; z-index: 5;
}
.stat-tile {
    background: rgba(255,255,255,0.85);
    backdrop-filter: blur(16px);
    border: 1px solid rgba(255,255,255,0.7);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-medium);
    padding: 26px 18px;
    text-align: center;
    transition: transform .3s ease;
}
.stat-tile:hover { transform: translateY(-6px); }
.stat-tile .stat-icon {
    width: 52px; height: 52px; border-radius: 16px;
    display: flex; align-items: center; justify-content: center;
    background: var(--gradient-primary); color: #fff; font-size: 1.3rem;
    margin: 0 auto 12px;
}
.stat-tile .stat-value { font-family: var(--font-display); font-weight: 700; font-size: 2rem; color: var(--clr-ink); }
.stat-tile .stat-label { color: var(--clr-muted); font-size: .85rem; font-weight: 600; }

/* ---------- Announcement ticker ---------- */
.announce-bar { background: var(--gradient-warm); color: #fff; overflow: hidden; }
.announce-bar .marquee-track {
    display: inline-flex; white-space: nowrap; animation: marquee 28s linear infinite;
    padding: 10px 0;
}
.announce-bar .marquee-track span { margin-right: 60px; font-weight: 600; font-size: .9rem; }
@keyframes marquee { 0% { transform: translateX(0); } 100% { transform: translateX(-50%); } }

/* ---------- Cards ---------- */
.premium-card {
    background: var(--clr-surface);
    border: 1px solid var(--clr-border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-soft);
    transition: transform .3s ease, box-shadow .3s ease;
    height: 100%;
}
.premium-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-medium); }
.premium-card .card-img-wrap { position: relative; overflow: hidden; height: 190px; }
.premium-card .card-img-wrap img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.premium-card:hover .card-img-wrap img { transform: scale(1.08); }
.premium-card .card-body { padding: 22px; }
.premium-card .badge-soft {
    background: rgba(30,58,138,0.08); color: var(--clr-primary); font-weight: 600;
    padding: 5px 12px; border-radius: 50px; font-size: .72rem;
}

.icon-badge {
    width: 60px; height: 60px; border-radius: 18px;
    display: flex; align-items: center; justify-content: center;
    background: var(--gradient-primary); color: #fff; font-size: 1.5rem;
    box-shadow: var(--shadow-soft);
}

.dept-card { text-align: center; padding: 34px 22px; }
.dept-card .icon-badge { margin: 0 auto 18px; }

.faculty-card { text-align: center; padding: 28px 20px; }
.faculty-card img { width: 110px; height: 110px; border-radius: 50%; object-fit: cover; border: 4px solid #fff; box-shadow: var(--shadow-soft); margin-bottom: 16px; }
.faculty-card .social-mini a { width: 32px; height: 32px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; background: rgba(30,58,138,0.08); margin: 0 3px; }
.faculty-card .social-mini a:hover { background: var(--gradient-primary); color: #fff; }

/* ---------- Timeline (news/notices) ---------- */
.list-feed-item {
    display: flex; gap: 16px; padding: 16px 0;
    border-bottom: 1px dashed var(--clr-border);
}
.list-feed-item:last-child { border-bottom: none; }
.date-chip {
    flex: 0 0 auto; width: 62px; height: 62px; border-radius: 14px;
    background: var(--gradient-primary); color: #fff;
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    font-family: var(--font-display);
}
.date-chip .dd { font-size: 1.2rem; font-weight: 700; line-height: 1; }
.date-chip .mm { font-size: .65rem; text-transform: uppercase; letter-spacing: .05em; }

/* ---------- Testimonials ---------- */
.testimonial-card { padding: 32px; text-align: center; }
.testimonial-card img { width: 78px; height: 78px; border-radius: 50%; object-fit: cover; margin: 0 auto 14px; border: 3px solid var(--clr-border); }
.testimonial-card .quote-mark { font-size: 2.4rem; color: rgba(30,58,138,0.15); line-height: 1; }
.testimonial-card .stars { color: var(--clr-accent); margin-bottom: 8px; }

/* ---------- Gallery ---------- */
.gallery-tile { position: relative; border-radius: var(--radius-md); overflow: hidden; box-shadow: var(--shadow-soft); }
.gallery-tile img { width: 100%; height: 230px; object-fit: cover; transition: transform .5s ease; }
.gallery-tile:hover img { transform: scale(1.1); }
.gallery-tile .gallery-overlay {
    position: absolute; inset: 0; background: linear-gradient(0deg, rgba(15,23,62,.85) 0%, rgba(15,23,62,0) 55%);
    display: flex; align-items: flex-end; padding: 16px; opacity: 0; transition: opacity .3s ease;
}
.gallery-tile:hover .gallery-overlay { opacity: 1; }
.gallery-tile .gallery-overlay h6 { color: #fff; margin: 0; }

/* ---------- CTA band ---------- */
.cta-band {
    background: var(--gradient-primary);
    border-radius: var(--radius-lg);
    padding: 50px;
    color: #fff;
    position: relative;
    overflow: hidden;
}
.cta-band::after {
    content: ""; position: absolute; width: 320px; height: 320px; border-radius: 50%;
    background: rgba(255,255,255,0.08); top: -140px; right: -80px;
}

/* ---------- Footer ---------- */
.site-footer { background: var(--clr-ink); color: #b9c3de; }
.site-footer h6 { color: #fff; font-weight: 700; margin-bottom: 18px; }
.site-footer a { color: #b9c3de; }
.site-footer a:hover { color: #fff; }
.site-footer .footer-links li { margin-bottom: 10px; }
.site-footer .social-links a {
    display: inline-flex; align-items: center; justify-content: center;
    width: 38px; height: 38px; border-radius: 50%;
    background: rgba(255,255,255,0.08); margin-right: 8px;
}
.site-footer .social-links a:hover { background: var(--gradient-primary); }
.footer-bottom { background: rgba(0,0,0,0.25); padding: 16px 0; font-size: .85rem; }

/* ---------- Back to top ---------- */
.back-to-top {
    position: fixed; right: 22px; bottom: 22px; z-index: 1040;
    width: 46px; height: 46px; border-radius: 50%;
    background: var(--gradient-primary); color: #fff;
    display: flex; align-items: center; justify-content: center;
    box-shadow: var(--shadow-medium);
    opacity: 0; visibility: hidden; transform: translateY(10px);
    transition: all .3s ease;
}
.back-to-top.show { opacity: 1; visibility: visible; transform: translateY(0); }

/* ---------- Breadcrumb / inner page header ---------- */
.page-header-band {
    background: var(--gradient-primary);
    padding: 60px 0 40px;
    color: #fff;
    position: relative;
}
.page-header-band h1 { color: #fff; margin-bottom: 8px; }
.breadcrumb-custom { background: transparent; padding: 0; margin: 0; }
.breadcrumb-custom a { color: rgba(255,255,255,0.8); }
.breadcrumb-custom .active { color: #fff; }

/* ---------- Skeleton loader ---------- */
.skeleton { background: linear-gradient(90deg, #eef1f8 25%, #f7f9fd 37%, #eef1f8 63%); background-size: 400% 100%; animation: skeleton-loading 1.4s ease infinite; border-radius: var(--radius-sm); }
@keyframes skeleton-loading { 0% { background-position: 100% 50%; } 100% { background-position: 0 50%; } }

/* ---------- Empty state ---------- */
.empty-state { text-align: center; padding: 60px 20px; color: var(--clr-muted); }
.empty-state i { font-size: 2.6rem; color: var(--clr-border); margin-bottom: 14px; }

/* ---------- Utilities ---------- */
.text-gradient { background: var(--gradient-primary); -webkit-background-clip: text; background-clip: text; color: transparent; }
.fade-up { animation: fadeUp .6s ease both; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: translateY(0); } }

@media (max-width: 991px) {
    .floating-stats { margin-top: 0; padding-top: 40px; }
    .hero-slide { min-height: 70vh; }
}
