/* ==========================================================================
   IMP Solution Hub — public site styles
   Built on Bootstrap 5.3. Dark brand surfaces (logo black), white type,
   yellow accent from the "HUB" wordmark, blue highlights from the robot mascot.
   ========================================================================== */

:root {
    --imp-ink: #0b0c10;
    --imp-ink-2: #11131a;
    --imp-ink-3: #181b25;
    --imp-ink-4: #222634;
    --imp-line: rgba(255, 255, 255, .09);
    --imp-line-strong: rgba(255, 255, 255, .16);
    --imp-text: #f4f5f8;
    --imp-muted: #a9afbd;
    --imp-yellow: #ffcc00;
    --imp-yellow-2: #ffb703;
    --imp-yellow-soft: rgba(255, 204, 0, .12);
    --imp-blue: #3aa8ff;
    --imp-blue-2: #1f6fe5;
    --imp-blue-soft: rgba(58, 168, 255, .12);
    --imp-light: #f6f7fb;
    --imp-light-2: #eceef5;
    --imp-dark-text: #12141b;
    --imp-dark-muted: #5b6172;
    --imp-radius: 1rem;
    --imp-radius-lg: 1.5rem;
    --imp-shadow: 0 10px 30px -12px rgba(10, 12, 20, .25);
    --imp-shadow-lg: 0 30px 60px -20px rgba(10, 12, 20, .35);
    --imp-font-head: "Poppins", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
    --imp-font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
    --imp-nav-h: 76px;
    --imp-ease: cubic-bezier(.2, .7, .2, 1);

    --bs-body-font-family: var(--imp-font-body);
    --bs-body-color: var(--imp-dark-text);
    --bs-link-color: var(--imp-blue-2);
    --bs-link-color-rgb: 31, 111, 229;
    --bs-link-hover-color: #1757b8;
    --bs-border-radius: .75rem;
    --bs-focus-ring-color: rgba(255, 204, 0, .45);
}

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--imp-nav-h) + 1rem); }
body { font-family: var(--imp-font-body); background: var(--imp-light); color: var(--imp-dark-text); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; overflow-x: hidden; }
h1, h2, h3, h4, h5, .display-font { font-family: var(--imp-font-head); letter-spacing: -.02em; }
h1, h2 { font-weight: 800; }
h3, h4, h5 { font-weight: 700; }
img { max-width: 100%; height: auto; }
::selection { background: var(--imp-yellow); color: var(--imp-ink); }

/* focus visibility for keyboard users */
:focus-visible { outline: 3px solid var(--imp-yellow); outline-offset: 3px; border-radius: .35rem; }
.btn:focus-visible, .form-control:focus, .form-select:focus { box-shadow: 0 0 0 .25rem rgba(255, 204, 0, .35); border-color: var(--imp-yellow-2); outline: none; }

.skip-link { position: absolute; left: 1rem; top: -100px; z-index: 2000; background: var(--imp-yellow); color: var(--imp-ink); padding: .6rem 1rem; border-radius: .5rem; font-weight: 700; text-decoration: none; }
.skip-link:focus { top: 1rem; }

.text-yellow { color: var(--imp-yellow) !important; }
.text-blue { color: var(--imp-blue) !important; }
.text-muted-dark { color: var(--imp-muted) !important; }
.bg-ink { background: var(--imp-ink) !important; }
.fw-800 { font-weight: 800; }
.lh-tight { line-height: 1.15; }

