#csechub-homepage { position: relative; overflow: hidden; }
/* ============================================================
   0. TOKENS & RESET
   ============================================================ */
#csechub-homepage, #csechub-homepage *,
#csechub-homepage::before, #csechub-homepage *::before,
#csechub-homepage::after, #csechub-homepage *::after { margin: 0; padding: 0; box-sizing: border-box; }
#csechub-homepage {
    --navy-900: #071322;
    --navy-800: #0b1b2b;
    --navy-700: #122a42;
    --navy-600: #17395a;
    --blue-600: #1e5fa8;
    --blue-500: #2b7fc9;
    --sky-400: #38a3f1;
    --cyan-400: #22d3ee;
    --cyan-300: #67e8f9;
    --amber-400: #fbbf24;
    --amber-500: #f59e0b;
    --green-400: #34d399;
    --violet-400: #a78bfa;
    --rose-400: #fb7185;

    --ink: #0f1e2e;
    --ink-soft: #2b4053;
    --muted: #5b7186;
    --line: rgba(30, 95, 168, .13);
    --line-strong: rgba(30, 95, 168, .24);
    --surface: #ffffff;
    --surface-2: #f5f9fd;
    --surface-3: #eaf2fa;

    --shadow-xs: 0 1px 2px rgba(11, 27, 43, .06);
    --shadow-sm: 0 4px 12px -4px rgba(11, 27, 43, .12);
    --shadow-md: 0 14px 34px -14px rgba(11, 27, 43, .24);
    --shadow-lg: 0 34px 70px -28px rgba(11, 27, 43, .40);

    --r-sm: 8px;
    --r-md: 14px;
    --r-lg: 22px;
    --r-xl: 30px;
    --r-pill: 999px;

    --ease: cubic-bezier(.22, 1, .36, 1);
    --ease-bounce: cubic-bezier(.34, 1.56, .64, 1);
    --t-fast: .18s;
    --t: .35s;

    --font-body: 'Plus Jakarta Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
    --font-display: 'Sora', 'Plus Jakarta Sans', system-ui, sans-serif;
}
#csechub-homepage { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
#csechub-homepage {
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.6;
    color: var(--ink);
    background: var(--surface);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}
#csechub-homepage::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: -2;
    background:
        radial-gradient(ellipse 70% 55% at 12% -5%, rgba(56, 163, 241, .13), transparent 60%),
        radial-gradient(ellipse 60% 50% at 92% 8%, rgba(34, 211, 238, .12), transparent 62%),
        radial-gradient(ellipse 55% 45% at 50% 100%, rgba(251, 191, 36, .07), transparent 65%),
        linear-gradient(180deg, #f7fbff 0%, #ffffff 45%, #f4f9fe 100%);
}
#csechub-homepage img { max-width: 100%; display: block; }
#csechub-homepage ul { list-style: none; }
#csechub-homepage a {
    color: var(--blue-600);
    text-decoration: none;
    transition: color var(--t-fast) ease;
}
#csechub-homepage a:hover { color: var(--blue-500); }
#csechub-homepage :focus-visible {
    outline: 2px solid var(--cyan-400);
    outline-offset: 3px;
    border-radius: 4px;
}
#csechub-homepage ::selection { background: var(--cyan-400); color: var(--navy-900); }
#csechub-homepage ::-webkit-scrollbar { width: 12px; height: 12px; }
#csechub-homepage ::-webkit-scrollbar-track { background: var(--surface-3); }
#csechub-homepage ::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, var(--blue-500), var(--navy-700));
    border-radius: 99px;
    border: 3px solid var(--surface-3);
}
#csechub-homepage ::-webkit-scrollbar-thumb:hover { background: linear-gradient(180deg, var(--cyan-400), var(--blue-600)); }
#csechub-homepage .wrap {
    width: 100%;
    max-width: 1180px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ============================================================
   1. ANIMATIONS
   ============================================================ */
