/* === BLOG HERO SECTION === */
.blog-hero {
    background: linear-gradient(135deg, #0a1931 0%, #1e3a8a 50%, #2563eb 100%);
    padding: 80px 20px 60px 20px;
    text-align: center;
    position: relative;
    margin-top: 0;
    overflow: hidden;
}

.blog-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 30%, rgba(224, 194, 110, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(147, 197, 253, 0.2) 0%, transparent 50%),
        linear-gradient(45deg, transparent 40%, rgba(255,255,255,0.05) 50%, transparent 60%);
    animation: heroShimmer 8s ease-in-out infinite;
}

@keyframes heroShimmer {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.8; }
}

.blog-hero::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: repeating-linear-gradient(
        45deg,
        transparent,
        transparent 40px,
        rgba(255,255,255,0.02) 40px,
        rgba(255,255,255,0.02) 80px
    );
    animation: heroPattern 20s linear infinite;
}

@keyframes heroPattern {
    0% { transform: translate(-50%, -50%) rotate(0deg); }
    100% { transform: translate(-50%, -50%) rotate(360deg); }
}

.blog-hero .container {
    position: relative;
    z-index: 2;
    max-width: 800px;
}

.blog-hero-title {
    font-size: 3.5rem;
    font-weight: 900;
    color: #ffffff;
    margin-bottom: 1rem;
    line-height: 1.1;
    letter-spacing: -0.02em;
}

.blog-hero-subtitle {
    font-size: 1.25rem;
    color: #ffffff;
    margin-bottom: 0;
    line-height: 1.6;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    font-weight: 500;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .blog-hero {
        padding: 60px 20px 40px 20px;
    }
    
    .blog-hero-title {
        font-size: 2.5rem;
    }
    
    .blog-hero-subtitle {
        font-size: 1.1rem;
    }
}

@media (max-width: 480px) {
    .blog-hero {
        padding: 40px 15px 30px 15px;
    }
    
    .blog-hero-title {
        font-size: 2rem;
    }
    
    .blog-hero-subtitle {
        font-size: 1rem;
    }
}
/* === MATCH MAIN SITE HEADER === */
.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(10, 25, 49, 0.95);
    backdrop-filter: saturate(1.1) blur(6px);
    color: white;
}

/* Ensure header links and icons are visible on dark background */
.site-header a,
.site-header .menu a,
.site-header .header-social a {
    color: rgba(255,255,255,0.9);
    text-decoration: none;
    transition: color 0.3s;
}
.site-header a:hover,
.site-header .menu a:hover,
.site-header .header-social a:hover {
    color: #93c5fd;
}

/* Optional: adjust menu and avatar spacing to match main site */
.site-header .header-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0.75rem 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
}
.site-header .header-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
}
/* Author Info Box Styles */
.author-info-box {
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 1.5rem;
    margin: 2.5rem 0 1.5rem 0;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}
.author-avatar img, .author-info-box .avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    background: #fff;
    border: 2px solid #e0c26e;
}
.author-details {
    flex: 1;
}

.author-name {
    background: linear-gradient(135deg, #0a1931 0%, #1e3a8a 100%);
    color: white;
    padding: 80px 20px 40px 20px;
    text-align: center;
    position: relative;
    overflow: hidden;
    margin-top: 2.5rem;
    margin: 0;
    font-size: 3.5rem;
    font-weight: 900;
    margin-bottom: 1rem;
    z-index: 10;
}

/* === HEADER STYLES (Main Site Match) === */
/*
font-size: 1.25rem;
color: #c5d3ea;
position: relative;
z-index: 10;
max-width: 600px;
margin: 0.5rem auto 0 auto;
text-align: center;
width: 100%;
box-shadow: 0 2px 8px rgba(10,25,49,0.04);
backdrop-filter: blur(10px);
*/

.header-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0.75rem 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    position: relative;
}

.header-brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: white;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.2rem;
}

.header-brand a {
    color: white;
    text-decoration: none;
}

.header-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    background: #fff;
}

.header-title {
    font-weight: 700;
    letter-spacing: -0.02em;
    font-size: 1.1rem;
    color: white;
}

/* Header Navigation */
.header-nav {
    display: flex;
    align-items: center;
}

