/* ============================================================
   Zomba Church Website — Bright Theme
   ============================================================ */

:root {
    --primary-color: #1d6fa5;      /* bright sky blue */
    --primary-dark: #145279;
    --secondary-color: #e08a1e;    /* warm amber */
    --accent-color: #ffb400;       /* bright gold */
    --light-bg: #fbf7ee;           /* warm cream */
    --paler-bg: #eef7fc;           /* pale sky blue */
    --text-dark: #2c2c2c;
    --text-light: #ffffff;
    --border-soft: #f0e6d2;
}

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

body {
    font-family: 'Lato', sans-serif;
    color: var(--text-dark);
    overflow-x: hidden;
    scroll-behavior: smooth;
    background: #ffffff;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Playfair Display', serif;
}

a { color: var(--primary-color); }

/* Bright ambient background (replaces the old dark particle background) */
#particles-js {
    position: fixed;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: -1;
    background: linear-gradient(160deg, #fff6e0 0%, #eaf6ff 55%, #ffffff 100%);
}

/* Navigation */
.navbar {
    background: rgba(255, 255, 255, 0.97) !important;
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 18px rgba(29, 111, 165, 0.08);
    transition: all 0.3s ease;
    padding: 12px 0;
}

.navbar-brand {
    font-family: 'Playfair Display', serif;
    font-weight: 700;
    font-size: 1.4rem;
    color: var(--primary-dark) !important;
    display: flex;
    align-items: center;
    gap: 10px;
}

.navbar-logo-badge {
    height: 48px;
    padding: 6px 14px;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 14px rgba(224, 138, 30, 0.35);
    flex-shrink: 0;
}

.navbar-logo-badge img {
    height: 100%;
    max-width: 130px;
    width: auto;
    object-fit: contain;
}

.nav-link {
    font-weight: 600;
    color: var(--text-dark) !important;
    margin: 0 8px;
    transition: color 0.3s ease;
    position: relative;
    padding: 8px 12px !important;
}

.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 3px;
    bottom: 0;
    left: 50%;
    background-color: var(--accent-color);
    border-radius: 3px;
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 70%;
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary-color) !important;
}

/* Hero Section */
.hero-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    color: var(--text-dark);
    text-align: center;
    padding: 120px 20px 60px;
    background: linear-gradient(135deg, #ffe9b8 0%, #bfe3f7 100%);
}

.hero-content {
    z-index: 2;
    animation: fadeInUp 1s ease;
    max-width: 1200px;
}

.hero-title {
    font-size: 4.2rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--primary-dark);
    text-shadow: 1px 1px 0 rgba(255,255,255,0.4);
    letter-spacing: 2px;
}

.hero-subtitle {
    font-size: 1.7rem;
    margin-bottom: 1.5rem;
    font-style: italic;
    color: var(--secondary-color);
}

.hero-verse {
    font-size: 1.15rem;
    max-width: 800px;
    margin: 0 auto 2rem;
    line-height: 1.8;
    color: #40403a;
}

.btn-custom {
    background: var(--accent-color);
    border: none;
    padding: 15px 40px;
    font-size: 1rem;
    font-weight: 700;
    border-radius: 50px;
    margin: 8px;
    transition: all 0.3s ease;
    color: #2c2c2c;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-decoration: none;
    display: inline-block;
    box-shadow: 0 6px 18px rgba(255, 180, 0, 0.35);
}

.btn-custom:hover {
    background: var(--primary-color);
    color: #fff;
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(29, 111, 165, 0.35);
}

.btn-custom.btn-outline-custom {
    background: transparent;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    box-shadow: none;
}

.btn-custom.btn-outline-custom:hover {
    background: var(--primary-color);
    color: #fff;
}

/* Sections */
.section {
    padding: 90px 0;
    position: relative;
}

