/*
Theme Name: Palpung Indonesia
Theme URI: https://palpung.or.id
Author: PT Bahana Informatif Global
Version: 1.0
Description: Themes Design By PT Bahana Informatif Global For Majelis Palpung Indonesia.
License: GPL v2 or later
Text Domain: palpung
*/

/* ============================================
   VARIABEL WARNA
   ============================================ */
:root {
    --primary-color: #733f41;
    --secondary-color: #FBC02D;
    --accent-color: #8B4513;
    --text-dark: #1a1a1a;
    --text-light: #666666;
    --bg-light: #FFF8E1;
}

.bg-light-custom {
    background-color: var(--bg-light);
}

/* ============================================
   RESET & DASAR
   ============================================ */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: system-ui, -apple-system, sans-serif;
    color: var(--text-dark);
    background: #ffffff;
    line-height: 1.6;
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    color: var(--text-dark);
}

a {
    text-decoration: none;
}

img {
    max-width: 100%;
    height: auto;
}

/* ============================================
   HEADER & NAVIGASI
   ============================================ */
#header {
    z-index: 9999;
    background: #ffffff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    position: sticky;
    top: 0;
}

.nav-link {
    color: var(--text-dark);
    font-weight: 500;
    transition: color 0.2s ease;
    padding: 0.5rem 0;
}

.nav-link:hover {
    color: var(--primary-color);
}

.mobile-nav-link {
    color: var(--text-dark);
    font-weight: 500;
    transition: color 0.2s ease;
    padding: 0.75rem 1rem;
    border-radius: 0.375rem;
    display: block;
}

.mobile-nav-link:hover {
    color: var(--primary-color);
    background: #f9fafb;
}

#mobile-nav {
    background: #ffffff;
    border-radius: 0 0 8px 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* ============================================
   TOMBOL
   ============================================ */
.btn-primary {
    display: inline-block;
    padding: 0.75rem 1.75rem;
    background: var(--primary-color);
    color: #ffffff;
    border-radius: 0.375rem;
    text-align: center;
    font-weight: 500;
    transition: background 0.3s ease;
    border: none;
    cursor: pointer;
}

.btn-primary:hover {
    background: #5a2f31;
}

.btn-secondary {
    display: inline-block;
    padding: 0.75rem 1.75rem;
    background: var(--secondary-color);
    color: var(--text-dark);
    border-radius: 0.375rem;
    text-align: center;
    font-weight: 500;
    transition: background 0.3s ease;
    border: none;
    cursor: pointer;
}

.btn-secondary:hover {
    background: #e6a800;
}

/* Tombol di Hero - override */
#home .btn-primary.bg-white {
    background: #ffffff;
    color: var(--primary-color);
}

#home .btn-primary.bg-white:hover {
    background: #f3f4f6;
}

#home .btn-secondary.bg-transparent {
    background: transparent;
    border: 2px solid #ffffff;
    color: #ffffff;
}

#home .btn-secondary.bg-transparent:hover {
    background: #ffffff;
    color: var(--primary-color);
}

/* ============================================
   SECTION PADDING
   ============================================ */
.section-padding {
    padding: 4rem 1.5rem;
}

@media (min-width: 768px) {
    .section-padding {
        padding: 5rem 3rem;
    }
}

@media (min-width: 1024px) {
    .section-padding {
        padding: 6rem 5rem;
    }
}

/* ============================================
   HERO SECTION
   ============================================ */
#home {
    min-height: 90vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    position: relative;
    overflow: hidden;
}

@media (min-width: 768px) {
    #home {
        min-height: 100vh;
    }
}

#home .hero-content {
    position: relative;
    z-index: 10;
    text-align: center;
    color: #ffffff;
    padding: 2rem 1.5rem;
    max-width: 800px;
    margin: 0 auto;
}

#home h1 {
    color: #ffffff;
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

@media (min-width: 640px) {
    #home h1 {
        font-size: 3.5rem;
    }
}

@media (min-width: 768px) {
    #home h1 {
        font-size: 4.5rem;
    }
}

#home .hero-subtitle {
    font-size: 1.125rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 2rem;
}