.header-nav .nav-menu {
    display: flex;
    gap: 2rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

.header-nav .nav-menu li {
    display: flex;
    align-items: center;
}

.header-nav .nav-menu a {
    color: #c5d3ea;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    transition: color 0.2s;
    padding: 0.5rem 0.75rem;
    border-radius: 6px;
}

.header-nav .nav-menu a:hover,
.header-nav .nav-menu .current-menu-item > a {
    color: #fff;
    background: rgba(255,255,255,0.08);
}

/* Social Media Links */
.header-social {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.header-social a {
    color: #c5d3ea;
    font-size: 1.2rem;
    transition: color 0.2s;
    padding: 0.25rem;
}

.header-social a:hover {
    color: #fff;
}

/* CTA Button */
.header-cta-btn {
    background: linear-gradient(180deg, #e0c26e, #b9912f);
    color: #0a1931;
    font-weight: 700;
    border-radius: 8px;
    padding: 0.5rem 1.25rem;
    text-decoration: none;
    box-shadow: 0 2px 8px rgba(185,145,47,0.08);
    transition: background 0.2s, color 0.2s, transform 0.2s;
    display: inline-block;
    white-space: nowrap;
}

.header-cta-btn:hover {
    background: #b9912f;
    color: #fff;
    transform: translateY(-2px);
}

/* Mobile Menu Toggle */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 4px;
    transition: background 0.2s;
}

.menu-toggle:hover {
    background: rgba(255,255,255,0.1);
}

/* Mobile Navigation Sheet */
.mobile-nav-sheet {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(10,25,49,0.98);
    z-index: 9999;
    padding-top: 80px;
    transition: opacity 0.2s;
}

.mobile-nav-sheet.open {
    display: block;
}

.mobile-nav-content {
    padding: 2rem;
}

.mobile-nav-menu {
    display: flex;
    flex-direction: column;
    gap: 0;
    list-style: none;
    margin: 0;
    padding: 0;
}

.mobile-nav-menu li {
    display: block;
}

.mobile-nav-menu a {
    color: #c5d3ea;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.2rem;
    padding: 1rem 0;
    display: block;
    border-bottom: 1px solid rgba(255,255,255,0.08);
    transition: color 0.2s;
}

.mobile-nav-menu a:hover,
.mobile-nav-menu .current-menu-item > a {
    color: #fff;
}

.mobile-cta {
    display: block;
    margin-top: 2rem;
    text-align: center;
    font-size: 1.1rem;
}

/* Override old header styles - REMOVED to allow new header styling */

/* === BASE STYLES === */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f8fafc;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
    color: #0a1931;
    margin-bottom: 1rem;
}

p {
h1 { font-size: 2rem; }
h2 { font-size: 1.5rem; }
h3 { font-size: 1.25rem; }
h4 { font-size: 1.1rem; }
h5 { font-size: 1rem; }
h6 { font-size: 0.95rem; }


    margin-bottom: 1.5rem;
    color: #4a5568;
    font-size: 1rem;
}
a {
    color: #2563eb;
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: #1d4ed8;
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* === BLOG LAYOUT === */
/* Main Layout */
.main-wrapper {
    background: linear-gradient(to bottom, #f8fafc, white);
    padding: 40px 20px;
}

.content-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    gap: 40px;
    align-items: flex-start;
}

.main-content {
    flex: 2;
    background: white;
    border-radius: 12px;
    padding: 40px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    border: 1px solid #e2e8f0;
}

.enhanced-sidebar {
    flex: 1;
    position: sticky;
    top: 24px;
}

/* Blog Grid Container */
.blog-grid-container {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 60px;
    margin-top: 60px;
}

/* Posts Grid */
.posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
    margin-bottom: 60px;
}

/* Post Cards */
.post-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    border: 1px solid #e2e8f0;
    transition: all 0.3s ease;
    height: fit-content;
}

.post-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.1);
}

.post-card-image {
    height: 200px;
    overflow: hidden;
    position: relative;
}

.post-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.post-card:hover .post-card-image img {
    transform: scale(1.05);
}

.post-card-content {
    padding: 24px;
}

.post-card-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
    font-size: 0.85rem;
    color: #64748b;
}

.post-date {
    font-weight: 500;
}

