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

/* Blog page theme overrides */
.blog-page {
    background: #FFFFFF;
    min-height: 100vh;
}

.blog-page body {
    background: #FFFFFF;
    color: #000000;
}

/* Header for light theme */
.blog-page .site-header {
    background: #FFFFFF;
    border-bottom: 0.3px solid #00000020;
}

.blog-page .logo-main {
    color: #000000;
}

.blog-page .logo-accent {
    color: var(--accent-primary);
}

.blog-page .nav-link {
    color: #000000;
}

.blog-page .hamburger-line {
    background-color: #000000;
}

/* Blog header section */
.blog-hero {
    margin: 2rem auto 3rem;
    max-width: 1500px;
}

.blog-meta {
    font-family: 'DM Sans', sans-serif;
    font-size: 18px;
    margin-bottom: 1rem;
    font-weight: 400;
}

.blog-headline {
    font-family: 'Impact', Arial Black, sans-serif;
    font-size: 180px;
    font-weight: 600;
    line-height: 0.9;
    color: #000000;
    margin-bottom: 2rem;
    text-transform: uppercase;
}

.blog-headline .ai-accent {
    color: #0066FF;
}

.blog-subheading {
    font-family: 'DM Serif Text', serif;
    font-size: 36px;
    font-weight: 400;
    color: #000000;
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.blog-subheading .together-accent {
    color: #0066FF;
}

.blog-intro {
    font-family: 'DM Sans', sans-serif;
    font-size: 16px;
    color: #000000;
    line-height: 1.6;
    max-width: 600px;
}

.blog-tagline {
    font-family: 'DM Sans', sans-serif;
    font-size: 16px;
    color: #666666;
    font-style: italic;
    max-width: 400px;
    margin: 0 auto;
}

/* Main content area */
.blog-main {
    margin: 0 auto 5.5rem;
    padding: 0 5.5rem;
    display: flex;
    justify-content: center;
}

.blog-content {
    max-width: 1500px;
    width: 100%;
    display: flex;
    justify-content: center;
}

/* Blog post card - Matching edu page layout */
.blog-card {
    background: var(--bg-light-accent);
    border-radius: 16px;
    overflow: hidden;
    display: flex;
    flex-direction: row;
    /* max-width: 1200px; */
    margin: 0 auto;
}

.blog-card .content-wrapper {
    gap: 0.5rem;
    padding: 3rem 3rem 3rem 3rem;
}

/* .blog-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
} */

.card-image {
    flex: 0.8;
    min-height: 400px;
    overflow: hidden;
}

.card-image .featured-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.card-content {
    flex: 1;
    display: flex;
    align-items: center;
    padding: 2rem;
}

.content-wrapper {
    width: 100%;
}

.blog-card-meta {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.blog-tag {
    background: #4CAF50;
    color: #FFFFFF;
    font-family: 'DM Sans', sans-serif;
    font-size: 12px;
    font-weight: 500;
    padding: 4px 12px;
    border-radius: 20px;
    text-transform: lowercase;
}

.read-time {
    font-family: 'DM Sans', sans-serif;
    font-size: 14px;
    color: #666666;
    background: #FFFFFF;
    padding: 4px 12px;
    border-radius: 20px;
    border: 1px solid #E0E0E0;
}

.blog-card-title {
    font-family: 'DM Serif Text', serif;
    font-size: 28px;
    font-weight: 400;
    color: #000000;
    margin-bottom: 0.5rem;
    line-height: 1.3;
}

.blog-card-title a {
    color: #000000;
    text-decoration: none;
    transition: color 0.3s ease;
}

.blog-card-title a:hover {
    color: #0066FF;
}

.blog-card-date {
    font-family: 'DM Sans', sans-serif;
    font-size: 14px;
    color: #999999;
    margin-bottom: 1rem;
}

.blog-card-excerpt {
    font-family: 'DM Sans', sans-serif;
    font-size: 16px;
    color: #333333;
    line-height: 1.5;
    margin-bottom: 1.5rem;
    flex: 1;
}

.read-more-container {
    display: flex;
    justify-content: flex-end;
}

.read-more-btn {
    background: #4CAF50;
    color: #FFFFFF;
    font-family: 'DM Sans', sans-serif;
    font-size: 16px;
    font-weight: 500;
    padding: 12px 24px;
    border: none;
    border-radius: 25px;
    text-decoration: none;
    display: inline-block;
    transition: all 0.3s ease;
}

.read-more-btn:hover {
    background: #45a049;
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(76, 175, 80, 0.3);
}

/* Color palette */
.color-palette {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin: 3rem auto 0;
    max-width: 1200px;
    padding: 0 2rem;
}

.color-swatch {
    width: 80px;
    height: 80px;
    border-radius: 12px;
}

.swatch-black {
    background: #000000;
}

.swatch-blue {
    background: #0066FF;
}

.swatch-light-blue {
    background: #E8F1FF;
}

/* Blog footer */
.blog-page .site-footer {
    background: #0066FF;
    color: #FFFFFF;
    min-height: 50vh;
    display: flex;
    align-items: center;
    padding: 4rem 0;
}

.blog-footer-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: grid;
    grid-template-columns: 1fr 1fr 1fr 1fr;
    gap: 3rem;
    width: 100%;
}

.footer-brand-blog {
    grid-column: 1 / 2;
}

.footer-brand-blog .footer-logo {
    font-family: 'DM Serif Text', serif;
    font-size: 2rem;
    font-weight: 400;
    margin-bottom: 1rem;
    color: #FFFFFF;
}

.footer-brand-blog .footer-description {
    font-family: 'DM Sans', sans-serif;
    font-size: 16px;
    color: #CCCCCC;
    line-height: 1.5;
}

.footer-section {
    display: flex;
    flex-direction: column;
}

.footer-section h3 {
    font-family: 'DM Sans', sans-serif;
    font-size: 18px;
    font-weight: 600;
    color: #FFFFFF;
    margin-bottom: 1rem;
}

.footer-section ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-section li {
    margin-bottom: 0.5rem;
}

.footer-social {
    display: flex;
    gap: 1rem;
}

.footer-social a {
    color: var(--text-dark-secondary);
    transition: unset;
}


.social-link:hover i {
    color: #FFFFFF !important;
}

/* ==============================================
   BLOG PAGE RESPONSIVE DESIGN  
   ============================================== */
@media (max-width: 1600px) {
    .blog-hero {
        margin: 2rem 5.5rem 3rem;
    }
}

@media (max-width: 900px) {
    .blog-hero {
        margin: 2rem 1rem;
    }
    
    .blog-headline {
        font-size: 120px;
    }

    .blog-subheading {
        font-size: 32px;
    }

    .blog-card {
        flex-direction: column;
    }

    .card-image {
        flex: none;
        min-height: 250px;
    }

    .blog-footer-content {
        grid-template-columns: 1fr 1fr;
        gap: 2rem;
    }
}

@media (max-width: 600px) {
    .blog-headline {
        font-size: 80px;
    }

    .blog-subheading {
        font-size: 24px;
    }

    .blog-main {
        padding: 0 1rem 2rem;
    }

    .blog-card {
        padding: 1.5rem;
    }

    .blog-footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
        padding: 0 1rem;
    }

    .color-palette {
        padding: 0 1rem;
    }

    .color-swatch {
        width: 60px;
        height: 60px;
    }
}

