/* --- Basic Reset and Typography --- */
body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #ffffff;
    color: #333;
}

a {
    text-decoration: none;
    color: inherit;
}

/* --- RESPONSIVE IMAGE STYLES --- */
img {
    max-width: 100%; 
    height: auto; 
    display: block; 
    border-radius: 8px;
    margin-bottom: 15px; 
}

/* Styling for the text placeholders to look like an image box */
.content-entry > [class^="Image of"] {
    display: block;
    width: 100%;
    height: 150px; 
    background-color: #ecf0f1;
    color: #95a5a6;
    text-align: center;
    line-height: 150px;
    font-size: 0.9em;
    border-radius: 4px;
    margin-bottom: 15px;
}


/* ------------------------------------------------------------------- */
/* --- 1. Full-Width Header and Menu --- */
/* ------------------------------------------------------------------- */
.site-header {
    background-color: #4f6c97;
    color: white;
    padding: 30px 0; 
    width: 100%;
}

.header-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    flex-direction: column; 
    align-items: center;
}

.site-title {
    margin: 0 0 5px 0; 
    text-align: center;
}

.site-title img {
    max-width: 300px; 
    height: auto; 
    max-height: 100px; 
    display: inline-block; 
}

.site-menu {
    width: 100%;
    text-align: center;
}

.site-menu ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex; 
    justify-content: center;
}

.site-menu li {
    margin: 0 25px; 
    font-weight: bold;
    position: relative; 
}

.site-menu a:hover {
    color: #2c3e50;
}


/* --- DROPDOWN MENU STYLES --- */
.dropdown-menu {
    list-style: none;
    padding: 0;
    margin: 0;
    
    position: absolute;
    top: 100%; 
    left: 0; 
    z-index: 1000; 

    background-color: #4f6c97;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
    
    width: auto; 
    
    display: none !important; 
    flex-direction: column; 
}

.dropdown-menu li {
    margin: 0;
    padding: 0; 
    text-align: left;
    width: 100%;
    position: static; 
    display: block; 
}

.dropdown-menu li a {
    padding: 8px 15px;
    display: block; 
    white-space: nowrap; 
}

.dropdown-menu li a:hover {
    background-color: #6c7a89; 
}

.dropdown:hover .dropdown-menu {
    display: block !important; 
}

/* ------------------------------------------------------------------- */
/* --- 2. Main Content Area (Two Primary Columns) --- */
/* ------------------------------------------------------------------- */
.main-content-area {
    max-width: 1200px;
    margin: 0 auto;
    padding: 15px 20px;
    display: flex;
    gap: 30px;
}

/* Spacing between Hero and White Content */
.page-hero + .main-content-area {
    margin-top: 15px; 
    margin-bottom: 15px; 
}


/* --- 3. Column Sizing and Styling --- */
.main-column {
    flex: 7;
    background-color: #ffffff;
    padding: 20px;
    border-radius: 5px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05); 
}

.sidebar-column {
    flex: 3;
    background-color: #ffffff;
    /* Padding removed to allow margin control for alignment */
    padding: 20px 0; 
    border-radius: 0px;
    border-left: 1px solid #bdc3c7; 
    margin-left: -30px;
}

/* --- Sidebar Content Alignment Fix (20px gap from vertical line) --- */
.sidebar-column .content-entry {
    margin-left: 20px; 
    width: calc(100% - 20px); 
}

.main-column article:first-child h2, 
.sidebar-column article:first-child h3 {
    margin-top: 0;
}

/* ------------------------------------------------------------------- */
/* --- 4. Content Entry Styling & Typography --- */
/* ------------------------------------------------------------------- */
.content-entry {
    padding: 0; 
    margin-bottom: 20px; 
    border: none; 
    background-color: transparent; 
}

/* Typography for main content paragraphs */
.main-column p {
    font-size: 17px; 
    /* Line height relies on browser default ('normal') */
}

/* Typography for sidebar paragraphs */
.sidebar-column p {
    font-size: 17px; 
}

/* Typography for links */
.clicker {
  color: #4f6ca7;
  font-size: 16px; 
  font-weight: bold;
}

.content-entry a h2,
.content-entry a h3 {
    color: inherit; 
    text-decoration: none;
    margin-top: 0; 
}

.content-entry a:hover h2,
.content-entry a:hover h3 {
    color: #3498db; 
}

/* Horizontal line between headline and secondary content */
.content-divider {
    border: 0;
    height: 1px;
    background-color: #bdc3c7;
    margin: 30px 0;
    width: 100%; /* Ensures full-width alignment */
}

/* Secondary Divider */
.sec-divider {
    border: 0;
    height: 1px;
    background-color: #bdc3c7;
    margin: 20px 0px 0px;
}

/* Resets margin on sidebar divider to align with content-entry wrapper */
.sidebar-column .sec-divider {
    margin-left: 0; 
    width: 100%; 
}


/* Horizontal Divider for use when reverting back to a single column  */
.singularity-divider {
    border: 0;
    height: 1px;
    background-color: #bdc3c7;
    margin: 20px 0;
    width: 100%; /* Ensures full-width alignment */
}


/* ------------------------------------------------------------------- */
/* --- 5. CSS GRID for the Secondary Content --- */
/* ------------------------------------------------------------------- */
.secondary-content-grid {
    display: grid;
    grid-template-columns: auto auto;
    gap: 20px;
}

