/* General Body Styles */
body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f4f4f4;
    color: #333;
}
#top {
    background-color: #ebc306;
    text-transform: uppercase;
    padding: 10px;
    color: #000;
    font-weight: bold;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}
/* Header with Background Image */
.site-header {
    background-image: url('https://hipaasummit.com/wp-content/themes/hipaa/images/banner-bg.jpg');
    background-size: cover;
    background-position: center;
    color: white;
    padding: 5rem 1rem;
    text-align: center;
    position: relative;
}

/* Overlay for better text readability on the header image */
.site-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative; /* Ensures text is on top of the overlay */
    gap: 6rem;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1rem;
}
.title-main {
    color: #fff;
    font-size: 46px;
    font-weight: bold;
    text-align: center;
    line-height: 52px;
}
.date {
    color: #fff;
    font-size: 18px;
    font-weight: bold;
    text-align: center;
    line-height: 26px;
    text-align: center;
}
.yellow {
    color: #ebc306;
}

/* Main Navigation */
.main-nav {
    background-color: #333;
    background-color: #f6d98b;
}

.main-nav ul {
    list-style-type: none;
    margin: 0;
    padding: 0.5rem 1rem;
    text-align: center;
    max-width: 1280px;
    margin: 0 auto;
}

.main-nav ul li {
    display: inline-block;
    border-right: 2px solid #000;
}

.main-nav ul li:last-child {
    border-right: none;
}

.main-nav ul li a {
    color: white;
    color: #000;
    text-decoration: none;
    padding: 1px 5px;
    display: block;
    font-weight: bold;
}

.main-nav ul li a:hover {
    background-color: #555;
    background-color: #ebc306;
}

.right-header {
    text-align: right;
}

.left-header {
    max-width: 50%;
}

/* Main Content and Sidebar Layout */
.container {
    display: flex;
    max-width: 1200px;
    margin: 2rem auto;
    padding: 0 1rem;
    gap: 2rem;
}

.main-content {
    flex: 3; /* Takes up 3/4 of the space */
    background: #fff;
    padding: 1.5rem;
}

.sidebar {
    flex: 1; /* Takes up 1/4 of the space */
    background: #fff;
    padding: 1.5rem;
}

.two-wide {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
}

.three-wide {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}
.home-img img {
    margin: 0 auto;
    height: auto;
    width: 100%;
}

/* Footer */
.site-footer-bottom {
    background-color: #333;
    color: white;
    text-align: center;
    padding: 1rem;
    margin-top: 2rem;
}

/* Hamburger Menu Button (hidden on desktop) */
.hamburger-menu {
    display: none; /* Hidden by default */
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
    z-index: 1001; /* Ensure it's on top */
}

.hamburger-menu span {
    display: block;
    width: 25px;
    height: 3px;
    background-color: #000;
    margin: 5px 0;
    transition: all 0.3s;
}

/* --- Responsive Design --- */
@media (max-width: 768px) {
    /* Header stacks vertically */
    .header-content {
        flex-direction: column;
        text-align: center;
        gap: 2rem;
    }

    .hamburger-menu {
        display: block; /* Show on mobile */
        position: absolute; /* Position relative to #top */
        top: 50%;
        left: 1rem;
        transform: translateY(-50%);
    }

    /* 'X' icon transformation when menu is active */
    .hamburger-menu.is-active span {
        background-color: white; /* Change color to white for the 'X' */
    }

    .hamburger-menu.is-active span:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }

    .hamburger-menu.is-active span:nth-child(2) {
        opacity: 0;
    }

    .hamburger-menu.is-active span:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }


    .left-header {
        max-width: 100%;
        text-align: center;
    }

    .right-header {
        text-align: center;
    }

    /* Adjust nav for mobile */
    /* Slide-in Menu Styling */
    .main-nav {
        position: fixed;
        top: 0;
        left: -100%; /* Start off-screen */
        width: 280px;
        height: 100%;
        background-color: #f6d98b;
        padding: 4rem 1rem 1rem;
        transition: left 0.3s ease-in-out;
        z-index: 1000;
        box-shadow: 2px 0 5px rgba(0,0,0,0.2);
    }

    .main-nav.is-active {
        left: 0; /* Slide in */
    }

    .main-nav ul li {
        display: block; /* Stack nav items */
        border-right: none; /* Remove pipe separator */
        border-bottom: 1px solid #ccc; /* Add bottom border instead */
    }

    .main-nav ul li:last-child {
        border-bottom: none;
    }

    /* Main content and sidebar stack */
    .container, .two-wide, .three-wide {
        flex-direction: column;
        grid-template-columns: 1fr; /* Make grids single-column */
    }
}