/* ==========================================
   Blogs Page Custom Styles
   ========================================== */

/* Hero Section */
.blog-hero {
    position: relative;
    height: 40vh;
    min-height: 350px;
    background-image: url('https://images.unsplash.com/photo-1436491865332-7a61a109cc05?auto=format&fit=crop&w=1920&q=80'); /* Travel/Plane placeholder */
    background-size: cover;
    background-position: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: white;
    overflow: hidden;
}

.blog-hero-overlay {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(
        180deg,
        rgba(0, 0, 0, 0.4) 0%,
        rgba(0, 0, 0, 0.6) 100%
    );
    z-index: 1;
}

.blog-hero-content {
    position: relative;
    z-index: 10;
    animation: fadeInBlogs 0.6s ease;
}

@keyframes fadeInBlogs {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.blog-hero .get-in-touch-badge {
    display: inline-block;
    background-color: var(--primary-red);
    color: white;
    padding: 8px 20px;
    border-radius: 20px;
    font-weight: 500;
    font-size: 1rem;
    margin-bottom: 16px;
    font-family: var(--font-poppins);
}

.blog-hero h1 {
    color: white;
    font-size: 3.5rem;
    font-weight: 700;
    line-height: 1.15;
    margin-bottom: 0;
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.4);
    font-family: var(--font-poppins);
}

/* Container */
.blog-container {
    max-width: 1250px;
    margin: 0 auto;
    padding: 40px 60px;
}

/* Nav Pills */
.blog-nav-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
    border-bottom: 1px solid #eaeaea;
    padding-bottom: 20px;
    flex-wrap: wrap;
    gap: 20px;
}

.blog-pill-nav {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    scrollbar-width: none;
    padding-bottom: 5px; /* space for scroll */
}

.blog-pill-nav::-webkit-scrollbar {
    display: none;
}

.pill {
    background-color: transparent;
    border: 1px solid #F0C4C6;
    color: var(--primary-red);
    padding: 8px 20px;
    border-radius: 24px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.pill:hover, .pill.active {
    background-color: var(--primary-red);
    color: white;
    border-color: var(--primary-red);
}

.blog-showing {
    color: #656565;
    font-size: 0.95rem;
    white-space: nowrap;
}
.blog-showing strong {
    color: #333;
}

/* Blog Grid */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-bottom: 50px;
}

/* Blog Card */
.blog-card {
    background-color: #fff;
    border: 1px solid #E1E1E1;
    box-shadow: 0px 4px 12px rgba(0, 0, 0, 0.05);
    border-radius: 12px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.blog-card:hover {
    transform: translateY(-5px);
    box-shadow: 0px 8px 24px rgba(0, 0, 0, 0.1);
}

.blog-card-img {
    height: 180px;
    background-size: cover;
    background-position: center;
    background-color: #D3D3D3;
    position: relative;
}

.blog-tag {
    position: absolute;
    top: 16px;
    left: 16px;
    color: white;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 6px 14px;
    border-radius: 20px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.blog-card-content {
    padding: 20px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    background: white;
}

.blog-card-content h3 {
    font-size: 1.2rem;
    font-weight: 700;
    color: #333;
    margin-bottom: 10px;
    line-height: 1.3;
    font-family: var(--font-poppins);
}

.blog-card-content p {
    color: #656565;
    font-size: 0.9rem;
    font-weight: 400;
    line-height: 1.5;
    margin-bottom: 16px;
    flex-grow: 1;
}

.read-more {
    color: var(--primary-red);
    font-weight: 600;
    font-size: 0.75rem;
    display: inline-block;
    margin-bottom: 4px;
    transition: color 0.2s;
}

.read-more:hover {
    color: var(--primary-red-hover);
    text-decoration: underline;
}

.blog-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid #eaeaea;
    padding-top: 16px;
    color: #999;
    font-size: 0.85rem;
}

.blog-dot {
    display: inline-block;
    width: 4px;
    height: 4px;
    background-color: #ccc;
    border-radius: 50%;
    margin-right: 6px;
    vertical-align: middle;
}

/* Load More Container */
.load-more-container {
    text-align: center;
    margin-top: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.blog-load-btn {
    background-color: transparent;
    border: 1px solid var(--primary-red);
    color: var(--primary-red);
    padding: 12px 30px;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.blog-load-btn:hover {
    background-color: var(--primary-red);
    color: white;
}

.blog-showing-bottom {
    color: #999;
    font-size: 0.9rem;
}

/* Responsive Overrides */
@media (max-width: 1024px) {
    .blog-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .blog-container {
        padding: 30px 40px;
    }
}

@media (max-width: 768px) {
    .blog-grid {
        grid-template-columns: 1fr;
    }
    .blog-container {
        padding: 30px 20px;
    }
    .blog-hero h1 {
        font-size: 2.8rem;
    }
    .blog-nav-row {
        flex-direction: column;
        align-items: flex-start;
    }
    .blog-pill-nav {
        width: 100%;
    }
}
