/* ===== LAYOUT ===== */
.materials-layout {
    display: block;
}

/* ===== DROPDOWN FILTER ===== */
.materials-filter-bar {
    margin-bottom: 28px;
}

.materials-filter-select {
    appearance: none;
    -webkit-appearance: none;
    width: 100%;
    padding: 13px 44px 13px 18px;
    border: 1.5px solid #c8cdd6;
    border-radius: 10px;
    background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2309203C' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat right 16px center;
    color: #09203C;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: border-color .2s, box-shadow .2s;
}

.materials-filter-select:hover {
    border-color: #09203C;
}

.materials-filter-select:focus {
    border-color: #09203C;
    box-shadow: 0 0 0 3px rgba(9,32,60,.10);
    outline: none;
}

/* ===== GRID — 3 колонки ===== */
.grid-wrap {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

/* ===== CARD ===== */
.grid-item {
    background: #fff;
    border-radius: 14px;
    overflow: hidden;
    border: 1px solid #e8ecf0;
    transition: transform .25s, box-shadow .25s, border-color .25s;
    cursor: pointer;
}

.grid-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 14px 32px rgba(9,32,60,.10);
    border-color: #b0bacb;
}

.grid-item img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    display: block;
    transition: transform .4s;
}

.grid-item:hover img {
    transform: scale(1.04);
}

.grid-item h4 {
    font-size: 15px;
    font-weight: 600;
    color: #09203C;
    margin: 16px 18px 8px;
    line-height: 1.35;
    text-align: center;
}

.grid-item .excerpt {
    font-size: 13px;
    color: #5a6a7e;
    line-height: 1.6;
    margin: 0 18px 20px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-align: center;
}

.grid-item .read-more {
    display: inline-block;
    margin: 0 18px 18px;
    font-size: 13px;
    font-weight: 600;
    color: #09203C;
    text-decoration: none;
    border-bottom: 1.5px solid transparent;
    transition: border-color .2s;
}

.grid-item:hover .read-more {
    border-bottom-color: #09203C;
}

/* ===== LOAD MORE — outline ===== */
.materials-content .grid-load-more {
    display: block;
    margin: 40px auto 0;
    padding: 12px 36px;
    border: 1.5px solid #09203C !important;
    border-radius: 10px;
    background: transparent !important;
    color: #09203C !important;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    letter-spacing: .02em;
    transition: background .2s, color .2s, transform .15s;
}

.materials-content .grid-load-more:hover {
    background: #09203C !important;
    color: #fff !important;
    transform: translateY(-2px);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 900px) {
    .grid-wrap {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }
}

@media (max-width: 480px) {
    .grid-wrap {
        grid-template-columns: 1fr;
    }

    .grid-item img {
        height: 200px;
    }
}