/* Blog Index Styles */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
    margin: 60px 0;
}

.blog-card {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    transition: transform 0.3s, box-shadow 0.3s;
}

.blog-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.15);
}

.blog-image {
    height: 220px;
    background: linear-gradient(135deg, #27ae60 0%, #229954 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 48px;
    position: relative;
    overflow: hidden;
}

.blog-image::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.2);
    z-index: 1;
}

.blog-image i {
    position: relative;
    z-index: 2;
}

.blog-content {
    padding: 30px;
}

.blog-meta {
    display: flex;
    align-items: center;
    gap: 15px;
    color: #94a3b8;
    font-size: 14px;
    margin-bottom: 15px;
}

.blog-title {
    font-size: 22px;
    color: #1e293b;
    margin-bottom: 15px;
    line-height: 1.3;
}

.blog-title a {
    color: inherit;
    text-decoration: none;
    transition: color 0.3s;
}

.blog-title a:hover {
    color: #27ae60;
}

.blog-excerpt {
    color: #64748b;
    line-height: 1.6;
    margin-bottom: 20px;
}

.blog-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 20px;
    border-top: 1px solid #e2e8f0;
}

.read-more {
    color: #27ae60;
    text-decoration: none;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 5px;
    transition: all 0.3s ease;
}

.read-more:hover {
    gap: 10px;
    color: #229954;
}

.blog-stats {
    display: flex;
    gap: 15px;
    color: #94a3b8;
    font-size: 14px;
}

.pagination-wrapper {
    display: flex;
    justify-content: center;
    margin: 60px 0;
}

.pagination {
    display: flex;
    gap: 10px;
    list-style: none;
    padding: 0;
    margin: 0;
}

.pagination a, .pagination span {
    padding: 12px 16px;
    border-radius: 8px;
    text-decoration: none;
    color: #64748b;
    border: 1px solid #e2e8f0;
    transition: all 0.3s;
}

.pagination a:hover {
    background: #27ae60;
    color: white;
    border-color: #27ae60;
}

.pagination .active span {
    background: #27ae60;
    color: white;
    border-color: #27ae60;
}

.pagination .disabled span {
    opacity: 0.5;
    cursor: not-allowed;
}

.no-articles {
    text-align: center;
    padding: 80px 20px;
    color: #64748b;
}

.no-articles i {
    font-size: 64px;
    color: #e2e8f0;
    margin-bottom: 20px;
}

.no-articles h3 {
    color: #1e293b;
    margin-bottom: 10px;
}

/* Blog Show/Article Styles */
.article-container {
    max-width: 1200px;
    margin: 60px auto;
    padding: 0 50px;
}

.article-title {
    font-size: 42px;
    color: #1e293b;
    margin: 30px 0 25px 0;
    line-height: 1.3;
    font-weight: 700;
}

.article-meta {
    display: flex;
    align-items: center;
    gap: 20px;
    color: #64748b;
    font-size: 14px;
    margin-bottom: 40px;
    padding-bottom: 20px;
    border-bottom: 1px solid #e2e8f0;
}

.article-meta span {
    display: flex;
    align-items: center;
    gap: 8px;
}

.article-meta i {
    color: #27ae60;
}

.article-content {
    line-height: 1.8;
    color: #374151;
    font-size: 16px;
    margin-bottom: 40px;
}

.article-content img {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    margin: 30px 0;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.article-content video,
.article-content iframe {
    max-width: 100%;
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;
    border-radius: 12px;
    margin: 30px 0;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.article-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin: 40px 0;
}

.article-gallery img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    border-radius: 12px;
    cursor: pointer;
    transition: transform 0.3s, box-shadow 0.3s;
    margin: 0;
}

.article-gallery img:hover {
    transform: scale(1.05);
    box-shadow: 0 15px 40px rgba(0,0,0,0.2);
}

.article-content h2 {
    color: #1e293b;
    margin: 40px 0 20px;
    font-size: 28px;
}

.article-content h3 {
    color: #1e293b;
    margin: 30px 0 15px;
    font-size: 22px;
}

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

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

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

.article-content blockquote {
    border-left: 4px solid #27ae60;
    padding: 20px;
    margin: 30px 0;
    background: #f8fafc;
    border-radius: 0 10px 10px 0;
    font-style: italic;
}

.article-image {
    height: 300px;
    background: linear-gradient(135deg, #27ae60 0%, #229954 100%);
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 64px;
    margin: 40px 0;
}

.article-footer {
    margin-top: 60px;
    padding-top: 40px;
    border-top: 2px solid #e2e8f0;
}

.share-buttons {
    display: flex;
    gap: 15px;
    margin-bottom: 40px;
}

.share-btn {
    padding: 12px 20px;
    border-radius: 8px;
    text-decoration: none;
    color: white;
    font-weight: 500;
    transition: transform 0.3s;
    display: flex;
    align-items: center;
    gap: 8px;
}

.share-btn:hover {
    transform: translateY(-2px);
}

.share-facebook { background: #1877f2; }
.share-twitter { background: #1da1f2; }
.share-linkedin { background: #0077b5; }
.share-whatsapp { background: #25d366; }

.related-articles {
    margin-top: 60px;
}

.related-articles h3 {
    color: #1e293b;
    margin-bottom: 30px;
    font-size: 24px;
}

.related-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
}

.related-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    transition: transform 0.3s;
}

.related-card:hover {
    transform: translateY(-5px);
}

.related-image {
    height: 150px;
    background: linear-gradient(135deg, #27ae60 0%, #229954 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 32px;
}

.related-content {
    padding: 20px;
}

.related-title {
    font-size: 16px;
    color: #1e293b;
    margin-bottom: 10px;
    line-height: 1.3;
}

.related-title a {
    color: inherit;
    text-decoration: none;
    transition: color 0.3s;
}

.related-title a:hover {
    color: #27ae60;
}

.related-date {
    color: #64748b;
    font-size: 14px;
}

.back-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #27ae60;
    text-decoration: none;
    font-weight: 600;
    margin-bottom: 40px;
    transition: all 0.3s ease;
}

.back-link:hover {
    gap: 12px;
    color: #229954;
}

@media (max-width: 768px) {
    .article-container {
        padding: 0 20px;
        margin: 40px auto;
    }

    .back-link {
        margin-top: 50px;
        margin-bottom: 30px;
    }

    .share-buttons {
        flex-wrap: wrap;
    }

    .article-meta {
        flex-wrap: wrap;
        gap: 12px;
    }

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

    .article-image {
        height: 200px;
        font-size: 48px;
        margin: 30px 0;
    }
}
