/*
Theme Name: LDII Bintan Template
Theme URI: https://ldiibintan.or.id
Author: Muhammad Maftuh Al Faqih
Author URI: https://ldiibintan.or.id
Description: Tema custom responsif untuk LDII Bintan.
Version: 1.0
Text Domain: ldii-template
*/

/* ====== RESET SEDERHANA ====== */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
  color: #222;
  background-color: #f7f7f7;
}

a {
  color: inherit;
}

/* ====== UTILITAS DASAR ====== */
.container {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 16px;
}

.section {
  padding: 60px 0;
}

.section-alt {
  background-color: #ffffff;
}

.section-title {
  font-size: 1.8rem;
  margin-bottom: 24px;
  text-align: center;
}

.section-text {
  max-width: 700px;
  margin: 0 auto 32px;
  text-align: center;
  color: #444;
}

.btn-primary {
  display: inline-block;
  padding: 10px 20px;
  background-color: #0f766e;
  color: #fff;
  text-decoration: none;
  border-radius: 4px;
  font-weight: 600;
}

.btn-primary:hover {
  opacity: 0.9;
}

/* ====== HEADER / NAVBAR ====== */
.site-header {
  background-color: #ffffff;
  border-bottom: 1px solid #e5e5e5;
  position: sticky;
  top: 0;
  z-index: 50;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 0;
}

.logo a {
  font-weight: 700;
  font-size: 1.2rem;
  text-decoration: none;
  color: #0f766e;
}

/* NAV */
.main-nav {
  display: flex;
  gap: 16px;
}

.main-nav ul {
  list-style: none;
  display: flex;
  gap: 16px;
}

.main-nav a {
  text-decoration: none;
  color: #333;
  font-size: 0.95rem;
}

.main-nav a:hover {
  color: #0f766e;
}

/* Tombol toggle nav (mobile) */
.nav-toggle {
  display: none;
  font-size: 1.5rem;
  background: none;
  border: none;
  cursor: pointer;
}

/* ====== HERO ====== */
.hero {
  padding: 60px 0;
  background: linear-gradient(135deg, #0f766e 0%, #22c55e 100%);
  color: #fff;
  margin-bottom: 40px;
}

.hero-inner {
  display: flex;
  flex-direction: column;
  gap: 24px;
  align-items: center;
}

.hero-text {
  text-align: center;
}

.hero-text h1 {
  font-size: 2rem;
  margin-bottom: 12px;
}

.hero-text p {
  margin-bottom: 16px;
  max-width: 600px;
}

.hero-image img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
}

/* ====== GRID LAYOUT ====== */
.grid-3 {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}

.grid-2 {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}

/* Card */
.card {
  background-color: #ffffff;
  border-radius: 8px;
  padding: 20px;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.05);
}

.card h1,
.card h2,
.card h3 {
  margin-bottom: 8px;
}

.card-meta {
  font-size: 0.85rem;
  color: #6b7280;
  margin-bottom: 8px;
}

.card-link {
  display: inline-block;
  margin-top: 8px;
  font-size: 0.9rem;
  color: #0f766e;
  text-decoration: none;
}

.card-link:hover {
  text-decoration: underline;
}

/* ====== KONTEN UTAMA ====== */
.site-main {
  padding: 40px 0 60px;
}

.content-area {
  min-height: 60vh;
}

.entry-title {
  font-size: 1.8rem;
  margin-bottom: 12px;
}

.entry-content {
  margin-top: 16px;
}

.entry-content p + p {
  margin-top: 10px;
}

/* FOOTER */
.site-footer {
  padding: 16px 0;
  background-color: #0f172a;
  color: #e5e7eb;
}

.footer-inner {
  text-align: center;
  font-size: 0.9rem;
}

/* ====== RESPONSIVE BREAKPOINTS ====== */

@media (min-width: 640px) {
  .hero-text h1 {
    font-size: 2.4rem;
  }
}

@media (min-width: 768px) {
  .hero-inner {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }

  .hero-text {
    flex: 1;
    text-align: left;
  }

  .hero-image {
    flex: 1;
  }

  .grid-3 {
    grid-template-columns: repeat(3, 1fr);
  }

  .grid-2 {
    grid-template-columns: 1.1fr 1fr;
  }
}

/* MOBILE NAV */
@media (max-width: 767px) {
  .main-nav {
    position: absolute;
    top: 56px;
    right: 16px;
    background-color: #ffffff;
    padding: 10px 14px;
    border-radius: 8px;
    box-shadow: 0 6px 16px rgba(15, 23, 42, 0.15);
    display: none;
  }

  .main-nav ul {
    flex-direction: column;
    align-items: flex-start;
  }

  .main-nav.nav-open {
    display: block;
  }

  .nav-toggle {
    display: block;
  }
}
