
/* ============================================
   BLOG PAGE - MODERN CLASSIC REDESIGN
   Colors: Gold #D2AE6D, Navy Blue #004790
   Fonts: Toroka Wide (headings), Toroka Normal (body)
   Inspired by programs.php structure
============================================ */
:root {
    --gold: #D2AE6D;
    --navy: #004790;
    --navy-dark: #003366;
    --navy-light: #2A6BB0;
    --white: #FFFFFF;
    --off-white: #F8F9FA;
    --light-gray: #E9ECEF;
    --medium-gray: #6C757D;
    --dark-gray: #343A40;
   
    --heading-font: 'Toroka Wide', serif;
    --body-font: 'Toroka Normal', sans-serif;
   
    --shadow-sm: 0 2px 4px rgba(0,0,0,0.1);
    --shadow-md: 0 4px 12px rgba(0,0,0,0.15);
    --shadow-lg: 0 8px 30px rgba(0,0,0,0.2);
    --shadow-gold: 0 4px 20px rgba(210, 174, 109, 0.3);
   
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 16px;
    --radius-xl: 24px;
   
    --transition: all 0.3s ease;
    --transition-slow: all 0.5s ease;
}
/* Hero Section */
.blog-hero {
    background: linear-gradient(135deg, var(--navy) 0%, var(--navy-dark) 100%);
    padding: 8rem 0 4rem;
    position: relative;
    overflow: hidden;
    color: var(--white);
    margin-bottom: 4rem;
}
.blog-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--gold), var(--navy-light), var(--gold));
}
.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}
.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    background: rgba(210, 174, 109, 0.15);
    color: var(--gold);
    padding: 0.75rem 2rem;
    border-radius: 50px;
    font-family: var(--body-font);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 2rem;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(210, 174, 109, 0.3);
}
.hero-badge svg {
    width: 20px;
    height: 20px;
}
.blog-hero h1 {
    font-family: var(--heading-font);
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    background: linear-gradient(135deg, var(--white), rgba(255, 255, 255, 0.9));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1.2;
}
.hero-subtitle {
    font-size: 1.25rem;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 3rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}
/* Blog Content Layout */
.blog-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}
.blog-layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: 4rem;
    margin-bottom: 6rem;
}
@media (min-width: 992px) {
    .blog-layout {
        grid-template-columns: 1fr 350px;
        gap: 4rem;
    }
}
/* Main Blog Grid */
.blog-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2.5rem;
    margin-bottom: 3rem;
}
@media (min-width: 768px) {
    .blog-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 2.5rem;
    }
}
@media (min-width: 1200px) {
    .blog-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}
