/*
Theme Name: Mahasi Bali Landing Page
Theme URI: https://mahasibali.org
Author: LittleDev
Author URI: https://mahasibali.org
Description: Tema landing page untuk Mahasi Bali
Version: 1.0
Text Domain: mahasi-bali-landing-page
*/

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: #111827;
  background-color: #f9fafb;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

html {
  background: #0A87C5;
}

main {
  flex: 1 0 auto;
}

/* Navbar */
.site-header {
  background: #ffffff;
  border-bottom: 1px solid #e5e7eb;
  position: sticky;
  top: 0;
  z-index: 10;
}

.nav-inner {
  max-width: 1120px;
  margin: 0 auto;
  padding: 1rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.site-branding {
  font-weight: 700;
  font-size: 1.1rem;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.nav-actions a.button {
  padding: 0.5rem 1rem;
  border-radius: 999px;
  border: 1px solid #111827;
  text-decoration: none;
  font-size: 0.875rem;
}

/* ====== TOPBAR HEADER ====== */

.topbar {
  background: #ffffff;
  border-top: 3px solid #111111;
  /* garis hitam paling atas */
  border-bottom: 1px solid #e5e7eb;
}

.topbar-inner {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0.75rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 3rem;
  /* jarak antara menu kiri, logo, menu kanan */
}

/* menu kiri & kanan */
.topbar-menu {
  flex: 1 1 0;
}

.top-menu-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  justify-content: center;
  gap: 2.5rem;
  /* jarak antar item menu */
  font-size: 0.85rem;
}

.top-menu-list li a {
  text-decoration: none;
  color: #111827;
  font-weight: 400;
}

.top-menu-list li a:hover {
  text-decoration: underline;
}

/* logo tengah */
.topbar-logo {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
}

.topbar-logo img {
  max-height: 50px;
  /* sesuaikan biar mirip gambar */
  width: auto;
  display: block;
}

/* fallback kalau pakai text */
.topbar-logo-text {
  font-weight: 700;
  font-size: 0.9rem;
}

/* responsive */
@media (max-width: 768px) {
  .topbar-inner {
    flex-direction: column;
    gap: 1rem;
  }

  .top-menu-list {
    gap: 1.25rem;
    flex-wrap: wrap;
  }
}

/* Hero */
.hero {
  max-width: 1120px;
  margin: 0 auto;
  padding: 3rem 1.5rem 2rem;
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 1.5fr);
  gap: 2rem;
}

.hero-title {
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: .12em;
  color: #6b7280;
}

.hero h1 {
  font-size: 2.5rem;
  margin: 0.5rem 0 1rem;
}

.hero p {
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

.hero .hero-buttons {
  display: flex;
  gap: 1rem;
}

.button-primary,
.button-secondary {
  padding: 0.75rem 1.4rem;
  border-radius: 999px;
  text-decoration: none;
  font-size: 0.95rem;
}

.button-primary {
  background: #111827;
  color: #ffffff;
}

.button-secondary {
  border: 1px solid #111827;
  color: #111827;
}

/* Posts list shortcode [elementor_posts_list_fixed] */
.eplf-posts-list {
  padding: 2rem 1.5rem;
  max-width: 1100px;
  margin: 0 auto;
}

/* Horizontal list: beberapa kartu per baris */
.eplf-posts-list .eplf-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

@media (max-width: 900px) {
  .eplf-posts-list .eplf-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 560px) {
  .eplf-posts-list .eplf-grid {
    grid-template-columns: 1fr;
  }
}

.eplf-posts-list .eplf-item {
  max-width: 100%;
  box-sizing: border-box;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  padding: 1.25rem;
  box-shadow: 0 1px 3px rgba(0,0,0,0.06);
}

/* Di dalam kartu: gambar di atas, teks di bawah (lebih rapi untuk layout horizontal) */
.eplf-posts-list .eplf-item > div {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  align-items: stretch;
}

.eplf-posts-list .eplf-thumb {
  display: block;
  flex: none;
  width: 100%;
  border-radius: 8px;
  overflow: hidden;
}

.eplf-posts-list .eplf-thumb img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}

.eplf-posts-list .eplf-content {
  flex: 1;
  min-width: 0;
}

.eplf-posts-list .eplf-title {
  margin: 0 0 0.5rem;
  font-size: 1.125rem;
  line-height: 1.3;
}

.eplf-posts-list .eplf-title a {
  color: #0A87C5;
  text-decoration: none;
  font-weight: 600;
}

.eplf-posts-list .eplf-title a:hover {
  text-decoration: underline;
}

.eplf-posts-list .eplf-visudhi,
.eplf-posts-list .eplf-excerpt {
  color: #4b5563;
  margin-bottom: 0.5rem;
  font-size: 0.9375rem;
  line-height: 1.5;
}

.eplf-posts-list .eplf-meta {
  margin-top: 0.5rem;
}

