.category-page {
    background: #fff;
    color: #10243D;
}

.category-hero {
    padding: 38px 0 34px;
    background:
        radial-gradient(circle at 18% 0%, rgba(86, 183, 232, 0.12), transparent 34%),
        linear-gradient(180deg, #fff 0%, #F8FBFE 100%);
    border-bottom: 1px solid #E7EEF6;
}

.category-hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(300px, 390px);
    gap: 36px;
    align-items: center;
}

.category-breadcrumb,
.category-section-head span {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    color: #1B5190;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0;
}

.category-breadcrumb {
    margin-bottom: 20px;
}

.category-breadcrumb a {
    color: #66758A;
    text-decoration: none;
}

.category-breadcrumb a:hover {
    color: #1B5190;
}

.category-breadcrumb i {
    color: #9AA8BB;
    font-size: 16px;
}

.category-breadcrumb span {
    color: #1B5190;
}

.category-hero-copy h1 {
    max-width: 680px;
    margin: 0 0 14px;
    color: #10243D;
    font-size: clamp(36px, 4vw, 58px);
    font-weight: 700;
    line-height: 1.06;
}

.category-hero-copy p {
    max-width: 620px;
    margin: 0;
    color: #66758A;
    font-size: 17px;
    font-weight: 500;
    line-height: 1.7;
}

.category-hero-panel {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    padding: 14px;
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid #E7EEF6;
    border-radius: 8px;
    box-shadow: 0 24px 56px rgba(16, 36, 61, 0.10);
}

.category-hero-panel div {
    display: grid;
    gap: 8px;
    min-height: 94px;
    padding: 18px;
    background: #F8FBFE;
    border: 1px solid #EDF3F9;
    border-radius: 8px;
}

.category-hero-panel span {
    color: #66758A;
    font-size: 13px;
    font-weight: 600;
}

.category-hero-panel strong {
    color: #1B5190;
    font-size: 34px;
    font-weight: 700;
    line-height: 1;
}

.category-list-section {
    padding: 44px 0 88px;
}

.category-section-head {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 24px;
}

.category-section-head h2 {
    margin: 5px 0 0;
    color: #10243D;
    font-size: 30px;
    font-weight: 700;
    line-height: 1.2;
}

.category-search {
    display: flex;
    align-items: center;
    gap: 10px;
    width: min(100%, 330px);
    height: 48px;
    padding: 0 16px;
    background: #fff;
    border: 1px solid #E0EAF5;
    border-radius: 999px;
}

.category-search i {
    color: #1B5190;
    font-size: 19px;
}

.category-search input {
    width: 100%;
    height: 100%;
    color: #10243D;
    background: transparent;
    border: 0;
    outline: 0;
    font-size: 14px;
    font-weight: 500;
}

.category-search input::placeholder {
    color: #8C9AAE;
}

.category-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 26px;
}

.donation-category-card {
    display: flex;
    flex-direction: column;
    min-width: 0;
    overflow: hidden;
    background: #fff;
    border: 1px solid #E2EAF3;
    border-radius: 16px;
    padding: 10px 10px 18px;
    transition: border-color 0.18s ease;
}

.donation-category-card:hover {
    border-color: rgba(86, 183, 232, 0.58);
}

.donation-category-card[hidden] {
    display: none;
}

.donation-category-media {
    display: block;
    width: 100%;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    background: #F4F9FD;
    border-radius: 12px;
}

.donation-category-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1.01);
    transition: transform 0.28s ease;
}

.donation-category-card:hover .donation-category-media img {
    transform: scale(1.025);
}

.donation-category-body {
    display: flex;
    flex: 1;
    flex-direction: column;
    padding: 17px 8px 0;
}

.donation-category-meta {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 12px;
    margin-bottom: 12px;
}

.donation-category-meta span {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    min-height: auto;
    padding: 0;
    color: #1B5190;
    font-size: 12px;
    font-weight: 600;
}

.donation-category-body h3 {
    margin: 0;
    color: #10243D;
    font-size: 17px;
    font-weight: 700;
    line-height: 1.25;
}

.donation-category-body p {
    margin: 10px 0 0;
    color: #66758A;
    font-size: 13.5px;
    font-weight: 500;
    line-height: 1.65;
}

.donation-category-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: auto;
    padding-top: 18px;
}

.category-link {
    color: #1B5190;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
}

.category-link:hover {
    color: #16477F;
}

.category-donate {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 36px;
    padding: 0 16px;
    color: #1B5190;
    background: #F7FAFD;
    border: 1px solid #D7E3EF;
    border-radius: 8px;
    font-size: 13.5px;
    font-weight: 600;
    text-decoration: none;
    white-space: nowrap;
}

.category-donate:hover {
    color: #fff;
    background: #16477F;
    border-color: #16477F;
}

.category-donate i {
    display: none;
}

.category-empty {
    display: none;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 120px;
    margin-top: 20px;
    color: #66758A;
    background: #F8FBFE;
    border: 1px solid #E7EEF6;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
}

.category-empty.is-visible {
    display: flex;
}

.category-empty i {
    color: #56B7E8;
    font-size: 24px;
}

@media (max-width: 991px) {
    .category-hero {
        padding: 34px 0 30px;
    }

    .category-hero-grid {
        grid-template-columns: 1fr;
        gap: 28px;
    }

    .category-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 640px) {
    .category-list-section {
        padding: 32px 0 64px;
    }

    .category-section-head {
        align-items: stretch;
        flex-direction: column;
    }

    .category-search {
        width: 100%;
    }

    .category-grid {
        grid-template-columns: 1fr;
    }

    .category-hero-panel {
        grid-template-columns: 1fr;
    }
}
