/* =====================================================
   Government College Website - Frontend CSS
   Premium Modern Design
   ===================================================== */

@import url('https://fonts.googleapis.com/css2?family=Hind+Siliguri:wght@400;500;600;700&family=Inter:wght@300;400;500;600;700;800;900&display=swap');

:root {
    --primary: #1e40af;
    --primary-light: #3b82f6;
    --primary-dark: #1e3a8a;
    --primary-50: #eff6ff;
    --primary-100: #dbeafe;
    --accent: #059669;
    --accent-light: #10b981;
    --gold: #d97706;
    --text: #0f172a;
    --text-secondary: #475569;
    --text-light: #94a3b8;
    --bg: #f8fafc;
    --bg-alt: #f1f5f9;
    --white: #ffffff;
    --border: #e2e8f0;
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
    --shadow: 0 4px 6px rgba(0, 0, 0, 0.04), 0 1px 3px rgba(0, 0, 0, 0.06);
    --shadow-md: 0 10px 25px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 20px 50px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 25px 60px rgba(0, 0, 0, 0.15);
    --radius: 16px;
    --radius-sm: 10px;
    --radius-lg: 24px;
    --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', 'Hind Siliguri', sans-serif;
    color: var(--text);
    line-height: 1.7;
    background: var(--bg);
    -webkit-font-smoothing: antialiased;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

a {
    color: var(--primary);
    text-decoration: none;
    transition: color var(--transition);
}

a:hover {
    color: var(--primary-dark);
}

img {
    max-width: 100%;
    height: auto;
}

/* ---- Navbar ---- */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.95);
    -webkit-backdrop-filter: blur(5px);
    /* Lint fix: -webkit- prefix before standard */
    backdrop-filter: blur(5px);
    border-bottom: 1px solid rgba(226, 232, 240, 0.6);
    transition: all var(--transition);
}

.navbar.scrolled {
    box-shadow: var(--shadow);
    background: rgba(255, 255, 255, 0.98);
}

.navbar .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 72px;
}

.navbar-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--text);
    font-weight: 700;
}

.navbar-logo-img {
    height: 44px;
    width: auto;
}

.navbar-brand i {
    font-size: 28px;
    color: var(--primary);
}

.brand-name {
    font-size: 16px;
    font-weight: 800;
    display: block;
    line-height: 1.2;
    letter-spacing: -0.3px;
}

.brand-name-bn {
    font-size: 12px;
    font-weight: 500;
    color: var(--text-secondary);
    display: block;
    font-family: 'Hind Siliguri', sans-serif;
}

.nav-menu {
    display: flex;
    list-style: none;
    align-items: center;
    gap: 4px;
}

.nav-link {
    padding: 8px 16px;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-secondary);
    border-radius: var(--radius-sm);
    transition: all var(--transition);
}

.nav-link:hover {
    color: var(--primary);
    background: var(--primary-50);
}

.nav-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 22px;
    cursor: pointer;
    color: var(--text);
    padding: 8px;
}

/* Dropdown */
.nav-dropdown {
    position: relative;
}

.dropdown-toggle {
    display: flex;
    align-items: center;
    gap: 4px;
}

.dropdown-toggle i {
    font-size: 10px;
    transition: transform var(--transition);
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    right: 0;
    background: var(--white);
    min-width: 220px;
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    padding: 8px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all var(--transition);
    list-style: none;
    border: 1px solid var(--border);
}

.nav-dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.nav-dropdown:hover .dropdown-toggle i {
    transform: rotate(180deg);
}

.dropdown-menu a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    border-radius: var(--radius-sm);
    font-size: 14px;
    color: var(--text-secondary);
}

.dropdown-menu a:hover {
    background: var(--primary-50);
    color: var(--primary);
}

.dropdown-menu a i {
    width: 20px;
    color: var(--primary-light);
}