.eplf-posts-list .eplf-readmore {
  display: inline-block;
  color: #0A87C5;
  text-decoration: none;
  font-size: 0.9375rem;
  font-weight: 500;
}

.eplf-posts-list .eplf-readmore:hover {
  text-decoration: underline;
}

/* Pagination: horizontal, no bullets */
.eplf-posts-list .eplf-pagination {
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid #e5e7eb;
}

.eplf-posts-list .eplf-pagination ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: center;
  align-items: center;
}

.eplf-posts-list .eplf-pagination li {
  margin: 0;
  padding: 0;
  list-style: none;
}

.eplf-posts-list .eplf-pagination a,
.eplf-posts-list .eplf-pagination span {
  display: inline-block;
  padding: 0.5rem 0.75rem;
  min-width: 2.5rem;
  text-align: center;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  color: #111827;
  text-decoration: none;
  font-size: 0.9375rem;
}

.eplf-posts-list .eplf-pagination a:hover {
  background: #f3f4f6;
  border-color: #0A87C5;
  color: #0A87C5;
}

.eplf-posts-list .eplf-pagination .current span {
  background: #0A87C5;
  border-color: #0A87C5;
  color: #fff;
}

.eplf-posts-list .eplf-no-posts {
  color: #6b7280;
  text-align: center;
  padding: 2rem;
}

/* Single Post */
.content-container {
  max-width: 860px;
  margin: 0 auto;
  padding: 2.5rem 1.5rem;
}

/* Block Styles */
.is-style-justify {
  text-align: justify;
  text-justify: inter-word;
}

.has-text-align-justify {
  text-align: justify;
  text-justify: inter-word;
}

.single-post {
  background: #f9fafb;
  padding-bottom: 3rem;
}

.single-post .content-container {
  padding-bottom: 3rem;
}

.single-post-fullwidth .single-article {
  max-width: 1120px;
  margin: 2.5rem auto 3rem;
}

/* Page */
.page-main {
  background: #f9fafb;
  padding-bottom: 3rem;
}

.page-article {
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 16px;
  padding: 2rem;
}

.page-title {
  margin: 0 0 1rem;
  font-size: 2rem;
  line-height: 1.2;
}

.page-title {
  display: none;
}

.page-content {
  line-height: 1.75;
}

.page-featured {
  margin: 0 auto 1.5rem;
  display: flex;
  justify-content: center;
}

.page-featured img {
  width: auto;
  height: auto;
  max-height: 15rem;
  max-width: 100%;
  border-radius: 12px;
  display: block;
}

.page-fullwidth .page-article {
  max-width: 1120px;
  margin: 2.5rem auto 3rem;
}

.single-article {
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 16px;
  padding: 2rem;
}

.single-title {
  margin: 0 0 0.5rem;
  font-size: 2rem;
  line-height: 1.2;
}

.single-meta {
  font-size: 0.9rem;
  color: #6b7280;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.single-featured {
  margin: 1.5rem 0;
}

.single-featured img {
  width: 100%;
  height: auto;
  border-radius: 12px;
  display: block;
}

.single-content {
  line-height: 1.75;
}

.single-content h2,
.single-content h3,
.single-content h4 {
  margin-top: 1.75rem;
}

.single-footer {
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid #e5e7eb;
}

.single-tax {
  display: grid;
  gap: 0.5rem;
  font-size: 0.9rem;
}

.single-label {
  font-weight: 600;
  margin-right: 0.35rem;
}

/* Comments */
.comments-area {
  margin-top: 2rem;
}

.comments-inner {
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 16px;
  padding: 2rem;
}

.comments-title {
  margin: 0 0 1.25rem;
  font-size: 1.4rem;;
}

.comment-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1rem;
}

.comment-list .comment {
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  padding: 1rem 1.25rem;
  background: #f9fafb;
}

.comment-list .comment .comment-body {
  margin: 0;
}

.comment-list .comment .comment-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1rem;
  align-items: center;
  margin-bottom: 0.75rem;
  font-size: 0.85rem;
  color: #6b7280;
}

.comment-list .comment .comment-author {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-weight: 600;
  color: #111827;
}

.comment-list .comment .comment-author img {
  border-radius: 50%;
}

.comment-list .comment .comment-content {
  line-height: 1.6;
  color: #111827;
}

.comment-list .comment .reply a {
  display: inline-block;
  margin-top: 0.75rem;
  font-size: 0.85rem;
  text-decoration: none;
  border: 1px solid #111827;
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  color: #111827;
}

.comment-respond {
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid #e5e7eb;
}

.comment-form {
  display: grid;
  gap: 1rem;
}

.comment-field {
  display: grid;
  gap: 0.35rem;
}

.comment-field-full {
  grid-column: 1 / -1;
}

.comment-field label {
  font-size: 0.9rem;
  font-weight: 600;
}

.comment-form input,
.comment-form textarea {
  width: 100%;
  border: 1px solid #d1d5db;
  border-radius: 10px;
  padding: 0.75rem 0.9rem;
  font-size: 0.95rem;
  font-family: inherit;
  background: #ffffff;
}

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

