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

.page-blog__hero {
    position: relative;
    background: linear-gradient(135deg, #007bff, #0056b3);
    color: #fff;
    padding: 80px 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    min-height: 350px;
}

.page-blog__hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 800px;
}

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

.page-blog__hero-description {
    font-size: 1.3em;
    margin-bottom: 30px;
    color: #e0e0e0;
}

.page-blog__hero-btn {
    display: inline-block;
    background-color: #ffc107;
    color: #212529;
    padding: 15px 30px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1em;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

.page-blog__hero-btn:hover {
    background-color: #e0a800;
    transform: translateY(-2px);
}

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

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

.page-blog__main-content {
    flex: 3;
    min-width: 0;
}

.page-blog__sidebar {
    flex: 1;
    min-width: 280px;
    background-color: #f8f9fa;
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    align-self: flex-start;
}

.page-blog__article-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.page-blog__article-card {
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}

.page-blog__article-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

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

.page-blog__article-info {
    padding: 20px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.page-blog__article-title {
    font-size: 1.6em;
    margin-top: 0;
    margin-bottom: 10px;
    color: #007bff;
    font-weight: bold;
}

.page-blog__article-title a {
    text-decoration: none;
    color: #007bff;
    transition: color 0.3s ease;
}

.page-blog__article-title a:hover {
    color: #0056b3;
}

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

.page-blog__article-summary {
    font-size: 1em;
    color: #495057;
    margin-bottom: 20px;
    flex-grow: 1;
}

.page-blog__read-more-btn {
    display: inline-block;
    background-color: #007bff;
    color: #fff;
    padding: 10px 20px;
    border-radius: 5px;
    text-decoration: none;
    font-size: 0.95em;
    transition: background-color 0.3s ease;
    align-self: flex-start;
}

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

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

.page-blog__pagination-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: #e9ecef;
    color: #007bff;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.page-blog__pagination-link:hover {
    background-color: #dee2e6;
    color: #0056b3;
}

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

.page-blog__pagination-link--active:hover {
    background-color: #0056b3;
}

.page-blog__widget-title {
    font-size: 1.8em;
    color: #007bff;
    margin-bottom: 20px;
    border-bottom: 2px solid #ffc107;
    padding-bottom: 10px;
}

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

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

.page-blog__search-button {
    background-color: #007bff;
    color: #fff;
    border: none;
    padding: 12px 20px;
    border-radius: 0 5px 5px 0;
    cursor: pointer;
    font-size: 1em;
    transition: background-color 0.3s ease;
}

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

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

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

.page-blog__category-link {
    text-decoration: none;
    color: #495057;
    font-size: 1.1em;
    display: block;
    padding: 8px 0;
    border-bottom: 1px dashed #e9ecef;
    transition: color 0.3s ease, padding-left 0.3s ease;
}

.page-blog__category-link:hover {
    color: #007bff;
    padding-left: 5px;
}

.page-blog__cta-widget {
    background-color: #007bff;
    color: #fff;
    padding: 25px;
    border-radius: 8px;
    text-align: center;
}

.page-blog__cta-widget .page-blog__widget-title {
    color: #ffc107;
    border-bottom-color: #fff;
    margin-bottom: 15px;
}

.page-blog__cta-text {
    font-size: 1.1em;
    margin-bottom: 20px;
    color: #e0e0e0;
}

.page-blog__cta-btn {
    display: block;
    background-color: #ffc107;
    color: #212529;
    padding: 12px 20px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1em;
    margin-bottom: 15px;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

.page-blog__cta-btn:hover {
    background-color: #e0a800;
    transform: translateY(-2px);
}

.page-blog__cta-btn--secondary {
    background-color: #fff;
    color: #007bff;
    border: 1px solid #007bff;
}

.page-blog__cta-btn--secondary:hover {
    background-color: #e9ecef;
    color: #0056b3;
}

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

    .page-blog__main-content {
        flex: none;
        width: 100%;
    }

    .page-blog__sidebar {
        flex: none;
        width: 100%;
    }

    .page-blog__hero-title {
        font-size: 2.5em;
    }

    .page-blog__hero-description {
        font-size: 1.1em;
    }
}

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

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

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

    .page-blog__hero-btn {
        padding: 12px 25px;
        font-size: 1em;
    }

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

    .page-blog__article-list {
        grid-template-columns: 1fr;
    }

    .page-blog__widget-title {
        font-size: 1.5em;
    }
}

@media (max-width: 576px) {
    .page-blog__search-box {
        flex-direction: column;
    }

    .page-blog__search-input {
        border-radius: 5px;
        margin-bottom: 10px;
    }

    .page-blog__search-button {
        border-radius: 5px;
        width: 100%;
    }
}