/* ==========================================================================
   Homeland411 — Magazine Pro / Genesis Theme Clone
   Original: WordPress Genesis Framework + Magazine Pro Theme
   Color: #003d70 (navy primary)
   ========================================================================== */

/* ---------- Reset & Base ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
    font-size: 62.5%;
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    background: #f5f5f5;
    color: #333;
    font-family: 'Lato', 'Helvetica Neue', Helvetica, Arial, sans-serif;
    font-size: 1.8rem;
    font-weight: 400;
    line-height: 1.625;
    margin: 0;
}

a {
    color: #003d70;
    text-decoration: none;
    transition: color 0.2s ease;
}
a:hover, a:focus { color: #c3251d; }

img {
    max-width: 100%;
    height: auto;
    display: block;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Lato', 'Helvetica Neue', Helvetica, Arial, sans-serif;
    font-weight: 700;
    line-height: 1.2;
    margin: 0 0 16px;
    color: #333;
}

h1 { font-size: 3.6rem; }
h2 { font-size: 3.0rem; }
h3 { font-size: 2.4rem; }
h4 { font-size: 2.0rem; }
h5 { font-size: 1.8rem; }
h6 { font-size: 1.6rem; }

p { margin: 0 0 24px; }

ul, ol { margin: 0 0 24px 40px; }

blockquote {
    border-left: 4px solid #003d70;
    margin: 0 0 24px;
    padding: 16px 24px;
    font-style: italic;
    background: #f9f9f9;
}

/* ---------- Screen Reader ---------- */
.screen-reader-text,
.screen-reader-shortcut {
    clip: rect(0,0,0,0);
    border: 0;
    height: 1px;
    overflow: hidden;
    position: absolute;
    width: 1px;
    white-space: nowrap;
}

.screen-reader-shortcut:focus {
    clip: auto;
    height: auto;
    width: auto;
    position: fixed;
    top: 0;
    left: 0;
    background: #fff;
    color: #333;
    padding: 15px 23px 14px;
    z-index: 100000;
    font-size: 1.4rem;
}

/* ---------- Site Container ---------- */
.site-container {
    max-width: 1200px;
    margin: 0 auto;
    background: #fff;
}

