:root {
    --blue-dark: #003D7C;
    --blue-mid: #0A63B0;
    --navy-brand: #003D7C;
    --gold: #FBBF24;
    --bg: #f0f7fc;
    --text-dark: #0f172a;
    --sidebar-width: 280px;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg);
    color: var(--text-dark);
    font-size: 1.05rem;
    overflow-x: hidden;
    margin: 0;
}

/* --- SIDEBAR --- */
#sidebar {
    width: var(--sidebar-width);
    background: #fff;
    height: 100vh;
    position: fixed;
    left: 0;
    top: 0;
    z-index: 1100;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    box-shadow: 4px 0 15px rgba(0,0,0,0.05);
}

#content {
    width: 100%;
    padding-left: var(--sidebar-width);
    transition: padding 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    min-height: 100vh;
}

#sidebar.closed {
    transform: translateX(-100%);
}

#content.expanded {
    padding-left: 0;
}

.hamburger-btn {
    background: transparent;
    border: none;
    color: var(--blue-dark);
    padding: 10px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

#sidebar-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.4);
    z-index: 1050;
    backdrop-filter: blur(2px);
}

    #sidebar-overlay.active {
        display: block;
    }

/* --- NAVIGATION --- */
.sidebar-header {
    padding: 25px 15px;
    text-align: center;
}

.logo-box {
    background-color: var(--gold);
    color: var(--blue-dark) !important;
    display: inline-block;
    padding: 8px 25px;
    border-radius: 8px;
    font-family: 'Montserrat', sans-serif;
    font-weight: 800;
    font-size: 1.4rem;
    text-decoration: none;
}

#sidebar ul li a {
    padding: 12px 20px;
    display: flex;
    align-items: center;
    color: #334155;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
}

    #sidebar ul li.active > a, #sidebar ul li a:hover {
        background: #f1f5f9;
        color: var(--blue-mid);
        border-left: 5px solid var(--gold);
    }

.sub-menu {
    display: none;
    list-style: none;
    padding: 0;
    background: #f8fafc;
}

.has-sub.open .sub-menu {
    display: block;
}

.sub-menu li a {
    padding-left: 50px !important;
    font-size: 0.88rem !important;
}

.arrow-icon {
    margin-left: auto;
    transition: 0.3s;
    font-size: 0.75rem;
}

.top-navbar {
    background: #fff;
    height: 70px;
    padding: 0 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid #e2e8f0;
    position: sticky;
    top: 0;
    z-index: 1000;
}

/* --- HERO & GRID --- */
.hero {
    background: linear-gradient(135deg, var(--blue-dark) 0%, var(--blue-mid) 100%);
    color: #fff;
    margin: 20px;
    border-radius: 12px;
    padding: 40px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.hero-text h1 {
    font-weight: 800;
    font-size: 2.5rem;
    margin: 0;
}

    .hero-text h1 span {
        color: var(--gold);
    }

.module-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 20px;
    padding: 0 20px 40px;
}

.dno-card {
    background: #fff;
    border-radius: 12px;
    padding: 25px;
    border: 1px solid #e2e8f0;
    height: 100%;
    transition: 0.3s;
}

    .dno-card:hover {
        transform: translateY(-5px);
        box-shadow: 0 10px 25px rgba(0,0,0,0.08);
    }

.card-header-inline {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
    border-bottom: 1px solid #f1f5f9;
    padding-bottom: 12px;
}

.gold-icon {
    color: var(--gold);
    font-size: 1.5rem;
    margin-right: 15px;
    width: 35px;
    text-align: center;
}

.dno-card h3 {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--blue-dark);
    margin: 0;
}

.dno-card p {
    font-size: 0.95rem;
    color: #475569;
    line-height: 1.6;
    margin: 0;
}

/* BLUE/NAVY TICKS FOR DETAIL VIEW */
.navy-tick {
    color: var(--navy-brand);
    font-size: 1.2rem;
    margin-right: 12px;
}

@media (max-width: 992px) {
    #sidebar {
        transform: translateX(-100%);
    }

        #sidebar.active {
            transform: translateX(0);
        }

    #content {
        padding-left: 0 !important;
    }

    .hero {
        flex-direction: column;
        text-align: center;
        padding: 25px;
    }

    .hero-text h1 {
        font-size: 2rem;
    }
}
