/* ===== BLOG PAGE STYLES ===== */

/* Color Variables (matching home page) */
:root {
    --pine:    #071c0f;
    --forest:  #0e2d1a;
    --canopy:  #143d22;
    --grass:   #2d7a4f;
    --cream:   #f5ede0;
    --buff:    #e8ddd0;
    --gold:    #c8923a;
    --gold-lt: #e8b458;
    --white:   #ffffff;
    --text-dark: #1a1a1a;
    --text-light: #666666;
    --border-color: #e0e0e0;
    --shadow-large: 0 10px 30px rgba(0,0,0,0.1);
}

/* Navigation (matching home page) */
.navbar {
    position: fixed; top: 0; left: 0; right: 0;
    z-index: 1000;
    background: var(--white);
    padding: 1.5rem 2.5rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.navbar.scrolled {
    background: rgba(255,255,255,.98);
    backdrop-filter: blur(16px);
    box-shadow: 0 4px 16px rgba(0,0,0,0.08);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.logo img {
    height: 38px;
    display: block;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 2rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-menu a {
    font-size: .8rem;
    font-weight: 500;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--text-dark);
    text-decoration: none;
    transition: color .2s;
}

.nav-menu a:hover {
    color: var(--gold);
}

.nav-cta {
    background: var(--gold) !important;
    color: var(--white) !important;
    padding: .55rem 1.3rem;
    border-radius: 2px;
    font-weight: 600 !important;
    transition: background .2s !important;
}

.nav-cta:hover {
    background: var(--gold-lt) !important;
}

.nav-dropdown {
    position: relative;
}

.nav-dropdown::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    height: 12px;
    pointer-events: auto;
}

.dropdown-menu {
    position: absolute;
    top: calc(100% + 0px);
    left: 0;
    background: var(--white);
    border: 1px solid var(--border-color);
    list-style: none;
    padding: 8px 0;
    margin-top: 0;
    min-width: 200px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.1);
    display: none;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.nav-dropdown:hover .dropdown-menu {
    display: block;
    opacity: 1;
    visibility: visible;
}

.dropdown-menu li {
    padding: 0;
}

.dropdown-menu a {
    display: block;
    padding: 10px 20px;
    color: var(--text-dark);
    text-transform: none;
    font-size: .9rem;
    letter-spacing: normal;
    font-weight: 400;
}

.dropdown-menu a:hover {
    background: var(--cream);
    color: var(--gold);
}

.nav-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    background: none;
    border: none;
    gap: 4px;
}

.nav-toggle span {
    width: 25px;
    height: 2px;
    background: var(--text-dark);
    transition: all .3s;
}

/* Blog article background */
.blog-article {
    background: var(--white);
}

.blog-container {
    background: var(--white);
}

.blog-hero {
    position: relative;
    background: linear-gradient(135deg, var(--primary-blue), #1a4d7a);
    background-size: cover;
    background-position: center;
    color: var(--white);
    padding: 80px 20px;
    text-align: center;
    min-height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.blog-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(14, 45, 84, 0.6);
    z-index: 1;
}

.blog-hero h1 {
    position: relative;
    z-index: 2;
    font-size: 48px;
    font-weight: 800;
    color: var(--primary-gold);
    margin-bottom: 15px;
}

.blog-hero p {
    position: relative;
    z-index: 2;
    font-size: 20px;
    opacity: 0.95;
}

.blog-hero .hero-content {
    position: relative;
    z-index: 2;
}

/* ===== BLOG CONTAINER ===== */
.blog-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 60px 20px;
}

/* ===== BLOG INDEX ===== */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 30px;
    margin-bottom: 60px;
}

.blog-card {
    background: var(--white);
    border-radius: 0;
    box-shadow: none;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border-top: 3px solid var(--primary-gold);
    cursor: pointer;
    display: block;
    text-decoration: none;
    color: inherit;
}

.blog-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-large);
}

.blog-card-content {
    padding: 30px;
}

.blog-card h3 {
    color: var(--primary-blue);
    font-size: 22px;
    margin-bottom: 12px;
    line-height: 1.4;
}

