/* Pure CSS – no frameworks */

@import url('https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap');

/* Theme variables */
:root {
    --bg: 250 250 251;
    --fg: 20 20 23;
    --muted: 112 115 124;

    --card: 255 255 255;
    --border: 229 231 235;

    --accent-start: 124 58 237;
    /* purple-600 */
    --accent-end: 236 72 153;
    /* pink-500 */
    --accent: 139 92 246;
    --rgb-accent: 139 92 246;
    /* violet */

    --radius: 16px;
    --shadow: 0 10px 30px rgba(0, 0, 0, 0.08);

    /* for loading animation */
    --skeleton-highlight: rgba(3, 3, 3, 0.103);
}

html[data-theme="dark"] {
    --bg: 15 15 18;
    --fg: 240 241 243;
    --muted: 160 162 170;

    --card: 26 27 31;
    --border: 50 52 61;

    --shadow: 0 20px 40px rgba(0, 0, 0, 0.45);

    --skeleton-highlight: rgba(255, 255, 255, 0.08);
}

* {
    box-sizing: border-box;
    font-family: "Poppins", sans-serif;
    padding: 0;
    margin: 0;
}

html,
body {
    height: 100%;
    scroll-behavior: smooth;
}

/*  Disable scroll when loading */
body.no-scroll {
    overflow: hidden;
}


body {
    margin: 0;
    color: rgb(var(--fg));
    background: rgb(var(--bg));
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

img {
    max-width: 100%;
    display: block;
}






a {
    color: inherit;
    text-decoration: none;
}

p {
    line-height: 1.7;
}

h1,
h2,
h3,
h4,
h5 {
    line-height: 1.2;
    margin: 0 0 10px;
}

/* separate-line */
.separate-line {
    width: 100%;
    height: 1px;
    background-color: rgba(var(--border));
    margin: 10px 0;
    border: none;
    grid-column: 1 / -1;
}


/* main */
main {
    min-height: calc(100vh - 310px);
}

/* Containers */
.container {
    width: min(1300px, 100% - 24px);
    margin-inline: auto;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 14px;
    border-radius: 12px;
    border: 1px solid rgb(var(--border));
    background: rgb(var(--card));
    color: rgb(var(--fg));
    transition: transform .08s ease, background .2s ease, border-color .2s ease;
}

.btn:hover {
    transform: translateY(-1px);
}

.btn:active {
    transform: translateY(0);
}

.btn.primary {
    background: linear-gradient(120deg, rgb(var(--accent-start)), rgb(var(--accent-end)));
    color: #fff;
    /* border-color: transparent; */
    border: none;
}

.btn.ghost {
    background: transparent;
}

/* Topbar */
.topbar {
    font-size: 12px;
    /* color: rgb(var(--muted)); */
    border-bottom: 1px solid rgb(var(--border));
    /* background: rgb(var(--card)); */
    background: #1a1b1f;
    color: #fff;
}

.topbar-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 6px 0;
    gap: 10px;
}

.topbar-right>a {
    display: flex;
    justify-content: center;
    align-items: center;
}

.topbar .topbar-left a {
    font-weight: 400;
}

.topbar .topbar-left a:hover {
    text-decoration: underline;
}

.topbar-left,
.topbar-right {
    display: flex;
    gap: 8px;
    align-items: center;
}

.topbar a {
    font-weight: 600;
}

/* Header */
.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    backdrop-filter: blur(8px);
    background: rgb(var(--bg) / 0.75);
    border-bottom: 1px solid rgb(var(--border));
}

.nav {
    width: min(1400px, 100% - 24px);
    display: grid;
    grid-template-columns: auto 1fr auto auto;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 0;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-weight: 800;
    letter-spacing: .2px;
}

.brand-mark {
    width: 36px;
    height: 36px;
    display: grid;
    place-items: center;
    border-radius: 12px;
    background: linear-gradient(135deg, rgb(var(--accent-start)), rgb(var(--accent-end)));
    color: #fff;
    font-weight: 900;
}

.menu {
    font-size: 0.85rem;
    display: flex;
    gap: 14px;
    align-items: center;
    justify-content: center;
}

.menu a {
    font-size: 1.1em;
    min-width: 70px;
    max-height: 40px;
    overflow: hidden;
    word-break: break-all;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    line-height: 27px;
    padding: 6px 10px;
    border-radius: 10px;
    border: 1px solid transparent;
}



.menu a:hover,
.menu a.active {
    background: rgb(var(--card));
    border: 1px solid rgb(var(--border));
}

.nav-cta {
    display: flex;
    gap: 8px;
    align-items: center;
}

