/* ============================================
   assets/css/layout.css
   Header & Footer - Shared Responsive Styles
   ============================================ */

/* ---------- CONTAINER ---------- */
.container {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ---------- HEADER ---------- */
.site-header {
  background: var(--navy);
  position: sticky;
  top: 0;
  z-index: 200;
  box-shadow: 0 2px 12px rgba(0,0,0,.25);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 60px;
}
.logo {
  font-family: 'Merriweather', serif;
  font-size: 20px;
  font-weight: 700;
  color: #fff;
  text-decoration: none;
  letter-spacing: -.3px;
  flex-shrink: 0;
}
.logo span { color: var(--gold); }

/* Desktop nav */
.desktop-nav {
  display: flex;
  align-items: center;
  gap: 4px;
}
.nav-link {
  color: rgba(255,255,255,.82);
  padding: 6px 12px;
  font-size: 14px;
  font-weight: 500;
  border-radius: 6px;
  transition: color .15s, background .15s;
  text-decoration: none;
}
.nav-link:hover,
.nav-link.active {
  color: #fff;
  background: rgba(255,255,255,.1);
}
.nav-link.active {
  color: var(--gold);
}
.btn-cta-nav {
  background: var(--gold);
  color: var(--navy) !important;
  padding: 8px 18px;
  border-radius: 7px;
  font-size: 14px;
  font-weight: 700;
  margin-left: 8px;
  text-decoration: none;
  transition: background .15s, transform .1s;
  white-space: nowrap;
}
.btn-cta-nav:hover {
  background: #d9a218;
  transform: translateY(-1px);
}

/* ---------- HAMBURGER ---------- */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 28px;
  height: 20px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  z-index: 210;
}
.hamburger span {
  display: block;
  width: 100%;
  height: 2.5px;
  background: #fff;
  border-radius: 2px;
  transform-origin: center;
  transition: transform .3s ease, opacity .3s ease, top .3s ease;
  position: relative;
}
/* Animate to X when open */
.hamburger.open span:nth-child(1) {
  transform: translateY(8.75px) rotate(45deg);
}
.hamburger.open span:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}
.hamburger.open span:nth-child(3) {
  transform: translateY(-8.75px) rotate(-45deg);
}

/* ---------- MOBILE NAV DRAWER ---------- */
.mobile-nav {
  display: none;
  position: fixed;
  top: 60px;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--navy);
  z-index: 190;
  overflow-y: auto;
  transform: translateX(-100%);
  transition: transform .3s ease;
}
.mobile-nav.open {
  transform: translateX(0);
}
.mobile-nav nav {
  padding: 12px 0 32px;
}
.mobile-nav-link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 24px;
  color: rgba(255,255,255,.85);
  font-size: 15px;
  font-weight: 500;
  text-decoration: none;
  border-left: 3px solid transparent;
  transition: background .15s, border-color .15s, color .15s;
}
.mobile-nav-link:hover,
.mobile-nav-link.active {
  background: rgba(255,255,255,.08);
  border-left-color: var(--gold);
  color: #fff;
}
.mobile-nav-link.active {
  color: var(--gold);
}
.mobile-nav-icon {
  font-size: 16px;
  width: 22px;
  text-align: center;
  flex-shrink: 0;
}
.mobile-nav-cta {
  display: block;
  margin: 20px 24px 0;
  padding: 14px;
  background: var(--gold);
  color: var(--navy);
  font-size: 15px;
  font-weight: 700;
  text-align: center;
  border-radius: 10px;
  text-decoration: none;
  transition: background .15s;
}
.mobile-nav-cta:hover {
  background: #d9a218;
}

/* Overlay behind drawer */
.nav-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.45);
  z-index: 180;
}
.nav-overlay.open {
  display: block;
}

/* ---------- FOOTER ---------- */
.site-footer {
  background: var(--navy);
  color: rgba(255,255,255,.7);
  padding: 48px 0 24px;
  margin-top: 64px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 36px;
}
.footer-brand p {
  font-size: 14px;
  line-height: 1.7;
  margin-bottom: 16px;
  max-width: 320px;
}
.footer-logo {
  font-family: 'Merriweather', serif;
  font-size: 20px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 12px;
}
.footer-logo span { color: var(--gold); }

.footer-socials {
  display: flex;
  gap: 10px;
}
.footer-socials a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  background: rgba(255,255,255,.1);
  border-radius: 50%;
  color: rgba(255,255,255,.7);
  transition: background .15s, color .15s;
  text-decoration: none;
}
.footer-socials a:hover {
  background: var(--gold);
  color: var(--navy);
}

.site-footer h4 {
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .8px;
  margin-bottom: 16px;
}
.site-footer a {
  color: rgba(255,255,255,.6);
  font-size: 14px;
  display: block;
  margin-bottom: 10px;
  text-decoration: none;
  transition: color .15s;
}
.site-footer a:hover { color: var(--gold); }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.1);
  padding-top: 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 13px;
}
.footer-links {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.footer-links a {
  display: inline;
  margin: 0;
  font-size: 13px;
}
.footer-links span {
  color: rgba(255,255,255,.3);
  font-size: 12px;
}

/* ---------- RESPONSIVE ---------- */
@media (max-width: 768px) {
  .desktop-nav { display: none; }
  .hamburger   { display: flex; }
  .mobile-nav  { display: block; }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }
  .footer-brand p { max-width: 100%; }
  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }
}

@media (max-width: 480px) {
  .logo { font-size: 18px; }
}

/* wrapper menentukan rasio 4:3 */
.article-featured-img-wrap {
  width: 100%;
  aspect-ratio: 4 / 3;
  border-radius: 10px;
  margin: 24px 0;
  overflow: hidden;
}
/* gambar mengisi penuh wrapper */
.article-featured-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.artikel-thumb-wrap { width:100%; aspect-ratio:4/3; overflow:hidden; ... }
.artikel-thumb      { width:100%; height:100%; object-fit:cover; display:block; }

.artikel-img-wrap { width:100%; aspect-ratio:4/3; overflow:hidden; background:var(--gray); ... }
.artikel-img      { width:100%; height:100%; object-fit:cover; display:block; }
.artikel-img-placeholder { font-size:40px; }