.section-white { background: #ffffff; }
.section-light { background: var(--light-bg); }
.section-sky { background: var(--paler-bg); }

.section-title {
    font-size: 2.75rem;
    font-weight: 700;
    margin-bottom: 1rem;
    text-align: center;
    position: relative;
    padding-bottom: 18px;
    color: var(--primary-dark);
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 90px;
    height: 4px;
    border-radius: 3px;
    background: var(--accent-color);
}

.section-title.text-start::after {
    left: 0;
    transform: none;
}

.section-subtitle {
    text-align: center;
    font-size: 1.15rem;
    max-width: 800px;
    margin: 0 auto 55px;
    opacity: 0.85;
}

/* Live stream */
.livestream-container {
    background: #ffffff;
    border-radius: 20px;
    padding: 30px;
    margin: 40px auto;
    max-width: 820px;
    border: 2px solid rgba(255, 180, 0, 0.4);
    box-shadow: 0 10px 40px rgba(29, 111, 165, 0.15);
}

.livestream-header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    margin-bottom: 10px;
    flex-wrap: wrap;
}

.livestream-label {
    font-family: 'Playfair Display', serif;
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--primary-dark);
}

.livestream-current {
    font-size: 0.95rem;
    color: var(--secondary-color);
    font-weight: 600;
    margin-bottom: 18px;
}

.live-badge {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    background: #d6273c;
    color: white;
    padding: 5px 14px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.offline-badge {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    background: #9aa0a6;
    color: white;
    padding: 5px 14px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.live-dot {
    width: 9px;
    height: 9px;
    background: white;
    border-radius: 50%;
    animation: pulse 1.4s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50%      { opacity: 0.4; transform: scale(0.8); }
}

.stream-embed, .stream-container {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    border-radius: 14px;
    box-shadow: 0 8px 30px rgba(0,0,0,0.18);
    background: #000;
}

.stream-embed iframe, .stream-container iframe {
    position: absolute;
    top: 0; left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

.stream-channel-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 16px;
    color: var(--primary-color);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 700;
    transition: opacity 0.2s;
}

.stream-channel-link:hover { opacity: 0.75; }

/* Stats */
.stats-section {
    background: linear-gradient(135deg, #ffd98a 0%, #9fddfb 100%);
    color: var(--primary-dark);
    padding: 70px 0;
}

.stat-item { text-align: center; padding: 20px; }

.stat-number {
    font-size: 3.4rem;
    font-weight: 700;
    color: var(--primary-dark);
    display: block;
    margin-bottom: 6px;
}

.stat-label {
    font-size: 1.05rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 600;
    color: #4a4a3f;
}

/* Cards: services / pastors / events */
.service-card, .pastor-card {
    background: #ffffff;
    border-radius: 16px;
    padding: 38px;
    text-align: center;
    box-shadow: 0 8px 26px rgba(29, 111, 165, 0.08);
    transition: all 0.3s ease;
    height: 100%;
    border-top: 5px solid var(--accent-color);
}

.service-card:hover, .pastor-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 18px 44px rgba(29, 111, 165, 0.16);
}

.service-logo-icon {
    height: 60px;
    max-width: 90%;
    width: auto;
    object-fit: contain;
    margin-bottom: 18px;
    filter: drop-shadow(0 4px 8px rgba(0,0,0,0.12));
}

.service-icon {
    font-size: 2.6rem;
    color: var(--secondary-color);
    margin-bottom: 18px;
}

.service-day {
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--primary-dark);
    margin-bottom: 8px;
}

.service-time {
    font-size: 1.2rem;
    color: var(--secondary-color);
    margin-bottom: 12px;
    font-weight: 700;
}

.service-description {
    font-size: 1rem;
    line-height: 1.6;
    color: var(--text-dark);
}

.pastor-image {
    width: 220px;
    height: 220px;
    border-radius: 50%;
    object-fit: cover;
    border: 5px solid var(--accent-color);
    margin: 0 auto 26px;
    display: block;
    box-shadow: 0 10px 26px rgba(0,0,0,0.15);
}

.pastor-name {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary-dark);
    text-align: center;
    margin-bottom: 8px;
}

