body.resources-page {
    margin: 0;
    padding: 0;
    background: linear-gradient(180deg, rgba(242, 230, 230, 0.83) 0%, #f7f8fb 100%);
    color: #1f2937;
}

.resources-hero {
    position: relative;
    overflow: hidden;
    padding: 90px 0 70px;
    background:
        radial-gradient(circle at top left, rgba(25, 135, 84, 0.18), transparent 35%),
        radial-gradient(circle at right center, rgba(13, 110, 253, 0.12), transparent 35%),
        linear-gradient(135deg, #12232e 0%, #1b3a4b 45%, #255c4d 100%);
    color: #fff;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: rgba(255,255,255,0.03);
    backdrop-filter: blur(1px);
}

.resources-detail-page .resources-detail-main {
    padding-top: 50px !important;
}

@media (max-width: 991.98px) {
    .resources-detail-page .resources-detail-main {
        padding-top: 100px !important;
    }
}

.resources-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    border-radius: 999px;
    background: rgba(255,255,255,0.12);
    border: 1px solid rgba(255,255,255,0.18);
    font-size: 0.95rem;
    margin-bottom: 18px;
}

.resources-title {
    font-size: clamp(2.2rem, 4vw, 4rem);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 16px;
}

.resources-subtitle {
    font-size: 1.08rem;
    color: rgba(255,255,255,0.88);
    max-width: 760px;
    margin-bottom: 28px;
}

.resources-hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
}

.resources-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
}

.resource-image {
    width: 100%;
    max-width: 520px;
    height: auto;
    display: block;
    object-fit: contain;
    border-radius: 12px;
}

.resource-image-wrapper {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    width: 100%;
    overflow: hidden;
}

.stat-box {
    min-width: 140px;
    background: rgba(255,255,255,0.10);
    border: 1px solid rgba(255,255,255,0.12);
    padding: 14px 18px;
    border-radius: 18px;
    backdrop-filter: blur(10px);
}

.stat-box strong {
    display: block;
    font-size: 1.25rem;
    font-weight: 700;
}

.stat-box span {
    display: block;
    font-size: 0.9rem;
    color: rgba(255,255,255,0.8);
}

.resources-preview-card {
    position: relative;
    background: rgba(255,255,255,0.12);
    border: 1px solid rgba(255,255,255,0.18);
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0,0,0,0.18);
    backdrop-filter: blur(10px);
}

.preview-top {
    padding: 16px 20px;
    border-bottom: 1px solid rgba(255,255,255,0.12);
    font-weight: 600;
    color: #d1fae5;
}

.preview-body {
    padding: 24px 22px;
}

.preview-body h5 {
    font-size: 1.35rem;
    font-weight: 700;
    margin-bottom: 12px;
}

.preview-body p {
    color: rgba(255,255,255,0.85);
    margin-bottom: 18px;
}

.preview-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.preview-list li {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
    color: rgba(255,255,255,0.92);
}

.preview-list i {
    color: #86efac;
}

.resources-toolbar {
    margin-top: -34px;
    position: relative;
    z-index: 5;
}

.toolbar-box {
    background: rgba(255,255,255,0.85);
    border: 1px solid rgba(17,24,39,0.06);
    border-radius: 22px;
    padding: 22px;
    box-shadow: 0 20px 40px rgba(15,23,42,0.08);
    backdrop-filter: blur(8px);
}

.search-shell {
    position: relative;
}

.search-shell i {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: #6b7280;
}

.search-shell input {
    height: 52px;
    border-radius: 16px;
    padding-left: 44px;
    border: 1px solid #d1d5db;
}

.toolbar-note {
    height: 52px;
    display: flex;
    align-items: center;
    gap: 10px;
    color: #374151;
    font-size: 0.95rem;
    background: #f8fafc;
    border-radius: 16px;
    padding: 0 16px;
}

.section-title {
    font-weight: 800;
    margin-bottom: 4px;
}

.section-subtitle {
    color: #6b7280;
    margin-bottom: 0;
}

.resource-card {
    background: rgba(255,255,255,0.92);
    border: 1px solid rgba(15,23,42,0.06);
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 14px 34px rgba(15,23,42,0.06);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.resource-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 24px 50px rgba(15,23,42,0.12);
}

.resource-card-top {
    position: relative;
    height: 230px;
    background: linear-gradient(135deg, #f0fdf4, #d1fae5);
    overflow: hidden;
}

.resource-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.resource-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4rem;
    color: #198754;
}

.resource-floating-badge {
    position: absolute;
    right: 16px;
    top: 16px;
    background: rgba(17,24,39,0.78);
    color: #fff;
    padding: 8px 12px;
    border-radius: 999px;
    font-size: 0.9rem;
    backdrop-filter: blur(8px);
}

.resource-card-body {
    padding: 22px;
}

.resource-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 14px;
}

.meta-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #f3f4f6;
    color: #374151;
    padding: 7px 12px;
    border-radius: 999px;
    font-size: 0.85rem;
}

.resource-title {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 10px;
    line-height: 1.3;
}

.resource-desc {
    color: #4b5563;
    min-height: 72px;
    margin-bottom: 18px;
}

.resource-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.empty-state {
    background: rgba(255,255,255,0.9);
    padding: 48px 24px;
    border-radius: 24px;
    border: 1px dashed #cbd5e1;
    box-shadow: 0 14px 30px rgba(15,23,42,0.05);
}

.empty-state i {
    font-size: 3rem;
    color: #94a3b8;
    display: block;
    margin-bottom: 16px;
}

.popular-box {
    background: linear-gradient(135deg, #ffffff 0%, #f0fdf4 100%);
    border-radius: 24px;
    padding: 34px;
    border: 1px solid rgba(16,185,129,0.14);
    box-shadow: 0 18px 44px rgba(15,23,42,0.06);
}

.popular-box h3 {
    font-weight: 800;
    margin-bottom: 12px;
}

.popular-box p {
    color: #4b5563;
    margin-bottom: 0;
}

.mini-feature-list {
    display: grid;
    gap: 12px;
}

.mini-feature-list div {
    display: flex;
    align-items: center;
    gap: 10px;
    background: #fff;
    border-radius: 14px;
    padding: 14px 16px;
    border: 1px solid #e5e7eb;
}

.mini-feature-list i {
    color: #198754;
}

.particle {
    position: absolute;
    bottom: -20px;
    background: rgba(255,255,255,0.22);
    border-radius: 50%;
    animation: floatUp linear infinite;
    pointer-events: none;
}

@keyframes floatUp {
    from {
        transform: translateY(0);
        opacity: 0.2;
    }
    to {
        transform: translateY(-700px);
        opacity: 0;
    }
}

@media (max-width: 768px) {
    .resources-hero {
        padding: 72px 0 56px;
    }

    .resources-title {
        font-size: 2.2rem;
    }

    .resource-card-top {
        height: 200px;
    }

    .toolbar-box {
        padding: 16px;
    }

    .popular-box {
        padding: 24px;
    }
}