@keyframes spin-slow { to { transform: rotate(360deg); } }
@keyframes float-y {
    0%, 100% { transform: translateY(0); }
    50%      { transform: translateY(-14px); }
}
@keyframes float-y-sm {
    0%, 100% { transform: translateY(0); }
    50%      { transform: translateY(-8px); }
}
@keyframes blob-morph {
    0%, 100% { border-radius: 42% 58% 63% 37% / 41% 44% 56% 59%; transform: translate(0,0) scale(1) rotate(0deg); }
    33%      { border-radius: 62% 38% 35% 65% / 58% 62% 38% 42%; transform: translate(26px,-18px) scale(1.09) rotate(24deg); }
    66%      { border-radius: 35% 65% 58% 42% / 62% 38% 62% 38%; transform: translate(-20px,20px) scale(.94) rotate(-18deg); }
}
@keyframes gradient-pan {
    0%   { background-position: 0% 50%; }
    50%  { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}
@keyframes marquee {
    from { transform: translateX(0); }
    to   { transform: translateX(-50%); }
}
@keyframes pulse-ring {
    0%   { transform: scale(.85); opacity: .75; }
    70%  { transform: scale(1.45); opacity: 0; }
    100% { transform: scale(1.45); opacity: 0; }
}
@keyframes shine-sweep {
    0%   { transform: translateX(-130%) skewX(-22deg); }
    100% { transform: translateX(230%) skewX(-22deg); }
}
@keyframes rise-in {
    from { opacity: 0; transform: translateY(26px); }
    to   { opacity: 1; transform: translateY(0); }
}
@keyframes drop-in {
    from { opacity: 0; transform: translateY(-10px) scale(.98); }
    to   { opacity: 1; transform: translateY(0) scale(1); }
}
@keyframes wiggle {
    0%, 100% { transform: rotate(0deg); }
    25%      { transform: rotate(-9deg); }
    75%      { transform: rotate(9deg); }
}
@keyframes bob {
    0%, 100% { transform: translateY(0) rotate(0); }
    50%      { transform: translateY(-6px) rotate(-3deg); }
}

/* ============================================================
   4. HERO
   ============================================================ */
#csechub-homepage .hero {
    position: relative;
    overflow: hidden;
    padding: 76px 0 104px;
    background: linear-gradient(135deg, var(--navy-900) 0%, var(--navy-800) 35%, var(--navy-600) 100%);
    color: #fff;
    isolation: isolate;
}
#csechub-homepage .hero::before {
    content: '';
    position: absolute;
    top: -60%;
    left: -20%;
    width: 140%;
    height: 220%;
    background: conic-gradient(from 0deg,
        transparent 0deg,
        rgba(34, 211, 238, .16) 55deg,
        transparent 120deg,
        rgba(251, 191, 36, .12) 200deg,
        transparent 270deg,
        rgba(56, 163, 241, .18) 330deg,
        transparent 360deg);
    animation: spin-slow 26s linear infinite;
    z-index: -2;
    pointer-events: none;
}
#csechub-homepage .hero::after {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255, 255, 255, .045) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, .045) 1px, transparent 1px);
    background-size: 52px 52px;
    -webkit-mask-image: radial-gradient(ellipse 90% 80% at 50% 10%, #000 20%, transparent 78%);
    mask-image: radial-gradient(ellipse 90% 80% at 50% 10%, #000 20%, transparent 78%);
    z-index: -1;
    pointer-events: none;
}
#csechub-homepage .blob {
    position: absolute;
    filter: blur(70px);
    opacity: .5;
    z-index: -1;
    pointer-events: none;
    will-change: transform, border-radius;
}
#csechub-homepage .blob-1 {
    width: 420px; height: 420px;
    top: -120px; left: -80px;
    background: radial-gradient(circle at 30% 30%, var(--cyan-400), var(--blue-600) 70%);
    animation: blob-morph 20s ease-in-out infinite;
}
#csechub-homepage .blob-2 {
    width: 380px; height: 380px;
    bottom: -160px; right: -60px;
    background: radial-gradient(circle at 60% 40%, var(--amber-400), var(--rose-400) 75%);
    opacity: .34;
    animation: blob-morph 26s ease-in-out infinite reverse;
}
#csechub-homepage .blob-3 {
    width: 300px; height: 300px;
    top: 40%; left: 46%;
    background: radial-gradient(circle at 50% 50%, var(--violet-400), transparent 70%);
    opacity: .28;
    animation: blob-morph 32s ease-in-out infinite;
}
#csechub-homepage .hero-inner {
    display: grid;
    grid-template-columns: 1.15fr .85fr;
    gap: 56px;
    align-items: center;
    position: relative;
    z-index: 2;
}
#csechub-homepage .hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    padding: 7px 16px 7px 9px;
    border-radius: var(--r-pill);
    background: rgba(255, 255, 255, .09);
    border: 1px solid rgba(255, 255, 255, .16);
    backdrop-filter: blur(10px);
    font-size: .76rem;
    font-weight: 700;
    letter-spacing: .6px;
    text-transform: uppercase;
    color: var(--cyan-300);
    margin-bottom: 22px;
    animation: rise-in .7s var(--ease) both;
}
#csechub-homepage .hero-badge .dot {
    position: relative;
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: var(--green-400);
    box-shadow: 0 0 10px var(--green-400);
}
#csechub-homepage .hero-badge .dot::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 50%;
    background: var(--green-400);
    animation: pulse-ring 2s ease-out infinite;
}
#csechub-homepage .hero h1 {
    font-family: var(--font-display);
    font-size: clamp(2.1rem, 4.6vw, 3.45rem);
    line-height: 1.1;
    font-weight: 800;
    letter-spacing: -1.6px;
    margin-bottom: 20px;
    animation: rise-in .8s var(--ease) .08s both;
}
#csechub-homepage .hero h1 .grad {
    background: linear-gradient(100deg, var(--cyan-300), var(--sky-400) 40%, var(--amber-400) 85%);
    background-size: 220% auto;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: gradient-pan 6s ease infinite;
    position: relative;
}
#csechub-homepage .hero h1 .grad::after {
    content: '';
    position: absolute;
    left: 2px;
    right: 2px;
    bottom: 4px;
    height: 7px;
    background: linear-gradient(90deg, var(--cyan-400), var(--amber-400));
    opacity: .28;
    border-radius: 4px;
    z-index: -1;
}
#csechub-homepage .hero-sub {
    font-size: 1.05rem;
    color: rgba(255, 255, 255, .76);
    max-width: 560px;
    margin-bottom: 32px;
    animation: rise-in .8s var(--ease) .16s both;
}
#csechub-homepage .hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-bottom: 40px;
    animation: rise-in .8s var(--ease) .24s both;
}
#csechub-homepage .btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 28px;
    border-radius: var(--r-pill);
    font-family: inherit;
    font-size: .93rem;
    font-weight: 700;
    cursor: pointer;
    border: 0;
    position: relative;
    overflow: hidden;
    transition: transform var(--t) var(--ease-bounce), box-shadow var(--t) var(--ease);
}
#csechub-homepage .btn i { transition: transform var(--t) var(--ease-bounce); }
#csechub-homepage .btn-primary {
    background: linear-gradient(115deg, var(--cyan-400), var(--sky-400) 50%, var(--blue-600));
    background-size: 200% auto;
    color: var(--navy-900);
    box-shadow: 0 16px 36px -14px rgba(34, 211, 238, .85);
    animation: gradient-pan 6s ease infinite;
}
#csechub-homepage .btn-primary::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(115deg, transparent 35%, rgba(255,255,255,.6) 50%, transparent 65%);
    transform: translateX(-130%) skewX(-22deg);
}
#csechub-homepage .btn-primary:hover {
    transform: translateY(-3px) scale(1.03);
    box-shadow: 0 24px 48px -16px rgba(34, 211, 238, 1);
    color: var(--navy-900);
}
#csechub-homepage .btn-primary:hover::after { animation: shine-sweep .85s var(--ease); }
#csechub-homepage .btn-primary:hover i { transform: translateX(4px); }
#csechub-homepage .btn-ghost {
    background: rgba(255, 255, 255, .07);
    color: #fff;
    border: 1.5px solid rgba(255, 255, 255, .22);
    backdrop-filter: blur(10px);
}
#csechub-homepage .btn-ghost:hover {
    background: rgba(255, 255, 255, .14);
    border-color: rgba(255, 255, 255, .45);
    color: #fff;
    transform: translateY(-3px);
    box-shadow: 0 18px 36px -18px rgba(0, 0, 0, .7);
}
#csechub-homepage .btn-ghost:hover i { transform: scale(1.2) rotate(8deg); }
#csechub-homepage .hero-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    animation: rise-in .8s var(--ease) .32s both;
}
#csechub-homepage .hero-stat strong {
    display: block;
    font-family: var(--font-display);
    font-size: 1.6rem;
    font-weight: 800;
    letter-spacing: -.8px;
    background: linear-gradient(100deg, #fff, var(--cyan-300));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}
#csechub-homepage .hero-stat span {
    font-size: .76rem;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: rgba(255, 255, 255, .55);
}
#csechub-homepage .hero-visual {
    position: relative;
    height: 420px;
    animation: rise-in .9s var(--ease) .2s both;
}
#csechub-homepage .float-card {
    position: absolute;
    display: flex;
    align-items: center;
    gap: 13px;
    padding: 15px 19px;
    border-radius: var(--r-lg);
    background: rgba(255, 255, 255, .1);
    border: 1px solid rgba(255, 255, 255, .18);
    backdrop-filter: blur(18px) saturate(160%);
    -webkit-backdrop-filter: blur(18px) saturate(160%);
    box-shadow: 0 26px 54px -24px rgba(0, 0, 0, .8);
    color: #fff;
    white-space: nowrap;
    transition: transform var(--t) var(--ease), box-shadow var(--t) var(--ease), border-color var(--t) var(--ease);
    will-change: transform;
}
#csechub-homepage .float-card:hover {
    border-color: rgba(34, 211, 238, .55);
    box-shadow: 0 30px 60px -22px rgba(34, 211, 238, .55);
    color: #fff;
}
#csechub-homepage .float-card .fc-icon {
    width: 42px;
    height: 42px;
    flex-shrink: 0;
    display: grid;
    place-items: center;
    border-radius: 13px;
    font-size: 1.05rem;
    color: #fff;
}
#csechub-homepage .fc-1 .fc-icon { background: linear-gradient(135deg, var(--cyan-400), var(--blue-600)); }
#csechub-homepage .fc-2 .fc-icon { background: linear-gradient(135deg, var(--green-400), #0f9d76); }
#csechub-homepage .fc-3 .fc-icon { background: linear-gradient(135deg, var(--amber-400), var(--rose-400)); }
#csechub-homepage .fc-4 .fc-icon { background: linear-gradient(135deg, var(--violet-400), var(--blue-500)); }
#csechub-homepage .float-card .fc-text strong {
    display: block;
    font-size: .92rem;
    font-weight: 700;
    letter-spacing: -.2px;
}
#csechub-homepage .float-card .fc-text span {
    font-size: .74rem;
    color: rgba(255, 255, 255, .6);
    font-weight: 600;
}
#csechub-homepage .fc-1 { top: 6%;  left: 2%;  animation: float-y 6s ease-in-out infinite; }
#csechub-homepage .fc-2 { top: 32%; right: 0%; animation: float-y 7.5s ease-in-out .6s infinite; }
#csechub-homepage .fc-3 { bottom: 24%; left: 8%; animation: float-y 6.8s ease-in-out 1.2s infinite; }
#csechub-homepage .fc-4 { bottom: 2%; right: 6%; animation: float-y 8s ease-in-out 1.8s infinite; }
#csechub-homepage .hero-visual::before {
    content: '';
    position: absolute;
    inset: 8% 4%;
    border-radius: 50%;
    border: 1px dashed rgba(255, 255, 255, .13);
    animation: spin-slow 40s linear infinite;
}
#csechub-homepage .hero-visual::after {
    content: '';
    position: absolute;
    top: 50%; left: 50%;
    width: 260px; height: 260px;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    background: radial-gradient(circle, rgba(34, 211, 238, .22), transparent 68%);
    filter: blur(24px);
    animation: float-y-sm 5s ease-in-out infinite;
}

