/*
Theme Name: SwasenaTheme
Author: Andang - RASVARA
Description: Tema custom elegan untuk proyek WordPress by Andang.
Version: 1.0
*/

:root {
  --container-max: 1200px;
  --container-padding: 50px;
}

/* ===== Global ===== */
body {
  margin: 0;
  font-family: 'Poppins', sans-serif;
  color: #222;
  background-color: #fff;
}
p {
  font-size: 14px;
}
.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 20px;
  box-sizing: border-box;
}
.container-full {
  width: 100%;
  padding: 0 var(--container-padding);
  box-sizing: border-box;
}

/* ===== Header Utama ===== */
.header-row {
  display: flex;
  height: 500px;
  position: relative;
  z-index: 1;
}
.header-text {
  width: 60%;
  margin-top: 30px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  line-height: 1;
}
.header-side-image {
  width: auto;
  display: flex;
  flex-direction: column;
}
.header-side-image img {
  margin-top: auto;
  max-width: 100%;
  height: auto;
  display: block;
}

.site-header {
  position: relative;
  z-index: 10;
  background: #000;
  color:#fff;
  border-bottom: 1px solid #eee;
}

.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 0;
}

.site-branding img {
  max-height: 60px;
  width: auto;
}

.main-navigation ul {
  list-style: none;
  display: flex;
  gap: 20px;
}

.main-navigation a {
  text-decoration: none;
  color: #333;
  font-weight: 500;
}


/* ===== Breadcrumb ===== */
.breadcrumb {
  font-size: 14px;
  margin-bottom: 30px;
  margin-top: 30px;
}
.breadcrumb a {
  text-decoration: none;
  color: #0073aa;
}
.breadcrumb a:hover {
  text-decoration: underline;
}

/* ===== Sembunyikan Judul Halaman ===== */
.page.type-page h1 {
  display: none !important;
  visibility: hidden !important;
}

/* ===== Font Responsif ===== */
.header-text h1 {
  font-size: clamp(20px, 6vw, 42px);
  font-weight: 600;
}
.header-text p {
  font-size: clamp(12px, 4vw, 21px);
  font-weight: 300;
}

/* ===== Header Menu ===== */
.header-menu {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 15px;
  position: relative !important;
  z-index: 1000 !important;
}
.menu-logo img {
  max-height: 60px;
  width: auto;
}
.menu-list {
  display: flex;
  gap: 30px;
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 14px;
}
.menu-list li a {
  color: #fff;
  text-decoration: none;
  font-weight: 400;
}

/* ===== Burger Button ===== */
.menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 30px;
  height: 21px;
  cursor: pointer;
}
.menu-toggle span {
  display: block;
  height: 3px;
  background: #fff;
  border-radius: 2px;
  transition: 0.3s;
}
.menu-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}
.menu-toggle.active span:nth-child(2) {
  opacity: 0;
}
.menu-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* ===== Mobile & Tablet Menu ===== */
@media (max-width: 1024px) {
  .menu-toggle {
    display: flex;
  }
  .header-menu{
    background: rgba(0,0,0,0.9);
  }
  .menu-list {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: rgba(0,0,0,0.9);
    flex-direction: column;
    z-index: 99;
    gap: 0px;
  }
  .menu-list li {
    width: 100%;
  }
  .menu-list li a {
    display: block;
    padding: 12px 20px;
    color: #fff;
    text-decoration: none;
    border-bottom:1px solid rgba(255,255,255,.2);
  }
   .menu-list li:last-child a {
    border-bottom:none;
  }
  .menu-list.show {
    display: flex;
  }
}

/* ===== Responsive Header Text ===== */
@media (min-width: 768px) and (max-width: 1024px) {
  .header-text h1 { font-size: clamp(18px, 5vw, 36px); }
  .header-text p { font-size: clamp(10px, 3vw, 18px); }
}

@media (min-width: 480px) and (max-width: 767px),
       (max-width: 479px) {
  .header-row {
    flex-direction: column;
    height: auto;
  }
  .header-text, .header-side-image {
    width: 100% !important;
  }
  .header-side-image img { margin-top: 15px; }
  .header-text h1 { font-size: 42px !important; }
  .header-text p { font-size: 22px !important; }
}

/* ===== Layout Mode ===== */

/* ===================================================
   Layout Fullwidth aktif hanya di desktop (≥1200px)
   =================================================== */
@media (min-width: 1200px) {
  .layout-fullwidth .container-full {
    max-width: none !important;
    margin: 0 50px !important;
    width: calc(100% - 100px);
  }
}

/* ===================================================
   Layout Fullwidth di bawah 1200px → fallback ke standar
   =================================================== */
@media (max-width: 1199px) {
 .layout-fullwidth {
    max-width: 1200px !important;
    margin: 0 auto !important;
    width: 100% !important;
  }
.container-full {
    max-width: 1200px !important;
    margin: 0 auto !important;
    width: 100% !important;
    padding: 0 20px !important;
  }
}


/* Layout standard tetap sama */
.layout-standard .container,
.layout-standard .site-header,
.layout-standard .header-container {
  max-width: 1200px;
  margin: 0 auto;
}

/* ===== Header Tinggi ===== */
@media (min-width: 992px) {
  .header-home { min-height: 500px; max-height: 500px; }
  .header-home .header-row { top: -97px; position: relative; }
}
@media (max-width: 991px) {
  .header-home { min-height: auto; max-height: none; }
  .header-home .header-row { top: 0; }
}

/* ===== Layer & Overlay ===== */
.header-home .container {
  position: relative;
  z-index: 2;
}
.header-home::before {
  content: "";
  position: absolute;
  inset: 0;
  background: transparent;
  z-index: 1;
}
.header-home .overlay {
  position: absolute;
  z-index: 0 !important;
}

/* =========================
   HEADER INNER STYLING
   ========================= */
.header-row-inner {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  height: 400px; /* tinggi fix atau sesuai keinginan */
  text-align: center;
  position: relative;
}

.header-row-inner h1 {
  font-size: 48px;
  color: #fff;
  margin: 0;
  z-index: 2;
}

.header-row-inner::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
}
/* ====== HEADER INNER OVERLAY FIX ====== */
.header-inner {
  position: relative;
  overflow: hidden;
}

.header-inner .overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(to bottom, rgba(0,0,0,0.7) 0%, rgba(0,0,0,0.3) 100%);
  pointer-events: none; /* biar klik tetap bisa */
  z-index: 0; /* pastikan di bawah semua */
}

.header-inner .header-menu,
.header-inner .header-row-inner {
  position: relative;
  z-index: 2; /* di atas overlay */
}

/* supaya title tetap di tengah vertikal */
.header-inner .header-row-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 40vh;
  text-align: center;
}


/* ===== Footer ===== */
footer {
  background: #f0f2f3;
  color:#333;
}
.copyright p{
  font-size: 12px;
  font-weight: 300;
  margin-block-start: 0;
  margin-block-end: 0;
  padding-bottom: 20px;
  padding-top: 20px;
  text-align: center;
  border-top:1px solid rgba(0,0,0,.2);
}

/* Ukuran logo & menu di mobile */
@media (max-width: 768px) {
  .menu-logo img {
    max-height: 45px !important;
    width: auto !important;
  }

  .header-menu {
    padding: 10px 15px !important;
  }

  .menu-list li a {
    font-size: 14px !important;
  }
   .page-header-title {
    font-size: 28px;
  }
}