﻿/* RESET */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background: #d3d3d3;
    font-family: "Roboto", sans-serif;
}

/* PAGE FRAME */
.page-frame {
    max-width: 1200px;
    margin: 0 auto;
    background: #ffffff;

    border: 12px solid #c5c5c5;
    border-radius: 12px;

    box-shadow:
        -8px 0 16px rgba(0,0,0,0.10),
         8px 0 16px rgba(0,0,0,0.10);

    min-height: 100vh;
}

h1 { font-size: 2.8rem; }   /* ~45px */
h2 { font-size: 2rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.1rem; }
h5 { font-size: 1rem; }
h6 { font-size: 0.9rem; }

h1, h2, h3, h4, h5, h6 {
    font-family: "Roboto", sans-serif;
}

/* ========================= */
/* HEADER                    */
/* ========================= */

.site-header {
    background: #ffffff;
    padding: 15px 20px;
    border-bottom: 2px solid #1e3a8a;
}

.header-inner {
    display: flex;
    align-items: center;
    gap: 20px;
}

.header-logo img {
    max-height: 80px;
    width: auto;
}

.header-title {
    flex: 1;
    text-align: center;
}

.header-title h1 {
    font-size: 1.6rem;
    color: #1e3a8a;
    font-weight: bold;
}

/* ========================= */
/* UNIVERSAL SECTION SPACER */
/* ========================= */

.spacer {
    background: #d3d3d3;
    height: 12px;
    width: 100%;
    margin: 0;
}


/* ========================= */
/* MESSAGE STRIP             */
/* ========================= */

.message-strip {
    background: #ffffff;
    padding: 15px 20px;
    border-bottom: 1px solid #ddd;
}

.message-strip p {
    margin: 0;
    font-size: 1rem;
    color: #333;
}


/* this is the area where THREE FEATURE BOXES , SINGLE BOX LAYOUT  and CONTENT + SIDEBAR
 can be modified by removing which ones are not needed (must have one of these)  */
.page-wrapper {
    background: none;
}

.page-wrapper > *:first-child {
    margin-top: 20px;
}

/* ========================= */
/* RESPONSIVE BANNER IMAGE   */
/* ========================= */

.footer-banner {
    width: 100%;
    margin-top: 30px;
}

.footer-banner img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 6px;
}

/* ========================= */
/* FOOTER                    */
/* ========================= */

.site-footer {
    background: #1e3a8a;
    color: white;
    padding: 20px;
    margin-top: 0px;
    text-align: center;
}

.site-footer a {
    color: #ffffff;
    text-decoration: underline;
}

.footer-inner p {
    margin: 5px 0;
}

/* ========================= */
/* TOP NAVIGATION            */
/* ========================= */

.top-nav-inner {
    display: flex;
    align-items: center;
    background: #1e3a8a;
    color: white;
    padding: 10px 20px;
    gap: 20px;
}

/* Brand text */
.top-nav-inner .brand {
    font-size: 1.3rem;
    font-weight: bold;
    color: white;
}

/* MENU BUTTON (MOBILE) */
.menu-btn {
    display: none;
    margin-left: auto;
    font-size: 1.6rem;
    background: none;
    border: none;
    color: white;
    cursor: pointer;
}

/* TOP MENU (DESKTOP) */
.top-menu {
    list-style: none;
    display: flex;
    margin-left: auto;
    gap: 10px;
}

.top-menu li {
    position: relative;
}

.top-menu > li > a {
    display: block;
    padding: 10px 15px;
    color: white;
    text-decoration: none;
}

.top-menu > li > a:hover {
    background: #334fb3;
}

/* DROPDOWN */
.dropdown-menu {
    display: none;
    position: absolute;
    background: #1e3a8a;
    list-style: none;
    min-width: 180px;
    z-index: 1000;
}

.dropdown:hover > .dropdown-menu {
    display: block;
}

.dropdown-menu li a {
    padding: 10px;
    display: block;
    color: white;
}

.dropdown-menu li a:hover {
    background: #334fb3;
}

/* DESKTOP NAV ALWAYS VISIBLE */
@media (min-width: 901px) {
    .top-menu {
        display: flex !important;
    }
}

/* ========================= */
/* THREE FEATURE BOXES       */
/* ========================= */

.three-boxes {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin: 20px 0;
}

.box-item {
    width: 100%;
}

.box {
    background: #ffffff;
    padding: 20px;
    border-radius: 6px;
}

/* ========================= */
/* SINGLE BOX LAYOUT         */
/* ========================= */

.single-box {
    display: grid;
    grid-template-columns: 1fr;
    margin: 20px 0;
}

/* ========================= */
/* CONTENT + SIDEBAR         */
/* ========================= */

.content-wrapper {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 20px;
}

.content-area {
    background: #ffffff !important;
    padding: 20px;
    border-radius: 6px;
}

.sidebar-area {
    background: #E6E6E6;
    padding: 15px;
    border-left: 1px solid #ddd;   
}

/* MOBILE SIDEBAR BUTTON */
.sidebar-toggle {
    display: none;
    padding: 10px;
    margin-bottom: 10px;
    background: #1e3a8a;
    color: white;
    border: none;
    cursor: pointer;
    font-size: 1rem;
}

/* ========================= */
/* MOBILE RESPONSIVE         */
/* ========================= */

@media (max-width: 900px) {

    /* NAV SPACER */
    .message-strip {
        padding: 12px 15px;
        font-size: 0.95rem;
    }

    /* THREE BOXES collapse */
    .three-boxes {
        grid-template-columns: 1fr;
    }

    /* CONTENT + SIDEBAR stack */
    .content-wrapper {
        grid-template-columns: 1fr;
    }

    /* Sidebar below content */
    .sidebar-area {
        order: 2;
        display: block !important;
        margin-top: 20px;
    }

    /* Hide mobile toggle button */
    .sidebar-toggle {
        display: none !important;
    }

    /* Footer adjustments */
    .footer-banner img {
        border-radius: 0;
    }

    .site-footer {
        padding: 15px;
        font-size: 0.95rem;
    }

    /* MOBILE NAVIGATION */
    .menu-btn {
        display: block;
    }

    .top-menu {
        display: none;
        flex-direction: column;
        width: 100%;
        background: #1e3a8a;
        margin-top: 10px;
        padding: 0;
    }

    .top-menu.open {
        display: flex;
    }

    .dropdown-menu {
        position: static;
        background: #334fb3;
        margin-left: 20px;
    }
}