.nav-toggle {
    display: none;
    border: 1px solid rgb(var(--border));
    border-radius: 10px;
    background: rgb(var(--card));
    padding: 8px 10px;
}

/* theme btn */
#themeToggle {
    width: 50px;
    height: 37px;
}

/* Profile dropdown (container-based) */
.profile {
    position: relative;
}

.profile-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: transparent;
    border: 1px solid rgb(var(--border));
    border-radius: 10px;
    padding: 4px 6px;
}

.avatar-img {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 1px solid rgb(var(--border));
    display: block;
}

.profile-caret {
    font-size: 12px;
    color: rgb(var(--muted));
}

.profile-menu {
    position: absolute;
    right: 0;
    top: calc(100% + 10px);
    background: rgb(var(--card));
    border: 1px solid rgb(var(--border));
    border-radius: 14px;
    box-shadow: var(--shadow);
    min-width: 220px;
    padding: 10px;
    display: none;
}

.profile.open .profile-menu {
    display: block;
}

.pmeta {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 10px;
    align-items: center;
    padding-bottom: 8px;
    border-bottom: 1px solid rgb(var(--border));
    margin-bottom: 8px;
}

.pm-avatar {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    display: grid;
    place-items: center;
    font-weight: 700;
    color: #fff;
    background: linear-gradient(135deg, rgb(var(--accent-start)), rgb(var(--accent-end)));
}

.pm-link {
    display: block;
    padding: 8px 10px;
    border-radius: 10px;
    text-align: left;
    border: 1px solid transparent;
    margin: 10px 0;
}

.pm-link:hover {
    background: rgb(var(--bg));
    border-color: rgb(var(--border));
}

.pm-link.danger {
    color: #e11d48;
}

/* Hero */
.hero {
    padding: 24px 0 6px;
}

.hero-card {
    background: radial-gradient(1200px 600px at 80% -100px, rgba(255, 255, 255, 0.06), transparent),
        linear-gradient(135deg, rgb(22 22 28), rgb(34 12 57));
    border: 1px solid rgb(var(--border));
    color: #fff;
    border-radius: 22px;
    padding: 100px;
    box-shadow: var(--shadow);
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 24px;
    align-items: center;
}

.eyebrow {
    letter-spacing: .18em;
    text-transform: uppercase;
    font-size: 12px;
    color: #d2b6ff;
    margin: 0 0 6px;
}

.hero-copy h1 {
    font-size: clamp(26px, 4vw, 40px);
    margin-bottom: 10px;
}

.lead {
    color: #e6e2ee;
}

.hero-actions {
    display: flex;
    gap: 10px;
    align-items: center;
    margin: 14px 0 10px;
    flex-wrap: wrap;
}

.hero-points {
    list-style: none;
    padding: 0;
    margin: 12px 0 0;
    color: #e8e5f0;
    display: grid;
    gap: 6px;
}

.hero-art {
    display: flex;
    justify-content: end;
    position: relative;
    min-height: 340px;
}

.blob {

    /* position: absolute; */
    border-radius: 50%;
    /* filter: blur(2px); */
    animation: float 8s ease-in-out infinite;
    opacity: 0.9;

    overflow: hidden;
}

.blob img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.blob-1 {
    width: 350px;
    height: 350px;
    right: 10%;
    top: 20%;
}


.card-float {
    position: absolute;
    right: 25%;
    bottom: 10%;
    display: flex;
    gap: 10px;
    align-items: center;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.18);
    padding: 10px 12px;
    border-radius: 14px;
    backdrop-filter: blur(6px);
    transform: translateY(0);
    animation: bob 3s ease-in-out infinite;
}

.avatar {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    display: grid;
    place-items: center;
    background: rgba(255, 255, 255, 0.15);
    font-size: 20px;
}

.card-meta span {
    display: block;
    font-size: 12px;
    opacity: 0.8;
}

/* Section base */
.section {
    padding: 48px 0;
    margin: 50px 0;
}

.soft-bg {
    background: radial-gradient(600px 200px at 50% 0%, rgba(139, 92, 246, 0.1), transparent), rgb(var(--bg));
}

/* About */
.about-grid {
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    gap: 28px;
    align-items: center;
}

.photo-frame {
    position: relative;
    padding: 16px;
    height: 500px;
    border-radius: 20px;
    /* background: rgb(var(--card)); */
    background: rgb(var(--bg));
    border: 1px solid rgb(var(--border));
    box-shadow: var(--shadow);
}

.photo-frame .img-wrap {
    overflow: hidden;
    border-radius: 10px;
    width: 100%;
    height: 100%;
}