/* ---- Hero ---- */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, #0f172a 0%, #1e3a8a 40%, #1e40af 70%, #2563eb 100%);
    position: relative;
    overflow: hidden;
    padding-top: 72px;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1440 600"><defs><linearGradient id="g" x1="0" y1="0" x2="1" y2="1"><stop offset="0%" stop-color="%23ffffff10"/><stop offset="100%" stop-color="%23ffffff00"/></linearGradient></defs><circle cx="200" cy="150" r="300" fill="url(%23g)"/><circle cx="1200" cy="400" r="250" fill="url(%23g)"/></svg>') center/cover;
}

.hero-particles {
    position: absolute;
    inset: 0;
    background: radial-gradient(2px 2px at 20% 30%, rgba(255, 255, 255, 0.2), transparent),
        radial-gradient(2px 2px at 60% 70%, rgba(255, 255, 255, 0.15), transparent),
        radial-gradient(2px 2px at 80% 20%, rgba(255, 255, 255, 0.1), transparent),
        radial-gradient(3px 3px at 40% 60%, rgba(255, 255, 255, 0.12), transparent),
        radial-gradient(2px 2px at 90% 50%, rgba(255, 255, 255, 0.18), transparent);
    animation: sparkle 8s ease-in-out infinite alternate;
}

@keyframes sparkle {
    0% {
        opacity: 0.6;
    }

    100% {
        opacity: 1;
    }
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: #fff;
    padding: 60px 0 80px;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 20px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50px;
    font-size: 13px;
    font-weight: 500;
    margin-bottom: 24px;
    backdrop-filter: blur(10px);
    animation: fadeInUp 0.6s ease;
}

