/* --- 1. Global Reset --- */
* {													  
    box-sizing: border-box;
}

body {
    margin: 0;
    padding: 0;
    font-family: Arial, sans-serif;
    line-height: 1.6;
    /* This ensures space at the top so the navbar doesn't cover text */
    padding-top: 80px; 
}

/* --- 2. The Final Layout Fix --- */

/* Standard container for ALL pages (allows text wrapping) */
.container {
    padding-left: 25px;
    padding-right: 25px;
    max-width: 1200px;
    margin: 0 auto;
    display: block; 
}

/* NEW: Specialized container for Home, Praise, and Contact pages */
/* This restores the layout that was "jamming" together */
.flex-container {
    display: flex;
    flex-direction: column;
    align-items: flex-start; /* Keeps text aligned to the left */
}

.imageleft {
    float: left;
    margin-right: 20px;
    margin-bottom: 10px;
}

h1 {
    margin-top: 10px; /* Adjusts space above */
    margin-bottom: 10px; /* Adjusts space below */
}

h2 {
    margin-top: 5px; /* Adjusts space above */
    margin-bottom: 5px; /* Adjusts space below */
}

/* h1, h2, h3 {
    clear: both;
    padding-top: 15px;
} */

/* --- 4. Navbar & Menu --- */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: #3366ff !important;
    z-index: 9999;
}

.menu {
    list-style: none;
    display: flex;
    margin: 0;
    padding: 0;
    background-color: #3366ff !important;
}

.menu li {
    position: relative;
}

.menu a, .dropdown-label {
    display: block;
    padding: 15px 20px;
    color: white !important;
    text-decoration: none;
    font-weight: bold;
    cursor: pointer;
}

/* --- 5. THE FIX: Chapters Dropdown (Mobile & Desktop) --- */
.dropdown-checkbox {
    display: none; /* Keep the box hidden */
}

.dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background-color: #3366ff !important;
    min-width: 250px;
    box-shadow: 0px 8px 16px rgba(0,0,0,0.3);
    list-style: none;
    padding: 0;
    z-index: 10000;
}

/* Desktop Hover */
.dropdown:hover .dropdown-menu {
    display: block;
}

/* Mobile Tap Fix: Show menu when checkbox is checked */
.dropdown-checkbox:checked ~ .dropdown-menu {
    display: block !important;
}

.dropdown-menu li a {
    padding: 12px 20px;
    font-weight: normal;
    border-top: 1px solid rgba(255,255,255,0.1);
}

/* --- 6. Mobile Responsiveness --- */
@media (max-width: 768px) {
    .menu {
        overflow-x: auto;
        white-space: nowrap;
    }
    .dropdown-menu {
        position: absolute; /* Keeps it over the content */
    }
}