/*
Theme Name: GeneratePress Child
Theme URI: https://buildarchives.xyz/
Description: GeneratePress Child Theme for BuildArchives
Author: Prof. Cole Walter DVM
Author URI: https://buildarchives.xyz/
Template: generatepress
Version: 1.0.0
*/

:root {
    --primary: #0E5C8A;
    --accent: #E07A1F;
    --text: #1A1F26;
    --muted: #5C6773;
    --bg: #F8FAFC;
    --alt: #F4F7F9;
    --border: #E2E8ED;
    --dark: #13232D;
    --r: 10px;
    --max: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    font-size: 17px;
    line-height: 1.8;
}
a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }
.container { width: min(var(--max), calc(100% - 32px)); margin: auto; }

/* Admin Bar Top Offset */
body.admin-bar .header { top: 32px !important; }
@media screen and (max-width: 782px) {
    body.admin-bar .header { top: 46px !important; }
}

/* Suppress GeneratePress default elements globally */
.site-header,
#masthead,
.site-footer,
#site-navigation {
    display: none !important;
}

/* 74px Sticky Header */
.header {
    height: 74px;
    border-bottom: 1px solid var(--border);
    background: #ffffff;
    position: sticky;
    top: 0;
    z-index: 9999;
}
.header-in {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}
.logo {
    font: 700 25px Georgia, serif;
    color: var(--primary);
    white-space: nowrap;
    text-decoration: none;
    flex-shrink: 0;
}
.logo b { color: var(--accent); }

.nav {
    display: flex;
    align-items: center;
    gap: 18px;
    font-size: 14px;
    font-weight: 700;
    margin-left: auto;
}
.nav a {
    text-decoration: none;
    color: var(--text);
    transition: color 0.15s ease;
    display: inline-flex;
    align-items: center;
    white-space: nowrap;
}
.nav a:hover { color: var(--primary); }

.search-icon, .menu {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--border);
    background: #fff;
    border-radius: 8px;
    padding: 7px 10px;
    cursor: pointer;
    line-height: 1;
    transition: all 0.15s;
    flex-shrink: 0;
}
.search-icon:hover, .menu:hover {
    border-color: var(--primary);
    background: var(--alt);
}
.search-icon svg, .menu svg { width: 16px; height: 16px; display: block; }
.menu { display: none; }

/* Responsive Navigation */
@media (max-width: 860px) {
    .nav { display: none; }
    .nav.mobile-active {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        position: absolute;
        top: 74px;
        left: 0;
        width: 100%;
        background: #fff;
        padding: 24px 28px;
        box-shadow: 0 15px 35px rgba(0,0,0,0.12);
        border-bottom: 2px solid var(--border);
        z-index: 1000;
        gap: 16px;
    }
    .search-icon { display: none; }
    .menu { display: inline-flex; margin-left: auto; }
}

@media (max-width: 768px) {
    .header { height: 66px; }
}

/* ==========================================================================
   SIMPLE CLEAN BLOG FEED (POSTS LIST ON HOMEPAGE)
   ========================================================================== */
body.blog .site-content,
body.archive .site-content {
    padding-top: 45px !important;
    padding-bottom: 70px !important;
    max-width: 900px !important;
    margin: 0 auto !important;
}

body.blog #primary,
body.archive #primary {
    width: 100% !important;
    float: none !important;
}

body.blog #right-sidebar,
body.archive #right-sidebar {
    display: none !important;
}

/* Post Cards */
body.blog .inside-article,
body.archive .inside-article {
    background: #ffffff !important;
    border: 1px solid var(--border) !important;
    border-radius: var(--r) !important;
    padding: 36px !important;
    margin-bottom: 30px !important;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04) !important;
    transition: transform 0.2s ease, box-shadow 0.2s ease !important;
}

body.blog .inside-article:hover,
body.archive .inside-article:hover {
    transform: translateY(-3px) !important;
    box-shadow: 0 10px 24px rgba(14, 92, 138, 0.08) !important;
}

