/*
Theme Name: Pastor Bien Custom Theme
Author: Minggoy
Version: 1.2
*/

/* --- Global Reset & Typography --- */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    margin: 0;
    padding: 0;
    background-color: #f8f9fa;
    color: #333;
}

/* --- Layout Containers --- */
main {
    padding: 40px 20px;
    max-width: 1200px; /* Slightly wider to accommodate more nav items */
    margin: 0 auto;
    min-height: 70vh;
}

/* --- Header & Branding --- */
header {
    background: #222;
    color: #fff;
    padding: 1.5rem 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: relative;
    z-index: 1000;
}

.site-branding {
    max-width: 40%; /* Reduced to give more room to the long menu */
}

.site-branding h1 {
    margin: 0;
    font-size: 1.6rem;
    letter-spacing: -0.5px;
}

.site-branding h1 a {
    color: #fff;
    text-decoration: none;
}

.site-branding p {
    margin: 5px 0 0 0;
    font-size: 0.85rem;
    color: #bbb;
    font-style: italic;
}

/* --- Manual Navigation & Dropdowns --- */
.nav-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    gap: 15px; /* Tightened gap to fit all items in one row */
    align-items: center;
}

.nav-list > li {
    position: relative; /* Parent must be relative for dropdown positioning */
}

.nav-list a {
    color: #eee;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9rem;
    transition: all 0.2s ease;
    white-space: nowrap; /* Prevents text wrapping inside the link */
}

.nav-list a:hover {
    color: #00a3ff;
}

/* Dropdown Menu Styles */
.dropdown {
    display: none; /* Hidden by default */
    position: absolute;
    top: 100%;
    left: 0;
    background: #333;
    min-width: 220px;
    list-style: none;
    padding: 10px 0;
    margin: 0;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
    border-radius: 0 0 4px 4px;
    border-top: 2px solid #00a3ff; /* Accent line */
}

.dropdown li {
    width: 100%;
}

.dropdown li a {
    padding: 10px 20px;
    display: block;
    font-size: 0.85rem;
}

.dropdown li a:hover {
    background: #444;
    color: #fff;
}

/* Triggering the Dropdown */
.has-dropdown:hover .dropdown {
    display: block;
}

/* --- Downloads & Buttons --- */
.download-link {
    display: inline-block;
    background-color: #0073aa;
    color: white !important;
    padding: 12px 24px;
    border-radius: 4px;
    text-decoration: none !important;
    font-weight: bold;
    transition: all 0.3s ease;
    margin-top: 15px;
    text-align: center;
}

.download-link:hover {
    background-color: #005177;
    transform: translateY(-1px);
}

/* --- Mobile Responsiveness --- */
@media (max-width: 1100px) { /* Higher breakpoint because of the many links */
    header {
        flex-direction: column;
        text-align: center;
    }
    
    .site-branding {
        max-width: 100%;
        margin-bottom: 20px;
    }
    
    .nav-list {
        flex-wrap: wrap;
        justify-content: center;
    }

    .dropdown {
        position: static; /* Dropdowns stack normally on mobile */
        display: block; 
        background: transparent;
        box-shadow: none;
        border: none;
        padding-left: 20px;
    }
}

.file-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 30px;
}

.card {
    background: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    border: 1px solid #eee;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.card h3 {
    margin-top: 0;
    color: #222;
}

/* --- Resources Hub Grid --- */
.resource-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 20px;
}

.resource-card {
    background: #fff;
    padding: 30px;
    border-radius: 12px;
    text-align: center;
    border: 1px solid #eee;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.resource-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.05);
}

.card-icon {
    font-size: 3rem;
    margin-bottom: 15px;
}

.resource-card h2 {
    margin: 0 0 10px 0;
    color: #222;
}

.resource-card p {
    color: #666;
    font-size: 0.95rem;
    margin-bottom: 20px;
}

/* Specific Button for the Hub Cards */
.hub-button {
    display: inline-block;
    background: #333;
    color: #fff !important;
    padding: 10px 20px;
    text-decoration: none;
    border-radius: 6px;
    font-weight: 600;
    transition: background 0.2s;
}

.hub-button:hover {
    background: #00a3ff;
}

/* Visual for 'Coming Soon' items */
.resource-card.locked {
    opacity: 0.7;
    background: #fafafa;
}

.status-tag {
    font-size: 0.7rem;
    text-transform: uppercase;
    background: #eee;
    padding: 4px 8px;
    border-radius: 4px;
    display: inline-block;
    margin-top: 10px;
}

