/* style/blog.css */
.page-blog {
    font-family: 'Arial', sans-serif;
    color: #333;
    line-height: 1.6;
    background-color: #f8f9fa;
}

.page-blog__hero {
    background: linear-gradient(135deg, #007BFF, #FFC107);
    color: #fff;
    padding: 80px 20px;
    text-align: center;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.page-blog__hero-content {
    max-width: 800px;
    z-index: 1;
}

.page-blog__hero h1 {
    font-size: 3.2em;
    margin-bottom: 15px;
    color: #fff;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.page-blog__hero p {
    font-size: 1.2em;
    margin-bottom: 30px;
    color: #eee;
}

.page-blog__hero-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.2;
    z-index: 0;
}

.page-blog__container {
    display: flex;
    max-width: 1200px;
    margin: 40px auto;
    padding: 0 20px;
    gap: 30px;
}

.page-blog__main-content {
    flex: 3;
}

.page-blog__sidebar {
    flex: 1;
    background-color: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    height: fit-content;
}

.page-blog__article-list h2,
.page-blog__sidebar-widget h3 {
    color: #007BFF;
    margin-bottom: 20px;
    border-bottom: 2px solid #FFC107;
    padding-bottom: 10px;
}

.page-blog__article-card {
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    margin-bottom: 30px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease;
}

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

.page-blog__article-thumbnail {
    width: 100%;
    height: 220px;
    object-fit: cover;
    display: block;
}

.page-blog__article-info {
    padding: 25px;
}

.page-blog__article-info h3 {
    font-size: 1.8em;
    margin-top: 0;
    margin-bottom: 10px;
}

.page-blog__article-info h3 a {
    color: #007BFF;
    text-decoration: none;
    transition: color 0.3s ease;
}

.page-blog__article-info h3 a:hover {
    color: #FFC107;
}

.page-blog__article-meta {
    font-size: 0.9em;
    color: #666;
    margin-bottom: 15px;
}

.page-blog__article-meta a {
    color: #007BFF;
    text-decoration: none;
}

.page-blog__article-meta a:hover {
    text-decoration: underline;
}

.page-blog__article-summary {
    margin-bottom: 20px;
    color: #555;
}

.page-blog__btn {
    display: inline-block;
    padding: 12px 25px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s ease, color 0.3s ease;
    border: none;
    cursor: pointer;
}

.page-blog__btn--primary {
    background-color: #FFC107;
    color: #000;
}

.page-blog__btn--primary:hover {
    background-color: #e0a800;
    color: #fff;
}

.page-blog__btn--secondary {
    background-color: #007BFF;
    color: #fff;
}

.page-blog__btn--secondary:hover {
    background-color: #0056b3;
}

.page-blog__btn--accent {
    background-color: #FFC107;
    color: #000;
    width: 100%;
    text-align: center;
    margin-top: 15px;
}

.page-blog__btn--accent:hover {
    background-color: #e0a800;
    color: #fff;
}

.page-blog__pagination {
    display: flex;
    justify-content: center;
    margin-top: 40px;
    gap: 10px;
}

.page-blog__pagination-link {
    display: inline-block;
    padding: 10px 15px;
    border: 1px solid #ddd;
    border-radius: 5px;
    text-decoration: none;
    color: #007BFF;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.page-blog__pagination-link:hover:not(.page-blog__pagination-link--disabled) {
    background-color: #007BFF;
    color: #fff;
}

.page-blog__pagination-link--active {
    background-color: #007BFF;
    color: #fff;
    border-color: #007BFF;
}

.page-blog__pagination-link--disabled {
    color: #ccc;
    cursor: not-allowed;
    background-color: #f5f5f5;
}

.page-blog__search-box {
    display: flex;
    margin-bottom: 20px;
}

.page-blog__search-input {
    flex-grow: 1;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 5px 0 0 5px;
    font-size: 1em;
}

.page-blog__search-btn {
    padding: 10px 15px;
    background-color: #007BFF;
    color: #fff;
    border: 1px solid #007BFF;
    border-radius: 0 5px 5px 0;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.page-blog__search-btn:hover {
    background-color: #0056b3;
}

.page-blog__category-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.page-blog__category-list li {
    margin-bottom: 10px;
}

.page-blog__category-list li a {
    color: #555;
    text-decoration: none;
    display: block;
    padding: 8px 10px;
    border-radius: 5px;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.page-blog__category-list li a:hover {
    background-color: #f0f0f0;
    color: #007BFF;
}

.page-blog__promo-widget {
    text-align: center;
    margin-top: 30px;
    border-top: 1px solid #eee;
    padding-top: 20px;
}

.page-blog__promo-image {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin-bottom: 15px;
}

.page-blog__promo-widget h3 {
    font-size: 1.5em;
    color: #FFC107;
    margin-bottom: 10px;
    border-bottom: none;
    padding-bottom: 0;
}

.page-blog__promo-widget p {
    font-size: 0.95em;
    color: #666;
    margin-bottom: 20px;
}

/* Responsive Design */
@media (max-width: 992px) {
    .page-blog__container {
        flex-direction: column;
    }

    .page-blog__sidebar {
        order: -1; /* Sidebar appears above main content on smaller screens */
        margin-bottom: 30px;
    }

    .page-blog__article-card {
        flex-direction: row;
    }

    .page-blog__article-thumbnail {
        width: 40%;
        height: auto;
    }

    .page-blog__article-info {
        width: 60%;
    }
}

@media (max-width: 768px) {
    .page-blog__hero h1 {
        font-size: 2.5em;
    }

    .page-blog__hero p {
        font-size: 1em;
    }

    .page-blog__article-card {
        flex-direction: column;
    }

    .page-blog__article-thumbnail {
        width: 100%;
        height: 180px;
    }

    .page-blog__article-info {
        width: 100%;
        padding: 20px;
    }

    .page-blog__article-info h3 {
        font-size: 1.5em;
    }
}

@media (max-width: 576px) {
    .page-blog__hero {
        padding: 60px 15px;
    }

    .page-blog__hero h1 {
        font-size: 2em;
    }

    .page-blog__hero p {
        font-size: 0.9em;
    }

    .page-blog__container {
        margin: 20px auto;
        padding: 0 15px;
    }

    .page-blog__sidebar {
        padding: 15px;
    }

    .page-blog__search-input, .page-blog__search-btn {
        font-size: 0.9em;
        padding: 8px 12px;
    }
}