body.blog .entry-title,
body.archive .entry-title {
    font-family: Georgia, "Times New Roman", serif !important;
    font-size: 28px !important;
    line-height: 1.3 !important;
    margin: 0 0 12px 0 !important;
    font-weight: 700 !important;
}

body.blog .entry-title a,
body.archive .entry-title a {
    color: var(--primary) !important;
    text-decoration: none !important;
    transition: color 0.15s ease !important;
}

body.blog .entry-title a:hover,
body.archive .entry-title a:hover {
    color: var(--accent) !important;
}

body.blog .entry-meta,
body.archive .entry-meta {
    font-size: 13.5px !important;
    color: var(--muted) !important;
    margin-bottom: 18px !important;
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 12px !important;
}

body.blog .entry-summary,
body.archive .entry-summary,
body.blog .entry-content,
body.archive .entry-content {
    font-size: 16.5px !important;
    line-height: 1.75 !important;
    color: #374151 !important;
}

.read-more-container a,
.more-link {
    display: inline-flex !important;
    align-items: center !important;
    margin-top: 18px !important;
    font-size: 14px !important;
    font-weight: 700 !important;
    color: var(--primary) !important;
    text-decoration: none !important;
    padding: 6px 14px !important;
    background: var(--alt) !important;
    border: 1px solid var(--border) !important;
    border-radius: 6px !important;
    transition: all 0.15s ease !important;
}
.read-more-container a:hover,
.more-link:hover {
    background: var(--primary) !important;
    color: #ffffff !important;
    border-color: var(--primary) !important;
}

/* Pagination */
.paging-navigation {
    margin-top: 40px !important;
    text-align: center !important;
}
.paging-navigation .page-numbers {
    display: inline-block !important;
    padding: 8px 16px !important;
    margin: 0 4px !important;
    background: #ffffff !important;
    border: 1px solid var(--border) !important;
    border-radius: 6px !important;
    color: var(--primary) !important;
    font-weight: 700 !important;
}
.paging-navigation .page-numbers.current {
    background: var(--primary) !important;
    color: #ffffff !important;
    border-color: var(--primary) !important;
}

/* ==========================================================================
   SINGLE ARTICLE STYLES
   ========================================================================== */
.single .site-content {
    padding-top: 40px !important;
    padding-bottom: 60px !important;
}

.single .entry-header {
    margin-bottom: 25px !important;
}

.single .entry-title {
    font-family: Georgia, "Times New Roman", serif !important;
    font-size: 38px !important;
    line-height: 1.25 !important;
    color: var(--primary) !important;
    margin-bottom: 14px !important;
}

.single .entry-content h2,
.wxa-article-content h2,
h2.wxa-h2 {
    color: #0E5C8A !important;
    background: #EAF2F7 !important;
    padding: 14px 22px !important;
    border-radius: 8px !important;
    border-left: 6px solid #0E5C8A !important;
    font-family: Georgia, 'Times New Roman', serif !important;
    font-size: 24px !important;
    line-height: 1.35 !important;
    margin: 38px 0 20px 0 !important;
    font-weight: 700 !important;
    box-shadow: 0 1px 3px rgba(14,92,138,0.06) !important;
}

.single .entry-content h3,
.wxa-article-content h3,
h3.wxa-h3 {
    color: #B45309 !important;
    background: #FEF3C7 !important;
    padding: 10px 18px !important;
    border-radius: 6px !important;
    border-left: 5px solid #E07A1F !important;
    font-family: Georgia, 'Times New Roman', serif !important;
    font-size: 20px !important;
    line-height: 1.4 !important;
    margin: 28px 0 16px 0 !important;
    font-weight: 700 !important;
    box-shadow: 0 1px 2px rgba(224,122,31,0.05) !important;
}

.wxa-callout {
    background: #F4F7F9;
    border-left: 4px solid #0E5C8A;
    border-radius: 8px;
    padding: 20px 24px;
    margin: 30px 0;
    font-size: 16px;
    line-height: 1.7;
    color: #1A1F26;
}

