 *,
        *::before,
        *::after {
            box-sizing: border-box;
            margin: 0;
            padding: 0
        }

        :root {
            --font: "DM Sans", sans-serif;
            --blue: #1a56db;
            --blue-dark: #1340b0;
            --blue-mid: #2563eb;
            --blue-light: #dbeafe;
            --blue-xlight: #eff6ff;
            --green: #059669;
            --green-light: #d1fae5;
            --green-dark: #047857;
            --gold: #f59e0b;
            --gold-light: #fef3c7;
            --slate: #0f172a;
            --slate-700: #334155;
            --slate-500: #64748b;
            --slate-300: #cbd5e1;
            --slate-100: #f1f5f9;
            --white: #ffffff;
            --off: #f8fafc;
        }

        html {
            scroll-behavior: smooth
        }

        body {
            font-family: var(--font);
            background: var(--off);
            color: var(--slate);
            overflow-x: hidden
        }

        .navbar {
            position: fixed;
            top: 0;
            left: 0;
            right: 0;
            z-index: 999;
            background: rgba(255, 255, 255, .92);
            backdrop-filter: blur(20px) saturate(180%);
            border-bottom: 1px solid rgba(203, 213, 225, .5);
            transition: box-shadow .3s
        }

        .navbar.scrolled {
            box-shadow: 0 4px 24px rgba(15, 23, 42, .08)
        }

        .nav-inner {
            max-width: 1200px;
            margin: 0 auto;
            padding: 0 32px;
            display: flex;
            align-items: center;
            justify-content: space-between;
            height: 68px
        }

        .nav-logo {
            display: flex;
            align-items: center;
            gap: 12px;
            text-decoration: none
        }

        .nav-logo-mark {
            width: 40px;
            height: 40px;
            background: linear-gradient(135deg, var(--blue), var(--blue-mid));
            border-radius: 12px;
            display: flex;
            align-items: center;
            justify-content: center;
            box-shadow: 0 4px 12px rgba(26, 86, 219, .3)
        }

        .nav-logo-mark svg {
            width: 20px;
            height: 20px;
            color: white
        }

        .nav-logo-text {
            font-weight: 700;
            font-size: 1rem;
            color: var(--slate);
            letter-spacing: -.02em;
            line-height: 1.2
        }

        .nav-logo-text span {
            display: block;
            font-weight: 400;
            font-size: .72rem;
            color: var(--slate-500)
        }

        .nav-menu {
            display: flex;
            align-items: center;
            gap: 2px
        }

        .nav-item {
            font-size: .875rem;
            font-weight: 500;
            color: var(--slate-700);
            text-decoration: none;
            padding: 8px 14px;
            border-radius: 8px;
            transition: all .2s;
            white-space: nowrap
        }

        .nav-item:hover {
            color: var(--blue);
            background: var(--blue-xlight)
        }

        .nav-item.active {
            color: var(--green)
        }

        .nav-divider {
            width: 1px;
            height: 20px;
            background: var(--slate-300);
            margin: 0 6px
        }

        .nav-login {
            font-size: .875rem;
            font-weight: 600;
            background: linear-gradient(135deg, var(--blue), var(--blue-mid));
            color: white;
            padding: 9px 22px;
            border-radius: 10px;
            text-decoration: none;
            box-shadow: 0 2px 8px rgba(26, 86, 219, .28);
            transition: all .2s;
            white-space: nowrap
        }

        .nav-login:hover {
            box-shadow: 0 4px 16px rgba(26, 86, 219, .4);
            transform: translateY(-1px)
        }

        .nav-hamburger {
            display: none;
            flex-direction: column;
            gap: 5px;
            cursor: pointer;
            padding: 6px;
            border: none;
            background: none
        }

        .nav-hamburger span {
            width: 24px;
            height: 2px;
            background: var(--slate);
            border-radius: 2px;
            transition: all .3s;
            display: block
        }

        .mobile-nav {
            display: none;
            position: fixed;
            top: 68px;
            left: 0;
            right: 0;
            bottom: 0;
            background: white;
            z-index: 998;
            padding: 24px;
            flex-direction: column;
            gap: 4px;
            overflow-y: auto
        }

        .mobile-nav.open {
            display: flex
        }

        .mobile-nav a {
            font-size: 1rem;
            font-weight: 500;
            color: var(--slate);
            text-decoration: none;
            padding: 14px 16px;
            border-radius: 10px;
            transition: all .2s
        }

        .mobile-nav a:hover {
            background: var(--green-light);
            color: var(--green-dark)
        }

        .mobile-nav .mobile-login {
            background: var(--blue);
            color: white;
            text-align: center;
            margin-top: 12px;
            font-weight: 600
        }

        /* HERO — green theme */
        .page-hero {
            padding-top: 68px;
            background: linear-gradient(135deg, #064e3b 0%, #047857 55%, #059669 100%);
            position: relative;
            overflow: hidden
        }

        .page-hero::before {
            content: "";
            position: absolute;
            inset: 0;
            background: radial-gradient(ellipse 60% 80% at 90% 50%, rgba(52, 211, 153, .2) 0%, transparent 60%)
        }

        .page-hero::after {
            content: "";
            position: absolute;
            inset: 0;
            background-image: linear-gradient(rgba(255, 255, 255, .03) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .03) 1px, transparent 1px);
            background-size: 40px 40px
        }

        .hero-inner {
            position: relative;
            z-index: 2;
            max-width: 1200px;
            margin: 0 auto;
            padding: 52px 32px 72px
        }

        .breadcrumb {
            display: flex;
            align-items: center;
            gap: 8px;
            margin-bottom: 20px
        }

        .breadcrumb a {
            font-size: .8rem;
            color: rgba(255, 255, 255, .6);
            text-decoration: none;
            transition: color .2s
        }

        .breadcrumb a:hover {
            color: white
        }

        .breadcrumb span {
            font-size: .8rem;
            color: rgba(255, 255, 255, .4)
        }

        .hero-badge {
            display: inline-flex;
            align-items: center;
            gap: 8px;
            background: rgba(255, 255, 255, .12);
            border: 1px solid rgba(255, 255, 255, .2);
            color: rgba(255, 255, 255, .9);
            font-size: .75rem;
            font-weight: 600;
            padding: 6px 14px;
            border-radius: 100px;
            margin-bottom: 16px;
            backdrop-filter: blur(10px)
        }

        .hero-title {
            font-size: clamp(1.8rem, 3.5vw, 2.6rem);
            font-weight: 700;
            color: white;
            letter-spacing: -.035em;
            line-height: 1.15;
            margin-bottom: 10px
        }

        .hero-desc {
            font-size: .95rem;
            color: rgba(255, 255, 255, .72);
            line-height: 1.7;
            max-width: 520px;
            margin-bottom: 28px
        }

        .hero-stats {
            display: flex;
            gap: 12px;
            flex-wrap: wrap
        }

        .hstat {
            background: rgba(255, 255, 255, .1);
            border: 1px solid rgba(255, 255, 255, .15);
            backdrop-filter: blur(8px);
            padding: 12px 20px;
            border-radius: 12px;
            text-align: center
        }

        .hstat-num {
            font-size: 1.5rem;
            font-weight: 800;
            color: white;
            letter-spacing: -.04em
        }

        .hstat-label {
            font-size: .72rem;
            color: rgba(255, 255, 255, .65);
            margin-top: 2px
        }

        .wave {
            display: block;
            margin-top: -2px
        }

        /* TYPE FILTER TABS */
        .type-tabs {
            display: flex;
            gap: 8px;
            flex-wrap: wrap;
            margin-bottom: 28px
        }

        .type-tab {
            display: flex;
            align-items: center;
            gap: 6px;
            padding: 8px 16px;
            border-radius: 100px;
            border: 1.5px solid var(--slate-300);
            background: white;
            font-family: var(--font);
            font-size: .8rem;
            font-weight: 600;
            color: var(--slate-500);
            cursor: pointer;
            transition: all .2s
        }

        .type-tab:hover {
            border-color: var(--green);
            color: var(--green-dark);
            background: var(--green-light)
        }

        .type-tab.active {
            border-color: var(--green);
            background: var(--green);
            color: white
        }

        .main {
            max-width: 1200px;
            margin: 0 auto;
            padding: 48px 32px 80px
        }

        .search-wrap {
            margin-bottom: 24px;
            display: flex;
            gap: 12px;
            align-items: center;
            flex-wrap: wrap
        }

        .search-input-wrap {
            position: relative;
            flex: 1;
            min-width: 240px
        }

        .search-icon {
            position: absolute;
            left: 14px;
            top: 50%;
            transform: translateY(-50%);
            color: var(--slate-500);
            width: 18px;
            height: 18px;
            pointer-events: none
        }

        .search-input {
            width: 100%;
            padding: 11px 14px 11px 42px;
            border: 1.5px solid var(--slate-300);
            border-radius: 11px;
            font-family: var(--font);
            font-size: .9rem;
            color: var(--slate);
            background: white;
            outline: none;
            transition: all .2s
        }

        .search-input:focus {
            border-color: var(--green);
            box-shadow: 0 0 0 4px rgba(5, 150, 105, .08)
        }

        .search-input::placeholder {
            color: var(--slate-500)
        }

        .grid-label {
            font-size: .8rem;
            font-weight: 600;
            color: var(--slate-500);
            margin-bottom: 16px
        }

        /* SUBJECT GRID — green accent */
        .subject-grid {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
            gap: 16px
        }

        .subject-card {
            background: white;
            border: 1.5px solid var(--slate-100);
            border-radius: 16px;
            padding: 24px 18px;
            text-align: center;
            cursor: pointer;
            transition: all .25s;
            position: relative;
            overflow: hidden
        }

        .subject-card::before {
            content: "";
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            height: 3px;
            background: linear-gradient(90deg, var(--green), #34d399);
            opacity: 0;
            transition: opacity .3s
        }

        .subject-card:hover {
            transform: translateY(-4px);
            box-shadow: 0 14px 36px rgba(15, 23, 42, .11);
            border-color: transparent
        }

        .subject-card:hover::before {
            opacity: 1
        }

        .subject-card:hover .sc-icon {
            transform: scale(1.1);
            background: #a7f3d0
        }

        .sc-icon {
            width: 56px;
            height: 56px;
            border-radius: 14px;
            background: var(--green-light);
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 1.6rem;
            margin: 0 auto 14px;
            transition: all .25s
        }

        .sc-name {
            font-size: .9rem;
            font-weight: 700;
            color: var(--slate);
            margin-bottom: 5px
        }

        .sc-count {
            font-size: .75rem;
            color: var(--slate-500)
        }

        .sc-count strong {
            color: var(--green-dark);
            font-weight: 700
        }

        .sc-arrow {
            position: absolute;
            top: 12px;
            right: 12px;
            width: 20px;
            height: 20px;
            border-radius: 6px;
            background: var(--green-light);
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: .65rem;
            color: var(--green-dark);
            opacity: 0;
            transform: translateX(4px);
            transition: all .25s
        }

        .subject-card:hover .sc-arrow {
            opacity: 1;
            transform: translateX(0)
        }

        /* MODAL */
        .modal-overlay {
            position: fixed;
            inset: 0;
            background: rgba(15, 23, 42, .55);
            backdrop-filter: blur(6px);
            z-index: 1100;
            display: none;
            align-items: center;
            justify-content: center;
            padding: 20px;
            animation: fadeOverlay .2s ease
        }

        .modal-overlay.open {
            display: flex
        }

        @keyframes fadeOverlay {
            from {
                opacity: 0
            }

            to {
                opacity: 1
            }
        }

        .modal {
            background: white;
            border-radius: 20px;
            width: 100%;
            max-width: 820px;
            max-height: 88vh;
            display: flex;
            flex-direction: column;
            overflow: hidden;
            box-shadow: 0 24px 80px rgba(15, 23, 42, .25);
            animation: slideUp .25s ease
        }

        @keyframes slideUp {
            from {
                opacity: 0;
                transform: translateY(20px)
            }

            to {
                opacity: 1;
                transform: translateY(0)
            }
        }

        .modal-head {
            padding: 24px 28px;
            border-bottom: 1px solid var(--slate-100);
            display: flex;
            align-items: flex-start;
            justify-content: space-between;
            gap: 16px
        }

        .modal-head-left {
            display: flex;
            align-items: center;
            gap: 14px
        }

        .modal-head-icon {
            width: 52px;
            height: 52px;
            border-radius: 14px;
            background: var(--green-light);
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 1.5rem;
            flex-shrink: 0
        }

        .modal-head-title {
            font-size: 1.2rem;
            font-weight: 700;
            color: var(--slate);
            letter-spacing: -.025em;
            margin-bottom: 3px
        }

        .modal-head-sub {
            font-size: .8rem;
            color: var(--slate-500)
        }

        .modal-close {
            width: 36px;
            height: 36px;
            border-radius: 9px;
            border: 1.5px solid var(--slate-300);
            background: none;
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center;
            flex-shrink: 0;
            color: var(--slate-500);
            transition: all .2s;
            font-size: 1.1rem
        }

        .modal-close:hover {
            background: var(--slate-100);
            color: var(--slate)
        }

        /* Media type filter inside modal */
        .modal-filter {
            padding: 12px 28px;
            border-bottom: 1px solid var(--slate-100);
            display: flex;
            gap: 6px;
            flex-wrap: wrap
        }

        .mf-btn {
            padding: 5px 12px;
            border-radius: 100px;
            border: 1.5px solid var(--slate-300);
            background: white;
            font-family: var(--font);
            font-size: .72rem;
            font-weight: 600;
            color: var(--slate-500);
            cursor: pointer;
            transition: all .2s
        }

        .mf-btn:hover,
        .mf-btn.active {
            border-color: var(--green);
            background: var(--green-light);
            color: var(--green-dark)
        }

        .modal-toolbar {
            padding: 12px 28px;
            display: flex;
            gap: 10px;
            align-items: center;
            flex-wrap: wrap;
            border-bottom: 1px solid var(--slate-100)
        }

        .modal-search {
            position: relative;
            flex: 1;
            min-width: 180px
        }

        .modal-search svg {
            position: absolute;
            left: 11px;
            top: 50%;
            transform: translateY(-50%);
            width: 15px;
            height: 15px;
            color: var(--slate-500)
        }

        .modal-search input {
            width: 100%;
            padding: 8px 12px 8px 34px;
            border: 1.5px solid var(--slate-300);
            border-radius: 9px;
            font-family: var(--font);
            font-size: .82rem;
            outline: none;
            transition: all .2s;
            color: var(--slate)
        }

        .modal-search input:focus {
            border-color: var(--green);
            box-shadow: 0 0 0 3px rgba(5, 150, 105, .07)
        }

        .modal-count {
            font-size: .78rem;
            color: var(--slate-500);
            white-space: nowrap
        }

        .modal-body {
            padding: 16px 28px 24px;
            overflow-y: auto;
            flex: 1
        }

        /* Media list — card grid */
        .media-list {
            display: flex;
            flex-direction: column;
            gap: 10px
        }

        .media-item {
            display: flex;
            align-items: center;
            gap: 14px;
            padding: 14px 16px;
            border: 1.5px solid var(--slate-100);
            border-radius: 12px;
            background: var(--off);
            transition: all .2s
        }

        .media-item:hover {
            border-color: #a7f3d0;
            background: var(--green-light)
        }

        .media-type-badge {
            padding: 3px 10px;
            border-radius: 100px;
            font-size: .68rem;
            font-weight: 700;
            flex-shrink: 0;
            letter-spacing: .02em
        }

        .badge-video {
            background: #fee2e2;
            color: #b91c1c
        }

        .badge-ppt {
            background: #fef3c7;
            color: #92400e
        }

        .badge-pdf {
            background: #ede9fe;
            color: #5b21b6
        }

        .badge-infografis {
            background: #dbeafe;
            color: #1e40af
        }

        .badge-animasi {
            background: #d1fae5;
            color: #065f46
        }

        .media-info {
            flex: 1;
            min-width: 0
        }

        .media-title {
            font-size: .875rem;
            font-weight: 600;
            color: var(--slate);
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
            margin-bottom: 3px
        }

        .media-meta {
            font-size: .72rem;
            color: var(--slate-500)
        }

        .media-actions {
            display: flex;
            gap: 7px;
            flex-shrink: 0
        }

        .btn-view,
        .btn-dl {
            display: inline-flex;
            align-items: center;
            gap: 5px;
            padding: 7px 13px;
            border-radius: 8px;
            font-family: var(--font);
            font-size: .75rem;
            font-weight: 600;
            cursor: pointer;
            border: none;
            transition: all .2s;
            text-decoration: none;
            white-space: nowrap
        }

        .btn-view {
            background: var(--green-light);
            color: var(--green-dark);
            border: 1.5px solid #a7f3d0
        }

        .btn-view:hover {
            background: var(--green);
            color: white;
            border-color: var(--green)
        }

        .btn-dl {
            background: var(--blue-xlight);
            color: var(--blue);
            border: 1.5px solid var(--blue-light)
        }

        .btn-dl:hover {
            background: var(--blue);
            color: white;
            border-color: var(--blue)
        }

        .no-results {
            text-align: center;
            padding: 40px 20px;
            color: var(--slate-500);
            font-size: .9rem
        }

        .reveal {
            opacity: 0;
            transform: translateY(20px);
            transition: opacity .5s ease, transform .5s ease
        }

        .reveal.visible {
            opacity: 1;
            transform: none
        }

        footer {
            background: var(--slate);
            padding: 40px 32px 24px
        }

        .footer-inner {
            max-width: 1200px;
            margin: 0 auto;
            display: flex;
            justify-content: space-between;
            align-items: center;
            flex-wrap: wrap;
            gap: 12px
        }

        .footer-inner p {
            font-size: .8rem;
            color: #64748b
        }

        .footer-logo {
            display: flex;
            align-items: center;
            gap: 10px
        }

        .footer-logo span {
            font-weight: 700;
            color: white;
            font-size: .9rem
        }

        @media(max-width:768px) {

            .nav-menu,
            .nav-divider,
            .nav-login {
                display: none
            }

            .nav-hamburger {
                display: flex
            }

            .main {
                padding: 32px 20px 60px
            }

            .hero-inner {
                padding: 40px 20px 60px
            }

            .nav-inner {
                padding: 0 20px
            }

            .subject-grid {
                grid-template-columns: repeat(auto-fill, minmax(140px, 1fr))
            }

            .media-item {
                flex-wrap: wrap
            }

            .media-actions {
                width: 100%
            }
        }