.pastor-title {
    font-size: 1.1rem;
    color: var(--secondary-color);
    text-align: center;
    font-style: italic;
    margin-bottom: 18px;
}

/* Special service link cards */
.service-link-card {
    background: #ffffff;
    border-radius: 16px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 8px 26px rgba(29, 111, 165, 0.08);
    transition: all 0.3s ease;
    height: 100%;
    text-decoration: none;
    display: block;
    color: var(--text-dark);
    border: 2px solid transparent;
}

.service-link-card:hover {
    transform: translateY(-6px);
    border-color: var(--accent-color);
    box-shadow: 0 16px 36px rgba(255, 180, 0, 0.2);
    color: var(--text-dark);
}

.service-link-card i.link-icon {
    font-size: 2.3rem;
    color: var(--primary-color);
    margin-bottom: 16px;
}

.service-link-card h4 {
    color: var(--primary-dark);
    margin-bottom: 10px;
    font-size: 1.2rem;
}

.service-link-card .go-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 14px;
    font-weight: 700;
    color: var(--secondary-color);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Office Bearers */
.department-section { margin-bottom: 70px; }

.dept-header {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: #ffffff;
    padding: 22px 28px;
    border-radius: 14px;
    margin-bottom: 34px;
    display: flex;
    align-items: center;
    gap: 16px;
    box-shadow: 0 8px 24px rgba(29, 111, 165, 0.2);
}

.dept-header .dept-icon {
    height: 46px;
    width: 46px;
    border-radius: 50%;
    background: rgba(255,255,255,0.18);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    flex-shrink: 0;
}

.dept-header h3 { margin: 0; font-size: 1.55rem; font-weight: 700; color: #ffffff; }

.dept-header .dept-meta { font-size: 0.9rem; opacity: 0.92; margin-top: 4px; }

.bearer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 26px;
    margin-top: 30px;
}

.bearer-card {
    background: #ffffff;
    border-radius: 14px;
    padding: 16px;
    text-align: center;
    box-shadow: 0 6px 20px rgba(29, 111, 165, 0.08);
    transition: all 0.3s ease;
    cursor: pointer;
}

.bearer-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 14px 34px rgba(29, 111, 165, 0.18);
}

.bearer-image {
    width: 100%;
    height: 190px;
    object-fit: cover;
    border-radius: 10px;
    border: 3px solid var(--accent-color);
    display: block;
    transition: transform 0.3s ease;
}

.bearer-card:hover .bearer-image { transform: scale(1.02); }

.bearer-name {
    margin-top: 12px;
    font-weight: 700;
    font-size: 0.98rem;
    color: var(--primary-dark);
    font-family: 'Playfair Display', serif;
}

.bearer-role {
    font-size: 0.85rem;
    color: var(--secondary-color);
    font-style: italic;
    margin-top: 3px;
}

/* Lightbox */
.lightbox {
    display: none;
    position: fixed;
    z-index: 9999;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(20, 30, 40, 0.92);
    justify-content: center;
    align-items: center;
    cursor: pointer;
}

.lightbox.active { display: flex; }

.lightbox-content {
    max-width: 90%;
    max-height: 90%;
    border-radius: 10px;
    box-shadow: 0 0 50px rgba(255,255,255,0.25);
}

.lightbox-close {
    position: absolute;
    top: 30px; right: 50px;
    font-size: 3rem;
    color: white;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10000;
}

.lightbox-close:hover { color: var(--accent-color); transform: scale(1.2); }

/* Events */
.event-card {
    background: #ffffff;
    border-left: 6px solid var(--accent-color);
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 6px 22px rgba(29, 111, 165, 0.08);
    margin-bottom: 30px;
    transition: all 0.3s ease;
}

.event-card:hover {
    transform: translateX(8px);
    box-shadow: 0 10px 30px rgba(29, 111, 165, 0.16);
}