/* ============================================================
   5. TICKER
   ============================================================ */
#csechub-homepage .ticker {
    background: linear-gradient(100deg, var(--amber-400), var(--amber-500) 55%, var(--rose-400));
    background-size: 220% auto;
    animation: gradient-pan 8s ease infinite;
    color: #3a2400;
    overflow: hidden;
    position: relative;
    padding: 11px 0;
    border-top: 1px solid rgba(255, 255, 255, .3);
    border-bottom: 1px solid rgba(0, 0, 0, .08);
}
#csechub-homepage .ticker-track {
    display: flex;
    gap: 56px;
    width: max-content;
    animation: marquee 32s linear infinite;
}
#csechub-homepage .ticker:hover .ticker-track { animation-play-state: paused; }
#csechub-homepage .ticker-item {
    display: inline-flex;
    align-items: center;
    gap: 11px;
    font-size: .84rem;
    font-weight: 700;
    letter-spacing: .2px;
    white-space: nowrap;
}
#csechub-homepage .ticker-item i { animation: wiggle 3s ease-in-out infinite; }

/* ============================================================
   6. SECTIONS
   ============================================================ */
#csechub-homepage .section { padding: 62px 0; }
#csechub-homepage .section-tight { padding: 40px 0; }
#csechub-homepage .section-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
    margin-bottom: 30px;
}
#csechub-homepage .section-head h2 {
    font-family: var(--font-display);
    font-size: clamp(1.45rem, 2.6vw, 2rem);
    font-weight: 800;
    letter-spacing: -1px;
    color: var(--navy-800);
    display: flex;
    align-items: center;
    gap: 13px;
}
#csechub-homepage .section-head h2 .ico {
    width: 42px;
    height: 42px;
    flex-shrink: 0;
    display: grid;
    place-items: center;
    border-radius: 13px;
    font-size: 1rem;
    color: #fff;
    background: linear-gradient(135deg, var(--blue-600), var(--navy-700));
    box-shadow: 0 12px 26px -12px rgba(30, 95, 168, .8);
}
#csechub-homepage .section-head p {
    color: var(--muted);
    font-size: .93rem;
    max-width: 620px;
    margin-top: 8px;
}
#csechub-homepage .section-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: .87rem;
    font-weight: 700;
    color: var(--blue-600);
    padding: 9px 18px;
    border-radius: var(--r-pill);
    border: 1.5px solid var(--line-strong);
    background: #fff;
    transition: all var(--t) var(--ease);
    white-space: nowrap;
}
#csechub-homepage .section-link:hover {
    background: linear-gradient(120deg, var(--blue-600), var(--navy-700));
    border-color: transparent;
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 14px 30px -14px rgba(30, 95, 168, .9);
}
#csechub-homepage .section-link:hover i { transform: translateX(4px); }
#csechub-homepage .section-link i { transition: transform var(--t) var(--ease-bounce); }
#csechub-homepage .reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity .8s var(--ease), transform .8s var(--ease);
}
#csechub-homepage .reveal.in { opacity: 1; transform: translateY(0); }

