/*
|--------------------------------------------------------------------------
| Kenyan Teacher Resources
|--------------------------------------------------------------------------
*/

.kt-resources-page {
    width: 100%;
    background: #ffffff;
    color: #142039;
    padding: 30px 0 50px;
}

.kt-resources-container {
    width: min(1170px, 92%);
    margin: 0 auto;
}


/*
|--------------------------------------------------------------------------
| Search
|--------------------------------------------------------------------------
*/

.kt-resource-search {
    max-width: 650px;
    margin: 0 auto 22px;
    display: flex;
    background: #ffffff;
    border: 1px solid #dfe4e9;
    border-radius: 6px;
    overflow: hidden;
    box-shadow: 0 3px 12px rgba(20, 40, 60, 0.06);
}

.kt-resource-search input {
    flex: 1;
    border: none;
    outline: none;
    padding: 13px 16px;
    font-size: 13px;
}

.kt-resource-search button {
    width: 55px;
    border: none;
    background: #ed2428;
    color: #ffffff;
    font-size: 20px;
}


/*
|--------------------------------------------------------------------------
| Category Buttons
|--------------------------------------------------------------------------
*/

.kt-resource-category-filter {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    margin-bottom: 25px;
}

.kt-category-button {
    border: 1px solid #dce1e6;
    background: #ffffff;
    color: #273247;
    border-radius: 20px;
    padding: 7px 13px;
    font-size: 10px;
    cursor: pointer;
    transition: 0.2s ease;
}

.kt-category-button:hover,
.kt-category-button.active {
    background: #ed2428;
    color: #ffffff;
    border-color: #ed2428;
}


/*
|--------------------------------------------------------------------------
| Headings
|--------------------------------------------------------------------------
*/

.kt-resources-section-heading {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 12px;
}

.kt-resources-section-heading::after {
    content: "";
    flex: 1;
    height: 1px;
    background: #dfe3e7;
}

.kt-resources-section-heading h2 {
    font-size: 20px;
    color: #142039;
    margin: 0;
}


/*
|--------------------------------------------------------------------------
| Featured
|--------------------------------------------------------------------------
*/

.kt-featured-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
    margin-bottom: 28px;
}

.kt-featured-card {
    display: flex;
    gap: 14px;
    min-height: 145px;
    padding: 17px;
    border: 1px solid #e3e7eb;
    border-radius: 8px;
    background: #f8fbff;
    box-shadow: 0 3px 12px rgba(20, 40, 60, 0.05);
}

.kt-featured-icon {
    width: 55px;
    min-width: 55px;
    height: 55px;
    border-radius: 10px;
    background: #e9f3ff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
}

.kt-featured-content {
    flex: 1;
}

.kt-featured-category {
    display: inline-block;
    color: #ed2428;
    font-size: 9px;
    font-weight: 700;
    margin-bottom: 4px;
}

.kt-featured-content h3 {
    margin: 0 0 6px;
    font-size: 14px;
    line-height: 1.3;
}

.kt-featured-content p {
    margin: 0 0 9px;
    color: #555;
    font-size: 10px;
    line-height: 1.5;
}

.kt-featured-link {
    color: #ed2428;
    font-size: 10px;
    font-weight: 700;
}


/*
|--------------------------------------------------------------------------
| Latest Layout
|--------------------------------------------------------------------------
*/

.kt-latest-layout {
    display: grid;
    grid-template-columns: minmax(0, 3.2fr) minmax(230px, 1fr);
    gap: 20px;
}


/*
|--------------------------------------------------------------------------
| Resource Rows
|--------------------------------------------------------------------------
*/

.kt-resource-list {
    border: 1px solid #e3e7eb;
    border-radius: 8px;
    overflow: hidden;
    background: #ffffff;
}

.kt-resource-row {
    display: grid;
    grid-template-columns: 1.5fr 1.5fr auto;
    align-items: center;
    gap: 18px;
    padding: 14px 15px;
    border-bottom: 1px solid #e9ecef;
    transition: 0.2s ease;
}

.kt-resource-row:last-child {
    border-bottom: none;
}

.kt-resource-row:hover {
    background: #fafbfd;
}

