@import url('https://fonts.googleapis.com/css2?family=Sarabun:wght@300;400;500;600;700&display=swap');

body {
    font-family: 'Sarabun', sans-serif;
    background-color: #f4f6f9;
    color: #333;
}

/* === Top Mini Navbar === */
.top-navbar {
    background: linear-gradient(135deg, #0d47a1 0%, #1976d2 100%);
    color: white;
    font-size: 0.9rem;
    padding: 8px 0;
}
.live-badge {
    animation: blink 2s infinite;
}
@keyframes blink {
    0% { opacity: 1; }
    50% { opacity: 0.4; }
    100% { opacity: 1; }
}

/* === Banner Section === */
.banner-container {
    background: url('../images/header_bg.png') center center / cover no-repeat;
    padding: 50px 0;
    border-bottom: 4px solid #185ea5;
    position: relative;
}
.banner-container::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(255, 255, 255, 0.85); /* Light overlay for readability */
    z-index: 0;
}
.banner-content {
    position: relative;
    z-index: 1;
}
.banner-title {
    color: #185ea5;
    font-weight: 700;
    text-shadow: 1px 1px 2px rgba(255,255,255,0.8);
}
.banner-subtitle {
    color: #555;
    font-weight: 500;
}
.scrolling-text-bar {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background: rgba(24, 94, 165, 0.9); /* #185ea5 matching blue */
    color: #ffffff;
    padding: 8px 0;
    font-size: 1.15rem;
    font-weight: 500;
    z-index: 2;
}
.school-mascot {
    max-height: 220px;
    max-width: 200px;
    border: 4px solid #fff;
    filter: drop-shadow(0 10px 15px rgba(0,0,0,0.1));
    transition: transform 0.3s ease;
}
.school-mascot:hover {
    transform: translateY(-5px);
}

/* === Main Layout === */
.main-wrapper {
    background: white;
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
    overflow: hidden;
    margin-top: 30px;
}

/* === Sidebar Menu === */
.sidebar-menu {
    background: #f8f9fa;
    border-right: 1px solid #eaeaea;
    padding: 25px 20px;
    min-height: 600px;
}
.menu-section-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: #0d47a1;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #e0e0e0;
}
.nav-link-custom {
    display: block;
    padding: 12px 15px;
    color: #444;
    border-radius: 8px;
    margin-bottom: 5px;
    transition: all 0.2s ease;
    text-decoration: none;
    font-weight: 500;
}
.nav-link-custom i {
    width: 24px;
    text-align: center;
    margin-right: 10px;
    color: #1976d2;
}
.nav-link-custom:hover, .nav-link-custom.active {
    background: #e3f2fd;
    color: #0d47a1;
}
.nav-link-custom.active {
    border-left: 4px solid #0d47a1;
}
.menu-block {
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 20px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
    border: none;
}
.menu-block .card-header {
    background-color: #185ea5 !important;
    color: white;
    font-weight: 600;
    font-size: 1.05rem;
    padding: 12px 15px;
    border-bottom: none;
    text-align: left;
}
.menu-block .card-body {
    background-color: #f8f9fa;
    padding: 0; /* Remove padding so items fill the block */
}
.submenu-list {
    padding-left: 0;
    margin-bottom: 0;
}
.submenu-link {
    display: block;
    padding: 10px 15px;
    color: #000;
    text-decoration: none;
    font-size: 0.95rem;
    border-radius: 0; /* Remove radius to fill edge-to-edge */
    transition: 0.2s;
    border-left: 3px solid transparent;
    text-align: left !important;
}
.submenu-link:hover {
    background: #e3f2fd; /* Light blue color */
    color: #0d47a1;
    border-left: 3px solid #1976d2;
}

/* === Main Content Area === */
.content-area {
    padding: 30px;
}
.page-title {
    color: #0d47a1;
    font-weight: 600;
    padding-bottom: 15px;
    margin-bottom: 25px;
    border-bottom: 1px solid #eaeaea;
}

/* === Cards === */
.feature-card {
    border: none;
    border-radius: 10px;
    transition: transform 0.2s, box-shadow 0.2s;
    overflow: hidden;
}
.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(25, 118, 210, 0.15) !important;
}
.feature-icon {
    font-size: 2.5rem;
    color: #1976d2;
    margin-bottom: 15px;
}

/* === Footer === */
.footer-main {
    background: #0d47a1;
    color: rgba(255,255,255,0.8);
    padding: 40px 0 20px;
    margin-top: 50px;
}
.footer-main h5 {
    color: #fff;
    font-weight: 600;
    margin-bottom: 20px;
}
.footer-links a {
    color: rgba(255,255,255,0.8);
    text-decoration: none;
    display: block;
    margin-bottom: 10px;
    transition: 0.2s;
}
.footer-links a:hover {
    color: #fff !important;
    text-decoration: underline !important;
}

/* Utilities */
.hover-opacity {
    transition: opacity 0.3s ease;
}
.hover-opacity:hover {
    opacity: 0.7;
}

@media (max-width: 991px) {
    .sidebar-menu {
        border-right: none;
        border-bottom: 1px solid #eaeaea;
        min-height: auto;
    }
}