/* ============================================================
   7. QUICK CARDS
   ============================================================ */
#csechub-homepage .quick-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    gap: 20px;
}
#csechub-homepage .quick-card {
    position: relative;
    display: block;
    padding: 26px 24px;
    border-radius: var(--r-lg);
    background: #fff;
    border: 1px solid var(--line);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
    color: var(--ink);
    transition: transform var(--t) var(--ease), box-shadow var(--t) var(--ease), border-color var(--t) var(--ease);
    isolation: isolate;
}
#csechub-homepage .quick-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(140deg, var(--qc-from), var(--qc-to));
    opacity: 0;
    transition: opacity var(--t) var(--ease);
    z-index: -2;
}
#csechub-homepage .quick-card::after {
    content: '';
    position: absolute;
    top: -60%;
    left: -70%;
    width: 55%;
    height: 220%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .5), transparent);
    transform: rotate(22deg);
    transition: left .75s var(--ease);
    z-index: -1;
    pointer-events: none;
}
#csechub-homepage .quick-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 30px 60px -22px var(--qc-shadow);
    border-color: transparent;
    color: #fff;
}
#csechub-homepage .quick-card:hover::before { opacity: 1; }
#csechub-homepage .quick-card:hover::after { left: 130%; }
#csechub-homepage .quick-card .qc-icon {
    width: 52px;
    height: 52px;
    display: grid;
    place-items: center;
    border-radius: 16px;
    font-size: 1.25rem;
    color: #fff;
    background: linear-gradient(135deg, var(--qc-from), var(--qc-to));
    box-shadow: 0 14px 28px -14px var(--qc-shadow);
    margin-bottom: 18px;
    transition: transform var(--t) var(--ease-bounce), background var(--t) var(--ease);
}
#csechub-homepage .quick-card:hover .qc-icon {
    transform: rotate(-8deg) scale(1.1);
    background: rgba(255, 255, 255, .2);
    backdrop-filter: blur(8px);
    box-shadow: none;
}
#csechub-homepage .quick-card h3 {
    font-family: var(--font-display);
    font-size: 1.06rem;
    font-weight: 700;
    letter-spacing: -.4px;
    margin-bottom: 7px;
}
#csechub-homepage .quick-card p {
    font-size: .855rem;
    color: var(--muted);
    line-height: 1.55;
    transition: color var(--t) var(--ease);
}
#csechub-homepage .quick-card:hover p { color: rgba(255, 255, 255, .84); }
#csechub-homepage .quick-card .qc-arrow {
    position: absolute;
    top: 24px;
    right: 24px;
    font-size: .85rem;
    color: var(--line-strong);
    transition: transform var(--t) var(--ease-bounce), color var(--t) var(--ease);
}
#csechub-homepage .quick-card:hover .qc-arrow {
    transform: translate(5px, -5px);
    color: #fff;
}
#csechub-homepage .qc-blue { --qc-from: #2b7fc9; --qc-to: #0b1b2b; --qc-shadow: rgba(43, 127, 201, .85); }
#csechub-homepage .qc-cyan { --qc-from: #22d3ee; --qc-to: #1e5fa8; --qc-shadow: rgba(34, 211, 238, .85); }
#csechub-homepage .qc-amber { --qc-from: #fbbf24; --qc-to: #f59e0b; --qc-shadow: rgba(245, 158, 11, .85); }
#csechub-homepage .qc-violet { --qc-from: #a78bfa; --qc-to: #6d28d9; --qc-shadow: rgba(139, 92, 246, .85); }

