* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: Arial, sans-serif;
}

:root {
    --bar-blue: #1565c0;
}

html, body {
    height: 100%;
}

body {
    background: #f7f7f7;
    color: #222;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    min-height: 100dvh;
}

.site-main {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ===== HEADER ===== */
.site-header {
    background: #fff;
    color: #000;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 6px rgba(0,0,0,0.15);
}

.header-topbar {
    background: var(--bar-blue);
    padding: 12px 16px;
}

.topbar-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 16px;
    background: #fff;
    border-radius: 999px;
    padding: 8px 20px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.2);
}

.logo-area {
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

.logo {
    height: 56px;
    width: 56px;
    object-fit: cover;
    object-position: center;
    border-radius: 50%;
    flex-shrink: 0;
    background: #fff;
}

.topbar-text {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--bar-blue);
    text-transform: uppercase;
    font-weight: 700;
    overflow: hidden;
}

.topbar-line1 {
    font-size: clamp(1.15rem, 3vw, 1.7rem);
    line-height: 1.15;
    letter-spacing: 0.5px;
    white-space: nowrap;
}

.topbar-line2 {
    font-size: clamp(0.75rem, 1.9vw, 1.05rem);
    line-height: 1.2;
    letter-spacing: 0.5px;
    white-space: nowrap;
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px 20px;
    position: relative;
    background: #fff;
}

.main-nav ul {
    list-style: none;
    display: flex;
    gap: 24px;
}

.main-nav a {
    color: #000;
    text-decoration: none;
    font-size: 0.95rem;
    transition: color 0.2s;
}

.main-nav a:hover {
    color: #e02424;
}

.nav-login-item {
    display: none;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-shrink: 0;
}