.post-category {
    background: rgba(10, 25, 49, 0.1);
    color: #0a1931;
    padding: 4px 8px;
    border-radius: 4px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.post-card-title {
    margin-bottom: 12px;
    font-size: 1.25rem;
    line-height: 1.3;
}

.post-card-title a {
    color: #0a1931;
    text-decoration: none;
    transition: color 0.3s ease;
}

.post-card-title a:hover {
    color: #2563eb;
}

.post-card-excerpt {
    color: #4a5568;
    line-height: 1.6;
    margin-bottom: 20px;
    font-size: 0.95rem;
}

.read-more-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, #0a1931 0%, #1e3a8a 100%);
    color: white;
    padding: 10px 20px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.read-more-btn:hover {
    transform: translateX(4px);
    box-shadow: 0 4px 12px rgba(10, 25, 49, 0.3);
}

/* === SINGLE POST STYLES === */
.post {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    border: 1px solid #e2e8f0;
    margin: 40px 0;
}

.featured-image-wrapper {
    width: 100%;
    margin: 0;
    padding: 0;
    position: relative;
}

.featured-image {
    width: 100%;
    height: 400px;
    overflow: hidden;
    position: relative;
    background: #f8fafc;
    margin-bottom: 2rem;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.featured-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
    transition: transform 0.3s ease;
}

.featured-image:hover img {
    transform: scale(1.02);
}

.post-wrapper {
    padding: 40px;
}

.post-header {
    margin-bottom: 2rem;
    border-bottom: 1px solid #e2e8f0;
    padding-bottom: 1.5rem;
}

.post-title {
    color: #0a1931;
    font-size: 2.5rem;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.post-meta {
    color: #64748b;
    font-size: 0.9rem;
    display: flex;
    gap: 1rem;
    align-items: center;
}

.post-meta span {
    position: relative;
}

.post-meta span:not(:last-child)::after {
    content: '•';
    margin-left: 1rem;
    color: #cbd5e1;
}

.post-content {
    font-size: 1.125rem;
    line-height: 1.8;
    color: #374151;
    margin-bottom: 2rem;
}

.post-content h2,
.post-content h3,
.post-content h4 {
    margin-top: 2rem;
    margin-bottom: 1rem;
    color: #0a1931;
}

.post-content p {
    margin-bottom: 1.5rem;
}

.post-content ul,
.post-content ol {
    margin-bottom: 1.5rem;
    padding-left: 2rem;
}

.post-content li {
    margin-bottom: 0.5rem;
}

/* Single Post CTA */
.single-book-cta {
    background: linear-gradient(135deg, #0a1931 0%, #1e3a8a 100%);
    color: white;
    padding: 30px;
    border-radius: 10px;
    text-align: center;
    margin: 30px 0;
}

.single-book-cta h3 {
    color: white;
    margin-bottom: 10px;
    font-size: 1.3rem;
}

.single-book-cta p {
    color: #c5d3ea;
    margin-bottom: 20px;
    font-size: 1rem;
}

.single-book-cta a {
    background: #fbbf24;
    color: #0a1931;
    padding: 15px 30px;
    border-radius: 8px;
    font-weight: bold;
    text-decoration: none;
    display: inline-block;
    transition: background 0.2s, color 0.2s;
    font-size: 1rem;
}

.single-book-cta a:hover {
    background: #f59e0b;
    color: #fff;
}

/* === SIDEBAR === */
.blog-sidebar {
    position: sticky;
    top: 100px;
    height: fit-content;
}

.sidebar-section {
    background: white;
    border-radius: 12px;
    padding: 24px;
    margin-bottom: 24px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    border: 1px solid #e2e8f0;
}

.sidebar-section h3 {
    color: #0a1931;
    font-size: 1.25rem;
    margin-bottom: 16px;
    padding-bottom: 8px;
    border-bottom: 2px solid #e2e8f0;
}

.sidebar-cta {
    background: linear-gradient(135deg, #0a1931 0%, #1e3a8a 100%);
    color: white;
    border-radius: 12px;
    padding: 24px;
    text-align: center;
    margin-bottom: 24px;
}

.sidebar-cta h3 {
    color: white;
    font-size: 20px;
    margin-bottom: 8px;
}

.sidebar-cta p {
    color: #c5d3ea;
    margin-bottom: 20px;
    font-size: 14px;
}

.cta-button {
    background: #fbbf24;
    color: #0a1931;
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 700;
    text-decoration: none;
    display: inline-block;
    transition: all 0.3s ease;
}

/* === FOOTER === */
.site-footer {
    background: linear-gradient(135deg, #0a1931 0%, #1e3a8a 100%);
    color: white;
    padding: 3rem 0 2rem;
    margin-top: 4rem;
    position: relative;
}

.footer-content {
    text-align: center;
}

.footer-content p {
    color: #c5d3ea;
    margin-bottom: 1rem;
}

.footer-links {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 2rem;
    text-align: center;
    padding: 0;
}

.footer-links ul {
    display: flex;
    gap: 0;
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    display: flex;
    align-items: center;
    padding: 0 0.5rem;
    font-size: 1rem;
    position: relative;
}

.footer-links li:not(:last-child)::after {
    content: '|';
    color: #93c5fd;
    margin-left: 0.5rem;
    margin-right: 0.5rem;
    font-weight: 400;
    opacity: 0.7;
}

.footer-links a {
    color: #93c5fd;
    font-weight: 600;
    transition: color 0.3s ease;
    text-decoration: none;
    padding: 0 0.25rem;
}

.footer-links a:hover {
    color: #fff;
}

/* === RESPONSIVE STYLES === */
@media (max-width: 1200px) {
    .header-inner {
        padding: 0.75rem 1rem;
    }
    
    .header-nav .nav-menu {
        gap: 1.5rem;
    }
}

@media (max-width: 1024px) {
    .header-nav {
        display: none;
    }
    
    .header-cta-btn {
        display: none;
    }
    
    .menu-toggle {
        display: block;
    }
    
    .header-social {
        gap: 0.75rem;
    }
    
    .header-social a {
        font-size: 1.1rem;
    }
    
    .blog-grid-container {
        display: flex;
        flex-direction: column;
        gap: 40px;
    }
    
    .posts-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        gap: 30px;
    }
    
    .blog-sidebar {
        position: static;
        width: 100%;
        margin-top: 0;
    }
}

@media (max-width: 900px) {
    .content-container {
        flex-direction: column;
        gap: 24px;
    }
    
    .main-content {
        padding: 24px;
    }
    
    .enhanced-sidebar {
        position: static;
    }
    
    .blog-grid-container {
        display: flex;
        flex-direction: column;
        gap: 24px;
        margin-top: 40px;
    }
    
    .blog-sidebar {
        display: block !important;
        width: 100%;
        margin-top: 0;
    }
    
    .posts-grid {
        grid-template-columns: 1fr !important;
        gap: 24px !important;
    }
}

@media (max-width: 768px) {
    .header-inner {
        padding: 0.5rem 1rem;
        gap: 1rem;
    }
    
    .header-brand {
        gap: 0.5rem;
        font-size: 1rem;
    }
    
    .header-avatar {
        width: 35px;
        height: 35px;
    }
    
    .header-title {
        font-size: 1rem;
    }
    
    .header-social {
        gap: 0.5rem;
    }
    
    .header-social a {
        font-size: 1rem;
    }
    
    .container {
        padding: 0 15px;
    }
    
    .post-wrapper {
        padding: 24px;
    }
    
    .post-title {
        font-size: 2rem;
    }
    
    .featured-image {
        height: 250px;
    }
    
    .post-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
    
    .post-meta span:not(:last-child)::after {
        display: none;
    }
    
    .post-card-content {
        padding: 20px;
    }
    
    .site-footer {
        margin-top: 2rem;
    }
}

@media (max-width: 600px) {
    .header-inner {
        padding: 0.5rem 0.75rem;
    }
    
    .mobile-nav-content {
        padding: 1.5rem 1rem;
    }
    
    .mobile-cta {
        margin-top: 1.5rem;
    }
    
    .single-container {
        padding: 20px 5px;
    }
    
    .single-book-cta {
        padding: 18px 8px;
        margin: 20px 0;
    }
    
    .single-book-cta h3 {
        font-size: 1.1rem;
    }
    
    .single-book-cta a {
        padding: 12px 18px;
        font-size: 0.95rem;
    }
    
    .post-title {
        font-size: 1.5rem !important;
    }
    
    .featured-image {
        height: 180px !important;
    }
    
    .post-wrapper {
        padding: 12px !important;
    }
}

@media (max-width: 480px) {
    .featured-image {
        height: 200px;
    }
    
    .post-title {
        font-size: 1.75rem;
    }
    
    .post-card-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
    
    .site-footer {
        margin-top: 1rem;
    }
    
    .blog-grid-container {
        gap: 16px;
    }
}

/* Menu open body overlay */
body.menu-open::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0,0,0,0.4);
    z-index: 9998;
}