/* Blog Styles */

/* Blog Hero */
.blog-hero {
    padding: 120px 0 80px;
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    text-align: center;
}

.blog-hero-content {
    max-width: 800px;
    margin: 0 auto;
}

.blog-hero-title {
    font-size: 3rem;
    font-weight: 800;
    color: #1a1a1a;
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.blog-hero-description {
    font-size: 1.25rem;
    color: #666;
    margin-bottom: 2rem;
}

/* Blog Section */
.blog-section {
    padding: 80px 0;
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 2rem;
}

/* Blog Card */
.blog-card {
    background: #ffffff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}

.blog-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.12);
}

.blog-card.featured {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
}

.blog-card-image {
    position: relative;
    width: 100%;
    height: 240px;
    overflow: hidden;
}

.blog-card.featured .blog-card-image {
    height: 100%;
}

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

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

.blog-card-badge {
    position: absolute;
    top: 1rem;
    left: 1rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 600;
}

.blog-card-content {
    padding: 2rem;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.blog-card-meta {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
    font-size: 0.875rem;
    color: #666;
}

.blog-card-date,
.blog-card-reading {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.blog-card-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    line-height: 1.3;
}

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

.blog-card-title a:hover {
    color: #667eea;
}

.blog-card-excerpt {
    color: #666;
    line-height: 1.6;
    margin-bottom: 1.5rem;
    flex: 1;
}

.blog-card-link {
    color: #667eea;
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: gap 0.3s ease;
}

.blog-card-link:hover {
    gap: 0.75rem;
}

/* Article Styles */
.article {
    padding: 120px 0 80px;
}

.article-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* Article Header */
.article-header {
    margin-bottom: 2rem;
}

.article-breadcrumb {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    color: #666;
    margin-bottom: 1.5rem;
}

.article-breadcrumb a {
    color: #667eea;
    text-decoration: none;
    transition: opacity 0.3s ease;
}

.article-breadcrumb a:hover {
    opacity: 0.7;
}

.article-title {
    font-size: 2.5rem;
    font-weight: 800;
    color: #1a1a1a;
    line-height: 1.2;
    margin-bottom: 1.5rem;
}

.article-meta {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    font-size: 0.875rem;
    color: #666;
    flex-wrap: wrap;
}

.article-date,
.article-reading,
.article-category {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.article-category {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 12px;
    font-weight: 600;
}

/* Article Image */
.article-image {
    width: 100%;
    max-width: 1000px;
    margin: 0 auto 3rem;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.article-image img {
    width: 100%;
    height: auto;
    display: block;
}

/* Article Content */
.article-content {
    font-size: 1.125rem;
    line-height: 1.8;
    color: #333;
}

.article-intro {
    font-size: 1.25rem;
    color: #666;
    line-height: 1.8;
    margin-bottom: 2.5rem;
    padding-bottom: 2rem;
    border-bottom: 2px solid #f0f0f0;
}

.article-content h2 {
    font-size: 2rem;
    font-weight: 700;
    color: #1a1a1a;
    margin-top: 3rem;
    margin-bottom: 1.5rem;
    line-height: 1.3;
}

.article-content h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: #1a1a1a;
    margin-top: 2rem;
    margin-bottom: 1rem;
}

.article-content h4 {
    font-size: 1.25rem;
    font-weight: 600;
    color: #1a1a1a;
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
}

.article-content p {
    margin-bottom: 1.5rem;
}

.article-content ul,
.article-content ol {
    margin-bottom: 1.5rem;
    padding-left: 1.5rem;
}

.article-content li {
    margin-bottom: 0.75rem;
}

.article-content strong {
    color: #1a1a1a;
    font-weight: 600;
}

/* Article Highlight Box */
.article-highlight {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    padding: 2rem;
    border-radius: 12px;
    margin: 2rem 0;
    border-left: 4px solid #667eea;
}

.article-highlight h3 {
    margin-top: 0;
    color: #667eea;
}

/* Article Table */
.article-table {
    overflow-x: auto;
    margin: 2rem 0;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.article-table table {
    width: 100%;
    border-collapse: collapse;
    background: white;
}

.article-table thead {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.article-table th,
.article-table td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid #e0e0e0;
}

.article-table th {
    font-weight: 600;
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.article-table tbody tr:hover {
    background: #f8f9fa;
}

.article-table tbody tr:last-child td {
    border-bottom: none;
}

/* Article Card */
.article-card {
    background: white;
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    padding: 2rem;
    margin: 2rem 0;
}

.article-card h3 {
    margin-top: 0;
    color: #1a1a1a;
}

.article-card .note {
    background: #fff3cd;
    color: #856404;
    padding: 1rem;
    border-radius: 8px;
    margin-top: 1rem;
    font-size: 1rem;
}

/* Article Warning */
.article-warning {
    background: #fff5f5;
    border: 2px solid #fc8181;
    border-radius: 12px;
    padding: 2rem;
    margin: 2rem 0;
}

.article-warning h3 {
    margin-top: 0;
    color: #c53030;
}

/* Article Menu */
.article-menu {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
}

.menu-item {
    background: white;
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    padding: 1.5rem;
}

.menu-item h4 {
    margin-top: 0;
    color: #667eea;
    font-size: 1.125rem;
    margin-bottom: 1rem;
}

.menu-item ul {
    margin: 0;
    padding-left: 1.25rem;
}

.menu-item li {
    margin-bottom: 0.5rem;
    font-size: 1rem;
}

/* Article CTA */
.article-cta {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 3rem;
    border-radius: 16px;
    text-align: center;
    margin: 3rem 0;
}

.article-cta h3 {
    margin-top: 0;
    color: white;
    font-size: 1.75rem;
}

.article-cta p {
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 2rem;
}

.article-cta .btn {
    background: white;
    color: #667eea;
}

.article-cta .btn:hover {
    background: #f8f9fa;
}

/* Article References */
.article-references {
    background: #f8f9fa;
    padding: 2rem;
    border-radius: 12px;
    margin: 3rem 0;
}

.article-references h3 {
    margin-top: 0;
    color: #1a1a1a;
}

.article-references ol {
    margin: 0;
    padding-left: 1.5rem;
}

.article-references li {
    font-size: 0.95rem;
    color: #666;
    margin-bottom: 0.75rem;
}

/* Article Footer */
.article-footer {
    margin-top: 4rem;
    padding-top: 2rem;
    border-top: 2px solid #e0e0e0;
}

/* Share Buttons */
.article-share {
    margin-bottom: 2rem;
}

.article-share h4 {
    font-size: 1rem;
    font-weight: 600;
    color: #666;
    margin-bottom: 1rem;
}

.share-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.share-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-decoration: none;
}

.share-btn:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

.share-btn.facebook {
    background: #1877f2;
    color: white;
}

.share-btn.twitter {
    background: #1da1f2;
    color: white;
}

.share-btn.whatsapp {
    background: #25d366;
    color: white;
}

/* Article Navigation */
.article-nav {
    display: flex;
    justify-content: center;
}

/* Responsive */
@media (max-width: 768px) {
    .blog-hero {
        padding: 80px 0 60px;
    }

    .blog-hero-title {
        font-size: 2rem;
    }

    .blog-hero-description {
        font-size: 1rem;
    }

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

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

    .blog-card.featured .blog-card-image {
        height: 240px;
    }

    .article {
        padding: 80px 0 60px;
    }

    .article-title {
        font-size: 1.75rem;
    }

    .article-content {
        font-size: 1rem;
    }

    .article-intro {
        font-size: 1.125rem;
    }

    .article-content h2 {
        font-size: 1.5rem;
    }

    .article-content h3 {
        font-size: 1.25rem;
    }

    .article-menu {
        grid-template-columns: 1fr;
    }

    .article-cta {
        padding: 2rem;
    }

    .article-cta h3 {
        font-size: 1.5rem;
    }

    .article-table {
        font-size: 0.875rem;
    }

    .article-table th,
    .article-table td {
        padding: 0.75rem;
    }
}

@media (max-width: 480px) {
    .blog-hero-title {
        font-size: 1.75rem;
    }

    .article-title {
        font-size: 1.5rem;
    }

    .article-meta {
        gap: 1rem;
    }

    .article-content h2 {
        font-size: 1.375rem;
        margin-top: 2rem;
    }

    .article-content h3 {
        font-size: 1.125rem;
    }

    .article-highlight,
    .article-card,
    .article-warning {
        padding: 1.5rem;
    }

    .article-cta {
        padding: 1.5rem;
    }

    .article-table th,
    .article-table td {
        padding: 0.5rem;
        font-size: 0.8rem;
    }
}