/* --- About Page Layout --- */
.about-container {
    display: flex;
    gap: 50px;
    padding: 60px 5%;
    max-width: 1200px;
    margin: 0 auto;
}

.about-content {
    flex: 2; /* Takes up 2/3 of the space */
}

.about-hero h1 {
    font-size: 3rem;
    margin-bottom: 0;
    color: #222;
}

.subtitle {
    font-size: 1.2rem;
    color: #00a3ff;
    font-weight: 600;
    margin-top: 5px;
}

.biography blockquote {
    font-size: 1.4rem;
    font-style: italic;
    border-left: 5px solid #00a3ff;
    padding-left: 20px;
    margin: 40px 0;
    color: #555;
}

/* --- Sidebar Styling --- */
.about-sidebar {
    flex: 1; /* Takes up 1/3 of the space */
}

.sidebar-box {
    background: #fff;
    padding: 25px;
    border-radius: 8px;
    border: 1px solid #eee;
    margin-bottom: 30px;
}

.sidebar-box.accent {
    background: #333;
    color: #fff;
}

.sidebar-box h3 {
    margin-top: 0;
    border-bottom: 2px solid #00a3ff;
    display: inline-block;
    padding-bottom: 5px;
    margin-bottom: 15px;
}

.sidebar-box ul {
    list-style: none;
    padding: 0;
}

.sidebar-box ul li {
    margin-bottom: 10px;
}

.sidebar-box ul li a {
    text-decoration: none;
    color: #0073aa;
    font-weight: 500;
}

/* Mobile: Stack the sidebar below the content */
@media (max-width: 900px) {
    .about-container {
        flex-direction: column;
    }
}

/* --- Coming Soon Styling --- */
.coming-soon-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 80vh;
    padding: 20px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

.coming-soon-card {
    background: #fff;
    padding: 50px 40px;
    border-radius: 20px;
    text-align: center;
    max-width: 600px;
    width: 100%;
    box-shadow: 0 15px 35px rgba(0,0,0,0.05);
    border: 1px solid rgba(0,0,0,0.05);
}

.icon-circle {
    font-size: 4rem;
    margin-bottom: 20px;
}

.status-badge {
    display: inline-block;
    background: #e3f2fd;
    color: #0073aa;
    padding: 6px 16px;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 20px;
    animation: pulse 2s infinite;
}

.coming-soon-card h1 {
    font-size: 2.2rem;
    color: #222;
    margin-bottom: 15px;
}

.coming-soon-card .description {
    color: #666;
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 30px;
}

/* Progress Bar Logic */
.progress-container {
    background: #eee;
    height: 10px;
    border-radius: 10px;
    margin-bottom: 10px;
    position: relative;
    overflow: hidden;
}

.progress-bar {
    background: #00a3ff;
    height: 100%;
    border-radius: 10px;
    transition: width 1s ease-in-out;
}

.progress-text {
    font-size: 0.8rem;
    color: #999;
    font-weight: 600;
}

.back-home {
    display: inline-block;
    margin-top: 40px;
    color: #0073aa;
    text-decoration: none;
    font-weight: 600;
    border-bottom: 2px solid transparent;
    transition: border 0.3s;
}

.back-home:hover {
    border-bottom: 2px solid #0073aa;
}

@keyframes pulse {
    0% { opacity: 1; }
    50% { opacity: 0.5; }
    100% { opacity: 1; }
}

/* --- Devotionals & Sermons Layout --- */
.sermon-container {
    padding: 60px 5%;
    max-width: 1200px;
    margin: 0 auto;
}

.page-intro {
    text-align: center;
    margin-bottom: 50px;
    border-bottom: 1px solid #eee;
    padding-bottom: 30px;
}

.page-intro h1 {
    font-size: 2.5rem;
    margin-bottom: 10px;
}

.content-split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}

.section-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
}

.section-header .icon {
    font-size: 2rem;
}

.section-header h2 {
    margin: 0;
    color: #222;
    border-bottom: 3px solid #00a3ff;
}

.section-desc {
    color: #666;
    margin-bottom: 30px;
}

/* File List Styles */
.file-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
    background: none; /* Removing the previous placeholder background */
    border: none;
    padding: 0;
}

.file-item {
    background: #fff;
    padding: 20px;
    border-radius: 8px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border: 1px solid #eee;
    transition: box-shadow 0.2s;
}

