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

:root {
  --primary: #2563eb;
  --primary-dark: #1d4ed8;
  --accent: #f97316;
  --bg: #f3f4f6;
  --bg-soft: #ffffff;
  --text-main: #111827;
  --text-muted: #6b7280;
  --border-soft: #e5e7eb;
  --max-width: 1120px;
}

body {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--bg);
  color: var(--text-main);
  line-height: 1.6;
}

/* Layout helpers */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1rem;
}

/* Top bar */
.top-bar {
  background: #111827;
  color: #e5e7eb;
  font-size: 0.8rem;
}

.top-bar-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.35rem 0;
}

.top-bar a {
  color: #e5e7eb;
  text-decoration: none;
}

.top-bar a:hover {
  text-decoration: underline;
}

/* Header */
.site-header {
  background: var(--bg-soft);
  border-bottom: 1px solid var(--border-soft);
}

.site-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 0;
  gap: 1.5rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.brand-logo {
  display: inline-flex;
  align-items: center;
}

.brand-logo img {
  display: block;
  height: 40px;
}

.brand-text {
  display: flex;
  flex-direction: column;
}

.site-title {
  font-size: 1.3rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.site-tagline {
  font-size: 0.78rem;
  color: var(--text-muted);
}

/* Search */
.header-search {
  margin-left: auto;
}

.header-search form {
  display: flex;
  align-items: center;
  border-radius: 999px;
  border: 1px solid var(--border-soft);
  padding: 0.15rem 0.45rem;
  background: #f9fafb;
}

.header-search input[type="search"] {
  border: none;
  background: transparent;
  padding: 0.25rem 0.45rem;
  width: 190px;
  font-size: 0.85rem;
  outline: none;
}

.header-search button {
  border-radius: 999px;
  border: none;
  padding: 0.25rem 0.65rem;
  font-size: 0.8rem;
  cursor: pointer;
  background: var(--primary);
  color: #ffffff;
}

.header-search button:hover {
  background: var(--primary-dark);
}

/* Main navigation */
.navbar {
  background: #0f172a;
}

.nav-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1rem;
}

.nav-list {
  list-style: none;
  display: flex;
  gap: 1.5rem;
  align-items: center;
  overflow-x: auto;
}

.nav-list li a {
  display: block;
  padding: 0.65rem 0;
  font-size: 0.86rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #e5e7eb;
  text-decoration: none;
  white-space: nowrap;
}

.nav-list li a:hover,
.nav-list li a.is-active {
  color: #ffffff;
  border-bottom: 2px solid var(--accent);
}

/* Mobile nav */
.nav-toggle {
  display: none;
  border: none;
  background: transparent;
  color: #e5e7eb;
  font-size: 1.1rem;
}

/* Breaking news */
.breaking-bar {
  background: #111827;
  border-bottom: 1px solid #020617;
}

.breaking-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0.4rem 1rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: #e5e7eb;
  font-size: 0.82rem;
}

.breaking-label {
  font-weight: 600;
  text-transform: uppercase;
  font-size: 0.75rem;
  background: var(--accent);
  padding: 0.1rem 0.4rem;
  border-radius: 999px;
}

.breaking-items {
  display: flex;
  gap: 1.75rem;
  overflow-x: auto;
}

.breaking-items a {
  color: #e5e7eb;
  text-decoration: none;
  white-space: nowrap;
}

.breaking-items a:hover {
  text-decoration: underline;
}

/* Main */
main {
  padding: 1.25rem 0 2.5rem;
}

/* Hero + sidebar grid */
.layout-main {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 1.5rem;
}

/* Hero */
.hero-card {
  background: var(--bg-soft);
  border-radius: 0.75rem;
  overflow: hidden;
  border: 1px solid var(--border-soft);
  display: flex;
  flex-direction: column;
}

.hero-image {
  position: relative;
  padding-top: 52%;
  background: #d1d5db;
  overflow: hidden;
}

.hero-image::after {
  content: "Headline Utama";
  position: absolute;
  bottom: 0.65rem;
  left: 0.75rem;
  padding: 0.15rem 0.55rem;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  background: rgba(15, 23, 42, 0.88);
  color: #e5e7eb;
  border-radius: 999px;
}

.hero-body {
  padding: 1rem 1rem 1.1rem;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  font-size: 0.75rem;
  padding: 0.1rem 0.4rem;
  border-radius: 999px;
  background: #dbeafe;
  color: #1d4ed8;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.hero-title {
  font-size: 1.35rem;
  margin-top: 0.55rem;
  margin-bottom: 0.4rem;
  line-height: 1.3;
}

.hero-title a {
  color: inherit;
  text-decoration: none;
}

.hero-title a:hover {
  color: var(--primary);
}

.meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  font-size: 0.76rem;
  color: var(--text-muted);
  margin-bottom: 0.55rem;
}

.meta span {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
}

.hero-excerpt {
  font-size: 0.9rem;
  color: #4b5563;
}

/* Secondary list */
.secondary-list {
  margin-top: 1rem;
  display: grid;
  gap: 0.65rem;
}