.hero-title {
    font-size: clamp(32px, 5vw, 56px);
    font-weight: 900;
    letter-spacing: -1px;
    margin-bottom: 8px;
    background: linear-gradient(135deg, #fff 0%, #93c5fd 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: fadeInUp 0.6s ease 0.1s both;
}

.hero-title-bn {
    font-size: clamp(20px, 3vw, 32px);
    font-weight: 600;
    font-family: 'Hind Siliguri', sans-serif;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 16px;
    animation: fadeInUp 0.6s ease 0.2s both;
}

.hero-subtitle {
    font-size: 18px;
    color: rgba(255, 255, 255, 0.7);
    max-width: 500px;
    margin: 0 auto 32px;
    animation: fadeInUp 0.6s ease 0.3s both;
}

.hero-actions {
    display: flex;
    gap: 16px;
    justify-content: center;
    animation: fadeInUp 0.6s ease 0.4s both;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 28px;
    border-radius: var(--radius-sm);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: all var(--transition);
    text-decoration: none;
}

.btn-primary {
    background: var(--primary);
    color: #fff;
}

.btn-primary:hover {
    background: var(--primary-dark);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-hero-primary {
    background: #fff;
    color: var(--primary-dark);
}

.btn-hero-primary:hover {
    background: #f1f5f9;
    color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-hero-outline {
    background: transparent;
    color: #fff;
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.btn-hero-outline:hover {
    border-color: #fff;
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
}

.btn-outline {
    background: transparent;
    border: 1.5px solid var(--border);
    color: var(--text);
}

.btn-outline:hover {
    border-color: var(--primary);
    color: var(--primary);
}

.btn-sm {
    padding: 8px 16px;
    font-size: 13px;
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 48px;
    margin-top: 60px;
    animation: fadeInUp 0.6s ease 0.5s both;
}

.hero-stat {
    text-align: center;
}

.stat-number {
    display: block;
    font-size: 36px;
    font-weight: 800;
    line-height: 1.1;
}

.stat-label {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.6);
    font-weight: 500;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ---- Quick Access ---- */
.quick-access {
    margin-top: -60px;
    position: relative;
    z-index: 10;
    padding-bottom: 40px;
}

.quick-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.quick-card {
    background: var(--white);
    padding: 28px;
    border-radius: var(--radius-lg);
    text-align: center;
    box-shadow: var(--shadow-md);
    transition: all var(--transition);
    color: var(--text);
    border: 1px solid transparent;
}

.quick-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
    border-color: var(--primary-100);
    color: var(--primary);
}

.quick-icon {
    width: 64px;
    height: 64px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
    font-size: 26px;
}

.gradient-blue {
    background: linear-gradient(135deg, #3b82f6, #1d4ed8);
    color: #fff;
}

.gradient-green {
    background: linear-gradient(135deg, #10b981, #059669);
    color: #fff;
}

.gradient-purple {
    background: linear-gradient(135deg, #8b5cf6, #6d28d9);
    color: #fff;
}

.gradient-orange {
    background: linear-gradient(135deg, #f59e0b, #d97706);
    color: #fff;
}

.quick-card h3 {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 4px;
}

.quick-card p {
    font-size: 13px;
    color: var(--text-light);
}

/* ---- Sections ---- */
.section {
    padding: 80px 0;
}

.section-alt {
    background: var(--bg-alt);
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 32px;
}

.section-title {
    font-size: 28px;
    font-weight: 800;
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--text);
}

.section-title i {
    color: var(--primary-light);
    font-size: 24px;
}

.section-title.text-center {
    justify-content: center;
    margin-bottom: 40px;
}

.view-all {
    font-size: 14px;
    font-weight: 600;
    color: var(--primary);
    display: flex;
    align-items: center;
    gap: 6px;
}

.view-all:hover {
    gap: 10px;
}

/* ---- Page Header ---- */
.page-header {
    padding: 120px 0 60px;
    background: linear-gradient(135deg, #0f172a 0%, #1e3a8a 100%);
    text-align: center;
    color: #fff;
}

.page-header h1 {
    font-size: 36px;
    font-weight: 800;
    margin-bottom: 8px;
}

.page-header p {
    font-size: 16px;
    color: rgba(255, 255, 255, 0.7);
}

.page-header a {
    color: rgba(255, 255, 255, 0.7);
}

.page-header a:hover {
    color: #fff;
}

/* ---- Notices ---- */
.notices-events-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 32px;
}

.notice-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px;
    border-radius: var(--radius);
    background: var(--white);
    border: 1px solid var(--border);
    margin-bottom: 12px;
    transition: all var(--transition);
    color: var(--text);
}

.notice-item:hover {
    border-color: var(--primary-light);
    box-shadow: var(--shadow);
    transform: translateX(4px);
    color: var(--text);
}

.notice-date {
    min-width: 52px;
    text-align: center;
    padding: 8px;
    border-radius: var(--radius-sm);
    background: var(--primary-50);
}

.notice-date .day {
    display: block;
    font-size: 22px;
    font-weight: 800;
    color: var(--primary);
    line-height: 1;
}

.notice-date .month {
    font-size: 11px;
    font-weight: 600;
    color: var(--primary-light);
    text-transform: uppercase;
}

.notice-content {
    flex: 1;
}

.notice-content h4 {
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 4px;
}

.notice-category {
    font-size: 11px;
    font-weight: 600;
    padding: 2px 10px;
    border-radius: 20px;
}

.notice-item>i {
    color: var(--text-light);
    font-size: 12px;
}

/* Notice categories */
.badge-general {
    background: #dbeafe;
    color: #1e40af;
}

.badge-academic {
    background: #dcfce7;
    color: #166534;
}

.badge-exam {
    background: #fef3c7;
    color: #92400e;
}

.badge-holiday {
    background: #fce7f3;
    color: #9d174d;
}

.badge-admission {
    background: #e0e7ff;
    color: #3730a3;
}

.badge-sports {
    background: #ccfbf1;
    color: #0f766e;
}

/* Events Sidebar */
.events-sidebar {
    background: var(--white);
    border-radius: var(--radius);
    padding: 24px;
    border: 1px solid var(--border);
    height: fit-content;
}

.sidebar-title {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.sidebar-title i {
    color: var(--primary-light);
}

.event-card {
    padding: 14px 0;
    border-bottom: 1px solid var(--border);
}

.event-card:last-child {
    border-bottom: none;
}

.event-date-badge {
    font-size: 12px;
    color: var(--primary);
    font-weight: 600;
    margin-bottom: 4px;
}

.event-date-badge .day {
    font-size: 18px;
    font-weight: 800;
    margin-right: 4px;
}

.event-card h4 {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 4px;
}

.event-card p {
    font-size: 12px;
    color: var(--text-light);
}

.event-card p i {
    margin-right: 4px;
}

/* Notices List Page */
.notices-list-page {
    max-width: 800px;
}

.notice-item-page {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    padding: 20px;
    border-radius: var(--radius);
    background: var(--white);
    border: 1px solid var(--border);
    margin-bottom: 16px;
    color: var(--text);
    transition: all var(--transition);
}

.notice-item-page:hover {
    border-color: var(--primary-light);
    box-shadow: var(--shadow);
    transform: translateX(4px);
    color: var(--text);
}

.notice-date-box {
    min-width: 60px;
    text-align: center;
    padding: 12px;
    border-radius: var(--radius-sm);
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: #fff;
}

.notice-date-box .day {
    display: block;
    font-size: 28px;
    font-weight: 800;
    line-height: 1;
}

.notice-date-box .month {
    font-size: 12px;
    font-weight: 600;
}

.notice-date-box .year {
    font-size: 11px;
    opacity: 0.7;
}

.notice-body h3 {
    font-size: 17px;
    font-weight: 700;
    margin-bottom: 6px;
}

.notice-body p {
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 8px;
}

.notice-meta span {
    font-size: 11px;
    padding: 3px 10px;
    border-radius: 20px;
    font-weight: 600;
}

.notice-item-page>i {
    color: var(--text-light);
    margin-top: 8px;
}

/* Notice Detail */
.notice-detail-card {
    max-width: 800px;
    background: var(--white);
    border-radius: var(--radius);
    padding: 40px;
    box-shadow: var(--shadow);
}

.notice-detail-header {
    display: flex;
    gap: 12px;
    align-items: center;
    margin-bottom: 16px;
}

.notice-detail-header span {
    font-size: 12px;
    padding: 4px 12px;
    border-radius: 20px;
    font-weight: 600;
}

.notice-detail-date {
    color: var(--text-light);
    font-size: 13px;
}

.notice-detail-card h1 {
    font-size: 28px;
    font-weight: 800;
    margin-bottom: 24px;
    line-height: 1.3;
}

.notice-detail-body {
    font-size: 16px;
    line-height: 1.8;
    color: var(--text-secondary);
}

.notice-attachment {
    margin-top: 32px;
    padding-top: 24px;
    border-top: 1px solid var(--border);
}

/* ---- Principal ---- */
.principal-section {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 48px;
    align-items: start;
}

.principal-photo img,
.principal-placeholder {
    width: 280px;
    height: 340px;
    object-fit: cover;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
}

.principal-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--primary-50);
    color: var(--primary-light);
    font-size: 80px;
}

.principal-content h2 {
    margin-bottom: 8px;
}

.principal-name {
    font-size: 20px;
    color: var(--primary);
    font-weight: 700;
}

.principal-designation {
    font-size: 14px;
    color: var(--text-light);
    margin-bottom: 20px;
}

.principal-message {
    font-size: 15px;
    color: var(--text-secondary);
    line-height: 1.8;
}

/* ---- Teachers ---- */
.teachers-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 24px;
}

.teacher-card {
    background: var(--white);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: all var(--transition);
    border: 1px solid var(--border);
}

.teacher-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-md);
}

.teacher-photo {
    height: 220px;
    overflow: hidden;
    background: var(--bg-alt);
}

.teacher-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition);
}

