/*
Theme Name: LAZISNU Rancaekek
Theme URI: https://nu-rancaekek.or.id
Author: LAZISNU Rancaekek
Author URI: https://nu-rancaekek.or.id
Description: Production-ready WordPress theme for LAZISNU - NUCare Rancaekek with NU branding, responsive design, and SEO optimization
Version: 1.0.0
Requires at least: 5.0
Tested up to: 6.4
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: lazisnu-rancaekek
Tags: responsive, custom-menu, featured-images, footer-widgets, custom-colors, accessibility-ready
*/

/* ========================================
   CSS RESET & BASE STYLES
======================================== */

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

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: #2E2E2E;
    background-color: #FFFFFF;
    overflow-x: hidden;
}

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

a {
    color: #0B6623;
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: #4CAF50;
}

/* ========================================
   TYPOGRAPHY
======================================== */

h1, h2, h3, h4, h5, h6 {
    color: #0B6623;
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 1rem;
}

h1 {
    font-size: 2rem;
}

h2 {
    font-size: 1.75rem;
}

h3 {
    font-size: 1.5rem;
}

h4 {
    font-size: 1.25rem;
}

p {
    margin-bottom: 1rem;
}

/* ========================================
   BUTTONS
======================================== */

.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    background-color: #4CAF50;
    color: #FFFFFF;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 600;
    text-align: center;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.btn:hover {
    background-color: #0B6623;
    color: #FFFFFF;
    transform: translateY(-2px);
}

.btn-primary {
    background-color: #0B6623;
}

.btn-primary:hover {
    background-color: #4CAF50;
}

/* ========================================
   HEADER STYLES
======================================== */

