/*
Theme Name: Yayasan Theme (Premium Redesign)
Theme URI: #
Author: AI Assistant
Description: Custom premium theme untuk Yayasan Dhamma Metta Nusantara.
Version: 2.0
License: GNU General Public License v2 or later
Text Domain: yayasan-theme
*/

:root {
    --primary-color: #059669; /* Elegant Emerald Green */
    --secondary-color: #047857;
    --accent-color: #f59e0b; /* Warm Gold */
    --text-main: #1e293b;
    --text-light: #475569;
    --bg-light: #f8fafc;
    --bg-alt: #f1f5f9;
    --white: #ffffff;
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-body);
    color: var(--text-main);
    line-height: 1.7;
    background: var(--bg-light);
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    color: var(--text-main);
    line-height: 1.2;
}

img {
    max-width: 100%;
    height: auto;
}

/* Header & Nav */
header.site-header {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 6px -1px rgba(0,0,0,0.05);
    position: sticky;
    top: 0;
    z-index: 100;
    padding: 15px 0;
}

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

.site-title a {
    text-decoration: none;
    color: var(--text-main);
    font-weight: 700;
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    font-family: var(--font-heading);
}

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

.main-navigation a {
    text-decoration: none;
    color: var(--text-light);
    font-weight: 600;
    font-size: 1.05rem;
    transition: all 0.3s ease;
    position: relative;
}

.main-navigation a:hover {
    color: var(--primary-color);
}

.main-navigation a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 0;
    background-color: var(--primary-color);
    transition: width 0.3s ease;
}

.main-navigation a:hover::after {
    width: 100%;
}

/* Button */
.btn {
    display: inline-block;
    background: var(--primary-color);
    color: var(--white);
    padding: 14px 35px;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    font-family: var(--font-heading);
    transition: all 0.3s ease;
    border: 2px solid var(--primary-color);
    text-align: center;
}

.btn:hover {
    background: var(--secondary-color);
    border-color: var(--secondary-color);
    transform: translateY(-2px);
    box-shadow: 0 10px 15px -3px rgba(5, 150, 105, 0.3);
}

.btn-outline {
    background: transparent;
    color: var(--primary-color);
}

.btn-outline:hover {
    background: var(--primary-color);
    color: var(--white);
}

.btn-accent {
    background: var(--accent-color);
    border-color: var(--accent-color);
}

.btn-accent:hover {
    background: #d97706;
    border-color: #d97706;
    box-shadow: 0 10px 15px -3px rgba(245, 158, 11, 0.3);
}

/* Layout */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 80px 20px;
}

.section-title {
    text-align: center;
    font-size: 2.8rem;
    margin-bottom: 20px;
    position: relative;
}

.section-subtitle {
    text-align: center;
    color: var(--text-light);
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto 50px;
}

/* Hero Section */
.hero {
    position: relative;
    background: linear-gradient(rgba(5, 150, 105, 0.8), rgba(15, 23, 42, 0.9)), url('https://images.unsplash.com/photo-1488521787991-ed7bbaae773c?auto=format&fit=crop&q=80') center/cover;
    background-attachment: fixed;
    color: var(--white);
    padding: 180px 20px 120px;
    text-align: center;
}

.hero h1 {
    font-size: 4.5rem;
    margin-bottom: 25px;
    color: var(--white);
    line-height: 1.1;
    text-shadow: 0 4px 6px rgba(0,0,0,0.3);
}

.hero p {
    font-size: 1.3rem;
    max-width: 700px;
    margin: 0 auto 40px;
    opacity: 0.95;
    font-weight: 300;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
}

/* About Section (Split Layout) */
.about-section {
    background: var(--white);
}

.split-layout {
    display: flex;
    align-items: center;
    gap: 60px;
}

.split-content {
    flex: 1;
}

.split-image {
    flex: 1;
    position: relative;
}

.split-image img {
    border-radius: 20px;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

.split-image::before {
    content: '';
    position: absolute;
    top: -20px;
    left: -20px;
    width: 100%;
    height: 100%;
    border: 3px solid var(--primary-color);
    border-radius: 20px;
    z-index: -1;
}

/* Visi Misi Cards */
.mission-section {
    background: var(--bg-alt);
}

.grid-features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
}