@media (min-width: 768px) {
    #home .hero-subtitle {
        font-size: 1.5rem;
    }
}

#home .hero-buttons {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    justify-content: center;
    align-items: center;
}

@media (min-width: 640px) {
    #home .hero-buttons {
        flex-direction: row;
        gap: 1rem;
    }
}

#home .hero-buttons a {
    min-width: 150px;
    text-align: center;
}

/* Dekorasi atas hero */
.hero-decoration {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.25rem;
    overflow: hidden;
    opacity: 0.8;
    pointer-events: none;
}

.hero-decoration .strip {
    width: 2.5rem;
    height: 2rem;
    opacity: 0.7;
    transform: skewX(-12deg);
}

@media (min-width: 768px) {
    .hero-decoration .strip {
        width: 3rem;
        height: 2.5rem;
    }
}

/* ============================================
   BORDER TIBETAN
   ============================================ */
.tibetan-border {
    border-top: 4px solid transparent;
    border-image: repeating-linear-gradient(
        to right,
        #733f41 0px,
        #733f41 10px,
        #FBC02D 10px,
        #FBC02D 20px,
        #2E7D32 20px,
        #2E7D32 30px,
        #1976D2 30px,
        #1976D2 40px,
        #9C27B0 40px,
        #9C27B0 50px
    ) 1;
    border-image-slice: 1;
}

/* ============================================
   GRADIENT TEKS
   ============================================ */
