
  *, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

  :root {
    --green-900: #0D2B1A;
    --green-800: #173D27;
    --green-700: #1E5433;
    --green-600: #246B3F;
    --green-500: #2E854F;
    --green-400: #4CAF73;
    --green-100: #D0EDDA;
    --green-50:  #EBF6EE;
    --gold-600:  #B8860B;
    --gold-500:  #D4A017;
    --gold-400:  #E6B830;
    --gold-100:  #FDF3CC;
    --cream:     #FAFAF7;
    --white:     #FFFFFF;
    --gray-800:  #1F2937;
    --gray-600:  #4B5563;
    --gray-400:  #9CA3AF;
    --gray-200:  #E5E7EB;
    --gray-100:  #F3F4F6;
    --font-display: 'Playfair Display', Georgia, serif;
    --font-body: 'DM Sans', system-ui, sans-serif;
    --radius-sm: 6px;
    --radius-md: 12px;
    --radius-lg: 20px;
  }

  html { scroll-behavior: smooth; }
  body { font-family: var(--font-body); color: var(--gray-800); background: var(--white); line-height: 1.6; font-size: 16px; }

  /* ─── TOP BAR ─── */
  .topbar { background: var(--green-900); color: #a8d5b8; font-size: 12.5px; padding: 6px 0; letter-spacing: 0.01em; }
  .topbar-inner { max-width: 1200px; margin: 0 auto; padding: 0 24px; display: flex; justify-content: space-between; align-items: center; }
  .topbar a { color: #a8d5b8; text-decoration: none; }
  .topbar a:hover { color: var(--gold-400); }
  .topbar-links { display: flex; gap: 20px; }

  /* ─── NAVBAR ─── */
  nav { background: var(--white); border-bottom: 1px solid var(--gray-200); position: sticky; top: 0; z-index: 100; box-shadow: 0 1px 8px rgba(0,0,0,0.06); }
  .nav-inner { max-width: 1200px; margin: 0 auto; padding: 0 24px; display: flex; align-items: center; justify-content: space-between; height: 68px; }
  .brand { display: flex; align-items: center; gap: 14px; text-decoration: none; }
  .brand-icon { width: 46px; height: 46px; background: var(--green-700); border-radius: 10px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
  .brand-icon svg { width: 28px; height: 28px; fill: var(--gold-400); }
  .brand-text { line-height: 1.25; }
  .brand-text .prog { font-family: var(--font-display); font-size: 14px; color: var(--green-700); font-weight: 700; }
  .brand-text .inst { font-size: 11px; color: var(--gray-600); letter-spacing: 0.02em; text-transform: uppercase; }
  .nav-links { display: flex; align-items: center; gap: 4px; list-style: none; }
  .nav-links a { font-size: 14px; font-weight: 500; color: var(--gray-800); text-decoration: none; padding: 6px 14px; border-radius: 6px; transition: background 0.18s, color 0.18s; }
  .nav-links a:hover { background: var(--green-50); color: var(--green-700); }
  .nav-links a.active { color: var(--green-700); background: var(--green-50); }
  .has-dropdown { position: relative; }
  .has-dropdown > a::after { content: " ▾"; font-size: 10px; }
  .dropdown { display: none; position: absolute; top: calc(100% + 8px); left: 0; background: var(--white); border: 1px solid var(--gray-200); border-radius: var(--radius-md); box-shadow: 0 8px 24px rgba(0,0,0,0.10); min-width: 200px; overflow: hidden; z-index: 200; }
  .has-dropdown:hover .dropdown { display: block; }
  .dropdown a { display: block; padding: 10px 18px !important; border-radius: 0 !important; font-size: 13.5px; border-bottom: 1px solid var(--gray-100); }
  .dropdown a:last-child { border-bottom: none; }
  .btn-daftar { background: var(--green-600); color: var(--white) !important; padding: 8px 18px !important; border-radius: 8px !important; font-weight: 600; }
  .btn-daftar:hover { background: var(--green-700) !important; color: var(--white) !important; }

  /* ─── PAGE HEADER ─── */
  .page-header {
    background: var(--green-900);
    color: var(--white);
    padding: 64px 0 56px;
    position: relative;
    overflow: hidden;
  }
  .page-header::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
      repeating-linear-gradient(45deg, rgba(255,255,255,0.02) 0, rgba(255,255,255,0.02) 1px, transparent 0, transparent 50%),
      repeating-linear-gradient(-45deg, rgba(255,255,255,0.02) 0, rgba(255,255,255,0.02) 1px, transparent 0, transparent 50%);
    background-size: 40px 40px;
    pointer-events: none;
  }
  .page-header::after {
    content: '';
    position: absolute;
    right: -80px; top: -80px;
    width: 400px; height: 400px;
    border-radius: 50%;
    background: rgba(46,133,79,0.12);
    pointer-events: none;
  }
  .page-header-inner { max-width: 1200px; margin: 0 auto; padding: 0 24px; position: relative; z-index: 1; }
  .breadcrumb { display: flex; align-items: center; gap: 8px; font-size: 13px; color: rgba(255,255,255,0.55); margin-bottom: 18px; }
  .breadcrumb a { color: rgba(255,255,255,0.55); text-decoration: none; transition: color 0.15s; }
  .breadcrumb a:hover { color: var(--gold-400); }
  .breadcrumb span { color: var(--gold-400); }
  .breadcrumb-sep { font-size: 10px; color: rgba(255,255,255,0.3); }
  .page-header h1 { font-family: var(--font-display); font-size: 44px; font-weight: 700; line-height: 1.15; margin-bottom: 14px; }
  .page-header h1 em { font-style: normal; color: var(--gold-400); }
  .page-header p { font-size: 16px; color: rgba(255,255,255,0.7); max-width: 560px; line-height: 1.75; }

  /* ─── FILTER BAR ─── */
  .filter-bar { background: var(--white); border-bottom: 1px solid var(--gray-200); position: sticky; top: 68px; z-index: 90; }
  .filter-inner { max-width: 1200px; margin: 0 auto; padding: 0 24px; display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; min-height: 60px; }
  .filter-tabs { display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; padding: 12px 0; }
  .filter-tabs::-webkit-scrollbar { display: none; }
  .filter-tab {
    white-space: nowrap;
    padding: 7px 16px;
    border-radius: 100px;
    font-size: 13.5px;
    font-weight: 500;
    cursor: pointer;
    border: 1.5px solid var(--gray-200);
    color: var(--gray-600);
    background: var(--white);
    transition: all 0.18s;
    user-select: none;
  }
  .filter-tab:hover { border-color: var(--green-400); color: var(--green-700); background: var(--green-50); }
  .filter-tab.active { background: var(--green-700); color: var(--white); border-color: var(--green-700); }
  .filter-search { display: flex; align-items: center; gap: 10px; }
  .search-wrap { position: relative; }
  .search-wrap input {
    padding: 8px 14px 8px 38px;
    border: 1.5px solid var(--gray-200);
    border-radius: 100px;
    font-size: 13.5px;
    font-family: var(--font-body);
    color: var(--gray-800);
    width: 220px;
    outline: none;
    transition: border-color 0.2s;
    background: var(--gray-100);
  }
  .search-wrap input:focus { border-color: var(--green-500); background: var(--white); }
  .search-wrap::before {
    content: '🔍';
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 13px;
    pointer-events: none;
  }

  /* ─── FEATURED / HERO CARD ─── */
  .featured-section { background: var(--cream); padding: 52px 0 0; }
  .container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
  .section-label { font-size: 12px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--green-600); margin-bottom: 10px; }

  .featured-card {
    display: grid;
    grid-template-columns: 1fr 420px;
    gap: 0;
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--gray-200);
    background: var(--white);
    margin-bottom: 52px;
    text-decoration: none;
    color: inherit;
    transition: box-shadow 0.2s;
  }
  .featured-card:hover { box-shadow: 0 12px 48px rgba(0,0,0,0.1); }
  .featured-img {
    background: linear-gradient(135deg, var(--green-900), var(--green-600));
    min-height: 340px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
  }
  .featured-img-icon { font-size: 100px; opacity: 0.2; }
  .featured-img-overlay {
    position: absolute;
    bottom: 0; left: 0; right: 0;
    background: linear-gradient(transparent, rgba(13,43,26,0.7));
    padding: 32px 28px 24px;
  }
  .feat-cat { display: inline-block; background: var(--gold-500); color: var(--green-900); font-size: 11px; font-weight: 700; padding: 3px 10px; border-radius: 100px; letter-spacing: 0.04em; text-transform: uppercase; margin-bottom: 10px; }
  .feat-cat-alt { display: inline-block; background: rgba(255,255,255,0.18); color: var(--white); font-size: 11px; font-weight: 600; padding: 3px 10px; border-radius: 100px; letter-spacing: 0.04em; text-transform: uppercase; }
  .featured-body { padding: 36px 36px 36px; display: flex; flex-direction: column; justify-content: center; }
  .featured-tag { display: inline-flex; align-items: center; gap: 6px; margin-bottom: 14px; }
  .news-date-feat { font-size: 12.5px; color: var(--gray-400); }
  .featured-body h2 { font-family: var(--font-display); font-size: 26px; font-weight: 700; color: var(--gray-800); line-height: 1.35; margin-bottom: 14px; }
  .featured-body p { font-size: 15px; color: var(--gray-600); line-height: 1.75; margin-bottom: 28px; }
  .btn-read {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--green-600);
    color: var(--white);
    padding: 11px 22px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: background 0.2s;
    align-self: flex-start;
  }
  .btn-read:hover { background: var(--green-700); }

  /* ─── NEWS GRID ─── */
  .news-section { background: var(--white); padding: 52px 0 80px; }
  .news-section-header { display: flex; justify-content: space-between; align-items: flex-end; margin-bottom: 36px; flex-wrap: wrap; gap: 12px; }
  .results-count { font-size: 14px; color: var(--gray-400); }

  .news-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
  .news-card {
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--gray-200);
    transition: box-shadow 0.2s, transform 0.2s;
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    background: var(--white);
  }
  .news-card:hover { box-shadow: 0 8px 30px rgba(0,0,0,0.09); transform: translateY(-4px); }
  .news-img {
    height: 190px;
    background: var(--green-100);
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.4s;
  }
  .news-card:hover .news-img { transform: scale(1.03); }
  .news-img-icon { font-size: 52px; opacity: 0.35; }
  /* gradient variants */
  .img-akademik  { background: linear-gradient(135deg, #1E5433, #2E854F); }
  .img-kerjasama { background: linear-gradient(135deg, #0D2B1A, #246B3F); }
  .img-riset     { background: linear-gradient(135deg, #173D27, #4CAF73); }
  .img-mahasiswa { background: linear-gradient(135deg, #246B3F, #B8860B); }
  .img-pkm       { background: linear-gradient(135deg, #0D2B1A, #1E5433); }
  .img-prestasi  { background: linear-gradient(135deg, #B8860B, #1E5433); }

  .news-cat {
    position: absolute;
    top: 14px; left: 14px;
    background: var(--gold-500);
    color: var(--green-900);
    font-size: 11px;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: 100px;
    letter-spacing: 0.04em;
    text-transform: uppercase;
  }
  .news-body { padding: 20px 22px 24px; flex: 1; display: flex; flex-direction: column; }
  .news-meta { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; flex-wrap: wrap; }
  .news-date { font-size: 12px; color: var(--gray-400); }
  .news-dot { width: 3px; height: 3px; background: var(--gray-400); border-radius: 50%; }
  .news-author { font-size: 12px; color: var(--gray-400); }
  .news-title { font-size: 16px; font-weight: 600; color: var(--gray-800); line-height: 1.45; margin-bottom: auto; }
  .news-excerpt { font-size: 13.5px; color: var(--gray-600); line-height: 1.65; margin-top: 8px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
  .news-link { margin-top: 16px; font-size: 13px; color: var(--green-600); font-weight: 600; display: flex; align-items: center; gap: 4px; }

  /* ─── PAGINATION ─── */
  .pagination { display: flex; align-items: center; justify-content: center; gap: 6px; margin-top: 52px; padding-bottom: 80px; }
  .page-btn {
    width: 40px; height: 40px;
    border: 1.5px solid var(--gray-200);
    border-radius: 8px;
    display: flex; align-items: center; justify-content: center;
    font-size: 14px;
    font-weight: 500;
    color: var(--gray-600);
    cursor: pointer;
    text-decoration: none;
    transition: all 0.15s;
    font-family: var(--font-body);
    background: var(--white);
  }
  .page-btn:hover { border-color: var(--green-500); color: var(--green-700); background: var(--green-50); }
  .page-btn.active { background: var(--green-700); border-color: var(--green-700); color: var(--white); }
  .page-btn.prev, .page-btn.next { width: auto; padding: 0 16px; gap: 6px; }
  .page-dots { color: var(--gray-400); font-size: 14px; padding: 0 4px; }

  /* ─── FOOTER ─── */
  footer { background: var(--green-900); color: rgba(255,255,255,0.75); padding: 60px 0 24px; }
  .footer-inner { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
  .footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 48px; padding-bottom: 48px; border-bottom: 1px solid rgba(255,255,255,0.1); margin-bottom: 32px; }
  .footer-brand .logo-text { font-family: var(--font-display); font-size: 18px; color: var(--white); font-weight: 700; margin-bottom: 6px; }
  .footer-brand .inst-sub { font-size: 12px; color: var(--gold-400); letter-spacing: 0.05em; text-transform: uppercase; margin-bottom: 16px; }
  .footer-brand p { font-size: 14px; line-height: 1.7; }
  .footer-col h5 { font-size: 13px; font-weight: 600; color: var(--white); text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 16px; }
  .footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 9px; }
  .footer-col ul a { color: rgba(255,255,255,0.65); text-decoration: none; font-size: 14px; transition: color 0.15s; }
  .footer-col ul a:hover { color: var(--gold-400); }
  .social-links { display: flex; gap: 10px; margin-top: 20px; }
  .social-link { width: 36px; height: 36px; background: rgba(255,255,255,0.1); border-radius: 8px; display: flex; align-items: center; justify-content: center; color: rgba(255,255,255,0.7); text-decoration: none; font-size: 16px; transition: background 0.15s, color 0.15s; }
  .social-link:hover { background: var(--gold-500); color: var(--green-900); }
  .jamker-item { display: flex; justify-content: space-between; font-size: 13px; padding: 5px 0; border-bottom: 1px solid rgba(255,255,255,0.07); }
  .jamker-item:last-child { border-bottom: none; }
  .footer-bottom { display: flex; justify-content: space-between; align-items: center; font-size: 13px; color: rgba(255,255,255,0.4); }
  .footer-bottom a { color: rgba(255,255,255,0.5); text-decoration: none; }
  .footer-bottom a:hover { color: var(--gold-400); }

  /* ─── RESPONSIVE ─── */
  @media (max-width: 1024px) {
    .featured-card { grid-template-columns: 1fr; }
    .featured-img { min-height: 240px; }
    .news-grid { grid-template-columns: repeat(2, 1fr); }
  }
  @media (max-width: 768px) {
    .page-header h1 { font-size: 32px; }
    .news-grid { grid-template-columns: 1fr; }
    .filter-inner { flex-direction: column; align-items: flex-start; padding: 8px 24px; }
    .search-wrap input { width: 100%; }
    .filter-search { width: 100%; }
    .search-wrap { width: 100%; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .topbar-links { display: none; }
    .nav-links { display: none; }
  }
