@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;600;700&family=Source+Sans+3:wght@300;400;500;600&display=swap');

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

:root {
  --blue-dark:   #0d3d6e;
  --blue-main:   #1e63a5;
  --blue-mid:    #2e7abf;
  --blue-light:  #d6e8f7;
  --gold:        #c9a84c;
  --gold-light:  #f0d98a;
  --white:       #ffffff;
  --gray-bg:     #f5f7fa;
  --gray-text:   #4a5568;
  --gray-light:  #e2e8f0;
  --text-dark:   #1a202c;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Source Sans 3', sans-serif;
  background: var(--white);
  color: var(--text-dark);
  padding-top: 90px;
}

/* ─── NAVBAR ─────────────────────────────────────── */

.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: var(--blue-main);
  color: white;
  padding: 12px 30px;
  position: fixed;
  top: 0; left: 0;
  width: 100%;
  height: 90px;
  z-index: 999;
}

.logo { display: flex; align-items: center; gap: 12px; }
.logo-itb { height: 70px; margin-right: 10px; }

.menu {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 20px;
  font-weight: 600;
}

.menu a, .dropbtn {
  color: white;
  text-decoration: none;
  background: none;
  border: none;
  font-size: 15px;
  cursor: pointer;
  font-family: 'Source Sans 3', sans-serif;
  font-weight: 600;
}

.menu a:hover { color: var(--gold-light); }

.dropdown { position: relative; }

.dropdown-content {
  display: none;
  position: absolute;
  top: 100%; left: 0;
  background: white;
  min-width: 220px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.12);
  border-top: 3px solid var(--gold);
  overflow: hidden;
}

.dropdown-content a {
  display: block;
  padding: 11px 16px;
  color: var(--text-dark);
  font-size: 14px;
  font-weight: 400;
  border-bottom: 1px solid var(--gray-light);
}

.dropdown-content a:last-child { border-bottom: none; }
.dropdown-content a:hover { background: var(--blue-light); color: var(--blue-main); }
.dropdown:hover .dropdown-content { display: block; }

.language-switch { display: flex; align-items: center; gap: 8px; }
.language-switch img { height: 20px; border-radius: 2px; }

/* ─── HERO ───────────────────────────────────────── */

.hero {
  position: relative;
  height: 92vh;
  min-height: 580px;
  background: var(--blue-dark);
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(135deg, rgba(13,61,110,0.92) 0%, rgba(30,99,165,0.75) 60%, rgba(46,122,191,0.5) 100%);
  z-index: 1;
}

.hero-pattern {
  position: absolute;
  inset: 0;
  background-image:
    repeating-linear-gradient(
      45deg,
      transparent,
      transparent 40px,
      rgba(255,255,255,0.025) 40px,
      rgba(255,255,255,0.025) 41px
    );
  z-index: 0;
}

.hero-img {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  z-index: 0;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 780px;
  padding: 0 80px;
  animation: fadeUp 0.9s ease both;
}

.hero-label {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold-light);
  margin-bottom: 20px;
  border-left: 3px solid var(--gold);
  padding-left: 12px;
}

.hero h1 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2.4rem, 5vw, 3.8rem);
  font-weight: 700;
  color: white;
  line-height: 1.2;
  margin-bottom: 24px;
}

.hero h1 em {
  font-style: italic;
  color: var(--gold-light);
}

.hero p {
  font-size: 17px;
  font-weight: 300;
  color: rgba(255,255,255,0.85);
  line-height: 1.8;
  max-width: 580px;
  margin-bottom: 36px;
}

.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }

.btn-primary {
  display: inline-block;
  background: var(--gold);
  color: var(--blue-dark);
  padding: 13px 30px;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  letter-spacing: 0.04em;
  transition: background 0.2s, transform 0.2s;
}

.btn-primary:hover { background: var(--gold-light); transform: translateY(-2px); }

