﻿/* ============================================================
       RESOURCES INDEX PAGE STYLES
    ============================================================ */
.resources-hero-slim {
        padding: 2rem 0 1.5rem;
        background: linear-gradient(135deg, #0a0e1a 0%, #1a0a2e 30%, #4a2a8a 60%, #0d9488 80%, #0a0e1a 100%);
        position: relative;
        overflow: hidden;
        margin-top: -60px;
        color: #fff;
    }

        .resources-hero-slim::before {
            content: '';
            position: absolute;
            top: -30%;
            right: -10%;
            width: 400px;
            height: 400px;
            background: radial-gradient(circle, rgba(13,148,136,0.06) 0%, transparent 70%);
            border-radius: 50%;
            pointer-events: none;
            animation: heroPulse 12s ease-in-out infinite;
        }

        .resources-hero-slim::after {
            content: '';
            position: absolute;
            bottom: -40%;
            left: -15%;
            width: 300px;
            height: 300px;
            background: radial-gradient(circle, rgba(108,58,158,0.04) 0%, transparent 70%);
            border-radius: 50%;
            pointer-events: none;
            animation: heroPulse 15s ease-in-out infinite reverse;
        }

    @@keyframes heroPulse {
        0%, 100% {
            transform: scale(1) rotate(0deg);
            opacity: 0.4;
        }

        50% {
            transform: scale(1.05) rotate(3deg);
            opacity: 0.8;
        }
    }

    .resources-hero-slim .hero-badge {
        display: inline-flex;
        align-items: center;
        gap: 0.5rem;
        background: rgba(252,211,77,0.08);
        border: 1px solid rgba(252,211,77,0.1);
        padding: 0.25rem 1rem;
        border-radius: 6px;
        font-size: 0.6rem;
        font-weight: 700;
        font-family: 'Courier New', monospace;
        color: #fcd34d;
        letter-spacing: 0.5px;
        margin-bottom: 0.5rem;
    }

        .resources-hero-slim .hero-badge i {
            font-size: 0.8rem;
        }

    .resources-hero-slim h1 {
        font-size: 2.2rem;
        font-weight: 800;
        line-height: 1.1;
        margin-bottom: 0.25rem;
    }

        .resources-hero-slim h1 .highlight {
            background: linear-gradient(135deg, #fcd34d, #f59e0b, #fbbf24);
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            background-clip: text;
        }

    .resources-hero-slim .subtitle {
        color: rgba(255,255,255,0.7);
        font-size: 0.95rem;
        line-height: 1.6;
        max-width: 500px;
        margin-bottom: 0.25rem;
    }

        .resources-hero-slim .subtitle strong {
            color: #fcd34d;
            font-weight: 600;
        }

    .resources-hero-slim .hero-stats {
        display: flex;
        gap: 1.5rem;
        flex-wrap: wrap;
        margin-top: 0.5rem;
    }

        .resources-hero-slim .hero-stats .stat-item .number {
            font-size: 1.4rem;
            font-weight: 800;
            color: #fff;
            line-height: 1.2;
        }

        .resources-hero-slim .hero-stats .stat-item .label {
            font-size: 0.65rem;
            color: rgba(255,255,255,0.5);
            font-weight: 500;
            display: block;
            margin-top: 0.1rem;
        }

    .resources-hero-slim .quick-actions {
        display: flex;
        flex-wrap: wrap;
        gap: 0.4rem;
        margin-top: 0.5rem;
    }

        .resources-hero-slim .quick-actions .action-btn {
            display: inline-flex;
            align-items: center;
            gap: 0.3rem;
            padding: 0.2rem 0.6rem;
            border-radius: 20px;
            font-size: 0.55rem;
            font-weight: 600;
            text-decoration: none;
            transition: all 0.3s ease;
            border: 1px solid rgba(255,255,255,0.06);
            background: rgba(255,255,255,0.04);
            color: rgba(255,255,255,0.6);
        }

            .resources-hero-slim .quick-actions .action-btn:hover {
                background: rgba(13,148,136,0.08);
                border-color: rgba(13,148,136,0.1);
                color: #5eead4;
                transform: translateY(-2px);
            }

            .resources-hero-slim .quick-actions .action-btn i {
                font-size: 0.7rem;
            }

    .resources-hero-slim .btn-hero {
        background: linear-gradient(135deg, #fcd34d, #f59e0b);
        color: #1a0a2e;
        border-radius: 50px;
        padding: 0.4rem 1.5rem;
        display: inline-block;
        font-weight: 700;
        font-size: 0.85rem;
        transition: all 0.3s ease;
        text-decoration: none;
        border: none;
        box-shadow: 0 4px 20px rgba(252,211,77,0.2);
    }

        .resources-hero-slim .btn-hero:hover {
            transform: translateY(-2px);
            box-shadow: 0 8px 30px rgba(252,211,77,0.3);
            color: #1a0a2e;
        }

    .resources-hero-slim .btn-outline-hero {
        background: transparent;
        border: 2px solid rgba(255,255,255,0.15);
        color: #fff;
        border-radius: 50px;
        padding: 0.4rem 1.5rem;
        display: inline-block;
        font-weight: 600;
        font-size: 0.85rem;
        transition: all 0.3s ease;
        text-decoration: none;
    }

        .resources-hero-slim .btn-outline-hero:hover {
            background: rgba(255,255,255,0.05);
            transform: translateY(-2px);
            border-color: rgba(255,255,255,0.3);
        }

    .filter-bar {
        padding: 0.75rem 0;
        background: #f8fafc;
        border-bottom: 1px solid #eef2f6;
    }

        .filter-bar .search-box {
            position: relative;
        }

            .filter-bar .search-box input {
                padding-left: 2.5rem;
                border-radius: 8px;
                border: 1px solid #eef2f6;
                height: 40px;
                width: 100%;
                font-size: 0.85rem;
            }

                .filter-bar .search-box input:focus {
                    border-color: #6c3a9e;
                    box-shadow: 0 0 0 3px rgba(108,58,158,0.08);
                    outline: none;
                }

            .filter-bar .search-box i {
                position: absolute;
                left: 0.75rem;
                top: 50%;
                transform: translateY(-50%);
                color: #94a3b8;
                font-size: 0.9rem;
            }

        .filter-bar .filter-select {
            border-radius: 8px;
            border: 1px solid #eef2f6;
            height: 40px;
            width: 100%;
            padding: 0 1rem;
            font-size: 0.85rem;
            background: #fff;
        }

            .filter-bar .filter-select:focus {
                border-color: #6c3a9e;
                box-shadow: 0 0 0 3px rgba(108,58,158,0.08);
                outline: none;
            }

        .filter-bar .btn-filter {
            height: 40px;
            border-radius: 8px;
            font-weight: 600;
            font-size: 0.85rem;
            background: linear-gradient(135deg, #6c3a9e, #4e2a75);
            border: none;
            color: #fff;
            transition: all 0.3s ease;
            width: 100%;
        }

            .filter-bar .btn-filter:hover {
                transform: translateY(-2px);
                box-shadow: 0 4px 20px rgba(108,58,158,0.2);
            }

    .resource-grid {
        padding: 2rem 0 3rem;
        background: #f8fafc;
    }

    .resource-card {
        background: #fff;
        border-radius: 16px;
        overflow: hidden;
        border: 1px solid #eef2f6;
        transition: all 0.3s ease;
        height: 100%;
        display: flex;
        flex-direction: column;
    }

        .resource-card:hover {
            transform: translateY(-6px);
            box-shadow: 0 12px 40px rgba(108,58,158,0.08);
            border-color: #6c3a9e;
        }

        .resource-card .card-img {
            height: 200px;
            overflow: hidden;
            position: relative;
            background: #f1f5f9;
        }

            .resource-card .card-img img {
                width: 100%;
                height: 100%;
                object-fit: cover;
                transition: transform 0.5s ease;
            }

            .resource-card .card-img video {
                width: 100%;
                height: 100%;
                object-fit: cover;
            }

        .resource-card:hover .card-img img {
            transform: scale(1.05);
        }

        .resource-card .card-img .type-tag {
            position: absolute;
            top: 0.75rem;
            left: 0.75rem;
            font-size: 0.55rem;
            font-weight: 600;
            padding: 0.15rem 0.7rem;
            border-radius: 20px;
            color: #fff;
            backdrop-filter: blur(4px);
            display: flex;
            align-items: center;
            gap: 0.3rem;
            z-index: 10;
        }

            .resource-card .card-img .type-tag.blog {
                background: rgba(37,99,235,0.9);
            }

            .resource-card .card-img .type-tag.video {
                background: rgba(220,38,38,0.9);
            }

            .resource-card .card-img .type-tag.lesson {
                background: rgba(13,148,136,0.9);
            }

            .resource-card .card-img .type-tag.youtube {
                background: rgba(220,38,38,0.9);
            }

            .resource-card .card-img .type-tag.news {
                background: rgba(245,158,11,0.9);
            }

            .resource-card .card-img .type-tag.ebook {
                background: rgba(108,58,158,0.9);
            }

            .resource-card .card-img .type-tag.tips {
                background: rgba(16,163,74,0.9);
            }

            .resource-card .card-img .type-tag.qa {
                background: rgba(139,92,246,0.9);
            }

        .resource-card .card-body {
            padding: 1rem 1.25rem 1.25rem;
            flex: 1;
            display: flex;
            flex-direction: column;
        }

            .resource-card .card-body .meta {
                display: flex;
                flex-wrap: wrap;
                gap: 0.5rem;
                font-size: 0.65rem;
                color: #94a3b8;
                margin-bottom: 0.25rem;
            }

                .resource-card .card-body .meta i {
                    color: #6c3a9e;
                    margin-right: 0.15rem;
                }

                .resource-card .card-body .meta .author-link {
                    color: #6c3a9e;
                    text-decoration: none;
                    font-weight: 600;
                }

                    .resource-card .card-body .meta .author-link:hover {
                        text-decoration: underline;
                    }

            .resource-card .card-body .category-tag {
                font-size: 0.55rem;
                font-weight: 600;
                padding: 0.1rem 0.6rem;
                border-radius: 20px;
                background: #ede4f5;
                color: #6c3a9e;
                display: inline-block;
                margin-bottom: 0.15rem;
            }

            .resource-card .card-body h4 {
                font-size: 1rem;
                font-weight: 700;
                color: #0a1628;
                margin-bottom: 0.25rem;
                line-height: 1.3;
            }

                .resource-card .card-body h4 a {
                    color: #0a1628;
                    text-decoration: none;
                    transition: color 0.3s ease;
                }

                    .resource-card .card-body h4 a:hover {
                        color: #6c3a9e;
                    }

            .resource-card .card-body p {
                font-size: 0.8rem;
                color: #64748b;
                margin-bottom: 0.5rem;
                flex: 1;
                line-height: 1.5;
            }

            .resource-card .card-body .stats {
                display: flex;
                flex-wrap: wrap;
                gap: 0.5rem 0.75rem;
                font-size: 0.65rem;
                color: #94a3b8;
                margin-top: 0.25rem;
                padding-top: 0.25rem;
                border-top: 1px solid #eef2f6;
            }

                .resource-card .card-body .stats i {
                    color: #6c3a9e;
                    margin-right: 0.15rem;
                }

            .resource-card .card-body .btn-resource {
                color: #6c3a9e;
                font-weight: 600;
                font-size: 0.8rem;
                display: inline-flex;
                align-items: center;
                gap: 0.3rem;
                text-decoration: none;
                transition: all 0.3s ease;
                margin-top: 0.5rem;
            }

                .resource-card .card-body .btn-resource:hover {
                    gap: 0.6rem;
                    color: #4e2a75;
                }

    .iframe-container {
        position: relative;
        width: 100%;
        height: 200px;
        overflow: hidden;
        background: #000;
    }

        .iframe-container iframe {
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            border: none;
        }

    .resource-types-bottom {
        padding: 3rem 0 4rem;
        background: #ffffff;
    }

    .resource-type-card-bottom {
        text-align: center;
        padding: 1.5rem 1rem;
        border-radius: 16px;
        background: #fff;
        border: 1px solid #eef2f6;
        transition: all 0.3s ease;
        height: 100%;
        position: relative;
        overflow: hidden;
        text-decoration: none;
        color: inherit;
        display: block;
    }

        .resource-type-card-bottom::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            height: 3px;
            background: linear-gradient(90deg, #6c3a9e, #0d9488);
            opacity: 0;
            transition: all 0.3s ease;
        }

        .resource-type-card-bottom:hover {
            border-color: #6c3a9e;
            transform: translateY(-4px);
            box-shadow: 0 8px 24px rgba(108,58,158,0.06);
            text-decoration: none;
            color: inherit;
        }

            .resource-type-card-bottom:hover::before {
                opacity: 1;
            }

        .resource-type-card-bottom .icon {
            width: 48px;
            height: 48px;
            border-radius: 12px;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 1.4rem;
            margin: 0 auto 0.5rem;
            transition: all 0.3s ease;
        }

        .resource-type-card-bottom:hover .icon {
            transform: scale(1.05);
        }

        .resource-type-card-bottom .icon.purple {
            background: #ede4f5;
            color: #6c3a9e;
        }

        .resource-type-card-bottom .icon.gold {
            background: #fef3c7;
            color: #d97706;
        }

        .resource-type-card-bottom .icon.teal {
            background: #f0fdfa;
            color: #0d9488;
        }

        .resource-type-card-bottom .icon.blue {
            background: #dbeafe;
            color: #2563eb;
        }

        .resource-type-card-bottom .icon.green {
            background: #dcfce7;
            color: #16a34a;
        }

        .resource-type-card-bottom .icon.red {
            background: #fee2e2;
            color: #dc2626;
        }

        .resource-type-card-bottom .icon.pink {
            background: #fce7f3;
            color: #db2777;
        }

        .resource-type-card-bottom .icon.indigo {
            background: #e0e7ff;
            color: #4f46e5;
        }

        .resource-type-card-bottom h6 {
            font-weight: 700;
            color: #0a1628;
            font-size: 0.9rem;
            margin-bottom: 0.15rem;
        }

        .resource-type-card-bottom p {
            font-size: 0.8rem;
            color: #64748b;
            margin: 0 0 0.5rem;
            line-height: 1.5;
        }

        .resource-type-card-bottom .count {
            font-size: 0.65rem;
            font-weight: 600;
            color: #6c3a9e;
            display: block;
        }

    .empty-state {
        text-align: center;
        padding: 3rem 2rem;
        background: #fff;
        border-radius: 16px;
        border: 2px dashed #eef2f6;
    }

        .empty-state .icon {
            font-size: 3.5rem;
            color: #6c3a9e;
            opacity: 0.3;
            margin-bottom: 0.75rem;
        }

        .empty-state h3 {
            font-weight: 700;
            color: #0a1628;
            margin-bottom: 0.25rem;
            font-size: 1.2rem;
        }

        .empty-state p {
            color: #64748b;
            max-width: 400px;
            margin: 0 auto 1rem;
            font-size: 0.9rem;
        }

    .debug-message {
        background: #fef3c7;
        border: 1px solid #f59e0b;
        border-radius: 8px;
        padding: 0.5rem 0.75rem;
        margin-bottom: 0.75rem;
        color: #92400e;
        font-size: 0.8rem;
    }

        .debug-message i {
            color: #d97706;
        }

    .section-badge {
        display: inline-block;
        background: rgba(108,58,158,0.08);
        color: #6c3a9e;
        padding: 0.2rem 1rem;
        border-radius: 50px;
        font-size: 0.7rem;
        font-weight: 600;
        letter-spacing: 0.5px;
        text-transform: uppercase;
        margin-bottom: 0.5rem;
    }

    .resources-cta-slim {
        padding: 3rem 0;
        background: #0a0e1a;
    }

    .cta-wrapper-slim {
        background: linear-gradient(135deg, #0a0e1a 0%, #1a0a2e 20%, #0d9488 40%, #6c3a9e 60%, #0a0e1a 100%);
        border-radius: 20px;
        padding: 2.5rem 2rem;
        position: relative;
        overflow: hidden;
        border: 1px solid rgba(252,211,77,0.08);
        color: #fff;
    }

        .cta-wrapper-slim::before {
            content: '';
            position: absolute;
            top: -30%;
            right: -10%;
            width: 400px;
            height: 400px;
            background: radial-gradient(circle, rgba(252,211,77,0.04) 0%, transparent 70%);
            border-radius: 50%;
            pointer-events: none;
        }

        .cta-wrapper-slim .cta-badge {
            display: inline-flex;
            align-items: center;
            gap: 0.4rem;
            background: rgba(252,211,77,0.08);
            border: 1px solid rgba(252,211,77,0.08);
            padding: 0.2rem 0.8rem;
            border-radius: 6px;
            font-size: 0.6rem;
            font-weight: 700;
            font-family: 'Courier New', monospace;
            color: #fcd34d;
            margin-bottom: 0.25rem;
        }

        .cta-wrapper-slim h2 {
            font-size: 2rem;
            font-weight: 800;
            color: #fff;
            margin-bottom: 0.25rem;
        }

            .cta-wrapper-slim h2 span {
                color: #fcd34d;
            }

        .cta-wrapper-slim p {
            color: rgba(255,255,255,0.6);
            font-size: 0.95rem;
            max-width: 500px;
            margin-bottom: 1rem;
            line-height: 1.6;
        }

        .cta-wrapper-slim .btn-cta-gold {
            background: linear-gradient(135deg, #fcd34d, #f59e0b);
            color: #1a0a2e;
            border-radius: 50px;
            padding: 0.5rem 1.8rem;
            display: inline-block;
            font-weight: 700;
            font-size: 0.9rem;
            transition: all 0.3s ease;
            text-decoration: none;
            border: none;
            box-shadow: 0 4px 20px rgba(252,211,77,0.2);
        }

            .cta-wrapper-slim .btn-cta-gold:hover {
                transform: translateY(-2px);
                box-shadow: 0 8px 30px rgba(252,211,77,0.3);
                color: #1a0a2e;
            }

    .pagination-wrapper {
        padding: 1.5rem 0 0.5rem;
    }

    .pagination {
        display: flex;
        justify-content: center;
        align-items: center;
        gap: 0.5rem;
        flex-wrap: wrap;
        margin: 0;
        padding: 0;
        list-style: none;
    }

        .pagination .page-item {
            display: inline-block;
        }

        .pagination .page-link {
            display: flex;
            align-items: center;
            justify-content: center;
            min-width: 42px;
            height: 42px;
            padding: 0 1rem;
            border-radius: 10px;
            font-size: 0.85rem;
            font-weight: 600;
            color: #64748b;
            background: #fff;
            border: 1px solid #eef2f6;
            transition: all 0.3s ease;
            text-decoration: none;
            cursor: pointer;
        }

            .pagination .page-link:hover {
                background: #f1f5f9;
                border-color: #6c3a9e;
                color: #6c3a9e;
                transform: translateY(-2px);
                box-shadow: 0 4px 12px rgba(108,58,158,0.1);
            }

        .pagination .page-item.active .page-link {
            background: linear-gradient(135deg, #6c3a9e, #4e2a75);
            border-color: #6c3a9e;
            color: #fff;
            box-shadow: 0 4px 16px rgba(108,58,158,0.25);
            transform: translateY(-2px);
        }

        .pagination .page-item.disabled .page-link {
            opacity: 0.4;
            cursor: not-allowed;
            pointer-events: none;
        }

        .pagination .page-link .icofont {
            font-size: 0.9rem;
        }

    .pagination-info {
        text-align: center;
        color: #94a3b8;
        font-size: 0.8rem;
        margin-top: 0.75rem;
        font-weight: 500;
    }

        .pagination-info strong {
            color: #0a1628;
            font-weight: 700;
        }

    @@media (max-width: 576px) {
        .pagination .page-link {
            min-width: 36px;
            height: 36px;
            padding: 0 0.6rem;
            font-size: 0.75rem;
            border-radius: 8px;
        }

        .pagination .page-item:not(.active):not(.disabled) .page-link {
            display: none;
        }

        .pagination .page-item.prev .page-link, .pagination .page-item.next .page-link, .pagination .page-item.active .page-link {
            display: flex;
        }

        .pagination-info {
            font-size: 0.7rem;
        }

        .resources-hero-slim {
            padding: 1.5rem 0 1rem;
        }

            .resources-hero-slim h1 {
                font-size: 1.4rem;
            }

            .resources-hero-slim .hero-badge {
                font-size: 0.5rem;
                padding: 0.15rem 0.6rem;
            }

            .resources-hero-slim .btn {
                width: 100%;
                text-align: center;
            }

            .resources-hero-slim .quick-actions {
                display: none;
            }

        .resource-card .card-img {
            height: 150px;
        }

        .resource-card .card-body {
            padding: 0.75rem 1rem 1rem;
        }

            .resource-card .card-body h4 {
                font-size: 0.85rem;
            }

            .resource-card .card-body p {
                font-size: 0.75rem;
            }

            .resource-card .card-body .meta {
                font-size: 0.55rem;
                gap: 0.2rem;
            }

            .resource-card .card-body .stats {
                font-size: 0.55rem;
                flex-wrap: wrap;
                gap: 0.2rem 0.4rem;
            }

        .iframe-container {
            height: 150px;
        }

        .resource-types-bottom {
            padding: 2rem 0;
        }

        .cta-wrapper-slim {
            padding: 1rem;
            text-align: center;
        }

            .cta-wrapper-slim h2 {
                font-size: 1.1rem;
            }

            .cta-wrapper-slim p {
                font-size: 0.8rem;
            }

            .cta-wrapper-slim .btn-cta-gold {
                width: 100%;
                text-align: center;
            }

        .empty-state {
            padding: 2rem 1rem;
        }

            .empty-state .icon {
                font-size: 2.5rem;
            }

            .empty-state h3 {
                font-size: 1rem;
            }

            .empty-state p {
                font-size: 0.8rem;
            }

        .filter-bar .row > div {
            margin-bottom: 0.5rem;
        }
    }

    @@media (max-width: 768px) {
        .resources-hero-slim h1 {
            font-size: 1.6rem;
        }

        .resources-hero-slim .subtitle {
            font-size: 0.85rem;
        }

        .resources-hero-slim .hero-stats {
            gap: 0.75rem;
        }

            .resources-hero-slim .hero-stats .stat-item .number {
                font-size: 1rem;
            }

        .resources-hero-slim .btn-hero, .resources-hero-slim .btn-outline-hero {
            width: 100%;
            text-align: center;
        }

        .resources-hero-slim .d-flex.gap-3 {
            flex-direction: column;
            align-items: center;
        }

        .resource-card .card-img {
            height: 170px;
        }

        .iframe-container {
            height: 170px;
        }

        .cta-wrapper-slim {
            padding: 1.5rem;
            text-align: center;
        }

            .cta-wrapper-slim h2 {
                font-size: 1.3rem;
            }

            .cta-wrapper-slim .btn-cta-gold {
                width: 100%;
                text-align: center;
            }

        .resource-type-card-bottom {
            padding: 1rem;
        }

            .resource-type-card-bottom .icon {
                width: 40px;
                height: 40px;
                font-size: 1.2rem;
            }

            .resource-type-card-bottom h6 {
                font-size: 0.8rem;
            }

            .resource-type-card-bottom p {
                font-size: 0.7rem;
            }

        .filter-bar .btn-filter {
            height: 36px;
            font-size: 0.8rem;
        }
    }

    @@media (max-width: 992px) {
        .resources-hero-slim h1 {
            font-size: 2rem;
        }

        .resources-hero-slim .hero-stats {
            gap: 1rem;
        }

            .resources-hero-slim .hero-stats .stat-item .number {
                font-size: 1.2rem;
            }

        .resource-card .card-img {
            height: 180px;
        }

        .iframe-container {
            height: 180px;
        }

        .cta-wrapper-slim {
            padding: 2rem 1.5rem;
        }

            .cta-wrapper-slim h2 {
                font-size: 1.6rem;
            }
    }