/* ============================================
   BLOG STYLING - blog.css
   ============================================ */

/* Blog Page Section */
.blog-page {
    padding: 80px 0;
}

/* Blog Card Component */
.blog-card {
    display: flex;
    flex-direction: column;
    height: 100%;
    border: 1px solid #e2e2e2;
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.blog-card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transform: translateY(-4px);
}

.blog-card__image {
    width: 100%;
    height: 220px;
    overflow: hidden;
    background: #f5f5f5;
}

.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__content {
    padding: 20px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.blog-card__meta {
    margin-bottom: 10px;
}

.blog-card__date {
    font-size: 12px;
    color: #888;
    font-weight: 500;
}

.blog-card__title {
    margin: 10px 0 15px 0;
    font-weight: 600;
    line-height: 1.4;
    font-size: 16px;
}

.blog-card__title a {
    color: inherit;
    text-decoration: none;
    transition: color 0.3s ease;
}

.blog-card__title a:hover {
    color: #007bff;
}

.blog-card__excerpt {
    font-size: 14px;
    color: #666;
    margin-bottom: 20px;
    line-height: 1.6;
}

.blog-card__link {
    padding: 10px 20px;
    font-size: 13px;
    text-align: center;
    width: 100%;
    margin-top: auto;
}

/* Blog Detail Section */
.blog-detail {
    padding: 80px 0;
}

.blog-detail__back {
    margin-bottom: 30px;
}

.back-link {
    font-weight: 500;
    color: #333;
    text-decoration: none;
    transition: color 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.back-link:hover {
    color: #007bff;
}

.back-link i {
    font-size: 14px;
}

.blog-detail__article {
    background: #fff;
    border-radius: 8px;
    padding: 40px;
}

@media (max-width: 768px) {
    .blog-detail__article {
        padding: 20px;
    }
}

.blog-detail__header {
    margin-bottom: 30px;
    border-bottom: 1px solid #eee;
    padding-bottom: 20px;
}

.blog-detail__title {
    font-size: 36px;
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 15px;
    color: #333;
}

@media (max-width: 768px) {
    .blog-detail__title {
        font-size: 24px;
    }
}

.blog-detail__meta {
    font-size: 14px;
    color: #777;
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.blog-detail__meta-item {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.blog-detail__featured-image {
    border-radius: 8px;
    overflow: hidden;
    max-height: 450px;
    margin: 30px 0;
}

.blog-detail__featured-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.blog-detail__content {
    font-size: 18px;
    line-height: 1.8;
    color: #333;
    margin: 30px 0;
}

/* Content Styling */
.blog-detail__content p {
    margin-bottom: 25px;
}

.blog-detail__content h2 {
    font-size: 28px;
    font-weight: 600;
    margin-top: 40px;
    margin-bottom: 20px;
    color: #333;
}

.blog-detail__content h3 {
    font-size: 22px;
    font-weight: 600;
    margin-top: 30px;
    margin-bottom: 15px;
    color: #333;
}

.blog-detail__content h4 {
    font-size: 18px;
    font-weight: 600;
    margin-top: 20px;
    margin-bottom: 10px;
    color: #333;
}

.blog-detail__content img {
    max-width: 100%;
    height: auto;
    border-radius: 6px;
    margin: 20px 0;
}

.blog-detail__content ul,
.blog-detail__content ol {
    margin-bottom: 25px;
    padding-left: 20px;
}

.blog-detail__content li {
    margin-bottom: 8px;
}

.blog-detail__content blockquote {
    border-left: 4px solid #007bff;
    padding-left: 20px;
    margin: 25px 0;
    font-style: italic;
    color: #666;
}

.blog-detail__content a {
    color: #007bff;
    text-decoration: none;
    transition: color 0.3s ease;
}

.blog-detail__content a:hover {
    text-decoration: underline;
}

.blog-detail__content code {
    background: #f4f4f4;
    padding: 2px 6px;
    border-radius: 3px;
    font-family: "Courier New", monospace;
    font-size: 14px;
}

.blog-detail__content pre {
    background: #f4f4f4;
    padding: 15px;
    border-radius: 6px;
    overflow-x: auto;
    margin: 20px 0;
}

.blog-detail__content pre code {
    background: none;
    padding: 0;
}

.blog-detail__footer {
    margin-top: 50px;
    padding-top: 50px;
    border-top: 1px solid #eee;
}

.blog-detail__share {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}

.blog-detail__share h5 {
    margin: 0;
    font-weight: 600;
    white-space: nowrap;
}

.social-list {
    list-style: none;
    display: flex;
    gap: 15px;
    padding: 0;
    margin: 0;
}

.social-link {
    font-size: 20px;
    transition: transform 0.3s ease;
    text-decoration: none;
}

.social-link:hover {
    transform: scale(1.2);
}

.social-link--whatsapp {
    color: #25d366;
}

.social-link--linkedin {
    color: #0077b5;
}

/* Pagination Navigation */
.pagination-nav {
    margin: 30px 0;
}

.pagination {
    display: flex;
    list-style: none;
    justify-content: center;
    gap: 10px;
    padding: 0;
    margin: 0;
    flex-wrap: wrap;
}

.page-item {
    display: inline-block;
}

.page-link {
    padding: 8px 20px;
    border-radius: 4px;
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.page-info {
    padding: 8px 15px;
    font-weight: 600;
    display: inline-block;
}

.page-item.disabled .page-link {
    opacity: 0.5;
    cursor: not-allowed;
    background-color: #ccc;
}

/* Empty State */
.alert-info {
    background: #d1ecf1;
    border: 1px solid #bee5eb;
    color: #0c5460;
    padding: 15px;
    border-radius: 4px;
    margin: 20px 0;
}

/* Responsive Design */
@media (max-width: 768px) {
    .blog-page {
        padding: 40px 0;
    }

    .blog-card__content {
        padding: 15px;
    }

    .blog-detail__article {
        padding: 20px;
    }

    .blog-detail__content {
        font-size: 16px;
    }

    .blog-detail__share {
        flex-direction: column;
        align-items: flex-start;
    }
}

@media (max-width: 480px) {
    .blog-card__image {
        height: 180px;
    }

    .blog-detail__title {
        font-size: 20px;
    }

    .pagination {
        gap: 5px;
    }

    .page-link {
        padding: 6px 12px;
        font-size: 12px;
    }
}