.btn-outline {
  display: inline-block;
  background: transparent;
  color: white;
  padding: 13px 30px;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  letter-spacing: 0.04em;
  border: 1.5px solid rgba(255,255,255,0.5);
  transition: border-color 0.2s, background 0.2s;
}

.btn-outline:hover { border-color: white; background: rgba(255,255,255,0.08); }

.hero-scroll {
  position: absolute;
  bottom: 36px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: rgba(255,255,255,0.5);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  animation: bounce 2s infinite;
}

.hero-scroll::before {
  content: '';
  width: 1px;
  height: 40px;
  background: rgba(255,255,255,0.3);
}

/* ─── STATS BAR ──────────────────────────────────── */

.stats-bar {
  background: var(--blue-main);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}

.stat-item {
  padding: 28px 20px;
  text-align: center;
  border-right: 1px solid rgba(255,255,255,0.15);
}

.stat-item:last-child { border-right: none; }

.stat-number {
  font-family: 'Playfair Display', serif;
  font-size: 2rem;
  font-weight: 700;
  color: var(--gold-light);
  display: block;
}

.stat-label {
  font-size: 12px;
  font-weight: 400;
  color: rgba(255,255,255,0.7);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-top: 4px;
  display: block;
}

/* ─── SECTION SHARED ─────────────────────────────── */

section { padding: 90px 80px; }

.section-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--blue-mid);
  margin-bottom: 12px;
}

.section-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  font-weight: 700;
  color: var(--blue-dark);
  line-height: 1.25;
  margin-bottom: 16px;
}

.section-sub {
  font-size: 16px;
  font-weight: 300;
  color: var(--gray-text);
  line-height: 1.8;
  max-width: 600px;
}

.sidebar-section .section-title {
  font-size: clamp(1.6rem, 2.5vw, 2.2rem);
}

.sidebar-section .section-sub {
  max-width: 100%;
}

.divider {
  width: 48px;
  height: 3px;
  background: var(--gold);
  margin: 20px 0 40px;
}

/* ─── TENTANG ─────────────────────────────────────── */

.about { background: transparent; }

.about-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.sidebar-main .about-inner {
  grid-template-columns: 1fr 1fr;
  gap: 50px;
}

.about-text p {
  font-size: 15px;
  line-height: 1.9;
  color: var(--gray-text);
  margin-bottom: 16px;
}

.about-img-wrap {
  position: relative;
}

.about-img {
  width: 100%;
  height: 540px;
  object-fit: contain;
  display: block;
}

.sidebar-main .about-img {
  height: 280px;
}

.about-img-accent {
  position: absolute;
  bottom: -20px;
  right: -20px;
  width: 160px;
  height: 160px;
  background: var(--blue-light);
  z-index: -1;
}

.sidebar-main .about-img-accent {
  width: 120px;
  height: 120px;
  bottom: -15px;
  right: -15px;
}

.about-img-label {
  position: absolute;
  bottom: 20px;
  left: -24px;
  background: var(--gold);
  color: var(--blue-dark);
  padding: 14px 20px;
  font-size: 13px;
  font-weight: 600;
}

.sidebar-main .about-img-label {
  left: -20px;
  padding: 10px 14px;
  font-size: 11px;
}

/* ─── KEUNGGULAN ──────────────────────────────────── */

.keunggulan { background: var(--gray-bg); }

.keunggulan-header { margin-bottom: 50px; }

.keunggulan-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.keunggulan-card {
  background: white;
  padding: 36px 28px;
  border-bottom: 3px solid transparent;
  transition: border-color 0.25s, transform 0.25s, box-shadow 0.25s;
}

.keunggulan-card:hover {
  border-color: var(--gold);
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(30,99,165,0.1);
}

.k-icon {
  width: 52px;
  height: 52px;
  background: var(--blue-light);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}

.k-icon svg { width: 26px; height: 26px; stroke: var(--blue-main); fill: none; stroke-width: 1.8; }

.keunggulan-card h3 {
  font-family: 'Playfair Display', serif;
  font-size: 17px;
  font-weight: 600;
  color: var(--blue-dark);
  margin-bottom: 10px;
}

