@font-face {
    font-family: "Inter";
    src: url("/fonts/inter/Inter-Regular.woff2") format("woff2");
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "Inter";
    src: url("/fonts/inter/Inter-Medium.woff2") format("woff2");
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "Inter";
    src: url("/fonts/inter/Inter-SemiBold.woff2") format("woff2");
    font-weight: 600;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "Inter";
    src: url("/fonts/inter/Inter-Bold.woff2") format("woff2");
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

:root {
    --primary-color: #d4c9be;
    --secondary-color: #4e342e;
    --accent-color: #ffc87adc;
    --light-bg: #f1efec;
    --dark-text: #212529;
    --top-bar-bg: #6c4a3f;
    --main-bg-color: #f5f7fa;
    --bs-body-font-family: "Inter", sans-serif;
}
/* Theme colors */

/* Theme: Navy & Gold (institutional) */
.theme-navy {
    --primary-color: #1a2a6c;
    --secondary-color: #cda434;
    --accent-color: #7fb3ff;
    --light-bg: #f7f9fc;
    --dark-text: #0f172a;
    --top-bar-bg: #152042;
}

/* Theme: Emerald (fresh) */
.theme-emerald {
    --primary-color: #047857;
    --secondary-color: #064e3b;
    --accent-color: #f59e0b;
    --light-bg: #f0fdf4;
    --dark-text: #0b1220;
    --top-bar-bg: #064e3b;
}

/* Theme: Maroon Stone (classic) */
.theme-maroon {
    --primary-color: #7b2c2c;
    --secondary-color: #2f2a2a;
    --accent-color: #d97706;
    --light-bg: #faf7f5;
    --dark-text: #1f2937;
    --top-bar-bg: #4a2323;
}

/* Theme: Dark (accessible) */
.theme-dark {
    --primary-color: #0f172a;
    --secondary-color: #e5e7eb;
    --accent-color: #60a5fa;
    --light-bg: #0b1220;
    --dark-text: #e5e7eb;
    --top-bar-bg: #0b1220;
}

*,
body {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    /* background: var(--main-bg-color); */
    background-color: #f5f7fa;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='40' height='40' viewBox='0 0 40 40'%3E%3Cg fill-rule='evenodd'%3E%3Cg fill='%23f1efec' fill-opacity='1'%3E%3Cpath d='M0 38.59l2.83-2.83 1.41 1.41L1.41 40H0v-1.41zM0 1.4l2.83 2.83 1.41-1.41L1.41 0H0v1.41zM38.59 40l-2.83-2.83 1.41-1.41L40 38.59V40h-1.41zM40 1.41l-2.83 2.83-1.41-1.41L38.59 0H40v1.41zM20 18.6l2.83-2.83 1.41 1.41L21.41 20l2.83 2.83-1.41 1.41L20 21.41l-2.83 2.83-1.41-1.41L18.59 20l-2.83-2.83 1.41-1.41L20 18.59z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    font-family: var(--bs-body-font-family);
   
}

/* Top Bar */
.top-bar {
    background: var(--top-bar-bg);
    padding: 0;
    font-size: 12px;
}

.top-bar a {
    color: white;
    text-decoration: none;
    margin: 0 10px;
    transition: opacity 0.3s;
}

.top-bar a:hover {
    opacity: 0.8;
}

/* Header */
.main-header {
    background: #f5f7fa;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: relative;
}

.logo-section {
    padding: 5px 0;
}

.logo-img {
    height: 5rem;
    width: auto;
}

/* Navigation */
.main-nav {
    background: var(--primary-color);
    height: 40px;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.main-nav .container {
    position: relative;
    padding-right: 60px; /* Make space for hamburger button */
}

@media (max-width: 768px) {
    .main-nav .container {
        padding-right: 50px;
        margin-top: -10px;
    }

    .main-nav .navbar-collapse {
        background: var(--primary-color);
        position: absolute;
        top: 40px;
        left: 0;
        width: 100%;
        padding: 10px 0;
        border-top: 1px solid rgba(255, 255, 255, 0.1);
    }
}
.main-nav .nav-link {
    color: var(--secondary-color) !important;
    padding: 9px 15px;
    font-weight: 500;
    font-size: 0.9rem;
    transition: all 0.3s;
    border-radius: 0;
}

.main-nav .nav-link:hover {
    /* background: rgba(255, 255, 255, 0.1); */
    /* transform: translateY(-1px); */
    background-color: var(--secondary-color);
    color: var(--light-bg) !important;
}

.main-nav .dropdown-menu {
    border-radius: 10px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    border: none;
    padding: 10px 0;
}

.main-nav .dropdown-item {
    padding: 10px 20px;
    transition: all 0.3s;
}

.main-nav .dropdown-item:hover {
    background: var(--light-bg);
    padding-left: 25px;
}

/* Dropdown Hover Effects */
@media (min-width: 992px) {
    .main-nav .dropdown:hover .dropdown-menu {
        display: block;
        margin-top: 0;
        animation: fadeIn 0.2s ease-in-out;
    }

    .main-nav .dropdown:hover .dropdown-toggle::after {
        transform: rotate(180deg);
        transition: transform 0.2s ease;
    }
}

@media (max-width: 1400px){
    .main-nav .nav-link {
        padding:9px 5px !important;
    }
}

@media (max-width: 1200px){
    .main-nav .nav-link {
        padding: 9px 2px !important;
        font-size: 0.8rem !important;
    }
}

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

/* Hero Section */
.hero-section {
    position: relative;
    height: 400px;
    overflow: hidden;
    /* background: linear-gradient(rgba(0, 0, 0, 0.2), rgba(0, 0, 0, 0.2)),url("/assets/img/hero-bg.jpg"); */
    background: url("/assets/img/hero-bg.webp");
    background-size: cover;
    background-repeat: no-repeat;
    background-position: top center;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-align: center;
}

.quick-links {
    background: var(--light-bg);
    border-radius: 14px;
    box-shadow: rgba(78, 52, 46, 0.1) 0px 4px 12px;
    padding: 12px;
    margin-top: -50px;
    position: relative;
    z-index: 100;
    font-family: var(--bs-body-font-family);
}

/* ===== INDIVIDUAL LINK CARD ===== */
.quick-link-card {
    text-align: center;
    background: linear-gradient(145deg, #ffffff, var(--light-bg));
    border-radius: 12px;
    border: 1px solid rgba(212, 201, 190, 0.5);
    padding: 15px 10px;
    box-shadow: rgba(78, 52, 46, 0.08) 0px 2px 6px;
    transition: all 0.3s ease;
    cursor: pointer;
    color: var(--dark-text);
}

.quick-link-card:hover {
    transform: translateY(-2px);
    box-shadow: rgba(78, 52, 46, 0.15) 0px 6px 14px;
    border-color: var(--primary-color);
    background: linear-gradient(145deg, var(--light-bg), #ffffff);
}

/* ===== ICON STYLE ===== */
.quick-link-card i {
    font-size: 1.5rem;
    color: var(--secondary-color);
    margin-bottom: 8px;
    transition: color 0.3s ease;
}

.quick-link-card:hover i {
    color: var(--accent-color);
}

/* ===== TEXT STYLE ===== */
.quick-link-card h6 {
    color: var(--secondary-color);
    font-size: 0.85rem;
    font-weight: 600;
    margin: 0;
    letter-spacing: 0.3px;
    transition: color 0.3s ease;
}

.quick-link-card:hover h6 {
    color: var(--dark-text);
}

/* Announcement Section */
.announcement-card {
    background: var(--primary-color);
    /* border-radius: 10px;
    padding: 20px;
    color: white;
    margin-bottom: 20px;
    box-shadow: 0 10px 30px rgba(102,126,234,0.4); */
}

.announcement-card h5 {
    font-weight: 600;
    font-size: 1rem;
    color: var(--secondary-color);
    margin-bottom: 15px;
}


.notice-item {
    padding: 15px;
    border-left: 4px solid var(--primary-color);
    background: var(--light-bg);
    margin-bottom: 15px;
    border-radius: 5px;
    transition: all 0.3s;
}

.notice-item:hover {
    transform: translateX(5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.notice-date {
    color: var(--secondary-color);
    font-weight: 600;
    font-size: 14px;
}

/* Footer */
.footer {
    background: var(--primary-color);
    color: white;
    padding: 20px 0 20px;
    margin-top: 40px;
}

.footer h5 {
    font-weight: 600;
    margin-bottom: 20px;
    color: var(--secondary-color);
}

.footer a {
    color: rgba(15, 15, 15, 0.8);
    text-decoration: none;
    transition: all 0.3s;
    display: block;
    padding: 5px 0;
}

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

/* Floating Action Button */
.fab-container {
    position: fixed;
    bottom: 40px;
    right: 30px;
    z-index: 999;
}

.fab-btn {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, #f0eeee, #969292);
    color: black;
    border: none;
    box-shadow: 0 5px 20px rgba(49, 51, 61, 0.4);
    font-size: 24px;
    transition: all 0.3s;
    margin-bottom: 10px;
    display: block;
}

.fab-btn:hover {
    transform: scale(1.1);
}

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

    .quick-links {
        margin-top: -30px;
        padding: 20px;
    }

    .main-nav .nav-link {
        padding: 10px 15px;
        font-size: 14px;
    }
}

/* Smooth Scroll */
html {
    scroll-behavior: smooth;
}

/* Custom Scrollbar */
.notice-board-content::-webkit-scrollbar {
    width: 6px;
}

.notice-board-content::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

.notice-board-content::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 10px;
}

.info-card {
    text-align: center;
    background: linear-gradient(135deg, #f5f5f5, #ffffff);
    box-shadow: rgba(0, 0, 0, 0.16) 0px 1px 4px;
    padding: 5px;
    border-radius: 10px;
    transition: all 0.3s;
    border: 1px solid transparent;
    z-index: 200;
}
.info-card:hover {
    transform: translateY(-2px);
    box-shadow: rgba(0, 0, 0, 0.16) 0px 1px 4px;
    border-color: var(--primary-color);
}

/* Hamburger Menu Button */
.sidebar-toggle-btn {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    width: 30px;
    height: 30px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1000;
}

.sidebar-toggle-btn span {
    display: block;
    width: 25px;
    height: 3px;
    background: var(--secondary-color);
    margin: 5px auto;
    transition: all 0.3s ease;
    border-radius: 2px;
}

.sidebar-toggle-btn:hover span {
    background: var(--accent-color);
}

.sidebar-toggle-btn.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.sidebar-toggle-btn.active span:nth-child(2) {
    opacity: 0;
}

.sidebar-toggle-btn.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
}

/* Sidebar Overlay */
.sidebar-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1040;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.sidebar-overlay.show {
    opacity: 1;
    visibility: visible;
}

/* Sidebar */
.sidebar {
    position: fixed;
    top: 0;
    right: -350px;
    width: 350px;
    height: 100%;
    background: white;
    box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
    z-index: 1050;
    transition: all 0.3s ease;
    overflow-y: auto;
}

.sidebar.show {
    right: 0;
}

.sidebar-header {
    background: var(--primary-color);
    color: var(--secondary-color);
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 10;
}

.sidebar-header h5 {
    margin: 0;
    font-weight: 600;
}

.sidebar-close {
    background: transparent;
    border: none;
    color: white;
    font-size: 18px;
    cursor: pointer;
    padding: 5px;
    border-radius: 5px;
    transition: all 0.3s ease;
}

.sidebar-close:hover {
    background: rgba(255, 255, 255, 0.2);
}

.sidebar-content {
    padding: 0;
}

.sidebar-section {
    border-bottom: 1px solid #eee;
    padding: 0;
}

.sidebar-section:last-child {
    border-bottom: none;
}

.sidebar-section h6 {
    background: var(--light-bg);
    margin: 0;
    padding: 15px 20px;
    font-weight: 600;
    color: var(--primary-color);
    border-bottom: 1px solid #eee;
}

.sidebar-menu {
    list-style: none;
    padding: 0;
    margin: 0;
}

.sidebar-menu li {
    border-bottom: 1px solid #f5f5f5;
}

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

.sidebar-menu a {
    display: block;
    padding: 12px 20px;
    color: var(--dark-text);
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 14px;
}

.sidebar-menu a:hover {
    background: var(--primary-color);
    color: white;
    padding-left: 30px;
}

.sidebar-menu a i {
    color: var(--primary-color);
    width: 16px;
    transition: all 0.3s ease;
}

.sidebar-menu a:hover i {
    color: white;
}

/* Always show hamburger button */
.sidebar-toggle-btn {
    display: block !important;
}

/* Responsive adjustments for sidebar */
@media (max-width: 768px) {
    .sidebar {
        width: 90%;
        right: -100%;
    }
}

@media (max-width: 480px) {
    .sidebar {
        width: 100vw;
    }
}

/* Body scroll lock when sidebar is open */
body.sidebar-open {
    overflow: hidden;
}

/* Notice Board - Shadcn UI Style */
.notice-board-container {
    background: var(--light-bg);
    border-radius: 12px;
    padding: 24px;
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
    border: 1px solid rgba(229, 231, 235, 0.8);
}

/* Custom Nav Pills - Shadcn Style */
.nav-pills .nav-link {
    background: transparent;
    border: 1px solid transparent;
    color: var(--secondary-color);
    font-weight: 500;
    font-size: 14px;
    padding: 8px 16px;
    border-radius: 8px;
    transition: all 0.2s ease-in-out;
    position: relative;
    white-space: nowrap;
}

.nav-pills .nav-link:hover {
    background: var(--secondary-color);
    color: var(--light-bg);
    border-color: #e5e7eb;
}

.nav-pills .nav-link.active {
    background: var(--secondary-color);
    color: var(--light-bg);
    border-color: var(--primary-color);
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
}

.nav-pills .nav-link.active:hover {
    background: var(--secondary-color);
    opacity: 0.9;
}

/* Badge adjustments for tabs */
.nav-pills .nav-link .badge {
    font-size: 10px;
    padding: 2px 6px;
    margin-left: -8px;
    margin-top: -8px;
}

/* Notice Items - Modern Design */
.notice-item-modern {
    transition: all 0.2s ease-in-out;
    border: 1px solid #e5e7eb !important;
    background: #fafafa !important;
}

.notice-item-modern:hover {
    border-color: var(--primary-color) !important;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1),
        0 2px 4px -1px rgba(0, 0, 0, 0.06);
    transform: translateY(-1px);
    background: white !important;
}

/* Badge Styles - Subtle Design */
.bg-primary-subtle {
    background-color: rgba(26, 42, 108, 0.1) !important;
}

.text-primary {
    color: var(--primary-color) !important;
}

.bg-secondary-subtle {
    background-color: rgba(108, 117, 125, 0.1) !important;
}

.bg-success-subtle {
    background-color: rgba(25, 135, 84, 0.1) !important;
}

.bg-warning-subtle {
    background-color: rgba(255, 193, 7, 0.1) !important;
}

.bg-danger-subtle {
    background-color: rgba(220, 53, 69, 0.1) !important;
}

.bg-info-subtle {
    background-color: rgba(13, 202, 240, 0.1) !important;
}

/* Button Styles - Shadcn Inspired */
.btn-outline-primary.btn-sm {
    border-color: var(--primary-color);
    color: var(--primary-color);
    font-size: 12px;
    padding: 4px 12px;
    font-weight: 500;
}

.btn-outline-primary.btn-sm:hover {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
}

.btn-outline-secondary.btn-sm {
    border-color: #6b7280;
    color: #6b7280;
    font-size: 12px;
    padding: 4px 12px;
    font-weight: 500;
}

.btn-outline-secondary.btn-sm:hover {
    background-color: #6b7280;
    border-color: #6b7280;
    color: white;
}

.btn-outline-success.btn-sm {
    border-color: #059669;
    color: #059669;
    font-size: 12px;
    padding: 4px 12px;
    font-weight: 500;
}

.btn-outline-success.btn-sm:hover {
    background-color: #059669;
    border-color: #059669;
    color: white;
}

.btn-outline-warning.btn-sm {
    border-color: #d97706;
    color: #d97706;
    font-size: 12px;
    padding: 4px 12px;
    font-weight: 500;
}

.btn-outline-warning.btn-sm:hover {
    background-color: #d97706;
    border-color: #d97706;
    color: white;
}

.btn-outline-info.btn-sm {
    border-color: #0ea5e9;
    color: #0ea5e9;
    font-size: 12px;
    padding: 4px 12px;
    font-weight: 500;
}

.btn-outline-info.btn-sm:hover {
    background-color: #0ea5e9;
    border-color: #0ea5e9;
    color: white;
}

.btn-danger.btn-sm {
    background-color: #dc2626;
    border-color: #dc2626;
    font-size: 12px;
    padding: 4px 12px;
    font-weight: 500;
}

.btn-danger.btn-sm:hover {
    background-color: #b91c1c;
    border-color: #b91c1c;
}

/* Transition utility */
.transition-all {
    transition: all 0.2s ease-in-out;
}

.hover-shadow:hover {
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1),
        0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

/* Empty state styling */
.text-center .display-1 {
    font-size: 4rem;
}

/* Tab content container */
.tab-content {
    min-height: 400px;
}

/* Responsive adjustments for notice board */
@media (max-width: 768px) {
    .notice-board-container {
        padding: 16px;
        margin: 0 -15px;
        border-radius: 0;
        border-left: none;
        border-right: none;
    }

    .nav-pills .nav-link {
        font-size: 12px;
        padding: 6px 8px;
    }

    .nav-pills .nav-link .d-none.d-sm-inline {
        display: none !important;
    }

    .notice-item-modern {
        margin-left: 0 !important;
        margin-right: 0 !important;
    }

    .d-flex.gap-2 {
        flex-direction: column;
        gap: 8px !important;
    }

    .btn-sm {
        width: 100%;
        justify-content: center;
    }
}

.footer-credit,
.contact-info {
    color: var(--secondary-color);
}

.marquee-content {
    display: inline-block;
    font-weight: 500;
    font-size: 14px;
}