.comment-submit {
  justify-self: start;
  border: none;
  background: #0da4f0;
  color: #0A87C5;
  padding: 0.6rem 1.2rem;
  border-radius: 999px;
  font-size: 0.9rem;
  cursor: pointer;
}

.comment-submit:hover {
  background: #0b93d9;
  color: #ffffff;
}

.comment-form-cookies-consent {
  display: flex;
  gap: 0.5rem;
  align-items: flex-start;
  font-size: 0.85rem;
  color: #6b7280;
}

.comment-navigation .nav-links {
  display: flex;
  justify-content: space-between;
  margin-top: 1.5rem;
}

.comment-navigation a {
  text-decoration: none;
  color: #111827;
  font-size: 0.9rem;
}

.comment-awaiting-moderation {
  display: block;
  margin-top: 0.5rem;
  color: #6b7280;
  font-size: 0.85rem;
}

@media (max-width: 768px) {
  .content-container {
    padding: 2rem 1rem 2.5rem;
  }

  .single-article {
    padding: 1.5rem;
  }

  .single-title {
    font-size: 1.6rem;
  }

  .comments-inner {
    padding: 1.5rem;
  }

  .comment-list .comment {
    padding: 1rem;
  }
}

/* Footer */
.site-footer {
  border-top: none;
  margin-top: 4rem;
  background: linear-gradient(180deg,
      #0DA4F0 0%,
      #0A87C5 43%,
      #7BA8BE 100%);
  color: #ffffff;
  margin-bottom: 0;
}

.footer-menu {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-menu a {
  text-decoration: none;
  color: #4b5563;
}

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

.footer-menu-list li+li {
  margin-top: 0.35rem;
}

.footer-menu-list a {
  color: #ffffff;
  text-decoration: none;
  font-size: 0.9rem;
}

.footer-menu-list a:hover {
  text-decoration: underline;
}

/* khusus connect, supaya link icon bisa sejajar */
.footer-menu-connect li {
  margin: 0;
  /* hilangkan jarak vertical default */
}

/* ===== FOOTER WAVE + GRADIENT ===== */

.wave-footer {
  position: relative;
  margin-top: 0;
  color: #ffffff;
  font-size: 0.9rem;
}

/* SVG gelombang di bagian atas */
.footer-wave {
  position: absolute;
  top: -80px;
  /* geser ke atas kalau perlu */
  left: 0;
  width: 100%;
  height: 80px;
  overflow: hidden;
}

.footer-wave svg {
  width: 100%;
  height: 100%;
  display: block;
  rotate: 180deg;
}

/* background gradient biru */
.footer-inner {
  position: relative;
  background: transparent;
  padding: 2.5rem 2rem 2.75rem;
  /* 120px supaya konten turun sedikit di bawah wave */
  max-width: 1120px;
  margin: 0 auto;
}

/* kolom-kolom isi footer */
.footer-columns {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1.5rem 2rem;
  margin-bottom: 2rem;
}

.footer-col h4 {
  margin: 0 0 0.75rem;
  font-size: 1rem;
  font-weight: 600;
}

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

.footer-col ul li+li {
  margin-top: 0.35rem;
}

.footer-col a {
  color: #ffffff;
  text-decoration: none;
}

.footer-col a:hover {
  text-decoration: underline;
}

/* kolom connect */
.footer-col-connect {
  text-align: left;
}

.footer-social {
  display: flex;
  gap: 0.75rem;
  margin: 0.5rem 0 1rem;
}

.footer-social a {
  text-decoration: none;
  color: #ffffff;
  font-size: 0.95rem;
}

/* tombol subscribe */
.footer-subscribe {
  display: inline-block;
  margin-top: 0.5rem;
  padding: 0.55rem 2.5rem;
  border-radius: 6px;
  border: none;
  background: #2563eb;
  /* biru tombol */
  color: #ffffff;
  text-decoration: none;
  font-size: 0.9rem;
  text-align: center;
}

.footer-subscribe:hover {
  opacity: 0.9;
}

/* garis tipis di atas copyright */
.footer-line {
  border: none;
  border-top: 1px solid rgba(255, 255, 255, 0.5);
  margin: 1rem 0 1.5rem;
}

/* copyright text */
.footer-bottom {
  font-size: 0.8rem;
}

/* Responsive */
@media (max-width: 768px) {
  .hero,
  .section {
    grid-template-columns: 1fr;
  }
  
  .nav-inner {
    flex-wrap: wrap;
    gap: 0.75rem;
  }

  .footer-inner {
    padding-top: 3rem;
  }
  
  .footer-columns {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }
}

/* Elementor */
/* Khusus halaman dengan template Elementor Full Width */
body.page-template-page-elementor-fullwidth .site-main {
  max-width: none;
  width: 100%;
  margin: 0;
  padding: 0;
}

.elementor-fullwidth {
  margin: 0;
  padding: 0;
}
