* { -webkit-font-smoothing: antialiased; }
  html, body { overflow-x: hidden; }
  body { font-family: 'Lora', serif; color: #111111; background: #FFFFFF; }
  .font-playfair { font-family: 'Playfair Display', serif; }
  .font-jakarta { font-family: 'Plus Jakarta Sans', sans-serif; }

  /* ============ WP ADMIN BAR FIX ============ */
  body.admin-bar #navbar { top: 32px; }
  @media screen and (max-width: 782px) {
    body.admin-bar #navbar { top: 46px; }
  }

  /* ============ LATTICE PATTERNS ============ */
  .lattice-dark {
    background-color: #0B0B0A;
    background-image:
      linear-gradient(45deg, rgba(199,154,46,0.10) 25%, transparent 25%),
      linear-gradient(-45deg, rgba(199,154,46,0.10) 25%, transparent 25%),
      linear-gradient(45deg, transparent 75%, rgba(199,154,46,0.10) 75%),
      linear-gradient(-45deg, transparent 75%, rgba(199,154,46,0.10) 75%);
    background-size: 40px 40px;
    background-position: 0 0, 0 20px, 20px -20px, -20px 0px;
  }
  .lattice-dense {
    background-color: #0B0B0A;
    background-image:
      linear-gradient(45deg, rgba(199,154,46,0.16) 25%, transparent 25%),
      linear-gradient(-45deg, rgba(199,154,46,0.16) 25%, transparent 25%),
      linear-gradient(45deg, transparent 75%, rgba(199,154,46,0.16) 75%),
      linear-gradient(-45deg, transparent 75%, rgba(199,154,46,0.16) 75%);
    background-size: 30px 30px;
    background-position: 0 0, 0 15px, 15px -15px, -15px 0px;
  }
  .lattice-light {
    background-color: #FFFFFF;
    background-image:
      linear-gradient(45deg, rgba(199,154,46,0.04) 25%, transparent 25%),
      linear-gradient(-45deg, rgba(199,154,46,0.04) 25%, transparent 25%),
      linear-gradient(45deg, transparent 75%, rgba(199,154,46,0.04) 75%),
      linear-gradient(-45deg, transparent 75%, rgba(199,154,46,0.04) 75%);
    background-size: 40px 40px;
    background-position: 0 0, 0 20px, 20px -20px, -20px 0px;
  }
  .lattice-white {
    background-color: #FFFFFF;
    background-image:
      linear-gradient(45deg, rgba(199,154,46,0.04) 25%, transparent 25%),
      linear-gradient(-45deg, rgba(199,154,46,0.04) 25%, transparent 25%),
      linear-gradient(45deg, transparent 75%, rgba(199,154,46,0.04) 75%),
      linear-gradient(-45deg, transparent 75%, rgba(199,154,46,0.04) 75%);
    background-size: 40px 40px;
    background-position: 0 0, 0 20px, 20px -20px, -20px 0px;
  }

  /* ============ GOLD GRADIENT + TEXT ============ */
  .gold-gradient { background: linear-gradient(135deg, #8E6E1F 0%, #C79A2E 50%, #E0B84A 100%); }
  .gold-text {
    background: linear-gradient(135deg, #8E6E1F, #C79A2E 60%, #E0B84A);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
  }

  /* ============ REVEAL ANIMATIONS (progressive enhancement) ============ */
  .reveal, .reveal-left, .reveal-right, .reveal-scale {
    opacity: 1;
    transform: none;
    transition: opacity 1.1s cubic-bezier(0.16, 1, 0.3, 1), transform 1.1s cubic-bezier(0.16, 1, 0.3, 1);
  }
  html.js-loaded .reveal { opacity: 0; transform: translateY(40px); }
  html.js-loaded .reveal-left { opacity: 0; transform: translateX(-50px); }
  html.js-loaded .reveal-right { opacity: 0; transform: translateX(50px); }
  html.js-loaded .reveal-scale { opacity: 0; transform: scale(0.92); }
  html.js-loaded .reveal.active,
  html.js-loaded .reveal-left.active,
  html.js-loaded .reveal-right.active,
  html.js-loaded .reveal-scale.active {
    opacity: 1; transform: translate(0,0) scale(1);
  }

  /* ============ FLOATING + ROTATING ============ */
  @keyframes float { 0%,100% { transform: translateY(0px) rotate(0deg); } 50% { transform: translateY(-16px) rotate(2deg); } }
  .float { animation: float 8s ease-in-out infinite; }
  @keyframes float-slow { 0%,100% { transform: translateY(0px); } 50% { transform: translateY(-10px); } }
  .float-slow { animation: float-slow 6s ease-in-out infinite; }
  @keyframes slow-rotate { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }
  .slow-rotate { animation: slow-rotate 80s linear infinite; }
  @keyframes slow-rotate-reverse { from { transform: rotate(360deg); } to { transform: rotate(0deg); } }
  .slow-rotate-reverse { animation: slow-rotate-reverse 100s linear infinite; }

  /* ============ SCROLL INDICATOR ============ */
  @keyframes scroll-down { 0%,100% { transform: translateY(0); opacity: 1; } 50% { transform: translateY(10px); opacity: 0.3; } }
  .scroll-indicator { animation: scroll-down 2.2s ease-in-out infinite; }

  /* ============ SHIMMER ============ */
  @keyframes shimmer { 0% { background-position: -200% 0; } 100% { background-position: 200% 0; } }

  /* ============ CARD HOVER ============ */
  .card-hover { transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1); }
  .card-hover:hover {
    transform: translateY(-6px);
    box-shadow: 0 25px 50px -20px rgba(199,154,46,0.25);
    border-color: rgba(199,154,46,0.5);
  }

  /* ============ NAV LINK UNDERLINE GROW ============ */
  .nav-link { position: relative; }
  .nav-link::after {
    content: ''; position: absolute; bottom: -6px; left: 0;
    width: 0; height: 1.5px; background: #C79A2E;
    transition: width 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  }
  .nav-link:hover::after, .nav-link.active::after { width: 100%; }

  /* ============ GOLD LINE ============ */
  .gold-line { height: 1.5px; background: linear-gradient(90deg, #8E6E1F, #C79A2E 50%, #E0B84A); }

  /* ============ PROGRESS BAR (shimmer) ============ */
  .progress-track { background: rgba(199,154,46,0.15); border-radius: 999px; overflow: hidden; position: relative; }
  .progress-fill {
    background: linear-gradient(90deg, #8E6E1F, #C79A2E, #E0B84A);
    height: 100%; width: 0;
    border-radius: 999px;
    transition: width 1.8s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
  }
  .progress-fill::after {
    content: ''; position: absolute; inset: 0;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
    background-size: 200% 100%;
    animation: shimmer 2.5s linear infinite;
  }

  /* ============ SCROLLBAR ============ */
  ::-webkit-scrollbar { width: 10px; }
  ::-webkit-scrollbar-track { background: #FFFFFF; }
  ::-webkit-scrollbar-thumb { background: linear-gradient(180deg, #C79A2E, #8E6E1F); border-radius: 5px; }
  ::selection { background: #C79A2E; color: #FFFFFF; }

  /* ============ MARQUEE ============ */
  @keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }
  .marquee-track { animation: marquee 45s linear infinite; }
  .marquee-container:hover .marquee-track { animation-play-state: paused; }

  /* ============ BUTTON SHINE ============ */
  .btn-shine { position: relative; overflow: hidden; }
  .btn-shine::before {
    content: ''; position: absolute; top: 0; left: -100%;
    width: 100%; height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.35), transparent);
    transition: left 0.7s ease;
  }
  .btn-shine:hover::before { left: 100%; }

  /* ============ CORNER DECO (expanding brackets on hover) ============ */
  .corner-deco { position: relative; }
  .corner-deco::before, .corner-deco::after {
    content: ''; position: absolute;
    width: 36px; height: 36px;
    border-color: #C79A2E;
    transition: all 0.4s ease;
  }
  .corner-deco::before { top: 12px; left: 12px; border-top: 1.5px solid; border-left: 1.5px solid; }
  .corner-deco::after { bottom: 12px; right: 12px; border-bottom: 1.5px solid; border-right: 1.5px solid; }
  .corner-deco:hover::before, .corner-deco:hover::after { width: 50px; height: 50px; }

  /* ============ NEWS IMAGE ZOOM ============ */
  .news-card .news-img { transition: transform 0.9s cubic-bezier(0.16, 1, 0.3, 1); }
  .news-card:hover .news-img { transform: scale(1.08); }

  /* ============ TAB INDICATOR ============ */
  .tab-btn { position: relative; transition: color 0.3s ease; }
  .tab-btn::after {
    content: ''; position: absolute; bottom: -1px; left: 50%;
    transform: translateX(-50%);
    width: 0; height: 2px; background: #C79A2E;
    transition: width 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  }
  .tab-btn.active::after { width: 60%; }

  /* ============ BACK TO TOP ============ */
  #back-to-top { opacity: 0; visibility: hidden; transition: all 0.4s ease; }
  #back-to-top.visible { opacity: 1; visibility: visible; }

  /* ============ MOBILE MENU ============ */
  .mobile-menu { transform: translateX(100%); transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1); }
  .mobile-menu.open { transform: translateX(0); }
  .mobile-link { min-height: 44px; display: flex; align-items: center; }
  #menu-btn, #menu-close { min-width: 44px; min-height: 44px; }

  /* ============ NAVBAR ON SCROLL ============ */
  .nav-scrolled {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    box-shadow: 0 1px 0 rgba(199, 154, 46, 0.2), 0 4px 24px rgba(0,0,0,0.06);
  }

  /* ============ DOT PULSE (live indicator) ============ */
  .dot-pulse { position: relative; }
  .dot-pulse::before {
    content: ''; position: absolute; inset: -4px;
    border-radius: 50%; border: 1px solid #C79A2E;
    animation: dotPulse 2s ease-out infinite;
  }
  @keyframes dotPulse {
    0% { transform: scale(0.8); opacity: 1; }
    100% { transform: scale(1.8); opacity: 0; }
  }

  /* ============ SECTION NUMBER ============ */
  .section-num {
    font-family: 'Playfair Display', serif;
    font-weight: 700;
    font-style: italic;
  }

  /* ============ TKDN CIRCLE BADGE ============ */
  .tkdn-ring {
    background: conic-gradient(var(--p) #C79A2E, rgba(199,154,46,0.1) 0);
    border-radius: 50%;
    position: relative;
    transition: --p 1.8s cubic-bezier(0.16, 1, 0.3, 1);
  }

  /* ============ MOSAIC GRID (gap-px hairline) ============ */
  .mosaic-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1px;
    background: transparent;
    border: none;
  }
  .mosaic-cell {
    background: #1F1F1F;
    border: 1px solid rgba(199,154,46,0.22);
    aspect-ratio: 4 / 3;
    display: flex; align-items: center; justify-content: center;
    transition: background 0.3s ease;
  }
  .mosaic-cell:hover { background: #0B0B0A; }
  @media (min-width: 768px) { .mosaic-grid { grid-template-columns: repeat(4, 1fr); } }
  @media (min-width: 1024px) { .mosaic-grid { grid-template-columns: repeat(8, 1fr); } .mosaic-cell:nth-last-child(-n+4) { grid-column: span 2; aspect-ratio: 8 / 3; } }

  /* Marquee: figure wp-block-image melar di flex card -> paksa center logo */
  .marquee-track .wp-block-image { display: flex; justify-content: center; }

  /* ============ HIDE TAB CONTENT ============ */
  .tab-content-hidden { display: none; }

  /* ============ FADE-IN ON LOAD (hero only) ============ */
  body.loaded .hero-reveal { animation: heroFadeIn 1.2s cubic-bezier(0.16, 1, 0.3, 1) both; }
  @keyframes heroFadeIn {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
  }

  /* ============ VARIANT B PREMIUM ADDITIONS ============ */

  /* Warm ivory lattice (hero, TKDN) */
  .lattice-warm {
    background-color: #F7F5F0;
    background-image:
      linear-gradient(45deg, rgba(199,154,46,0.07) 25%, transparent 25%),
      linear-gradient(-45deg, rgba(199,154,46,0.07) 25%, transparent 25%),
      linear-gradient(45deg, transparent 75%, rgba(199,154,46,0.07) 75%),
      linear-gradient(-45deg, transparent 75%, rgba(199,154,46,0.07) 75%);
    background-size: 40px 40px;
    background-position: 0 0, 0 20px, 20px -20px, -20px 0px;
  }

  /* Warm radial glow behind hero content */
  .hero-glow {
    position: absolute;
    inset: 0;
    background:
      radial-gradient(ellipse 70% 60% at 40% 40%, rgba(199,154,46,0.07) 0%, rgba(224,184,74,0.03) 25%, transparent 50%);
    pointer-events: none;
    z-index: 1;
  }

  /* Gold folio header bar across top of hero */
  #hero::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
    background: linear-gradient(90deg,
      transparent 0%,
      rgba(199,154,46,0.06) 10%,
      rgba(199,154,46,0.25) 30%,
      rgba(199,154,46,0.35) 50%,
      rgba(199,154,46,0.25) 70%,
      rgba(199,154,46,0.06) 90%,
      transparent 100%
    );
    pointer-events: none;
    z-index: 2;
  }

  /* Gold bottom border on hero (section punctuation) */
  #hero::after {
    content: '';
    position: absolute;
    bottom: 0; left: 0; right: 0;
    height: 2px;
    background: linear-gradient(90deg,
      transparent 5%,
      rgba(199,154,46,0.12) 20%,
      rgba(199,154,46,0.25) 50%,
      rgba(199,154,46,0.12) 80%,
      transparent 95%
    );
    pointer-events: none;
    z-index: 2;
  }

  /* Gold double-border frame for hero content area */
  .hero-frame {
    position: relative;
    padding: 3rem;
  }
  .hero-frame::before {
    content: '';
    position: absolute;
    inset: 0;
    border: 1px solid rgba(199,154,46,0.15);
    pointer-events: none;
  }
  .hero-frame::after {
    content: '';
    position: absolute;
    inset: 6px;
    border: 1.5px solid rgba(199,154,46,0.30);
    pointer-events: none;
  }

  /* Gold diamond flourish divider */
  .gold-flourish {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin: 1.5rem 0;
  }
  .gold-flourish::before,
  .gold-flourish::after {
    content: '';
    flex: 1;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(199,154,46,0.35), transparent);
  }
  .gold-flourish .diamond {
    width: 8px;
    height: 8px;
    background: rgba(199,154,46,0.55);
    transform: rotate(45deg);
    flex-shrink: 0;
  }

  /* Gold drop cap for first paragraphs */
  .gold-dropcap::first-letter {
    font-family: 'Playfair Display', serif;
    font-weight: 700;
    font-size: 4.2em;
    float: left;
    line-height: 0.85;
    padding-right: 0.5rem;
    padding-top: 0.15rem;
    background: linear-gradient(135deg, #8E6E1F, #C79A2E 60%, #E0B84A);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
  }

  /* Gold corner L-brackets for stat boxes */
  .gold-corner {
    position: relative;
  }
  .gold-corner::before, .gold-corner::after {
    content: '';
    position: absolute;
    width: 24px; height: 24px;
    border-color: rgba(199,154,46,0.4);
    transition: all 0.4s ease;
  }
  .gold-corner::before {
    top: 4px; left: 4px;
    border-top: 1px solid;
    border-left: 1px solid;
  }
  .gold-corner::after {
    bottom: 4px; right: 4px;
    border-bottom: 1px solid;
    border-right: 1px solid;
  }

  /* Gold foil wash for card backgrounds */
  .gold-foil {
    position: relative;
    overflow: hidden;
  }
  .gold-foil::before {
    content: '';
    position: absolute;
    top: 0; left: -50%;
    width: 200%; height: 100%;
    background: linear-gradient(105deg,
      transparent 40%,
      rgba(199,154,46,0.04) 45%,
      rgba(224,184,74,0.06) 50%,
      rgba(199,154,46,0.04) 55%,
      transparent 60%
    );
    pointer-events: none;
  }

  /* Gold-tinted section shadow */
  .section-shadow {
    box-shadow: 0 -1px 0 rgba(199,154,46,0.06), 0 2px 24px -8px rgba(0,0,0,0.04);
    position: relative;
    z-index: 1;
  }

  /* Warm cream base for light sections */
  .bg-ssa-warm-ivory { background-color: #F7F5F0; }
  .bg-ssa-parchment { background-color: #F4F1E9; }

/* ─────────────────────────────────────────────
   Helper blok — pengganti inline style
   (inline style di markup = blok "invalid" di editor;
   style dipindah ke kelas di sini)
   ───────────────────────────────────────────── */
.ssa-mosaic-featured { background: #F5EFE3; }
.ssa-mosaic-cell { padding: .4375rem; gap: .375rem; }
.ssa-mosaic-logo-sm { width: 4rem; height: 4rem; }
.ssa-mosaic-logo-ring { width: 11rem; height: 11rem; padding: 1.1rem; box-sizing: border-box; box-shadow: 0 0 0 1px rgba(199,154,46,.45), 0 10px 26px rgba(0,0,0,.28); }
.wp-block-image.size-full.ssa-mosaic-logo-sm img,
.wp-block-image.size-full.ssa-mosaic-logo-ring img { object-fit: contain; }
.ssa-partner-tile { padding: 1rem .75rem; min-width: 126px; max-width: 146px; }
.ssa-partner-logo { width: 90px; height: 90px; }
.wp-block-image.size-full.ssa-partner-logo img { width: 100%; height: 100%; object-fit: contain; }

/* ===== Kabar Terbaru: kartu bisa diklik di mana saja (stretched link) ===== */
.news-card { position: relative; }
.news-card p > a::after { content: ""; position: absolute; inset: 0; z-index: 2; }
