/* Blog and News Page Styles */

/* Hero Section */
.blog-hero {
    position: relative;
    min-height: 546px;
    background-image: url('https://quimbaya-tours.com/wp-content/uploads/2023/12/iStock-937138282-min.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.blog-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1;
}

.blog-hero .container {
    position: relative;
    z-index: 2;
}

/* Filter Section */
.filter-section {
    background-color: transparent;
}

.filter-bar {
    padding: 1rem 0;
}

.filter-buttons {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.current-filter {
    font-size: 0.9rem;
}

.tag-filters .btn {
    margin: 0.25rem;
    font-size: 0.85rem;
}


/* Active filter highlighting */
.dropdown-item.active {
    background-color: var(--bs-primary);
    color: white;
}

/* Blog List Section */
.blog-list-section {
    background: transparent;
    min-height: 500px;
}

/* Blog Grid */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(380px, 1fr));
    gap: 40px;
    margin-bottom: 60px;
}

/* Blog Card */
.blog-card {
    background: #f5f5f5;
    border-radius: 15px;
    overflow: hidden;
    transition: all 0.3s ease;
    height: 100%;
}

.blog-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.15);
}

.blog-card__link {
    display: block;
    text-decoration: none;
    color: inherit;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.blog-card__image {
    position: relative;
    overflow: hidden;
    height: 250px;
    border-radius: 22px;
}

.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: 28px 20px 40px 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.blog-card__title {
    color: #42a1ce;
    font-family: "Montserrat", sans-serif;
    font-size: 25px;
    font-weight: 700;
    font-style: normal;
}

.blog-card__date {
    color: #000;
    font-family: "Inter", sans-serif;
    font-size: 18px;
    font-weight: 400;
    line-height: 34.56px;
    margin-bottom: 8px;
}

.blog-card__excerpt {
    color: #000;
    font-family: "Inter", sans-serif;
    font-size: 18px;
    font-weight: 400;
    font-style: normal;
    line-height: 34.56px;
}

.learn-more-btn {
    margin-top: auto;
}

.blog-card__cta {
    color: #6ec1e4;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    transition: gap 0.3s ease;
    margin-top: auto;
}

.blog-card:hover .blog-card__cta {
    gap: 10px;
}

/* Pagination */
.pagination {
    margin-top: 60px;
}

.page-link {
    color: #6ec1e4;
    border-color: #ddd;
    padding: 10px 18px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.page-link:hover {
    color: #fff;
    background-color: #6ec1e4;
    border-color: #6ec1e4;
}

.page-item.active .page-link {
    background-color: #6ec1e4;
    border-color: #6ec1e4;
}

/* Responsive */
@media (max-width: 991px) {
    .blog-hero h1 {
        font-size: 2.5rem;
    }

    .blog-hero p {
        font-size: 1.1rem;
    }

    .blog-grid {
        grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
        gap: 30px;
    }
}

@media (max-width: 768px) {
    .blog-hero {
        min-height: 0;
        padding-top: 60px;
        padding-bottom: 115px;
    }

    .blog-hero h1 {
        font-size: 2rem;
    }

    .blog-hero p {
        font-size: 1rem;
    }

    .blog-grid {
        grid-template-columns: 1fr;
        gap: 25px;
    }

    .blog-card__content {
        padding: 20px;
    }

    .blog-card__title {
        font-size: 1.3rem;
    }

    .blog-card__image {
        height: 200px;
    }
}

@media (max-width: 575px) {

    .blog-hero .header-title-container {
        padding: 0 20px;
    }

    .blog-hero h1 {
        font-size: 1.75rem;
    }
}