.wxa-table-wrap {
    overflow-x: auto;
    margin: 30px 0;
    border: 1px solid #E2E8ED;
    border-radius: 8px;
}
.wxa-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 15px;
    text-align: left;
}
.wxa-table th {
    background: #0E5C8A;
    color: #ffffff;
    padding: 12px 16px;
    font-weight: 600;
}
.wxa-table td {
    padding: 12px 16px;
    border-top: 1px solid #E2E8ED;
}
.wxa-table tr:nth-child(even) td {
    background: #F8FAFC;
}

/* ==========================================================================
   GLOBAL DARK FOOTER
   ========================================================================== */
.footer {
    background: var(--dark);
    color: #dce6eb;
    padding: 52px 0 20px;
    font-family: Inter, Arial, sans-serif;
    margin-top: 50px;
    clear: both;
}
.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: 35px;
}
.footer h3 {
    font-size: 18px;
    color: #fff;
    margin: 0 0 14px;
}
.footer p, .footer a {
    font-size: 13px;
    color: #aebdc5;
    text-decoration: none;
}
.footer a {
    display: block;
    margin: 6px 0;
    transition: color 0.15s;
}
.footer a:hover { color: #fff; }
.copy {
    border-top: 1px solid #31424b;
    margin-top: 30px;
    padding-top: 16px;
    font-size: 12px;
    color: #91a2ab;
}

@media(max-width:1024px){
    .footer-grid { grid-template-columns: repeat(2, 1fr); }
}
@media(max-width:768px){
    .footer-grid { grid-template-columns: 1fr; gap: 20px; }
    body.blog .inside-article { padding: 24px !important; }
    body.blog .entry-title { font-size: 22px !important; }
}


/* MULTI-COLOR HEADINGS WITH COLORED BACKGROUNDS (Single Post & Pages) */
.single .entry-content h2,
.page .entry-content h2 {
    font-family: Georgia, serif;
    font-size: 26px;
    font-weight: 700;
    line-height: 1.35;
    padding: 14px 20px;
    border-radius: 6px;
    margin-top: 40px;
    margin-bottom: 22px;
    border-left: 5px solid;
    transition: all 0.2s ease;
}

/* 1. Ocean Blue */
.single .entry-content h2:nth-of-type(6n+1),
.entry-content h2.h-blue {
    color: #0D5A8A !important;
    background: #EBF5FB !important;
    border-left-color: #0284C7 !important;
}

/* 2. Emerald Green */
.single .entry-content h2:nth-of-type(6n+2),
.entry-content h2.h-green {
    color: #0E6245 !important;
    background: #E8F8F0 !important;
    border-left-color: #10B981 !important;
}

/* 3. Royal Violet */
.single .entry-content h2:nth-of-type(6n+3),
.entry-content h2.h-purple {
    color: #5B21B6 !important;
    background: #F3E8FF !important;
    border-left-color: #8B5CF6 !important;
}

/* 4. Amber / Ochre Gold */
.single .entry-content h2:nth-of-type(6n+4),
.entry-content h2.h-orange {
    color: #8A4E08 !important;
    background: #FEF3C7 !important;
    border-left-color: #F59E0B !important;
}

/* 5. Crimson / Ruby */
.single .entry-content h2:nth-of-type(6n+5),
.entry-content h2.h-red {
    color: #9F1239 !important;
    background: #FFE4E6 !important;
    border-left-color: #F43F5E !important;
}

/* 6. Deep Teal */
.single .entry-content h2:nth-of-type(6n+6),
.entry-content h2.h-teal {
    color: #115E59 !important;
    background: #CCFBF1 !important;
    border-left-color: #14B8A6 !important;
}

/* Subheadings H3 */
.single .entry-content h3,
.page .entry-content h3 {
    font-size: 20px;
    font-weight: 600;
    line-height: 1.4;
    padding: 10px 18px;
    border-radius: 4px;
    margin-top: 28px;
    margin-bottom: 16px;
    border-left: 4px solid;
}

.single .entry-content h3:nth-of-type(3n+1),
.entry-content h3.h-blue {
    color: #0369A1 !important;
    background: #F0F9FF !important;
    border-left-color: #38BDF8 !important;
}

.single .entry-content h3:nth-of-type(3n+2),
.entry-content h3.h-green {
    color: #047857 !important;
    background: #ECFDF5 !important;
    border-left-color: #34D399 !important;
}

.single .entry-content h3:nth-of-type(3n+3),
.entry-content h3.h-orange {
    color: #B45309 !important;
    background: #FFFBEB !important;
    border-left-color: #FBBF24 !important;
}

/* Comparative tables styling in single posts */
.single .entry-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 30px 0;
    background: #fff;
    border: 1px solid #E2E8F0;
    border-radius: 8px;
    overflow: hidden;
}
.single .entry-content th {
    background: #0E5C8A;
    color: #ffffff;
    padding: 12px 16px;
    font-weight: 600;
    text-align: left;
    font-size: 15px;
}
.single .entry-content td {
    padding: 12px 16px;
    border-bottom: 1px solid #E2E8F0;
    font-size: 15px;
    line-height: 1.6;
}
.single .entry-content tr:nth-child(even) td {
    background: #F8FAFC;
}