.secondary-item {
  display: grid;
  grid-template-columns: 1.1fr 2.3fr;
  gap: 0.75rem;
  padding: 0.65rem 0.25rem;
  border-top: 1px solid var(--border-soft);
}

.secondary-thumb {
  background: #e5e7eb;
  border-radius: 0.4rem;
}

.secondary-title {
  font-size: 0.95rem;
  margin-bottom: 0.15rem;
}

.secondary-title a {
  color: inherit;
  text-decoration: none;
}

.secondary-title a:hover {
  color: var(--primary);
}

/* Sidebar */
.sidebar {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.widget {
  background: var(--bg-soft);
  border-radius: 0.75rem;
  border: 1px solid var(--border-soft);
  padding: 0.8rem 0.9rem 1rem;
}

.widget-title {
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  margin-bottom: 0.65rem;
}

.widget-list {
  list-style: none;
  display: grid;
  gap: 0.55rem;
  font-size: 0.88rem;
}

.widget-list a {
  color: inherit;
  text-decoration: none;
}

.widget-list a:hover {
  color: var(--primary);
}

/* Section blocks */
.section {
  margin-top: 2rem;
}

.section-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.85rem;
}

.section-title {
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.section-title span {
  padding-bottom: 0.25rem;
  border-bottom: 2px solid var(--primary);
}

.section-more a {
  font-size: 0.8rem;
  color: var(--primary);
  text-decoration: none;
}

.section-more a:hover {
  text-decoration: underline;
}

.section-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
}

.card {
  background: var(--bg-soft);
  border-radius: 0.7rem;
  overflow: hidden;
  border: 1px solid var(--border-soft);
  display: flex;
  flex-direction: column;
}

.card-thumb {
  padding-top: 62%;
  background: #e5e7eb;
}

.card-body {
  padding: 0.65rem 0.7rem 0.8rem;
}

.card-cat {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  margin-bottom: 0.15rem;
}

.card-title {
  font-size: 0.9rem;
  margin-bottom: 0.25rem;
}

.card-title a {
  color: inherit;
  text-decoration: none;
}

.card-title a:hover {
  color: var(--primary);
}

.card-meta {
  font-size: 0.7rem;
  color: var(--text-muted);
}

/* Footer */
.site-footer {
  background: #020617;
  color: #9ca3af;
  border-top: 1px solid #111827;
}

.footer-top {
  padding: 1.5rem 0 1.25rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 1.5rem;
  font-size: 0.86rem;
}

.footer-title {
  font-size: 0.88rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-bottom: 0.75rem;
  color: #e5e7eb;
}

.footer-menu,
.footer-meta {
  list-style: none;
  display: grid;
  gap: 0.4rem;
}

.footer-menu a {
  color: inherit;
  text-decoration: none;
}

.footer-menu a:hover {
  color: #e5e7eb;
}

.footer-bottom {
  border-top: 1px solid #111827;
  padding: 0.7rem 0;
  font-size: 0.78rem;
}

.footer-bottom-inner {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: center;
}

/* Content pages */
.main-page {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 1.5rem 1rem 2.5rem;
}

.page-card {
  background: var(--bg-soft);
  border-radius: 0.75rem;
  border: 1px solid var(--border-soft);
  padding: 1.25rem 1.25rem 1.5rem;
}

.page-title {
  font-size: 1.4rem;
  margin-bottom: 0.35rem;
}

.page-meta {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 0.8rem;
}

.page-card p + p {
  margin-top: 0.6rem;
}

.page-card ul {
  margin-top: 0.5rem;
  margin-left: 1.1rem;
}

.page-card li + li {
  margin-top: 0.25rem;
}

/* Forms */
form label {
  display: block;
  font-size: 0.88rem;
  margin-bottom: 0.25rem;
}

form input[type="text"],
form input[type="email"],
form textarea {
  width: 100%;
  border-radius: 0.5rem;
  border: 1px solid var(--border-soft);
  padding: 0.5rem 0.65rem;
  font-size: 0.9rem;
  margin-bottom: 0.75rem;
}

form textarea {
  min-height: 140px;
  resize: vertical;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.45rem 0.9rem;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  font-size: 0.88rem;
  background: var(--primary);
  color: #ffffff;
}

.btn-primary:hover {
  background: var(--primary-dark);
}

/* Responsive */
@media (max-width: 960px) {
  .layout-main {
    grid-template-columns: 1.5fr 1fr;
  }
  .section-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 768px) {
  .site-header-inner {
    flex-wrap: wrap;
  }
  .header-search {
    order: 3;
    width: 100%;
  }
  .header-search form {
    width: 100%;
  }
  .layout-main {
    grid-template-columns: 1fr;
  }
  .section-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 640px) {
  .nav-list {
    display: none;
    flex-direction: column;
  }
  .nav-list.is-open {
    display: flex;
  }
  .nav-toggle {
    display: inline-flex;
  }
  .nav-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
  }
  .section-grid {
    grid-template-columns: 1fr;
  }
  .secondary-item {
    grid-template-columns: 1fr;
  }
  .footer-grid {
    grid-template-columns: 1fr;
  }
}