.photo-frame .img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.exp-badge {
    position: absolute;
    left: 20px;
    bottom: 20px;
    background: #fff;
    color: #111;
    border-radius: 14px;
    padding: 10px 12px;
    border: 1px solid rgb(229 231 235);
}

html[data-theme="dark"] .exp-badge {
    background: rgb(34 34 38);
    color: #fff;
    border-color: rgb(var(--border));
}

.exp-badge strong {
    display: block;
    font-size: 18px;
}

.mini-card {
    position: absolute;
    right: 16px;
    bottom: -16px;
    display: flex;
    gap: 10px;
    align-items: center;
    background: rgb(var(--card));
    border: 1px solid rgb(var(--border));
    padding: 10px 12px;
    border-radius: 14px;
    box-shadow: var(--shadow);
}

.mini-avatar {
    width: 34px;
    height: 34px;
    border-radius: 10px;
    display: grid;
    place-items: center;
}

.chip {
    display: inline-block;
    padding: 6px 10px;
    margin: 10px 0;
    border-radius: 999px;
    font-size: 12px;
    letter-spacing: .08em;
    text-transform: uppercase;
    background: rgba(139, 92, 246, 0.1);
    color: rgb(139 92 246);
}

.chip.soft {
    background: rgba(139, 92, 246, 0.08);
}

.underline {
    text-decoration: underline;
    text-decoration-thickness: 3px;
    text-underline-offset: 5px;
    text-decoration-color: rgba(236, 72, 153, 0.8);
}

.muted {
    color: rgb(var(--muted));
}

.small {
    font-size: 12px;
}

.checklist {
    list-style: none;
    padding: 0;
    margin: 12px 0 0;
    display: grid;
    gap: 8px;
}

/* Quick Access */
.qp-head {
    margin-bottom: 12px;
}

.quick-grid {
    display: grid;
    gap: 14px;
}

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

.quick-card {
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 10px;
    align-items: center;
    background: rgb(var(--card));
    border: 1px solid rgb(var(--border));
    border-radius: 14px;
    padding: 14px;
    box-shadow: var(--shadow);
    transition: transform .2s ease, border-color .2s;
}

.quick-card:hover {
    transform: translateY(-2px);
    border-color: rgba(139, 92, 246, 0.45);
}

.qc-icon {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    display: grid;
    place-items: center;
    background: rgba(139, 92, 246, 0.12);
    font-size: 20px;
}

.qc-link {
    color: rgb(139 92 246);
    font-weight: 700;
}

.quick-card[data-tone="pink"] .qc-icon {
    background: rgba(236, 72, 153, 0.12);
}

.quick-card[data-tone="emerald"] .qc-icon {
    background: rgba(16, 185, 129, 0.12);
}

.quick-card[data-tone="amber"] .qc-icon {
    background: rgba(245, 158, 11, 0.14);
}

/* Categories */
.categories-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
    margin-top: 14px;
}

.category-card {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 10px;
    align-items: center;
    padding: 16px;
    border-radius: 14px;
    border: 1px dashed rgba(139, 92, 246, 0.25);
    background: rgba(139, 92, 246, 0.06);
    transition: transform .2s ease, box-shadow .2s ease, background .2s ease, border-color .2s;

}

.category-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 16px 36px rgba(139, 92, 246, 0.12);
    border-color: rgba(139, 92, 246, 0.45);
}

.cicon {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    display: grid;
    place-items: center;
    border: 1px dashed rgba(139, 92, 246, 0.45);
    background: rgba(139, 92, 246, 0.12);
}

.category-card[data-color="pink"] {
    background: rgba(236, 72, 153, 0.06);
    border-color: rgba(236, 72, 153, 0.25);
}

.category-card[data-color="green"] {
    background: rgba(16, 185, 129, 0.07);
    border-color: rgba(16, 185, 129, 0.25);
}

.category-card[data-color="amber"] {
    background: rgba(245, 158, 11, 0.1);
    border-color: rgba(245, 158, 11, 0.25);
}

.category-card[data-color="violet"] {
    background: rgba(139, 92, 246, 0.1);
    border-color: rgba(139, 92, 246, 0.25);
}

.category-card[data-color="rose"] {
    background: rgba(244, 63, 94, 0.08);
    border-color: rgba(244, 63, 94, 0.25);
}

.category-card[data-color="indigo"] {
    background: rgba(79, 70, 229, 0.1);
    border-color: rgba(79, 70, 229, 0.25);
}

.category-card[data-color="orange"] {
    background: rgba(249, 115, 22, 0.1);
    border-color: rgba(249, 115, 22, 0.25);
}

.category-card[data-color="sky"] {
    background: rgba(14, 165, 233, 0.1);
    border-color: rgba(14, 165, 233, 0.25);
}