/* ============================================================
   8. SUBJECT CARDS
   ============================================================ */
#csechub-homepage .subject-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(248px, 1fr));
    gap: 20px;
}
#csechub-homepage .subject-card {
    position: relative;
    border-radius: var(--r-lg);
    background: #fff;
    border: 1px solid var(--line);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
    transform-style: preserve-3d;
    transition: box-shadow var(--t) var(--ease), border-color var(--t) var(--ease), transform .12s linear;
    will-change: transform;
}
#csechub-homepage .subject-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--sc-from), var(--sc-to));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform var(--t) var(--ease);
}
#csechub-homepage .subject-card::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(600px circle at var(--mx, 50%) var(--my, 0%), rgba(34, 211, 238, .1), transparent 42%);
    opacity: 0;
    transition: opacity var(--t) var(--ease);
    pointer-events: none;
}
#csechub-homepage .subject-card:hover {
    box-shadow: 0 34px 64px -26px var(--sc-shadow);
    border-color: transparent;
}
#csechub-homepage .subject-card:hover::before { transform: scaleX(1); }
#csechub-homepage .subject-card:hover::after { opacity: 1; }
#csechub-homepage .sc-head {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 20px 20px 16px;
    border-bottom: 1px solid var(--line);
}
#csechub-homepage .sc-head h3 { font-family: var(--font-display); font-size: .97rem; font-weight: 700; letter-spacing: -.3px; color: var(--navy-800); line-height: 1.3; }
#csechub-homepage .sc-head h3 a { color: inherit; }
#csechub-homepage .sc-head h3 a:hover { color: var(--blue-600); }
#csechub-homepage .sc-badge {
    width: 46px;
    height: 46px;
    flex-shrink: 0;
    display: grid;
    place-items: center;
    border-radius: 14px;
    font-family: var(--font-display);
    font-size: 1rem;
    font-weight: 800;
    color: #fff;
    background: linear-gradient(135deg, var(--sc-from), var(--sc-to));
    box-shadow: 0 12px 26px -12px var(--sc-shadow);
    transition: transform var(--t) var(--ease-bounce);
}
#csechub-homepage .subject-card:hover .sc-badge { animation: bob 1.6s ease-in-out infinite; }
#csechub-homepage .sc-head .sc-count {
    display: block;
    font-family: var(--font-body);
    font-size: .72rem;
    font-weight: 600;
    color: var(--muted);
    letter-spacing: .3px;
    margin-top: 3px;
}
#csechub-homepage .sc-links { padding: 10px; }
#csechub-homepage .sc-links a {
    display: flex;
    align-items: center;
    gap: 11px;
    padding: 9px 12px;
    border-radius: var(--r-sm);
    font-size: .845rem;
    font-weight: 600;
    color: var(--ink-soft);
    transition: background var(--t-fast) ease, color var(--t-fast) ease, transform var(--t-fast) var(--ease), padding-left var(--t-fast) var(--ease);
}
#csechub-homepage .sc-links a i {
    font-size: .78rem;
    width: 16px;
    text-align: center;
    color: var(--sc-from);
    transition: transform var(--t) var(--ease-bounce);
}
#csechub-homepage .sc-links a:hover {
    background: linear-gradient(100deg, var(--surface-3), rgba(34, 211, 238, .1));
    color: var(--blue-600);
    transform: translateX(3px);
    padding-left: 16px;
}
#csechub-homepage .sc-links a:hover i { transform: scale(1.25); }
#csechub-homepage .sc-math { --sc-from: #22d3ee; --sc-to: #1e5fa8; --sc-shadow: rgba(34, 211, 238, .7); }
#csechub-homepage .sc-eng { --sc-from: #fb7185; --sc-to: #be123c; --sc-shadow: rgba(251, 113, 133, .7); }
#csechub-homepage .sc-bio { --sc-from: #34d399; --sc-to: #047857; --sc-shadow: rgba(52, 211, 153, .7); }
#csechub-homepage .sc-chem { --sc-from: #a78bfa; --sc-to: #6d28d9; --sc-shadow: rgba(167, 139, 250, .7); }
#csechub-homepage .sc-phys { --sc-from: #60a5fa; --sc-to: #1d4ed8; --sc-shadow: rgba(96, 165, 250, .7); }
#csechub-homepage .sc-it { --sc-from: #fbbf24; --sc-to: #d97706; --sc-shadow: rgba(251, 191, 36, .7); }
#csechub-homepage .sc-pob { --sc-from: #2dd4bf; --sc-to: #0f766e; --sc-shadow: rgba(45, 212, 191, .7); }
#csechub-homepage .sc-social { --sc-from: #f97316; --sc-to: #b91c1c; --sc-shadow: rgba(249, 115, 22, .7); }
#csechub-homepage .sc-hist { --sc-from: #c084fc; --sc-to: #7e22ce; --sc-shadow: rgba(192, 132, 252, .7); }
#csechub-homepage .sc-geo { --sc-from: #4ade80; --sc-to: #15803d; --sc-shadow: rgba(74, 222, 128, .7); }
#csechub-homepage .sc-acc { --sc-from: #38bdf8; --sc-to: #0369a1; --sc-shadow: rgba(56, 189, 248, .7); }
#csechub-homepage .sc-span { --sc-from: #facc15; --sc-to: #ea580c; --sc-shadow: rgba(250, 204, 21, .7); }

