:root {
    --primary-color: #1a237e;
    --primary-light: #534bae;
    --primary-dark: #000051;
    --secondary-color: #ffc107;
    --accent-color: #d32f2f;
    --text-dark: #1a1a1a;
    --text-muted: #666;
    --text-light: #ffffff;
    --bg-light: #f4f7f6;
    --glass-bg: rgba(255, 255, 255, 0.7);
    --glass-border: rgba(255, 255, 255, 0.3);
    --primary-gradient: linear-gradient(135deg, #1a237e 0%, #0d124b 100%);
    --gold-gradient: linear-gradient(135deg, #ffc107 0%, #ff8f00 100%);
    --transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    --shadow-soft: 0 10px 30px rgba(0, 0, 0, 0.05);
    --shadow-bold: 0 20px 40px rgba(0, 0, 0, 0.15);
}

html, body {
    font-family: 'Inter', sans-serif;
    color: var(--text-dark);
    line-height: 1.6;
    overflow-x: hidden;
    width: 100%;
    position: relative;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
}

/* Navbar Styling */
.navbar {
    background: rgba(26, 35, 126, 0.85);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    transition: var(--transition);
    padding: 1.2rem 0;
    border-bottom: 1px solid var(--glass-border);
}

.navbar.scrolled {
    padding: 0.8rem 0;
    background: var(--primary-color);
}

.navbar-brand {
    font-weight: 800;
    color: var(--secondary-color) !important;
    font-size: 1.5rem;
}

.navbar-brand img {
    height: 45px;
    width: auto;
    margin-right: 12px;
    border-radius: 50%; /* Making it circular like a seal */
    border: 2px solid var(--secondary-color);
}

.nav-link {
    color: var(--text-light) !important;
    font-weight: 500;
    font-size: 0.9rem;
    margin: 0 10px;
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--secondary-color);
    transition: var(--transition);
}

.nav-link:hover::after {
    width: 100%;
}
.nav-link.active,
.nav-item.active .nav-link {
    color: var(--secondary-color) !important;
}

.nav-link.active::after,
.nav-item.active .nav-link::after {
    width: 100%;
}

/* Custom Hamburger Toggler */
.navbar-toggler {
    border: none !important;
    padding: 10px;
    background: transparent !important;
    display: flex;
    align-items: center;
    justify-content: center;
}

.navbar-toggler:focus {
    box-shadow: none !important;
}

.hamburger-box {
    width: 24px;
    height: 20px;
    display: inline-block;
    position: relative;
}

.hamburger-inner {
    display: block;
    top: 50%;
    margin-top: -1px;
    width: 24px;
    height: 2px;
    background-color: #fff;
    position: absolute;
    transition: all 0.3s ease;
}

.hamburger-inner::before,
.hamburger-inner::after {
    content: "";
    display: block;
    width: 24px;
    height: 2px;
    background-color: #fff;
    position: absolute;
    transition: all 0.3s ease;
}

.hamburger-inner::before { top: -8px; }
.hamburger-inner::after { bottom: -8px; }

/* Toggler Animation to X */
.navbar-toggler:not(.collapsed) .hamburger-inner {
    background-color: transparent !important;
}

.navbar-toggler:not(.collapsed) .hamburger-inner::before {
    top: 0;
    transform: rotate(45deg);
}

.navbar-toggler:not(.collapsed) .hamburger-inner::after {
    bottom: 0;
    transform: rotate(-45deg);
}

/* Mobile Side Drawer Styling */
@media (max-width: 1199.98px) {
    .navbar-brand span {
        font-size: 1.1rem;
        max-width: 180px;
        line-height: 1.2;
        display: inline-block;
        white-space: normal;
    }

    .navbar-collapse {
        position: fixed;
        top: 0;
        right: 0;
        transform: translateX(100%);
        width: 320px;
        height: 100vh;
        background: rgba(13, 18, 75, 0.98);
        backdrop-filter: blur(25px);
        -webkit-backdrop-filter: blur(25px);
        padding: 80px 40px;
        transition: transform 0.4s cubic-bezier(0.77, 0.2, 0.05, 1);
        display: block !important;
        visibility: hidden;
        z-index: 1050;
        box-shadow: -15px 0 40px rgba(0, 0, 0, 0.4);
        border-left: 1px solid rgba(255, 255, 255, 0.1);
    }

    .navbar-collapse.show {
        transform: translateX(0);
        visibility: visible;
    }

    .navbar-nav {
        flex-direction: column;
        gap: 10px;
    }

    .nav-link {
        font-size: 1.2rem;
        font-weight: 600;
        padding: 12px 0 !important;
        margin: 0 !important;
        border-bottom: 1px solid rgba(255, 255, 255, 0.05);
        color: rgba(255, 255, 255, 0.8) !important;
    }

    .nav-link:hover, .nav-link.active {
        color: var(--secondary-color) !important;
        padding-left: 10px !important;
    }

    .nav-link::after {
        display: none !important;
    }
}

@media (max-width: 768px) {
    .section-padding { padding: 50px 0; }
    .display-2 { font-size: 2.8rem !important; }
    .display-3 { font-size: 2.2rem !important; }
    .hero-glass-box { padding: 1.5rem; border-radius: 1.5rem; }
    .hero-slider .carousel-item { min-height: 500px; height: 80vh; }
}

@media (max-width: 576px) {
    .navbar-brand span {
        font-size: 0.95rem;
        max-width: 150px;
    }
    
    .navbar-brand img {
        height: 38px;
    }
    
    .display-2 { font-size: 2.2rem !important; }
    .display-3 { font-size: 1.8rem !important; }
    .lead { font-size: 1rem; }
}

/* Hero Slider */
.hero-slider .carousel-item {
    height: 90vh; /* Taller hero */
    min-height: 600px;
    background-size: cover;
    background-position: center;
    position: relative;
}

.hero-overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: radial-gradient(circle at center, rgba(0,0,0,0.3) 0%, rgba(0,0,0,0.7) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-glass-box {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 3rem;
    border-radius: 2rem;
    max-width: 800px;
}

.hero-content h1 {
    font-size: 4rem;
    color: var(--text-light);
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

@media (max-width: 768px) {
    .hero-content h1 { font-size: 2.5rem; }
}

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

.section-title {
    position: relative;
    margin-bottom: 50px;
    text-align: center;
}

.section-title h2 {
    font-size: 3rem;
    color: var(--primary-color);
    display: inline-block;
    padding-bottom: 15px;
    letter-spacing: -1px;
}

.section-title h2::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 5px;
    background: var(--gold-gradient);
    border-radius: 10px;
}

/* Glass Cards & Transitions */
.card-premium {
    background: #fff;
    border: none;
    border-radius: 1.5rem;
    box-shadow: var(--shadow-soft);
    transition: var(--transition);
    border: 1px solid #eee;
}

.card-premium:hover {
    transform: translateY(-15px) scale(1.02);
    box-shadow: var(--shadow-bold);
    border-color: var(--primary-light);
}

.icon-box-primary {
    width: 70px;
    height: 70px;
    background: var(--primary-gradient);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 1.2rem;
    margin: 0 auto 1.5rem;
    font-size: 1.5rem;
    box-shadow: 0 10px 20px rgba(26, 35, 126, 0.3);
}

/* Notice Board */
.notice-board {
    background: var(--bg-light);
    border-radius: 15px;
    padding: 30px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    height: 100%;
}

.notice-list {
    max-height: 400px;
    overflow-y: hidden;
}

.shadow-bold {
    box-shadow: var(--shadow-bold) !important;
}

.bg-primary-light {
    background: var(--primary-light) !important;
}

/* Notice Board Refinement */
.notice-board {
    background: #fff;
    border-radius: 2rem;
    overflow: hidden;
    box-shadow: var(--shadow-bold);
    border: 1px solid rgba(26, 35, 126, 0.1);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.notice-header {
    background: var(--primary-gradient);
    color: #fff;
    padding: 1.5rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.notice-body {
    flex-grow: 1;
    overflow: hidden;
    background: #fff;
}

.notice-item {
    padding: 1.5rem;
    border-bottom: 1px solid #f5f5f5;
    transition: all 0.3s ease;
    display: block;
    text-decoration: none;
    color: inherit;
}

.notice-item:last-child {
    border-bottom: none;
}

.notice-item:hover {
    background: #f8f9ff;
    border-left: 5px solid var(--secondary-color);
    padding-left: 1.8rem;
}

.notice-item-meta {
    display: flex;
    align-items: center;
    margin-bottom: 0.8rem;
    flex-wrap: wrap;
    gap: 10px;
}

.notice-date-badge {
    font-size: 0.7rem;
    font-weight: 700;
    background: rgba(26, 35, 126, 0.08);
    color: var(--primary-color);
    padding: 0.3rem 0.8rem;
    border-radius: 2rem;
    text-transform: uppercase;
}

.notice-category-badge {
    font-size: 0.7rem;
    font-weight: 700;
    background: rgba(255, 193, 7, 0.15);
    color: #856404;
    padding: 0.3rem 0.8rem;
    border-radius: 2rem;
    text-transform: uppercase;
}

.notice-item-title {
    font-weight: 800;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
    line-height: 1.3;
}

.notice-item-desc {
    font-size: 0.9rem;
    color: #555;
    margin-bottom: 1rem;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    line-clamp: 2;
    overflow: hidden;
}

/* Glassmorphism Notice Board */
.notice-board-glass {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.4);
    border-radius: 2rem;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    height: 100%;
    display: flex;
    flex-direction: column;
    transition: var(--transition);
}

.notice-board-glass:hover {
    transform: translateY(-5px);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.12);
}

.notice-board-glass .notice-header {
    background: var(--primary-gradient);
    padding: 1.5rem;
    color: #fff;
    font-weight: 800;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    gap: 12px;
}

.notice-board-glass .notice-header i {
    font-size: 1.4rem;
    animation: bell-swing 2s infinite ease-in-out;
}

@keyframes bell-swing {
    0%, 100% { transform: rotate(0); }
    10%, 30%, 50% { transform: rotate(15deg); }
    20%, 40%, 60% { transform: rotate(-15deg); }
}

.notice-board-glass .notice-body marquee {
    height: 380px;
    padding: 10px 0;
}

.glass-notice-item {
    padding: 1.5rem;
    margin: 10px 15px;
    background: rgba(255, 255, 255, 0.5);
    border-radius: 1.2rem;
    border: 1px solid rgba(0, 0, 0, 0.03);
    transition: all 0.3s ease;
    display: block;
    text-decoration: none;
    color: inherit;
}

.glass-notice-item:hover {
    background: #fff;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
    transform: scale(1.02);
}

.glass-notice-item .badge {
    padding: 0.4rem 0.8rem;
    border-radius: 0.8rem;
    font-size: 0.65rem;
    letter-spacing: 0.5px;
    margin-bottom: 0.8rem;
}

/* Footer */
footer {
    background: #0d124b;
    color: #fff;
    padding: 60px 0 20px;
}

.footer-link {
    color: #ccc;
    text-decoration: none;
    transition: var(--transition);
}

.footer-link:hover {
    color: var(--secondary-color);
    padding-left: 5px;
}