.wrap {
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ---------- Primary Navigation (Top Bar) ---------- */
.nav-primary {
    background: #fff;
    border-bottom: 1px solid #eee;
    font-size: 1.4rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.nav-primary .wrap {
    display: flex;
    justify-content: flex-start;
    align-items: center;
}

.nav-primary .genesis-nav-menu {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
}

.nav-primary .genesis-nav-menu li {
    margin: 0;
}

.nav-primary .genesis-nav-menu a {
    display: block;
    padding: 14px 18px;
    color: #333;
    font-weight: 400;
    text-decoration: none;
    border-bottom: 3px solid transparent;
    transition: all 0.2s ease;
}

.nav-primary .genesis-nav-menu a:hover,
.nav-primary .genesis-nav-menu .current-menu-item a {
    color: #003d70;
    border-bottom-color: #003d70;
}

/* ---------- Site Header ---------- */
.site-header {
    background: #fff;
    border-bottom: 1px solid #ddd;
    padding: 20px 0;
}

.site-header .wrap {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.title-area {
    flex: 0 0 auto;
}

.site-title {
    margin: 0;
    font-size: 0;
}

.site-title a {
    display: block;
    width: 400px;
    height: 80px;
    background-size: contain !important;
    background-repeat: no-repeat !important;
    background-position: left center !important;
    text-indent: -9999px;
    overflow: hidden;
}

.header-widget-area {
    flex: 1;
    text-align: right;
}

.header-widget-area .widget-wrap {
    display: inline-block;
}

/* ---------- Secondary Navigation (Category Bar) ---------- */
.nav-secondary {
    background: #003d70;
    font-size: 1.4rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.nav-secondary .wrap {
    display: flex;
    justify-content: flex-start;
    align-items: center;
}

.nav-secondary .genesis-nav-menu {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
}

.nav-secondary .genesis-nav-menu li {
    margin: 0;
    position: relative;
}

.nav-secondary .genesis-nav-menu a {
    display: block;
    padding: 12px 18px;
    color: #fff;
    font-weight: 700;
    text-decoration: none;
    transition: background 0.2s ease;
}

.nav-secondary .genesis-nav-menu a:hover {
    background: rgba(255,255,255,0.15);
    color: #fff;
}

/* Dropdown Sub-menus */
.nav-secondary .sub-menu {
    list-style: none;
    margin: 0;
    padding: 0;
    position: absolute;
    top: 100%;
    left: 0;
    background: #003d70;
    min-width: 220px;
    z-index: 1000;
    display: none;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.nav-secondary li:hover > .sub-menu {
    display: block;
}

.nav-secondary .sub-menu li {
    border-top: 1px solid rgba(255,255,255,0.1);
}

.nav-secondary .sub-menu a {
    padding: 10px 18px;
    font-weight: 400;
    font-size: 1.3rem;
}

.nav-secondary .sub-menu .sub-menu {
    left: 100%;
    top: 0;
}

/* Dropdown arrow for items with children */
.nav-secondary .menu-item-has-children > a::after {
    content: ' ▼';
    font-size: 0.7em;
    vertical-align: middle;
}

/* ---------- Mobile Menu Toggle ---------- */
.menu-toggle {
    display: none;
    background: #003d70;
    color: #fff;
    border: none;
    padding: 12px 20px;
    font-size: 1.6rem;
    cursor: pointer;
    width: 100%;
    text-align: left;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 700;
}

.menu-toggle::after {
    content: ' ☰';
    float: right;
}

/* ---------- Content Area ---------- */
.site-inner {
    padding: 30px 0;
}

.content-sidebar-wrap {
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
}

.content {
    flex: 1;
    min-width: 0;
}

/* ---------- Sidebar ---------- */
.sidebar-primary {
    flex: 0 0 340px;
    width: 340px;
}

.sidebar-primary .widget {
    margin-bottom: 30px;
    padding: 20px;
    background: #f9f9f9;
    border: 1px solid #eee;
}

.sidebar-primary .widget-title {
    font-size: 1.6rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 16px;
    padding-bottom: 10px;
    border-bottom: 2px solid #003d70;
    color: #003d70;
}

.sidebar-primary .widget ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.sidebar-primary .widget ul li {
    padding: 8px 0;
    border-bottom: 1px solid #eee;
    font-size: 1.5rem;
}

.sidebar-primary .widget ul li:last-child {
    border-bottom: none;
}

.sidebar-primary .widget ul li a {
    color: #333;
}

.sidebar-primary .widget ul li a:hover {
    color: #003d70;
}

/* ---------- Homepage Sections ---------- */

/* Home Top — Featured Article */
.home-top {
    margin-bottom: 30px;
    border-bottom: 1px solid #ddd;
    padding-bottom: 30px;
}

.home-top .entry {
    position: relative;
}

.home-top .entry-image {
    width: 100%;
    height: auto;
    margin-bottom: 16px;
}

.home-top .entry-title {
    font-size: 2.8rem;
    margin-bottom: 12px;
}

.home-top .entry-title a {
    color: #333;
}

.home-top .entry-title a:hover {
    color: #003d70;
}

.home-top .entry-content p {
    font-size: 1.7rem;
    color: #555;
    line-height: 1.7;
}

/* Home Middle — Two Column */
.home-middle {
    display: flex;
    gap: 30px;
    margin-bottom: 30px;
}

.home-middle-left,
.home-middle-right {
    flex: 1;
    min-width: 0;
}

.home-middle-left {
    border-right: 1px solid #ddd;
    padding-right: 30px;
}

.home-middle-left .widget-title,
.home-middle-right .widget-title {
    font-size: 1.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #003d70;
    border-bottom: 2px solid #003d70;
    padding-bottom: 10px;
    margin-bottom: 20px;
}

.home-middle .entry-image {
    width: 100%;
    height: auto;
    margin-bottom: 12px;
}

.home-middle .entry-title {
    font-size: 2.0rem;
    margin-bottom: 10px;
}

.home-middle .entry-title a {
    color: #333;
}

.home-middle .entry-title a:hover {
    color: #003d70;
}

.home-middle .entry-content p {
    font-size: 1.5rem;
    color: #555;
    line-height: 1.6;
}

/* Home Bottom — More411 & Library411 */
.home-bottom {
    border-top: 1px solid #ddd;
    padding-top: 30px;
}

.home-bottom .widget-title {
    font-size: 1.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #003d70;
    border-bottom: 2px solid #003d70;
    padding-bottom: 10px;
    margin-bottom: 20px;
}

.home-bottom .entry {
    display: flex;
    gap: 20px;
    margin-bottom: 24px;
    padding-bottom: 24px;
    border-bottom: 1px solid #eee;
    overflow: hidden;
}

.home-bottom .entry:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.home-bottom .entry-image-link {
    flex: 0 0 300px;
}

.home-bottom .entry-image {
    width: 300px;
    height: 168px;
    object-fit: cover;
}

.home-bottom .entry-text {
    flex: 1;
    min-width: 0;
}

.home-bottom .entry-title {
    font-size: 1.8rem;
    margin-bottom: 8px;
}

.home-bottom .entry-title a {
    color: #333;
}

.home-bottom .entry-title a:hover {
    color: #003d70;
}

.home-bottom .entry-content p {
    font-size: 1.5rem;
    color: #555;
    line-height: 1.6;
    margin-bottom: 0;
}

/* Section Dividers (matching original) */
.more411 {
    padding-top: 10px;
    border-top: 1px solid #ddd;
    margin-bottom: 30px;
}

.profile411 {
    padding-top: 10px;
    border-top: 1px solid #ddd;
}

.top411 { border-bottom: 1px solid #ddd; }
.in-depth { border-bottom: 1px solid #ddd; }

/* ---------- Article / Entry Styles ---------- */
.entry {
    margin-bottom: 30px;
}

.entry-header {
    margin-bottom: 12px;
}

.entry-meta {
    font-size: 1.4rem;
    color: #888;
    margin-bottom: 8px;
}

.entry-meta a {
    color: #666;
}

.entry-meta .entry-author-name {
    font-weight: 700;
}

.entry-time {
    display: inline;
}

.entry-categories,
.entry-tags {
    font-size: 1.3rem;
    color: #888;
    margin-top: 8px;
}

.entry-categories a,
.entry-tags a {
    color: #003d70;
}

.more-link {
    color: #003d70;
    font-weight: 700;
    font-size: 1.4rem;
}

.more-link:hover {
    color: #c3251d;
}

/* ---------- Single Article Page ---------- */
.single-article .entry-header {
    margin-bottom: 20px;
}

.single-article .entry-title {
    font-size: 3.2rem;
    line-height: 1.3;
}

.single-article .entry-meta {
    font-size: 1.4rem;
    color: #888;
    padding-bottom: 16px;
    border-bottom: 1px solid #eee;
}

.single-article .entry-content {
    font-size: 1.8rem;
    line-height: 1.8;
}

.single-article .entry-content p {
    margin-bottom: 24px;
}

.single-article .entry-content img {
    margin: 24px 0;
}

.single-article .featured-image {
    margin-bottom: 24px;
}

.single-article .featured-image img {
    width: 100%;
    height: auto;
}

/* ---------- Category Archive Page ---------- */
.archive-title {
    font-size: 2.4rem;
    margin-bottom: 24px;
    padding-bottom: 12px;
    border-bottom: 2px solid #003d70;
    color: #003d70;
}

.archive-description {
    margin-bottom: 30px;
    font-size: 1.6rem;
    color: #555;
}

.archive-list .entry {
    display: flex;
    gap: 20px;
    padding-bottom: 24px;
    margin-bottom: 24px;
    border-bottom: 1px solid #eee;
}

.archive-list .entry-image-link {
    flex: 0 0 300px;
}

.archive-list .entry-image {
    width: 300px;
    height: 168px;
    object-fit: cover;
}

.archive-list .entry-text {
    flex: 1;
}

.archive-list .entry-title {
    font-size: 2.0rem;
    margin-bottom: 8px;
}

/* ---------- Page Styles ---------- */
.page-title {
    font-size: 3.0rem;
    margin-bottom: 24px;
    color: #333;
}

.page-content {
    font-size: 1.7rem;
    line-height: 1.8;
}

.page-content h2 {
    font-size: 2.4rem;
    margin-top: 36px;
    margin-bottom: 16px;
    color: #003d70;
}

.page-content h3 {
    font-size: 2.0rem;
    margin-top: 30px;
    margin-bottom: 12px;
}

/* ---------- Forms ---------- */
input[type="text"],
input[type="email"],
input[type="url"],
input[type="search"],
textarea {
    border: 1px solid #ddd;
    padding: 12px 16px;
    font-size: 1.6rem;
    width: 100%;
    font-family: inherit;
    border-radius: 0;
    transition: border-color 0.2s;
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="url"]:focus,
input[type="search"]:focus,
textarea:focus {
    border-color: #003d70;
    outline: none;
}

input[type="submit"],
button,
.button {
    background: #003d70;
    color: #fff;
    border: none;
    padding: 12px 24px;
    font-size: 1.6rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    cursor: pointer;
    transition: background 0.2s;
    font-family: inherit;
}

input[type="submit"]:hover,
button:hover,
.button:hover {
    background: #00294d;
}

/* Subscribe Box */
.subscribebox {
    padding-bottom: 10px;
}

.subscribe-form {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.subscribe-form input[type="email"] {
    width: 100%;
}

.subscribe-form input[type="submit"] {
    width: 100%;
}

/* ---------- Footer ---------- */
.site-footer {
    background: #333;
    color: #999;
    padding: 20px 0;
    font-size: 1.4rem;
    text-align: center;
    border-top: 4px solid #003d70;
}

.site-footer a {
    color: #ccc;
}

.site-footer a:hover {
    color: #fff;
}

.site-footer p {
    margin: 0;
}

/* ---------- Breadcrumbs ---------- */
.breadcrumb {
    font-size: 1.3rem;
    color: #888;
    margin-bottom: 20px;
    padding: 8px 0;
}

.breadcrumb a {
    color: #003d70;
}

.breadcrumb .separator {
    margin: 0 6px;
    color: #ccc;
}

/* ---------- Pagination ---------- */
.pagination {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #eee;
}

.pagination a,
.pagination span {
    display: inline-block;
    padding: 8px 14px;
    border: 1px solid #ddd;
    font-size: 1.4rem;
    color: #333;
}

.pagination .current {
    background: #003d70;
    color: #fff;
    border-color: #003d70;
}

.pagination a:hover {
    background: #f5f5f5;
}

/* ---------- Author Box ---------- */
.author-box {
    background: #f9f9f9;
    border: 1px solid #eee;
    padding: 24px;
    margin: 30px 0;
    display: flex;
    gap: 20px;
}

.author-box-avatar {
    flex: 0 0 80px;
}

.author-box-avatar img {
    border-radius: 50%;
    width: 80px;
    height: 80px;
}

.author-box-content {
    flex: 1;
}

.author-box-title {
    font-size: 1.6rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.author-box-description {
    font-size: 1.5rem;
    color: #555;
    line-height: 1.6;
}

/* ---------- Social Share Bar ---------- */
.share-bar {
    display: flex;
    gap: 8px;
    margin: 20px 0;
    padding: 16px 0;
    border-top: 1px solid #eee;
    border-bottom: 1px solid #eee;
}

.share-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    font-size: 1.3rem;
    font-weight: 700;
    text-transform: uppercase;
    color: #fff;
    border-radius: 3px;
    text-decoration: none;
}

.share-btn.twitter { background: #1da1f2; }
.share-btn.facebook { background: #3b5998; }
.share-btn.linkedin { background: #0077b5; }
.share-btn.email { background: #888; }

.share-btn:hover {
    opacity: 0.85;
    color: #fff;
}

/* ---------- Contact Form ---------- */
.contact-form {
    max-width: 600px;
}

.contact-form .form-group {
    margin-bottom: 20px;
}

.contact-form label {
    display: block;
    margin-bottom: 6px;
    font-weight: 700;
    font-size: 1.5rem;
}

.contact-form textarea {
    min-height: 150px;
    resize: vertical;
}

/* ---------- Responsive ---------- */
@media (max-width: 1023px) {
    .content-sidebar-wrap {
        flex-direction: column;
    }

    .sidebar-primary {
        flex: 1;
        width: 100%;
    }

    .site-title a {
        width: 280px;
        height: 60px;
    }
}

@media (max-width: 767px) {
    html { font-size: 56.25%; }

    .nav-primary .genesis-nav-menu,
    .nav-secondary .genesis-nav-menu {
        flex-direction: column;
    }

    .nav-primary .wrap,
    .nav-secondary .wrap {
        flex-direction: column;
    }

    .menu-toggle {
        display: block;
    }

    .genesis-nav-menu.responsive-menu {
        display: none;
    }

    .genesis-nav-menu.responsive-menu.menu-open {
        display: flex;
    }

    .site-header .wrap {
        flex-direction: column;
        text-align: center;
    }

    .header-widget-area {
        text-align: center;
        margin-top: 10px;
    }

    .home-middle {
        flex-direction: column;
    }

    .home-middle-left {
        border-right: none;
        padding-right: 0;
        border-bottom: 1px solid #ddd;
        padding-bottom: 30px;
    }

    .home-bottom .entry {
        flex-direction: column;
    }

    .home-bottom .entry-image-link {
        flex: none;
    }

    .home-bottom .entry-image {
        width: 100%;
        height: auto;
    }

    .archive-list .entry {
        flex-direction: column;
    }

    .archive-list .entry-image-link {
        flex: none;
    }

    .archive-list .entry-image {
        width: 100%;
        height: auto;
    }

    .site-title a {
        width: 240px;
        height: 50px;
        margin: 0 auto;
    }

    .author-box {
        flex-direction: column;
        text-align: center;
    }
}

/* ---------- Print ---------- */
@media print {
    .nav-primary, .nav-secondary, .sidebar-primary,
    .site-footer, .share-bar, .menu-toggle { display: none; }
    .site-container { max-width: 100%; }
    .content { width: 100%; }
    body { font-size: 12pt; }
}