.teacher-card:hover .teacher-photo img {
    transform: scale(1.05);
}

.teacher-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-light);
    font-size: 60px;
}

.teacher-info {
    padding: 20px;
}

.teacher-info h4 {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 2px;
}

.teacher-bn {
    font-size: 13px;
    color: var(--text-light);
    font-family: 'Hind Siliguri', sans-serif;
}

.teacher-designation {
    font-size: 13px;
    color: var(--primary);
    font-weight: 600;
    margin-bottom: 4px;
}

.teacher-dept {
    font-size: 13px;
    color: var(--text-light);
    margin-bottom: 8px;
}

.teacher-contact {
    font-size: 12px;
    color: var(--text-secondary);
    margin-bottom: 2px;
}

.teacher-contact i {
    color: var(--primary-light);
    width: 16px;
}

/* ---- Filter Bar ---- */
.filter-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 32px;
}

.filter-chip {
    padding: 8px 20px;
    border-radius: 50px;
    font-size: 13px;
    font-weight: 600;
    background: var(--white);
    border: 1.5px solid var(--border);
    color: var(--text-secondary);
    transition: all var(--transition);
}

.filter-chip:hover,
.filter-chip.active {
    background: var(--primary);
    border-color: var(--primary);
    color: #fff;
}

/* ---- Gallery ---- */
.gallery-grid-front {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 16px;
}

