:root {
  --fb-blue: #1877f2;
  --fb-blue-deep: #0f5fd3;
  --navy: #102a56;
  --navy-soft: #183a73;
  --yellow: #ffd447;
  --yellow-soft: #fff4c4;
  --bg: #f3f6fb;
  --card: rgba(255,255,255,0.95);
  --text: #18253a;
  --muted: #58667a;
  --line: rgba(16,42,86,0.12);
  --shadow: 0 18px 50px rgba(16,42,86,0.14);
  --radius: 24px;
}

* { 
  box-sizing: border-box; 
  -webkit-tap-highlight-color: transparent;
}

html { 
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  color: var(--text);
  background: 
    radial-gradient(circle at top left, rgba(255,212,71,0.15), transparent 30%),
    linear-gradient(180deg, #f0f4f8 0%, #ffffff 100%);
  line-height: 1.6;
  display: flex;
  flex-direction: column;
  align-items: center; /* Memastikan konten selalu di tengah */
  min-width: 840px; /* Sesuai permintaan: minimal lebar 840px */
}

a { color: inherit; text-decoration: none; transition: 0.3s; }

/* Wrapper Global untuk menjaga lebar minimal */
.wrapper {
  width: 840px;
  margin: 0 auto;
}

/* Navigation */
.topbar {
  position: sticky;
  top: 0;
  z-index: 100;
  width: 100%;
  backdrop-filter: blur(15px);
  background: rgba(255,255,255,0.85);
  border-bottom: 1px solid var(--line);
  display: flex;
  justify-content: center;
}

.topbar-inner {
  width: 840px;
  padding: 12px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
}

.brand { display: flex; align-items: center; gap: 12px; min-width: 0; }
.brand img { 
  width: 45px; 
  height: 45px; 
  border-radius: 12px; 
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
  flex-shrink: 0;
}
.brand h1 { 
  font-size: 1.2rem; 
  margin: 0; 
  color: var(--navy); 
  font-weight: 800;
}

.nav-menu { display: flex; gap: 20px; font-weight: 600; font-size: 0.9rem; }
.nav-menu a:hover { color: var(--fb-blue); }

/* Slider */
.slider-container {
  width: 840px;
  margin: 20px auto;
  height: 400px;
  overflow: hidden;
  border-radius: var(--radius);
  position: relative;
  box-shadow: var(--shadow);
}

.slider-track {
  display: flex;
  width: 600%; 
  height: 100%;
  animation: slideAnim 30s infinite;
}

.slide {
  width: 16.66%;
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: flex-end;
  padding: 40px;
  position: relative;
}

.slide::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(16,42,86,0.95), transparent 70%);
}

.slide-content { position: relative; z-index: 2; color: white; max-width: 600px; }
.slide-content h2 { 
  font-size: 2rem; 
  margin: 0; 
  line-height: 1.2; 
  font-weight: 800;
}

@keyframes slideAnim {
  0%, 15% { transform: translateX(0); }
  16.6%, 31.6% { transform: translateX(-16.66%); }
  33.3%, 48.3% { transform: translateX(-33.33%); }
  50%, 65% { transform: translateX(-50%); }
  66.6%, 81.6% { transform: translateX(-66.66%); }
  83.3%, 98.3% { transform: translateX(-83.33%); }
}

/* Sections Container */
.container { 
  width: 840px;
  padding: 40px 0;
}

.section-card {
  background: var(--card);
  border-radius: var(--radius);
  padding: 40px;
  margin-bottom: 30px;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.motto-box {
  text-align: center;
  background: linear-gradient(135deg, var(--navy), var(--navy-soft));
  color: var(--yellow);
  padding: 40px;
  border-radius: var(--radius);
  font-style: italic;
  font-size: 1.3rem;
  margin-bottom: 50px;
  box-shadow: var(--shadow);
  line-height: 1.4;
}

/* News Grid */
.news-grid { 
  display: grid; 
  grid-template-columns: 1fr; /* Tampilan list tegak lurus di lebar 840px */
  gap: 30px; 
}

.news-card {
  background: white;
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid var(--line);
  display: flex;
  height: 200px;
}

.news-img { 
  width: 300px;
  background-size: cover; 
  background-position: center; 
  flex-shrink: 0;
}

.news-body { padding: 25px; flex-grow: 1; }
.news-title { font-weight: 800; font-size: 1.2rem; color: var(--navy); margin-bottom: 10px; }

/* Team Grid */
.team-grid { 
  display: grid; 
  grid-template-columns: repeat(2, 1fr); 
  gap: 25px; 
}

/* Footer */
footer { 
  background: var(--navy); 
  color: white; 
  padding: 60px 0; 
  text-align: center; 
  width: 100%;
  display: flex;
  justify-content: center;
}

.footer-content {
  width: 840px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  text-align: left;
}

.footer-brand img { width: 60px; margin-bottom: 15px; }
.footer-contact h4 { color: var(--yellow); margin-bottom: 15px; }
.footer-contact p { font-size: 0.9rem; margin-bottom: 8px; opacity: 0.8; }
.footer-contact a { color: var(--yellow); font-weight: bold; }

.footer-bottom {
  grid-column: span 2;
  text-align: center;
  padding-top: 40px;
  border-top: 1px solid rgba(255,255,255,0.1);
  font-size: 0.8rem;
  opacity: 0.6;
}