.text-gradient {
    background: linear-gradient(to right, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

/* ============================================
   IKON LUCIDE
   ============================================ */
[class^="icon-"] {
    display: inline-block;
    font-family: 'Lucide', sans-serif;
    font-style: normal;
    font-weight: normal;
    font-variant: normal;
    text-transform: none;
    line-height: 1;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ============================================
   CARD EFFECTS
   ============================================ */
.card-hover {
    transition: all 0.3s ease;
}

.card-hover:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

/* ============================================
   UTILITY UNTUK LOGO
   ============================================ */
.custom-logo {
    width: 40px;
    height: 40px;
    object-fit: contain;
}

@media (min-width: 768px) {
    .custom-logo {
        width: 48px;
        height: 48px;
    }
}

/* ============================================
   RESPONSIVE GRID FIX
   ============================================ */
@media (max-width: 640px) {
    .grid-cols-1.md\:grid-cols-2.lg\:grid-cols-3.gap-8 {
        gap: 1.5rem;
    }
    
    .grid-cols-1.md\:grid-cols-2.gap-6 {
        gap: 1.25rem;
    }
}

/* ============================================
   FOOTER
   ============================================ */
footer {
    background: var(--text-dark);
    color: #ffffff;
}

footer a {
    color: #9ca3af;
    transition: color 0.2s ease;
}

footer a:hover {
    color: var(--secondary-color);
}

/* ============================================
   LAINNYA
   ============================================ */
.w-12.h-12.object-contain,
.w-10.h-10.object-contain {
    object-fit: contain;
}

.relative.border-2.border-\[var\(--secondary-color\)\].rounded-lg {
    transition: all 0.3s ease;
}

/* ============================================
   GRADIEN KHUSUS
   ============================================ */
.hero-gradient {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
}

.events-gradient {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
}

/* ============================================
   PERBAIKAN TOMBOL HERO
   ============================================ */
.hero-btn-learn {
    display: inline-block;
    padding: 0.75rem 2rem;
    background: #ffffff;
    color: var(--primary-color);
    border-radius: 0.375rem;
    font-weight: 600;
    font-size: 1.125rem;
    transition: background 0.3s ease;
    text-decoration: none;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.hero-btn-learn:hover {
    background: #f0f0f0;
}

.hero-btn-join {
    display: inline-block;
    padding: 0.75rem 2rem;
    background: transparent;
    color: #ffffff;
    border: 2px solid #ffffff;
    border-radius: 0.375rem;
    font-weight: 600;
    font-size: 1.125rem;
    transition: all 0.3s ease;
    text-decoration: none;
}

.hero-btn-join:hover {
    background: #ffffff;
    color: var(--primary-color);
}

/* ============================================
   LOGO DI HERO - DIPERBESAR
   ============================================ */
.hero-logo-wrapper {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: rgba(255,255,255,0.15);
    backdrop-filter: blur(4px);
    border: 4px solid rgba(255,255,255,0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    margin: 0 auto 24px;
}

@media (min-width: 768px) {
    .hero-logo-wrapper {
        width: 150px;
        height: 150px;
        padding: 24px;
        margin-bottom: 32px;
    }
}

.hero-logo-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/* ============================================
   LOGO DI FOOTER - BACKGROUND PUTIH
   ============================================ */
.footer-logo-wrapper {
    display: inline-block;
    background: #ffffff;
    padding: 8px;
    border-radius: 50%;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.footer-logo-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/* ============================================
   STYLE UNTUK PAGE & POST
   ============================================ */

/* Prose - styling untuk konten editor */
.prose {
    color: var(--text-dark);
    max-width: 100%;
}

.prose h2 {
    color: var(--primary-color);
    font-size: 2rem;
    font-weight: 700;
    margin-top: 2rem;
    margin-bottom: 1rem;
}

.prose h3 {
    color: var(--primary-color);
    font-size: 1.5rem;
    font-weight: 600;
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
}

.prose p {
    margin-bottom: 1.25rem;
    line-height: 1.8;
}

.prose a {
    color: var(--primary-color);
    text-decoration: underline;
    transition: color 0.2s ease;
}

.prose a:hover {
    color: var(--secondary-color);
}

.prose ul,
.prose ol {
    margin: 1rem 0 1.5rem 1.5rem;
}

.prose li {
    margin-bottom: 0.5rem;
    line-height: 1.7;
}

.prose blockquote {
    border-left: 4px solid var(--secondary-color);
    padding: 1rem 1.5rem;
    margin: 1.5rem 0;
    background: rgba(251, 192, 45, 0.08);
    border-radius: 0 8px 8px 0;
    font-style: italic;
}

.prose img {
    border-radius: 8px;
    margin: 1.5rem 0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.prose .wp-block-image {
    margin: 1.5rem 0;
}

.prose .wp-block-image figcaption {
    color: var(--text-light);
    font-size: 0.9rem;
    text-align: center;
    margin-top: 0.5rem;
}

.prose table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.5rem 0;
}

.prose table th {
    background: var(--primary-color);
    color: #fff;
    padding: 0.75rem 1rem;
    text-align: left;
}

.prose table td {
    padding: 0.75rem 1rem;
    border-bottom: 1px solid #e5e7eb;
}

.prose table tr:nth-child(even) {
    background: #f9fafb;
}

/* Navigasi artikel sebelumnya/sesudah */
.nav-previous a,
.nav-next a {
    color: var(--primary-color);
    font-weight: 500;
    transition: color 0.2s ease;
    text-decoration: none;
}

.nav-previous a:hover,
.nav-next a:hover {
    color: var(--secondary-color);
}

/* Pagination untuk archive */
.pagination .page-numbers {
    display: inline-block;
    padding: 0.5rem 1rem;
    margin: 0 0.25rem;
    border-radius: 0.375rem;
    color: var(--text-dark);
    transition: all 0.2s ease;
    border: 1px solid #e5e7eb;
}

.pagination .page-numbers.current {
    background: var(--primary-color);
    color: #fff;
    border-color: var(--primary-color);
}

.pagination .page-numbers:hover:not(.current) {
    background: #f3f4f6;
}

/* Tombol Back to Blog */
.hero-btn-join {
    display: inline-block;
    padding: 0.75rem 2rem;
    background: transparent;
    border: 2px solid var(--primary-color);
    border-radius: 0.375rem;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
    text-decoration: none;
    color: var(--primary-color);
}

.hero-btn-join:hover {
    background: var(--primary-color);
    color: #ffffff;
}

/* ============================================
   TOMBOL GET DIRECTIONS
   ============================================ */
.inline-flex {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.icon-navigation-2 {
    font-family: 'Lucide', sans-serif;
}