/* ==========================
   FILTERS
========================== */

.filters {
    display: flex;
    flex-direction: column;
    gap: 32px;
}

/* Title */
.filters .filters-title {
    font-family: 'Instrument Sans', sans-serif;
    font-weight: 600;
    font-size: 14px;
    color: #06215A;
}

/* List wrapper */
.filters .filters-list {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin-top: -16px;
}

/* UL */
#blog-filters {
    list-style: none;
    padding: 0;
    margin: 0;
}

/* LI */
#blog-filters li {
    padding: 10px 12px;
    cursor: pointer;
    border-radius: 6px;
    font-family: 'Instrument Sans', sans-serif;
    font-weight: 600;
    font-size: 16px;
    color: #717680;
}

/* Active */
#blog-filters li.active {
    background: #F5F5F5;
    color: #414651;
}


/* ==========================
   DROPDOWN (MOBILE)
========================== */

.filters-dropdown {
    display: none;
}

.filters-dropdown select {
    width: 100%;
    height: 44px;
    padding: 10px 14px;

    border: 1px solid #8290AC;
    border-radius: 8px;

    font-family: 'Instrument Sans', sans-serif;
    font-size: 16px;
    color: #06215A;

    background: #FFFFFF;

    /* Remove native styles */
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;

    /* Custom arrow */
    background-image: url("data:image/svg+xml,%3Csvg width='20' height='20' viewBox='0 0 20 20' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M5 7.5L10 12.5L15 7.5' stroke='%2306215A' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 16px;

    cursor: pointer;
}


/* ==========================
   SEARCH
========================== */

.search-input {
    width: 280px;
    height: 44px;
    display: flex;
    align-items: center;
    gap: 8px;

    padding: 10px 14px;

    background: #FFFFFF;
    border: 1px solid #8290AC;
    border-radius: 8px;

    box-sizing: border-box;
}

/* Icon */
.search-icon {
    width: 15px;
    height: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.search-icon svg {
    width: 15px;
    height: 15px;
}

/* Input */
.search-input input {
    border: none;
    outline: none;
    width: 100%;

    font-family: 'Instrument Sans', sans-serif;
    font-weight: 400;
    font-size: 16px;
    line-height: 24px;

    color: #06215A;
    background: transparent;
}

/* Placeholder */
.search-input input::placeholder {
    color: #717680;
}

/* Focus */
.search-input:focus-within {
    border-color: #06215A;
}


/* ==========================
   BLOG GRID
========================== */

.blog-grid {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 32px;
}

/* CARD */
.blog-card {
    display: flex;
    flex-direction: column;
    gap: 24px;
    max-width: 48%;
    width: 48%;
}

/* IMAGE */
.blog-card__image img {
    width: 100%;
    height: 280px;
    object-fit: cover;
    border-radius: 16px;
    display: block;
}

/* CONTENT */
.blog-card__content {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

/* TEXT GROUP */
.blog-card__text-group {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* TITLE ROW */
.blog-card__heading-row {
    display: flex;
    gap: 16px;
    align-items: flex-start;
}

/* TITLE */
.blog-card__title {
    font-family: 'Instrument Sans', sans-serif;
    font-weight: 600;
    font-size: 18px;
    line-height: 28px;
    color: #06215A;
    margin: 0;
    flex: 1;
}

.blog-card__title a {
    color: inherit;
    text-decoration: none;
}

/* ICON */
.blog-card__icon {
    width: 24px;
    height: 24px;
    flex-shrink: 0;
}

/* EXCERPT */
.blog-card__excerpt {
    font-family: 'Instrument Sans', sans-serif;
    font-size: 16px;
    line-height: 24px;
    color: #414651;
    margin: 0;
}

/* AUTHOR */
.blog-card__author {
    display: flex;
    align-items: center;
    gap: 12px;
}

/* AVATAR */
.blog-card__avatar {
    width: 40px;
    height: 40px;
    border-radius: 999px;
    object-fit: cover;
    border: 1px solid rgba(0,0,0,0.08);
}

/* AUTHOR TEXT */
.blog-card__author-text {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

/* NAME */
.blog-card__author-name {
    font-family: 'Instrument Sans', sans-serif;
    font-weight: 600;
    font-size: 14px;
    color: #414651;
    line-height: normal;
}

/* DATE */
.blog-card__date {
    font-family: 'Instrument Sans', sans-serif;
    font-size: 14px;
    color: #717680;
    line-height: normal;
}


/* ==========================
   MOBILE STYLES
========================== */

@media (max-width: 768px) {

    /* Filters spacing */
    .filters {
        gap: 16px;
    }

    /* Hide sidebar filter list */
    .filters-list {
        display: none !important;
    }

    /* Hide title (optional UX) */
    .filters-title {
        display: none;
    }

    /* Show dropdown */
    .filters-dropdown {
        display: block;
        width: 100%;
    }

    /* Full width search */
    .search-input {
        width: 100%;
    }

    /* Grid → single column */
    .blog-grid {
        flex-direction: column;
        gap: 24px;
    }

    .blog-card {
        max-width: 100%;
        width: 100%;
    }

    /* Smaller image */
    .blog-card__image img {
        height: 220px;
    }
}