.file-item:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

.file-info h3 {
    margin: 0;
    font-size: 1.1rem;
    color: #222;
}

.file-info p {
    margin: 5px 0 0 0;
    font-size: 0.85rem;
    color: #666;
}

/* Make the download button smaller for the list */
.file-item .download-link {
    padding: 8px 16px;
    font-size: 0.85rem;
    margin-top: 0;
}

@media (max-width: 600px) {
    .file-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
}

/* --- Evangelism Page Styling --- */
.evangelism-container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 60px 20px;
}

.evangelism-hero {
    text-align: center;
    margin-bottom: 60px;
}

.category-tag {
    background: #ff4b2b; /* Bold Evangelism Accent */
    color: white;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.evangelism-hero h1 {
    font-size: 2.8rem;
    margin: 15px 0;
    color: #222;
}

.main-description {
    font-size: 1.15rem;
    color: #555;
    max-width: 700px;
    margin: 0 auto;
    line-height: 1.8;
}

.section-heading {
    margin-bottom: 30px;
}

.section-heading h2 {
    margin-bottom: 5px;
    font-size: 1.5rem;
}

.line-accent {
    width: 50px;
    height: 4px;
    background: #ff4b2b;
    border-radius: 2px;
}

/* Tools Grid & Placeholder */
.tools-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
}

.upload-placeholder {
    grid-column: 1 / -1; /* Spans full width */
    background: #fff;
    border: 2px dashed #ddd;
    border-radius: 12px;
    padding: 60px;
    text-align: center;
    color: #aaa;
}

.pulse-icon {
    font-size: 3rem;
    margin-bottom: 15px;
    animation: simple-pulse 2s infinite;
}

@keyframes simple-pulse {
    0% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.1); opacity: 0.7; }
    100% { transform: scale(1); opacity: 1; }
}

.tool-card {
    background: #fff;
    padding: 25px;
    border-radius: 12px;
    border: 1px solid #eee;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: transform 0.2s, border-color 0.2s;
}

.tool-card:hover {
    border-color: #ff4b2b; /* Evangelism accent color */
    transform: translateY(-3px);
}

.tool-header {
    margin-bottom: 10px;
}

.lang-tag {
    font-size: 0.7rem;
    background: #f0f0f0;
    padding: 2px 8px;
    border-radius: 4px;
    color: #666;
    font-weight: bold;
    text-transform: uppercase;
}

.tool-card h3 {
    margin: 8px 0 0 0;
    font-size: 1.2rem;
    color: #222;
}

.tool-card p {
    font-size: 0.9rem;
    color: #555;
    margin-bottom: 20px;
}

/* Adjust the download link for the Evangelism theme */
.tool-card .download-link {
    background-color: #ff4b2b;
    text-align: center;
    font-size: 0.85rem;
}

.tool-card .download-link:hover {
    background-color: #e03a1b;
}

/* --- Ministry Vision Section --- */
.ministry-vision {
    background: #1a1a1a; /* Dark, serious background */
    color: #fff;
    padding: 80px 5%;
    margin-top: 80px;
    border-radius: 15px;
    position: relative;
    overflow: hidden;
}

.vision-content {
    display: flex;
    gap: 60px;
    align-items: center;
    max-width: 1100px;
    margin: 0 auto;
}

.vision-text {
    flex: 2;
}

.vision-text h2 {
    color: #ff4b2b; /* Matching the Evangelism accent */
    font-size: 2.2rem;
    margin-top: 0;
}

.vision-text p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #ccc;
}

.vision-quote {
    margin-top: 30px;
    padding-left: 20px;
    border-left: 3px solid #ff4b2b;
    font-style: italic;
    color: #fff;
    font-size: 1.2rem;
}

