/*=============================================
=            SHARED STYLES                    =
=============================================*/

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 30px;
}

/*=============================================
=            BLOG LIST PAGE                   =
=============================================*/

/* Blog Header */
.blog-header {
    margin-top: 4rem;
    margin-bottom: 2rem;
}

.blog-header__title {
    font-weight: 700;
    font-size: 2rem;
    color: #0b0b0c;
    margin: 0 0 1rem 0;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.blog-header__divider {
    height: 2px;
    background-color: #e0e0e0;
    width: 100%;
    margin-bottom: 2rem;
}

/* Blog Articles List */
.blog-articles {
    margin-bottom: 4rem;
}

.article-item {
    display: flex;
    gap: 2rem;
    margin-bottom: 1.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid #f0f0f0;
}

.article-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.article-item__image-link {
    flex: 0 0 250px;
    height: 175px;
    display: block;
    text-decoration: none;
}

.article-item__image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 8px;
    transition: transform 0.3s ease;
}

.article-item__image-link:hover .article-item__image {
    transform: scale(1.02);
}

.article-item__content {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    padding-top: 0.5rem;
}

.article-item__title {
    margin: 0 0 0.25rem 0;
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    font-size: 1.3rem;
    line-height: 1.3;
}

.article-item__title a {
    color: #0b0b0c;
    text-decoration: none;
    transition: color 0.3s ease;
}

.article-item__title a:hover {
    color: #6366f1;
}

.article-item__date {
    font-family: 'Poppins', sans-serif;
    font-size: 0.8rem;
    color: #777b7e;
    margin: 0 0 0.5rem 0;
    font-weight: 400;
}

.article-item__excerpt {
    font-family: 'Poppins', sans-serif;
    font-size: 0.95rem;
    color: #555;
    margin: 0;
    line-height: 1.5;
}

/* Blog Pagination */
.blog-pagination {
    margin: 3rem 0;
}

.pagination-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    font-family: 'Poppins', sans-serif;
}

.pagination-btn {
    padding: 0.75rem 1.5rem;
    background: #f8f9fa;
    color: #0b0b0c;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.3s ease;
    border: 1px solid #e9ecef;
}

.pagination-btn:hover {
    background: #6366f1;
    color: white;
    border-color: #6366f1;
}

.pagination-info {
    color: #777b7e;
    font-size: 0.9rem;
    font-weight: 500;
}

/*=============================================
=            ARTICLE DETAIL PAGE             =
=============================================*/

/* Article Layout */
.article-wrapper {
    max-width: 700px;
    margin: 0 auto;
    padding: 2rem 1rem 1rem;
    font-family: 'Poppins', sans-serif;
}

/* Article Header */
.article-header {
    text-align: center;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #e0e0e0;
}

.article-title {
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    font-size: 2.2rem;
    color: #0b0b0c;
    margin: 0 0 0.5rem 0;
    line-height: 1.1;
}

.article-meta {
    font-family: 'Poppins', sans-serif;
    font-size: 0.9rem;
    color: #777b7e;
    display: flex;
    justify-content: center;
    gap: 0;
    flex-wrap: wrap;
    text-transform: uppercase;
    font-weight: 500;
}

.article-author,
.article-date {
    font-weight: 500;
}

/* Article Hero Image */
.article-hero {
    margin: 3rem 0 4rem 0;
    text-align: center;
}