.secondary-content-grid .content-entry:nth-child(odd) {
    border-right: 1px solid #bdc3c7; 
    padding-right: 20px;
}

.secondary-content-grid .content-entry {
    margin-bottom: 10px; 
    padding-left: 0; 
    padding-right: 0; 
}

.sidebar-column button {
    background-color: #3498db;
    color: white;
    border: none;
    padding: 10px 15px;
    cursor: pointer;
    border-radius: 3px;
    font-weight: bold;
    margin-top: 10px;
}

/* ------------------------------------------------------------------- */
/* --- Footer Styling --- */
/* ------------------------------------------------------------------- */
.site-footer {
    background-color: #4f6c97;
    color: white;
    padding: 15px 0;
    margin-top: 0; 
    width: 100%;
}

.site-footer .content-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    
    display: flex;
    justify-content: space-between; 
    align-items: center; 
    
    text-align: left; 
}

.site-footer .content-container p {
    margin: 0; 
}

.social-links {
    margin-bottom: 0; 
}

.social-links img {
    display: inline-block; 
    
    width: 30px; 
    height: 30px;
    
    margin: 0 2px; 
    
    margin-bottom: 0; 
}


/* ------------------------------------------------------------------- */
/* --- 6. Basic Responsiveness --- */
/* ------------------------------------------------------------------- */
@media (max-width: 768px) {
    .site-footer .content-container {
        flex-direction: column;
        text-align: center;
    }
    
    .site-footer .content-container p {
        margin-top: 10px;
    }
    
    .site-title img {
        max-width: 250px; 
        max-height: 70px;
    }
    
    .main-content-area {
        flex-direction: column;
        gap: 10px;
    }
    
    .sidebar-column {
        border-left: none;
        border-top: 1px solid #bdc3c7;
        padding: 20px;
        margin-left: 0;
    }
    
    .secondary-content-grid {
        grid-template-columns: 1fr;
    }
    
    .secondary-content-grid .content-entry:nth-child(odd) {
        border-right: none;
        padding-right: 0;
    }
    
    .site-title {
        margin-bottom: 10px;
    }
    
    .site-menu ul {
        flex-direction: column;
        align-items: center;
    }
    
    .site-menu li {
        margin: 5px 0;
    }
    
    .site-menu li.dropdown {
        position: static; 
    }
    
    .dropdown-menu {
        position: static; 
        transform: none;
        width: 100%;
        background-color: #6c7a89; 
    }

    .dropdown-menu li {
        text-align: center;
        padding: 0; 
    }
    
    .dropdown-menu li a {
        padding: 5px 0;
    }
}


/* ------------------------------------------------------------------- */
/* --- HERO SECTION STYLES --- */
/* ------------------------------------------------------------------- */
.page-hero {
    background-image: url('endlords.jpg'); 
    background-size: cover; 
    background-position: center center; 
    background-repeat: no-repeat; 
    
    width: 100%;
    
    background-color: rgba(0, 0, 0, 0.4); 
    background-blend-mode: multiply;
    color: white;
    
    padding-top: 0px; 
    padding-bottom: 15px; 
}

/* Overrides for columns INSIDE the hero section */
.page-hero .main-column,
.page-hero .sidebar-column {
    background-color: transparent !important; 
    box-shadow: none !important;
    border-color: rgba(255, 255, 255, 0.5) !important;
}

.page-hero a {
    color: inherit; 
}


/* --- New: Single Column Override for Content Grid --- */

/* 1. When the section has this modifier, we force the grid to be one column. */
.secondary-content-grid.single-content {
    grid-template-columns: 1fr;
    gap: 0;
}

/* 2. We remove the vertical border/padding from the entries */
.secondary-content-grid.single-content .content-entry:nth-child(odd) {
    border-right: none;
    padding-right: 0;
}

/* 3. Optional: Restore vertical spacing between the full-width entries. */
.secondary-content-grid.single-content .content-entry {
    margin-bottom: 30px; 
}





/* ------------------------------------------------------------------- */
/* --- NEWSLETTER FORM STYLES --- */
/* ------------------------------------------------------------------- */
.newsletter-form form {
    display: flex;
    flex-direction: column;
    gap: 10px; /* Space between form elements */
    margin-top: 15px;
}

.newsletter-form label {
    font-size: 16px; 
    font-weight: bold;
    margin-top: 5px;
}

.newsletter-form input[type="text"],
.newsletter-form input[type="email"] {
    padding: 10px;
    border: 1px solid #bdc3c7; /* Light grey border */
    border-radius: 6px;
    font-size: 16px;
    width: 100%;
    box-sizing: border-box; /* Ensures padding doesn't widen the input */
}

.newsletter-form button {
    background-color: #4f6c97; /* Header/Footer Color */
    color: white;
    border: none;
    padding: 12px 15px;
    cursor: pointer;
    border-radius: 6px;
    font-weight: bold;
    margin-top: 10px;
    font-size: 17px; 
}

.newsletter-form button:hover {
    background-color: #34495e; 
}
/* --- NEW STYLES FOR COMBINED NAME INPUT --- */
.newsletter-form .name-fields-group {
    display: flex;
    gap: 5px; /* Small space between the fields */
    margin-bottom: 5px;
}

.newsletter-form .name-fields-group .name-input-col {
    display: flex;
    flex-direction: column;
    flex: 1; /* Makes all columns share space equally */
}

.newsletter-form .field-label {
    font-size: 10px;
    color: #555;
    margin-top: 2px;
}