/* Blog Specific Styles - Minimalist Design */

/* Reduce whitespace between hero and blog posts */
.hero-body {
    margin-bottom: 0px;  /* Reduced from default 40px */
}

.main-container {
    padding-top: 20px;  /* Reduced from default 40px */
}

/* Loading, Error, and Empty States */

.loading-state,
.error-state,
.empty-state {
    text-align: center;
    padding: 80px 20px;
}

.loading-spinner {
    width: 40px;
    height: 40px;
    margin: 0 auto 20px;
    border: 3px solid rgba(11, 33, 69, 0.1);
    border-top-color: var(--secondary);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.loading-state p,
.error-state p,
.empty-state p {
    font-size: 17px;
    color: var(--text-muted);
}

.error-state .btn-primary {
    margin-top: 20px;
}

/* Blog Posts Grid */
.posts-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
    margin: 64px 0;
}

/* Post Card */
.post-card {
    background: var(--white);
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.post-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}

.post-card-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

.post-card-image {
    width: 100%;
    height: 220px;
    overflow: hidden;
    background: var(--info-bg);
}

.post-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.post-card:hover .post-card-image img {
    transform: scale(1.05);
}

.post-card-content {
    padding: 28px;
}

.post-card-title {
    font-size: 20px;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 12px;
    line-height: 1.3;
}

.post-card-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: var(--text-muted);
    margin-bottom: 16px;
}

.post-card-author {
    font-weight: 600;
}

.post-meta-separator {
    opacity: 0.5;
}

.post-card-date {
    font-style: italic;
}

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

.post-card-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 16px;
}

.post-tag {
    display: inline-block;
    padding: 4px 12px;
    background: rgba(43, 185, 168, 0.1);
    color: var(--secondary);
    border-radius: 16px;
    font-size: 13px;
    font-weight: 600;
}

.read-more {
    display: inline-block;
    color: var(--secondary);
    font-weight: 600;
    font-size: 15px;
    transition: transform 0.2s;
}

.post-card:hover .read-more {
    transform: translateX(4px);
}

/* Blog Post Detail Page - Hero Layout */
.blog-post {
    background: transparent;
    padding: 0;
}

/* Hero Section with Background Image */
.article-hero {
    position: relative;
    width: 100%;
    min-height: 500px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(180deg, rgba(11, 33, 69, 0) 0%, rgba(11, 33, 69, 0.3) 100%);
}

/* Article Container */
.article-container {
    max-width: 1100px;
    margin: -80px auto 0;
    padding: 0 80px 64px;
    position: relative;
    z-index: 1;
}

/* Single White Card */
.article-card {
    background: white;
    border-radius: 12px;
    padding: 48px 64px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

/* Article Header (inside card) */
.article-header {
    margin-bottom: 40px;
    padding-bottom: 32px;
    border-bottom: 1px solid rgba(213, 216, 224, 0.3);
}

.read-time-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(43, 185, 168, 0.9);
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.5px;
    margin-bottom: 20px;
}

.clock-icon {
    width: 16px;
    height: 16px;
}

.article-title {
    font-size: 42px;
    font-weight: 800;
    line-height: 1.2;
    color: var(--primary);
    margin-bottom: 16px;
}

.article-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 16px;
    color: var(--text-muted);
}

.article-meta .meta-separator {
    opacity: 0.7;
}

/* Table of Contents */
.table-of-contents {
    padding: 32px;
    margin-bottom: 32px;
    background: rgba(43, 185, 168, 0.03);
    border-left: 4px solid var(--secondary);
}

.toc-title {
    font-size: 20px;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 20px;
    background: white;
    font-weight: bold;
}

.toc-nav {
    display: flex;
    flex-direction: column;
    gap: 12px;
    background: white;
}

.toc-link {
    color: var(--text);
    text-decoration: none;
    font-size: 15px;
    font-weight: 600;
    transition: all 0.2s;
    padding-left: 0;
    border-left: 2px solid transparent;
    padding-left: 16px;
}

.toc-number {
    color: var(--secondary);
    font-weight: 700;
}

.toc-link:hover {
    color: var(--secondary);
    border-left-color: var(--secondary);
}

.toc-link.toc-h3 {
    padding-left: 32px;
    font-size: 14px;
    color: var(--text-muted);
}

/* Article Content */
.article-content {
    padding: 0;
}

.post-title {
    font-size: 40px;
    font-weight: 800;
    line-height: 1.2;
    color: var(--primary);
    margin-bottom: 20px;
}

.post-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 15px;
    color: var(--text-muted);
    margin-bottom: 24px;
}

.post-author {
    font-weight: 600;
}

.post-excerpt {
    font-size: 19px;
    line-height: 1.7;
    color: var(--text-muted);
    font-style: italic;
    padding: 20px 0;
    border-bottom: 1px solid rgba(213, 216, 224, 0.3);
    margin-bottom: 32px;
}