/* ============================================================
   9. PAST PAPER PANEL
   ============================================================ */
#csechub-homepage .paper-panel {
    border-radius: var(--r-xl);
    background: #fff;
    border: 1px solid var(--line);
    box-shadow: var(--shadow-md);
    overflow: hidden;
    position: relative;
}
#csechub-homepage .paper-panel::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--cyan-400), var(--blue-600), var(--amber-400), var(--cyan-400));
    background-size: 300% 100%;
    animation: gradient-pan 7s linear infinite;
}
#csechub-homepage .paper-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(215px, 1fr));
    gap: 10px;
    padding: 26px;
}
#csechub-homepage .paper-chip {
    display: flex;
    align-items: center;
    gap: 11px;
    padding: 12px 15px;
    border-radius: var(--r-md);
    background: var(--surface-2);
    border: 1px solid transparent;
    font-size: .865rem;
    font-weight: 600;
    color: var(--ink-soft);
    transition: all var(--t) var(--ease);
    position: relative;
    overflow: hidden;
}
#csechub-homepage .paper-chip i {
    color: var(--blue-500);
    font-size: .8rem;
    transition: transform var(--t) var(--ease-bounce), color var(--t) var(--ease);
}
#csechub-homepage .paper-chip span.tag {
    margin-left: auto;
    font-size: .68rem;
    font-weight: 700;
    letter-spacing: .4px;
    padding: 2px 8px;
    border-radius: var(--r-pill);
    background: rgba(34, 211, 238, .16);
    color: #0e7490;
    transition: all var(--t) var(--ease);
}
#csechub-homepage .paper-chip:hover {
    background: linear-gradient(100deg, var(--blue-600), var(--navy-700));
    color: #fff;
    border-color: transparent;
    transform: translateY(-3px) translateX(3px);
    box-shadow: 0 18px 34px -18px rgba(30, 95, 168, .95);
}
#csechub-homepage .paper-chip:hover i { color: var(--cyan-300); transform: scale(1.25) rotate(-10deg); }
#csechub-homepage .paper-chip:hover span.tag {
    background: rgba(255, 255, 255, .2);
    color: #fff;
}

/* ============================================================
   10. TOPIC PILLS
   ============================================================ */
#csechub-homepage .topic-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 11px;
    padding: 26px;
    border-radius: var(--r-xl);
    background: #fff;
    border: 1px solid var(--line);
    box-shadow: var(--shadow-sm);
}
#csechub-homepage .topic-pill {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    padding: 10px 18px;
    border-radius: var(--r-pill);
    background: var(--surface-2);
    border: 1px solid var(--line);
    font-size: .855rem;
    font-weight: 600;
    color: var(--ink-soft);
    transition: all var(--t) var(--ease);
}
#csechub-homepage .topic-pill i {
    font-size: .72rem;
    color: var(--blue-500);
    transition: transform var(--t) var(--ease-bounce);
}
#csechub-homepage .topic-pill:hover {
    background: linear-gradient(110deg, var(--cyan-400), var(--blue-600));
    color: #fff;
    border-color: transparent;
    transform: translateY(-3px) scale(1.04);
    box-shadow: 0 16px 32px -16px rgba(34, 211, 238, .95);
}
#csechub-homepage .topic-pill:hover i { color: #fff; transform: rotate(90deg) scale(1.2); }