.blog-card .blog-excerpt {
    color: var(--text-light);
    font-size: 15px;
    line-height: 1.6;
    margin-bottom: 20px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.blog-card .blog-meta {
    font-size: 13px;
    color: var(--text-light);
    margin-bottom: 15px;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 15px;
}

.blog-card .read-more {
    display: inline-block;
    color: var(--white);
    background: var(--primary-gold);
    font-weight: 700;
    text-decoration: none;
    padding: 10px 20px;
    margin-top: 15px;
    transition: background 0.3s ease;
}

.blog-card .read-more:hover {
    background: #b8881f;
}

/* ===== BLOG POST ARTICLE ===== */
.blog-article {
    background: var(--white);
    border-radius: 0;
    box-shadow: none;
    padding: 50px;
}

.blog-article-header {
    margin-bottom: 40px;
    border-bottom: 2px solid var(--border-color);
    padding-bottom: 30px;
}

.blog-article-header h1 {
    color: var(--primary-blue);
    font-size: 42px;
    margin-bottom: 12px;
    line-height: 1.3;
}

.blog-article-subtitle {
    color: var(--text-light);
    font-size: 18px;
    font-style: italic;
    margin-bottom: 15px;
}

.blog-article-meta {
    color: var(--text-light);
    font-size: 14px;
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.blog-article-content {
    color: var(--text-dark);
    line-height: 1.8;
    font-size: 16px;
}

.blog-article-content h2 {
    color: var(--primary-blue);
    font-size: 28px;
    margin-top: 40px;
    margin-bottom: 20px;
    border-bottom: 2px solid var(--primary-gold);
    padding-bottom: 10px;
}

.blog-article-content h3 {
    color: var(--primary-blue);
    font-size: 22px;
    margin-top: 30px;
    margin-bottom: 15px;
}

.blog-article-content h4 {
    color: var(--primary-blue);
    font-size: 18px;
    margin-top: 20px;
    margin-bottom: 10px;
}

.blog-article-content p {
    margin-bottom: 15px;
}

.blog-article-content strong {
    color: var(--primary-blue);
    font-weight: 700;
}

.blog-article-content em {
    color: var(--primary-gold);
    font-style: italic;
}

.blog-article-content ul,
.blog-article-content ol {
    margin-left: 25px;
    margin-bottom: 20px;
}

.blog-article-content li {
    margin-bottom: 10px;
    line-height: 1.8;
}

.blog-article-content blockquote {
    border-left: 4px solid var(--primary-gold);
    padding-left: 20px;
    margin: 30px 0;
    color: var(--text-light);
    font-style: italic;
}

.blog-article-content hr {
    border: none;
    border-top: 2px solid var(--border-color);
    margin: 40px 0;
}

/* ===== BLOG SIDEBAR ===== */
.blog-sidebar-box {
    background: var(--light-bg);
    border-left: 4px solid var(--primary-gold);
    padding: 25px;
    border-radius: 0;
    margin: 40px 0;
}

.blog-sidebar-box h4 {
    color: var(--primary-blue);
    font-size: 16px;
    margin-bottom: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.blog-sidebar-box p {
    color: var(--text-light);
    font-size: 14px;
    line-height: 1.6;
}

/* ===== RELATED POSTS ===== */
.related-posts {
    background: var(--light-bg);
    padding: 40px;
    border-radius: 0;
    margin-top: 60px;
    border-top: 3px solid var(--primary-gold);
}

.related-posts h3 {
    color: var(--primary-blue);
    font-size: 24px;
    margin-bottom: 30px;
}

.related-posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.related-post-item {
    background: var(--white);
    padding: 20px;
    border-radius: 0;
    border-left: 3px solid var(--primary-gold);
}

.related-post-item h4 {
    color: var(--primary-blue);
    font-size: 16px;
    margin-bottom: 10px;
    line-height: 1.4;
}

.related-post-item a {
    display: inline-block;
    color: var(--primary-blue);
    font-weight: 700;
    text-decoration: none;
    margin-top: 10px;
    transition: color 0.3s ease;
}

.related-post-item a:hover {
    color: var(--primary-gold);
}

/* ===== BLOG BREADCRUMB ===== */
.blog-breadcrumb {
    margin-bottom: 30px;
    font-size: 14px;
    color: var(--text-light);
}

.blog-breadcrumb a {
    color: var(--primary-blue);
    text-decoration: none;
    transition: color 0.3s ease;
}

.blog-breadcrumb a:hover {
    color: var(--primary-gold);
}

/* ===== BLOG NAVIGATION ===== */
.blog-navigation {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin-top: 60px;
    padding-top: 30px;
    border-top: 2px solid var(--border-color);
}

.prev-post,
.next-post {
    text-decoration: none;
    color: inherit;
    transition: transform 0.3s ease;
}

.prev-post:hover,
.next-post:hover {
    transform: translateX(-5px);
}

.next-post:hover {
    transform: translateX(5px);
}

.prev-post h4,
.next-post h4 {
    color: var(--primary-blue);
    font-size: 14px;
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.prev-post p,
.next-post p {
    color: var(--text-light);
    font-size: 16px;
    line-height: 1.4;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    .blog-article {
        padding: 30px 20px;
    }

    .blog-article-header h1 {
        font-size: 32px;
    }

    .blog-article-content h2 {
        font-size: 24px;
    }

    .blog-navigation {
        grid-template-columns: 1fr;
    }

    .blog-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .blog-hero h1 {
        font-size: 32px;
    }

    .blog-article {
        padding: 20px 15px;
    }

    .blog-article-header h1 {
        font-size: 26px;
    }

    .blog-article-content h2 {
        font-size: 20px;
    }
}