/* Article Content - Rich Text Styles */
.article-content {
    font-size: 17px;
    line-height: 1.8;
    color: var(--text);
}

.article-content h1,
.article-content h2,
.article-content h3,
.article-content h4,
.article-content h5,
.article-content h6 {
    font-weight: 700;
    color: var(--primary);
    margin-top: 40px;
    margin-bottom: 20px;
    line-height: 1.3;
    scroll-margin-top: 100px;
}

.article-content h1 { font-size: 32px; }
.article-content h2 { font-size: 28px; }
.article-content h3 { font-size: 24px; }
.article-content h4 { font-size: 20px; }
.article-content h5 { font-size: 18px; }
.article-content h6 { font-size: 16px; }

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

.article-content a {
    color: var(--secondary);
    text-decoration: underline;
    transition: color 0.2s;
}

.article-content a:hover {
    color: var(--secondary-dark);
}

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

.article-content li {
    margin-bottom: 8px;
}

.article-content blockquote {
    margin: 32px 0;
    padding: 20px 24px;
    border-left: 4px solid var(--secondary);
    background: var(--info-bg);
    border-radius: 8px;
    font-style: italic;
    color: var(--text-muted);
}

.article-content code {
    padding: 2px 6px;
    background: var(--info-bg);
    border-radius: 4px;
    font-family: 'Courier New', monospace;
    font-size: 14px;
}

.article-content hr {
    margin: 40px 0;
    border: none;
    border-top: 1px solid rgba(213, 216, 224, 0.3);
}

.article-content img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 32px 0;
}

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

.article-content em {
    font-style: italic;
}

/* Post Tags */
.post-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 40px;
    padding-top: 32px;
    border-top: 1px solid rgba(213, 216, 224, 0.3);
}

/* Post Footer */
.post-footer {
    margin-top: 48px;
    padding-top: 32px;
    border-top: 1px solid rgba(213, 216, 224, 0.3);
    text-align: center;
}

/* Responsive Design */
@media (max-width: 968px) {
    .posts-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 24px;
    }

    .post-card-image {
        height: 180px;
    }

    /* Hero responsive */
    .article-hero {
        min-height: 400px;
    }

    .article-container {
        padding: 0 40px 48px;
        margin-top: -60px;
    }

    .article-card {
        padding: 32px 40px;
    }

    .article-title {
        font-size: 36px;
    }

    .article-content {
        font-size: 16px;
    }

    .table-of-contents {
        padding: 24px;
    }
}

@media (max-width: 768px) {
    /* Reduce spacing on tablet */
    .hero-body {
        margin-bottom: 16px;
    }

    .main-container {
        padding-top: 16px;
    }

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

    .post-card-image {
        height: 200px;
    }

    /* Hero responsive */
    .article-hero {
        min-height: 350px;
    }

    .article-container {
        padding: 0 20px 32px;
        margin-top: -40px;
    }

    .article-card {
        padding: 24px 20px;
    }

    .article-title {
        font-size: 28px;
    }

    .article-meta {
        font-size: 14px;
    }

    .read-time-badge {
        font-size: 11px;
        padding: 6px 12px;
    }

    .article-content {
        padding: 0;
    }

    .table-of-contents {
        padding: 20px;
    }

    .article-content h1 { font-size: 26px; }
    .article-content h2 { font-size: 24px; }
    .article-content h3 { font-size: 20px; }
    .article-content h4 { font-size: 18px; }
}

/* Mobile Smartphones (480px and below) */
@media (max-width: 480px) {
    /* Reduce spacing on mobile */
    .hero-body {
        margin-bottom: 0px;
    }

    .main-container {
        padding-top: 12px;
    }

    .article-container {
        padding: 0 16px 32px;
        margin-top: -30px;
    }

    .article-card {
        padding: 20px 16px;
    }

    .article-hero {
        min-height: 300px;
    }

    .article-title {
        font-size: 24px;
    }

    .article-content {
        font-size: 15px;
    }

    .article-content h1 { font-size: 22px; }
    .article-content h2 { font-size: 20px; }
    .article-content h3 { font-size: 18px; }
    .article-content h4 { font-size: 16px; }

    .posts-grid {
        gap: 20px;
        margin: 48px 0;
    }

    .post-card-content {
        padding: 20px;
    }

    .post-card-title {
        font-size: 18px;
    }
}

/* Small Mobile Phones (375px and below) */
@media (max-width: 375px) {
    .article-container {
        padding: 0 12px 24px;
    }

    .article-card {
        padding: 16px 12px;
    }

    .article-title {
        font-size: 22px;
    }
}
.hero {
    padding: 40px 0;  /* Reduced from default 80px */
}