.keunggulan-card p {
  font-size: 14px;
  line-height: 1.75;
  color: var(--gray-text);
}

/* ─── PROGRAM ─────────────────────────────────────── */

.program { 
  background: var(--blue-dark);
  padding: 90px 80px;
}

.program .section-label { color: var(--gold-light); }
.program .section-title { color: white; }
.program .section-sub { color: rgba(255,255,255,0.65); }
.program .divider { background: var(--gold); }

.program-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
  margin-top: 50px;
}

.program-card {
  background: rgba(255,255,255,0.05);
  padding: 40px 32px;
  border: 1px solid rgba(255,255,255,0.08);
  text-decoration: none;
  display: block;
  transition: background 0.25s;
  position: relative;
  overflow: hidden;
}

.program-card::before {
  content: '';
  position: absolute;
  bottom: 0; left: 0;
  width: 100%; height: 3px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s;
}

.program-card:hover { background: rgba(255,255,255,0.1); }
.program-card:hover::before { transform: scaleX(1); }

.program-tag {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold-light);
  margin-bottom: 16px;
  display: block;
}

.program-card h3 {
  font-family: 'Playfair Display', serif;
  font-size: 22px;
  font-weight: 700;
  color: white;
  margin-bottom: 14px;
}

.program-card p {
  font-size: 14px;
  line-height: 1.75;
  color: rgba(255,255,255,0.6);
  margin-bottom: 24px;
}

.program-link {
  font-size: 13px;
  font-weight: 600;
  color: var(--gold-light);
  letter-spacing: 0.06em;
}

/* ─── BERITA ──────────────────────────────────────── */

.berita { background: white; }

.berita-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 48px;
}

.berita-all {
  font-size: 13px;
  font-weight: 600;
  color: var(--blue-main);
  text-decoration: none;
  letter-spacing: 0.06em;
  border-bottom: 1.5px solid var(--blue-main);
  padding-bottom: 2px;
}

.berita-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 28px;
}

.berita-card { text-decoration: none; display: block; }

.berita-card-img {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
  background: var(--blue-light);
  display: block;
  margin-bottom: 16px;
}

.berita-img-placeholder {
  width: 100%;
  aspect-ratio: 16/9;
  background: var(--blue-light);
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--blue-mid);
  font-size: 12px;
}

/* ─── GALERI CAROUSEL ────────────────────────────── */

.galeri { background: white; }

.sidebar-main .galeri { 
  background: transparent;
  padding: 50px 0;
}

.galeri-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 48px;
}

.berita-date {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 8px;
  display: block;
}

.berita-all {
  font-size: 13px;
  font-weight: 600;
  color: var(--blue-main);
  text-decoration: none;
  letter-spacing: 0.06em;
  border-bottom: 1.5px solid var(--blue-main);
  padding-bottom: 2px;
}

.carousel-wrap {
  display: flex;
  align-items: center;
  gap: 16px;
}

.carousel-viewport {
  flex: 1;
  overflow: hidden;
}

.carousel-track {
  display: flex;
  gap: 24px;
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  will-change: transform;
}

.carousel-item {
  min-width: calc((100% - 24px) / 2);
  background: white;
  border: 0.5px solid var(--gray-light);
  flex-shrink: 0;
  transition: box-shadow 0.25s, transform 0.25s;
}

.carousel-item:hover {
  box-shadow: 0 12px 32px rgba(30,99,165,0.1);
  transform: translateY(-4px);
}

@media (max-width: 900px) {
  .carousel-item {
    min-width: 100%;
  }

  .carousel-track {
    gap: 16px;
  }
}

.carousel-img-wrap {
  position: relative;
}

.carousel-img-placeholder {
  width: 100%;
  aspect-ratio: 16/9;
  background: var(--blue-light);
}

.carousel-img-wrap img {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
  display: block;
}