.btn-login {
    background: var(--accent-color, #f2c14e);
    color: var(--theme-color, #1a2b4c);
    padding: 8px 18px;
    border-radius: 20px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    transition: opacity 0.2s;
    white-space: nowrap;
}

.btn-login:hover {
    opacity: 0.85;
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    color: #000;
    font-size: 1.5rem;
    cursor: pointer;
}

/* ===== SLIDESHOW ===== */
.slideshow-container {
    position: relative;
    width: 100%;
    flex: 1;
    min-height: 380px;
    overflow: hidden;
    background: #000;
}

.slide {
    display: none;
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

.slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.85;
}

.slide.active {
    display: block;
}

.fade {
    animation: fadeEffect 1.2s;
}

@keyframes fadeEffect {
    from { opacity: 0.3; }
    to { opacity: 1; }
}

.slide-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    color: #fff;
    text-shadow: 0 2px 8px rgba(0,0,0,0.7);
    width: 90%;
    max-width: 800px;
}

.slide-overlay h1 {
    font-size: 2.2rem;
    margin-bottom: 12px;
}

.slide-overlay p {
    font-size: 1.05rem;
    font-style: italic;
    line-height: 1.6;
}

.dots-container {
    position: absolute;
    bottom: 18px;
    width: 100%;
    text-align: center;
}

.dot {
    display: inline-block;
    height: 10px;
    width: 10px;
    margin: 0 4px;
    background-color: rgba(255,255,255,0.5);
    border-radius: 50%;
    cursor: pointer;
    transition: background-color 0.3s;
}

.active-dot, .dot:hover {
    background-color: var(--accent-color, #f2c14e);
}

/* ===== WELCOME SECTION ===== */
.welcome-section {
    padding: 40px 0;
    text-align: center;
    background: #fff;
}

.welcome-section h2 {
    color: var(--theme-color, #1a2b4c);
    margin-bottom: 10px;
}

.jadwal-inline-list {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 6px 22px;
    font-size: 1rem;
}

.jadwal-inline-list li {
    position: relative;
    padding-right: 22px;
}

.jadwal-inline-list li:not(:last-child)::after {
    content: "|";
    position: absolute;
    right: 0;
    color: #ccc;
}

/* ===== FOOTER ===== */
.site-footer {
    background: var(--bar-blue);
    color: #fff;
    text-align: center;
    padding: 18px 0;
    font-size: 0.85rem;
}

.site-footer p {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    .slideshow-container {
        min-height: 180px;
    }

    .site-footer {
        font-size: 0.72rem;
        padding: 14px 12px;
    }

    .main-nav {
        display: none;
        width: 100%;
    }

    .main-nav.open {
        display: block;
        position: absolute;
        top: 100%;
        left: auto;
        right: 0;
        width: 40%;
        min-width: 160px;
        z-index: 200;
        box-shadow: 0 4px 10px rgba(0,0,0,0.2);
    }

    .main-nav ul {
        flex-direction: column;
        gap: 0;
        background: color-mix(in srgb, var(--bar-blue) 88%, transparent);
    }

    .main-nav ul li {
        border-top: 1px solid rgba(255,255,255,0.1);
    }

    .main-nav ul li a {
        display: block;
        padding: 12px 20px;
        color: #fff;
        transition: background 0.2s, color 0.2s;
    }

    .main-nav ul li a:hover,
    .main-nav ul li a:active {
        background: #f2c14e;
        color: #000;
    }

    .header-topbar {
        padding: 10px 12px;
    }

    .topbar-inner {
        padding: 6px 14px;
        gap: 10px;
    }

    .logo {
        height: 44px;
        width: 44px;
    }

    .header-container {
        padding: 0 20px;
        min-height: 0;
    }

    .menu-toggle {
        display: block;
    }

    .btn-login {
        display: none;
    }

    .nav-login-item {
        display: block;
    }

    .nav-login-item a {
        font-weight: 700;
        color: var(--accent-color, #f2c14e) !important;
    }

    .slide-overlay h1 {
        font-size: 1.4rem;
    }

    .slide-overlay p {
        font-size: 0.9rem;
    }

    .jadwal-inline-list {
        flex-direction: column;
        gap: 8px;
    }

    .jadwal-inline-list li {
        padding-right: 0;
    }

    .jadwal-inline-list li::after {
        content: none;
    }
}

/* ===== HALAMAN DALAM (Tentang, Jadwal, Renungan, Galeri, Kontak) ===== */
.page-hero {
    background: var(--theme-color, #1a2b4c);
    color: #fff;
    padding: 50px 0;
    text-align: center;
}

.page-hero h1 {
    font-size: 1.8rem;
}

.page-content {
    padding: 40px 0 60px;
    background: #fff;
    flex: 1;
}

.prose {
    line-height: 1.7;
    color: #333;
    max-width: 800px;
}

/* Tabel Jadwal */
.jadwal-table {
    width: 100%;
    max-width: 700px;
    border-collapse: collapse;
}

.jadwal-table th, .jadwal-table td {
    text-align: left;
    padding: 12px 16px;
    border-bottom: 1px solid #eee;
}

.jadwal-table th {
    background: var(--theme-color, #1a2b4c);
    color: #fff;
    font-size: 0.9rem;
    text-transform: uppercase;
}

.jadwal-table tr:nth-child(even) {
    background: #f7f8fa;
}

/* Renungan */
.renungan-list {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.renungan-card {
    background: #f7f8fa;
    border-left: 4px solid var(--accent-color, #f2c14e);
    padding: 20px 24px;
    border-radius: 6px;
}

.renungan-card h2 {
    color: var(--theme-color, #1a2b4c);
    font-size: 1.2rem;
    margin-bottom: 4px;
}

.renungan-date {
    font-size: 0.82rem;
    color: #888;
    margin-bottom: 12px;
}

/* Galeri grid */
.photo-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 16px;
}

.photo-grid-item {
    aspect-ratio: 4/3;
    border-radius: 8px;
    overflow: hidden;
    background: #eee;
}

.photo-grid-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.photo-grid-item img:hover {
    transform: scale(1.05);
}

/* Kontak */
.contact-info p {
    margin-bottom: 18px;
    line-height: 1.6;
}

.map-embed {
    margin-top: 24px;
    max-width: 700px;
}

.map-embed iframe {
    width: 100%;
    height: 320px;
    border: 0;
    border-radius: 8px;
}
