/* PSC Church Design System 
    Theme: Professional, Trustworthy, Earthy
*/

@import url('https://fonts.googleapis.com/css2?family=Roboto:ital,wght@0,400;0,700;1,400;1,700&display=swap');

:root {
    --primary-gold: #C5A059;
    --dark-bg: #2d2a26;
    --header-brown: #3d342d;
    --text-main: #333333;
    --text-muted: #666666;
    --white: #ffffff;
    --border: #e0e0e0;
    --font-heading: -apple-system, BlinkMacSystemFont, "Roboto", "Segoe UI", "Helvetica Neue", Arial, sans-serif;
    --font-sans: -apple-system, BlinkMacSystemFont, "Roboto", "Segoe UI", "Helvetica Neue", Arial, sans-serif;
    --container-width: 1100px;
}

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

body {
    font-family: var(--font-sans);
    color: var(--text-main);
    line-height: 1.6;
    background-color: #f9f7f4;
}

h1, h2, h3, .scripture-box {
    font-family: var(--font-heading);
}

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
}

/* Header & Nav */
.main-header, .mini-header {
    position: relative;
    background-image: url('../../kampotmountains.jpg');
    background-size: cover;
    background-position: center;
    color: var(--white);
    padding-top: 40px;
}

.header-overlay {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(45, 42, 38, 0.65);
    z-index: 1;
}

.header-content {
    position: relative;
    z-index: 2;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 20px;
}

/* Make the header image taller on tablets and PCs */
@media (min-width: 769px) {
    .main-header {
        padding-top: 120px;
    }
    .header-content {
        padding-bottom: 80px;
    }
}

.brand {
    display: flex;
    align-items: center;
    gap: 15px;
}

.logo-circle {
    width: 50px;
    height: 50px;
    background: rgba(255,255,255,0.2);
    border: 2px solid rgba(255,255,255,0.4);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 1.2rem;
}

.site-info h1 { font-size: 1.8rem; letter-spacing: 1px; }
.site-info p { font-size: 0.9rem; opacity: 0.9; }

.lang-toggle button {
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.3);
    color: white;
    padding: 5px 15px;
    border-radius: 20px;
    cursor: pointer;
    margin-left: 5px;
    font-size: 0.85rem;
}

.lang-toggle button.active {
    background: var(--primary-gold);
    border-color: var(--primary-gold);
}

.sticky-nav {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(0,0,0,0.5);
    backdrop-filter: blur(5px);
    padding: 10px 0;
}

.sticky-nav ul {
    display: flex;
    list-style: none;
    gap: 10px;
}

.sticky-nav a {
    color: white;
    text-decoration: none;
    padding: 6px 15px;
    border-radius: 20px;
    background: rgba(255,255,255,0.1);
    font-size: 0.9rem;
    transition: 0.3s;
}

.sticky-nav a:hover, .sticky-nav a.active {
    background: rgba(255,255,255,0.3);
}

/* Layouts */
.page-layout {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 40px;
    padding-top: 40px;
    padding-bottom: 60px;
}

/* Components */
.hero-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    margin-bottom: 40px;
}

.hero-img {
    width: 100%;
    height: 400px;
    object-fit: cover;
}

.hero-text {
    padding: 30px;
}

.hero-text h2 { color: var(--header-brown); margin-bottom: 5px; }
.hero-text h3 { color: var(--text-muted); font-size: 1.1rem; margin-bottom: 20px; }

.sidebar-module {
    background: white;
    padding: 25px;
    border-radius: 10px;
    margin-bottom: 20px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.03);
}

.sidebar-module h3 {
    border-bottom: 2px solid var(--primary-gold);
    padding-bottom: 10px;
    margin-bottom: 15px;
    font-size: 1.2rem;
}

.sidebar-module ul { list-style: none; }
.sidebar-module li { margin-bottom: 10px; border-bottom: 1px solid var(--border); padding-bottom: 5px; }
.sidebar-module a { text-decoration: none; color: var(--text-main); font-size: 0.95rem; }

.scripture-box {
    background: var(--header-brown);
    color: white;
    text-align: center;
}

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

.card {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.3s;
    border: 1px solid var(--border);
}

.card:hover { transform: translateY(-5px); }
.card img { width: 100%; height: 180px; object-fit: cover; }
.card-body { padding: 20px; }
.card-title { font-size: 1.1rem; margin-bottom: 10px; color: var(--header-brown); }

/* --- Video & Media Styles --- */
.featured-media {
    background: white;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    margin-bottom: 40px;
}

/* Force YouTube/Vimeo embeds from WP to be responsive */
.video-content iframe,
.post-content iframe {
    width: 100%;
    max-width: 100%;
    aspect-ratio: 16 / 9;
    height: auto;
    border-radius: 8px;
    border: none;
}

/* Responsive */
@media (max-width: 992px) {
    .page-layout { grid-template-columns: 1fr; }
    .hero-img { height: 300px; }
}

@media (max-width: 768px) {
    .header-content { flex-direction: column; text-align: center; gap: 20px; }
    .sticky-nav ul { overflow-x: auto; padding-bottom: 5px; }
    .sticky-nav a { white-space: nowrap; }
}

/* Footer */
.main-footer {
    background: var(--dark-bg);
    color: var(--white);
    padding: 40px 0;
    text-align: center;
    font-size: 0.9rem;
}