.site-header {
    background-color: #FFFFFF;
    border-bottom: 3px solid #0B6623;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.header-top {
    background-color: #0B6623;
    padding: 1rem 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.site-branding {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex: 1;
}

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

.site-title {
    color: #FFFFFF;
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0;
}

.header-banner {
    max-width: 300px;
}

.header-banner img {
    border-radius: 4px;
}

/* Navigation Menu */
.main-navigation {
    background-color: #FFFFFF;
    padding: 0 5%;
}

.nav-menu {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 0;
}

.nav-menu li {
    position: relative;
}

.nav-menu a {
    display: block;
    padding: 1rem 1.5rem;
    color: #2E2E2E;
    font-weight: 600;
    border-bottom: 3px solid transparent;
    transition: all 0.3s ease;
}

.nav-menu a:hover,
.nav-menu .current-menu-item a {
    color: #0B6623;
    border-bottom-color: #4CAF50;
    background-color: #f5f5f5;
}

/* Mobile Menu Toggle */
.menu-toggle {
    display: none;
    background-color: #4CAF50;
    color: #FFFFFF;
    border: none;
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
    cursor: pointer;
    margin: 1rem 5%;
}

/* Icon Links Row */
.icon-links-row {
    background-color: #f9f9f9;
    padding: 1rem 5%;
    border-bottom: 1px solid #e0e0e0;
}

.icon-links-container {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    justify-content: center;
    align-items: center;
}

.icon-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background-color: #FFFFFF;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.icon-link:hover {
    background-color: #4CAF50;
    border-color: #4CAF50;
    color: #FFFFFF;
    transform: translateY(-2px);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.icon-link img {
    width: 24px;
    height: 24px;
}

.icon-link span {
    font-size: 0.9rem;
    font-weight: 500;
}

/* ========================================
   MAIN CONTENT LAYOUT
======================================== */

.site-content {
    padding: 2rem 5%;
    display: flex;
    gap: 5%;
    max-width: 1400px;
    margin: 0 auto;
}

.content-area {
    flex: 0 0 60%;
}

.sidebar {
    flex: 0 0 30%;
}

/* ========================================
   SIDEBAR STYLES
======================================== */

.sidebar-widget {
    background-color: #f9f9f9;
    padding: 1.5rem;
    margin-bottom: 2rem;
    border-radius: 4px;
    border: 1px solid #e0e0e0;
}

.sidebar-widget h3 {
    color: #0B6623;
    font-size: 1.25rem;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #4CAF50;
}

.sidebar-menu {
    list-style: none;
}

.sidebar-menu li {
    margin-bottom: 0.5rem;
}

.sidebar-menu a {
    display: block;
    padding: 0.5rem;
    color: #2E2E2E;
    transition: all 0.3s ease;
}

.sidebar-menu a:hover {
    background-color: #4CAF50;
    color: #FFFFFF;
    padding-left: 1rem;
}

.sidebar-banner img,
.sidebar-video iframe {
    width: 100%;
    border-radius: 4px;
}

/* ========================================
   HERO SECTION
======================================== */

.hero-section {
    background: linear-gradient(135deg, #0B6623 0%, #4CAF50 100%);
    color: #FFFFFF;
    padding: 3rem 2rem;
    text-align: center;
    border-radius: 8px;
    margin-bottom: 3rem;
}

.hero-section h1 {
    color: #FFFFFF;
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.hero-section p {
    font-size: 1.1rem;
    max-width: 800px;
    margin: 0 auto;
}

/* ========================================
   PROGRAM SECTION
======================================== */

.program-section {
    display: flex;
    gap: 2rem;
    margin-bottom: 3rem;
    padding: 2rem;
    background-color: #f9f9f9;
    border-radius: 8px;
    border-left: 5px solid #0B6623;
}

.program-content {
    flex: 1;
}

.program-content h2 {
    color: #0B6623;
    margin-bottom: 1rem;
}

.program-content p {
    margin-bottom: 1rem;
}

.program-link {
    color: #4CAF50;
    font-weight: 600;
    text-decoration: underline;
}

.program-image {
    flex: 0 0 40%;
}

.program-image img {
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

/* ========================================
   EXCERPT CARDS
======================================== */

.excerpt-section {
    margin-bottom: 3rem;
}

.excerpt-section h2 {
    color: #0B6623;
    margin-bottom: 2rem;
    text-align: center;
}

.excerpt-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 2rem;
}

.excerpt-card {
    background-color: #FFFFFF;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.excerpt-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.15);
}

.excerpt-card-image {
    width: 100%;
    height: 200px;
    overflow: hidden;
}

.excerpt-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.excerpt-card:hover .excerpt-card-image img {
    transform: scale(1.1);
}

.excerpt-card-content {
    padding: 1.5rem;
}

.excerpt-card-content h3 {
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
}

.excerpt-card-content p {
    color: #666;
    font-size: 0.95rem;
    margin-bottom: 1rem;
}

.read-more {
    color: #4CAF50;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.read-more:after {
    content: '→';
}

/* ========================================
   CONTACT FORM
======================================== */

.contact-section {
    max-width: 800px;
    margin: 0 auto;
}

.contact-info {
    background-color: #f9f9f9;
    padding: 2rem;
    border-radius: 8px;
    margin-bottom: 2rem;
    border-left: 5px solid #0B6623;
}

.contact-form {
    background-color: #FFFFFF;
    padding: 2rem;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: #0B6623;
    font-weight: 600;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    font-size: 1rem;
    font-family: inherit;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #4CAF50;
}

.form-group textarea {
    min-height: 150px;
    resize: vertical;
}

/* ========================================
   FOOTER STYLES
======================================== */

.site-footer {
    background-color: #0B6623;
    color: #FFFFFF;
    padding: 3rem 5%;
    margin-top: 3rem;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    gap: 3rem;
    max-width: 1400px;
    margin: 0 auto;
}

.footer-links {
    flex: 1;
}

.footer-links h3 {
    color: #FFFFFF;
    margin-bottom: 1.5rem;
}

.footer-menu {
    list-style: none;
}

.footer-menu li {
    margin-bottom: 1rem;
}

.footer-menu a {
    color: #FFFFFF;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    transition: all 0.3s ease;
    padding: 0.5rem;
    border-radius: 4px;
}

.footer-menu a:hover {
    background-color: #4CAF50;
    padding-left: 1rem;
}

.footer-menu img {
    width: 24px;
    height: 24px;
}

.footer-logo {
    flex: 0 0 300px;
    text-align: center;
}

.footer-logo img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
}

.footer-bottom {
    text-align: center;
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.footer-bottom p {
    color: #FFFFFF;
    font-size: 0.9rem;
}

/* ========================================
   RESPONSIVE DESIGN - MOBILE FIRST
======================================== */

/* Tablets and below (768px) */
@media screen and (max-width: 768px) {
    .header-top {
        flex-direction: column;
        text-align: center;
    }

    .site-branding {
        flex-direction: column;
        text-align: center;
    }

    .site-title {
        font-size: 1.25rem;
    }

    .menu-toggle {
        display: block;
    }

    .main-navigation {
        padding: 0;
    }

    .nav-menu {
        display: none;
        flex-direction: column;
    }

    .nav-menu.active {
        display: flex;
    }

    .nav-menu li {
        width: 100%;
    }

    .nav-menu a {
        padding: 1rem;
        border-bottom: 1px solid #e0e0e0;
    }

    .icon-links-container {
        flex-direction: column;
        gap: 1rem;
    }

    .icon-link {
        width: 100%;
        justify-content: center;
    }

    .site-content {
        flex-direction: column;
        padding: 1.5rem 3%;
    }

    .content-area,
    .sidebar {
        flex: 0 0 100%;
    }

    .hero-section h1 {
        font-size: 1.75rem;
    }

    .program-section {
        flex-direction: column;
    }

    .program-image {
        flex: 0 0 100%;
    }

    .excerpt-grid {
        grid-template-columns: 1fr;
    }

    .footer-content {
        flex-direction: column;
    }

    .footer-logo {
        flex: 0 0 100%;
    }
}

/* Mobile devices (480px) */
@media screen and (max-width: 480px) {
    html {
        font-size: 14px;
    }

    .site-content {
        padding: 1rem 2%;
    }

    .hero-section {
        padding: 2rem 1rem;
    }

    .program-section {
        padding: 1.5rem;
    }

    .excerpt-card-content {
        padding: 1rem;
    }

    .contact-form {
        padding: 1.5rem;
    }

    .site-footer {
        padding: 2rem 3%;
    }
}

/* ========================================
   UTILITY CLASSES
======================================== */

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

.mt-1 { margin-top: 1rem; }
.mt-2 { margin-top: 2rem; }
.mt-3 { margin-top: 3rem; }

.mb-1 { margin-bottom: 1rem; }
.mb-2 { margin-bottom: 2rem; }
.mb-3 { margin-bottom: 3rem; }

.hidden {
    display: none;
}

/* ========================================
   ACCESSIBILITY
======================================== */

.screen-reader-text {
    clip: rect(1px, 1px, 1px, 1px);
    position: absolute !important;
    height: 1px;
    width: 1px;
    overflow: hidden;
}

.screen-reader-text:focus {
    background-color: #f1f1f1;
    border-radius: 3px;
    box-shadow: 0 0 2px 2px rgba(0, 0, 0, 0.6);
    clip: auto !important;
    color: #21759b;
    display: block;
    font-size: 14px;
    font-weight: bold;
    height: auto;
    left: 5px;
    line-height: normal;
    padding: 15px 23px 14px;
    text-decoration: none;
    top: 5px;
    width: auto;
    z-index: 100000;
}

/* Skip to content link */
.skip-link {
    position: absolute;
    top: -40px;
    left: 0;
    background: #0B6623;
    color: white;
    padding: 8px;
    text-decoration: none;
    z-index: 100000;
}

.skip-link:focus {
    top: 0;
}