.event-card.featured { border-left-width: 10px; background: linear-gradient(135deg, #fffdf6 0%, #ffffff 60%); }

.event-date {
    font-size: 1.4rem;
    color: var(--secondary-color);
    font-weight: 700;
    margin-bottom: 10px;
}

.event-title {
    font-size: 1.9rem;
    color: var(--primary-dark);
    margin-bottom: 15px;
}

.event-time { font-size: 1.15rem; color: var(--secondary-color); margin-bottom: 10px; font-weight: 600; }

.event-description { line-height: 1.8; margin-bottom: 10px; }

.event-notes-list { margin: 10px 0 0 20px; line-height: 1.8; }

.event-image {
    width: 100%;
    height: 220px;
    object-fit: cover;
    border-radius: 10px;
    margin-bottom: 15px;
}

/* Contact forms */
.form-control, .form-select {
    border: 2px solid #e7ddc7;
    border-radius: 10px;
    padding: 13px 15px;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-control:focus, .form-select:focus {
    border-color: var(--accent-color);
    box-shadow: 0 0 0 0.2rem rgba(255, 180, 0, 0.2);
    outline: none;
}

.form-label { font-weight: 700; color: var(--primary-dark); margin-bottom: 8px; }

.btn-submit {
    background: var(--primary-color);
    border: none;
    padding: 14px 46px;
    font-size: 1.05rem;
    font-weight: 700;
    border-radius: 50px;
    color: white;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
}

.btn-submit:hover {
    background: var(--secondary-color);
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(224, 138, 30, 0.3);
}

.alert-success-custom {
    background: #e7f8ee;
    border: 1px solid #b7e4c7;
    color: #216b3f;
    padding: 16px 20px;
    border-radius: 10px;
    margin-bottom: 25px;
}

.alert-error-custom {
    background: #fdeaea;
    border: 1px solid #f3b8b8;
    color: #9c2c2c;
    padding: 16px 20px;
    border-radius: 10px;
    margin-bottom: 25px;
}

/* Map */
.map-container {
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 10px 34px rgba(29, 111, 165, 0.15);
    height: 420px;
}

.map-container iframe { width: 100%; height: 100%; border: none; }

/* Footer */
footer {
    background: linear-gradient(135deg, var(--primary-dark) 0%, #0e3a52 100%);
    color: var(--text-light);
    padding: 60px 0 30px;
}

.footer-logo-badge {
    height: 56px;
    padding: 8px 16px;
    border-radius: 14px;
    background: rgba(255,255,255,0.12);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 14px;
}

.footer-logo-badge img { height: 100%; max-width: 150px; width: auto; object-fit: contain; }

.footer-title {
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 18px;
    color: var(--accent-color);
}

.footer-links { list-style: none; padding: 0; }
.footer-links li { margin-bottom: 10px; }
.footer-links a { color: rgba(255,255,255,0.88); text-decoration: none; transition: all 0.3s ease; }
.footer-links a:hover { color: var(--accent-color); padding-left: 5px; }

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.15);
    padding-top: 26px;
    margin-top: 30px;
    text-align: center;
    color: rgba(255,255,255,0.75);
}

/* Animations */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(30px); }
    to   { opacity: 1; transform: translateY(0); }
}

.fade-in { opacity: 0; transform: translateY(30px); transition: all 0.6s ease; }
.fade-in.visible { opacity: 1; transform: translateY(0); }

/* Responsive */
@media (max-width: 768px) {
    .hero-title { font-size: 2.4rem; }
    .hero-subtitle { font-size: 1.15rem; }
    .hero-verse { font-size: 1rem; }
    .section-title { font-size: 1.9rem; }
    .stat-number { font-size: 2.3rem; }
    .bearer-grid { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 18px; }
    .bearer-image { height: 150px; }
    .lightbox-close { top: 15px; right: 15px; font-size: 2rem; }
}

@media (max-width: 576px) {
    .hero-title { font-size: 2rem; }
    .bearer-grid { grid-template-columns: repeat(2, 1fr); }
}