.kt-resource-main {
    display: flex;
    align-items: center;
    gap: 10px;
}

.kt-resource-file-icon {
    width: 34px;
    min-width: 34px;
    height: 40px;
    background: #e73838;
    color: #ffffff;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.kt-resource-file-icon span {
    font-size: 8px;
    font-weight: 800;
}

.kt-resource-main h3 {
    margin: 0 0 4px;
    font-size: 12px;
    line-height: 1.3;
}

.kt-resource-meta {
    display: flex;
    gap: 8px;
    color: #777;
    font-size: 8px;
}

.kt-resource-description {
    color: #555;
    font-size: 9px;
    line-height: 1.45;
}

.kt-resource-action {
    text-align: right;
}

.kt-view-resource {
    display: inline-block;
    background: #ed2428;
    color: #ffffff !important;
    padding: 7px 10px;
    border-radius: 4px;
    font-size: 9px;
    font-weight: 700;
    white-space: nowrap;
}

.kt-no-file {
    color: #999;
    font-size: 9px;
}


/*
|--------------------------------------------------------------------------
| Sidebar
|--------------------------------------------------------------------------
*/

.kt-resource-sidebar {
    border: 1px solid #e3e7eb;
    border-radius: 8px;
    padding: 15px;
    background: #ffffff;
    height: max-content;
}

.kt-resource-sidebar h3 {
    margin: 0 0 10px;
    font-size: 14px;
}

.kt-sidebar-category {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
    padding: 7px 0;
    border: none;
    border-bottom: 1px solid #f0f1f2;
    background: transparent;
    color: #333;
    text-align: left;
    font-size: 9px;
    cursor: pointer;
}

.kt-sidebar-category:hover,
.kt-sidebar-category.active {
    color: #ed2428;
}

.kt-sidebar-category strong {
    min-width: 22px;
    padding: 3px 5px;
    border-radius: 12px;
    background: #eceef0;
    color: #555;
    text-align: center;
    font-size: 8px;
}

.kt-sidebar-category.active strong {
    background: #ed2428;
    color: #ffffff;
}


/*
|--------------------------------------------------------------------------
| Request Box
|--------------------------------------------------------------------------
*/

.kt-resource-request {
    margin-top: 25px;
    display: flex;
    align-items: center;
    gap: 18px;
    padding: 20px 24px;
    border: 1px solid #f0d7d7;
    border-radius: 8px;
    background: #fff7f7;
}

.kt-request-icon {
    width: 55px;
    min-width: 55px;
    height: 55px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: #ffffff;
    font-size: 26px;
}

.kt-request-content {
    flex: 1;
}

.kt-request-content h2 {
    margin: 0 0 4px;
    font-size: 18px;
}

.kt-request-content p {
    margin: 0;
    color: #555;
    font-size: 10px;
    line-height: 1.5;
}

.kt-request-button {
    display: inline-block;
    background: #ed2428;
    color: #ffffff !important;
    padding: 11px 15px;
    border-radius: 5px;
    font-size: 10px;
    font-weight: 700;
    white-space: nowrap;
}


/*
|--------------------------------------------------------------------------
| Empty States
|--------------------------------------------------------------------------
*/

.kt-no-results,
.kt-no-featured,
.kt-filter-no-results {
    padding: 25px;
    text-align: center;
    color: #777;
    font-size: 11px;
}


/*
|--------------------------------------------------------------------------
| Responsive
|--------------------------------------------------------------------------
*/

@media (max-width: 950px) {

    .kt-featured-grid {
        grid-template-columns: 1fr;
    }

    .kt-latest-layout {
        grid-template-columns: 1fr;
    }

}


@media (max-width: 700px) {

    .kt-resource-row {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .kt-resource-action {
        text-align: left;
    }

    .kt-resource-request {
        flex-direction: column;
        text-align: center;
    }

    .kt-request-button {
        width: 100%;
        text-align: center;
    }

}


@media (max-width: 480px) {

    .kt-resource-category-filter {
        display: grid;
        grid-template-columns: 1fr 1fr;
    }

    .kt-category-button {
        width: 100%;
    }

}