/* ===== VARIABLES ===== */
:root {
    --primary-color: #241e22;        /* Text color */
    --gradient-start: #bbe1f8;        /* Light blue start */
    --gradient-mid: #d0eaf7;          /* Mid blue */
    --gradient-end: #dbedf9;          /* Soft blue end */
    --accent-color: #adb3b9;          /* Silver/gray accent */
    --dark-color: #241e22;             /* Dark text/background */
    --light-color: #ffffff;             /* Pure white */
    --gray-color: #6c757d;              /* Medium gray */
    --success-color: #28a745;
    --error-color: #dc3545;
    --text-dark: #241e22;               /* Primary text color */
    --text-light: #ffffff;               /* Light text */
    --transition: all 0.3s ease;
    --shadow: 0 5px 15px rgba(36, 30, 34, 0.1);
    --shadow-hover: 0 8px 25px rgba(36, 30, 34, 0.15);
    --header-height: 80px;
    --header-height-mobile: 70px;
}

/* ===== RESET & BASE ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: var(--header-height);
}

body {
    font-family: 'Inter', sans-serif;
    color: var(--text-dark);
    line-height: 1.6;
    overflow-x: hidden;
    background: linear-gradient(135deg, var(--gradient-start), var(--gradient-mid), var(--gradient-end));
    min-height: 100vh;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ===== FIX FOR ANCHOR LINKS ===== */
:target {
    scroll-margin-top: var(--header-height);
}

/* ===== LOADING ANIMATION ===== */
.loader-wrapper {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--gradient-start), var(--gradient-mid), var(--gradient-end));
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

.loader-wrapper.hidden {
    opacity: 0;
    visibility: hidden;
}

.loader-content {
    text-align: center;
    color: var(--text-dark);
}

.cross-container {
    position: relative;
    width: 100px;
    height: 100px;
    margin: 0 auto 30px;
    animation: crossPulse 2s infinite;
}

.cross-vertical {
    position: absolute;
    top: 0;
    left: 45px;
    width: 10px;
    height: 100px;
    background: linear-gradient(to bottom, var(--primary-color), var(--accent-color));
    border-radius: 5px;
    box-shadow: 0 0 20px rgba(36, 30, 34, 0.3);
    animation: crossGlow 1.5s infinite alternate;
}

.cross-horizontal {
    position: absolute;
    top: 45px;
    left: 0;
    width: 100px;
    height: 10px;
    background: linear-gradient(to right, var(--primary-color), var(--accent-color));
    border-radius: 5px;
    box-shadow: 0 0 20px rgba(36, 30, 34, 0.3);
    animation: crossGlow 1.5s infinite alternate-reverse;
}

.cross-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 120px;
    height: 120px;
    background: radial-gradient(circle, rgba(173, 179, 185, 0.3) 0%, transparent 70%);
    animation: glowPulse 2s infinite;
}

.loader-text {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 15px;
    letter-spacing: 8px;
    color: var(--primary-color);
}

.loader-text span {
    display: inline-block;
    animation: letterFloat 1.5s infinite;
    animation-delay: calc(0.05s * var(--i));
}

.loader-text span:nth-child(1) { --i: 1; }
.loader-text span:nth-child(2) { --i: 2; }
.loader-text span:nth-child(3) { --i: 3; }
.loader-text span:nth-child(4) { --i: 4; }
.loader-text span:nth-child(5) { --i: 5; }
.loader-text span:nth-child(6) { --i: 6; }
.loader-text span:nth-child(7) { --i: 7; }
.loader-text span:nth-child(8) { --i: 8; }
.loader-text span:nth-child(9) { --i: 9; }
.loader-text span:nth-child(10) { --i: 10; }
.loader-text span:nth-child(11) { --i: 11; }
.loader-text span:nth-child(12) { --i: 12; }
.loader-text span:nth-child(13) { --i: 13; }
.loader-text span:nth-child(14) { --i: 14; }
.loader-text span:nth-child(15) { --i: 15; }
.loader-text span:nth-child(16) { --i: 16; }
.loader-text span:nth-child(17) { --i: 17; }
.loader-text span:nth-child(18) { --i: 18; }
.loader-text span:nth-child(19) { --i: 19; }

