/*
 * General Styles (Remain unchanged unless necessary for initial responsiveness)
 */
 body {
    font-family: 'Lato', sans-serif;
}

/* Headings: Montserrat */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
}
:root {
    --dark-navy: rgb(17, 34, 80); /* Royal Blue */
    --accent-gold: #E0C58F; /* Quicksand Gold */
    --accent-dark: #333333; /*Dark charcoal/black for text/icons */
    --primary-blue: rgb(48, 80, 112)        ; /* Sapphire */
    --light-bg: #F5F0E9; /* Swan Wing */
    --light-text: #D9CBC2; /* Shellstone subtle text */
}

.sort-filter .sort-dropdown {
    width: auto;
    padding: 5px 10px;
    margin-right: 8px;
}

.sort-btn {
    font-family: 'Montserrat', sans-serif;
    color: var(--light-text); 
    padding: 5px 15px;
    border-radius: 6px;
}

/* Note: 'blog-header' seems to be a custom tag name, which is valid in CSS but might be better targeted as a class (.blog-header) in typical HTML structure. Assuming it is correctly used. */
blog-header {
    margin-bottom: 35px;
}

.blog-main-title {
    font-size: 34px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 10px;
     color: var(--dark-navy); 
    margin-bottom: 25px;
}

.title-bar {
    width: 10px;
    height: 35px;
    background-color: var(--accent-gold);
    display: inline-block;
}

.blog-tabs {
    font-family: 'Montserrat', sans-serif;
    display: flex;
    align-items: center;
    gap: 25px;
    margin-bottom:0px;
}

.blog-tabs .tab {
    font-size: 18px;
    font-weight: 700;
    text-decoration: none;
    color: var(--dark-navy); 
    padding: 8px 18px;
}

.blog-tabs .tab.active {
    background-color: var(--dark-navy);
    color: white;
    border-radius: 0px;
}

.tab-line {
    width: 100%;
    height: 3px;
    background-color: var(--dark-navy);

}

/*
 * Blog Filters - Needs significant adjustment for smaller screens
 */
.blog-filters {
    font-family: 'Montserrat', sans-serif;
    display: flex;
    align-items: flex-end;
    gap: 30px;
    margin: 30px 0;
}
/* .filter-group select,
.sort-filter .sort-dropdown {
    border: 2px solid var(--accent-gold);
    background-color: #fff;
    color: var(--accent-dark);
} */
.filter-group label {
    font-size: 16px;
    font-weight: 600;
    background-color: white;
    margin-bottom: 6px;
    display: block;
}

.filter-group select {
    width: 260px; 
    height: 45px;
    padding: 5px 10px;
    border-radius: 6px;
    /* border: 3px solid var(--accent-gold); */
    border: 1px solid #cbd5e1;
    font-size: 15px;
    outline: none;
}
.search-button {
    font-family: 'Montserrat', sans-serif;
    height: 45px;
    padding: 0 25px;
    border-radius: 20px;
    border: none;
    font-size: 18px;
    font-weight: 500;
    background-color: var(--accent-gold);
    color: var(--dark-navy);
    cursor: pointer;
    /* transition: 0.2s; */
}
.search-button:hover {
    transform: translateY(-3px);
}
.learn-btn{
    background-color:transparent;
    height: 45px;
    padding: 0 25px;
    font-size: 18px;
    border: var(--accent-gold) 3px solid;
    color: var(--dark-navy);
    margin-left: 0rem !important;
    font-weight: 700;
    font-family: 'Montserrat', sans-serif;
    margin-bottom: 1px;
}
.learn-btn:hover{
    background-color:var(--accent-gold);
    border: var(--accent-gold) 3px solid;
    color: var(--dark-navy);
}
/*
 * Blog Section and Card Styles
 */
.blog-section {
        background-color: white;

}

.section-title {
    font-family: 'Montserrat', sans-serif;
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 30px;
    text-align: center;
    color: #111;
}

.blog-card {
    background-color: white;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 4px 22px rgba(0,0,0,0.12);
    display: flex;
    flex-direction: column;
    height: 100%;
    transition: all 0.2s ease-in-out;
}

.blog-card:hover {
    transform: translateY(-5px);
}

.blog-img {
    width: 100%;
    height: 180px;
    object-fit: cover;
}

.blog-content {
    padding: 14px 12px 18px;
    font-family: 'Montserrat', sans-serif;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 130px;
}

.blog-title {
    font-size: 15px;
    font-weight: 700;
    color: var(--dark-navy);
    margin-bottom: 12px;
    font-family: 'Montserrat', sans-serif;

    min-height: 45px;
}

.read-more {
    font-family: 'Montserrat', sans-serif;
    font-size: 14px;
    font-weight: 700;
    color: var(--dark-navy);
    text-decoration: none;
    text-align: center;

}

.read-more:hover {
    text-decoration: underline;
}

/* =================================
 * 📱 MEDIA QUERIES FOR RESPONSIVENESS
 * ================================= */

/* --- Tablet/Smaller Desktop (Max Width 1024px) --- */
@media (max-width: 1024px) {
    .blog-main-title {
        font-size: 30px;
    }
}

/* --- Mobile Devices (Max Width 768px) --- */
@media (max-width: 768px) {
    /* Adjust main title size for smaller screens */
    .blog-main-title {
        font-size: 28px;
        margin-bottom: 20px;
    }

    /* Wrap or stack blog tabs */
    .blog-tabs {
        flex-wrap: wrap;
        gap: 15px;
    }

    .blog-tabs .tab {
        font-size: 16px;
        padding: 6px 14px;
    }

    /* Stack filters vertically for small screens */
    .blog-filters {
        flex-direction: column;
        align-items: stretch; /* Stretch items to full width */
        gap: 20px; /* Reduce gap when stacked */
        margin: 20px 0;
    }

    /* Make filter dropdowns fill the width */
    .filter-group select {
        width: 100%; /* Make dropdowns full width */
    }

    /* Make the search button full width */
    .search-button {
        width: 100%;
        margin-top: 5px; /* Add a slight margin above the button */
    }

    /* Adjust blog card images and content spacing */
    .blog-img {
        height: 150px; /* Slightly smaller image on mobile */
    }

    .blog-content {
        padding: 12px 10px 16px;
    }

    .blog-title {
        font-size: 14px;
        min-height: auto; /* Remove fixed min-height for tighter mobile layout */
        margin-bottom: 10px;
    }
}

/* --- Small Mobile Devices (Max Width 480px) --- */
@media (max-width: 480px) {
    .blog-main-title {
        font-size: 24px;
    }

    /* Ensure tabs are nicely stacked/wrapped on tiny screens */
    .blog-tabs {
        justify-content: center;
        gap: 10px;
    }

    /* Center-align section title if it wasn't already */
    .section-title {
        font-size: 24px;
    }
}