/* ============================================================
   11. STATS BAND
   ============================================================ */
#csechub-homepage .stats-band {
    position: relative;
    border-radius: var(--r-xl);
    overflow: hidden;
    padding: 46px 32px;
    background: linear-gradient(120deg, var(--navy-900), var(--navy-700) 50%, var(--blue-600));
    background-size: 220% auto;
    animation: gradient-pan 12s ease infinite;
    color: #fff;
    box-shadow: var(--shadow-lg);
    isolation: isolate;
}
#csechub-homepage .stats-band::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255, 255, 255, .05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, .05) 1px, transparent 1px);
    background-size: 44px 44px;
    -webkit-mask-image: radial-gradient(ellipse at 50% 50%, #000 20%, transparent 80%);
    mask-image: radial-gradient(ellipse at 50% 50%, #000 20%, transparent 80%);
    z-index: -1;
}
#csechub-homepage .stats-band::after {
    content: '';
    position: absolute;
    width: 340px; height: 340px;
    top: -140px; right: -80px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(34, 211, 238, .4), transparent 68%);
    filter: blur(50px);
    animation: float-y 9s ease-in-out infinite;
    z-index: -1;
}
#csechub-homepage .stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 26px;
    text-align: center;
    position: relative;
    z-index: 1;
}
#csechub-homepage .stat-item {
    padding: 8px;
    position: relative;
}
#csechub-homepage .stat-item:not(:last-child)::after {
    content: '';
    position: absolute;
    right: -13px;
    top: 18%;
    height: 64%;
    width: 1px;
    background: linear-gradient(180deg, transparent, rgba(255, 255, 255, .25), transparent);
}
#csechub-homepage .stat-num {
    font-family: var(--font-display);
    font-size: clamp(1.9rem, 3.6vw, 2.65rem);
    font-weight: 800;
    letter-spacing: -1.5px;
    line-height: 1;
    display: inline-block;
    background: linear-gradient(100deg, #fff, var(--cyan-300) 60%, var(--amber-400));
    background-size: 200% auto;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: gradient-pan 5s ease infinite;
}
#csechub-homepage .stat-label {
    display: block;
    margin-top: 10px;
    font-size: .76rem;
    font-weight: 700;
    letter-spacing: 1.4px;
    text-transform: uppercase;
    color: rgba(255, 255, 255, .58);
}

/* ============================================================
   12. EXAM TABLE
   ============================================================ */
#csechub-homepage .table-shell {
    border-radius: var(--r-xl);
    overflow: hidden;
    border: 1px solid var(--line);
    box-shadow: var(--shadow-md);
    background: #fff;
}
#csechub-homepage .exam-table {
    width: 100%;
    border-collapse: collapse;
    font-size: .9rem;
}
#csechub-homepage .exam-table thead th {
    background: linear-gradient(100deg, var(--navy-800), var(--navy-600));
    color: #fff;
    text-align: left;
    padding: 15px 20px;
    font-size: .76rem;
    font-weight: 700;
    letter-spacing: 1.1px;
    text-transform: uppercase;
}
#csechub-homepage .exam-table tbody td {
    padding: 15px 20px;
    border-bottom: 1px solid var(--line);
    color: var(--ink-soft);
    font-weight: 500;
}
#csechub-homepage .exam-table tbody tr { transition: background var(--t-fast) ease; }
#csechub-homepage .exam-table tbody tr:hover { background: linear-gradient(100deg, var(--surface-2), rgba(34, 211, 238, .07)); }
#csechub-homepage .exam-table tbody tr:last-child td { border-bottom: 0; }
#csechub-homepage .exam-table td:first-child { font-weight: 700; color: var(--navy-800); }
#csechub-homepage .status-pill {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 4px 12px;
    border-radius: var(--r-pill);
    font-size: .72rem;
    font-weight: 700;
    letter-spacing: .4px;
}
#csechub-homepage .status-open { background: rgba(52, 211, 153, .16); color: #047857; }
#csechub-homepage .status-soon { background: rgba(251, 191, 36, .2);  color: #b45309; }
#csechub-homepage .status-closed { background: rgba(148, 163, 184, .2); color: #475569; }

/* ============================================================
   13. CTA
   ============================================================ */
