/* Banner Styles */
.banner {
    background-image: url('/assets/images/blog-banner.jpg');
    background-size: cover;
    background-position: center;
    height: 400px;
    display: flex;
    align-items: center;
    color: white;
    position: relative;
}

.banner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
}

.banner-content {
    position: relative;
    z-index: 1;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
    width: 100%;
}

.banner h1 {
    font-size: 2.5rem;
    font-weight: bold;
    margin-bottom: 1rem;
}

.banner p {
    font-size: 1.1rem;
    max-width: 800px;
}

/* Tag Styles */
.tag-btn {
    padding: 8px 16px;
    border-radius: 20px;
    background-color: #f0f0f0;
    color: #333;
    font-weight: 500;
    transition: all 0.3s;
    border: none;
    cursor: pointer;
}

.tag-btn:hover {
    background-color: #D2BDA1;
    color: white;
}

.tag-btn.active {
    background-color: #D71718;
    color: white;
}

/* Article Card Styles */
.article-card {
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s, box-shadow 0.3s;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.article-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 15px rgba(0, 0, 0, 0.1);
}

.article-image {
    width: 100%;
    /* height: 200px; */
    height: auto;
    object-fit: cover;
    cursor: pointer;
}

.article-content {
    padding: 20px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.article-title {
    font-size: 1.25rem;
    font-weight: bold;
    margin-bottom: 10px;
    cursor: pointer;
    color: #333;
    transition: color 0.3s;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    min-height: 3em; /* 2 lines * 1.5em line-height */
    line-height: 1.5em;
}

.article-title:hover {
    color: #D71718;
}

.article-meta {
    display: flex;
    align-items: center;
    margin-bottom: 12px;
    color: #666;
    font-size: 0.875rem;
}

.article-date {
    margin-left: 8px;
}

.article-excerpt {
    color: #666;
    margin-bottom: 15px;
    flex-grow: 1;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    min-height: 4.5em; /* 3 lines * 1.5em line-height */
    line-height: 1.5em;
}

.read-more {
    color: #D71718;
    font-weight: 500;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    transition: color 0.3s;
}

.read-more:hover {
    color: #c51617;
}

.read-more i {
    margin-left: 5px;
    transition: transform 0.3s;
}

.read-more:hover i {
    transform: translateX(3px);
}

/* Pagination Styles */
.pagination-btn {
    padding: 8px 16px;
    margin: 0 4px;
    border-radius: 4px;
    background-color: #f0f0f0;
    color: #333;
    font-weight: 500;
    transition: all 0.3s;
    border: none;
    cursor: pointer;
}

.pagination-btn:hover:not(:disabled) {
    background-color: #D2BDA1;
    color: white;
}

.pagination-btn.active {
    background-color: #D71718;
    color: white;
}

.pagination-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.pagination-arrow {
    padding: 8px 12px;
    background-color: #f0f0f0;
    border-radius: 4px;
    margin: 0 4px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.pagination-arrow:hover:not(:disabled) {
    background-color: #D2BDA1;
    color: white;
}

.pagination-arrow:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    display: none;
}

/* Responsive Grid */
.articles-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

@media (max-width: 992px) {
    .articles-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .articles-grid {
        grid-template-columns: 1fr;
    }

    .banner h1 {
        font-size: 1.5rem;
    }

    .banner p {
        font-size: 0.9rem;
    }
}
@media (max-width: 576px) {

    .banner h1 {
        font-size: 1rem;
    }
    .banner p{
        font-size: 0.8rem;
    }

}