.gallery-item-front {
    position: relative;
    border-radius: var(--radius);
    overflow: hidden;
    aspect-ratio: 4/3;
    cursor: pointer;
}

.gallery-item-front img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition);
}

.gallery-item-front:hover img {
    transform: scale(1.1);
}

.gallery-hover {
    position: absolute;
    inset: 0;
    background: rgba(30, 64, 175, 0.6);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 14px;
    opacity: 0;
    transition: opacity var(--transition);
}

.gallery-hover i {
    font-size: 28px;
    margin-bottom: 8px;
}

.gallery-item-front:hover .gallery-hover {
    opacity: 1;
}

/* Lightbox */
.lightbox {
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: rgba(0, 0, 0, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 16px;
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition);
}

.lightbox.active {
    opacity: 1;
    visibility: visible;
}

.lightbox img {
    max-width: 90%;
    max-height: 80vh;
    border-radius: var(--radius);
    object-fit: contain;
}

.lightbox p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 15px;
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 36px;
    color: #fff;
    cursor: pointer;
    background: none;
    border: none;
}

/* ---- Search Card ---- */
.search-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 36px;
    box-shadow: var(--shadow-md);
    max-width: 800px;
    margin: 0 auto;
    border: 1px solid var(--border);
}

.search-title {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.search-title i {
    color: var(--primary-light);
}

.search-row {
    display: flex;
    gap: 16px;
    align-items: end;
    flex-wrap: wrap;
}

.form-group {
    margin-bottom: 16px;
    flex: 1;
    min-width: 180px;
}

.form-group label {
    display: block;
    font-size: 12px;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 6px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.form-control {
    width: 100%;
    padding: 12px 16px;
    border: 1.5px solid var(--border);
    border-radius: var(--radius-sm);
    font-size: 14px;
    font-family: 'Inter', sans-serif;
    transition: all var(--transition);
    background: var(--white);
}

.form-control:focus {
    outline: none;
    border-color: var(--primary-light);
    box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.1);
}

.form-control-sm {
    padding: 8px 12px;
    font-size: 13px;
}

select.form-control {
    appearance: auto;
}

textarea.form-control {
    resize: vertical;
}

.form-row {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.btn-search {
    white-space: nowrap;
    margin-bottom: 16px;
}

/* ---- Result Card ---- */
.result-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 40px;
    margin-top: 32px;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border);
}

.result-header {
    text-align: center;
    margin-bottom: 24px;
    padding-bottom: 20px;
    border-bottom: 2px solid var(--primary);
}

.result-header h2 {
    font-size: 22px;
    color: var(--primary);
}

.result-header h3 {
    font-size: 16px;
    color: var(--text-secondary);
    font-weight: 500;
}

.result-student-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 8px;
    margin-bottom: 24px;
    padding: 16px;
    background: var(--primary-50);
    border-radius: var(--radius-sm);
}

.result-student-info p {
    font-size: 14px;
}

.result-table {
    width: 100%;
    border-collapse: collapse;
}

