:root {
  --bg: #fafaf7;
  --bg-soft: #f3f1ea;
  --ink: #1a2421;
  --ink-soft: #4a544f;
  --ink-mute: #8a8f88;
  --accent: #2d5a3d;
  --accent-deep: #1f3d2a;
  --accent-soft: #d4ddd1;
  --gold: #b08d4f;
  --line: #e0ddd2;
  --white: #ffffff;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', sans-serif;
  background: var(--bg);
  color: var(--ink);
  font-weight: 400;
  line-height: 1.6;
  overflow-x: hidden;
}
.serif { font-family: 'Cormorant Garamond', serif; }
.arabic { font-family: 'Amiri', serif; }

nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  backdrop-filter: blur(20px);
  background: rgba(250, 250, 247, 0.85);
  border-bottom: 1px solid var(--line);
  padding: 1rem 0;
}
.nav-container {
  max-width: 1400px; margin: 0 auto; padding: 0 2rem;
  display: flex; justify-content: space-between; align-items: center;
}
.logo { display: flex; align-items: center; gap: 0.75rem; }
.logo-mark {
  width: 38px; height: 38px;
  border: 1.5px solid var(--accent); border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: var(--accent); font-family: 'Amiri', serif; font-size: 1.2rem; font-weight: 700;
}
.logo-text {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.1rem; font-weight: 500; letter-spacing: 0.5px;
  color: var(--accent-deep); line-height: 1.1;
}
.logo-text small {
  display: block; font-family: 'Inter', sans-serif;
  font-size: 0.65rem; letter-spacing: 2px;
  color: var(--ink-mute); text-transform: uppercase; margin-top: 2px;
}
.nav-links { display: flex; gap: 2.5rem; list-style: none; align-items: center; }
.nav-links a {
  text-decoration: none; color: var(--ink-soft);
  font-size: 0.85rem; font-weight: 500; letter-spacing: 0.3px;
  transition: color 0.2s; position: relative;
}
.nav-links a:hover, .nav-links a.active { color: var(--accent); }
.nav-links a.active::after {
  content: ''; position: absolute; bottom: -6px; left: 0; right: 0;
  height: 1px; background: var(--accent);
}
.menu-toggle { display: none; background: none; border: none; cursor: pointer; color: var(--ink); }

.hero {
  min-height: 100vh; padding: 8rem 2rem 4rem;
  display: flex; align-items: center; position: relative; overflow: hidden;
}
.hero-bg-pattern {
  position: absolute; inset: 0; opacity: 0.04;
  background-image:
    radial-gradient(circle at 20% 30%, var(--accent) 1px, transparent 1px),
    radial-gradient(circle at 80% 70%, var(--accent) 1px, transparent 1px);
  background-size: 60px 60px; pointer-events: none;
}
.hero-container {
  max-width: 1400px; margin: 0 auto; width: 100%;
  display: grid; grid-template-columns: 1.3fr 1fr;
  gap: 4rem; align-items: center; position: relative;
}
.hero-eyebrow {
  display: inline-flex; align-items: center; gap: 0.75rem;
  font-size: 0.75rem; font-weight: 500; letter-spacing: 3px;
  text-transform: uppercase; color: var(--accent); margin-bottom: 1.5rem;
}
.hero-eyebrow::before { content: ''; width: 32px; height: 1px; background: var(--accent); }
.hero h1 {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(2.5rem, 6vw, 5rem); font-weight: 400;
  line-height: 1.05; color: var(--ink); margin-bottom: 1rem; letter-spacing: -1px;
}
.hero h1 em { font-style: italic; color: var(--accent); font-weight: 300; }
.hero-arabic {
  font-family: 'Amiri', serif; font-size: 1.6rem;
  color: var(--accent-deep); margin-bottom: 1.5rem; direction: rtl; line-height: 1.8;
}
.hero-desc { font-size: 1.05rem; color: var(--ink-soft); margin-bottom: 2.5rem; max-width: 540px; line-height: 1.75; }
.hero-cta { display: flex; gap: 1rem; flex-wrap: wrap; }