.loader-subtitle {
    font-size: 16px;
    opacity: 0.8;
    color: var(--primary-color);
    animation: fadeInOut 2s infinite;
}

@keyframes crossPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

@keyframes crossGlow {
    from { box-shadow: 0 0 20px rgba(36, 30, 34, 0.3); }
    to { box-shadow: 0 0 40px rgba(173, 179, 185, 0.5); }
}

@keyframes glowPulse {
    0%, 100% { opacity: 0.3; transform: translate(-50%, -50%) scale(1); }
    50% { opacity: 0.6; transform: translate(-50%, -50%) scale(1.2); }
}

@keyframes letterFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

@keyframes fadeInOut {
    0%, 100% { opacity: 0.8; }
    50% { opacity: 0.4; }
}

/* ===== HEADER STYLES - FIXED POSITION ===== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: linear-gradient(135deg, rgba(187, 225, 248, 0.98), rgba(208, 234, 247, 0.98), rgba(219, 237, 249, 0.98));
    color: var(--text-dark);
    padding: 15px 0;
    z-index: 1000;
    box-shadow: var(--shadow);
    transition: var(--transition);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.3);
}

.header.scrolled {
    padding: 10px 0;
    background: linear-gradient(135deg, rgba(187, 225, 248, 0.98), rgba(208, 234, 247, 0.98));
    box-shadow: 0 2px 20px rgba(36, 30, 34, 0.1);
}

/* Add padding to main content to account for fixed header */
.main-content {
    padding-top: var(--header-height);
    min-height: calc(100vh - 300px);
    padding-bottom: 50px;
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 15px;
}

.logo {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--accent-color);
}

.church-name {
    font-size: 20px;
    font-weight: 600;
    color: var(--primary-color);
}

.menu-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.menu-toggle span {
    width: 25px;
    height: 3px;
    background-color: var(--primary-color);
    margin: 3px 0;
    transition: var(--transition);
}

.nav-menu {
    display: flex;
    gap: 30px;
}

.nav-item {
    list-style: none;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    border-radius: 50px;
    transition: var(--transition);
    font-weight: 500;
    color: var(--primary-color);
    text-decoration: none;
}

.nav-link i {
    font-size: 18px;
    color: var(--primary-color);
    transition: var(--transition);
}

.nav-link:hover,
.nav-link.active {
    background-color: var(--accent-color);
    color: var(--primary-color);
}

.nav-link:hover i,
.nav-link.active i {
    color: var(--primary-color);
}

/* ===== MOBILE BOTTOM NAV ===== */
.mobile-bottom-nav {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: linear-gradient(135deg, rgba(187, 225, 248, 0.98), rgba(208, 234, 247, 0.98));
    color: var(--primary-color);
    padding: 10px 0;
    z-index: 1000;
    box-shadow: 0 -5px 15px rgba(36, 30, 34, 0.1);
    justify-content: space-around;
    align-items: center;
    backdrop-filter: blur(10px);
    border-top: 1px solid rgba(255, 255, 255, 0.3);
}

.mobile-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
    color: var(--primary-color);
    font-size: 12px;
    transition: var(--transition);
    flex: 1;
    text-align: center;
    opacity: 0.7;
    text-decoration: none;
}

.mobile-nav-item i {
    font-size: 20px;
    color: var(--primary-color);
}

.mobile-nav-item.active {
    opacity: 1;
    color: var(--primary-color);
    font-weight: 600;
}

.mobile-nav-item.active i {
    transform: translateY(-2px);
    color: var(--primary-color);
}

/* ===== MAIN CONTENT ===== */
.main-content {
    padding-top: var(--header-height);
    min-height: calc(100vh - 300px);
    padding-bottom: 50px;
}