/* ==============================================
   LEGACY BLOG STYLES (existing)
   ============================================== */

/* Light theme color overrides */
:root {
    --bg-primary: var(--color-white);
    --bg-secondary: #f8f9fa;
    --footer-bg: #F7F7F7;
    --text-primary: #000000;
    --text-secondary: rgba(0, 0, 0, 0.6);
    --text-tertiary: var(--text-light-tertiary);
    --accent-primary: var(--color-blue);
    --accent-secondary: var(--color-green);
}

/* Blog specific components */
.blog-post-card {
    background: var(--bg-primary);
    border: 1px solid #e1e5e9;
    border-radius: 16px;
    padding: 0;
    margin-bottom: 2rem;
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    overflow: hidden;
}

.blog-post-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.blog-card-content {
    padding: 2rem;
}

.blog-highlight-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
}

.post-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 1.5rem;
}

.blog-post-image {
    width: 100%;
    max-width: 800px;
    height: auto;
    margin: 2rem auto;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    display: block;
}

.blog-post-highlight-image {
    width: 100%;
    max-width: 800px;
    height: auto;
    margin: 2rem auto;
    border-radius: 12px;
    display: block;
}

.blog-post-highlight-image-full {
    width: 100vw;
    height: 85vh;
    object-fit: cover;
    object-position: center;
    display: block;
    position: relative;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
}

/* Content styling */
.post-content code {
    background: var(--bg-secondary);
    color: var(--text-primary);
}

.post-content pre {
    background: var(--bg-secondary);
    border: 1px solid #e1e5e9;
}

.post-content blockquote {
    border-left-color: var(--accent-primary);
}

.post-content a {
    color: var(--accent-primary);
}

.post-content a:hover {
    border-bottom-color: var(--accent-primary);
}

/* Tags and buttons */
.tag {
    background: var(--accent-secondary);
    color: var(--color-white);
}

.btn-primary {
    background: var(--accent-primary);
    color: var(--color-white);
}

.btn-primary:hover {
    background: var(--color-blue);
    box-shadow: 0 8px 20px rgba(0, 87, 243, 0.3);
}

/* Navigation */
.back-to-blog {
    color: var(--accent-primary);
}

.back-to-blog:hover {
    color: var(--text-primary);
}

.post-navigation {
    border-top: 1px solid #e1e5e9;
}

/* Grid layout */
.blog-posts-grid {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
}