/* ------------------------------------------------------------------ buttons */
.btn { --bs-btn-font-weight: 600; border-radius: 999px; padding: .7rem 1.35rem; transition: transform .2s var(--imp-ease), box-shadow .2s var(--imp-ease), background-color .2s, color .2s, border-color .2s; }
.btn:active { transform: translateY(1px) scale(.98); }
.btn-sm { padding: .45rem .95rem; }
.btn-lg { padding: .9rem 1.75rem; font-size: 1.05rem; }
.btn-brand { background: linear-gradient(135deg, var(--imp-yellow), var(--imp-yellow-2)); color: var(--imp-ink); border: 0; box-shadow: 0 10px 24px -10px rgba(255, 183, 3, .65); }
.btn-brand:hover, .btn-brand:focus-visible { color: var(--imp-ink); transform: translateY(-2px); box-shadow: 0 16px 30px -12px rgba(255, 183, 3, .8); background: linear-gradient(135deg, #ffd633, var(--imp-yellow)); }
.btn-ghost { color: var(--imp-text); border: 1px solid var(--imp-line-strong); background: rgba(255, 255, 255, .04); backdrop-filter: blur(6px); }
.btn-ghost:hover, .btn-ghost:focus-visible { color: var(--imp-ink); background: #fff; border-color: #fff; transform: translateY(-2px); }
.btn-dark-solid { background: var(--imp-ink); color: #fff; border: 0; }
.btn-dark-solid:hover { background: var(--imp-ink-4); color: #fff; transform: translateY(-2px); }
.btn-outline-ink { border: 1.5px solid var(--imp-ink); color: var(--imp-ink); background: transparent; }
.btn-outline-ink:hover { background: var(--imp-ink); color: #fff; transform: translateY(-2px); }
.btn-whatsapp { background: #25d366; color: #06301a; border: 0; }
.btn-whatsapp:hover, .btn-whatsapp:focus-visible { background: #2ee374; color: #06301a; transform: translateY(-2px); box-shadow: 0 12px 26px -12px rgba(37, 211, 102, .8); }
.btn .bi { line-height: 1; }
.btn-icon { width: 2.6rem; height: 2.6rem; padding: 0; display: inline-flex; align-items: center; justify-content: center; border-radius: 50%; }
.link-arrow { font-weight: 600; text-decoration: none; display: inline-flex; align-items: center; gap: .35rem; }
.link-arrow .bi { transition: transform .2s var(--imp-ease); }
.link-arrow:hover .bi, .card-link-wrap:hover .link-arrow .bi { transform: translateX(4px); }

/* ------------------------------------------------------------------ announcement + navbar */
.announcement { background: var(--imp-yellow); color: var(--imp-ink); font-size: .9rem; font-weight: 600; text-align: center; padding: .45rem 1rem; position: relative; z-index: 1031; }
.announcement a { color: inherit; }

.site-nav { position: sticky; top: 0; z-index: 1030; min-height: var(--imp-nav-h); background: rgba(11, 12, 16, .97); backdrop-filter: saturate(160%) blur(14px); -webkit-backdrop-filter: saturate(160%) blur(14px); border-bottom: 1px solid transparent; transition: background-color .3s, border-color .3s, box-shadow .3s; }
.site-nav.is-scrolled { background: rgba(11, 12, 16, .95); border-bottom-color: var(--imp-line); box-shadow: 0 10px 30px -18px rgba(0, 0, 0, .8); }
.site-nav .navbar-brand { display: flex; align-items: center; gap: .65rem; color: #fff; font-family: var(--imp-font-head); font-weight: 800; font-size: 1.15rem; letter-spacing: -.01em; }
.site-nav .navbar-brand img { width: 46px; height: 46px; border-radius: 12px; box-shadow: 0 0 0 1px var(--imp-line-strong); transition: transform .3s var(--imp-ease); }
.site-nav .navbar-brand:hover img { transform: rotate(-4deg) scale(1.05); }
.brand-word span { color: var(--imp-yellow); }
.site-nav .nav-link { color: rgba(255, 255, 255, .78); font-weight: 500; padding: .55rem .85rem !important; border-radius: 999px; position: relative; transition: color .2s, background-color .2s; }
.site-nav .nav-link:hover, .site-nav .nav-link:focus-visible { color: #fff; background: rgba(255, 255, 255, .06); }
.site-nav .nav-link.active { color: #fff; }
.site-nav .nav-link.active::after { content: ""; position: absolute; left: 50%; bottom: .2rem; width: 18px; height: 3px; margin-left: -9px; border-radius: 3px; background: var(--imp-yellow); }
.site-nav .dropdown-menu { background: var(--imp-ink-2); border: 1px solid var(--imp-line); border-radius: 1rem; padding: .5rem; box-shadow: var(--imp-shadow-lg); min-width: 16rem; animation: dropIn .22s var(--imp-ease); }
.site-nav .dropdown-item { color: rgba(255, 255, 255, .82); border-radius: .65rem; padding: .55rem .75rem; display: flex; align-items: center; gap: .6rem; white-space: normal; }
.site-nav .dropdown-item .bi { color: var(--imp-yellow); }
.site-nav .dropdown-item:hover, .site-nav .dropdown-item:focus { background: rgba(255, 255, 255, .07); color: #fff; }
.site-nav .dropdown-divider { border-color: var(--imp-line); }
.nav-toggle { border: 1px solid var(--imp-line-strong); color: #fff; border-radius: .75rem; width: 44px; height: 44px; display: inline-flex; align-items: center; justify-content: center; background: transparent; }
.nav-toggle:hover { background: rgba(255, 255, 255, .08); }
@keyframes dropIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

/* mobile offcanvas menu */
.mobile-menu { background: var(--imp-ink); color: var(--imp-text); width: min(88vw, 360px) !important; border-left: 1px solid var(--imp-line) !important; }
.mobile-menu .offcanvas-header { border-bottom: 1px solid var(--imp-line); }
.mobile-menu .btn-close { filter: invert(1); }
.mobile-menu .m-link { display: flex; align-items: center; gap: .75rem; color: rgba(255, 255, 255, .86); text-decoration: none; padding: .75rem .9rem; border-radius: .75rem; font-weight: 500; opacity: 0; transform: translateX(16px); transition: background-color .2s; }
.mobile-menu.show .m-link, .mobile-menu.showing .m-link { animation: slideItem .35s var(--imp-ease) forwards; }
.mobile-menu .m-link:hover, .mobile-menu .m-link.active { background: rgba(255, 255, 255, .07); color: #fff; }
.mobile-menu .m-link .bi { color: var(--imp-yellow); font-size: 1.1rem; }
.mobile-menu .m-group { font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; color: var(--imp-muted); padding: 1rem .9rem .35rem; }
@keyframes slideItem { to { opacity: 1; transform: none; } }

/* ------------------------------------------------------------------ section scaffolding */
.section { padding: 5.5rem 0; position: relative; }
.section-sm { padding: 3.5rem 0; }
.section-dark { background: var(--imp-ink); color: var(--imp-text); }
.section-dark-2 { background: var(--imp-ink-2); color: var(--imp-text); }
.section-light { background: var(--imp-light); }
.section-white { background: #fff; }
.section-dark .text-secondary, .section-dark-2 .text-secondary { color: var(--imp-muted) !important; }
.eyebrow { display: inline-flex; align-items: center; gap: .5rem; font-size: .78rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--imp-blue-2); margin-bottom: .9rem; }
.eyebrow::before { content: ""; width: 22px; height: 2px; border-radius: 2px; background: currentColor; }
.section-dark .eyebrow, .section-dark-2 .eyebrow, .page-hero .eyebrow { color: var(--imp-yellow); }
.section-title { font-size: clamp(1.75rem, 1.2rem + 2vw, 2.65rem); line-height: 1.15; margin-bottom: .9rem; }
.section-lead { font-size: 1.08rem; color: var(--imp-dark-muted); max-width: 640px; }
.section-dark .section-lead, .section-dark-2 .section-lead { color: var(--imp-muted); }
.section-head { margin-bottom: 3rem; }
.divider-glow { height: 1px; background: linear-gradient(90deg, transparent, var(--imp-line-strong), transparent); }

/* ------------------------------------------------------------------ hero */
.hero { position: relative; background: var(--imp-ink); color: #fff; overflow: hidden; padding: 5rem 0 6rem; isolation: isolate; }
.hero::before { content: ""; position: absolute; inset: 0; z-index: -2; background-image: linear-gradient(rgba(255, 255, 255, .035) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .035) 1px, transparent 1px); background-size: 56px 56px; mask-image: radial-gradient(ellipse 80% 70% at 50% 40%, #000 30%, transparent 75%); -webkit-mask-image: radial-gradient(ellipse 80% 70% at 50% 40%, #000 30%, transparent 75%); }
.hero-glow { position: absolute; border-radius: 50%; filter: blur(90px); z-index: -1; opacity: .55; pointer-events: none; }
.hero-glow.g1 { width: 520px; height: 520px; background: rgba(255, 204, 0, .35); top: -180px; right: -120px; animation: drift 14s ease-in-out infinite alternate; }
.hero-glow.g2 { width: 460px; height: 460px; background: rgba(31, 111, 229, .45); bottom: -220px; left: -160px; animation: drift 18s ease-in-out infinite alternate-reverse; }
@keyframes drift { to { transform: translate(40px, 30px) scale(1.08); } }
.hero-badge { display: inline-flex; align-items: center; gap: .55rem; padding: .4rem .9rem .4rem .45rem; border-radius: 999px; background: rgba(255, 255, 255, .06); border: 1px solid var(--imp-line-strong); font-size: .88rem; color: rgba(255, 255, 255, .88); }
.hero-badge .dot { width: 1.6rem; height: 1.6rem; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; background: var(--imp-yellow); color: var(--imp-ink); font-size: .8rem; }
.hero h1 { font-size: clamp(2.3rem, 1.4rem + 4vw, 4.1rem); line-height: 1.05; margin: 1.4rem 0 1.25rem; }
.hero h1 .hl { display: block; background: linear-gradient(90deg, var(--imp-yellow), #ffe27a 45%, var(--imp-blue) 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero-sub { font-size: clamp(1rem, .95rem + .35vw, 1.2rem); color: var(--imp-muted); max-width: 560px; line-height: 1.65; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .85rem; margin-top: 2rem; }
.hero-channels { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem 1rem; margin-top: 2.4rem; color: var(--imp-muted); font-size: .92rem; }
.channel-pill { display: inline-flex; align-items: center; gap: .45rem; padding: .4rem .8rem; border-radius: 999px; border: 1px solid var(--imp-line); color: rgba(255, 255, 255, .85); text-decoration: none; transition: border-color .2s, background-color .2s, transform .2s; }
.channel-pill:hover { border-color: var(--imp-line-strong); background: rgba(255, 255, 255, .06); color: #fff; transform: translateY(-2px); }
.channel-pill .bi-telegram { color: #2aa3e0; } .channel-pill .bi-whatsapp { color: #25d366; } .channel-pill .bi-instagram { color: #f35588; }

.hero-visual { position: relative; max-width: 470px; margin-inline: auto; aspect-ratio: 1; }
.hero-logo-card { position: absolute; inset: 9%; border-radius: 2rem; background: #000; border: 1px solid var(--imp-line-strong); box-shadow: 0 40px 80px -30px rgba(0, 0, 0, .9), 0 0 0 10px rgba(255, 255, 255, .02); overflow: hidden; animation: floatY 7s ease-in-out infinite; }
.hero-logo-card img { width: 100%; height: 100%; object-fit: cover; }
.hero-ring { position: absolute; inset: 0; border-radius: 50%; border: 1px dashed rgba(255, 255, 255, .12); animation: spin 60s linear infinite; }
.hero-chip { position: absolute; display: inline-flex; align-items: center; gap: .55rem; padding: .6rem .95rem; border-radius: 1rem; background: rgba(17, 19, 26, .82); backdrop-filter: blur(10px); border: 1px solid var(--imp-line-strong); color: #fff; font-weight: 600; font-size: .9rem; box-shadow: var(--imp-shadow-lg); white-space: nowrap; }
.hero-chip .ic { width: 2rem; height: 2rem; border-radius: .65rem; display: inline-flex; align-items: center; justify-content: center; font-size: 1rem; }
.hero-chip.c1 { top: 6%; left: -4%; animation: floatY 6s ease-in-out infinite; }
.hero-chip.c1 .ic { background: var(--imp-yellow-soft); color: var(--imp-yellow); }
.hero-chip.c2 { top: 46%; right: -8%; animation: floatY 7.5s ease-in-out .8s infinite; }
.hero-chip.c2 .ic { background: var(--imp-blue-soft); color: var(--imp-blue); }
.hero-chip.c3 { bottom: 4%; left: 4%; animation: floatY 6.8s ease-in-out 1.4s infinite; }
.hero-chip.c3 .ic { background: rgba(37, 211, 102, .14); color: #25d366; }
@keyframes floatY { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }
@keyframes spin { to { transform: rotate(360deg); } }

/* entrance animation for hero elements */
.enter { opacity: 0; transform: translateY(18px); animation: enterUp .8s var(--imp-ease) forwards; }
.enter-d1 { animation-delay: .08s; } .enter-d2 { animation-delay: .18s; } .enter-d3 { animation-delay: .28s; } .enter-d4 { animation-delay: .4s; } .enter-d5 { animation-delay: .55s; }
@keyframes enterUp { to { opacity: 1; transform: none; } }

/* ------------------------------------------------------------------ stats */
.stats-strip { margin-top: -3rem; position: relative; z-index: 3; }
.stats-card { background: #fff; border-radius: var(--imp-radius-lg); box-shadow: var(--imp-shadow-lg); padding: 1.6rem; border: 1px solid var(--imp-light-2); }
.stat { text-align: center; padding: .5rem; }
.stat-value { font-family: var(--imp-font-head); font-weight: 800; font-size: clamp(1.8rem, 1.4rem + 1.5vw, 2.5rem); line-height: 1; color: var(--imp-ink); }
.stat-label { font-size: .9rem; color: var(--imp-dark-muted); margin-top: .45rem; }

/* ------------------------------------------------------------------ cards */
.card-imp { position: relative; height: 100%; background: #fff; border: 1px solid var(--imp-light-2); border-radius: var(--imp-radius-lg); padding: 1.75rem; transition: transform .35s var(--imp-ease), box-shadow .35s var(--imp-ease), border-color .35s; overflow: hidden; }
.card-imp:hover { transform: translateY(-6px); box-shadow: var(--imp-shadow-lg); border-color: transparent; }
.card-imp::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 3px; background: linear-gradient(90deg, var(--imp-yellow), var(--imp-blue)); transform: scaleX(0); transform-origin: left; transition: transform .45s var(--imp-ease); }
.card-imp:hover::before { transform: scaleX(1); }
.card-icon { width: 3.25rem; height: 3.25rem; border-radius: 1rem; display: inline-flex; align-items: center; justify-content: center; font-size: 1.45rem; background: var(--imp-ink); color: var(--imp-yellow); margin-bottom: 1.25rem; transition: transform .35s var(--imp-ease), background-color .35s; }
.card-imp:hover .card-icon { transform: rotate(-6deg) scale(1.06); }
.card-imp h3 { font-size: 1.18rem; margin-bottom: .6rem; }
.card-imp p { color: var(--imp-dark-muted); margin-bottom: 1.2rem; }
.stretched-link:focus-visible::after { outline: 3px solid var(--imp-yellow); outline-offset: -3px; border-radius: var(--imp-radius-lg); }

.card-dark { position: relative; height: 100%; background: linear-gradient(180deg, var(--imp-ink-3), var(--imp-ink-2)); border: 1px solid var(--imp-line); border-radius: var(--imp-radius-lg); overflow: hidden; color: var(--imp-text); transition: transform .35s var(--imp-ease), border-color .35s, box-shadow .35s; }
.card-dark:hover { transform: translateY(-6px); border-color: rgba(255, 204, 0, .35); box-shadow: 0 30px 60px -30px rgba(255, 204, 0, .25); }
.card-dark .text-secondary { color: var(--imp-muted) !important; }

.project-card .cover { position: relative; aspect-ratio: 16 / 10; overflow: hidden; background: var(--imp-ink-4); }
.project-card .cover img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--imp-ease); }
.project-card:hover .cover img { transform: scale(1.06); }
.cover-fallback { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; font-size: 3rem; color: rgba(255, 255, 255, .9); background: radial-gradient(circle at 30% 20%, rgba(255, 204, 0, .28), transparent 55%), radial-gradient(circle at 80% 80%, rgba(58, 168, 255, .35), transparent 55%), var(--imp-ink-4); }
.cover-fallback .bi { transition: transform .6s var(--imp-ease); filter: drop-shadow(0 10px 20px rgba(0, 0, 0, .4)); }
.project-card:hover .cover-fallback .bi { transform: scale(1.12) rotate(-4deg); }
.project-card .body { padding: 1.4rem 1.4rem 1.5rem; }
.project-card h3 { font-size: 1.12rem; line-height: 1.35; margin: .65rem 0 .5rem; }
.project-card .badge-float { position: absolute; top: .9rem; left: .9rem; }
.tag { display: inline-flex; align-items: center; gap: .35rem; font-size: .76rem; font-weight: 600; padding: .3rem .65rem; border-radius: 999px; background: var(--imp-yellow-soft); color: #8a6d00; }
.section-dark .tag, .card-dark .tag, .page-hero .tag { color: var(--imp-yellow); }
.tag-blue { background: var(--imp-blue-soft); color: var(--imp-blue-2); }
.card-dark .tag-blue { color: var(--imp-blue); }
.tag-muted { background: rgba(0, 0, 0, .05); color: var(--imp-dark-muted); }
.card-dark .tag-muted { background: rgba(255, 255, 255, .07); color: var(--imp-muted); }
.tag-green { background: rgba(25, 135, 84, .12); color: #146c43; }
.card-dark .tag-green { color: #4ade80; background: rgba(74, 222, 128, .1); }
.tech-line { font-size: .85rem; color: var(--imp-muted); display: flex; gap: .4rem; align-items: flex-start; }

.resource-card { display: flex; gap: 1rem; align-items: flex-start; background: #fff; color: var(--imp-dark-text); border: 1px solid var(--imp-light-2); border-radius: var(--imp-radius); padding: 1.15rem 1.25rem; position: relative; height: 100%; transition: transform .3s var(--imp-ease), box-shadow .3s, border-color .3s; }
.resource-card:hover { transform: translateY(-4px); box-shadow: var(--imp-shadow); border-color: transparent; }
.resource-card .r-icon { flex: 0 0 auto; width: 2.9rem; height: 2.9rem; border-radius: .85rem; display: inline-flex; align-items: center; justify-content: center; font-size: 1.3rem; background: var(--imp-blue-soft); color: var(--imp-blue-2); }
.resource-card.type-important_questions .r-icon { background: var(--imp-yellow-soft); color: #a07c00; }
.resource-card.type-solved_paper .r-icon, .resource-card.type-previous_paper .r-icon { background: rgba(25, 135, 84, .1); color: #198754; }
.resource-card h3 { font-size: 1rem; line-height: 1.35; margin-bottom: .3rem; }
.resource-card .meta { font-size: .82rem; color: var(--imp-dark-muted); display: flex; flex-wrap: wrap; gap: .3rem .8rem; }

.post-card { color: var(--imp-dark-text); background: #fff; border: 1px solid var(--imp-light-2); border-radius: var(--imp-radius-lg); overflow: hidden; height: 100%; position: relative; transition: transform .35s var(--imp-ease), box-shadow .35s; }
.post-card:hover { transform: translateY(-6px); box-shadow: var(--imp-shadow-lg); }
.post-card .cover { aspect-ratio: 16 / 9; overflow: hidden; background: var(--imp-ink-3); }
.post-card .cover img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--imp-ease); }
.post-card:hover .cover img { transform: scale(1.05); }
.post-card .body { padding: 1.4rem; }
.post-card h3 { font-size: 1.12rem; line-height: 1.4; margin: .6rem 0; }
.post-card .meta { font-size: .82rem; color: var(--imp-dark-muted); }

/* section tiles (home study quick access) */
.tile { position: relative; display: block; height: 100%; padding: 1.75rem; border-radius: var(--imp-radius-lg); text-decoration: none; color: #fff; overflow: hidden; background: var(--imp-ink-3); border: 1px solid var(--imp-line); transition: transform .35s var(--imp-ease), border-color .35s; isolation: isolate; }
.tile::after { content: ""; position: absolute; width: 220px; height: 220px; border-radius: 50%; right: -70px; bottom: -90px; z-index: -1; background: var(--tile-glow, rgba(255, 204, 0, .25)); filter: blur(30px); transition: transform .5s var(--imp-ease); }
.tile:hover { transform: translateY(-6px); border-color: var(--imp-line-strong); color: #fff; }
.tile:hover::after { transform: scale(1.35); }
.tile .bi-big { font-size: 2.2rem; color: var(--tile-color, var(--imp-yellow)); }
.tile h3 { font-size: 1.3rem; margin: 1rem 0 .5rem; }
.tile p { color: var(--imp-muted); margin-bottom: 1.25rem; }
.tile.t-blue { --tile-glow: rgba(58, 168, 255, .3); --tile-color: var(--imp-blue); }
.tile.t-green { --tile-glow: rgba(37, 211, 102, .25); --tile-color: #3ddc84; }

.cat-chip { display: inline-flex; align-items: center; gap: .5rem; padding: .55rem 1rem; border-radius: 999px; border: 1px solid var(--imp-line-strong); color: rgba(255, 255, 255, .85); text-decoration: none; font-weight: 500; font-size: .92rem; transition: all .25s var(--imp-ease); }
.cat-chip .bi { color: var(--imp-yellow); }
.cat-chip .count { font-size: .75rem; padding: .05rem .45rem; border-radius: 999px; background: rgba(255, 255, 255, .08); color: var(--imp-muted); }
.cat-chip:hover, .cat-chip.active { background: var(--imp-yellow); color: var(--imp-ink); border-color: var(--imp-yellow); transform: translateY(-2px); }
.cat-chip:hover .bi, .cat-chip.active .bi { color: var(--imp-ink); }
.cat-chip:hover .count, .cat-chip.active .count { background: rgba(0, 0, 0, .12); color: var(--imp-ink); }
.light-chips .cat-chip { border-color: var(--imp-light-2); color: var(--imp-dark-text); background: #fff; }
.light-chips .cat-chip .bi { color: var(--imp-blue-2); }
.light-chips .cat-chip .count { background: var(--imp-light); }

.category-card { display: flex; flex-direction: column; height: 100%; padding: 1.6rem; border-radius: var(--imp-radius-lg); background: #fff; border: 1px solid var(--imp-light-2); text-decoration: none; color: var(--imp-dark-text); transition: transform .35s var(--imp-ease), box-shadow .35s; position: relative; overflow: hidden; }
.category-card:hover { transform: translateY(-6px); box-shadow: var(--imp-shadow-lg); color: var(--imp-dark-text); }
.category-card .card-icon { margin-bottom: 1rem; }
.category-card .count { margin-top: auto; padding-top: 1rem; font-size: .88rem; color: var(--imp-dark-muted); display: flex; justify-content: space-between; align-items: center; }

.why-item { display: flex; gap: 1rem; align-items: flex-start; }
.why-item .ic { flex: 0 0 auto; width: 3rem; height: 3rem; border-radius: .9rem; display: inline-flex; align-items: center; justify-content: center; font-size: 1.3rem; background: var(--imp-yellow-soft); color: #9a7700; }
.why-item h3 { font-size: 1.08rem; margin-bottom: .3rem; }
.why-item p { color: var(--imp-dark-muted); margin: 0; }

.channel-card { display: flex; align-items: center; gap: 1rem; padding: 1.3rem 1.4rem; border-radius: var(--imp-radius-lg); background: rgba(255, 255, 255, .04); border: 1px solid var(--imp-line); color: #fff; text-decoration: none; transition: transform .3s var(--imp-ease), border-color .3s, background-color .3s; height: 100%; }
.channel-card:hover { transform: translateY(-4px); border-color: var(--imp-line-strong); background: rgba(255, 255, 255, .07); color: #fff; }
.channel-card .ic { width: 3.2rem; height: 3.2rem; border-radius: 1rem; display: inline-flex; align-items: center; justify-content: center; font-size: 1.6rem; flex: 0 0 auto; }
.channel-card .ic.tg { background: rgba(42, 163, 224, .15); color: #2aa3e0; }
.channel-card .ic.wa { background: rgba(37, 211, 102, .15); color: #25d366; }
.channel-card .ic.ig { background: rgba(243, 85, 136, .15); color: #f35588; }
.channel-card .ic.yt { background: rgba(255, 0, 0, .15); color: #ff4d4d; }
.channel-card .ic.in { background: rgba(10, 102, 194, .2); color: #4ea3ff; }
.channel-card small { color: var(--imp-muted); }

/* ------------------------------------------------------------------ page hero (inner pages) */
.page-hero { background: var(--imp-ink); color: #fff; padding: 3.5rem 0 3.25rem; position: relative; overflow: hidden; isolation: isolate; }
.page-hero::before { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(600px 300px at 85% -10%, rgba(255, 204, 0, .2), transparent 70%), radial-gradient(500px 300px at 0% 120%, rgba(31, 111, 229, .3), transparent 70%); }
.page-hero h1 { font-size: clamp(1.9rem, 1.3rem + 2.6vw, 3rem); line-height: 1.12; margin-bottom: .75rem; }
.page-hero .lead { color: var(--imp-muted); max-width: 720px; font-size: 1.08rem; }
.crumbs { --bs-breadcrumb-divider-color: rgba(255, 255, 255, .35); --bs-breadcrumb-item-active-color: rgba(255, 255, 255, .75); font-size: .88rem; margin-bottom: 1.25rem; }
.crumbs .breadcrumb { margin: 0; }
.crumbs a { color: rgba(255, 255, 255, .7); text-decoration: none; }
.crumbs a:hover { color: var(--imp-yellow); }
.crumbs .breadcrumb-item + .breadcrumb-item::before { content: "›"; }

/* ------------------------------------------------------------------ filters */
.filter-bar { background: #fff; border: 1px solid var(--imp-light-2); border-radius: var(--imp-radius-lg); padding: 1rem; box-shadow: var(--imp-shadow); margin-top: -2.2rem; position: relative; z-index: 2; }
.filter-bar .form-control, .filter-bar .form-select { border-radius: .8rem; border-color: var(--imp-light-2); background-color: var(--imp-light); min-height: 46px; }
.filter-bar .input-icon { position: relative; }
.filter-bar .input-icon .bi { position: absolute; left: .95rem; top: 50%; transform: translateY(-50%); color: var(--imp-dark-muted); pointer-events: none; }
.filter-bar .input-icon .form-control { padding-left: 2.5rem; }
.results-meta { color: var(--imp-dark-muted); font-size: .92rem; }
[data-results] { transition: opacity .25s ease; }
[data-results].is-loading { opacity: .35; pointer-events: none; }
.skeleton-grid { display: none; }
.is-loading-wrap .skeleton-grid { display: grid; }
.skeleton { position: relative; overflow: hidden; background: var(--imp-light-2); border-radius: var(--imp-radius); min-height: 120px; }
.skeleton::after { content: ""; position: absolute; inset: 0; transform: translateX(-100%); background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .7), transparent); animation: shimmer 1.2s infinite; }
@keyframes shimmer { to { transform: translateX(100%); } }

/* ------------------------------------------------------------------ prose (rich text) */
.prose { font-size: 1.05rem; line-height: 1.8; color: #2a2f3b; }
.prose h2 { font-size: 1.6rem; margin: 2.2rem 0 .9rem; }
.prose h3 { font-size: 1.28rem; margin: 1.8rem 0 .75rem; }
.prose h4 { font-size: 1.1rem; margin: 1.5rem 0 .6rem; }
.prose p { margin-bottom: 1.1rem; }
.prose ul, .prose ol { padding-left: 1.3rem; margin-bottom: 1.2rem; }
.prose li { margin-bottom: .4rem; }
.prose ul li::marker { color: var(--imp-yellow-2); }
.prose a { color: var(--imp-blue-2); text-underline-offset: 3px; }
.prose blockquote { border-left: 4px solid var(--imp-yellow); background: var(--imp-light); padding: 1rem 1.25rem; border-radius: 0 .75rem .75rem 0; margin: 1.5rem 0; font-style: italic; }
.prose img { border-radius: var(--imp-radius); margin: 1rem 0; }
.prose pre { background: var(--imp-ink); color: #e6e6e6; padding: 1rem; border-radius: .75rem; overflow-x: auto; }
.prose table { width: 100%; border-collapse: collapse; margin: 1.25rem 0; font-size: .95rem; }
.prose th, .prose td { border: 1px solid var(--imp-light-2); padding: .6rem .8rem; }
.prose th { background: var(--imp-light); }
.prose > :first-child { margin-top: 0; }

.feature-list { list-style: none; padding: 0; margin: 0; display: grid; gap: .75rem; }
.feature-list li { display: flex; gap: .7rem; align-items: flex-start; }
.feature-list li .bi { color: #16a34a; font-size: 1.15rem; flex: 0 0 auto; margin-top: .1rem; }

.sticky-aside { position: sticky; top: calc(var(--imp-nav-h) + 1.25rem); }
.aside-card { background: #fff; border: 1px solid var(--imp-light-2); border-radius: var(--imp-radius-lg); padding: 1.5rem; box-shadow: var(--imp-shadow); }
.aside-card.dark { background: var(--imp-ink); color: #fff; border-color: var(--imp-line); }
.aside-card.dark .text-secondary { color: var(--imp-muted) !important; }
.detail-list { list-style: none; padding: 0; margin: 0; }
.detail-list li { display: flex; justify-content: space-between; gap: 1rem; padding: .65rem 0; border-bottom: 1px dashed var(--imp-light-2); font-size: .94rem; }
.detail-list li:last-child { border-bottom: 0; }
.detail-list .k { color: var(--imp-dark-muted); }
.detail-list .v { font-weight: 600; text-align: right; }

.info-block { background: #fff; border: 1px solid var(--imp-light-2); border-radius: var(--imp-radius-lg); padding: 1.6rem; margin-bottom: 1.25rem; }
.info-block h2 { font-size: 1.2rem; display: flex; align-items: center; gap: .6rem; margin-bottom: 1rem; }
.info-block h2 .bi { color: var(--imp-blue-2); }

/* gallery */
.gallery-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: .75rem; }
.gallery-item { position: relative; display: block; aspect-ratio: 4 / 3; border-radius: .85rem; overflow: hidden; border: 0; padding: 0; background: var(--imp-light-2); cursor: zoom-in; }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--imp-ease); }
.gallery-item:hover img, .gallery-item:focus-visible img { transform: scale(1.08); }
.lightbox .modal-content { background: rgba(8, 9, 12, .96); border: 0; }
.lightbox img { max-height: 78vh; width: auto; margin: auto; display: block; border-radius: .5rem; }
.lightbox .btn-nav { position: absolute; top: 50%; transform: translateY(-50%); z-index: 2; }
.lightbox .btn-nav.prev { left: 1rem; } .lightbox .btn-nav.next { right: 1rem; }
.ratio-video { border-radius: var(--imp-radius-lg); overflow: hidden; background: #000; }

/* ------------------------------------------------------------------ forms */
.form-card { background: #fff; border-radius: var(--imp-radius-lg); border: 1px solid var(--imp-light-2); padding: clamp(1.25rem, 1rem + 1.5vw, 2.25rem); box-shadow: var(--imp-shadow); }
.form-label { font-weight: 600; font-size: .92rem; margin-bottom: .4rem; }
.form-label .req { color: #dc3545; }
.form-control, .form-select { border-radius: .8rem; padding: .7rem .95rem; border-color: #dfe2ea; }
.form-control::placeholder { color: #9aa0ad; }
.form-text { color: var(--imp-dark-muted); }
.hp-field { position: absolute !important; left: -10000px !important; width: 1px; height: 1px; overflow: hidden; }
.form-success { display: none; text-align: center; padding: 2rem 1rem; }
.form-success .bi { font-size: 3rem; color: #16a34a; }
.form-done .form-success { display: block; animation: enterUp .5s var(--imp-ease) forwards; }
.form-done .form-body { display: none; }
.btn .spinner-border { width: 1rem; height: 1rem; border-width: .15em; display: none; }
.btn.is-loading .spinner-border { display: inline-block; }
.btn.is-loading .btn-label-icon { display: none; }

.contact-method { display: flex; gap: 1rem; align-items: center; padding: 1.1rem 1.2rem; border-radius: var(--imp-radius); background: rgba(255, 255, 255, .05); border: 1px solid var(--imp-line); color: #fff; text-decoration: none; transition: background-color .25s, transform .25s var(--imp-ease); }
.contact-method:hover { background: rgba(255, 255, 255, .09); color: #fff; transform: translateX(4px); }
.contact-method .ic { width: 2.8rem; height: 2.8rem; border-radius: .8rem; display: inline-flex; align-items: center; justify-content: center; font-size: 1.25rem; background: var(--imp-yellow-soft); color: var(--imp-yellow); flex: 0 0 auto; }
.contact-method small { color: var(--imp-muted); display: block; }
.contact-method strong { word-break: break-word; }

/* ------------------------------------------------------------------ accordion */
.faq-acc .accordion-item { border: 1px solid var(--imp-light-2); border-radius: var(--imp-radius) !important; margin-bottom: .75rem; overflow: hidden; background: #fff; }
.faq-acc .accordion-button { font-weight: 600; font-family: var(--imp-font-head); font-size: 1.02rem; padding: 1.15rem 1.3rem; background: #fff; color: var(--imp-dark-text); box-shadow: none; }
.faq-acc .accordion-button:not(.collapsed) { background: #fffbea; color: var(--imp-dark-text); }
.faq-acc .accordion-button:focus-visible { box-shadow: inset 0 0 0 3px rgba(255, 204, 0, .6); }
.faq-acc .accordion-button::after { background-image: none; content: "\F4FE"; font-family: "bootstrap-icons"; font-size: 1.1rem; width: auto; height: auto; transition: transform .3s var(--imp-ease); color: var(--imp-blue-2); }
.faq-acc .accordion-button:not(.collapsed)::after { content: "\F2EA"; transform: rotate(180deg); }
.faq-acc .accordion-body { color: var(--imp-dark-muted); line-height: 1.75; padding: 0 1.3rem 1.3rem; background: #fffbea; }

/* ------------------------------------------------------------------ CTA band */
.cta-band { position: relative; border-radius: 2rem; padding: clamp(2rem, 1.5rem + 3vw, 4rem); background: linear-gradient(135deg, var(--imp-yellow) 0%, #ffd84d 45%, var(--imp-yellow-2) 100%); color: var(--imp-ink); overflow: hidden; isolation: isolate; }
.cta-band::before { content: ""; position: absolute; width: 380px; height: 380px; border-radius: 50%; right: -120px; top: -160px; background: rgba(255, 255, 255, .35); z-index: -1; }
.cta-band::after { content: ""; position: absolute; width: 260px; height: 260px; border-radius: 50%; left: -80px; bottom: -140px; background: rgba(0, 0, 0, .06); z-index: -1; }
.cta-band h2 { font-size: clamp(1.6rem, 1.2rem + 1.8vw, 2.4rem); }
.cta-band p { color: rgba(11, 12, 16, .75); font-size: 1.08rem; }

/* ------------------------------------------------------------------ empty state + pagination */
.empty-state { text-align: center; padding: 3.5rem 1.5rem; border: 2px dashed var(--imp-light-2); border-radius: var(--imp-radius-lg); background: #fff; }
.empty-state .bi { font-size: 2.6rem; color: var(--imp-blue-2); }
.section-dark .empty-state { background: transparent; border-color: var(--imp-line-strong); }
.pagination-imp .page-link { border: 0; margin: 0 .2rem; border-radius: .7rem !important; min-width: 2.6rem; text-align: center; color: var(--imp-dark-text); background: #fff; box-shadow: 0 1px 0 var(--imp-light-2); font-weight: 600; }
.pagination-imp .page-item.active .page-link { background: var(--imp-ink); color: var(--imp-yellow); }
.pagination-imp .page-link:hover { background: var(--imp-yellow); color: var(--imp-ink); }
.pagination-imp .page-item.disabled .page-link { background: transparent; box-shadow: none; }

/* ------------------------------------------------------------------ footer */
.site-footer { background: #07080b; color: var(--imp-muted); padding: 4.5rem 0 1.5rem; border-top: 1px solid var(--imp-line); }
.site-footer h2 { color: #fff; font-size: .95rem; letter-spacing: .08em; text-transform: uppercase; margin-bottom: 1.1rem; font-weight: 700; }
.site-footer a { color: var(--imp-muted); text-decoration: none; transition: color .2s; }
.site-footer a:hover { color: var(--imp-yellow); }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: .6rem; }
.footer-brand img { width: 56px; height: 56px; border-radius: 14px; }
.social-row { display: flex; flex-wrap: wrap; gap: .55rem; }
.social-btn { width: 2.6rem; height: 2.6rem; border-radius: .8rem; display: inline-flex; align-items: center; justify-content: center; background: rgba(255, 255, 255, .06); border: 1px solid var(--imp-line); color: #fff !important; font-size: 1.1rem; transition: transform .25s var(--imp-ease), background-color .25s; }
.social-btn:hover { transform: translateY(-3px); background: var(--imp-yellow); color: var(--imp-ink) !important; }
.footer-bottom { border-top: 1px solid var(--imp-line); margin-top: 3rem; padding-top: 1.5rem; font-size: .88rem; }
.footer-note { font-size: .82rem; color: #7d8494; }

/* floating actions */
.fab-wa { position: fixed; right: 1.1rem; bottom: 1.1rem; z-index: 1040; width: 3.5rem; height: 3.5rem; border-radius: 50%; background: #25d366; color: #fff; display: inline-flex; align-items: center; justify-content: center; font-size: 1.7rem; box-shadow: 0 12px 30px -8px rgba(37, 211, 102, .7); transition: transform .25s var(--imp-ease); }
.fab-wa:hover { transform: scale(1.08); color: #fff; }
.fab-wa::before { content: ""; position: absolute; inset: 0; border-radius: 50%; border: 2px solid #25d366; animation: pulse 2.4s ease-out infinite; }
@keyframes pulse { from { transform: scale(1); opacity: .8; } to { transform: scale(1.6); opacity: 0; } }
.to-top { position: fixed; right: 1.35rem; bottom: 5.4rem; z-index: 1039; width: 3rem; height: 3rem; border-radius: 50%; border: 1px solid var(--imp-line-strong); background: rgba(11, 12, 16, .85); color: #fff; display: inline-flex; align-items: center; justify-content: center; opacity: 0; visibility: hidden; transform: translateY(10px); transition: all .3s var(--imp-ease); }
.to-top.show { opacity: 1; visibility: visible; transform: none; }
.to-top:hover { background: var(--imp-yellow); color: var(--imp-ink); }

/* toasts */
.toast-stack { position: fixed; top: calc(var(--imp-nav-h) + .75rem); right: 1rem; z-index: 1090; display: grid; gap: .6rem; max-width: min(92vw, 380px); }
.toast-imp { border: 0; border-radius: 1rem; box-shadow: var(--imp-shadow-lg); overflow: hidden; background: #fff; }
.toast-imp .toast-body { display: flex; gap: .75rem; align-items: flex-start; padding: 1rem 1.1rem; }
.toast-imp .bi { font-size: 1.3rem; }
.toast-imp.success { border-left: 4px solid #16a34a; } .toast-imp.success .bi { color: #16a34a; }
.toast-imp.error { border-left: 4px solid #dc3545; } .toast-imp.error .bi { color: #dc3545; }
.toast-imp.info { border-left: 4px solid var(--imp-blue-2); } .toast-imp.info .bi { color: var(--imp-blue-2); }

/* search modal */
.search-modal .modal-content { background: var(--imp-ink-2); color: #fff; border: 1px solid var(--imp-line); border-radius: 1.25rem; }
.search-modal .form-control { background: rgba(255, 255, 255, .06); border: 1px solid var(--imp-line-strong); color: #fff; font-size: 1.1rem; padding: .9rem 1rem .9rem 2.9rem; }
.search-modal .form-control::placeholder { color: var(--imp-muted); }
.search-modal .search-ic { position: absolute; left: 1rem; top: 50%; transform: translateY(-50%); color: var(--imp-muted); font-size: 1.1rem; }
.search-modal .btn-close { filter: invert(1); }
.search-modal .quick a { color: var(--imp-muted); text-decoration: none; border: 1px solid var(--imp-line); border-radius: 999px; padding: .3rem .8rem; font-size: .88rem; display: inline-block; }
.search-modal .quick a:hover { color: var(--imp-ink); background: var(--imp-yellow); border-color: var(--imp-yellow); }

.preview-banner { position: sticky; top: 0; z-index: 1100; background: repeating-linear-gradient(45deg, #ffcc00, #ffcc00 12px, #ffd633 12px, #ffd633 24px); color: var(--imp-ink); font-weight: 700; text-align: center; padding: .55rem 1rem; }

/* 404 */
.error-code { font-family: var(--imp-font-head); font-weight: 800; font-size: clamp(5rem, 3rem + 10vw, 9rem); line-height: 1; background: linear-gradient(90deg, var(--imp-yellow), var(--imp-blue)); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* ------------------------------------------------------------------ scroll reveal */
.js [data-reveal] { opacity: 0; transform: translateY(24px); transition: opacity .7s var(--imp-ease), transform .7s var(--imp-ease); transition-delay: var(--reveal-delay, 0s); }
.js [data-reveal="left"] { transform: translateX(-24px); }
.js [data-reveal="right"] { transform: translateX(24px); }
.js [data-reveal="zoom"] { transform: scale(.95); }
.js [data-reveal].is-visible { opacity: 1; transform: none; }

/* ------------------------------------------------------------------ responsive */
@media (max-width: 991.98px) {
    :root { --imp-nav-h: 68px; }
    .section { padding: 4.25rem 0; }
    .hero { padding: 3.5rem 0 5rem; }
    .hero-visual { max-width: 380px; margin-top: 3rem; }
    .sticky-aside { position: static; }
}
@media (max-width: 575.98px) {
    .section { padding: 3.5rem 0; }
    .hero-chip { font-size: .78rem; padding: .45rem .7rem; }
    .hero-chip .ic { width: 1.6rem; height: 1.6rem; font-size: .85rem; }
    .hero-chip.c1 { left: 0; } .hero-chip.c2 { right: 0; }
    .hero-actions .btn { width: 100%; }
    .site-nav .navbar-brand { font-size: 1rem; }
    .site-nav .navbar-brand img { width: 40px; height: 40px; }
    .card-imp, .project-card .body { padding: 1.3rem; }
    .filter-bar { margin-top: -1.75rem; }
    .stats-card { padding: 1rem .5rem; }
    .cta-band { border-radius: 1.4rem; }
}
@media (max-width: 359.98px) {
    .brand-word { display: none; }
    .btn-lg { padding: .8rem 1.25rem; font-size: 1rem; }
}

/* respect reduced motion: disable non-essential movement */
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
    .enter, .js [data-reveal], .mobile-menu .m-link { opacity: 1 !important; transform: none !important; }
}

@media print {
    .site-nav, .site-footer, .fab-wa, .to-top, .toast-stack, .filter-bar { display: none !important; }
    .page-hero { background: #fff; color: #000; }
}