/* PIN HEADER DIRECTLY TO TOP WITH ZERO UNWANTED MARGIN/PADDING */
html, body {
    margin: 0 !important;
    padding: 0 !important;
}

body .header {
    height: 74px !important;
    position: sticky !important;
    top: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    background: #ffffff !important;
    border-bottom: 1px solid var(--border) !important;
    z-index: 99999 !important;
}

body.admin-bar .header {
    top: 32px !important;
}

@media screen and (max-width: 782px) {
    body.admin-bar .header {
        top: 46px !important;
    }
}

.header .container,
.header .header-in {
    padding-top: 0 !important;
    padding-bottom: 0 !important;
    margin-top: 0 !important;
    margin-bottom: 0 !important;
    height: 100% !important;
}

/* FEATURED IMAGE MODERN CARD & SINGLE POST STYLING */
.blog .post-image,
.archive .post-image {
    margin: -35px -35px 25px -35px;
    overflow: hidden;
    border-radius: 12px 12px 0 0;
}

.blog .post-image img,
.archive .post-image img {
    width: 100%;
    height: 380px;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.blog article:hover .post-image img,
.archive article:hover .post-image img {
    transform: scale(1.03);
}

.single .featured-image,
.single .post-image {
    margin-bottom: 35px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 15px 35px rgba(0,0,0,0.07);
}

.single .featured-image img,
.single .post-image img {
    width: 100%;
    max-height: 520px;
    object-fit: cover;
}


/* ========================================================
   SIDEBAR CATEGORIES WIDGET STYLING
   ======================================================== */
.widget_categories.custom-categories-widget {
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    border: 1px solid #eef2f6;
    padding: 24px;
    margin-bottom: 30px;
}

.widget_categories.custom-categories-widget .widget-title {
    font-size: 1.15rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 18px;
    padding-bottom: 10px;
    border-bottom: 2px solid #0e5c8a;
}

.widget_categories.custom-categories-widget ul.custom-cat-list {
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.widget_categories.custom-categories-widget ul.custom-cat-list li {
    margin: 0 !important;
    padding: 0 !important;
    list-style-type: none !important;
}

.widget_categories.custom-categories-widget ul.custom-cat-list li a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 11px 16px;
    background: #f8fafc;
    border-radius: 8px;
    color: #334155 !important;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.92rem;
    transition: all 0.25s ease;
    border: 1px solid #e2e8f0;
}

.widget_categories.custom-categories-widget ul.custom-cat-list li a:hover {
    background: #0e5c8a;
    color: #ffffff !important;
    transform: translateX(4px);
    border-color: #0e5c8a;
}

.widget_categories.custom-categories-widget .cat-count {
    background: #e2e8f0;
    color: #0e5c8a;
    font-size: 0.78rem;
    font-weight: 700;
    padding: 3px 9px;
    border-radius: 20px;
    transition: all 0.25s ease;
}

.widget_categories.custom-categories-widget ul.custom-cat-list li a:hover .cat-count {
    background: #ffffff;
    color: #0e5c8a;
}