.result-table th {
    padding: 12px 16px;
    text-align: left;
    background: var(--primary);
    color: #fff;
    font-size: 13px;
    font-weight: 600;
}

.result-table td {
    padding: 12px 16px;
    border-bottom: 1px solid var(--border);
    font-size: 14px;
}

.result-table tbody tr:hover {
    background: var(--primary-50);
}

.result-table tfoot td {
    font-size: 15px;
    background: var(--bg-alt);
}

.fail-row {
    background: #fee2e2 !important;
}

.grade-badge {
    padding: 2px 10px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
    background: var(--primary-50);
    color: var(--primary);
}

.result-status {
    text-align: center;
    font-size: 18px;
}

.result-status.passed {
    color: #16a34a;
}

.result-status.failed {
    color: #dc2626;
}

.result-actions {
    margin-top: 24px;
    text-align: center;
}

/* ---- Fee Payment ---- */
.student-info-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 24px;
    background: var(--primary);
    color: #fff;
    border-radius: var(--radius);
    margin-bottom: 24px;
}

.student-info-bar h3 {
    font-size: 18px;
}

.student-info-bar p {
    font-size: 13px;
    opacity: 0.8;
}

.student-info-bar .btn-outline {
    color: #fff;
    border-color: rgba(255, 255, 255, 0.3);
}

.student-info-bar .btn-outline:hover {
    border-color: #fff;
}

.fees-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 20px;
}

.fee-card {
    background: var(--white);
    border-radius: var(--radius);
    padding: 24px;
    border: 1px solid var(--border);
    transition: all var(--transition);
}

.fee-card:hover {
    box-shadow: var(--shadow);
}

.fee-paid {
    border-left: 4px solid #16a34a;
}

.fee-header {
    display: flex;
    justify-content: space-between;
    align-items: start;
    margin-bottom: 12px;
}

.fee-header h4 {
    font-size: 16px;
    font-weight: 700;
}

.fee-status-badge {
    font-size: 11px;
    padding: 3px 10px;
    border-radius: 20px;
    font-weight: 600;
}

.badge-paid {
    background: #dcfce7;
    color: #166534;
}

.badge-pending {
    background: #fef3c7;
    color: #92400e;
}

.badge-overdue {
    background: #fee2e2;
    color: #991b1b;
}

.fee-amount {
    font-size: 28px;
    font-weight: 800;
    color: var(--primary);
    margin-bottom: 4px;
}

.fee-due {
    font-size: 13px;
    color: var(--text-light);
    margin-bottom: 16px;
}

.fee-pay-form .form-group {
    margin-bottom: 8px;
}

.fee-paid-info {
    font-size: 14px;
    color: #16a34a;
    font-weight: 600;
    margin-top: 12px;
}

/* ---- Admit Card ---- */
.admit-card {
    max-width: 700px;
    margin: 0 auto;
    background: var(--white);
    border: 3px solid var(--primary);
    border-radius: var(--radius);
    overflow: hidden;
}

.admit-card-header {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: #fff;
    padding: 24px;
    text-align: center;
}

.admit-logo-section {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    margin-bottom: 12px;
}

.admit-logo {
    height: 60px;
}

.admit-logo-section h2 {
    font-size: 20px;
}

.admit-bn {
    font-size: 15px;
    font-weight: 500;
    opacity: 0.8;
    font-family: 'Hind Siliguri';
}

.admit-logo-section p {
    font-size: 12px;
    opacity: 0.7;
}

.admit-title {
    font-size: 24px;
    letter-spacing: 6px;
    margin-top: 12px;
    border-top: 1px solid rgba(255, 255, 255, 0.3);
    padding-top: 12px;
}

.admit-exam {
    font-size: 14px;
    opacity: 0.8;
}

.admit-card-body {
    padding: 28px;
    display: grid;
    grid-template-columns: 120px 1fr;
    gap: 24px;
}

.admit-student-photo img,
.admit-placeholder {
    width: 120px;
    height: 150px;
    object-fit: cover;
    border: 2px solid var(--border);
    border-radius: var(--radius-sm);
}