/* Hero section adjustment for fixed header */
.hero-section {
    margin-top: 0;
    height: 80vh;
    min-height: 500px;
    border-radius: 0 0 50px 50px;
    margin-bottom: 40px;
}

.hero-slider {
    position: relative;
    height: 100%;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 1s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.slide.active {
    opacity: 1;
}

.slide-content {
    color: var(--text-light);
    max-width: 800px;
    padding: 20px;
    animation: slideUp 1s ease;
}

.slide-content h1 {
    font-size: 48px;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(36, 30, 34, 0.3);
}

.slide-content p {
    font-size: 20px;
    margin-bottom: 30px;
    text-shadow: 1px 1px 2px rgba(36, 30, 34, 0.3);
}

@keyframes slideUp {
    from {
        transform: translateY(50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.slider-nav {
    position: absolute;
    bottom: 30px;
    right: 30px;
    display: flex;
    gap: 10px;
}

.slider-nav button {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: var(--text-light);
    cursor: pointer;
    transition: var(--transition);
    font-size: 20px;
    backdrop-filter: blur(5px);
}

.slider-nav button:hover {
    background: var(--accent-color);
    border-color: var(--accent-color);
    color: var(--primary-color);
}

/* ===== BUTTONS ===== */
.btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    border: none;
    font-size: 16px;
}

.btn-primary {
    background: var(--primary-color);
    color: var(--text-light);
}

.btn-primary:hover {
    background: var(--accent-color);
    color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
}

.btn-outline:hover {
    background: var(--primary-color);
    color: var(--text-light);
}

.btn-outline-light {
    background: transparent;
    border: 2px solid var(--text-light);
    color: var(--text-light);
}

.btn-outline-light:hover {
    background: var(--text-light);
    color: var(--primary-color);
}

.btn-small {
    padding: 8px 20px;
    font-size: 14px;
}

.btn-full {
    width: 100%;
}

/* ===== SECTIONS ===== */
.section-header {
    text-align: center;
    margin-bottom: 50px;
}

.section-header h2 {
    font-size: 36px;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.divider {
    width: 80px;
    height: 3px;
    background: var(--accent-color);
    margin: 0 auto 20px;
}

/* Welcome Section */
.welcome-section {
    padding: 80px 0;
    background: transparent;
}

.welcome-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.card {
    text-align: center;
    padding: 40px 30px;
    background: rgba(255, 255, 255, 0.7);
    border-radius: 15px;
    box-shadow: var(--shadow);
    transition: var(--transition);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-hover);
    background: rgba(255, 255, 255, 0.9);
}

.card i {
    font-size: 48px;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.card h3 {
    font-size: 24px;
    margin-bottom: 15px;
    color: var(--primary-color);
}

/* Service Times */
.service-times {
    padding: 80px 0;
    background: linear-gradient(rgba(36, 30, 34, 0.8), rgba(36, 30, 34, 0.8)), url('https://images.unsplash.com/photo-1438232997411-5a5c7c3f3f3b?ixlib=rb-4.0.3&auto=format&fit=crop&w=1950&q=80');
    background-size: cover;
    background-attachment: fixed;
    color: var(--text-light);
}

.service-content {
    text-align: center;
}

.service-content h2 {
    font-size: 36px;
    margin-bottom: 40px;
    color: var(--text-light);
}

.service-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    max-width: 1000px;
    margin: 0 auto;
}

.service-item {
    padding: 30px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    backdrop-filter: blur(10px);
    transition: var(--transition);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.service-item:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.2);
}

.service-item i {
    font-size: 40px;
    color: var(--accent-color);
    margin-bottom: 15px;
}

.service-item h3 {
    font-size: 20px;
    margin-bottom: 15px;
    color: var(--text-light);
}

.service-item p {
    color: var(--text-light);
    opacity: 0.9;
}

/* Events Preview */
.events-preview {
    padding: 80px 0;
    background: transparent;
}

.events-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.event-card {
    display: flex;
    background: rgba(255, 255, 255, 0.7);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.event-card:hover {
    transform: translateX(5px);
    box-shadow: var(--shadow-hover);
    background: rgba(255, 255, 255, 0.9);
}

.event-date {
    background: var(--primary-color);
    color: var(--text-light);
    padding: 20px;
    min-width: 100px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    font-weight: 700;
}

.event-date .day {
    font-size: 32px;
    line-height: 1;
}

.event-date .month {
    font-size: 18px;
    text-transform: uppercase;
}

.event-details {
    padding: 20px;
    flex: 1;
}

.event-details h3 {
    margin-bottom: 10px;
    color: var(--primary-color);
}

.event-details p {
    margin-bottom: 5px;
    color: var(--primary-color);
    opacity: 0.8;
    font-size: 14px;
}

.event-details i {
    margin-right: 8px;
    color: var(--accent-color);
}

/* ===== PAGE HEADER ===== */
.page-header {
    background: linear-gradient(rgba(36, 30, 34, 0.8), rgba(36, 30, 34, 0.8)), url('https://images.unsplash.com/photo-1438232997411-5a5c7c3f3f3b?ixlib=rb-4.0.3&auto=format&fit=crop&w=1950&q=80');
    background-size: cover;
    padding: 100px 0;
    text-align: center;
    color: var(--text-light);
    border-radius: 0 0 50px 50px;
    margin-bottom: 40px;
}

.page-header h1 {
    font-size: 48px;
    margin-bottom: 15px;
}

.page-header p {
    font-size: 18px;
    opacity: 0.9;
}

/* ===== ABOUT PAGE ===== */
.about-story {
    padding: 80px 0;
}

.story-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.story-content h2 {
    font-size: 36px;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.story-content p {
    margin-bottom: 20px;
    color: var(--primary-color);
    opacity: 0.8;
}

.story-image img {
    width: 100%;
    border-radius: 15px;
    box-shadow: var(--shadow);
    border: 3px solid var(--accent-color);
}

.beliefs {
    padding: 80px 0;
    background: transparent;
}

.beliefs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.belief-card {
    background: rgba(255, 255, 255, 0.7);
    padding: 40px 30px;
    border-radius: 10px;
    text-align: center;
    box-shadow: var(--shadow);
    transition: var(--transition);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.belief-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
    background: rgba(255, 255, 255, 0.9);
}

.belief-card i {
    font-size: 48px;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.belief-card h3 {
    font-size: 24px;
    margin-bottom: 15px;
    color: var(--primary-color);
}

.belief-card p {
    color: var(--primary-color);
    opacity: 0.8;
}

.pastor-section {
    padding: 80px 0;
}

.pastor-card {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 50px;
    background: rgba(255, 255, 255, 0.7);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: var(--shadow);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.pastor-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.pastor-info {
    padding: 40px;
}

.pastor-info h2 {
    font-size: 32px;
    color: var(--primary-color);
    margin-bottom: 10px;
}

.pastor-info h3 {
    font-size: 24px;
    color: var(--accent-color);
    margin-bottom: 20px;
}

.pastor-info p {
    margin-bottom: 20px;
    color: var(--primary-color);
    opacity: 0.8;
}

.pastor-quote {
    background: rgba(173, 179, 185, 0.2);
    padding: 20px;
    border-radius: 10px;
    border-left: 4px solid var(--accent-color);
}

.pastor-quote i {
    color: var(--accent-color);
    font-size: 24px;
    margin-right: 10px;
}

/* ===== TESTIMONIES PAGE ===== */
.testimonies-grid {
    padding: 60px 0;
}

.testimony-filters {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 10px 25px;
    border: none;
    background: rgba(255, 255, 255, 0.7);
    color: var(--primary-color);
    border-radius: 50px;
    cursor: pointer;
    transition: var(--transition);
    font-weight: 600;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.filter-btn:hover,
.filter-btn.active {
    background: var(--primary-color);
    color: var(--text-light);
}

.testimonies-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
}

.testimony-card {
    display: flex;
    background: rgba(255, 255, 255, 0.7);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.testimony-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
    background: rgba(255, 255, 255, 0.9);
}

.testimony-image {
    width: 120px;
    height: 120px;
    margin: 20px;
}

.testimony-image img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--accent-color);
}

.testimony-content {
    padding: 20px 20px 20px 0;
    flex: 1;
}

.testimony-content h3 {
    font-size: 20px;
    color: var(--primary-color);
    margin-bottom: 5px;
}

.testimony-date {
    font-size: 12px;
    color: var(--primary-color);
    opacity: 0.6;
    margin-bottom: 10px;
}

.testimony-text {
    color: var(--primary-color);
    opacity: 0.8;
    margin-bottom: 15px;
    line-height: 1.6;
}

.testimony-rating {
    color: var(--accent-color);
}

.share-testimony {
    padding: 60px 0;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    color: var(--text-light);
    text-align: center;
    border-radius: 50px 50px 0 0;
    margin-top: 40px;
}

.share-box {
    max-width: 600px;
    margin: 0 auto;
}

.share-box h2 {
    font-size: 32px;
    margin-bottom: 15px;
    color: var(--text-light);
}

.share-box p {
    margin-bottom: 30px;
    opacity: 0.9;
    color: var(--text-light);
}

/* ===== ANNOUNCEMENTS PAGE ===== */
.announcements-section {
    padding: 60px 0;
}

.announcements-tabs {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.tab-btn {
    padding: 12px 30px;
    border: none;
    background: rgba(255, 255, 255, 0.7);
    color: var(--primary-color);
    border-radius: 50px;
    cursor: pointer;
    transition: var(--transition);
    font-weight: 600;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.tab-btn:hover,
.tab-btn.active {
    background: var(--primary-color);
    color: var(--text-light);
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

.announcement-card {
    background: rgba(255, 255, 255, 0.7);
    border-radius: 15px;
    padding: 30px;
    margin-bottom: 20px;
    box-shadow: var(--shadow);
    transition: var(--transition);
    position: relative;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.announcement-card.featured {
    border: 2px solid var(--accent-color);
}

.announcement-card.urgent {
    border-left: 4px solid var(--error-color);
}

.announcement-badge {
    position: absolute;
    top: -10px;
    right: 20px;
    background: var(--accent-color);
    color: var(--primary-color);
    padding: 5px 15px;
    border-radius: 50px;
    font-size: 12px;
    font-weight: 600;
}

.announcement-meta {
    margin-bottom: 15px;
    color: var(--primary-color);
    opacity: 0.7;
    font-size: 14px;
}

.announcement-meta i {
    margin-right: 5px;
    margin-left: 15px;
    color: var(--accent-color);
}

.announcement-meta i:first-child {
    margin-left: 0;
}

.announcement-description {
    margin-bottom: 20px;
    color: var(--primary-color);
    opacity: 0.8;
}

.announcement-gallery {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin-top: 20px;
}

.announcement-gallery img {
    width: 100%;
    height: 100px;
    object-fit: cover;
    border-radius: 8px;
    cursor: pointer;
    transition: var(--transition);
    border: 2px solid var(--accent-color);
}

.announcement-gallery img:hover {
    transform: scale(1.05);
    border-color: var(--primary-color);
}

.newsletter-signup {
    padding: 60px 0;
    background: linear-gradient(135deg, var(--accent-color), var(--gradient-end));
    border-radius: 50px 50px 0 0;
    margin-top: 40px;
}

.newsletter-box {
    max-width: 600px;
    margin: 0 auto;
    text-align: center;
    color: var(--primary-color);
}

.newsletter-box h2 {
    font-size: 32px;
    margin-bottom: 15px;
    color: var(--primary-color);
}

.newsletter-box p {
    margin-bottom: 30px;
    opacity: 0.8;
    color: var(--primary-color);
}

.newsletter-form {
    display: flex;
    gap: 15px;
    max-width: 500px;
    margin: 0 auto;
}

.newsletter-form input {
    flex: 1;
    padding: 15px 20px;
    border: none;
    border-radius: 50px;
    font-size: 16px;
    background: rgba(255, 255, 255, 0.9);
    color: var(--primary-color);
}

.newsletter-form input:focus {
    outline: none;
    box-shadow: 0 0 0 2px var(--primary-color);
}

.newsletter-form input::placeholder {
    color: var(--primary-color);
    opacity: 0.5;
}

/* ===== CONTACT PAGE ===== */
.contact-section {
    padding: 60px 0;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 50px;
}

.contact-info h2 {
    font-size: 28px;
    color: var(--primary-color);
    margin-bottom: 30px;
}

.info-card {
    display: flex;
    gap: 20px;
    margin-bottom: 30px;
    padding: 20px;
    background: rgba(255, 255, 255, 0.7);
    border-radius: 10px;
    box-shadow: var(--shadow);
    transition: var(--transition);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.info-card:hover {
    transform: translateX(5px);
    box-shadow: var(--shadow-hover);
    background: rgba(255, 255, 255, 0.9);
}

.info-card i {
    font-size: 30px;
    color: var(--accent-color);
}

.info-card h3 {
    font-size: 18px;
    color: var(--primary-color);
    margin-bottom: 5px;
}

.info-card p {
    color: var(--primary-color);
    opacity: 0.8;
    line-height: 1.6;
}

.social-links-large {
    display: flex;
    gap: 15px;
    margin-top: 30px;
}

.social-icon {
    width: 50px;
    height: 50px;
    background: var(--accent-color);
    color: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.social-icon:hover {
    transform: translateY(-3px);
    background: var(--primary-color);
    color: var(--text-light);
}

.contact-form-container {
    background: rgba(255, 255, 255, 0.7);
    padding: 40px;
    border-radius: 15px;
    box-shadow: var(--shadow);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.contact-form-container h2 {
    font-size: 28px;
    color: var(--primary-color);
    margin-bottom: 30px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid rgba(36, 30, 34, 0.2);
    border-radius: 8px;
    font-size: 16px;
    transition: var(--transition);
    background: rgba(255, 255, 255, 0.9);
    color: var(--primary-color);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--accent-color);
    box-shadow: 0 0 0 2px rgba(173, 179, 185, 0.3);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--primary-color);
    opacity: 0.5;
}

.map-section {
    margin-top: 40px;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: var(--shadow);
    border: 3px solid var(--accent-color);
}

.prayer-request {
    padding: 60px 0;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    color: var(--text-light);
    text-align: center;
    border-radius: 50px 50px 0 0;
    margin-top: 40px;
}

.prayer-box {
    max-width: 600px;
    margin: 0 auto;
}

.prayer-box h2 {
    font-size: 32px;
    margin-bottom: 15px;
    color: var(--text-light);
}

.prayer-box p {
    margin-bottom: 30px;
    opacity: 0.9;
    color: var(--text-light);
}

/* ===== FOOTER ===== */
.footer {
    background: linear-gradient(135deg, rgba(36, 30, 34, 0.95), rgba(36, 30, 34, 0.98));
    color: var(--text-light);
    padding: 60px 0 20px;
    backdrop-filter: blur(10px);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-section h3 {
    color: var(--accent-color);
    margin-bottom: 20px;
    font-size: 18px;
}

.footer-section p {
    margin-bottom: 15px;
    opacity: 0.8;
}

.footer-section ul li {
    margin-bottom: 10px;
}

.footer-section ul li a {
    opacity: 0.8;
    transition: var(--transition);
}

.footer-section ul li a:hover {
    opacity: 1;
    color: var(--accent-color);
    padding-left: 5px;
}

.social-links {
    display: flex;
    gap: 15px;
}

.social-links a {
    width: 36px;
    height: 36px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    color: var(--text-light);
}

.social-links a:hover {
    background: var(--accent-color);
    color: var(--primary-color);
    transform: translateY(-3px);
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    opacity: 0.6;
    font-size: 14px;
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 1024px) {
    :root {
        --header-height: 70px;
    }
    
    .slide-content h1 {
        font-size: 42px;
    }
    
    .pastor-card {
        grid-template-columns: 1fr;
    }
    
    .pastor-image {
        max-height: 400px;
    }
}

@media (max-width: 768px) {
    :root {
        --header-height: 70px;
        --header-height-mobile: 70px;
    }
    
    /* Adjust main content for fixed header */
    .main-content {
        padding-top: var(--header-height-mobile);
        padding-bottom: 70px; /* Space for bottom nav */
    }
    
    .menu-toggle {
        display: flex;
    }
    
    .nav-menu {
        position: fixed;
        top: var(--header-height-mobile);
        left: -100%;
        width: 100%;
        height: calc(100vh - var(--header-height-mobile));
        background: linear-gradient(135deg, rgba(187, 225, 248, 0.98), rgba(208, 234, 247, 0.98));
        flex-direction: column;
        align-items: center;
        padding: 40px 0;
        transition: left 0.3s ease;
        z-index: 999;
        backdrop-filter: blur(10px);
    }
    
    .nav-menu.active {
        left: 0;
    }
    
    .nav-item {
        width: 100%;
        text-align: center;
    }
    
    .nav-link {
        justify-content: center;
        padding: 15px;
        width: 100%;
    }
    
    /* Mobile bottom navigation */
    .mobile-bottom-nav {
        display: flex;
    }
    
    /* Hide footer on mobile */
    .footer {
        display: none;
    }
    
    /* Hero section */
    .slide-content h1 {
        font-size: 32px;
    }
    
    .slide-content p {
        font-size: 16px;
    }
    
    .slider-nav {
        bottom: 20px;
        right: 20px;
    }
    
    .slider-nav button {
        width: 40px;
        height: 40px;
    }
    
    /* Sections */
    .section-header h2 {
        font-size: 28px;
    }
    
    .welcome-section,
    .service-times,
    .events-preview {
        padding: 50px 0;
    }
    
    .story-grid,
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .testimonies-container {
        grid-template-columns: 1fr;
    }
    
    .testimony-card {
        flex-direction: column;
        text-align: center;
    }
    
    .testimony-image {
        margin: 20px auto 0;
    }
    
    .testimony-content {
        padding: 20px;
    }
    
    .newsletter-form {
        flex-direction: column;
    }
    
    .announcement-meta {
        display: flex;
        flex-direction: column;
        gap: 5px;
    }
    
    .announcement-meta i {
        margin-left: 0;
    }
}

@media (max-width: 480px) {
    .nav-brand .church-name {
        display: none;
    }
    
    .slide-content h1 {
        font-size: 28px;
    }
    
    .btn {
        padding: 10px 20px;
    }
    
    .event-card {
        flex-direction: column;
    }
    
    .event-date {
        flex-direction: row;
        justify-content: center;
        gap: 10px;
        padding: 15px;
    }
    
    .event-date .day {
        font-size: 24px;
    }
    
    .testimony-filters {
        flex-direction: column;
        align-items: center;
    }
    
    .filter-btn {
        width: 100%;
        max-width: 200px;
    }
    
    .announcements-tabs {
        flex-direction: column;
        align-items: center;
    }
    
    .tab-btn {
        width: 100%;
        max-width: 200px;
    }
    
    .contact-form-container {
        padding: 20px;
    }
    
    .info-card {
        flex-direction: column;
        text-align: center;
    }
    
    .social-links-large {
        justify-content: center;
    }
}

/* ===== FIX HORIZONTAL SCROLL ON MOBILE ===== */
html, body {
    overflow-x: hidden !important;
    width: 100%;
    position: relative;
}

* {
    max-width: 100%;
}

img, picture, video, iframe, figure {
    max-width: 100%;
    height: auto;
}

/* ===== UTILITY CLASSES ===== */
.text-center {
    text-align: center;
}

.mt-20 {
    margin-top: 20px;
}

.mb-20 {
    margin-bottom: 20px;
}

.hidden {
    display: none !important;
}