.carousel-tag {
  position: absolute;
  top: 12px;
  left: 12px;
  background: var(--gold);
  color: var(--blue-dark);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 4px 10px;
}

.carousel-info {
  padding: 20px 22px 24px;
}

.carousel-info h3 {
  font-family: 'Playfair Display', serif;
  font-size: 16px;
  font-weight: 600;
  color: var(--blue-dark);
  line-height: 1.45;
  margin-bottom: 10px;
}

.carousel-info p {
  font-size: 13px;
  line-height: 1.75;
  color: var(--gray-text);
  margin-bottom: 16px;
}

.carousel-link {
  font-size: 12px;
  font-weight: 600;
  color: var(--blue-main);
  text-decoration: none;
  letter-spacing: 0.05em;
}

.carousel-link:hover { color: var(--blue-dark); }

.carousel-btn {
  width: 44px;
  height: 44px;
  border: 1.5px solid var(--gray-light);
  background: white;
  color: var(--blue-dark);
  font-size: 18px;
  cursor: pointer;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s, border-color 0.2s;
}

.carousel-btn:hover {
  background: var(--blue-main);
  border-color: var(--blue-main);
  color: white;
}

.carousel-btn:disabled {
  opacity: 0.3;
  cursor: default;
  pointer-events: none;
}

.carousel-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 28px;
}

.carousel-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--gray-light);
  border: none;
  cursor: pointer;
  padding: 0;
  transition: background 0.2s, transform 0.2s;
}

.carousel-dot.active {
  background: var(--blue-main);
  transform: scale(1.3);
}

/* ─── SIDEBAR ─────────────────────────────────────── */

.sidebar-section {
  background: var(--gray-bg);
  padding: 0;
}

.sidebar-container {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 40px;
  align-items: flex-start;
  max-width: 100%;
  padding: 60px 80px;
}

.sidebar-main {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.sidebar-main section {
  padding: 50px 0;
}

.sidebar-main section:first-child {
  padding-top: 0;
}

.sidebar-main section:last-child {
  padding-bottom: 0;
}

.sidebar {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.sidebar-widget {
  background: white;
  padding: 20px 18px;
  border-left: 4px solid var(--gold);
  box-shadow: 0 2px 8px rgba(30,99,165,0.06);
  transition: box-shadow 0.25s;
}

.sidebar-widget:hover {
  box-shadow: 0 8px 20px rgba(30,99,165,0.12);
}

.sidebar-title {
  font-family: 'Playfair Display', serif;
  font-size: 16px;
  font-weight: 700;
  color: var(--blue-dark);
  margin-bottom: 10px;
}

.sidebar-divider {
  width: 28px;
  height: 2px;
  background: var(--gold);
  margin-bottom: 12px;
}

/* AGENDA ITEMS */
.agenda-item {
  padding: 10px 0;
  border-bottom: 1px solid var(--gray-light);
}

.agenda-item:last-child {
  border-bottom: none;
  padding-bottom: 8px;
}

.agenda-date {
  display: inline-block;
  background: var(--blue-light);
  color: var(--blue-main);
  padding: 3px 6px;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.06em;
  margin-bottom: 6px;
  border-radius: 3px;
}

.agenda-name {
  font-size: 12px;
  font-weight: 600;
  color: var(--blue-dark);
  margin-bottom: 4px;
  line-height: 1.3;
}

.agenda-time {
  font-size: 10px;
  color: var(--gray-text);
  line-height: 1.4;
}

/* BERITA ITEMS */
.berita-item {
  padding: 12px 0;
  border-bottom: 1px solid var(--gray-light);
}

.berita-item:last-child {
  border-bottom: none;
  padding-bottom: 12px;
}

.berita-item-img {
  width: 100%;
  height: 100px;
  overflow: hidden;
  margin-bottom: 10px;
  border-radius: 4px;
}

.berita-item-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.berita-item-date {
  display: block;
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 4px;
}

.berita-item-name {
  font-size: 12px;
  font-weight: 600;
  color: var(--blue-dark);
  margin-bottom: 4px;
  line-height: 1.3;
}

.berita-item-excerpt {
  font-size: 11px;
  color: var(--gray-text);
  line-height: 1.4;
}

.sidebar-link {
  display: block;
  margin-top: 12px;
  font-size: 11px;
  font-weight: 600;
  color: var(--blue-main);
  text-decoration: none;
  letter-spacing: 0.05em;
  border-bottom: 1.5px solid var(--blue-main);
  padding-bottom: 2px;
  transition: color 0.2s, border-color 0.2s;
}

.sidebar-link:hover {
  color: var(--blue-dark);
  border-color: var(--blue-dark);
}

.btn-sidebar-galeri {
  display: block;
  margin-top: 12px;
  padding: 10px 14px;
  background: var(--blue-main);
  color: white;
  font-size: 11px;
  font-weight: 600;
  text-decoration: none;
  text-align: center;
  border-radius: 3px;
  border-bottom: none;
  transition: background 0.2s;
}

.btn-sidebar-galeri:hover {
  background: var(--blue-dark);
}

/* ─── CTA ─────────────────────────────────────────── */

.cta {
  background: var(--blue-main);
  padding: 80px;
  text-align: center;
}

.cta h2 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  font-weight: 700;
  color: white;
  margin-bottom: 16px;
}

.cta p {
  font-size: 16px;
  color: rgba(255,255,255,0.75);
  max-width: 520px;
  margin: 0 auto 36px;
  line-height: 1.8;
}

/* ─── FOOTER ──────────────────────────────────────── */

.footer {
  background: var(--blue-dark);
  color: white;
  padding: 56px 80px 24px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 40px;
}

.footer-brand p {
  font-size: 14px;
  font-weight: 600;
  color: white;
  margin: 0 0 4px;
}

.footer-brand span {
  font-size: 12px;
  color: rgba(255,255,255,0.6);
}

.footer-logo-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
}