.admit-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-alt);
    color: var(--text-light);
    font-size: 48px;
}

.admit-info-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.admit-info-grid div {
    display: flex;
    flex-direction: column;
}

.admit-info-grid label {
    font-size: 11px;
    font-weight: 600;
    color: var(--text-light);
    text-transform: uppercase;
}

.admit-info-grid span {
    font-size: 15px;
    font-weight: 600;
}

.admit-card-footer {
    display: flex;
    justify-content: space-between;
    padding: 20px 28px;
    border-top: 1px solid var(--border);
}

.admit-signature {
    text-align: center;
}

.signature-line {
    width: 160px;
    height: 1px;
    background: var(--text);
    margin-bottom: 6px;
    margin-top: 40px;
}

.admit-signature p {
    font-size: 12px;
    color: var(--text-light);
}

/* ---- About ---- */
.about-content {
    max-width: 800px;
}

.about-meta {
    display: flex;
    gap: 20px;
    margin: 16px 0 24px;
}

.about-meta span {
    font-size: 14px;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 6px;
}

.about-meta i {
    color: var(--primary-light);
}

.about-info p {
    font-size: 16px;
    color: var(--text-secondary);
    margin-bottom: 16px;
    line-height: 1.8;
}

.dept-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 20px;
}

.dept-card {
    background: var(--white);
    border-radius: var(--radius);
    padding: 28px;
    text-align: center;
    border: 1px solid var(--border);
    transition: all var(--transition);
}

.dept-card:hover {
    border-color: var(--primary-light);
    box-shadow: var(--shadow);
}

.dept-icon {
    width: 56px;
    height: 56px;
    border-radius: 16px;
    background: var(--primary-50);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    margin: 0 auto 16px;
}

.dept-card h3 {
    font-size: 17px;
    font-weight: 700;
    margin-bottom: 4px;
}

.dept-bn {
    font-family: 'Hind Siliguri';
    color: var(--text-light);
    font-size: 14px;
}

/* ---- Contact ---- */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
}

.contact-desc {
    font-size: 16px;
    color: var(--text-secondary);
    margin: 16px 0 32px;
}

.contact-cards {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.contact-card {
    display: flex;
    gap: 16px;
    align-items: start;
}

.contact-card-icon {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    background: var(--primary-50);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    flex-shrink: 0;
}

.contact-card h4 {
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 2px;
}

.contact-card p {
    font-size: 14px;
    color: var(--text-secondary);
}

.contact-social {
    display: flex;
    gap: 12px;
    margin-top: 24px;
}

.social-link {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: var(--primary);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    transition: all var(--transition);
}

.social-link:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
    color: #fff;
}

.contact-form-section {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 36px;
    box-shadow: var(--shadow);
}

.contact-form .btn {
    margin-top: 8px;
}

/* ---- Alerts ---- */
.alert {
    padding: 16px 20px;
    border-radius: var(--radius-sm);
    margin-bottom: 20px;
    font-size: 14px;
    font-weight: 500;
}

.alert-success {
    background: #dcfce7;
    color: #166534;
    border-left: 4px solid #16a34a;
}

.alert-danger {
    background: #fee2e2;
    color: #991b1b;
    border-left: 4px solid #dc2626;
}

/* ---- Empty Message ---- */
.empty-message {
    text-align: center;
    padding: 48px;
    color: var(--text-light);
    font-size: 16px;
}

.empty-message i {
    margin-right: 8px;
}

/* ---- Pagination ---- */
.pagination {
    display: flex;
    gap: 6px;
    justify-content: center;
    margin-top: 32px;
}

.pagination a {
    padding: 10px 16px;
    border-radius: var(--radius-sm);
    font-size: 14px;
    font-weight: 500;
    border: 1px solid var(--border);
    color: var(--text);
    transition: all var(--transition);
}

.pagination a:hover {
    background: var(--primary-50);
    border-color: var(--primary-light);
    color: var(--primary);
}