.category-card[data-color="blue"] {
    background: rgba(59, 130, 246, 0.1);
    border-color: rgba(59, 130, 246, 0.25);
}

.category-card span {
    font-weight: 600;
}

/* Subjects */
.subjects-wrap {
    display: grid;
    grid-template-columns: .9fr 1.1fr;
    gap: 28px;
    align-items: start;
}

.subjects-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.subject-card {
    background: rgb(var(--card));
    border: 1px solid rgb(var(--border));
    border-radius: var(--radius);
    padding: 16px;
    box-shadow: var(--shadow);
    transition: transform .2s ease, box-shadow .2s ease, border-color .2s;
}

.subject-card:hover {
    transform: translateY(-3px);
    border-color: rgba(139, 92, 246, 0.5);
    box-shadow: 0 16px 36px rgba(139, 92, 246, 0.15);
}

.subject-card .icon {
    font-size: 22px;
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    border-radius: 12px;
    background: rgba(139, 92, 246, 0.12);
    margin-bottom: 8px;
}

.subject-card .link {
    font-weight: 600;
    color: rgb(139 92 246);
}

/* CTA */
.cta {
    text-align: center;
    background: rgb(var(--card));
    border: 1px solid rgb(var(--border));
    border-radius: var(--radius);
    padding: 28px;
    box-shadow: var(--shadow);
}

.cta-actions {
    display: flex;
    gap: 10px;
    justify-content: center;
    margin-top: 10px;
    flex-wrap: wrap;
}

/* News */
.news-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 350px));
    justify-content: center;
    align-items: center;
    padding: 20px;
    gap: 16px;
    margin-top: 12px;
}

.news-grid:hover>.news-card:not(:hover) {
    opacity: 0.4;
    transform: scale(0.98);
}


.news-card {
    background: rgb(var(--card));
    border: 1px solid rgb(var(--border));
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shadow);
    height: 420px;
    transition: transform .1s ease, border-color .2s;
}

.news-card:hover {
    transform: scale(1.05) !important;
    border-color: rgba(139, 92, 246, 0.4);
    box-shadow: 0 16px 36px rgba(139, 92, 246, 0.15);
}

.news-media {
    height: 200px;
}

.news-grid .img-wrap {
    height: 100%;
}

.news-media img {
    width: 100%;
    height: 100%;
    object-position: center;
    object-fit: cover;
}

.news-body {
    padding: 14px;
    display: grid;
    gap: 3px;
}

.news-body h4 {
    margin: 10px 0;
}

.news-body p {
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    height: 40px;
}

.news-meta {
    display: flex;
    gap: 8px;
    align-items: center;
}


.date-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 26px;
    padding: 0 10px;
    border-radius: 999px;
    font-size: 12px;
    background: rgba(139, 92, 246, 0.18);
    color: rgb(139 92 246);
    font-weight: 700;
}

.tag {
    font-size: 12px;
    color: rgb(var(--muted));
    border: 1px dashed rgb(var(--border));
    padding: 2px 8px;
    border-radius: 999px;
}

.news-card .link {
    font-weight: 700;
    color: rgb(139 92 246);
}

/* Footer */
.footer {
    border-top: 1px solid rgb(var(--border));
    background: rgb(var(--card));
    margin-top: 24px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.2fr .8fr .8fr;
    gap: 16px;
    padding: 20px 0;
}

.footer .brand {
    margin-bottom: 8px;
}

.footer .brand img {
    transition: scale 0.3s ease, transform 0.3s ease;
}

.footer .brand:hover img.recolor {
    transform: scale(1.08);
}

.footer h5 {
    margin: 0 0 8px;
}

.footer ul {
    padding: 0;
    margin: 0;
    list-style: none;
    display: grid;
    gap: 6px;
}

.footer ul li a:hover {
    text-decoration: underline;
}

.footer .tiny {
    border-top: 1px dashed rgb(var(--border));
    text-align: center;
    padding: 10px 0 16px;
}

/* Reveal animation with no-JS fallback */
html.no-js .reveal {
    opacity: 1;
    transform: none;
}

html.js .reveal {
    opacity: 0;
    transform: translateY(50px);
}

html.js .reveal.reveal-in {
    opacity: 1;
    transform: none;
    transition: opacity .5s ease, transform .5s ease;
}

/* Animations */
@keyframes float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }
}

@keyframes spin {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

@keyframes bob {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-6px);
    }
}

/* Responsive */
@media (max-width: 1400px) {

    .nav,
    .topbar-inner {
        width: 95vw !important;
    }

    .container {
        width: 90vw;
    }

}