.article-hero-image {
    width: 100%;
    max-width: 100%;
    height: 300px;
    object-fit: cover;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

/* Article Content */
.article-content {
    font-family: 'Poppins', sans-serif;
    font-size: 1rem;
    line-height: 1.7;
    color: #333;
    text-align: justify;
    margin: 3rem 0;
}

.article-content h2 {
    font-family: 'Poppins', sans-serif;
    font-size: 1.6rem;
    color: #0b0b0c;
    margin: 3rem 0 1.5rem 0;
    font-weight: 700;
    text-align: left;
}

.article-content h3 {
    font-family: 'Poppins', sans-serif;
    font-size: 1.3rem;
    color: #0b0b0c;
    margin: 2.5rem 0 1rem 0;
    font-weight: 600;
    text-align: left;
}

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

.article-content strong,
.article-content b {
    font-weight: 700;
    color: #0b0b0c;
}

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

.article-content ul,
.article-content ol {
    margin: 2rem 0;
    padding-left: 2rem;
    text-align: left;
}

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

.article-content blockquote {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-left: 4px solid #6366f1;
    padding: 2rem;
    margin: 3rem 0;
    border-radius: 0 8px 8px 0;
    font-size: 1.1rem;
    font-style: italic;
    position: relative;
    box-shadow: 0 4px 16px rgba(99, 102, 241, 0.1);
    text-align: center;
}

.article-content blockquote::before {
    content: '"';
    font-size: 2.5rem;
    color: #6366f1;
    position: absolute;
    top: -5px;
    left: 15px;
    font-family: serif;
    opacity: 0.5;
}

/* Article Inline Images */
.article-inline-image {
    margin: 3rem 0;
    text-align: center;
}

.article-inline-image img {
    width: 100%;
    max-width: 500px;
    height: 300px;
    object-fit: cover;
}

.article-inline-image figcaption {
    font-size: 0.85rem;
    color: #777b7e;
    margin-top: 1rem;
    font-style: italic;
    text-align: center;
}

/* Article Navigation */
.article-navigation {
    margin-top: 4rem;
    text-align: center;
}

.back-to-blog {
    font-family: 'Poppins', sans-serif;
    color: #6366f1;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    transition: color 0.3s ease;
}

.back-to-blog:hover {
    color: #4f46e5;
    text-decoration: underline;
}

/*=============================================
=            RESPONSIVE DESIGN               =
=============================================*/

/* Tablet Styles */
@media (max-width: 768px) {
    /* Shared */
    .container {
        padding: 0 20px;
    }
    
    /* Blog List */
    .blog-header {
        margin-top: 2rem;
    }
    
    .blog-header__title {
        font-size: 1.6rem;
    }
    
    .article-item {
        flex-direction: column;
        gap: 1rem;
        margin-bottom: 2rem;
        padding-bottom: 2rem;
    }
    
    .article-item__image-link {
        flex: none;
        height: 180px;
    }
    
    .article-item__content {
        padding-top: 0;
    }
    
    .article-item__title {
        font-size: 1.1rem;
        margin-bottom: 0.4rem;
    }
    
    .pagination-wrapper {
        gap: 1rem;
    }
    
    .pagination-btn {
        padding: 0.5rem 1rem;
        font-size: 0.9rem;
    }
    
    .pagination-info {
        font-size: 0.8rem;
    }
    
    /* Article Detail */
    .article-wrapper {
        padding: 2rem 1rem;
        max-width: 100%;
    }
    
    .article-title {
        font-size: 1.8rem;
    }
    
    .article-meta {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .article-hero-image {
        height: 200px;
    }
    
    .article-inline-image img {
        height: 180px;
    }
    
    .article-content {
        font-size: 0.95rem;
    }
    
    .article-content h2 {
        font-size: 1.4rem;
    }
    
    .article-content h3 {
        font-size: 1.2rem;
    }
}

/* Mobile Styles */
@media (max-width: 480px) {
    /* Blog List */
    .blog-header__title {
        font-size: 1.4rem;
    }
    
    .article-item__image-link {
        height: 160px;
    }
    
    .article-item__title {
        font-size: 1rem;
    }
    
    .article-item__date {
        font-size: 0.85rem;
    }
    
    .article-item__excerpt {
        font-size: 0.9rem;
    }
    
    /* Article Detail */
    .article-title {
        font-size: 1.4rem;
    }
    
    .article-hero-image {
        height: 120px;
    }
    
    .article-inline-image img {
        height: 120px;
    }
    
    .article-content {
        font-size: 0.9rem;
    }
    
    .article-content blockquote {
        padding: 1rem;
        font-size: 0.9rem;
    }
}