.footer-logo-img { height: 48px; }

.footer-desc {
  font-size: 13px;
  color: rgba(255,255,255,0.6);
  line-height: 1.8;
  margin-bottom: 8px !important;
}

.footer h3 {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold-light);
  margin-bottom: 18px;
  opacity: 1 !important;
}

.footer ul { list-style: none; padding: 0; }

.footer ul li { margin-bottom: 10px; }

.footer ul li a {
  font-size: 13px;
  color: rgba(255,255,255,0.65);
  text-decoration: none;
  transition: color 0.2s;
}

.footer ul li a:hover { color: white; }

.footer-divider {
  border: none;
  border-top: 1px solid rgba(255,255,255,0.1);
  margin: 0 0 20px;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  color: rgba(255,255,255,0.4);
  opacity: 1 !important;
}

/* ─── ANIMASI ─────────────────────────────────────── */

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(30px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50%       { transform: translateX(-50%) translateY(8px); }
}

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ─── RESPONSIVE ──────────────────────────────────── */

@media (max-width: 1024px) {
  .sidebar-container {
    grid-template-columns: 1fr 280px;
    gap: 28px;
    padding: 50px 60px;
  }
  
  .sidebar-main section {
    padding: 40px 0;
  }
  
  .sidebar-main .program {
    margin: 0;
    padding: 40px 0;
  }
  
  section { padding: 70px 60px; }
}

@media (max-width: 768px) {
  .sidebar-container {
    grid-template-columns: 1fr;
    gap: 32px;
    padding: 50px 24px;
  }
  
  .sidebar-section {
    padding: 0;
  }
  
  section { padding: 50px 24px; }
  
  .sidebar-main section {
    padding: 40px 0;
  }
  
  .sidebar-main .program {
    margin: 0;
    padding: 40px 0;
  }
  
  .sidebar {
    gap: 24px;
  }
  
  .sidebar-widget {
    padding: 24px 20px;
  }
  
  .sidebar-main {
    width: 100%;
  }
}