/* Social links */

/* Footer styling for light theme */
.site-footer {
    background: var(--footer-bg);
    border-top: 1px solid #e1e5e9;
}

/* Blog specific sections */
.blog-hero-section {
    background: var(--bg-primary);
    /* padding: 4rem 5rem 2rem; */
    text-align: center;
}

.blog-posts-section {
    background: var(--bg-primary);
    padding: 0 5rem 3rem;
}

.blog-hero-title {
    color: var(--text-primary);
}

.blog-hero-subtitle {
    color: var(--text-secondary);
}

.hero-content {
    width: unset;
}

.blog-post-date {
    color: var(--text-secondary);
}

.blog-preview-title a {
    color: var(--text-primary);
}

.blog-preview-description {
    color: var(--text-secondary);
}

.blog-footer {
    background: var(--footer-bg);
    border-top: 1px solid #e1e5e9;
}

.footer-link,
.footer-logo .logo-main {
    color: var(--text-dark-secondary) !important;
}

.blog-footer-description {
    color: var(--text-secondary);
}

.blog-footer-copyright {
    color: var(--text-secondary);
}

.blog-footer-social-icon {
    color: var(--text-secondary);
}

.blog-footer-credit {
    color: var(--text-secondary);
}

/* Blog Post Styling */
.blog-layout {
    width: 100%;
}

.post-header-wide {
    max-width: 1200px;
    margin: 0 auto;
    padding: 3rem 2rem 2rem;
    text-align: center;
}

.post-title {
    max-width: 1000px;
    margin: 1.5rem auto 1.5rem auto;
}

.post-subtitle {
    max-width: 700px;
    margin: 1rem auto 2rem auto
}

.post-tags-centered {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.post-title {
    font-family: 'DM Serif Text', serif;
    font-size: 72px;
    font-weight: 400;
    color: var(--text-primary);
    line-height: 1.2;
}

.post-subtitle {
    font-family: 'DM Sans', sans-serif;
    font-size: 20px;
    font-weight: 200;
    color: var(--text-secondary);
    line-height: 1.7;
}

.post-author {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin: 0 0 1.5rem 0;
}

.post-author-centered {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin: 0;
}

.author-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
}

.author-info {
    display: flex;
    flex-direction: column;
    gap: 0.1rem;
}

.author-name {
    font-family: 'DM Sans', sans-serif;
    font-size: 16px;
    font-weight: 800;
    color: var(--text-primary);
    text-align: left;
}

.author-date {
    font-family: 'DM Sans', sans-serif;
    font-size: 16px;
    font-weight: 500;
    color: var(--text-secondary);
}

.post-content {
    font-family: 'DM Sans', sans-serif;
    font-size: 18px;
    font-weight: 200;
    color: var(--text-primary);
    line-height: 1.75;
    margin-top: 2rem;
}

.post-content h2 {
    font-family: 'DM Serif Text', serif;
    font-size: 32px;
    font-weight: 400;
    color: var(--text-primary);
    margin: 2.5rem 0 1rem 0;
}

.post-content h3 {
    font-family: 'DM Serif Text', serif;
    font-size: 24px;
    font-weight: 400;
    font-style: italic;
    color: var(--text-primary);
    margin: 2rem 0 1rem 0;
}

.post-content p {
    margin: 0 0 1.5rem 0;
}

.post-content ul,
.post-content ol {
    margin: 0 0 1.5rem 0;
    padding-left: 1.5rem;
}

.post-content li {
    margin: 0 0 0.5rem 0;
}

.post-content a {
    color: var(--accent-primary);
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: border-bottom-color 0.3s ease;
}

.post-content a:hover {
    border-bottom-color: var(--accent-primary);
}

.blog-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem;
    min-height: unset;
}

.blog-post {
    margin-bottom: 3rem;
}

.post-header {
    margin-bottom: 2rem;
}

.post-tags {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.post-content hr {
    margin: 4rem 0 1rem;
}

.post-outro {
    font-size: 14px;
}

/* Responsive design */
@media (max-width: 768px) {
    .section {
        padding: 2rem;
    }
    
    .blog-posts-grid {
        max-width: 100%;
    }
    
    .blog-card-content {
        padding: 1.5rem;
    }
    
    .blog-highlight-image {
        height: 160px;
    }
    
    .blog-hero-section {
        padding: 3rem 2rem 1.5rem;
    }
    
    .blog-posts-section {
        padding: 0 2rem 2rem;
    }
    
    .post-title {
        font-size: 48px;
    }
    
    .post-subtitle {
        font-size: 18px;
    }
    
    .post-content h2 {
        font-size: 28px;
    }
    
    .post-content h3 {
        font-size: 22px;
    }
    
    .blog-container {
        padding: 1rem;
    }
    
    .post-header-wide {
        padding: 1rem;
    }
    
    .blog-post-highlight-image-full {
        height: 70vh;
        min-height: 70vh;
    }
}