/* Vision Stats Side */
.vision-stats {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.stat-item {
    text-align: center;
    background: rgba(255,255,255,0.05);
    padding: 20px;
    border-radius: 10px;
    border: 1px solid rgba(255,255,255,0.1);
}

.stat-number {
    display: block;
    font-size: 2.5rem;
    font-weight: 800;
    color: #ff4b2b;
}

.stat-label {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #888;
}

/* Mobile responsive */
@media (max-width: 850px) {
    .vision-content {
        flex-direction: column;
        text-align: center;
    }
    .vision-quote {
        border-left: none;
        border-top: 2px solid #ff4b2b;
        padding: 20px 0 0 0;
    }
}

/* --- Timeline Styling --- */
.timeline {
    background: #f1f1f1;
    padding: 20px;
    border-radius: 8px;
    margin: 25px 0;
    border-left: 4px solid #00a3ff;
}

.timeline h3 {
    margin-top: 0;
    font-size: 1.1rem;
    text-transform: uppercase;
    color: #444;
}

.timeline ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.timeline li {
    margin-bottom: 8px;
    font-size: 0.95rem;
}

/* --- Photo Styling --- */
.family-photo-wrapper {
    margin: 20px 0;
    border: 5px solid #fff;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    border-radius: 4px;
    overflow: hidden;
}

.family-photo {
    width: 100%;
    height: auto;
    display: block;
}

.family-section h2 {
    margin-top: 40px;
    border-bottom: 2px solid #eee;
    padding-bottom: 10px;
}

/* --- Newlife Series Page --- */
.newlife-series-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 60px 20px;
}

.series-header {
    text-align: center;
    margin-bottom: 50px;
}

.language-group {
    margin-bottom: 60px;
    padding-top: 30px;
    border-top: 1px solid #ddd;
}

.group-title {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 0px;
}

.group-title h2 {
    margin: 0;
    font-size: 1.8rem;
    color: #222;
}

.badge {
    background: #00a3ff;
    color: #fff;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: bold;
}

/* Card Improvements */
.card-meta {
    font-size: 0.7rem;
    font-weight: bold;
    color: #999;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 10px;
}

.card {
    background: #fff;
    padding: 30px;
    border-radius: 12px;
    border: 1px solid #eee;
    transition: all 0.3s ease;
}

.card:hover {
    box-shadow: 0 10px 20px rgba(0,0,0,0.05);
    border-color: #00a3ff;
}

/* Color Coding by Language (Optional but helpful) */
.card.tagalog:hover { border-color: #ff9800; }
.card.cebuano:hover { border-color: #4caf50; }

.lang-link {
    background: #eee;
    color: #333;
    padding: 8px 16px;
    text-decoration: none;
    border-radius: 5px;
    font-size: 0.9rem;
    font-weight: 600;
    transition: all 0.2s ease;
}

.lang-link:hover {
    background: #00a3ff;
    color: white;
}

/* --- Youth Ministry Page --- */
.youth-container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 60px 20px;
}

.youth-hero {
    text-align: center;
    margin-bottom: 60px;
}

.youth-hero .icon-circle {
    background: #6200ea; /* Vibrant Purple */
    color: white;
    width: 80px;
    height: 80px;
    line-height: 80px;
    font-size: 2.5rem;
    border-radius: 50%;
    margin: 0 auto 20px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.youth-hero h1 {
    font-size: 2.5rem;
    color: #222;
    margin-bottom: 15px;
}

.youth-card {
    border-top: 4px solid #6200ea;
}

.tagalog-theme {
    border-top: 4px solid #ffab00; /* Amber for distinction */
}

.youth-footer {
    text-align: center;
    margin-top: 80px;
    padding-top: 30px;
    border-top: 1px solid #eee;
    color: #888;
}

.back-link {
    display: inline-block;
    margin-top: 15px;
    color: #6200ea;
    text-decoration: none;
    font-weight: bold;
}

.back-link:hover {
    text-decoration: underline;
}

/* --- Couple's Ministry Page --- */
.couples-container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 60px 20px;
}

.couples-hero {
    text-align: center;
    margin-bottom: 60px;
}

.couples-hero .icon-circle {
    background: #d4a373; /* Warm Sand/Gold color */
    color: white;
    width: 80px;
    height: 80px;
    line-height: 80px;
    font-size: 2.5rem;
    border-radius: 50%;
    margin: 0 auto 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.couples-hero h1 {
    font-size: 2.5rem;
    color: #222;
    margin-bottom: 15px;
}

.couples-card {
    border-top: 4px solid #d4a373;
    background: #fff;
    padding: 25px;
    border-radius: 12px;
}

.couples-card.tagalog-theme {
    border-top: 4px solid #b08968; /* Slightly darker shade */
}

.couples-footer {
    text-align: center;
    margin-top: 80px;
    padding-top: 30px;
    border-top: 1px solid #eee;
    color: #888;
}

.couples-footer .back-link {
    color: #d4a373;
}

.p-justify {
    text-align: justify;
}

.section-subtitle {
    font-size: 1rem;
    color: #025381;
    font-weight: 600;
    margin-top: 10px;
    font-style: italic;
}