@media (max-width: 1100px) {


    .hero-grid,
    .about-grid,
    .subjects-wrap {
        grid-template-columns: 1fr;
    }

    .menu {
        display: none;
    }

    .nav {
        grid-template-columns: auto auto;
    }

    .nav-toggle {
        display: inline-block;
        color: rgb(var(--fg));
    }

    .site-header.open .menu {
        font-size: 1rem;
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        position: absolute;
        left: 0;
        right: 0;
        top: 100%;
        background: rgb(var(--card));
        border-bottom: 1px solid rgb(var(--border));
        padding: 12px;
        gap: 4px;
    }

    .site-header.open .menu a {
        /* padding: 10px; */
        border: 1px solid rgb(var(--border));
        background: rgb(var(--bg));
    }


    .hero-art {
        justify-content: center;
        min-height: 280px;
        order: -1;
    }

    .card-float {
        right: 50%;
        bottom: 10%;
    }
}

@media (max-width: 1000px) {


    .quick-3 {
        grid-template-columns: 1fr;
    }

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

    .news-grid {
        grid-template-columns: repeat(2, 320px);
        justify-content: center;

    }

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

@media (max-width: 650px) {
    .hero-card {
        padding: 22px;
    }

    .blob-1 {
        height: 250px;
        width: 250px;
    }

    .site-header.open .menu {
        padding: 20px 60px;
        grid-template-columns: repeat(2, 1fr);
    }

    .topbar-inner {
        /* flex-direction: column; */
        /* align-items: flex-start; */
        align-items: center;
        justify-content: space-between;
    }

    .btn {
        padding: 10px 12px;
    }

    #themeToggle {
        width: 44px;
        height: 34px;
    }

    #themeToggle img {
        width: 30px;
    }

    .about-grid {
        gap: 60px;
    }

    .exp-badge {
        display: flex;
        flex-direction: column;
        justify-content: center;
        /* align-items: center; */
        height: 60px;
    }

    .card-float {
        width: 210px;
        height: 70px;
        right: 30%;
        bottom: 10%;
    }

    .card-float .avatar {

        min-width: 35px;
        min-height: 35px;

    }

    .photo-frame {
        height: 300px;
    }

    .photo-frame .mini-card {
        width: 280px;
        bottom: -50px;
        right: 0px;
    }

    .photo-frame .mini-avatar {
        min-width: 40px;
        min-height: 40px;

    }

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

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

    .news-grid {
        grid-template-columns: 1fr;
        justify-items: center;
    }

    .news-card {
        /* max-width: 350px; */
        width: 85%;
    }

    .container {
        width: 90vw;
    }
}

@media (max-width: 510px) {
    .nav .brand img {
        /* width: 25px; */
        min-width: 110px;
    }

    .nav-cta {
        gap: 6px;

        * {
            font-size: 0.7rem;
        }
    }

    .brand-name {
        font-size: 0.9rem;
    }

    .site-header.open .menu {
        padding: 20px 22px;
        grid-template-columns: repeat(1, 1fr);
    }

    .news-grid {
        padding: 5px;
    }

    .news-card {
        width: 95%;
        /* max-width: 95%; */
    }

}


/* Scrollbar Styling */
::-webkit-scrollbar {
    width: 5px;
    height: 5px;
}

::-webkit-scrollbar-track {
    background: rgb(var(--card));
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, rgb(var(--accent-start)), rgb(var(--accent-end)));
    /* background: linear-gradient(135deg, var(--primary), var(--primary-light)); */
    border-radius: 0px;
}

/* Handle on hover */
::-webkit-scrollbar-thumb:hover {
    background: #555;
}



/* lazy img loading animation */



/* Image wrapper */
.img-wrap {
    position: relative;
    display: inline-block;
    width: 100%;
    overflow: hidden;
    background-color: var(--skeleton-highlight);
}

/* Loading state */
.img-wrap.loading .img-skeleton {
    display: block;
}

.img-wrap.loading img {
    opacity: 0;
}

/* Loaded state */
.img-wrap:not(.loading) .img-skeleton {
    display: none;
}

.img-wrap:not(.loading) img {
    opacity: 1;
}

/* Skeleton loading animation */
.img-skeleton {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg,
            rgb(var(--card)) 25%,
            var(--skeleton-highlight) 50%,
            rgb(var(--card)) 75%);
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
}

/* Image styling */
.img-wrap img {
    transition: opacity 0.3s ease;
    opacity: 0;
}

/* Animation keyframes */
@keyframes loading {
    0% {
        background-position: 200% 0;
    }

    100% {
        background-position: -200% 0;
    }
}