
    /* ============================================================
       CSS VARIABLES & RESET
    ============================================================ */
    :root {
      --primary:       #1d4ed8;
      --primary-light: #3b82f6;
      --primary-dark:  #1e3a8a;
      --accent:        #10b981;
      --accent-light:  #34d399;
      --bg:            #f8faff;
      --surface:       #ffffff;
      --surface2:      #f1f5ff;
      --border:        #e2e8f8;
      --text:          #0f172a;
      --text-muted:    #64748b;
      --text-light:    #94a3b8;
      --shadow-sm:     0 1px 3px rgba(29,78,216,.07), 0 1px 2px rgba(0,0,0,.04);
      --shadow:        0 4px 16px rgba(29,78,216,.10), 0 1px 4px rgba(0,0,0,.04);
      --shadow-lg:     0 12px 40px rgba(29,78,216,.14), 0 4px 12px rgba(0,0,0,.06);
      --radius:        14px;
      --radius-sm:     8px;
      --radius-lg:     20px;
      --font-display:  'Bricolage Grotesque', sans-serif;
      --font-body:     'DM Sans', sans-serif;
      --nav-h:         68px;
    }

    *, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
    html { scroll-behavior: smooth;
        overflow-x: hidden;
        scrollbar-width: none;
     }
    body {
      font-family: var(--font-body);
      background: var(--bg);
      color: var(--text);
      line-height: 1.6;
      font-size: 15px;
      min-height: 100vh;
      scrollbar-width: none;
      overflow-x: hidden;
      max-width: 100vw;
    }

    /* ============================================================
       PAGE SYSTEM — show/hide sections
    ============================================================ */
    .page { display: none; }
    .page.active { display: block; }

    /* ============================================================
       NAVIGATION
    ============================================================ */
    #mainNav {
      position: sticky; top: 0; z-index: 1000;
      background: rgba(255,255,255,.92);
      backdrop-filter: blur(16px);
      -webkit-backdrop-filter: blur(16px);
      border-bottom: 1px solid var(--border);
      height: var(--nav-h);
      transition: box-shadow .3s;
    }
    #mainNav.scrolled { box-shadow: var(--shadow); }
    .nav-inner {
      display: flex; align-items: center;
      justify-content: space-between;
      height: var(--nav-h);
      padding: 0 1.5rem;
      max-width: 1280px; margin: 0 auto;
    }
    .nav-logo {
      display: flex; align-items: center; gap: .5rem;
      text-decoration: none; cursor: pointer;
    }
    .nav-logo-icon {
      width: 36px; height: 36px; border-radius: 10px;
      background: linear-gradient(135deg, var(--primary), var(--accent));
      display: flex; align-items: center; justify-content: center;
      color: #fff; font-size: 18px; flex-shrink: 0;
    }
    .nav-logo-text {
      font-family: var(--font-display);
      font-weight: 700; font-size: 1.15rem; color: var(--text);
    }
    .nav-logo-text span { color: var(--primary); }
    .nav-links {
      display: flex; align-items: center; gap: .25rem;
      list-style: none;
    }
    .nav-links li a, .nav-links li button {
      padding: .45rem .85rem; border-radius: var(--radius-sm);
      font-weight: 500; font-size: .9rem; color: var(--text-muted);
      text-decoration: none; background: none; border: none; cursor: pointer;
      transition: background .2s, color .2s;
      font-family: var(--font-body);
    }
    .nav-links li a:hover, .nav-links li button:hover,
    .nav-links li a.active, .nav-links li button.active {
      background: var(--surface2); color: var(--primary);
    }
    .nav-cta {
      background: var(--primary) !important;
      color: #fff !important; padding: .45rem 1.1rem !important;
      border-radius: var(--radius-sm) !important;
    }
    .nav-cta:hover { background: var(--primary-dark) !important; }
    .nav-toggle {
      display: none; background: none; border: none;
      font-size: 1.4rem; color: var(--text); cursor: pointer;
      padding: .4rem;
    }
    .nav-mobile {
      display: none; position: absolute; top: var(--nav-h); left: 0; right: 0;
      background: var(--surface);
      border-bottom: 1px solid var(--border);
      padding: 1rem 1.5rem 1.5rem;
      box-shadow: var(--shadow);
      flex-direction: column; gap: .5rem;
    }
    .nav-mobile.open { display: flex; }
    .nav-mobile button, .nav-mobile a {
      padding: .7rem 1rem; border-radius: var(--radius-sm);
      font-weight: 500; font-size: .95rem; color: var(--text);
      text-decoration: none; background: none; border: none; cursor: pointer;
      font-family: var(--font-body); text-align: left;
      transition: background .2s, color .2s;
    }
    .nav-mobile button:hover, .nav-mobile a:hover { background: var(--surface2); color: var(--primary); }
    .nav-mobile .nav-cta { background: var(--primary) !important; color: #fff !important; text-align: center; }

    @media(max-width:768px) {
      .nav-links { display: none; }
      .nav-toggle { display: block; }
    }

    /* ============================================================
       HERO SECTION
    ============================================================ */
    .hero {
      background: linear-gradient(135deg, #1e3a8a 0%, #1d4ed8 45%, #0ea5e9 100%);
      padding: 100px 0 80px;
      position: relative; overflow: hidden;
    }
    .hero::before {
      content: '';
      position: absolute; inset: 0;
      background:
        radial-gradient(circle at 20% 50%, rgba(16,185,129,.18) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(99,102,241,.25) 0%, transparent 45%);
    }
    .hero-grid-bg {
      position: absolute; inset: 0; opacity: .07;
      background-image:
        linear-gradient(rgba(255,255,255,.5) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,.5) 1px, transparent 1px);
      background-size: 40px 40px;
    }
    .hero-content { position: relative; z-index: 1; }
    .hero-badge {
      display: inline-flex; align-items: center; gap: .5rem;
      background: rgba(255,255,255,.15); backdrop-filter: blur(8px);
      border: 1px solid rgba(255,255,255,.25);
      color: #fff; padding: .35rem .9rem; border-radius: 50px;
      font-size: .82rem; font-weight: 600; letter-spacing: .04em;
      margin-bottom: 1.5rem;
    }
    .hero-badge i { color: var(--accent-light); }
    .hero h1 {
      font-family: var(--font-display);
      font-size: clamp(2rem, 5vw, 3.4rem);
      font-weight: 800; color: #fff;
      line-height: 1.18; margin-bottom: 1.1rem;
    }
    .hero h1 em { color: var(--accent-light); font-style: normal; }
    .hero-sub {
      font-size: 1.05rem; color: rgba(255,255,255,.78);
      max-width: 540px; margin-bottom: 2.2rem;
    }
    .hero-search {
      background: #fff;
      border-radius: 50px; padding: .5rem .5rem .5rem 1.2rem;
      display: flex; align-items: center; gap: .5rem;
      box-shadow: 0 8px 32px rgba(0,0,0,.18);
      max-width: 580px; margin-bottom: 2rem;
    }
    .hero-search i { color: var(--text-light); font-size: 1.1rem; flex-shrink:0; }
    .hero-search input {
      flex: 1; border: none; outline: none;
      font-family: var(--font-body); font-size: .95rem; color: var(--text);
      background: transparent;
    }
    .hero-search button {
      background: var(--primary); color: #fff;
      border: none; border-radius: 40px;
      padding: .6rem 1.5rem; font-weight: 600; font-size: .9rem;
      cursor: pointer; transition: background .2s, transform .15s;
      white-space: nowrap;
      font-family: var(--font-body);
    }
    .hero-search button:hover { background: var(--primary-dark); transform: scale(1.03); }
    .hero-btns { display: flex; flex-wrap: wrap; gap: .75rem; }
    .btn-hero-primary {
      background: #fff; color: var(--primary);
      border: none; border-radius: 50px;
      padding: .7rem 1.6rem; font-weight: 700; font-size: .95rem;
      cursor: pointer; transition: all .2s;
      font-family: var(--font-body);
    }
    .btn-hero-primary:hover { background: var(--surface2); transform: translateY(-2px); }
    .btn-hero-ghost {
      background: rgba(255,255,255,.15); color: #fff;
      border: 1px solid rgba(255,255,255,.35); border-radius: 50px;
      padding: .7rem 1.6rem; font-weight: 600; font-size: .95rem;
      cursor: pointer; transition: all .2s; backdrop-filter: blur(4px);
      font-family: var(--font-body);
    }
    .btn-hero-ghost:hover { background: rgba(255,255,255,.25); transform: translateY(-2px); }
    .hero-stats {
      display: flex; flex-wrap: wrap; gap: 2rem;
      margin-top: 2.5rem;
    }
    .hero-stat { color: #fff; }
    .hero-stat .num {
      font-family: var(--font-display);
      font-size: 1.7rem; font-weight: 800; display: block;
    }
    .hero-stat .lbl { font-size: .82rem; color: rgba(255,255,255,.65); }
    .hero-visual {
      display: flex; flex-direction: column; gap: 1rem;
      position: relative; z-index: 1;
    }
    .hero-card-float {
      background: rgba(255,255,255,.12);
      backdrop-filter: blur(12px);
      border: 1px solid rgba(255,255,255,.22);
      border-radius: var(--radius);
      padding: 1rem 1.2rem;
      display: flex; align-items: center; gap: .85rem;
      color: #fff;
      transform: translateX(0);
      transition: transform .3s;
    }
    .hero-card-float:hover { transform: translateX(-4px); }
    .hero-card-float .ic {
      width: 40px; height: 40px; border-radius: 10px;
      display: flex; align-items: center; justify-content: center;
      font-size: 1.1rem; flex-shrink: 0;
    }
    .hero-card-float .ic.blue  { background: rgba(99,102,241,.4); }
    .hero-card-float .ic.green { background: rgba(16,185,129,.4); }
    .hero-card-float .ic.orange{ background: rgba(251,146,60,.4); }
    .hero-card-float h6 { font-weight: 700; font-size: .88rem; margin-bottom: 0; }
    .hero-card-float p  { font-size: .78rem; opacity: .75; margin: 0; }

    /* ============================================================
       SECTION SHARED STYLES
    ============================================================ */
    section { padding: 72px 0; }
    .section-label {
      display: inline-flex; align-items: center; gap: .4rem;
      font-size: .78rem; font-weight: 700; letter-spacing: .08em;
      text-transform: uppercase; color: var(--primary);
      background: rgba(29,78,216,.08); padding: .3rem .8rem;
      border-radius: 50px; margin-bottom: .9rem;
    }
    .section-title {
      font-family: var(--font-display);
      font-size: clamp(1.5rem, 3vw, 2.2rem);
      font-weight: 800; color: var(--text);
      margin-bottom: .6rem; line-height: 1.2;
    }
    .section-sub { color: var(--text-muted); max-width: 520px; margin-bottom: 2.5rem; }

    /* ============================================================
       CARD BASE
    ============================================================ */
    .fsk-card {
      background: var(--surface);
      border: 1px solid var(--border);
      border-radius: var(--radius);
      padding: 1.5rem;
      transition: box-shadow .25s, transform .25s, border-color .25s;
      height: 100%;
    }
    .fsk-card:hover {
      box-shadow: var(--shadow-lg);
      transform: translateY(-4px);
      border-color: var(--primary-light);
    }
    .card-icon {
      width: 52px; height: 52px; border-radius: 12px;
      display: flex; align-items: center; justify-content: center;
      font-size: 1.4rem; margin-bottom: 1rem;
    }
    .icon-blue   { background: rgba(29,78,216,.1);  color: var(--primary); }
    .icon-green  { background: rgba(16,185,129,.1); color: var(--accent); }
    .icon-orange { background: rgba(249,115,22,.1); color: #f97316; }
    .icon-purple { background: rgba(139,92,246,.1); color: #8b5cf6; }
    .icon-red    { background: rgba(239,68,68,.1);  color: #ef4444; }
    .icon-teal   { background: rgba(20,184,166,.1); color: #14b8a6; }
    .card-title  { font-family: var(--font-display); font-weight: 700; font-size: 1.05rem; margin-bottom: .4rem; }
    .card-desc   { color: var(--text-muted); font-size: .875rem; margin-bottom: 1.1rem; line-height: 1.55; }

    /* ============================================================
       BUTTONS
    ============================================================ */
    .btn-primary-fsk {
      background: var(--primary); color: #fff;
      border: none; border-radius: var(--radius-sm);
      padding: .55rem 1.3rem; font-weight: 600; font-size: .875rem;
      cursor: pointer; transition: background .2s, transform .15s;
      display: inline-flex; align-items: center; gap: .4rem;
      font-family: var(--font-body); text-decoration: none;
    }
    .btn-primary-fsk:hover { background: var(--primary-dark); transform: translateY(-1px); color: #fff; }
    .btn-outline-fsk {
      background: transparent; color: var(--primary);
      border: 1.5px solid var(--primary); border-radius: var(--radius-sm);
      padding: .55rem 1.3rem; font-weight: 600; font-size: .875rem;
      cursor: pointer; transition: all .2s;
      display: inline-flex; align-items: center; gap: .4rem;
      font-family: var(--font-body); text-decoration: none;
    }
    .btn-outline-fsk:hover { background: var(--primary); color: #fff; }
    .btn-green-fsk {
      background: var(--accent); color: #fff;
      border: none; border-radius: var(--radius-sm);
      padding: .55rem 1.3rem; font-weight: 600; font-size: .875rem;
      cursor: pointer; transition: background .2s, transform .15s;
      display: inline-flex; align-items: center; gap: .4rem;
      font-family: var(--font-body);
    }
    .btn-green-fsk:hover { background: #059669; transform: translateY(-1px); }

    /* ============================================================
       CATEGORIES
    ============================================================ */
    .categories-wrap { display: flex; flex-wrap: wrap; gap: 1rem; }
    .cat-pill {
      display: flex; align-items: center; gap: .6rem;
      padding: .75rem 1.3rem; border-radius: var(--radius);
      background: var(--surface); border: 1.5px solid var(--border);
      cursor: pointer; transition: all .25s;
      font-weight: 600; font-size: .9rem; color: var(--text);
      text-decoration: none;
    }
    .cat-pill i { font-size: 1.1rem; }
    .cat-pill:hover, .cat-pill.active { border-color: var(--primary); color: var(--primary); background: rgba(29,78,216,.05); }
    .cat-pill:hover .cat-arrow, .cat-pill.active .cat-arrow { transform: translateX(3px); }
    .cat-arrow { transition: transform .2s; color: var(--text-light); }

    /* ============================================================
       TRENDING
    ============================================================ */
    .trending-item {
      display: flex; align-items: flex-start; gap: .85rem;
      padding: 1rem 1.2rem; border-radius: var(--radius);
      background: var(--surface); border: 1px solid var(--border);
      transition: box-shadow .2s, border-color .2s;
    }
    .trending-item:hover { box-shadow: var(--shadow); border-color: var(--primary-light); }
    .trend-num {
      font-family: var(--font-display); font-weight: 800; font-size: 1.3rem;
      color: var(--border); flex-shrink: 0; line-height: 1; margin-top: 2px;
      min-width: 28px;
    }
    .trend-title { font-weight: 600; font-size: .9rem; margin-bottom: .2rem; }
    .trend-meta { font-size: .8rem; color: var(--text-muted); }
    .trend-badge {
      font-size: .7rem; font-weight: 700; padding: .18rem .55rem;
      border-radius: 50px; white-space: nowrap;
    }
    .badge-hot  { background: rgba(239,68,68,.1); color: #ef4444; }
    .badge-new  { background: rgba(16,185,129,.1); color: var(--accent); }
    .badge-pop  { background: rgba(139,92,246,.1); color: #8b5cf6; }

    /* ============================================================
       TOOLS PAGE
    ============================================================ */
    .tools-sidebar {
      position: sticky; top: calc(var(--nav-h) + 1rem);
    }
    .tool-nav-group { margin-bottom: 1.5rem; }
    .tool-nav-label {
      font-size: .72rem; font-weight: 700; letter-spacing: .09em;
      text-transform: uppercase; color: var(--text-light); margin-bottom: .5rem;
      padding: 0 .5rem;
    }
    .tool-nav-item {
      display: flex; align-items: center; gap: .6rem;
      padding: .55rem .75rem; border-radius: var(--radius-sm);
      cursor: pointer; transition: background .2s, color .2s;
      font-size: .875rem; font-weight: 500; color: var(--text-muted);
      border: none; background: none; width: 100%; text-align: left;
      font-family: var(--font-body);
    }
    .tool-nav-item i { font-size: 1rem; flex-shrink: 0; }
    .tool-nav-item:hover { background: var(--surface2); color: var(--text); }
    .tool-nav-item.active { background: rgba(29,78,216,.1); color: var(--primary); font-weight: 600; }

    /* Tool panels */
    .tool-panel { display: none; }
    .tool-panel.active { display: block; }
    .tool-box {
      background: var(--surface); border: 1px solid var(--border);
      border-radius: var(--radius-lg); padding: 2rem;
      margin-bottom: 1.5rem;
    }
    .tool-box-title {
      font-family: var(--font-display); font-size: 1.4rem; font-weight: 800;
      margin-bottom: .4rem;
    }
    .tool-box-desc { color: var(--text-muted); margin-bottom: 1.5rem; font-size: .9rem; }

    /* Form elements */
    .fsk-label { font-weight: 600; font-size: .85rem; margin-bottom: .4rem; display: block; }
    .fsk-input {
      width: 100%; padding: .65rem .9rem; border-radius: var(--radius-sm);
      border: 1.5px solid var(--border); font-family: var(--font-body);
      font-size: .9rem; color: var(--text); background: var(--bg);
      transition: border-color .2s, box-shadow .2s; outline: none;
    }
    .fsk-input:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(29,78,216,.08); }
    .fsk-select {
      width: 100%; padding: .65rem .9rem; border-radius: var(--radius-sm);
      border: 1.5px solid var(--border); font-family: var(--font-body);
      font-size: .9rem; color: var(--text); background: var(--bg);
      transition: border-color .2s; outline: none; cursor: pointer;
      appearance: none;
      background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%2394a3b8' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
      background-repeat: no-repeat;
      background-position: right .8rem center;
      padding-right: 2rem;
    }
    .fsk-select:focus { border-color: var(--primary); }

    .result-box {
      background: linear-gradient(135deg, rgba(29,78,216,.06), rgba(16,185,129,.06));
      border: 1.5px solid var(--primary-light);
      border-radius: var(--radius);
      padding: 1.25rem 1.5rem; margin-top: 1.2rem;
      display: none;
    }
    .result-box.show { display: block; }
    .result-title { font-size: .8rem; font-weight: 700; text-transform: uppercase; letter-spacing: .07em; color: var(--text-muted); margin-bottom: .4rem; }
    .result-value { font-family: var(--font-display); font-size: 2rem; font-weight: 800; color: var(--primary); }
    .result-sub { font-size: .85rem; color: var(--text-muted); margin-top: .2rem; }

    /* CGPA rows */
    .cgpa-row { display: grid; grid-template-columns: 1fr 1fr auto; gap: .6rem; align-items: center; margin-bottom: .6rem; }
    .cgpa-remove { background: none; border: none; color: var(--text-light); cursor: pointer; font-size: 1.1rem; transition: color .2s; padding: .3rem; }
    .cgpa-remove:hover { color: #ef4444; }

    /* Citation result */
    .citation-output {
      background: var(--bg); border: 1.5px solid var(--border);
      border-radius: var(--radius-sm); padding: 1rem;
      font-size: .9rem; font-style: italic; color: var(--text);
      margin-top: 1rem; line-height: 1.7; display: none;
    }
    .citation-output.show { display: block; }

    /* Topics list */
    .topic-list { list-style: none; padding: 0; }
    .topic-list li {
      padding: .75rem 1rem; border-radius: var(--radius-sm);
      border-left: 3px solid var(--primary); background: var(--surface2);
      margin-bottom: .5rem; font-size: .9rem; font-weight: 500;
      cursor: pointer; transition: background .2s;
    }
    .topic-list li:hover { background: rgba(29,78,216,.08); }

    /* Profit rows */
    .profit-table {
      width: 100%; border-collapse: collapse; font-size: .88rem;
    }
    .profit-table th, .profit-table td {
      padding: .6rem .8rem; text-align: left;
      border-bottom: 1px solid var(--border);
    }
    .profit-table th { font-weight: 700; color: var(--text-muted); font-size: .8rem; text-transform: uppercase; letter-spacing: .05em; }
    .profit-table td.num { font-family: var(--font-display); font-weight: 700; }
    .profit-table tr:last-child td { border-bottom: none; }
    .profit-green { color: var(--accent); }
    .profit-red { color: #ef4444; }

    /* Invoice */
    .invoice-preview {
      background: var(--surface); border: 1px solid var(--border);
      border-radius: var(--radius); padding: 1.5rem; display: none;
    }
    .invoice-preview.show { display: block; }
    .invoice-header-line { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 1.5rem; }
    .invoice-title { font-family: var(--font-display); font-size: 1.4rem; font-weight: 800; }
    .invoice-sub { font-size: .8rem; color: var(--text-muted); }
    .invoice-tbl { width: 100%; border-collapse: collapse; font-size: .88rem; margin-bottom: 1rem; }
    .invoice-tbl th { padding: .5rem .75rem; text-align: left; background: var(--surface2); font-size: .78rem; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--text-muted); }
    .invoice-tbl td { padding: .5rem .75rem; border-bottom: 1px solid var(--border); }
    .invoice-total { text-align: right; }
    .invoice-total span { font-family: var(--font-display); font-size: 1.3rem; font-weight: 800; color: var(--primary); }

    /* Related tools */
    .related-chip {
      display: inline-flex; align-items: center; gap: .4rem;
      padding: .4rem .9rem; border-radius: 50px;
      background: var(--surface); border: 1.5px solid var(--border);
      font-size: .82rem; font-weight: 600; color: var(--text);
      cursor: pointer; transition: all .2s;
      margin-right: .5rem; margin-bottom: .5rem;
    }
    .related-chip:hover { border-color: var(--primary); color: var(--primary); background: rgba(29,78,216,.04); }

    /* ============================================================
       PAST QUESTIONS PAGE
    ============================================================ */
    .filter-bar {
      background: var(--surface); border: 1px solid var(--border);
      border-radius: var(--radius); padding: 1.25rem 1.5rem;
      display: flex; flex-wrap: wrap; gap: 1rem; align-items: flex-end;
      margin-bottom: 2rem;
    }
    .filter-group { flex: 1; min-width: 160px; }
    .pq-card {
      background: var(--surface); border: 1px solid var(--border);
      border-radius: var(--radius); padding: 1.2rem 1.4rem;
      display: flex; align-items: center; gap: 1rem;
      transition: box-shadow .2s, border-color .2s;
      margin-bottom: .85rem;
    }
    .pq-card:hover { box-shadow: var(--shadow); border-color: var(--primary-light); }
    .pq-icon {
      width: 44px; height: 44px; border-radius: 10px;
      background: rgba(29,78,216,.08); color: var(--primary);
      display: flex; align-items: center; justify-content: center;
      font-size: 1.2rem; flex-shrink: 0;
    }
    .pq-title { font-weight: 700; font-size: .92rem; margin-bottom: .2rem; }
    .pq-meta { font-size: .78rem; color: var(--text-muted); }
    .pq-year { font-size: .75rem; background: rgba(29,78,216,.08); color: var(--primary); padding: .18rem .5rem; border-radius: 50px; font-weight: 700; }
    .pq-actions { margin-left: auto; display: flex; gap: .5rem; flex-shrink: 0; }

    /* ============================================================
       PROJECTS PAGE
    ============================================================ */
    .dept-filter { display: flex; flex-wrap: wrap; gap: .6rem; margin-bottom: 2rem; }
    .dept-btn {
      padding: .45rem 1rem; border-radius: 50px;
      border: 1.5px solid var(--border); background: var(--surface);
      font-size: .85rem; font-weight: 600; color: var(--text-muted);
      cursor: pointer; transition: all .2s; font-family: var(--font-body);
    }
    .dept-btn:hover, .dept-btn.active { border-color: var(--primary); color: var(--primary); background: rgba(29,78,216,.06); }
    .proj-card {
      background: var(--surface); border: 1px solid var(--border);
      border-radius: var(--radius); padding: 1.4rem;
      transition: box-shadow .25s, transform .25s;
      height: 100%;
    }
    .proj-card:hover { box-shadow: var(--shadow); transform: translateY(-3px); }
    .proj-dept-badge {
      font-size: .72rem; font-weight: 700; padding: .2rem .65rem;
      border-radius: 50px; margin-bottom: .85rem; display: inline-block;
    }
    .proj-title { font-family: var(--font-display); font-weight: 700; font-size: .95rem; margin-bottom: .5rem; line-height: 1.3; }
    .proj-abstract { font-size: .82rem; color: var(--text-muted); margin-bottom: 1rem; line-height: 1.55; }

    /* ============================================================
       TEMPLATES PAGE
    ============================================================ */
    .template-card {
      background: var(--surface); border: 1px solid var(--border);
      border-radius: var(--radius); padding: 1.4rem;
      display: flex; align-items: center; gap: 1.1rem;
      transition: box-shadow .2s, border-color .2s; height: 100%;
    }
    .template-card:hover { box-shadow: var(--shadow); border-color: var(--primary-light); }
    .template-file-icon {
      width: 52px; height: 64px; border-radius: 6px;
      display: flex; align-items: center; justify-content: center;
      font-size: 1.4rem; flex-shrink: 0; position: relative;
    }
    .tfi-word   { background: rgba(29,78,216,.1); color: #2563eb; }
    .tfi-ppt    { background: rgba(249,115,22,.1); color: #f97316; }
    .tfi-pdf    { background: rgba(239,68,68,.1);  color: #ef4444; }
    .tfi-excel  { background: rgba(16,185,129,.1); color: var(--accent); }

    /* ============================================================
       SCHOLARSHIP PAGE
    ============================================================ */
    .schol-card {
      background: var(--surface); border: 1px solid var(--border);
      border-radius: var(--radius); padding: 1.4rem;
      transition: box-shadow .25s, transform .25s; height: 100%;
      display: flex; flex-direction: column;
    }
    .schol-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-3px); }
    .schol-header { display: flex; align-items: flex-start; gap: .85rem; margin-bottom: .9rem; }
    .schol-logo {
      width: 46px; height: 46px; border-radius: 10px;
      display: flex; align-items: center; justify-content: center;
      font-size: 1.3rem; flex-shrink: 0;
    }
    .schol-title { font-family: var(--font-display); font-weight: 700; font-size: .95rem; margin-bottom: .2rem; line-height: 1.3; }
    .schol-org { font-size: .8rem; color: var(--text-muted); }
    .schol-desc { font-size: .85rem; color: var(--text-muted); margin-bottom: 1rem; flex: 1; line-height: 1.55; }
    .schol-footer { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: .5rem; }
    .deadline-pill {
      display: flex; align-items: center; gap: .35rem;
      font-size: .78rem; font-weight: 600;
    }
    .deadline-urgent { color: #ef4444; }
    .deadline-ok { color: var(--accent); }
    .deadline-soon { color: #f97316; }

    /* ============================================================
       PAGE HEADER BAND
    ============================================================ */
    .page-header {
      background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 100%);
      padding: 48px 0 44px; position: relative; overflow: hidden;
    }
    .page-header::before {
      content: ''; position: absolute; inset: 0;
      background: radial-gradient(circle at 80% 50%, rgba(16,185,129,.15), transparent 55%);
    }
    .page-header-inner { position: relative; z-index: 1; }
    .page-header h1 {
      font-family: var(--font-display); font-size: clamp(1.6rem, 4vw, 2.4rem);
      font-weight: 800; color: #fff; margin-bottom: .4rem;
    }
    .page-header p { color: rgba(255,255,255,.72); font-size: .95rem; margin: 0; }
    .breadcrumb-fsk { display: flex; align-items: center; gap: .4rem; margin-bottom: .75rem; }
    .breadcrumb-fsk span, .breadcrumb-fsk a {
      font-size: .8rem; color: rgba(255,255,255,.55); text-decoration: none; cursor: pointer;
    }
    .breadcrumb-fsk a:hover { color: rgba(255,255,255,.85); }
    .breadcrumb-fsk .sep { color: rgba(255,255,255,.3); }
    .breadcrumb-fsk .cur { color: rgba(255,255,255,.85); font-weight: 600; }

    /* ============================================================
       FOOTER
    ============================================================ */
    .site-footer {
      background: var(--text);
      color: rgba(255,255,255,.65); padding: 60px 0 30px;
    }
    .footer-logo-wrap { margin-bottom: 1rem; }
    .footer-logo {
      display: inline-flex; align-items: center; gap: .5rem;
      text-decoration: none; margin-bottom: .75rem;
    }
    .footer-logo-icon {
      width: 32px; height: 32px; border-radius: 8px;
      background: linear-gradient(135deg, var(--primary), var(--accent));
      display: flex; align-items: center; justify-content: center;
      color: #fff; font-size: 15px;
    }
    .footer-logo-text { font-family: var(--font-display); font-weight: 700; font-size: 1rem; color: #fff; }
    .footer-logo-text span { color: var(--accent-light); }
    .footer-tagline { font-size: .85rem; line-height: 1.6; max-width: 280px; }
    .footer-heading { font-size: .8rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: #fff; margin-bottom: .9rem; }
    .footer-links { list-style: none; padding: 0; }
    .footer-links li { margin-bottom: .45rem; }
    .footer-links li a, .footer-links li button {
      color: rgba(255,255,255,.55); text-decoration: none; font-size: .875rem;
      transition: color .2s; background: none; border: none; cursor: pointer;
      font-family: var(--font-body); padding: 0; text-align: left;
    }
    .footer-links li a:hover, .footer-links li button:hover { color: #fff; }
    .footer-divider { border-color: rgba(255,255,255,.1); margin: 2rem 0 1.5rem; }
    .footer-bottom { display: flex; flex-wrap: wrap; gap: .75rem; justify-content: space-between; align-items: center; }
    .footer-disclaimer { font-size: .78rem; color: rgba(255,255,255,.35); max-width: 500px; }
    .footer-copy { font-size: .82rem; color: rgba(255,255,255,.45); }
    .footer-socials { display: flex; gap: .6rem; }
    .social-btn {
      width: 34px; height: 34px; border-radius: 8px;
      background: rgba(255,255,255,.08); color: rgba(255,255,255,.6);
      display: flex; align-items: center; justify-content: center;
      text-decoration: none; font-size: .95rem;
      transition: background .2s, color .2s;
    }
    .social-btn:hover { background: var(--primary); color: #fff; }

    /* ============================================================
       FLOATING WHATSAPP BUTTON
    ============================================================ */
    .wa-fab {
      position: fixed; bottom: 1.5rem; right: 1.5rem; z-index: 9999;
      width: 54px; height: 54px; border-radius: 50%;
      background: #25D366;
      display: flex; align-items: center; justify-content: center;
      text-decoration: none; color: #fff; font-size: 1.4rem;
      box-shadow: 0 6px 24px rgba(37,211,102,.4);
      transition: transform .2s, box-shadow .2s;
      animation: waPulse 3s ease infinite;
    }
    .wa-fab:hover { transform: scale(1.1); box-shadow: 0 8px 30px rgba(37,211,102,.55); color: #fff; }
    @keyframes waPulse {
      0%, 100% { box-shadow: 0 6px 24px rgba(37,211,102,.4); }
      50% { box-shadow: 0 6px 32px rgba(37,211,102,.65), 0 0 0 8px rgba(37,211,102,.1); }
    }
    .wa-tooltip {
      position: fixed; bottom: 4.2rem; right: 4.5rem;
      background: #fff; box-shadow: var(--shadow);
      border-radius: var(--radius-sm); padding: .4rem .75rem;
      font-size: .78rem; font-weight: 600; color: var(--text);
      white-space: nowrap; opacity: 0; transform: translateX(8px);
      transition: all .25s; pointer-events: none; z-index: 9998;
    }
    .wa-fab:hover + .wa-tooltip, .wa-tooltip:hover { opacity: 1; transform: translateX(0); }

    /* ============================================================
       MISC
    ============================================================ */
    .divider-deco {
      display: flex; align-items: center; gap: 1rem; margin-bottom: 2.5rem;
    }
    .divider-deco::before, .divider-deco::after {
      content: ''; flex: 1; height: 1px; background: var(--border);
    }
    .divider-deco span { font-size: .78rem; font-weight: 700; color: var(--text-light); text-transform: uppercase; letter-spacing: .08em; white-space: nowrap; }
    .info-alert {
      background: rgba(29,78,216,.07); border: 1px solid rgba(29,78,216,.18);
      border-radius: var(--radius-sm); padding: .7rem 1rem;
      font-size: .84rem; color: var(--primary); display: flex; gap: .5rem; align-items: flex-start;
    }
    .green-alert {
      background: rgba(16,185,129,.07); border: 1px solid rgba(16,185,129,.2);
      color: #065f46;
    }
    .tag-chip {
      display: inline-block; font-size: .72rem; font-weight: 700;
      padding: .18rem .55rem; border-radius: 50px;
      margin-right: .3rem; margin-bottom: .3rem;
    }
    .count-badge {
      display: inline-flex; align-items: center; justify-content: center;
      width: 20px; height: 20px; border-radius: 50%;
      background: var(--primary); color: #fff; font-size: .68rem; font-weight: 700;
      margin-left: .35rem;
    }

    /* ============================================================
       SEARCH RESULTS OVERLAY
    ============================================================ */
    .search-results-overlay {
      position: fixed; top: var(--nav-h); left: 0; right: 0; z-index: 999;
      background: rgba(15,23,42,.3); backdrop-filter: blur(4px);
      display: none;
    }
    .search-results-overlay.show { display: block; }
    .search-results-panel {
      background: var(--surface); max-width: 640px; margin: 1rem auto;
      border-radius: var(--radius-lg); box-shadow: var(--shadow-lg);
      border: 1px solid var(--border); overflow: hidden;
    }
    .sr-item {
      display: flex; align-items: center; gap: .85rem;
      padding: .9rem 1.2rem; transition: background .15s; cursor: pointer;
      border-bottom: 1px solid var(--border);
    }
    .sr-item:last-child { border-bottom: none; }
    .sr-item:hover { background: var(--surface2); }
    .sr-item-icon { width: 36px; height: 36px; border-radius: 8px; display: flex; align-items: center; justify-content: center; font-size: .95rem; flex-shrink: 0; }
    .sr-item-text .sr-title { font-weight: 600; font-size: .9rem; margin-bottom: .1rem; }
    .sr-item-text .sr-cat { font-size: .75rem; color: var(--text-muted); }

    /* scroll reveal */
    .reveal { opacity: 0; transform: translateY(20px); transition: opacity .5s ease, transform .5s ease; }
    .reveal.visible { opacity: 1; transform: translateY(0); }
    .reveal-delay-1 { transition-delay: .1s; }
    .reveal-delay-2 { transition-delay: .2s; }
    .reveal-delay-3 { transition-delay: .3s; }
    .reveal-delay-4 { transition-delay: .4s; }

    /* ============================================================
       UTILITY
    ============================================================ */
    .bg-surface { background: var(--surface); }
    .bg-surface2 { background: var(--surface2); }
    .text-muted-fsk { color: var(--text-muted); }
    .gap-sm { gap: .5rem; }
    @media(max-width:576px) {
      section { padding: 50px 0; }
      .hero { padding: 64px 0 52px; }
      .tool-box { padding: 1.2rem; }
      .hero-visual { display: none; }
      .pq-actions { flex-direction: column; }
    }
  