.feature-card {
    background: var(--white);
    padding: 40px 30px;
    border-radius: 15px;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.05);
    text-align: center;
    transition: transform 0.3s ease;
    border-bottom: 4px solid var(--primary-color);
}

.feature-card:hover {
    transform: translateY(-10px);
}

.feature-icon {
    width: 80px;
    height: 80px;
    background: var(--bg-alt);
    color: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    margin: 0 auto 20px;
}

.mission-list {
    text-align: left;
    list-style: none;
    margin-top: 20px;
}

.mission-list li {
    position: relative;
    padding-left: 35px;
    margin-bottom: 15px;
    font-size: 0.95rem;
    color: var(--text-light);
}

.mission-list li::before {
    content: '\f00c';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    left: 0;
    color: var(--primary-color);
    background: rgba(5, 150, 105, 0.1);
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
}

/* Team Section */
.team-section {
    background: var(--white);
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-top: 20px;
}

.team-card {
    text-align: center;
}

.team-avatar {
    width: 150px;
    height: 150px;
    background: var(--bg-alt);
    border-radius: 50%;
    margin: 0 auto 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    color: #cbd5e1;
    overflow: hidden;
    border: 4px solid var(--white);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

.team-card h4 {
    font-size: 1.4rem;
    margin-bottom: 5px;
}

.team-card p {
    color: var(--primary-color);
    font-weight: 600;
    font-family: var(--font-heading);
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 1px;
}

/* CTA Section */
.cta-section {
    background: var(--primary-color);
    color: var(--white);
    text-align: center;
    padding: 80px 20px;
}

.cta-section h2 {
    color: var(--white);
    font-size: 2.5rem;
    margin-bottom: 20px;
}

/* Footer */
footer.site-footer {
    background: #0f172a;
    color: #94a3b8;
    padding: 80px 20px 30px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto 60px;
}

.footer-brand h3 {
    color: var(--white);
    margin-bottom: 20px;
    font-size: 1.5rem;
}

.footer-brand p {
    max-width: 300px;
}

.footer-links h4 {
    color: var(--white);
    margin-bottom: 20px;
    font-size: 1.2rem;
}

.footer-links ul {
    list-style: none;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    color: #94a3b8;
    text-decoration: none;
    transition: color 0.3s;
}

.footer-links a:hover {
    color: var(--primary-color);
}

.footer-contact li {
    display: flex;
    gap: 15px;
    margin-bottom: 15px;
}

.footer-contact i {
    color: var(--primary-color);
    font-size: 1.2rem;
    margin-top: 5px;
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255,255,255,0.1);
    font-size: 0.9rem;
}

/* Inner Page Header */
.page-banner {
    background: linear-gradient(rgba(5, 150, 105, 0.8), rgba(15, 23, 42, 0.9)), url('https://images.unsplash.com/photo-1488521787991-ed7bbaae773c?auto=format&fit=crop&q=80') center/cover;
    padding: 120px 20px 80px;
    text-align: center;
    color: var(--white);
    margin-bottom: -60px; /* Overlap effect */
}
.page-banner h1 {
    font-size: 3.5rem;
    color: var(--white);
    margin-bottom: 15px;
    text-shadow: 0 4px 6px rgba(0,0,0,0.2);
}
.page-banner p {
    font-size: 1.1rem;
    opacity: 0.9;
    max-width: 600px;
    margin: 0 auto;
}

/* Blog / News Grid */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 40px;
}
.post-card {
    background: var(--white);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 15px -3px rgba(0,0,0,0.05);
    border: 1px solid var(--bg-alt);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}
