/* Blog Article Styles */
.blog-article {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
}

.article-header {
    text-align: center;
    margin-bottom: 50px;
    padding: 40px 20px;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    border-radius: 15px;
}

.article-meta {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 25px;
    font-size: 0.9rem;
}

.article-meta .category {
    background: var(--secondary-color);
    color: white;
    padding: 6px 15px;
    border-radius: 20px;
    font-weight: 500;
}

.article-meta .date,
.article-meta .author,
.article-meta .reading-time {
    color: #666;
}

.article-header h1 {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 20px;
    line-height: 1.3;
}

.article-intro {
    font-size: 1.2rem;
    color: #555;
    line-height: 1.6;
    max-width: 800px;
    margin: 0 auto;
}

.article-body {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 40px;
    margin-top: 40px;
}

.main-content {
    background: white;
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    line-height: 1.8;
    font-size: 1.05rem;
}

.main-content h2 {
    color: var(--primary-color);
    margin: 40px 0 20px 0;
    padding-bottom: 10px;
    border-bottom: 3px solid var(--secondary-color);
    font-size: 1.8rem;
}

.main-content h3 {
    color: var(--primary-color);
    margin: 30px 0 15px 0;
    font-size: 1.4rem;
}

.main-content h4 {
    color: var(--text-color);
    margin: 25px 0 12px 0;
    font-size: 1.2rem;
}

.main-content p {
    margin-bottom: 20px;
    color: #333;
}

.main-content ul,
.main-content ol {
    margin: 20px 0 20px 25px;
    padding-left: 20px;
}

.main-content li {
    margin-bottom: 10px;
    color: #444;
}

.main-content strong {
    color: var(--primary-color);
    font-weight: 600;
}

.main-content em {
    color: var(--secondary-color);
    font-style: italic;
}

.highlight-box,
.warning-box,
.tip-box,
.example-box {
    padding: 25px;
    border-radius: 10px;
    margin: 30px 0;
    border-left: 5px solid;
}

.highlight-box {
    background: #e3f2fd;
    border-color: var(--secondary-color);
}

.highlight-box h3 {
    color: var(--secondary-color);
    margin-top: 0;
}

.warning-box {
    background: #ffebee;
    border-color: var(--danger-color);
}

.warning-box h3 {
    color: var(--danger-color);
    margin-top: 0;
}

.tip-box {
    background: #f1f8e9;
    border-color: var(--success-color);
}

.tip-box h3 {
    color: var(--success-color);
    margin-top: 0;
}

.example-box {
    background: #fff3e0;
    border-color: var(--warning-color);
}

.example-box h4 {
    color: var(--warning-color);
    margin-top: 0;
}

.cta-box {
    background: linear-gradient(135deg, #1e40af 0%, #1e3a8a 100%);
    color: white;
    padding: 35px;
    border-radius: 15px;
    text-align: center;
    margin: 40px 0;
}

.cta-box h3 {
    color: white;
    margin: 0 0 15px 0;
}

.cta-box p {
    color: white;
    opacity: 0.95;
    margin-bottom: 25px;
}

.cta-button {
    display: inline-block;
    background: white;
    color: var(--primary-color);
    padding: 15px 40px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    transition: all 0.3s;
}

.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.share-section {
    margin: 50px 0;
    padding: 30px;
    background: var(--light-bg);
    border-radius: 12px;
    text-align: center;
}

.share-buttons {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 20px;
    flex-wrap: wrap;
}

.share-btn {
    padding: 12px 25px;
    border-radius: 8px;
    text-decoration: none;
    color: white;
    font-weight: 500;
    transition: all 0.3s;
}

.share-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
}

.share-btn.facebook {
    background: #1877f2;
}

.share-btn.twitter {
    background: #1da1f2;
}

.share-btn.whatsapp {
    background: #25d366;
}

/* Sidebar */
.sidebar {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.sidebar-widget {
    background: white;
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
}

.sidebar-widget h3 {
    margin: 0 0 20px 0;
    color: var(--primary-color);
    font-size: 1.2rem;
}

.related-articles {
    list-style: none;
    padding: 0;
    margin: 0;
}

.related-articles li {
    margin-bottom: 15px;
}

.related-articles a {
    color: var(--text-color);
    text-decoration: none;
    display: block;
    padding: 12px;
    border-left: 3px solid var(--secondary-color);
    background: var(--light-bg);
    border-radius: 5px;
    transition: all 0.3s;
}

.related-articles a:hover {
    background: var(--secondary-color);
    color: white;
    transform: translateX(5px);
}

.calculator-widget {
    background: linear-gradient(135deg, #1e40af 0%, #1e3a8a 100%);
    color: white;
}

.calculator-widget h3,
.calculator-widget p {
    color: white;
}

.widget-button {
    display: block;
    background: white;
    color: var(--primary-color);
    padding: 12px 20px;
    border-radius: 8px;
    text-decoration: none;
    text-align: center;
    font-weight: 500;
    transition: all 0.3s;
}

.widget-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
}

/* Responsive */
@media (max-width: 968px) {
    .article-body {
        grid-template-columns: 1fr;
    }

    .sidebar {
        order: -1;
    }

    .main-content {
        padding: 25px;
    }

    .article-header h1 {
        font-size: 2rem;
    }
}

@media (max-width: 640px) {
    .article-header {
        padding: 25px 15px;
    }

    .article-header h1 {
        font-size: 1.6rem;
    }

    .article-intro {
        font-size: 1rem;
    }

    .main-content {
        padding: 20px;
        font-size: 1rem;
    }

    .main-content h2 {
        font-size: 1.5rem;
    }

    .main-content h3 {
        font-size: 1.2rem;
    }

    .share-buttons {
        flex-direction: column;
    }

    .share-btn {
        width: 100%;
    }
}