.btn {
  display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 0.95rem 1.75rem;
  font-family: 'Inter', sans-serif; font-size: 0.85rem; font-weight: 500;
  letter-spacing: 0.5px; text-decoration: none;
  border-radius: 2px; transition: all 0.25s ease; cursor: pointer; border: none;
}
.btn-primary { background: var(--accent-deep); color: var(--bg); }
.btn-primary:hover { background: var(--ink); transform: translateY(-1px); }
.btn-outline { background: transparent; color: var(--ink); border: 1px solid var(--ink); }
.btn-outline:hover { background: var(--ink); color: var(--bg); }
.btn-danger { background: #c44; color: white; }
.btn-danger:hover { background: #a33; }

.hero-card {
  background: var(--white); border: 1px solid var(--line);
  padding: 2.5rem; position: relative;
}
.hero-card::before {
  content: ''; position: absolute; top: -1px; left: -1px; width: 24px; height: 24px;
  border-top: 2px solid var(--accent); border-left: 2px solid var(--accent);
}
.hero-card::after {
  content: ''; position: absolute; bottom: -1px; right: -1px; width: 24px; height: 24px;
  border-bottom: 2px solid var(--accent); border-right: 2px solid var(--accent);
}
.countdown-label { font-size: 0.7rem; letter-spacing: 3px; text-transform: uppercase; color: var(--ink-mute); margin-bottom: 1rem; }
.countdown-title { font-family: 'Cormorant Garamond', serif; font-size: 1.5rem; color: var(--accent-deep); margin-bottom: 1.5rem; }
.countdown { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0.5rem; margin-bottom: 1.5rem; }
.countdown-item { text-align: center; padding: 1rem 0.5rem; background: var(--bg); border: 1px solid var(--line); }
.countdown-item strong {
  display: block; font-family: 'Cormorant Garamond', serif;
  font-size: 2rem; font-weight: 500; color: var(--accent); line-height: 1;
}
.countdown-item span { font-size: 0.65rem; letter-spacing: 1.5px; text-transform: uppercase; color: var(--ink-mute); margin-top: 0.4rem; display: block; }
.hero-info { padding-top: 1.5rem; border-top: 1px solid var(--line); display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.hero-info-item { font-size: 0.85rem; }
.hero-info-item strong { display: block; color: var(--ink-mute); font-size: 0.7rem; letter-spacing: 1.5px; text-transform: uppercase; font-weight: 500; margin-bottom: 0.3rem; }

section { padding: 6rem 2rem; position: relative; }
.container { max-width: 1400px; margin: 0 auto; }
.section-header { margin-bottom: 4rem; max-width: 700px; }
.section-eyebrow { display: inline-flex; align-items: center; gap: 0.75rem; font-size: 0.7rem; font-weight: 500; letter-spacing: 3px; text-transform: uppercase; color: var(--accent); margin-bottom: 1rem; }
.section-eyebrow::before { content: ''; width: 32px; height: 1px; background: var(--accent); }
.section-title { font-family: 'Cormorant Garamond', serif; font-size: clamp(2rem, 4vw, 3.25rem); font-weight: 400; line-height: 1.1; color: var(--ink); margin-bottom: 1rem; letter-spacing: -0.5px; }
.section-title em { font-style: italic; color: var(--accent); font-weight: 300; }
.section-desc { font-size: 1rem; color: var(--ink-soft); line-height: 1.75; }

.schedule-section { background: var(--bg-soft); }
.schedule-tabs { display: flex; gap: 0.5rem; margin-bottom: 2.5rem; overflow-x: auto; padding-bottom: 0.5rem; border-bottom: 1px solid var(--line); }
.tab { padding: 0.75rem 1.25rem; background: transparent; border: 1px solid transparent; font-family: 'Inter', sans-serif; font-size: 0.85rem; font-weight: 500; color: var(--ink-mute); cursor: pointer; white-space: nowrap; transition: all 0.2s; border-radius: 2px; }
.tab:hover { color: var(--accent); }
.tab.active { background: var(--accent-deep); color: var(--bg); }
.schedule-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 1.5rem; }
.schedule-card { background: var(--white); border: 1px solid var(--line); padding: 1.75rem; transition: all 0.25s; position: relative; }
.schedule-card:hover { border-color: var(--accent); transform: translateY(-2px); box-shadow: 0 8px 24px rgba(45, 90, 61, 0.06); }
.schedule-card.live { border-left: 3px solid #c44; }
.live-badge { position: absolute; top: 1.25rem; right: 1.25rem; display: inline-flex; align-items: center; gap: 0.4rem; font-size: 0.65rem; font-weight: 600; letter-spacing: 1px; text-transform: uppercase; color: #c44; }
.live-dot { width: 8px; height: 8px; border-radius: 50%; background: #c44; animation: pulse 1.5s infinite; }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.4; } }
.schedule-time { font-size: 0.7rem; letter-spacing: 2px; text-transform: uppercase; color: var(--ink-mute); margin-bottom: 0.75rem; }
.schedule-name { font-family: 'Cormorant Garamond', serif; font-size: 1.5rem; font-weight: 500; color: var(--ink); margin-bottom: 0.5rem; line-height: 1.2; }
.schedule-meta { display: flex; gap: 1rem; margin-bottom: 1.25rem; font-size: 0.8rem; color: var(--ink-soft); flex-wrap: wrap; }
.schedule-meta span { display: inline-flex; align-items: center; gap: 0.35rem; }
.schedule-actions { display: flex; gap: 0.75rem; padding-top: 1rem; border-top: 1px solid var(--line); }
.schedule-link { font-size: 0.8rem; color: var(--accent); text-decoration: none; font-weight: 500; display: inline-flex; align-items: center; gap: 0.3rem; transition: gap 0.2s; }
.schedule-link:hover { gap: 0.5rem; }

.live-section { background: var(--ink); color: var(--bg); }
.live-section .section-title { color: var(--bg); }
.live-section .section-eyebrow { color: var(--accent-soft); }
.live-section .section-eyebrow::before { background: var(--accent-soft); }
.live-section .section-desc { color: rgba(250,250,247,0.7); }
.live-grid { display: grid; grid-template-columns: 1.5fr 1fr; gap: 2rem; }
.live-main { background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.1); padding: 2rem; }
.live-status { display: inline-flex; align-items: center; gap: 0.5rem; padding: 0.4rem 0.85rem; background: rgba(255, 80, 80, 0.15); border: 1px solid #c44; color: #ff6b6b; font-size: 0.7rem; letter-spacing: 2px; text-transform: uppercase; font-weight: 600; margin-bottom: 1.5rem; }
.live-event-name { font-family: 'Cormorant Garamond', serif; font-size: 2.25rem; font-weight: 500; margin-bottom: 0.75rem; line-height: 1.15; }
.live-event-meta { color: rgba(250,250,247,0.6); margin-bottom: 2rem; font-size: 0.95rem; }
.scoreboard { display: flex; flex-direction: column; gap: 0.75rem; }
.score-row { display: grid; grid-template-columns: 40px 1fr auto; align-items: center; gap: 1rem; padding: 1rem; background: rgba(255,255,255,0.03); border: 1px solid rgba(255,255,255,0.06); transition: all 0.2s; }
.score-row:hover { background: rgba(255,255,255,0.06); }
.score-rank { font-family: 'Cormorant Garamond', serif; font-size: 1.75rem; font-weight: 500; color: var(--gold); }
.score-name { font-weight: 500; margin-bottom: 0.2rem; }
.score-school { font-size: 0.8rem; color: rgba(250,250,247,0.5); }
.score-points { font-family: 'Cormorant Garamond', serif; font-size: 1.75rem; font-weight: 500; color: var(--accent-soft); }
.live-side { display: flex; flex-direction: column; gap: 1rem; }
.upcoming-card { background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.1); padding: 1.5rem; }
.upcoming-card h4 { font-family: 'Cormorant Garamond', serif; font-size: 1.25rem; font-weight: 500; margin-bottom: 1rem; padding-bottom: 0.75rem; border-bottom: 1px solid rgba(255,255,255,0.1); }
.upcoming-list { list-style: none; }
.upcoming-list li { padding: 0.75rem 0; border-bottom: 1px solid rgba(255,255,255,0.05); font-size: 0.9rem; display: flex; justify-content: space-between; align-items: center; }
.upcoming-list li:last-child { border-bottom: none; }
.upcoming-list small { color: rgba(250,250,247,0.5); font-size: 0.75rem; }

.winners-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 2rem; }
.winner-card { background: var(--white); border: 1px solid var(--line); overflow: hidden; transition: all 0.3s; }
.winner-card:hover { transform: translateY(-4px); box-shadow: 0 12px 30px rgba(45, 90, 61, 0.1); }
.winner-header { background: linear-gradient(135deg, var(--accent-deep), var(--accent)); color: var(--bg); padding: 1.5rem; position: relative; }
.winner-category { font-size: 0.7rem; letter-spacing: 2px; text-transform: uppercase; opacity: 0.8; margin-bottom: 0.5rem; }
.winner-title { font-family: 'Cormorant Garamond', serif; font-size: 1.4rem; font-weight: 500; line-height: 1.2; }
.winner-body { padding: 1.25rem 1.5rem; }
.winner-podium { display: flex; flex-direction: column; gap: 0.85rem; }
.podium-row { display: grid; grid-template-columns: auto 1fr auto; gap: 0.75rem; align-items: center; padding: 0.6rem 0; border-bottom: 1px dashed var(--line); }
.podium-row:last-child { border-bottom: none; }
.podium-medal { width: 28px; height: 28px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-family: 'Cormorant Garamond', serif; font-weight: 600; font-size: 0.85rem; color: var(--white); }
.medal-1 { background: #d4af37; }
.medal-2 { background: #a8a8a8; }
.medal-3 { background: #b87333; }
.medal-harapan1, .medal-harapan2 { background: var(--accent); font-size: 0.6rem; }
.podium-info strong { display: block; font-size: 0.9rem; color: var(--ink); font-weight: 500; }
.podium-info small { font-size: 0.75rem; color: var(--ink-mute); }

.wisuda-section { background: var(--bg-soft); }
.wisuda-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 1.5rem; margin-bottom: 3rem; padding: 2rem; background: var(--white); border: 1px solid var(--line); }
.stat { text-align: center; padding: 0.5rem; }
.stat strong { display: block; font-family: 'Cormorant Garamond', serif; font-size: 2.75rem; font-weight: 400; color: var(--accent); line-height: 1; margin-bottom: 0.5rem; }
.stat span { font-size: 0.75rem; letter-spacing: 2px; text-transform: uppercase; color: var(--ink-mute); }
.wisuda-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 1.5rem; }
.wisuda-card { background: var(--white); border: 1px solid var(--line); padding: 1.5rem; text-align: center; transition: all 0.25s; position: relative; }
.wisuda-card:hover { border-color: var(--accent); transform: translateY(-2px); }
.wisuda-photo {
  width: 110px; height: 110px; border-radius: 50%; margin: 0 auto 1rem;
  background: linear-gradient(135deg, var(--accent-soft), var(--accent));
  display: flex; align-items: center; justify-content: center;
  font-family: 'Cormorant Garamond', serif; font-size: 2.5rem; color: var(--white);
  border: 3px solid var(--white); box-shadow: 0 0 0 1px var(--line);
}
.wisuda-photo-img {
  background-size: cover;
  background-position: center top;
  background-repeat: no-repeat;
}
.wisuda-name { font-family: 'Cormorant Garamond', serif; font-size: 1.2rem; font-weight: 500; color: var(--ink); margin-bottom: 0.4rem; line-height: 1.2; }
.wisuda-program { display: inline-block; padding: 0.25rem 0.7rem; background: var(--accent-soft); color: var(--accent-deep); font-size: 0.7rem; letter-spacing: 1px; text-transform: uppercase; font-weight: 600; margin-bottom: 0.6rem; }
.wisuda-detail { font-size: 0.8rem; color: var(--ink-soft); line-height: 1.5; }
.wisuda-detail strong { color: var(--ink); font-weight: 500; }

.gallery-grid { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 200px; gap: 0.75rem; }
.gallery-item { background: linear-gradient(135deg, var(--accent-soft), var(--accent)); position: relative; overflow: hidden; cursor: pointer; display: flex; align-items: end; padding: 1rem; color: var(--white); transition: all 0.3s; }
.gallery-item::before { content: ''; position: absolute; inset: 0; background: linear-gradient(to top, rgba(0,0,0,0.6), transparent); opacity: 0.5; transition: opacity 0.3s; }
.gallery-item:hover::before { opacity: 0.8; }
.gallery-item span { position: relative; font-size: 0.85rem; font-weight: 500; }
.gallery-item.tall { grid-row: span 2; }
.gallery-item.wide { grid-column: span 2; }
.gallery-item:nth-child(1) { background: linear-gradient(135deg, #2d5a3d, #1f3d2a); }
.gallery-item:nth-child(2) { background: linear-gradient(135deg, #b08d4f, #8a6d35); }
.gallery-item:nth-child(3) { background: linear-gradient(135deg, #4a7d5e, #2d5a3d); }
.gallery-item:nth-child(4) { background: linear-gradient(135deg, #d4ddd1, #a8b5a4); color: var(--ink); }
.gallery-item:nth-child(5) { background: linear-gradient(135deg, #1f3d2a, #0d1f15); }
.gallery-item:nth-child(6) { background: linear-gradient(135deg, #8a6d35, #5e4a23); }
.gallery-item:nth-child(7) { background: linear-gradient(135deg, #4a7d5e, #2d5a3d); }
.gallery-item:nth-child(8) { background: linear-gradient(135deg, #d4ddd1, #b3c0ad); color: var(--ink); }

.news-section { background: var(--bg-soft); }
.news-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: 2rem; }
.news-featured { background: var(--white); border: 1px solid var(--line); overflow: hidden; transition: all 0.3s; }
.news-featured:hover { transform: translateY(-2px); }
.news-img-large { height: 280px; background: linear-gradient(135deg, var(--accent-deep), var(--accent)); position: relative; }
.news-img-large::after { content: ''; position: absolute; inset: 0; background-image: radial-gradient(circle at 30% 40%, rgba(255,255,255,0.1) 1px, transparent 1px), radial-gradient(circle at 70% 60%, rgba(255,255,255,0.1) 1px, transparent 1px); background-size: 40px 40px; }
.news-content { padding: 1.75rem; }
.news-meta { display: flex; gap: 1rem; font-size: 0.7rem; letter-spacing: 1.5px; text-transform: uppercase; color: var(--ink-mute); margin-bottom: 0.75rem; }
.news-meta strong { color: var(--accent); font-weight: 600; }
.news-title { font-family: 'Cormorant Garamond', serif; font-size: 1.6rem; font-weight: 500; color: var(--ink); margin-bottom: 0.75rem; line-height: 1.25; }
.news-excerpt { font-size: 0.9rem; color: var(--ink-soft); line-height: 1.65; margin-bottom: 1rem; }
.news-side { display: flex; flex-direction: column; gap: 1.5rem; }
.news-small { background: var(--white); border: 1px solid var(--line); padding: 1.25rem; transition: all 0.25s; cursor: pointer; }
.news-small:hover { border-color: var(--accent); transform: translateX(2px); }
.news-small .news-title { font-size: 1.1rem; margin-bottom: 0.5rem; }
.news-small .news-excerpt { font-size: 0.82rem; margin-bottom: 0; }

footer { background: var(--accent-deep); color: rgba(250,250,247,0.8); padding: 4rem 2rem 2rem; }
.footer-container { max-width: 1400px; margin: 0 auto; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 3rem; margin-bottom: 3rem; }
.footer-brand .logo-mark { border-color: var(--bg); color: var(--bg); margin-bottom: 1rem; }
.footer-brand p { font-size: 0.9rem; line-height: 1.7; margin-top: 1rem; max-width: 320px; }
.footer-col h4 { font-family: 'Cormorant Garamond', serif; font-size: 1.1rem; color: var(--bg); margin-bottom: 1rem; font-weight: 500; }
.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 0.6rem; font-size: 0.85rem; }
.footer-col a { color: rgba(250,250,247,0.7); text-decoration: none; transition: color 0.2s; }
.footer-col a:hover { color: var(--bg); }
.footer-bottom { padding-top: 2rem; border-top: 1px solid rgba(250,250,247,0.1); display: flex; justify-content: space-between; flex-wrap: wrap; gap: 1rem; font-size: 0.8rem; color: rgba(250,250,247,0.5); }

@media (max-width: 968px) {
  .nav-links { display: none; position: fixed; top: 70px; left: 0; right: 0; flex-direction: column; background: var(--bg); padding: 2rem; border-bottom: 1px solid var(--line); }
  .nav-links.show { display: flex; }
  .menu-toggle { display: block; }
  .hero-container { grid-template-columns: 1fr; gap: 2rem; }
  .live-grid { grid-template-columns: 1fr; }
  .news-grid { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 160px; }
  .gallery-item.wide { grid-column: span 2; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 2rem; }
  section { padding: 4rem 1.25rem; }
  .hero { padding: 6rem 1.25rem 3rem; }
}