.pagination .active-page {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
}

/* ---- Footer ---- */
.footer {
    background: #0f172a;
    color: rgba(255, 255, 255, 0.7);
    padding: 60px 0 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: 40px;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
}

.footer-brand img {
    height: 40px;
}

.footer-brand h3 {
    font-size: 16px;
    color: #fff;
    font-weight: 700;
}

.footer-desc {
    font-size: 14px;
    line-height: 1.6;
}

.footer-eiin {
    font-size: 13px;
    margin-top: 8px;
}

.footer-col h4 {
    font-size: 15px;
    color: #fff;
    font-weight: 700;
    margin-bottom: 16px;
}

.footer-col ul {
    list-style: none;
}

.footer-col li {
    margin-bottom: 8px;
}

.footer-col a {
    color: rgba(255, 255, 255, 0.6);
    font-size: 14px;
    transition: all var(--transition);
}

.footer-col a:hover {
    color: #fff;
    padding-left: 4px;
}

.footer-col p {
    font-size: 14px;
    margin-bottom: 8px;
}

.footer-col p i {
    margin-right: 8px;
    color: var(--primary-light);
}

.footer-social {
    display: flex;
    gap: 10px;
    margin-top: 16px;
}

.footer-social a {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 15px;
    transition: all var(--transition);
}

.footer-social a:hover {
    background: var(--primary);
    transform: translateY(-2px);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 20px 0;
    margin-top: 40px;
    text-align: center;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.4);
}

/* ---- Print Styles ---- */
@media print {

    .navbar,
    .footer,
    .hero-actions,
    .btn,
    .filter-bar,
    .search-card,
    .result-actions,
    .page-header {
        display: none !important;
    }

    body {
        background: #fff !important;
        font-size: 12px;
    }

    .result-card,
    .admit-card {
        box-shadow: none !important;
        border: 2px solid #000 !important;
    }

    .section {
        padding: 20px 0;
    }
}

/* ---- Responsive ---- */
@media (max-width: 768px) {
    .navbar .container {
        height: 60px;
    }

    .nav-toggle {
        display: block;
    }

    .nav-menu {
        position: fixed;
        top: 60px;
        left: 0;
        right: 0;
        background: var(--white);
        flex-direction: column;
        padding: 20px;
        gap: 0;
        border-bottom: 1px solid var(--border);
        box-shadow: var(--shadow-lg);
        transform: translateY(-110%);
        opacity: 0;
        transition: all var(--transition);
    }

    .nav-menu.active {
        transform: translateY(0);
        opacity: 1;
    }

    .nav-link {
        padding: 12px;
        width: 100%;
    }

    .dropdown-menu {
        position: static;
        box-shadow: none;
        border: none;
        opacity: 1;
        visibility: visible;
        transform: none;
        padding: 0 0 0 20px;
    }

    .hero {
        min-height: 80vh;
    }

    .hero-stats {
        gap: 24px;
        flex-wrap: wrap;
    }

    .quick-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .notices-events-grid {
        grid-template-columns: 1fr;
    }

    .principal-section {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .principal-photo img,
    .principal-placeholder {
        width: 200px;
        height: 260px;
        margin: 0 auto;
    }

    .teachers-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .contact-grid {
        grid-template-columns: 1fr;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }

    .admit-card-body {
        grid-template-columns: 1fr;
    }

    .search-row {
        flex-direction: column;
    }

    .form-group {
        min-width: 100%;
    }

    .fees-grid {
        grid-template-columns: 1fr;
    }

    .page-header {
        padding: 100px 0 40px;
    }

    .section {
        padding: 48px 0;
    }
}

@media (max-width: 480px) {
    .quick-grid {
        grid-template-columns: 1fr;
    }

    .teachers-grid {
        grid-template-columns: 1fr;
    }

    .footer-grid {
        grid-template-columns: 1fr;
    }

    .admit-info-grid {
        grid-template-columns: 1fr;
    }
}

.text-center {
    text-align: center;
}