/* Blog Card - Modern Design */
.blog-card {
    background: var(--white);
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    transition: var(--transition);
    height: 100%;
    display: flex;
    flex-direction: column;
    border: 1px solid var(--light-gray);
    position: relative;
}
.blog-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-gold);
    border-color: var(--gold);
}
.blog-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--gold), var(--navy-light));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease;
}
.blog-card:hover::before {
    transform: scaleX(1);
}
.post-image {
    height: 220px;
    width: 100%;
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, var(--navy) 0%, var(--navy-dark) 100%);
}
.post-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-slow);
}
.blog-card:hover .post-image img {
    transform: scale(1.05);
}
.image-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.7));
    padding: 1.5rem;
    color: var(--white);
    transform: translateY(100%);
    transition: var(--transition);
}
.blog-card:hover .image-overlay {
    transform: translateY(0);
}
.post-category {
    display: inline-block;
    background: var(--gold);
    color: var(--navy);
    padding: 0.25rem 1rem;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0.5rem;
}
.post-date {
    font-size: 0.875rem;
    opacity: 0.9;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.post-date svg {
    width: 16px;
    height: 16px;
}
.post-content {
    padding: 2rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}
.post-title {
    font-family: var(--heading-font);
    font-size: 1.5rem;
    color: var(--navy);
    margin-bottom: 1rem;
    line-height: 1.3;
    font-weight: 600;
}
.post-title a {
    color: inherit;
    text-decoration: none;
    transition: var(--transition);
    display: block;
}
.post-title a:hover {
    color: var(--gold);
}
.post-excerpt {
    color: var(--medium-gray);
    line-height: 1.6;
    margin-bottom: 1.5rem;
    flex: 1;
    font-size: 1rem;
}
.post-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 1.5rem;
    border-top: 1px solid var(--light-gray);
}
.read-more {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--navy);
    text-decoration: none;
    font-weight: 600;
    padding: 0.5rem 1rem;
    border-radius: var(--radius-md);
    background: var(--off-white);
    transition: var(--transition);
    font-size: 0.875rem;
}
.read-more:hover {
    background: var(--gold);
    color: var(--navy);
    transform: translateX(5px);
}
.read-more svg {
    width: 16px;
    height: 16px;
    transition: var(--transition);
}
.read-more:hover svg {
    transform: translateX(3px);
}
.read-time {
    font-size: 0.875rem;
    color: var(--medium-gray);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.read-time svg {
    width: 16px;
    height: 16px;
    color: var(--gold);
}
/* Empty State */
.empty-state {
    text-align: center;
    padding: 4rem 2rem;
    background: var(--off-white);
    border-radius: var(--radius-xl);
    border: 2px dashed var(--light-gray);
    margin: 4rem auto;
    max-width: 600px;
}
.empty-state-icon {
    font-size: 4rem;
    color: var(--gold);
    margin-bottom: 1.5rem;
    opacity: 0.5;
}
.empty-state h3 {
    font-family: var(--heading-font);
    color: var(--navy);
    margin-bottom: 1rem;
    font-size: 1.75rem;
}
.empty-state p {
    color: var(--medium-gray);
    margin-bottom: 2rem;
    line-height: 1.6;
}
/* Sidebar */
.blog-sidebar {
    background: var(--off-white);
    border-radius: var(--radius-xl);
    padding: 2.5rem;
    border: 1px solid var(--light-gray);
    height: fit-content;
    position: sticky;
    top: 2rem;
}
.sidebar-section {
    margin-bottom: 2.5rem;
}
.sidebar-section:last-child {
    margin-bottom: 0;
}
.sidebar-title {
    font-family: var(--heading-font);
    color: var(--navy);
    font-size: 1.25rem;
    margin-bottom: 1.5rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid var(--gold);
    display: flex;
    align-items: center;
    gap: 0.75rem;
}
.sidebar-title svg {
    width: 20px;
    height: 20px;
    color: var(--gold);
}
/* Categories Widget */
.categories-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}
.category-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 1rem;
    background: var(--white);
    border-radius: var(--radius-md);
    border: 1px solid var(--light-gray);
    transition: var(--transition);
    text-decoration: none;
    color: var(--dark-gray);
}
.category-item:hover {
    border-color: var(--gold);
    background: rgba(210, 174, 109, 0.05);
    transform: translateX(5px);
}
.category-name {
    font-weight: 500;
}
.category-count {
    background: var(--navy);
    color: var(--white);
    padding: 0.25rem 0.75rem;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 600;
    min-width: 30px;
    text-align: center;
}
/* Featured Posts */
.featured-posts {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}
.featured-post {
    display: flex;
    gap: 1rem;
    padding: 1rem;
    background: var(--white);
    border-radius: var(--radius-md);
    border: 1px solid var(--light-gray);
    transition: var(--transition);
    text-decoration: none;
    color: inherit;
}
.featured-post:hover {
    border-color: var(--gold);
    transform: translateY(-3px);
}
.featured-post-image {
    width: 80px;
    height: 80px;
    flex-shrink: 0;
    border-radius: var(--radius-sm);
    overflow: hidden;
    background: linear-gradient(135deg, var(--navy) 0%, var(--navy-dark) 100%);
}
.featured-post-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.featured-post-content h4 {
    font-size: 0.875rem;
    color: var(--navy);
    margin-bottom: 0.5rem;
    line-height: 1.4;
    font-weight: 600;
}
.featured-post-date {
    font-size: 0.75rem;
    color: var(--medium-gray);
    display: flex;
    align-items: center;
    gap: 0.25rem;
}
.featured-post-date svg {
    width: 12px;
    height: 12px;
}
/* Newsletter Widget */
.newsletter-widget {
    background: linear-gradient(135deg, var(--navy) 0%, var(--navy-dark) 100%);
    color: var(--white);
    padding: 2rem;
    border-radius: var(--radius-lg);
    text-align: center;
    position: relative;
    overflow: hidden;
}
.newsletter-widget::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gold);
}
.newsletter-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: var(--gold);
}
.newsletter-widget h4 {
    color: var(--white);
    margin-bottom: 0.75rem;
    font-size: 1.25rem;
}
.newsletter-widget p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.875rem;
    margin-bottom: 1.5rem;
    line-height: 1.5;
}
.newsletter-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}
.newsletter-input {
    padding: 0.75rem 1rem;
    border-radius: var(--radius-md);
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.1);
    color: var(--white);
    font-family: var(--body-font);
    font-size: 0.875rem;
    transition: var(--transition);
}
.newsletter-input:focus {
    outline: none;
    border-color: var(--gold);
    background: rgba(255, 255, 255, 0.15);
}
.newsletter-input::placeholder {
    color: rgba(255, 255, 255, 0.7);
}
.newsletter-form .btn {
    width: 100%;
    background: var(--gold);
    color: var(--navy);
    border: none;
    padding: 0.75rem 1rem;
    font-weight: 600;
    transition: var(--transition);
}
.newsletter-form .btn:hover {
    background: var(--white);
    transform: translateY(-2px);
}
/* Pagination */
.blog-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    margin: 4rem 0;
    padding: 2rem 0;
    border-top: 1px solid var(--light-gray);
    border-bottom: 1px solid var(--light-gray);
}
.pagination-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    height: 44px;
    padding: 0 1rem;
    background: var(--white);
    border: 2px solid var(--light-gray);
    border-radius: var(--radius-md);
    color: var(--navy);
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
}
.pagination-link:hover {
    border-color: var(--gold);
    background: rgba(210, 174, 109, 0.05);
    transform: translateY(-2px);
}
.pagination-link.active {
    background: var(--gold);
    color: var(--navy);
    border-color: var(--gold);
}
.pagination-link.disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none !important;
}
.pagination-link.disabled:hover {
    border-color: var(--light-gray);
    background: var(--white);
}
/* Responsive Design */
@media (max-width: 1024px) {
    .blog-hero h1 {
        font-size: 3rem;
    }
   
    .blog-layout {
        gap: 3rem;
    }
}
@media (max-width: 768px) {
    .blog-hero {
        padding: 6rem 0 3rem;
    }
   
    .blog-hero h1 {
        font-size: 2.5rem;
    }
   
    .hero-subtitle {
        font-size: 1.125rem;
    }
   
    .blog-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
   
    .blog-layout {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
   
    .blog-sidebar {
        position: static;
    }
}
@media (max-width: 480px) {
    .blog-hero h1 {
        font-size: 2rem;
    }
   
    .blog-container {
        padding: 0 1rem;
    }
   
    .post-content {
        padding: 1.5rem;
    }
   
    .post-title {
        font-size: 1.25rem;
    }
   
    .blog-pagination {
        flex-wrap: wrap;
    }
   
    .pagination-link {
        min-width: 36px;
        height: 36px;
        padding: 0 0.75rem;
        font-size: 0.875rem;
    }
}
/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
.fade-in-up {
    animation: fadeInUp 0.6s ease forwards;
}
.reveal {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.active {
    opacity: 1;
    transform: translateY(0);
}
/* Print Styles */
@media print {
    .blog-hero {
        background: none;
        color: var(--dark-gray);
        padding: 2rem 0;
    }
   
    .blog-hero h1 {
        background: none;
        -webkit-text-fill-color: var(--navy);
    }
   
    .blog-sidebar,
    .empty-state {
        display: none;
    }
   
    .blog-card {
        break-inside: avoid;
        box-shadow: none;
        border: 2px solid var(--gold);
    }
}


/* 2026 dedicated editorial composition */
.page-blog{--blog-ink:#082a47;--blog-blue:#004790;--blog-deep:#03223e;--blog-gold:#d2ae6d;--blog-paper:#f4f1e8;--blog-line:#d5dfe5;color:#465d70;background:var(--blog-paper)}
.page-blog .blog-hero{padding:calc(var(--fog-header-h,76px) + 85px) 0 105px;text-align:left;background:var(--blog-deep)}
.page-blog .blog-hero .hero-content{max-width:850px;margin:0;text-align:left}.page-blog .hero-badge{padding:0;color:#efd58b;background:none;border:0;letter-spacing:.14em}.page-blog .blog-hero h1{margin:22px 0;color:#fff;background:none;-webkit-text-fill-color:currentColor;font-size:clamp(3.3rem,7vw,6.7rem);letter-spacing:-.06em;line-height:.92}.page-blog .hero-subtitle{max-width:680px;margin:0;color:#c5d4df}.page-blog .blog-container{width:min(1180px,calc(100% - 40px));margin:0 auto;padding:95px 0}.page-blog .blog-layout{grid-template-columns:minmax(0,1.4fr) minmax(280px,.6fr);gap:45px}.page-blog .blog-grid{grid-template-columns:repeat(2,1fr);gap:18px}.page-blog .blog-card{border:1px solid var(--blog-line);border-radius:0;box-shadow:none}.page-blog .blog-card:hover{transform:none;box-shadow:0 18px 45px rgba(8,42,71,.09)}.page-blog .post-image{border-radius:0;aspect-ratio:16/10}.page-blog .post-content{padding:26px}.page-blog .post-title{font-size:1.35rem}.page-blog .post-category{color:var(--blog-deep);background:var(--blog-gold)}.page-blog .post-image-placeholder{height:100%;display:grid;place-items:center;color:#fff;background:var(--blog-deep)}.page-blog .post-image-placeholder span{font:700 3rem var(--fog-font-display,serif)}.page-blog .featured-image-placeholder{width:100%;height:100%;background:var(--blog-deep)}.page-blog .blog-sidebar{position:sticky;top:100px}.page-blog .sidebar-section{padding:27px;border:0;border-top:1px solid var(--blog-line);border-radius:0;background:transparent;box-shadow:none}.page-blog .sidebar-title{font-size:1.1rem}.page-blog .newsletter-widget{padding:25px;border-radius:0;background:var(--blog-deep)}.page-blog .newsletter-widget h3{color:#fff}.page-blog .newsletter-widget p{color:#bdced9}.page-blog .newsletter-icon .fog-i,.page-blog .empty-state-icon .fog-i{width:25px}.page-blog .blog-pagination{border-radius:0}.page-blog :focus-visible{outline:3px solid var(--blog-gold);outline-offset:3px}@media(max-width:900px){.page-blog .blog-layout{grid-template-columns:1fr}.page-blog .blog-sidebar{position:static}}@media(max-width:620px){.page-blog .blog-container{width:calc(100% - 28px);padding:70px 0}.page-blog .blog-grid{grid-template-columns:1fr}.page-blog .blog-hero{padding:calc(var(--fog-header-h,66px) + 55px) 0 70px}.page-blog .blog-hero h1{font-size:clamp(2.8rem,14vw,4.4rem)}}