.post-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 25px -5px rgba(0,0,0,0.1);
}
.post-thumb img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    transition: transform 0.5s ease;
}
.post-card:hover .post-thumb img {
    transform: scale(1.05);
}
.post-thumb {
    overflow: hidden;
}
.post-content {
    padding: 30px;
    flex: 1;
    display: flex;
    flex-direction: column;
}
.post-meta {
    font-size: 0.85rem;
    color: var(--text-light);
    margin-bottom: 15px;
    display: flex;
    gap: 15px;
}
.post-meta i {
    color: var(--primary-color);
}
.post-title {
    font-size: 1.4rem;
    margin-bottom: 15px;
    line-height: 1.4;
}
.post-title a {
    text-decoration: none;
    color: var(--text-main);
    transition: color 0.3s;
}
.post-title a:hover {
    color: var(--primary-color);
}
.post-excerpt {
    color: var(--text-light);
    margin-bottom: 25px;
    font-size: 0.95rem;
    flex: 1;
}
.read-more {
    color: var(--primary-color);
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: gap 0.3s ease;
}
.read-more:hover {
    gap: 12px;
}

/* Single Post & Page Container */
.single-post-container {
    max-width: 900px;
    margin: 0 auto 80px;
    padding: 0;
    background: var(--white);
    border-radius: 20px;
    position: relative;
    box-shadow: 0 20px 25px -5px rgba(0,0,0,0.05);
    z-index: 10;
}
.single-post-content {
    padding: 50px;
}
.single-post-content p {
    margin-bottom: 25px;
    font-size: 1.1rem;
    color: var(--text-light);
    line-height: 1.8;
}
.single-post-thumb {
    border-radius: 20px 20px 0 0;
    overflow: hidden;
}
.single-post-thumb img {
    width: 100%;
    height: auto;
    display: block;
    max-height: 500px;
    object-fit: cover;
}
.post-navigation {
    margin-top: 50px;
    padding-top: 30px;
    border-top: 1px solid var(--bg-alt);
}

/* Responsive */
@media (max-width: 992px) {
    .split-layout {
        flex-direction: column;
    }
    .hero h1 {
        font-size: 3.5rem;
    }
    .footer-grid {
        grid-template-columns: 1fr;
    }
}

/* Mobile Menu Overlay */
.mobile-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(45, 55, 72, 0.98); /* dark grey/blue matching image */
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.mobile-menu-overlay.active {
    opacity: 1;
    visibility: visible;
}

.mobile-menu-container {
    width: 100%;
    max-width: 400px;
    padding: 40px;
    position: relative;
    text-align: left;
}

.mobile-menu-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: transparent;
    border: 1px solid var(--white);
    color: var(--white);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    font-size: 1.2rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
}

.mobile-menu-close:hover {
    background: var(--white);
    color: var(--text-main);
}

.mobile-menu-content ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.mobile-menu-content li {
    margin-bottom: 25px;
}

.mobile-menu-content a {
    color: var(--white);
    text-decoration: none;
    font-size: 1.2rem;
    font-weight: 600;
    font-family: var(--font-heading);
    letter-spacing: 1px;
    text-transform: uppercase;
    transition: color 0.3s;
    display: block;
}

.mobile-menu-content a:hover {
    color: var(--primary-color);
}

.mobile-contact-btn {
    display: inline-block !important;
    background: var(--primary-color);
    padding: 12px 30px;
    border-radius: 50px;
    margin-top: 10px;
}

.mobile-contact-btn:hover {
    background: var(--secondary-color) !important;
    color: var(--white) !important;
}

/* Mobile Menu Toggle Button */
.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--text-main);
    cursor: pointer;
}

@media (max-width: 992px) {
    .header-container {
        flex-wrap: nowrap;
        justify-content: space-between;
    }
    .main-navigation, .header-action {
        display: none;
    }
    .mobile-menu-toggle {
        display: block;
    }
}

@media (max-width: 768px) {
    .header-container {
        flex-direction: column;
        gap: 15px;
    }
    .main-navigation ul {
        gap: 15px;
        flex-wrap: wrap;
        justify-content: center;
    }
    .header-action {
        display: none;
    }
    .hero h1 {
        font-size: 2.5rem;
    }
    .hero-buttons {
        flex-direction: column;
    }
    .single-post-content {
        padding: 30px 20px;
    }
    .page-banner {
        padding: 80px 20px 40px;
    }
    .page-banner h1 {
        font-size: 2.5rem;
    }
}
