/* Theme: Surau Alhanafi Green Modern */
:root {
    --primary: #047857;
    /* Emerald 700 */
    --primary-dark: #064e3b;
    /* Emerald 900 */
    --secondary: #fbbf24;
    /* Amber 400 - for highlights */
    --text-main: #333333;
    --text-muted: #64748b;
    --bg-light: #f3f4f6;
    --white: #ffffff;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    margin: 0;
    padding: 0;
    background-color: var(--bg-light);
    color: var(--text-main);
    line-height: 1.6;
}

/* --- Header Section --- */

/* Top Bar */
.top-bar {
    background-color: var(--primary);
    color: var(--white);
    padding: 5px 0;
    font-size: 0.85rem;
}

.top-bar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.social-links a {
    color: var(--white);
    margin-left: 10px;
    text-decoration: none;
    transition: color 0.3s;
}

.social-links a:hover {
    color: var(--secondary);
}

/* Logo Area */
.logo-area {
    background-color: var(--white);
    padding: 20px 0;
    border-bottom: 1px solid #e5e7eb;
}

.logo-area .container {
    display: flex;
    align-items: center;
    gap: 20px;
}

.site-logo img {
    height: 70px;
}

.site-identity h1 {
    margin: 0;
    font-size: 2rem;
    color: var(--primary);
    text-transform: uppercase;
    font-weight: 800;
    line-height: 1;
}

.site-identity p {
    margin: 0;
    color: var(--text-muted);
    font-size: 0.95rem;
    letter-spacing: 1px;
}

/* Navigation */
.main-nav {
    background-color: var(--primary-dark);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.main-nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
}

.main-nav li {
    position: relative;
}

.main-nav a {
    display: block;
    color: var(--white);
    text-decoration: none;
    padding: 15px 20px;
    font-weight: 600;
    font-size: 0.95rem;
    text-transform: uppercase;
    transition: background 0.3s;
}

.main-nav a:hover,
.main-nav a.active {
    background-color: var(--primary);
    color: var(--secondary);
}

/* --- Hero Section --- */
.hero-section {
    background: linear-gradient(rgba(4, 120, 87, 0.8), rgba(6, 78, 59, 0.9)), url('../../assets/images/mosque_bg.jpg');
    background-size: cover;
    background-position: center;
    color: var(--white);
    padding: 80px 0;
    text-align: center;
    margin-bottom: 40px;
}

.hero-content h2 {
    font-size: 3rem;
    margin-bottom: 1rem;
    font-weight: 700;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.hero-content p {
    font-size: 1.25rem;
    max-width: 700px;
    margin: 0 auto 2rem;
    opacity: 0.9;
}

/* --- Main Content Layout --- */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.section-title {
    text-align: center;
    margin-bottom: 40px;
    position: relative;
}

.section-title h3 {
    font-size: 2rem;
    color: var(--primary-dark);
    margin-bottom: 10px;
    display: inline-block;
    padding-bottom: 15px;
    position: relative;
}

.section-title h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background-color: var(--secondary);
}

/* Grid Layout */
.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
    margin-bottom: 60px;
}

.news-card {
    background: var(--white);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s, box-shadow 0.3s;
    border: 1px solid #eee;
}

.news-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 15px rgba(0, 0, 0, 0.1);
}

.news-thumb {
    height: 220px;
    overflow: hidden;
    background: #e2e8f0;
}

.news-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

.news-card:hover .news-thumb img {
    transform: scale(1.05);
}

.news-content {
    padding: 25px;
}

.news-meta {
    font-size: 0.85rem;
    color: var(--primary);
    margin-bottom: 10px;
    font-weight: 600;
    text-transform: uppercase;
    display: flex;
    gap: 10px;
}

.news-title {
    margin: 0 0 15px;
    font-size: 1.25rem;
    line-height: 1.4;
}

.news-title a {
    color: var(--text-main);
    text-decoration: none;
    transition: color 0.2s;
}

.news-title a:hover {
    color: var(--primary);
}

.news-excerpt {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 20px;
}

.btn-read {
    display: inline-block;
    color: var(--primary);
    font-weight: 600;
    text-decoration: none;
    font-size: 0.9rem;
    border-bottom: 2px solid transparent;
    transition: border 0.3s;
}

.btn-read:hover {
    border-bottom-color: var(--secondary);
}

/* --- Announcement Section (Pengumuman) --- */
.announcement-section {
    background-color: var(--primary-dark);
    color: var(--white);
    padding: 60px 0;
    margin-bottom: 60px;
    position: relative;
    overflow: hidden;
}

.announcement-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.announcement-item {
    background: rgba(255, 255, 255, 0.1);
    padding: 25px;
    border-radius: 8px;
    border-left: 4px solid var(--secondary);
}

.announcement-date {
    display: block;
    font-size: 0.85rem;
    opacity: 0.8;
    margin-bottom: 5px;
}

.announcement-item h4 {
    margin: 0 0 10px;
    font-size: 1.2rem;
    color: var(--secondary);
}

.announcement-item p {
    font-size: 0.95rem;
    opacity: 0.9;
    margin: 0;
}


/* --- Footer --- */
.site-footer {
    background-color: #111827;
    color: #e5e7eb;
    padding: 60px 0 20px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-widget h4 {
    color: var(--white);
    font-size: 1.2rem;
    margin-bottom: 20px;
    border-left: 3px solid var(--secondary);
    padding-left: 10px;
}

.footer-contact p {
    display: flex;
    gap: 10px;
    margin-bottom: 10px;
    font-size: 0.95rem;
}

.footer-menu ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-menu li {
    margin-bottom: 10px;
}

.footer-menu a {
    color: #9ca3af;
    text-decoration: none;
    transition: color 0.3s;
}

.footer-menu a:hover {
    color: var(--secondary);
    padding-left: 5px;
}

.footer-bottom {
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 20px;
    font-size: 0.9rem;
    color: #6b7280;
}

/* Desktop Styles (Default) */
.menu-toggle {
    display: none;
}

@media (min-width: 769px) {
    .menu-toggle {
        display: none !important;
    }
}

/* Responsive */
@media (max-width: 768px) {
    .top-bar {
        display: none;
    }

    .logo-area {
        text-align: center;
    }

    .logo-area .container {
        flex-direction: column;
        gap: 10px;
    }

    .main-nav ul {
        flex-direction: column;
        align-items: center;
    }

    .main-nav a {
        padding: 10px;
        width: 100%;
        text-align: center;
    }

    .hero-content h2 {
        font-size: 2rem;
    }

    /* Mobile Menu Styles */
    .menu-toggle {
        display: block !important;
        background: none;
        border: 1px solid rgba(255, 255, 255, 0.3);
        color: white;
        padding: 10px 15px;
        font-size: 1rem;
        cursor: pointer;
        margin: 10px auto;
        border-radius: 4px;
        width: 100%;
        max-width: 200px;
    }

    .menu-toggle:hover {
        background: rgba(255, 255, 255, 0.1);
    }

    .main-nav ul {
        display: none;
        /* Hidden by default on mobile */
        flex-direction: column;
        align-items: center;
        width: 100%;
        background: var(--primary-dark);
        border-top: 1px solid rgba(255, 255, 255, 0.1);
    }

    .main-nav ul.show {
        display: flex;
        /* Show when toggled */
    }

    .main-nav a {
        padding: 15px;
        width: 100%;
        text-align: center;
        border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    }
}