#csechub-homepage .cta-band {
    position: relative;
    border-radius: var(--r-xl);
    padding: 54px 40px;
    text-align: center;
    overflow: hidden;
    background: linear-gradient(135deg, #ffffff, var(--surface-3));
    border: 1px solid var(--line);
    box-shadow: var(--shadow-md);
    isolation: isolate;
}
#csechub-homepage .cta-band::before {
    content: '';
    position: absolute;
    inset: -2px;
    border-radius: var(--r-xl);
    padding: 2px;
    background: linear-gradient(100deg, var(--cyan-400), var(--blue-600), var(--amber-400), var(--cyan-400));
    background-size: 300% 100%;
    animation: gradient-pan 8s linear infinite;
    -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    z-index: -1;
    opacity: .7;
}
#csechub-homepage .cta-band::after {
    content: '';
    position: absolute;
    width: 420px; height: 420px;
    bottom: -260px; left: 50%;
    transform: translateX(-50%);
    border-radius: 50%;
    background: radial-gradient(circle, rgba(34, 211, 238, .22), transparent 68%);
    filter: blur(50px);
    z-index: -1;
}
#csechub-homepage .cta-band h2 {
    font-family: var(--font-display);
    font-size: clamp(1.5rem, 3vw, 2.15rem);
    font-weight: 800;
    letter-spacing: -1.2px;
    color: var(--navy-800);
    margin-bottom: 12px;
}
#csechub-homepage .cta-band p {
    color: var(--muted);
    max-width: 540px;
    margin: 0 auto 28px;
    font-size: .96rem;
}
#csechub-homepage .cta-actions {
    display: flex;
    gap: 14px;
    justify-content: center;
    flex-wrap: wrap;
}
#csechub-homepage .btn-solid {
    background: linear-gradient(115deg, var(--blue-600), var(--navy-700));
    color: #fff;
    box-shadow: 0 16px 36px -16px rgba(30, 95, 168, .95);
}
#csechub-homepage .btn-solid:hover {
    transform: translateY(-3px) scale(1.03);
    color: #fff;
    box-shadow: 0 24px 48px -18px rgba(30, 95, 168, 1);
}
#csechub-homepage .btn-solid:hover i { transform: translateX(4px); }
#csechub-homepage .btn-outline {
    background: #fff;
    color: var(--navy-800);
    border: 1.5px solid var(--line-strong);
}
#csechub-homepage .btn-outline:hover {
    border-color: var(--blue-500);
    color: var(--blue-600);
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

/* ============================================================
   15. BACK TO TOP
   ============================================================ */
#csechub-homepage .to-top {
    position: fixed;
    right: 22px;
    bottom: 22px;
    width: 48px; height: 48px;
    display: grid;
    place-items: center;
    border: 0;
    border-radius: 14px;
    cursor: pointer;
    color: #fff;
    background: linear-gradient(135deg, var(--blue-600), var(--navy-700));
    box-shadow: 0 18px 36px -16px rgba(11, 27, 43, .9);
    opacity: 0;
    visibility: hidden;
    transform: translateY(18px) scale(.85);
    transition: all var(--t) var(--ease-bounce);
    z-index: 180;
}
#csechub-homepage .to-top.show { opacity: 1; visibility: visible; transform: translateY(0) scale(1); }
#csechub-homepage .to-top:hover {
    background: linear-gradient(135deg, var(--cyan-400), var(--blue-600));
    transform: translateY(-4px) scale(1.06);
    box-shadow: 0 24px 44px -16px rgba(34, 211, 238, .95);
}

/* ============================================================
   16. RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
#csechub-homepage .hero-inner { grid-template-columns: 1fr; gap: 40px; }
#csechub-homepage .hero-visual { height: 340px; max-width: 560px; margin: 0 auto; width: 100%; }
}

@media (max-width: 720px) {
#csechub-homepage .hero { padding: 54px 0 76px; }
#csechub-homepage .section { padding: 46px 0; }
#csechub-homepage .hero-visual { height: 300px; }
#csechub-homepage .float-card { padding: 12px 15px; gap: 10px; }
#csechub-homepage .float-card .fc-icon { width: 36px; height: 36px; font-size: .9rem; border-radius: 11px; }
#csechub-homepage .float-card .fc-text strong { font-size: .82rem; }
#csechub-homepage .float-card .fc-text span { font-size: .68rem; }
#csechub-homepage .stats-band { padding: 34px 22px; }
#csechub-homepage .stat-item:not(:last-child)::after { display: none; }
#csechub-homepage .cta-band { padding: 40px 22px; }
#csechub-homepage .paper-grid,
#csechub-homepage .topic-cloud { padding: 18px; }
}
@media (max-width: 520px) {
#csechub-homepage .hero-stats { gap: 20px; }
#csechub-homepage .hero-stat strong { font-size: 1.35rem; }
#csechub-homepage .section-head h2 { font-size: 1.28rem; }
#csechub-homepage .section-head h2 .ico { width: 36px; height: 36px; font-size: .88rem; }
#csechub-homepage .subject-grid,
#csechub-homepage .quick-grid { grid-template-columns: 1fr; }
#csechub-homepage .btn { padding: 12px 22px; font-size: .88rem; }
}

@media (prefers-reduced-motion: reduce) {
#csechub-homepage, #csechub-homepage *,
#csechub-homepage::before, #csechub-homepage *::before,
#csechub-homepage::after, #csechub-homepage *::after {
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .01ms !important;
        scroll-behavior: auto !important;
    }
#csechub-homepage .reveal { opacity: 1; transform: none; }
}

/* Let this template span Astra’s page container. */
body.csechub-homepage-template #content > .ast-container { width: 100%; max-width: none; padding: 0; }
