        :root {
            --bg-color: #1a120b;
            --bg-color-2: #241a10;
            --card-bg: rgba(48, 34, 20, 0.75);
            --card-hover: rgba(58, 42, 26, 0.85);
            --text-main: #f5e9d6;
            --text-sub: #c9b393;
            --primary: #d8a84e;
            --primary-glow: rgba(216, 168, 78, 0.25);
            --border-color: rgba(216, 168, 78, 0.25);
        }

        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
            font-family: 'Google Sans', -apple-system, sans-serif;
        }

        img.emoji {
            height: 1em;
            width: 1em;
            margin: 0 0.05em 0 0.1em;
            vertical-align: -0.1em;
            display: inline-block;
        }

        i[class^="fa-"], i[class*=" fa-"] {
            margin-right: 8px;
        }

        html {
            scroll-behavior: smooth;
        }

        body {
            background-color: var(--bg-color);
            background-image:
                radial-gradient(circle at 20% 10%, rgba(216, 168, 78, 0.08) 0%, transparent 45%),
                radial-gradient(circle at 80% 0%, rgba(216, 168, 78, 0.06) 0%, transparent 40%),
                linear-gradient(180deg, var(--bg-color) 0%, var(--bg-color-2) 100%);
            color: var(--text-main);
            padding: 30px 20px 90px 20px;
            display: flex;
            flex-direction: column;
            align-items: center;
            min-height: 100vh;
            position: relative;
        }

        /* ---- Top bar ---- */
        .top-bar {
            width: 100%;
            max-width: 900px;
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 26px;
            gap: 12px;
        }

        .menu-container {
            position: relative;
        }

        .btn-menu {
            background: rgba(48, 34, 20, 0.7);
            border: 2px solid var(--border-color);
            color: var(--primary);
            font-size: 1.2rem;
            cursor: pointer;
            width: 44px;
            height: 44px;
            display: flex;
            align-items: center;
            justify-content: center;
            border-radius: 12px;
            backdrop-filter: blur(6px);
        }

        .btn-menu i { margin-right: 0; }

        .top-bar-title {
            font-weight: 700;
            letter-spacing: 1px;
            color: var(--primary);
            font-size: 0.95rem;
        }

        .dropdown-menu {
            display: none;
            position: absolute;
            top: 100%;
            left: 0;
            background-color: #241a10;
            border: 2px solid var(--border-color);
            border-radius: 16px;
            width: 230px;
            box-shadow: 0 10px 30px rgba(0,0,0,0.5);
            z-index: 100;
            padding: 10px;
            margin-top: 10px;
            opacity: 0;
            transform: translateY(-10px);
            transition: opacity 0.25s ease, transform 0.25s ease;
        }

        .dropdown-menu.show {
            display: block;
            opacity: 1;
            transform: translateY(0);
        }

        .dropdown-menu a {
            display: flex;
            align-items: center;
            color: var(--text-main);
            text-decoration: none;
            font-size: 0.9rem;
            padding: 10px 12px;
            border-radius: 10px;
            transition: background 0.2s ease, color 0.2s ease;
        }

        .dropdown-menu a i { color: var(--primary); }

        .dropdown-menu a:hover {
            background: rgba(216, 168, 78, 0.12);
        }

        /* ---- Hero / profil kelas ---- */
        .hero {
            text-align: center;
            max-width: 560px;
            margin-bottom: 40px;
        }

        .hero-photo-wrap {
            width: 128px;
            height: 128px;
            border-radius: 50%;
            margin: 0 auto 18px auto;
            padding: 4px;
            background: linear-gradient(135deg, var(--primary), #8a5a24);
            box-shadow: 0 0 30px rgba(216, 168, 78, 0.35);
        }

        .hero-photo {
            width: 100%;
            height: 100%;
            border-radius: 50%;
            object-fit: cover;
            display: block;
            border: 3px solid var(--bg-color);
        }

        .hero-photo-placeholder {
            width: 100%;
            height: 100%;
            border-radius: 50%;
            border: 3px solid var(--bg-color);
            background: var(--bg-color-2);
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 2.4rem;
            color: var(--primary);
        }

        .hero-badge {
            display: inline-block;
            padding: 5px 16px;
            border-radius: 30px;
            background: rgba(216, 168, 78, 0.12);
            border: 1px solid var(--border-color);
            color: var(--primary);
            font-size: 0.78rem;
            font-weight: 700;
            letter-spacing: 2px;
            margin-bottom: 12px;
        }

        .hero h1 {
            font-size: 2.4rem;
            font-weight: 700;
            letter-spacing: 1px;
            color: var(--text-main);
            margin-bottom: 10px;
        }

        .hero p {
            color: var(--text-sub);
            font-size: 1rem;
            line-height: 1.6;
        }

        /* ---- Nav cards ---- */
        .nav-cards {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
            gap: 16px;
            width: 100%;
            max-width: 900px;
            margin-bottom: 20px;
        }

        .nav-card {
            background-color: var(--card-bg);
            border: 1px solid var(--border-color);
            border-radius: 18px;
            padding: 26px 16px;
            text-decoration: none;
            color: var(--text-main);
            display: flex;
            flex-direction: column;
            align-items: center;
            text-align: center;
            gap: 10px;
            transition: transform 0.3s ease, background-color 0.3s ease, border-color 0.3s ease;
            backdrop-filter: blur(4px);
        }

        .nav-card:hover {
            transform: translateY(-5px);
            background-color: var(--card-hover);
            border-color: var(--primary);
        }

        .nav-card-icon {
            font-size: 1.8rem;
            color: var(--primary);
        }

        .nav-card-title {
            font-size: 0.95rem;
            font-weight: 700;
        }

        /* ---- Section title umum ---- */
        .section-title {
            width: 100%;
            max-width: 900px;
            font-size: 1.3rem;
            font-weight: 700;
            margin: 10px 0 22px 0;
            padding-left: 14px;
            position: relative;
            color: var(--text-main);
        }

        .section-title::before {
            content: '';
            position: absolute;
            left: 0;
            top: 12%;
            height: 76%;
            width: 4px;
            background: var(--primary);
            border-radius: 4px;
        }

        .section-title i { color: var(--primary); }

        /* ---- Card umum ---- */
        .content-card {
            width: 100%;
            max-width: 900px;
            background-color: var(--card-bg);
            border: 1px solid var(--border-color);
            border-radius: 18px;
            padding: 24px 20px;
            margin-bottom: 18px;
            backdrop-filter: blur(4px);
        }

        /* ---- Struktur kelas (tree) ---- */
        .tree-wrap {
            width: 100%;
            max-width: 900px;
            display: flex;
            flex-direction: column;
            align-items: center;
            gap: 10px;
            margin-bottom: 30px;
        }

        .tree-node {
            background: var(--card-bg);
            border: 1px solid var(--border-color);
            border-radius: 14px;
            padding: 14px 22px;
            text-align: center;
            min-width: 170px;
        }

        .tree-node-role {
            font-size: 0.72rem;
            text-transform: uppercase;
            letter-spacing: 1px;
            color: var(--primary);
            font-weight: 700;
            margin-bottom: 4px;
        }

        .tree-node-name {
            font-size: 0.95rem;
            font-weight: 600;
        }

        .tree-node.top {
            background: linear-gradient(135deg, rgba(216, 168, 78, 0.18), rgba(216, 168, 78, 0.05));
            border-color: var(--primary);
        }

        .tree-line {
            width: 2px;
            height: 22px;
            background: var(--border-color);
        }

        .tree-row {
            display: flex;
            flex-wrap: wrap;
            justify-content: center;
            gap: 14px;
        }

        /* ---- Juara / achievement cards ---- */
        .juara-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
            gap: 16px;
            width: 100%;
            max-width: 900px;
            margin-bottom: 20px;
        }

        .juara-card {
            background-color: var(--card-bg);
            border: 1px solid var(--border-color);
            border-radius: 18px;
            padding: 20px;
            display: flex;
            gap: 14px;
            align-items: flex-start;
        }

        .juara-icon {
            width: 46px;
            height: 46px;
            border-radius: 12px;
            background: rgba(216, 168, 78, 0.12);
            color: var(--primary);
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 1.2rem;
            flex-shrink: 0;
        }

        .juara-icon i { margin-right: 0; }

        .juara-title {
            font-weight: 700;
            font-size: 0.98rem;
            margin-bottom: 4px;
        }

        .juara-desc {
            font-size: 0.85rem;
            color: var(--text-sub);
            line-height: 1.5;
        }

        .juara-name {
            font-size: 0.82rem;
            color: var(--primary);
            margin-top: 6px;
            font-weight: 600;
        }

        /* ---- Kenangan / gallery ---- */
        .gallery-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
            gap: 14px;
            width: 100%;
            max-width: 900px;
            margin-bottom: 20px;
        }

        .gallery-item {
            background-color: var(--card-bg);
            border: 1px solid var(--border-color);
            border-radius: 16px;
            overflow: hidden;
        }

        .gallery-photo {
            width: 100%;
            aspect-ratio: 1 / 1;
            background: var(--bg-color-2);
            display: flex;
            align-items: center;
            justify-content: center;
            color: var(--text-sub);
            font-size: 1.6rem;
            object-fit: cover;
        }

        .gallery-caption {
            padding: 10px 12px;
            font-size: 0.8rem;
            color: var(--text-sub);
        }

        /* ---- Rangking table ---- */
        .rank-table {
            width: 100%;
            border-collapse: collapse;
            font-size: 0.88rem;
        }

        .rank-table th, .rank-table td {
            text-align: left;
            padding: 12px 10px;
            border-bottom: 1px solid var(--border-color);
        }

        .rank-table th {
            color: var(--primary);
            text-transform: uppercase;
            font-size: 0.72rem;
            letter-spacing: 1px;
        }

        .rank-pos {
            font-weight: 700;
            width: 36px;
        }

        .rank-pos.gold { color: #ffd700; }
        .rank-pos.silver { color: #d6d6d6; }
        .rank-pos.bronze { color: #cd7f32; }

        /* ---- Footer ---- */
        .footer {
            text-align: center;
            color: var(--text-sub);
            font-size: 0.82rem;
            margin-top: 40px;
            width: 100%;
            max-width: 900px;
            border-top: 1px solid var(--border-color);
            padding-top: 20px;
        }

        @media (max-width: 480px) {
            .hero h1 { font-size: 1.8rem; }
            body { padding: 24px 14px 90px 14px; }
        }
