/* Enhanced Global Styles */
:root {
    --primary-color: #3a5bbf;
    --primary-light: #5a78d7;
    --primary-dark: #2a4395;
    --secondary-color: #f5b642;
    --secondary-light: #ffd176;
    --secondary-dark: #d99618;
    --accent-color: #6bd5e1;
    --dark-color: #1c2331;
    --light-color: #f7f9fc;
    --success-color: #28a745;
    --error-color: #dc3545;
    --text-color: #333;
    --text-light: #6e7891;
    --gray-color: #6c757d;
    --gray-light: #e9ecef;
    --box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    --box-shadow-hover: 0 8px 28px rgba(0, 0, 0, 0.15);
    --transition: all 0.3s ease;
    --border-radius: 15px;
    --donation-primary: #28a745;
    --donation-secondary: #e0e0e0;
    --donation-light: #f8f9fa;
    --donation-dark: #333;
    --donation-border: #ccc;
    --donation-gradient: linear-gradient(to right, #28a745, #e0e0e0);
}

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

body {
    font-family: 'Open Sans', sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--light-color);
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Georgia', serif;
    margin-bottom: 1rem;
    line-height: 1.3;
    font-weight: 700;
}

p {
    margin-bottom: 1.2rem;
    color: var(--text-light);
}

a {
    text-decoration: none;
    color: var(--primary-color);
    transition: var(--transition);
    position: relative;
}

a:hover {
    color: var(--secondary-color);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    border-radius: 6px;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

.hidden {
    display: none !important;
}

.alt-bg {
    background-color: var(--light-color);
    position: relative;
    overflow: hidden;
}

.alt-bg::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(90, 120, 215, 0.03) 0%, rgba(255, 255, 255, 0) 70%);
    z-index: 0;
}

/* Center section headings */
.section-heading {
    text-align: center;
    width: 100%;
    margin-bottom: 3rem;
    position: relative;
}

.section-heading h2 {
    color: var(--primary-color);
    font-size: 2.5rem;
    margin: 0 auto 1.5rem;
    position: relative;
    display: inline-block;
}

.section-heading h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 70px;
    height: 3px;
    background: linear-gradient(to right, var(--primary-color), var(--secondary-color));
    border-radius: 2px;
}

.section-heading p {
    max-width: 700px;
    margin: 1.5rem auto;
    color: var(--text-light);
    font-size: 1.1rem;
}

/* Enhanced Buttons */
.btn, .btn-small, .btn-secondary, .nav-btn {
    display: inline-block;
    background: linear-gradient(to right, var(--primary-color), var(--primary-light));
    color: white;
    padding: 0.9rem 1.8rem;
    border: none;
    border-radius: 30px;
    cursor: pointer;
    transition: var(--transition);
    font-weight: 600;
    text-align: center;
    box-shadow: 0 4px 15px rgba(58, 91, 191, 0.25);
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn:hover, .btn-small:hover, .nav-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(58, 91, 191, 0.35);
}

.btn::after, .btn-small::after, .btn-secondary::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, var(--primary-light), var(--primary-color));
    z-index: -1;
    transition: opacity 0.3s ease;
    opacity: 0;
}

.btn:hover::after, .btn-small:hover::after, .btn-secondary:hover::after {
    opacity: 1;
}

.btn-small {
    padding: 0.6rem 1.2rem;
    font-size: 0.9rem;
    border-radius: 25px;
}

.btn-secondary {
    background: linear-gradient(to right, var(--secondary-color), var(--secondary-light));
    box-shadow: 0 4px 15px rgba(245, 182, 66, 0.25);
}

.btn-secondary::after {
    background: linear-gradient(to right, var(--secondary-light), var(--secondary-color));
}

.btn-secondary:hover {
    box-shadow: 0 6px 20px rgba(245, 182, 66, 0.35);
}

.btn-text {
    color: var(--primary-color);
    display: inline-block;
    padding: 0.5rem 0;
    font-weight: 600;
    position: relative;
}

.btn-text::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(to right, var(--primary-color), var(--secondary-color));
    transition: width 0.3s ease;
}

.btn-text:hover {
    color: var(--primary-dark);
}

.btn-text:hover::after {
    width: 100%;
}

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

.nav-btn:hover {
    background: var(--primary-color);
    color: white;
}

/* Enhanced Header */
header {
    background-color: rgba(255, 255, 255, 0.98);
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.06);
    position: sticky;
    top: 0;
    z-index: 100;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(222, 226, 230, 0.7);
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    z-index: 10;
    position: relative;
}

.logo a {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: #333;
    font-weight: 700;
    transition: all 0.3s ease;
}

.logo-image {
    height: 50px;
    width: auto;
    margin-right: 10px;
    transition: all 0.3s ease;
}

.logo-text {
    font-size: 1.5rem;
    font-weight: 700;
    color: #21214b;
    transition: all 0.3s ease;
    line-height: 1.2;
    letter-spacing: 0.5px;
    position: relative;
}

/* Responsive Adjustments */
@media (max-width: 1200px) {
    .hero-content h1 {
        font-size: 3rem;
    }
}

@media (max-width: 992px) {
    .logo-text {
        font-size: 1.3rem;
    }
    
    .hero-content h1 {
        font-size: 2.5rem;
    }
}

@media (max-width: 768px) {
    .logo-image {
        height: 40px;
    }
    
    .logo-text {
        font-size: 1.2rem;
    }
    
    .hero-content h1 {
        font-size: 2.2rem;
        padding: 0 15px;
    }
}

@media (max-width: 576px) {
    .logo-image {
        height: 35px;
    }
    
    .logo-text {
        font-size: 1.1rem;
    }
    
    .hero-content h1 {
        font-size: 1.8rem;
        padding: 0 10px;
    }
}

@media (max-width: 380px) {
    .logo-image {
        height: 30px;
        margin-right: 6px;
    }
    
    .logo-text {
        font-size: 0.95rem;
    }
    
    .hero-content h1 {
        font-size: 1.6rem;
    }
}

/* Hide text when image is present */
.logo-image:not([src=""]):not([src="img/church-logo.png"]) ~ .logo-text {
    display:block;
}

/* Responsive logo */
@media (max-width: 768px) {
    .logo-image {
        max-height: 45px;
    }
    
    .logo-text {
        font-size: 1.5rem;
    }
}

@media (max-width: 576px) {
    .logo-image {
        max-height: 40px;
    }
    
    .logo-text {
        font-size: 1.3rem;
    }
}

nav {
    display: flex;
    align-items: center;
}

.nav-menu {
    display: flex;
}

.nav-menu li {
    margin-left: 1.8rem;
    position: relative;
}

.nav-menu a {
    color: var(--dark-color);
    font-weight: 600;
    position: relative;
    padding: 1.2rem 0;
    display: block;
    font-size: 0.95rem;
    letter-spacing: 0.3px;
}

.nav-menu a.active, .nav-menu a:hover {
    color: var(--primary-color);
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 3px;
    background: linear-gradient(to right, var(--primary-color), var(--secondary-color));
    transition: width 0.3s ease;
    transform-origin: left;
}

.nav-menu a:hover::after, .nav-menu a.active::after {
    width: 100%;
}

.mobile-menu-btn {
    display: none;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    z-index: 101;
}

.mobile-menu-btn span {
    display: block;
    width: 25px;
    height: 2px;
    margin: 6px 0;
    background-color: var(--primary-color);
    transition: transform 0.3s, opacity 0.3s;
    border-radius: 2px;
}

.mobile-menu-btn.active span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

.mobile-menu-btn.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-btn.active span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

/* Enhanced Hero Section */
.hero {
    background: linear-gradient(to right, rgba(28, 35, 49, 0.8), rgba(58, 91, 191, 0.8)), url('https://source.unsplash.com/random/1200x800/?church');
    background-size: cover;
    background-position: center;
    color: white;
    text-align: center;
    padding: 8rem 1rem;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100" preserveAspectRatio="none"><polygon fill="rgba(255,255,255,0.05)" points="0,100 100,0 100,100"/></svg>');
    background-size: cover;
}

.hero .container {
    position: relative;
    z-index: 2;
}

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    line-height: 1.2;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    animation: fadeInUp 1s ease-out;
}

.hero p {
    font-size: 1.4rem;
    margin-bottom: 2.5rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    color: rgba(255, 255, 255, 0.9);
    animation: fadeInUp 1s ease-out 0.2s;
    animation-fill-mode: both;
}

.hero .btn {
    animation: fadeInUp 1s ease-out 0.4s;
    animation-fill-mode: both;
    padding: 1rem 2.5rem;
    font-size: 1.1rem;
}

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

/* Section Styles */
section {
    padding: 5rem 0;
    position: relative;
}

/* Enhance text visibility on page headers with background images */
.page-header {
    position: relative;
    padding: 80px 0;
    text-align: center;
    background-size: cover;
    background-position: center;
    color: #fff;
}

/* Keep the overlay for text legibility */
.page-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(33, 33, 75, 0.75);
    z-index: 1;
}

.page-header .container {
    position: relative;
    z-index: 2; /* Ensure text is above the overlay */
}

.page-header h1 {
    font-size: 2.8rem;
    margin-bottom: 20px;
    color: #fff;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3); /* Add text shadow for better readability */
}

.page-header p {
    font-size: 1.2rem;
    max-width: 700px;
    margin: 0 auto;
    color: rgba(255, 255, 255, 0.9);
    text-shadow: 0 1px 2px rgba(0,0,0,0.2);
}

/* Individual page headers with correct paths to images folder */
.page-header.about-header {
    background-image: url('../images/about\ head.jpg');
}

.page-header.services-header {
    background-image: url('../images/welcome.jpg');
}

.page-header.leadership-header {
    background-image: url('../images/lead.jpg');
}

.page-header.events-header {
    background-image: url('../images/events-header-bg.jpg');
}

.page-header.blog-header {
    background-image: url('../images/blog-header-bg.jpg');
}

.page-header.contact-header {
    background-image: url('../images/welcome.jpg');
}

.page-header.donate-header {
    background-image: url('../images/generosity.jpg');
}
.page-header{
    background-image: url('../images/sermon2.jpg');
}

/* Mission Section */
.mission {
    text-align: center;
    padding: 4rem 0;
    background-color: white;
    position: relative;
}

.mission h2 {
    color: var(--primary-color);
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
}

.mission p {
    max-width: 800px;
    margin: 0 auto;
    font-size: 1.15rem;
    line-height: 1.8;
}

/* Enhanced Cards */
.preview-section {
    padding: 100px 0;
    background: #fff;
}

.preview-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.preview-card {
    background: #fff;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.07);
    transition: all 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.preview-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.1);
}

.preview-image {
    height: 220px;
    position: relative;
    overflow: hidden;
}

.preview-image img {
    transition: transform 0.5s ease;
}

.preview-card:hover .preview-image img {
    transform: scale(1.1);
}

.preview-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to top, rgba(33, 33, 75, 0.8), rgba(33, 33, 75, 0.2));
    z-index: 1;
}

.preview-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 70px;
    height: 70px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
    border: 2px solid rgba(255, 255, 255, 0.4);
    transition: all 0.3s ease;
}

.preview-card:hover .preview-icon {
    background: var(--donation-primary);
    border-color: var(--donation-primary);
    transform: translate(-50%, -50%) scale(1.1);
}

.preview-icon i {
    color: #fff;
    font-size: 1.8rem;
}

.preview-content {
    padding: 30px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.preview-content h3 {
    font-size: 1.4rem;
    margin-bottom: 15px;
    color: var(--donation-dark);
}

.preview-content p {
    color: #666;
    line-height: 1.6;
    margin-bottom: 20px;
    flex-grow: 1;
}

.preview-content .btn-text {
    align-self: flex-start;
    color: var(--donation-primary);
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    transition: all 0.3s ease;
    margin-top: auto;
}

.preview-content .btn-text i {
    margin-left: 5px;
    transition: transform 0.3s ease;
}

.preview-content .btn-text:hover {
    color: var(--donation-secondary);
}

.preview-content .btn-text:hover i {
    transform: translateX(5px);
}

/* Responsive adjustments */
@media (max-width: 992px) {
    .preview-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .preview-section {
        padding: 70px 0;
    }
}

@media (max-width: 576px) {
    .preview-grid {
        grid-template-columns: 1fr;
    }
}

/* Enhanced CTA Section */


/* Enhanced Footer */
footer {
    background-color: var(--dark-color);
    color: white;
    padding: 5rem 0 1.5rem;
    position: relative;
}

footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: linear-gradient(to right, var(--primary-color), var(--secondary-color));
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-section h3 {
    color: var(--secondary-color);
    margin-bottom: 1.5rem;
    font-size: 1.3rem;
    position: relative;
    display: inline-block;
}

.footer-section h3::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 40px;
    height: 2px;
    background: var(--secondary-color);
}

.footer-section p {
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.8;
}

.social-links {
    display: flex;
    gap: 10px;
    margin-top: 1rem;
}

.social-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: white;
    transition: var(--transition);
    font-size: 1.1rem;
}

.social-icon:hover {
    background-color: var(--primary-color);
    transform: translateY(-3px);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.6);
}

/* Mobile Navigation */
@media (max-width: 768px) {
    .nav-menu {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        background-color: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(10px);
        -webkit-backdrop-filter: blur(10px);
        z-index: 100;
        transition: var(--transition);
    }
    
    .nav-menu.active {
        display: flex;
    }
    
    .nav-menu li {
        margin: 1.5rem 0;
    }
    
    .nav-menu a {
        font-size: 1.2rem;
        padding: 0.5rem 1.5rem;
    }
    
    .mobile-menu-btn {
        display: block;
    }
    
    .hero h1 {
        font-size: 2.5rem;
    }
}

/* Responsive adjustments */
@media (max-width: 992px) {
    .preview-cards {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    }
    
    .hero h1 {
        font-size: 3rem;
    }
    
    .section-heading h2 {
        font-size: 2.2rem;
    }
}

@media (max-width: 576px) {
    .hero h1 {
        font-size: 2rem;
    }
    
    .hero p {
        font-size: 1.1rem;
    }
    
    .page-header h1 {
        font-size: 2.2rem;
    }
    
    .btn, .btn-small {
        display: block;
        width: 100%;
        text-align: center;
    }
    
    .section-heading h2 {
        font-size: 1.8rem;
    }
    
    .preview-cards {
        grid-template-columns: 1fr;
    }
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideInFromBottom {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fadeIn {
    animation: fadeIn 1s ease forwards;
}

.animate-slideUp {
    animation: slideInFromBottom 0.8s ease forwards;
}

/* Decorative elements */
.divider {
    height: 5px;
    width: 70px;
    background: linear-gradient(to right, var(--primary-color), var(--secondary-color));
    margin: 2rem auto;
    border-radius: 5px;
}

.shape-divider {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    overflow: hidden;
    line-height: 0;
}

.shape-divider svg {
    position: relative;
    display: block;
    width: calc(100% + 1.3px);
    height: 80px;
}

.shape-divider .shape-fill {
    fill: #FFFFFF;
}

/* About Page Specific Styling */
.about-section {
    padding: 6rem 0;
    position: relative;
    overflow: hidden;
    background-color: white;
}

.about-section.alt-bg {
    background-color: var(--light-color);
}

.content-with-image {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    position: relative;
    z-index: 2;
}

.content-with-image.reverse {
    grid-template-columns: 1fr 1fr;
    direction: rtl;
}

.content-with-image.reverse .content-text {
    direction: ltr;
}

.content-text {
    position: relative;
    animation: fadeInRight 1s ease-out;
}

.content-text h2 {
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    font-size: 2.2rem;
    position: relative;
    display: inline-block;
}

.content-text h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 50px;
    height: 3px;
    background: linear-gradient(to right, var(--primary-color), var(--secondary-color));
    border-radius: 2px;
}

.content-text p {
    margin-bottom: 1.2rem;
    line-height: 1.8;
    color: var(--text-light);
    font-size: 1.05rem;
}

.content-image {
    height: 450px;
    border-radius: 12px;
    background-color: var(--gray-light);
    background-size: cover;
    background-position: center;
    box-shadow: var(--box-shadow);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    animation: fadeInLeft 1s ease-out;
}

.content-image:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: var(--box-shadow-hover);
}

.content-image::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0), rgba(0, 0, 0, 0.3));
    z-index: 1;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.content-image:hover::before {
    opacity: 1;
}

.content-image.history-image {
    background-image: url('https://source.unsplash.com/random/600x800/?church-history');
}

.content-image.beliefs-image {
    background-image: url('https://source.unsplash.com/random/600x800/?bible-study');
}

.content-image.mission-image {
    background-image: url('https://source.unsplash.com/random/600x800/?community-service');
}

.content-image.vision-image {
    background-image: url('https://source.unsplash.com/random/600x800/?church-worship');
}

.about-section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(90, 120, 215, 0.05) 0%, rgba(255, 255, 255, 0) 70%);
    z-index: 0;
}

.about-section.alt-bg::before {
    left: -50%;
    right: auto;
    background: radial-gradient(circle, rgba(245, 182, 66, 0.05) 0%, rgba(255, 255, 255, 0) 70%);
}

.about-values {
    margin-top: 4rem;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.value-card {
    background: white;
    border-radius: 12px;
    padding: 2rem;
    box-shadow: var(--box-shadow);
    transition: var(--transition);
    position: relative;
    top: 0;
    text-align: center;
    border-top: 4px solid var(--primary-color);
}

.value-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--box-shadow-hover);
}

.value-card:nth-child(2) {
    border-top-color: var(--secondary-color);
}

.value-card:nth-child(3) {
    border-top-color: var(--accent-color);
}

.value-icon {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    color: var(--primary-color);
    background: var(--light-color);
    width: 80px;
    height: 80px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.value-card:nth-child(2) .value-icon {
    color: var(--secondary-color);
}

.value-card:nth-child(3) .value-icon {
    color: var(--accent-color);
}

.value-card h3 {
    margin-bottom: 1rem;
    font-size: 1.4rem;
    color: var(--dark-color);
}

.value-card p {
    color: var(--text-light);
    line-height: 1.7;
}

.about-cta {
    background: linear-gradient(to right, var(--primary-color), var(--primary-light));
    color: white;
    text-align: center;
    padding: 6rem 0;
    position: relative;
    overflow: hidden;
}

.about-cta::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1440 320"><path fill="rgba(255,255,255,0.1)" d="M0,128L48,144C96,160,192,192,288,197.3C384,203,480,181,576,154.7C672,128,768,96,864,101.3C960,107,1056,149,1152,149.3C1248,149,1344,107,1392,85.3L1440,64L1440,320L1392,320C1344,320,1248,320,1152,320C1056,320,960,320,864,320C768,320,672,320,576,320C480,320,384,320,288,320C192,320,96,320,48,320L0,320Z"></path></svg>');
    background-size: cover;
    opacity: 0.5;
}

.about-cta .container {
    position: relative;
    z-index: 2;
}

.about-cta h2 {
    font-size: 2.8rem;
    margin-bottom: 1.5rem;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.about-cta p {
    color: rgba(255, 255, 255, 0.9);
    max-width: 700px;
    margin: 0 auto 2.5rem;
    font-size: 1.2rem;
}

.about-cta .btn {
    background: white;
    color: var(--primary-dark);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.15);
}

.about-cta .btn:hover {
    background: var(--light-color);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

.timeline {
    position: relative;
    max-width: 1000px;
    margin: 4rem auto 0;
    padding: 0 2rem;
}

.timeline::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: 100%;
    background: linear-gradient(to bottom, var(--primary-color), var(--secondary-color));
    border-radius: 2px;
}

.timeline-item {
    position: relative;
    margin-bottom: 3rem;
    width: 50%;
    padding: 0 2rem;
}

.timeline-item:nth-child(odd) {
    left: 0;
    text-align: right;
}

.timeline-item:nth-child(even) {
    left: 50%;
    text-align: left;
}

.timeline-item::before {
    content: '';
    position: absolute;
    top: 0;
    width: 16px;
    height: 16px;
    background-color: var(--secondary-color);
    border-radius: 50%;
    box-shadow: 0 0 0 4px var(--light-color), 0 0 0 8px rgba(245, 182, 66, 0.3);
}

.timeline-item:nth-child(odd)::before {
    right: -10px;
}

.timeline-item:nth-child(even)::before {
    left: -10px;
}

.timeline-date {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: var(--primary-color);
    color: white;
    border-radius: 20px;
    font-weight: 600;
    margin-bottom: 1rem;
    box-shadow: 0 3px 10px rgba(58, 91, 191, 0.2);
}

.timeline-content {
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: var(--box-shadow);
    transition: var(--transition);
}

.timeline-content:hover {
    transform: translateY(-5px);
    box-shadow: var(--box-shadow-hover);
}

.timeline-content h3 {
    margin-bottom: 0.8rem;
    color: var(--primary-color);
}

.timeline-content p {
    color: var(--text-light);
    margin-bottom: 0;
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@media (max-width: 992px) {
    .content-with-image, .content-with-image.reverse {
        grid-template-columns: 1fr;
        gap: 3rem;
        direction: ltr;
    }
    
    .content-text, .content-image {
        animation: fadeInUp 1s ease-out;
    }
    
    .timeline::before {
        left: 30px;
    }
    
    .timeline-item {
        width: 100%;
        padding-left: 70px;
        padding-right: 0;
        text-align: left;
    }
    
    .timeline-item:nth-child(odd) {
        left: 0;
        text-align: left;
    }
    
    .timeline-item:nth-child(even) {
        left: 0;
    }
    
    .timeline-item:nth-child(odd)::before,
    .timeline-item:nth-child(even)::before {
        left: 22px;
    }
}

@media (max-width: 576px) {
    .about-section {
        padding: 4rem 0;
    }
    
    .content-text h2 {
        font-size: 1.8rem;
    }
    
    .content-image {
        height: 300px;
    }
    
    .about-cta h2 {
        font-size: 2rem;
    }
    
    .about-values {
        grid-template-columns: 1fr;
    }
    
    .timeline {
        padding: 0 1rem;
    }
    
    .timeline-item {
        padding-left: 60px;
    }
}

/* Leadership Page Styling */
.leadership-section {
    padding: 6rem 0;
    background-color: white;
    position: relative;
    overflow: hidden;
}

.leadership-section::before {
    content: '';
    position: absolute;
    top: -30%;
    left: -30%;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(90, 120, 215, 0.05) 0%, rgba(255, 255, 255, 0) 70%);
    z-index: 0;
}

.featured-leader {
    display: grid;
    grid-template-columns: 400px 1fr;
    gap: 3.5rem;
    position: relative;
    z-index: 2;
    margin-bottom: 5rem;
    background-color: white;
    border-radius: 16px;
    box-shadow: var(--box-shadow);
    overflow: hidden;
    transition: var(--transition);
}

.featured-leader:hover {
    transform: translateY(-5px);
    box-shadow: var(--box-shadow-hover);
}

.leader-image {
    height: 100%;
    background-color: var(--gray-light);
    background-size: cover;
    background-position: center;
    position: relative;
}

.leader-image::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 40px;
    height: 100%;
    background: linear-gradient(to left, rgba(255, 255, 255, 1), rgba(255, 255, 255, 0));
    z-index: 1;
}

.pastor-image {
    background-image: url('https://source.unsplash.com/random/600x800/?pastor');
}

.leader-info {
    padding: 3rem 3rem 3rem 0;
    position: relative;
    animation: fadeInRight 1s ease-out;
}

.leader-info h2 {
    color: var(--primary-color);
    font-size: 2.2rem;
    margin-bottom: 0.5rem;
    position: relative;
    display: inline-block;
}

.leader-info h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 50px;
    height: 3px;
    background: linear-gradient(to right, var(--primary-color), var(--secondary-color));
    border-radius: 2px;
}

.leader-info h3 {
    color: var(--secondary-color);
    font-size: 1.3rem;
    margin-top: 0;
    margin-bottom: 2rem;
    font-weight: 600;
}

.leader-info p {
    margin-bottom: 1.2rem;
    line-height: 1.8;
    color: var(--text-light);
    font-size: 1.05rem;
}

.leadership-grid {
    padding: 5rem 0;
    position: relative;
    z-index: 2;
}

.leadership-grid.alt-bg {
    background-color: var(--light-color);
    position: relative;
    overflow: hidden;
}

.leadership-grid.alt-bg::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(245, 182, 66, 0.05) 0%, rgba(255, 255, 255, 0) 70%);
    z-index: 0;
}

.leadership-grid h2 {
    text-align: center;
    color: var(--primary-color);
    margin-bottom: 3rem;
    font-size: 2.2rem;
    position: relative;
    display: inline-block;
    left: 50%;
    transform: translateX(-50%);
}

.leadership-grid h2::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 70px;
    height: 3px;
    background: linear-gradient(to right, var(--primary-color), var(--secondary-color));
    border-radius: 2px;
}

.leader-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 2.5rem;
    position: relative;
    z-index: 2;
}

.leader-card {
    text-align: center;
    background-color: white;
    border-radius: 12px;
    padding: 2rem;
    box-shadow: var(--box-shadow);
    transition: var(--transition);
    position: relative;
    top: 0;
}

.leader-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--box-shadow-hover);
}

.leader-card-image {
    height: 180px;
    width: 180px;
    margin: 0 auto 1.5rem;
    border-radius: 50%;
    background-color: var(--gray-light);
    background-size: cover;
    background-position: center;
    border: 5px solid white;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.leader-card:hover .leader-card-image {
    transform: scale(1.05);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.leader-card-image::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(58, 91, 191, 0.2), rgba(245, 182, 66, 0.2));
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 1;
}

.leader-card:hover .leader-card-image::before {
    opacity: 1;
}

.leader-card h3 {
    margin-bottom: 0.5rem;
    font-size: 1.4rem;
    color: var(--dark-color);
    transition: color 0.3s ease;
}

.leader-card:hover h3 {
    color: var(--primary-color);
}

.leader-card p {
    color: var(--secondary-color);
    font-weight: 600;
    font-size: 1.05rem;
    margin-bottom: 1rem;
}

.leader-card .social-links {
    justify-content: center;
    margin-top: 1.5rem;
}

.leader-card .social-icon {
    background-color: var(--light-color);
    color: var(--primary-color);
    width: 36px;
    height: 36px;
    font-size: 0.9rem;
}

.leader-card .social-icon:hover {
    background-color: var(--primary-color);
    color: white;
}

.leader-quote {
    font-style: italic;
    position: relative;
    padding-left: 1.5rem;
    margin-top: 1.5rem;
    border-left: 3px solid var(--primary-light);
}

.leader-quote p {
    color: var(--text-light);
    font-size: 0.95rem;
}

.leadership-cta {
    background: linear-gradient(135deg, var(--primary-dark), var(--primary-light));
    color: white;
    text-align: center;
    padding: 6rem 0;
    position: relative;
    overflow: hidden;
}

.leadership-cta::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1440 320"><path fill="rgba(255,255,255,0.1)" d="M0,64L48,80C96,96,192,128,288,138.7C384,149,480,139,576,144C672,149,768,171,864,165.3C960,160,1056,128,1152,117.3C1248,107,1344,117,1392,122.7L1440,128L1440,320L1392,320C1344,320,1248,320,1152,320C1056,320,960,320,864,320C768,320,672,320,576,320C480,320,384,320,288,320C192,320,96,320,48,320L0,320Z"></path></svg>');
    background-size: cover;
    opacity: 0.5;
}

.leadership-cta .container {
    position: relative;
    z-index: 2;
}

.leadership-cta h2 {
    font-size: 2.8rem;
    margin-bottom: 1.5rem;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.leadership-cta p {
    color: rgba(255, 255, 255, 0.9);
    max-width: 700px;
    margin: 0 auto 2.5rem;
    font-size: 1.2rem;
}

.leadership-cta .btn {
    background: white;
    color: var(--primary-dark);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.15);
}

.leadership-cta .btn:hover {
    background: var(--light-color);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

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

.leader-card {
    animation: fadeInUp 0.8s ease forwards;
    opacity: 0;
}

.leader-card:nth-child(2) {
    animation-delay: 0.2s;
}

.leader-card:nth-child(3) {
    animation-delay: 0.4s;
}

.leader-card:nth-child(4) {
    animation-delay: 0.6s;
}

@media (max-width: 992px) {
    .featured-leader {
        grid-template-columns: 1fr;
        max-width: 600px;
        margin-left: auto;
        margin-right: auto;
    }
    
    .leader-image {
        height: 400px;
    }
    
    .leader-image::after {
        display: none;
    }
    
    .leader-info {
        padding: 2rem;
    }
    
    .leadership-grid h2 {
        width: 100%;
        left: 0;
        transform: none;
    }
}

@media (max-width: 768px) {
    .leader-grid {
        grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    }
}

@media (max-width: 576px) {
    .leadership-section {
        padding: 4rem 0;
    }
    
    .leader-image {
        height: 300px;
    }
    
    .leader-info h2 {
        font-size: 1.8rem;
    }
    
    .leader-info h3 {
        font-size: 1.2rem;
    }
    
    .leadership-grid {
        padding: 3rem 0;
    }
    
    .leadership-grid h2 {
        font-size: 1.8rem;
    }
    
    .leader-card-image {
        height: 150px;
        width: 150px;
    }
    
    .leader-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
        max-width: 280px;
        margin: 0 auto;
    }
    
    .leadership-cta h2 {
        font-size: 2rem;
    }
}

/* Services Page Styling */
.service-times, 
.ministries, 
.small-groups {
    padding: 5rem 0;
    position: relative;
    overflow: hidden;
}

.service-times {
    background-color: white;
}

.service-times::before {
    content: '';
    position: absolute;
    top: -30%;
    left: -30%;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(90, 120, 215, 0.05) 0%, rgba(255, 255, 255, 0) 70%);
    z-index: 0;
}

/* Fix for service times, ministries and small groups headings */
.service-times h2,
.ministries h2,
.small-groups h2 {
    text-align: center;
    color: var(--primary-color);
    margin: 0 auto 3rem;
    font-size: 2.5rem;
    position: relative;
    display: inline-block;
    /* Remove left and transform */
    left: auto;
    transform: none;
}

.service-times h2::after,
.ministries h2::after,
.small-groups h2::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 70px;
    height: 3px;
    background: linear-gradient(to right, var(--primary-color), var(--secondary-color));
    border-radius: 2px;
}

.service-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2.5rem;
    position: relative;
    z-index: 2;
}

.service-card {
    position: relative;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.07);
    padding: 0;
    overflow: hidden;
    background: white;
    transition: transform 0.4s ease, box-shadow 0.4s ease;
    display: flex;
    flex-direction: column;
}

.service-card:hover {
    transform: translateY(-15px);
    box-shadow: 0 15px 35px rgba(58, 91, 191, 0.12);
}

.service-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 1.5rem 0;
}

.service-badge {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    color: white;
    font-size: 0.8rem;
    font-weight: 600;
    padding: 0.4rem 1rem;
    border-radius: 20px;
    box-shadow: 0 3px 10px rgba(58, 91, 191, 0.15);
}

.service-card:nth-child(2) .service-badge {
    background: linear-gradient(135deg, var(--secondary-color), var(--secondary-light));
    box-shadow: 0 3px 10px rgba(245, 182, 66, 0.15);
}

.service-card:nth-child(3) .service-badge {
    background: linear-gradient(135deg, var(--accent-color), #90e0e8);
    box-shadow: 0 3px 10px rgba(107, 213, 225, 0.15);
}

.service-card:nth-child(4) .service-badge {
    background: linear-gradient(135deg, #7c53c3, #a185d6);
    box-shadow: 0 3px 10px rgba(124, 83, 195, 0.15);
}

.service-card h3 {
    padding: 0 1.5rem;
    margin-top: 1rem;
    margin-bottom: 0.5rem;
    font-size: 1.5rem;
    color: var(--dark-color);
}

.service-card .time {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0 1.5rem;
    color: var(--primary-color);
    font-weight: 600;
    margin-bottom: 1rem;
}

.service-card:nth-child(2) .time {
    color: var(--secondary-color);
}

.service-card:nth-child(3) .time {
    color: var(--accent-color);
}

.service-card:nth-child(4) .time {
    color: #7c53c3;
}

.service-card p:not(.time) {
    padding: 0 1.5rem;
    margin-bottom: 1.5rem;
    line-height: 1.7;
    flex-grow: 1;
}

.service-card .btn-small {
    margin: 0 1.5rem 1.5rem;
    align-self: flex-start;
}

.service-card:nth-child(2) .btn-small {
    background: linear-gradient(to right, var(--secondary-color), var(--secondary-light));
    box-shadow: 0 4px 10px rgba(245, 182, 66, 0.2);
}

.service-card:nth-child(3) .btn-small {
    background: linear-gradient(to right, var(--accent-color), #90e0e8);
    box-shadow: 0 4px 10px rgba(107, 213, 225, 0.2);
}

.service-card:nth-child(4) .btn-small {
    background: linear-gradient(to right, #7c53c3, #a185d6);
    box-shadow: 0 4px 10px rgba(124, 83, 195, 0.2);
}

.service-icon {
    margin-bottom: 0;
}

.service-icon .icon-wrapper {
    width: 60px;
    height: 60px;
    margin-bottom: 0;
}

.service-icon i {
    font-size: 1.8rem;
}

/* Ministries Section */
.ministries {
    position: relative;
    padding: 6rem 0;
}

.section-heading {
    text-align: center;
    margin-bottom: 4rem;
}

.section-heading p {
    max-width: 800px;
    margin: 1.5rem auto 0;
    color: var(--text-light);
    font-size: 1.1rem;
    line-height: 1.8;
}

.divider {
    height: 4px;
    width: 70px;
    background: linear-gradient(to right, var(--primary-color), var(--secondary-color));
    margin: 1.5rem auto;
    border-radius: 5px;
}

.ministry-card {
    background-color: white;
    border-radius: 16px;
    padding: 2.5rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    transition: transform 0.4s ease, box-shadow 0.4s ease;
    position: relative;
    overflow: hidden;
    text-align: center;
    border-bottom: 4px solid transparent;
    top: 0;
}

.ministry-card:hover {
    transform: translateY(-15px);
    box-shadow: 0 15px 35px rgba(58, 91, 191, 0.1);
    border-bottom-color: var(--primary-color);
}

.ministry-card:nth-child(even):hover {
    border-bottom-color: var(--secondary-color);
}

.ministry-card a.btn-text {
    margin-top: 1rem;
    display: inline-block;
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.ministry-card:hover a.btn-text {
    opacity: 1;
    transform: translateY(0);
}

.icon-wrapper {
    margin-bottom: 2rem;
    width: 100px;
    height: 100px;
}

.ministry-icon i {
    font-size: 3rem;
}

.ministry-cta {
    text-align: center;
    margin-top: 4rem;
}

.fa-bounce {
    animation-duration: 2s;
}

.ministry-card:hover .fa-bounce {
    animation-iteration-count: infinite;
}

/* Small Groups Section */
.small-groups {
    padding-top: 7rem;
    padding-bottom: 7rem;
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 20 20"><rect width="1" height="1" fill="rgba(58, 91, 191, 0.03)"/></svg>');
}

.group-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2.5rem;
    position: relative;
    z-index: 2;
}

.group-card {
    border-top-width: 6px;
    border-radius: 16px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.07);
    padding: 3rem 2.5rem;
    background: linear-gradient(135deg, #ffffff 0%, #f9fafc 100%);
}

.group-icon .icon-wrapper {
    width: 100px;
    height: 100px;
    background: linear-gradient(135deg, rgba(58, 91, 191, 0.08), rgba(90, 120, 215, 0.12));
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
}

.group-card:nth-child(2) .group-icon .icon-wrapper {
    background: linear-gradient(135deg, rgba(245, 182, 66, 0.08), rgba(245, 182, 66, 0.12));
}

.group-card:nth-child(3) .group-icon .icon-wrapper {
    background: linear-gradient(135deg, rgba(107, 213, 225, 0.08), rgba(107, 213, 225, 0.12));
}

.group-card:nth-child(4) .group-icon .icon-wrapper {
    background: linear-gradient(135deg, rgba(90, 120, 215, 0.08), rgba(120, 150, 245, 0.12));
}

.group-card:hover .group-icon .icon-wrapper {
    transform: translateY(-10px) rotate(5deg);
}

.group-icon i {
    font-size: 2.8rem;
}

.group-card:hover .group-icon i {
    animation: pulse 1.5s infinite;
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); }
}

.group-card .time {
    font-size: 1.15rem;
    padding: 0.4rem 1.2rem;
    background-color: rgba(58, 91, 191, 0.1);
    border-radius: 30px;
    display: inline-block;
    margin-bottom: 1.5rem;
}

.group-card:nth-child(2) .time {
    background-color: rgba(245, 182, 66, 0.1);
}

.group-card:nth-child(3) .time {
    background-color: rgba(107, 213, 225, 0.1);
}

.group-card:nth-child(4) .time {
    background-color: rgba(90, 120, 215, 0.1);
}

/* Service CTA Section */
.service-cta {
    padding: 7rem 0;
    background: linear-gradient(135deg, var(--secondary-color), var(--secondary-dark));
}

.service-cta h2 {
    font-size: 3.2rem;
    margin-bottom: 1.8rem;
    position: relative;
    display: inline-block;
}

.service-cta h2::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 2px;
}

.service-cta .btn {
    padding: 1.2rem 2.8rem;
    font-size: 1.2rem;
    background: white;
    position: relative;
    overflow: hidden;
    z-index: 1;
    transition: all 0.4s ease;
}

.service-cta .btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0%;
    height: 100%;
    background: var(--primary-color);
    z-index: -1;
    transition: width 0.4s ease;
}

.service-cta .btn:hover {
    color: white;
}

.service-cta .btn:hover::before {
    width: 100%;
}

@media (max-width: 992px) {
    .service-times h2,
    .ministries h2,
    .small-groups h2 {
        width: 100%;
        left: 0;
        transform: none;
        font-size: 2.2rem;
    }
    
    .service-grid,
    .group-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    }
}

@media (max-width: 576px) {
    .service-times,
    .ministries,
    .small-groups {
        padding: 4rem 0;
    }
    
    .service-times h2,
    .ministries h2,
    .small-groups h2 {
        font-size: 1.8rem;
    }
    
    .service-grid,
    .group-grid {
        grid-template-columns: 1fr;
        max-width: 320px;
        margin: 0 auto;
    }
    
    .service-cta h2 {
        font-size: 2rem;
    }
}

/* Icon styling */
.icon-wrapper {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 90px;
    height: 90px;
    border-radius: 50%;
    margin-bottom: 1.5rem;
    background: linear-gradient(135deg, rgba(58, 91, 191, 0.1), rgba(90, 120, 215, 0.15));
    position: relative;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.ministry-card:hover .icon-wrapper,
.service-card:hover .icon-wrapper,
.group-card:hover .icon-wrapper,
.value-card:hover .icon-wrapper {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(58, 91, 191, 0.15);
}

.ministry-card:nth-child(even) .icon-wrapper,
.value-card:nth-child(2) .icon-wrapper {
    background: linear-gradient(135deg, rgba(245, 182, 66, 0.1), rgba(217, 150, 24, 0.15));
}

.ministry-card:nth-child(3) .icon-wrapper,
.value-card:nth-child(3) .icon-wrapper,
.group-card:nth-child(3) .icon-wrapper {
    background: linear-gradient(135deg, rgba(107, 213, 225, 0.1), rgba(107, 213, 225, 0.15));
}

.ministry-icon i,
.service-icon i,
.group-icon i,
.value-icon i {
    font-size: 2.5rem;
    color: var(--primary-color);
    transition: transform 0.3s ease;
}

.ministry-card:hover .ministry-icon i,
.service-card:hover .service-icon i,
.group-card:hover .group-icon i,
.value-card:hover .value-icon i {
    transform: scale(1.1);
}

.ministry-card:nth-child(even) .ministry-icon i,
.value-card:nth-child(2) .value-icon i,
.group-card:nth-child(2) .group-icon i {
    color: var(--secondary-color);
}

.ministry-card:nth-child(3) .ministry-icon i,
.value-card:nth-child(3) .value-icon i,
.group-card:nth-child(3) .group-icon i {
    color: var(--accent-color);
}

/* Social icons */
.social-icon i {
    font-size: 1.1rem;
}

/* Enhanced Card Styling */

/* Common Card Styles */
.service-card, .ministry-card, .group-card {
    background: white;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.06);
    transition: transform 0.4s ease, box-shadow 0.4s ease;
    height: 100%;
    overflow: hidden;
    position: relative;
}

.service-card:hover, .ministry-card:hover, .group-card:hover {
    transform: translateY(-12px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

/* Service Cards */
.service-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.service-card {
    display: flex;
    flex-direction: column;
    border-top: 5px solid var(--primary-color);
    padding: 0 0 25px;
}

.service-card:nth-child(2) {
    border-top-color: var(--secondary-color);
}

.service-card:nth-child(3) {
    border-top-color: var(--accent-color);
}

.service-card-header {
    padding: 25px 25px 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.service-badge {
    background: var(--light-color);
    color: var(--primary-color);
    font-weight: 600;
    font-size: 0.85rem;
    padding: 5px 12px;
    border-radius: 30px;
    box-shadow: 0 3px 10px rgba(58, 91, 191, 0.15);
}

.service-card:nth-child(2) .service-badge {
    color: var(--secondary-color);
}

.service-card:nth-child(3) .service-badge {
    color: var(--accent-color);
}

.service-card h3 {
    margin: 20px 25px 10px;
    font-size: 1.5rem;
}

.service-card .time {
    margin: 0 25px 15px;
    color: var(--text-light);
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 8px;
}

.service-card p {
    margin: 0 25px 20px;
    flex-grow: 1;
}

.service-features {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 0 25px 20px;
}

.feature-tag {
    background: var(--light-color);
    padding: 6px 12px;
    border-radius: 30px;
    font-size: 0.8rem;
    color: var(--text-color);
    display: flex;
    align-items: center;
    gap: 5px;
    transition: all 0.3s ease;
}

.service-card:hover .feature-tag {
    background: rgba(58, 91, 191, 0.08);
}

.service-card:nth-child(2):hover .feature-tag {
    background: rgba(245, 182, 66, 0.08);
}

.service-card:nth-child(3):hover .feature-tag {
    background: rgba(107, 213, 225, 0.08);
}

.service-card .btn-small {
    align-self: flex-start;
    margin-left: 25px;
    margin-top: auto;
}

.service-card:nth-child(2) .btn-small {
    background: linear-gradient(to right, var(--secondary-color), var(--secondary-light));
    box-shadow: 0 4px 10px rgba(245, 182, 66, 0.2);
}

.service-card:nth-child(3) .btn-small {
    background: linear-gradient(to right, var(--accent-color), #90e0e8);
    box-shadow: 0 4px 10px rgba(107, 213, 225, 0.2);
}

.service-card:nth-child(4) .btn-small {
    background: linear-gradient(to right, #7c53c3, #a185d6);
    box-shadow: 0 4px 10px rgba(124, 83, 195, 0.2);
}

.service-icon {
    margin-bottom: 0;
}

.service-icon .icon-wrapper {
    width: 60px;
    height: 60px;
    background: var(--light-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.service-card:hover .icon-wrapper {
    background: rgba(58, 91, 191, 0.1);
}

.service-card:nth-child(2):hover .icon-wrapper {
    background: rgba(245, 182, 66, 0.1);
}

.service-card:nth-child(3):hover .icon-wrapper {
    background: rgba(107, 213, 225, 0.1);
}

.service-card-header i {
    font-size: 1.8rem;
    color: var(--primary-color);
}

.service-card:nth-child(2) .service-card-header i {
    color: var(--secondary-color);
}

.service-card:nth-child(3) .service-card-header i {
    color: var(--accent-color);
}

/* Ministry Cards */
.ministry-card {
    text-align: center;
    padding: 40px 30px;
    border-radius: 15px;
}

.ministry-icon {
    position: relative;
    margin-bottom: 25px;
}

.ministry-icon .icon-wrapper {
    width: 85px;
    height: 85px;
    margin: 0 auto;
    background: var(--light-color);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.05);
}

.ministry-icon::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100px;
    height: 100px;
    border-radius: 50%;
    border: 2px dashed var(--primary-light);
    opacity: 0;
    transition: all 0.4s ease;
}

.ministry-card:hover .ministry-icon::after {
    opacity: 1;
    width: 110px;
    height: 110px;
}

.ministry-card:nth-child(2) .ministry-icon::after {
    border-color: var(--secondary-light);
}

.ministry-card:nth-child(3) .ministry-icon::after {
    border-color: var(--accent-color);
}

.ministry-card h3 {
    margin-bottom: 15px;
    font-size: 1.4rem;
}

.ministry-details {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    margin: 20px 0;
}

.ministry-details span {
    background: var(--light-color);
    padding: 6px 12px;
    border-radius: 30px;
    font-size: 0.8rem;
    display: flex;
    align-items: center;
    gap: 5px;
    transition: all 0.3s ease;
}

.ministry-card:hover .ministry-details span {
    background: rgba(58, 91, 191, 0.08);
    transform: translateY(-3px);
}

.ministry-card:nth-child(2):hover .ministry-details span {
    background: rgba(245, 182, 66, 0.08);
}

.ministry-card:nth-child(3):hover .ministry-details span {
    background: rgba(107, 213, 225, 0.08);
}

/* Group Cards */
.group-card {
    display: flex;
    flex-direction: column;
}

.group-card-header {
    padding: 25px 25px 15px;
    display: flex;
    align-items: center;
    gap: 15px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.group-card-header i {
    font-size: 1.5rem;
    color: var(--primary-color);
}

.group-card:nth-child(even) .group-card-header i {
    color: var(--secondary-color);
}

.group-card-header h3 {
    margin: 0;
    font-size: 1.3rem;
}

.group-schedule {
    background: var(--light-color);
    padding: 12px 25px;
    color: var(--text-light);
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 8px;
}

.group-card-content {
    padding: 20px 25px;
    flex-grow: 1;
}

.group-location {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 15px;
    background: var(--light-color);
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    color: var(--text-light);
    transition: all 0.3s ease;
}

.group-card:hover .group-location {
    background: rgba(58, 91, 191, 0.08);
}

.group-card:nth-child(even):hover .group-location {
    background: rgba(245, 182, 66, 0.08);
}

.group-card-footer {
    padding: 0 25px 25px;
    margin-top: auto;
}

/* Button Styling */
.btn-service, .btn-text {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--primary-color);
    font-weight: 600;
    text-decoration: none;
    padding: 6px 0;
    transition: all 0.3s ease;
    position: relative;
}

.btn-service:after, .btn-text:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: currentColor;
    transition: width 0.3s ease;
}

.btn-service:hover:after, .btn-text:hover:after {
    width: 100%;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .service-grid {
        grid-template-columns: 1fr;
    }
    
    .service-card, .ministry-card, .group-card {
        max-width: 400px;
        margin: 0 auto 20px;
    }
}

/* Enhanced "Join Us This Week" Section */
.service-cta {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    padding: 7rem 0;
    position: relative;
    overflow: hidden;
    color: white;
    text-align: center;
}

.service-cta::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1440 320"><path fill="rgba(255,255,255,0.07)" d="M0,160L48,170.7C96,181,192,203,288,181.3C384,160,480,96,576,96C672,96,768,160,864,181.3C960,203,1056,181,1152,154.7C1248,128,1344,96,1392,80L1440,64L1440,320L1392,320C1344,320,1248,320,1152,320C1056,320,960,320,864,320C768,320,672,320,576,320C480,320,384,320,288,320C192,320,96,320,48,320L0,320Z"></path></svg>');
    background-size: cover;
    opacity: 0.7;
}

.service-cta-inner {
    position: relative;
    z-index: 2;
    max-width: 800px;
    margin: 0 auto;
    background: rgba(255, 255, 255, 0.1);
    padding: 3rem;
    border-radius: 20px;
    backdrop-filter: blur(5px);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.service-cta h2 {
    font-size: 3.2rem;
    margin-bottom: 1.5rem;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    position: relative;
    display: inline-block;
}

.service-cta h2::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: var(--secondary-color);
    border-radius: 2px;
}

.service-cta p {
    font-size: 1.3rem;
    margin-bottom: 2.5rem;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.9);
}

.cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 2rem;
}

.service-cta .btn {
    padding: 1.2rem 2.5rem;
    font-size: 1.1rem;
    background: white;
    color: var(--primary-color);
    border-radius: 50px;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
    font-weight: 700;
    letter-spacing: 0.5px;
    border: none;
    transition: all 0.4s ease;
}

.service-cta .btn:hover {
    transform: translateY(-7px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.25);
}

.service-cta .btn-secondary {
    background: transparent;
    color: white;
    border: 2px solid white;
}

.service-cta .btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
}

.service-cta-decoration {
    position: absolute;
    width: 200px;
    height: 200px;
    border-radius: 50%;
    background: radial-gradient(circle, var(--secondary-color) 0%, rgba(255, 255, 255, 0) 70%);
    opacity: 0.3;
    z-index: 1;
}

.service-cta-decoration:nth-child(1) {
    top: -100px;
    left: -100px;
}

.service-cta-decoration:nth-child(2) {
    bottom: -50px;
    right: -50px;
    width: 150px;
    height: 150px;
    background: radial-gradient(circle, var(--accent-color) 0%, rgba(255, 255, 255, 0) 70%);
}

@media (max-width: 768px) {
    .service-cta-inner {
        padding: 2.5rem 1.5rem;
        margin: 0 1rem;
    }
    
    .service-cta h2 {
        font-size: 2.5rem;
    }
    
    .service-cta p {
        font-size: 1.1rem;
    }
    
    .cta-buttons {
        flex-direction: column;
        gap: 15px;
    }
    
    .service-cta .btn {
        padding: 1rem 2rem;
    }
}

/* Events Page Styling */

/* Featured Event Section */
.featured-event {
    padding: 80px 0;
    background-color: white;
}

.featured-event-card {
    display: flex;
    background: white;
    border-radius: 15px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.06);
    overflow: hidden;
    transition: transform 0.4s ease, box-shadow 0.4s ease;
    border-left: 5px solid var(--primary-color);
}

.featured-event-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 25px 45px rgba(0, 0, 0, 0.1);
}

.event-image {
    width: 40%;
    background: url('img/events/harvest-festival.jpg') center/cover no-repeat;
    position: relative;
}

.event-date {
    position: absolute;
    top: 20px;
    left: 20px;
    width: 80px;
    height: 80px;
    background: white;
    border-radius: 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.event-date .month {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--primary-color);
    text-transform: uppercase;
}

.event-date .day {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--text-color);
}

.event-content {
    width: 60%;
    padding: 40px;
}

.event-badge {
    display: inline-block;
    background: var(--primary-light);
    color: var(--primary-color);
    padding: 6px 12px;
    border-radius: 30px;
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 15px;
}

.event-content h3 {
    font-size: 2rem;
    margin-bottom: 15px;
    color: var(--primary-color);
}

.event-time, .event-location {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-light);
    margin-bottom: 10px;
    font-size: 0.95rem;
}

.event-time i, .event-location i {
    color: var(--primary-color);
}

.event-description {
    margin: 20px 0;
    line-height: 1.6;
}

.event-features {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 20px 0;
}

.feature-tag {
    background: var(--light-color);
    padding: 6px 12px;
    border-radius: 30px;
    font-size: 0.8rem;
    display: flex;
    align-items: center;
    gap: 5px;
    transition: all 0.3s ease;
}

.featured-event-card:hover .feature-tag {
    background: rgba(58, 91, 191, 0.08);
}

/* Upcoming Events */
.upcoming-events {
    padding: 80px 0;
    background-color: var(--light-color);
}

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

.event-card {
    background: white;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    overflow: hidden;
    transition: transform 0.4s ease, box-shadow 0.4s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
    border-top: 5px solid var(--primary-color);
}

.event-card:nth-child(2) {
    border-top-color: var(--secondary-color);
}

.event-card:nth-child(3) {
    border-top-color: var(--accent-color);
}

.event-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.event-card-header {
    padding: 25px 25px 0;
    position: relative;
}

.event-date-small {
    width: 70px;
    height: 70px;
    background: white;
    border: 2px solid var(--light-color);
    border-radius: 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    margin-bottom: 15px;
}

.event-date-small .month {
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--primary-color);
    text-transform: uppercase;
}

.event-card:nth-child(2) .event-date-small .month {
    color: var(--secondary-color);
}

.event-card:nth-child(3) .event-date-small .month {
    color: var(--accent-color);
}

.event-date-small .day {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-color);
}

.event-card-content {
    padding: 0 25px 25px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.event-type {
    display: inline-block;
    background: var(--light-color);
    padding: 5px 10px;
    border-radius: 20px;
    font-size: 0.75rem;
    margin-bottom: 15px;
    color: var(--text-light);
}

.event-card h3 {
    font-size: 1.4rem;
    margin-bottom: 10px;
    color: var(--text-color);
}

.event-card .event-time {
    font-size: 0.9rem;
    margin-bottom: 15px;
}

.event-card p {
    margin-bottom: 20px;
}

.event-location {
    margin-top: auto;
    display: inline-flex;
    align-items: center;
    background: var(--light-color);
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    margin-bottom: 15px;
    transition: all 0.3s ease;
}

.event-card:hover .event-location {
    background: rgba(58, 91, 191, 0.08);
}

.event-card:nth-child(2):hover .event-location {
    background: rgba(245, 182, 66, 0.08);
}

.event-card:nth-child(3):hover .event-location {
    background: rgba(107, 213, 225, 0.08);
}

/* Event Categories */
.event-categories {
    padding: 80px 0;
    background-color: white;
}

.category-card {
    background: white;
    border-radius: 15px;
    padding: 40px 30px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    text-align: center;
    transition: all 0.4s ease;
    height: 100%;
}

.category-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.category-icon {
    margin-bottom: 25px;
    position: relative;
}

.category-icon .icon-wrapper {
    width: 85px;
    height: 85px;
    margin: 0 auto;
    background: var(--light-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 1;
    transition: all 0.4s ease;
}

.category-icon::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100px;
    height: 100px;
    border-radius: 50%;
    border: 2px dashed var(--primary-light);
    opacity: 0;
    transition: all 0.4s ease;
}

.category-card:hover .category-icon::after {
    opacity: 1;
    width: 110px;
    height: 110px;
}

.category-icon i {
    font-size: 2rem;
    color: var(--primary-color);
}

.category-card:nth-child(2) .category-icon i {
    color: var(--secondary-color);
}

.category-card:nth-child(3) .category-icon i {
    color: var(--accent-color);
}

.category-card h3 {
    margin-bottom: 15px;
    font-size: 1.4rem;
}

.category-card p {
    margin-bottom: 25px;
    color: var(--text-light);
}

/* Events Calendar */
.events-calendar {
    padding: 80px 0;
    background-color: var(--light-color);
}

.calendar-container {
    background: white;
    border-radius: 15px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.06);
    padding: 30px;
    margin-top: 40px;
}

.calendar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--gray-light);
}

.calendar-header h3 {
    font-size: 1.4rem;
    color: var(--primary-color);
}

.calendar-nav {
    display: flex;
    gap: 10px;
}

.calendar-nav-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--light-color);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-color);
    transition: all 0.3s ease;
}

.calendar-nav-btn:hover {
    background: var(--primary-color);
    color: white;
}

.calendar-body {
    min-height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 30px;
}

.calendar-placeholder {
    text-align: center;
    color: var(--text-light);
    max-width: 400px;
    margin: 0 auto;
}

.calendar-container .btn-small {
    margin: 0 auto;
    display: table;
}

/* Responsive Adjustments */
@media (max-width: 992px) {
    .featured-event-card {
        flex-direction: column;
    }
    
    .event-image, .event-content {
        width: 100%;
    }
    
    .event-image {
        height: 250px;
    }
    
    .events-grid {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    }
}

@media (max-width: 768px) {
    .event-content {
        padding: 30px 25px;
    }
    
    .event-content h3 {
        font-size: 1.6rem;
    }
    
    .events-grid {
        grid-template-columns: 1fr;
        max-width: 450px;
        margin-left: auto;
        margin-right: auto;
    }
    
    .category-card {
        margin-bottom: 30px;
    }
}

@media (max-width: 576px) {
    .event-features {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .calendar-container {
        padding: 20px 15px;
    }
}

/* Calendar Styling */
.calendar-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 4px;
}

.calendar-table th {
    padding: 10px;
    font-weight: 600;
    color: var(--primary-color);
    text-align: center;
}

.calendar-day {
    position: relative;
    height: 60px;
    background: white;
    border-radius: 10px;
    text-align: center;
    vertical-align: top;
    padding: 8px;
    transition: all 0.3s ease;
    cursor: default;
}

.calendar-day.empty {
    background: transparent;
}

.calendar-day .day-number {
    display: inline-block;
    width: 25px;
    height: 25px;
    line-height: 25px;
    text-align: center;
    border-radius: 50%;
}

.calendar-day.today .day-number {
    background: var(--primary-color);
    color: white;
    font-weight: 600;
}

.calendar-day.has-event {
    cursor: pointer;
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.05);
}

.calendar-day.has-event:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.event-indicator {
    display: flex;
    justify-content: center;
    gap: 3px;
    margin-top: 5px;
}

.event-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--primary-color);
}

.event-dot.worship {
    background: var(--primary-color);
}

.event-dot.fellowship {
    background: var(--secondary-color);
}

.event-dot.youth {
    background: var(--accent-color);
}

.event-dot.special {
    background: #e93c3c;
}

.event-dot.prayer {
    background: #7c53c3;
}

.event-popup {
    position: absolute;
    background: white;
    padding: 15px;
    border-radius: 10px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
    z-index: 100;
    width: 200px;
    animation: fadeIn 0.3s ease;
}

.event-type-label {
    display: inline-block;
    padding: 3px 8px;
    border-radius: 15px;
    font-size: 0.7rem;
    font-weight: 600;
    color: white;
    margin-bottom: 8px;
}

.event-type-label.worship {
    background: var(--primary-color);
}

.event-type-label.fellowship {
    background: var(--secondary-color);
}

.event-type-label.youth {
    background: var(--accent-color);
}

.event-type-label.special {
    background: #e93c3c;
}

.event-type-label.prayer {
    background: #7c53c3;
}

.event-popup h4 {
    margin: 0;
    color: var(--text-color);
}

.close-popup {
    position: absolute;
    top: 5px;
    right: 5px;
    background: transparent;
    border: none;
    color: var(--text-light);
    font-size: 1.2rem;
    cursor: pointer;
    padding: 0;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

@media (max-width: 768px) {
    .calendar-day {
        height: 50px;
        padding: 5px;
    }
    
    .calendar-day .day-number {
        width: 20px;
        height: 20px;
        line-height: 20px;
        font-size: 0.8rem;
    }
    
    .event-dot {
        width: 4px;
        height: 4px;
    }
}

@media (max-width: 576px) {
    .calendar-table th {
        font-size: 0.8rem;
        padding: 5px;
    }
    
    .calendar-day {
        height: 40px;
    }
}

/* Hero Slideshow Styling */
.hero-section {
    position: relative;
    height: 80vh;
    min-height: 500px;
    color: white;
    overflow: hidden;
}

.slideshow-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.slideshow-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0;
    transition: opacity 1.5s ease-in-out;
    z-index: 1;
}

.slideshow-slide::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.68); /* Increased from 0.4 to 0.6 */
    z-index: 2;
}

.slideshow-slide.active {
    opacity: 1;
}

.hero-content {
    position: relative;
    z-index: 3;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    text-align: center;
}

.hero-content h1 {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.hero-content p {
    font-size: 1.3rem;
    margin-bottom: 2rem;
    text-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
}

.hero-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
}

@media (max-width: 768px) {
    .hero-content h1 {
        font-size: 2.5rem;
    }
    
    .hero-content p {
        font-size: 1.1rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
        gap: 15px;
    }
}

/* Dropdown Menu Styling */
.has-dropdown {
    position: relative;
}

.has-dropdown > a {
    display: flex;
    align-items: center;
    gap: 5px;
}

.has-dropdown > a i {
    font-size: 0.8rem;
    transition: transform 0.3s ease;
}

.has-dropdown:hover > a i {
    transform: rotate(180deg);
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: white;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    border-radius: 5px;
    width: 200px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s ease;
    z-index: 100;
    padding: 10px 0;
}

.has-dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-menu li {
    display: block;
    margin: 0;
    padding: 0;
}

.dropdown-menu a {
    padding: 10px 20px;
    display: block;
    color: var(--text-color);
    font-size: 0.95rem;
    transition: all 0.3s ease;
    text-decoration: none;
}

.dropdown-menu a:hover {
    background: var(--light-color);
    color: var(--primary-color);
}

.dropdown-menu a::after {
    display: none;
}

/* Mobile dropdown handling */
@media (max-width: 768px) {
    .dropdown-menu {
        position: static;
        width: 100%;
        box-shadow: none;
        background: var(--light-color);
        opacity: 0;
        max-height: 0;
        overflow: hidden;
        visibility: visible;
        transform: none;
        transition: max-height 0.3s ease, opacity 0.3s ease;
        padding: 0;
        margin-left: 20px;
        border-radius: 0;
    }
    
    .has-dropdown.open .dropdown-menu {
        opacity: 1;
        max-height: 500px;
    }
    
    .dropdown-menu a {
        padding: 12px 20px;
    }
    
    .has-dropdown > a {
        width: calc(100% - 50px);
    }
    
    .dropdown-toggle {
        height: 46px;
        width: 46px;
        position: absolute;
        right: 0;
        top: 0;
        z-index: 10;
        background: transparent;
        border: none;
        color: var(--text-color);
        font-size: 1.2rem;
        cursor: pointer;
        display: flex;
        align-items: center;
        justify-content: center;
    }
}

/* Blog Post Page Styles */

.blog-post-section {
    padding: 80px 0;
    background-color: white;
}

.blog-post-container {
    display: grid;
    grid-template-columns: 7fr 3fr;
    gap: 40px;
}

/* Enhanced Global Styles */
:root {
    --primary-color: #3a5bbf;
    --primary-light: #5a78d7;
    --primary-dark: #2a4395;
    --secondary-color: #f5b642;
    --secondary-light: #ffd176;
    --secondary-dark: #d99618;
    --accent-color: #6bd5e1;
    --dark-color: #1c2331;
    --light-color: #f7f9fc;
    --success-color: #28a745;
    --error-color: #dc3545;
    --text-color: #333;
    --text-light: #6e7891;
    --gray-color: #6c757d;
    --gray-light: #e9ecef;
    --box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    --box-shadow-hover: 0 8px 28px rgba(0, 0, 0, 0.15);
    --transition: all 0.3s ease;
    --border-radius: 15px;
    --donation-primary: #28a745;
    --donation-secondary: #e0e0e0;
    --donation-light: #f8f9fa;
    --donation-dark: #333;
    --donation-border: #ccc;
    --donation-gradient: linear-gradient(to right, #28a745, #e0e0e0);
}

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

body {
    font-family: 'Open Sans', sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--light-color);
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Georgia', serif;
    margin-bottom: 1rem;
    line-height: 1.3;
    font-weight: 700;
}

p {
    margin-bottom: 1.2rem;
    color: var(--text-light);
}

a {
    text-decoration: none;
    color: var(--primary-color);
    transition: var(--transition);
    position: relative;
}

a:hover {
    color: var(--secondary-color);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    border-radius: 6px;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

.hidden {
    display: none !important;
}

.alt-bg {
    background-color: var(--light-color);
    position: relative;
    overflow: hidden;
}

.alt-bg::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(90, 120, 215, 0.03) 0%, rgba(255, 255, 255, 0) 70%);
    z-index: 0;
}

/* Center section headings */
.section-heading {
    text-align: center;
    width: 100%;
    margin-bottom: 3rem;
    position: relative;
}

.section-heading h2 {
    color: var(--primary-color);
    font-size: 2.5rem;
    margin: 0 auto 1.5rem;
    position: relative;
    display: inline-block;
}

.section-heading h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 70px;
    height: 3px;
    background: linear-gradient(to right, var(--primary-color), var(--secondary-color));
    border-radius: 2px;
}

.section-heading p {
    max-width: 700px;
    margin: 1.5rem auto;
    color: var(--text-light);
    font-size: 1.1rem;
}

/* Enhanced Buttons */
.btn, .btn-small, .btn-secondary, .nav-btn {
    display: inline-block;
    background: linear-gradient(to right, var(--primary-color), var(--primary-light));
    color: white;
    padding: 0.9rem 1.8rem;
    border: none;
    border-radius: 30px;
    cursor: pointer;
    transition: var(--transition);
    font-weight: 600;
    text-align: center;
    box-shadow: 0 4px 15px rgba(58, 91, 191, 0.25);
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn:hover, .btn-small:hover, .nav-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(58, 91, 191, 0.35);
}

.btn::after, .btn-small::after, .btn-secondary::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, var(--primary-light), var(--primary-color));
    z-index: -1;
    transition: opacity 0.3s ease;
    opacity: 0;
}

.btn:hover::after, .btn-small:hover::after, .btn-secondary:hover::after {
    opacity: 1;
}

.btn-small {
    padding: 0.6rem 1.2rem;
    font-size: 0.9rem;
    border-radius: 25px;
}

.btn-secondary {
    background: linear-gradient(to right, var(--secondary-color), var(--secondary-light));
    box-shadow: 0 4px 15px rgba(245, 182, 66, 0.25);
}

.btn-secondary::after {
    background: linear-gradient(to right, var(--secondary-light), var(--secondary-color));
}

.btn-secondary:hover {
    box-shadow: 0 6px 20px rgba(245, 182, 66, 0.35);
}

.btn-text {
    color: var(--primary-color);
    display: inline-block;
    padding: 0.5rem 0;
    font-weight: 600;
    position: relative;
}

.btn-text::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(to right, var(--primary-color), var(--secondary-color));
    transition: width 0.3s ease;
}

.btn-text:hover {
    color: var(--primary-dark);
}

.btn-text:hover::after {
    width: 100%;
}

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

.nav-btn:hover {
    background: var(--primary-color);
    color: white;
}

/* Enhanced Header */
header {
    background-color: rgba(255, 255, 255, 0.98);
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.06);
    position: sticky;
    top: 0;
    z-index: 100;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(222, 226, 230, 0.7);
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    z-index: 10;
    position: relative;
}

.logo a {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: #333;
    font-weight: 700;
    transition: all 0.3s ease;
}

.logo-image {
    height: 50px;
    width: auto;
    margin-right: 10px;
    transition: all 0.3s ease;
}

.logo-text {
    font-size: 1.5rem;
    font-weight: 700;
    color: #21214b;
    transition: all 0.3s ease;
    line-height: 1.2;
    letter-spacing: 0.5px;
    position: relative;
}

/* Responsive Adjustments */
@media (max-width: 1200px) {
    .hero-content h1 {
        font-size: 3rem;
    }
}

@media (max-width: 992px) {
    .logo-text {
        font-size: 1.3rem;
    }
    
    .hero-content h1 {
        font-size: 2.5rem;
    }
}

@media (max-width: 768px) {
    .logo-image {
        height: 40px;
    }
    
    .logo-text {
        font-size: 1.2rem;
    }
    
    .hero-content h1 {
        font-size: 2.2rem;
        padding: 0 15px;
    }
}

@media (max-width: 576px) {
    .logo-image {
        height: 35px;
    }
    
    .logo-text {
        font-size: 1.1rem;
    }
    
    .hero-content h1 {
        font-size: 1.8rem;
        padding: 0 10px;
    }
}

@media (max-width: 380px) {
    .logo-image {
        height: 30px;
        margin-right: 6px;
    }
    
    .logo-text {
        font-size: 0.95rem;
    }
    
    .hero-content h1 {
        font-size: 1.6rem;
    }
}

/* Hide text when image is present */
.logo-image:not([src=""]):not([src="img/church-logo.png"]) ~ .logo-text {
    display:block;
}

/* Responsive logo */
@media (max-width: 768px) {
    .logo-image {
        max-height: 45px;
    }
    
    .logo-text {
        font-size: 1.5rem;
    }
}

@media (max-width: 576px) {
    .logo-image {
        max-height: 40px;
    }
    
    .logo-text {
        font-size: 1.3rem;
    }
}

nav {
    display: flex;
    align-items: center;
}

.nav-menu {
    display: flex;
}

.nav-menu li {
    margin-left: 1.8rem;
    position: relative;
}

.nav-menu a {
    color: var(--dark-color);
    font-weight: 600;
    position: relative;
    padding: 1.2rem 0;
    display: block;
    font-size: 0.95rem;
    letter-spacing: 0.3px;
}

.nav-menu a.active, .nav-menu a:hover {
    color: var(--primary-color);
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 3px;
    background: linear-gradient(to right, var(--primary-color), var(--secondary-color));
    transition: width 0.3s ease;
    transform-origin: left;
}

.nav-menu a:hover::after, .nav-menu a.active::after {
    width: 100%;
}

.mobile-menu-btn {
    display: none;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    z-index: 101;
}

.mobile-menu-btn span {
    display: block;
    width: 25px;
    height: 2px;
    margin: 6px 0;
    background-color: var(--primary-color);
    transition: transform 0.3s, opacity 0.3s;
    border-radius: 2px;
}

.mobile-menu-btn.active span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

.mobile-menu-btn.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-btn.active span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

/* Enhanced Hero Section */
.hero {
    background: linear-gradient(to right, rgba(28, 35, 49, 0.8), rgba(58, 91, 191, 0.8)), url('https://source.unsplash.com/random/1200x800/?church');
    background-size: cover;
    background-position: center;
    color: white;
    text-align: center;
    padding: 8rem 1rem;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100" preserveAspectRatio="none"><polygon fill="rgba(255,255,255,0.05)" points="0,100 100,0 100,100"/></svg>');
    background-size: cover;
}

.hero .container {
    position: relative;
    z-index: 2;
}

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    line-height: 1.2;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    animation: fadeInUp 1s ease-out;
}

.hero p {
    font-size: 1.4rem;
    margin-bottom: 2.5rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    color: rgba(255, 255, 255, 0.9);
    animation: fadeInUp 1s ease-out 0.2s;
    animation-fill-mode: both;
}

.hero .btn {
    animation: fadeInUp 1s ease-out 0.4s;
    animation-fill-mode: both;
    padding: 1rem 2.5rem;
    font-size: 1.1rem;
}

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

/* Section Styles */
section {
    padding: 5rem 0;
    position: relative;
}

/* Enhance text visibility on page headers with background images */
.page-header {
    position: relative;
    padding: 80px 0;
    text-align: center;
    background-size: cover;
    background-position: center;
    color: #fff;
}

/* Keep the overlay for text legibility */
.page-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(33, 33, 75, 0.75);
    z-index: 1;
}

.page-header .container {
    position: relative;
    z-index: 2; /* Ensure text is above the overlay */
}

.page-header h1 {
    font-size: 2.8rem;
    margin-bottom: 20px;
    color: #fff;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3); /* Add text shadow for better readability */
}

.page-header p {
    font-size: 1.2rem;
    max-width: 700px;
    margin: 0 auto;
    color: rgba(255, 255, 255, 0.9);
    text-shadow: 0 1px 2px rgba(0,0,0,0.2);
}

/* Individual page headers with correct paths to images folder */
.page-header.about-header {
    background-image: url('../images/about\ head.jpg');
}

.page-header.services-header {
    background-image: url('../images/welcome.jpg');
}

.page-header.leadership-header {
    background-image: url('../images/lead.jpg');
}

.page-header.events-header {
    background-image: url('../images/events-header-bg.jpg');
}

.page-header.blog-header {
    background-image: url('../images/blog-header-bg.jpg');
}

.page-header.contact-header {
    background-image: url('../images/welcome.jpg');
}

.page-header.donate-header {
    background-image: url('../images/generosity.jpg');
}
.page-header{
    background-image: url('../images/sermon2.jpg');
}

/* Mission Section */
.mission {
    text-align: center;
    padding: 4rem 0;
    background-color: white;
    position: relative;
}

.mission h2 {
    color: var(--primary-color);
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
}

.mission p {
    max-width: 800px;
    margin: 0 auto;
    font-size: 1.15rem;
    line-height: 1.8;
}

/* Enhanced Cards */
.preview-section {
    padding: 5rem 0;
    background-color: var(--light-color);
}

.preview-section h2 {
    text-align: center;
    color: var(--primary-color);
    margin-bottom: 3rem;
    font-size: 2.5rem;
    position: relative;
}

.preview-section h2::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 70px;
    height: 3px;
    background: linear-gradient(to right, var(--primary-color), var(--secondary-color));
    border-radius: 2px;
}

.preview-cards {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 2.5rem;
}

.card {
    background-color: white;
    border-radius: 12px;
    box-shadow: var(--box-shadow);
    overflow: hidden;
    transition: var(--transition);
    position: relative;
    top: 0;
}

.card:hover {
    transform: translateY(-10px);
    box-shadow: var(--box-shadow-hover);
}

.card-image {
    height: 220px;
    background-color: var(--gray-light);
    background-size: cover;
    background-position: center;
    position: relative;
    overflow: hidden;
}

.card-image::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0), rgba(0, 0, 0, 0.4));
    z-index: 1;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.card:hover .card-image::before {
    opacity: 1;
}

.pastor-image {
    background-image: url('../images/lead.jpg');
}

.card-content {
    padding: 2rem;
}

.card-content h3 {
    margin-bottom: 0.8rem;
    color: var(--dark-color);
    font-size: 1.4rem;
    transition: color 0.3s ease;
}

.card:hover .card-content h3 {
    color: var(--primary-color);
}

.card-content p {
    color: var(--text-light);
    margin-bottom: 1.5rem;
    line-height: 1.6;
}


/* Reset and specifically target the CTA section */
section.cta-section {
    background: #21214b;
    position: relative;
    padding: 80px 0;
    margin: 0;
}

/* Add overlay if needed */
section.cta-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(rgba(33, 33, 75, 0.95), rgba(33, 33, 75, 0.95));
    z-index: 1;
}

/* Style the container within CTA */
section.cta-section .container {
    position: relative;
    z-index: 2;
    color: #ffffff;
    text-align: center;
}

/* Style CTA headings */
section.cta-section h2 {
    color: #ffffff;
    margin-bottom: 15px;
    font-size: 2.5rem;
}

/* Style CTA paragraphs */
section.cta-section p {
    color: #ffffff;
    margin-bottom: 25px;
}

/* Style CTA button */
section.cta-section .btn {
    display: inline-block;
    background: #ffffff;
    color: #21214b;
    padding: 12px 30px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

section.cta-section .btn:hover {
    background: #f8f9fa;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}



/* Enhanced Footer */
footer {
    background-color: var(--dark-color);
    color: white;
    padding: 5rem 0 1.5rem;
    position: relative;
}

footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: linear-gradient(to right, var(--primary-color), var(--secondary-color));
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-section h3 {
    color: var(--secondary-color);
    margin-bottom: 1.5rem;
    font-size: 1.3rem;
    position: relative;
    display: inline-block;
}

.footer-section h3::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 40px;
    height: 2px;
    background: var(--secondary-color);
}

.footer-section p {
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.8;
}

.social-links {
    display: flex;
    gap: 10px;
    margin-top: 1rem;
}

.social-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: white;
    transition: var(--transition);
    font-size: 1.1rem;
}

.social-icon:hover {
    background-color: var(--primary-color);
    transform: translateY(-3px);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.6);
}

/* Mobile Navigation */
@media (max-width: 768px) {
    .nav-menu {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        background-color: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(10px);
        -webkit-backdrop-filter: blur(10px);
        z-index: 100;
        transition: var(--transition);
    }
    
    .nav-menu.active {
        display: flex;
    }
    
    .nav-menu li {
        margin: 1.5rem 0;
    }
    
    .nav-menu a {
        font-size: 1.2rem;
        padding: 0.5rem 1.5rem;
    }
    
    .mobile-menu-btn {
        display: block;
    }
    
    .hero h1 {
        font-size: 2.5rem;
    }
}

/* Responsive adjustments */
@media (max-width: 992px) {
    .preview-cards {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    }
    
    .hero h1 {
        font-size: 3rem;
    }
    
    .section-heading h2 {
        font-size: 2.2rem;
    }
}

@media (max-width: 576px) {
    .hero h1 {
        font-size: 2rem;
    }
    
    .hero p {
        font-size: 1.1rem;
    }
    
    .page-header h1 {
        font-size: 2.2rem;
    }
    
    .btn, .btn-small {
        display: block;
        width: 100%;
        text-align: center;
    }
    
    .section-heading h2 {
        font-size: 1.8rem;
    }
    
    .preview-cards {
        grid-template-columns: 1fr;
    }
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideInFromBottom {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fadeIn {
    animation: fadeIn 1s ease forwards;
}

.animate-slideUp {
    animation: slideInFromBottom 0.8s ease forwards;
}

/* Decorative elements */
.divider {
    height: 5px;
    width: 70px;
    background: linear-gradient(to right, var(--primary-color), var(--secondary-color));
    margin: 2rem auto;
    border-radius: 5px;
}

.shape-divider {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    overflow: hidden;
    line-height: 0;
}

.shape-divider svg {
    position: relative;
    display: block;
    width: calc(100% + 1.3px);
    height: 80px;
}

.shape-divider .shape-fill {
    fill: #FFFFFF;
}

/* About Page Specific Styling */
.about-section {
    padding: 6rem 0;
    position: relative;
    overflow: hidden;
    background-color: white;
}

.about-section.alt-bg {
    background-color: var(--light-color);
}

.content-with-image {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    position: relative;
    z-index: 2;
}

.content-with-image.reverse {
    grid-template-columns: 1fr 1fr;
    direction: rtl;
}

.content-with-image.reverse .content-text {
    direction: ltr;
}

.content-text {
    position: relative;
    animation: fadeInRight 1s ease-out;
}

.content-text h2 {
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    font-size: 2.2rem;
    position: relative;
    display: inline-block;
}

.content-text h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 50px;
    height: 3px;
    background: linear-gradient(to right, var(--primary-color), var(--secondary-color));
    border-radius: 2px;
}

.content-text p {
    margin-bottom: 1.2rem;
    line-height: 1.8;
    color: var(--text-light);
    font-size: 1.05rem;
}

.content-image {
    height: 450px;
    border-radius: 12px;
    background-color: var(--gray-light);
    background-size: cover;
    background-position: center;
    box-shadow: var(--box-shadow);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    animation: fadeInLeft 1s ease-out;
}

.content-image:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: var(--box-shadow-hover);
}

.content-image::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0), rgba(0, 0, 0, 0.3));
    z-index: 1;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.content-image:hover::before {
    opacity: 1;
}

.content-image.history-image {
    background-image: url('https://source.unsplash.com/random/600x800/?church-history');
}

.content-image.beliefs-image {
    background-image: url('https://source.unsplash.com/random/600x800/?bible-study');
}

.content-image.mission-image {
    background-image: url('https://source.unsplash.com/random/600x800/?community-service');
}

.content-image.vision-image {
    background-image: url('https://source.unsplash.com/random/600x800/?church-worship');
}

.about-section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(90, 120, 215, 0.05) 0%, rgba(255, 255, 255, 0) 70%);
    z-index: 0;
}

.about-section.alt-bg::before {
    left: -50%;
    right: auto;
    background: radial-gradient(circle, rgba(245, 182, 66, 0.05) 0%, rgba(255, 255, 255, 0) 70%);
}

.about-values {
    margin-top: 4rem;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.value-card {
    background: white;
    border-radius: 12px;
    padding: 2rem;
    box-shadow: var(--box-shadow);
    transition: var(--transition);
    position: relative;
    top: 0;
    text-align: center;
    border-top: 4px solid var(--primary-color);
}

.value-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--box-shadow-hover);
}

.value-card:nth-child(2) {
    border-top-color: var(--secondary-color);
}

.value-card:nth-child(3) {
    border-top-color: var(--accent-color);
}

.value-icon {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    color: var(--primary-color);
    background: var(--light-color);
    width: 80px;
    height: 80px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.value-card:nth-child(2) .value-icon {
    color: var(--secondary-color);
}

.value-card:nth-child(3) .value-icon {
    color: var(--accent-color);
}

.value-card h3 {
    margin-bottom: 1rem;
    font-size: 1.4rem;
    color: var(--dark-color);
}

.value-card p {
    color: var(--text-light);
    line-height: 1.7;
}

.about-cta {
    background: linear-gradient(to right, var(--primary-color), var(--primary-light));
    color: white;
    text-align: center;
    padding: 6rem 0;
    position: relative;
    overflow: hidden;
}

.about-cta::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1440 320"><path fill="rgba(255,255,255,0.1)" d="M0,128L48,144C96,160,192,192,288,197.3C384,203,480,181,576,154.7C672,128,768,96,864,101.3C960,107,1056,149,1152,149.3C1248,149,1344,107,1392,85.3L1440,64L1440,320L1392,320C1344,320,1248,320,1152,320C1056,320,960,320,864,320C768,320,672,320,576,320C480,320,384,320,288,320C192,320,96,320,48,320L0,320Z"></path></svg>');
    background-size: cover;
    opacity: 0.5;
}

.about-cta .container {
    position: relative;
    z-index: 2;
}

.about-cta h2 {
    font-size: 2.8rem;
    margin-bottom: 1.5rem;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.about-cta p {
    color: rgba(255, 255, 255, 0.9);
    max-width: 700px;
    margin: 0 auto 2.5rem;
    font-size: 1.2rem;
}

.about-cta .btn {
    background: white;
    color: var(--primary-dark);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.15);
}

.about-cta .btn:hover {
    background: var(--light-color);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

.timeline {
    position: relative;
    max-width: 1000px;
    margin: 4rem auto 0;
    padding: 0 2rem;
}

.timeline::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: 100%;
    background: linear-gradient(to bottom, var(--primary-color), var(--secondary-color));
    border-radius: 2px;
}

.timeline-item {
    position: relative;
    margin-bottom: 3rem;
    width: 50%;
    padding: 0 2rem;
}

.timeline-item:nth-child(odd) {
    left: 0;
    text-align: right;
}

.timeline-item:nth-child(even) {
    left: 50%;
    text-align: left;
}

.timeline-item::before {
    content: '';
    position: absolute;
    top: 0;
    width: 16px;
    height: 16px;
    background-color: var(--secondary-color);
    border-radius: 50%;
    box-shadow: 0 0 0 4px var(--light-color), 0 0 0 8px rgba(245, 182, 66, 0.3);
}

.timeline-item:nth-child(odd)::before {
    right: -10px;
}

.timeline-item:nth-child(even)::before {
    left: -10px;
}

.timeline-date {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: var(--primary-color);
    color: white;
    border-radius: 20px;
    font-weight: 600;
    margin-bottom: 1rem;
    box-shadow: 0 3px 10px rgba(58, 91, 191, 0.2);
}

.timeline-content {
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: var(--box-shadow);
    transition: var(--transition);
}

.timeline-content:hover {
    transform: translateY(-5px);
    box-shadow: var(--box-shadow-hover);
}

.timeline-content h3 {
    margin-bottom: 0.8rem;
    color: var(--primary-color);
}

.timeline-content p {
    color: var(--text-light);
    margin-bottom: 0;
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@media (max-width: 992px) {
    .content-with-image, .content-with-image.reverse {
        grid-template-columns: 1fr;
        gap: 3rem;
        direction: ltr;
    }
    
    .content-text, .content-image {
        animation: fadeInUp 1s ease-out;
    }
    
    .timeline::before {
        left: 30px;
    }
    
    .timeline-item {
        width: 100%;
        padding-left: 70px;
        padding-right: 0;
        text-align: left;
    }
    
    .timeline-item:nth-child(odd) {
        left: 0;
        text-align: left;
    }
    
    .timeline-item:nth-child(even) {
        left: 0;
    }
    
    .timeline-item:nth-child(odd)::before,
    .timeline-item:nth-child(even)::before {
        left: 22px;
    }
}

@media (max-width: 576px) {
    .about-section {
        padding: 4rem 0;
    }
    
    .content-text h2 {
        font-size: 1.8rem;
    }
    
    .content-image {
        height: 300px;
    }
    
    .about-cta h2 {
        font-size: 2rem;
    }
    
    .about-values {
        grid-template-columns: 1fr;
    }
    
    .timeline {
        padding: 0 1rem;
    }
    
    .timeline-item {
        padding-left: 60px;
    }
}

/* Leadership Page Styling */
.leadership-section {
    padding: 6rem 0;
    background-color: white;
    position: relative;
    overflow: hidden;
}

.leadership-section::before {
    content: '';
    position: absolute;
    top: -30%;
    left: -30%;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(90, 120, 215, 0.05) 0%, rgba(255, 255, 255, 0) 70%);
    z-index: 0;
}

.featured-leader {
    display: grid;
    grid-template-columns: 400px 1fr;
    gap: 3.5rem;
    position: relative;
    z-index: 2;
    margin-bottom: 5rem;
    background-color: white;
    border-radius: 16px;
    box-shadow: var(--box-shadow);
    overflow: hidden;
    transition: var(--transition);
}

.featured-leader:hover {
    transform: translateY(-5px);
    box-shadow: var(--box-shadow-hover);
}

.leader-image {
    height: 100%;
    background-color: var(--gray-light);
    background-size: cover;
    background-position: center;
    position: relative;
}

.leader-image::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 40px;
    height: 100%;
    background: linear-gradient(to left, rgba(255, 255, 255, 1), rgba(255, 255, 255, 0));
    z-index: 1;
}

.pastor-image {
    background-image: url('https://source.unsplash.com/random/600x800/?pastor');
}

.leader-info {
    padding: 3rem 3rem 3rem 0;
    position: relative;
    animation: fadeInRight 1s ease-out;
}

.leader-info h2 {
    color: var(--primary-color);
    font-size: 2.2rem;
    margin-bottom: 0.5rem;
    position: relative;
    display: inline-block;
}

.leader-info h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 50px;
    height: 3px;
    background: linear-gradient(to right, var(--primary-color), var(--secondary-color));
    border-radius: 2px;
}

.leader-info h3 {
    color: var(--secondary-color);
    font-size: 1.3rem;
    margin-top: 0;
    margin-bottom: 2rem;
    font-weight: 600;
}

.leader-info p {
    margin-bottom: 1.2rem;
    line-height: 1.8;
    color: var(--text-light);
    font-size: 1.05rem;
}

.leadership-grid {
    padding: 5rem 0;
    position: relative;
    z-index: 2;
}

.leadership-grid.alt-bg {
    background-color: var(--light-color);
    position: relative;
    overflow: hidden;
}

.leadership-grid.alt-bg::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(245, 182, 66, 0.05) 0%, rgba(255, 255, 255, 0) 70%);
    z-index: 0;
}

.leadership-grid h2 {
    text-align: center;
    color: var(--primary-color);
    margin-bottom: 3rem;
    font-size: 2.2rem;
    position: relative;
    display: inline-block;
    left: 50%;
    transform: translateX(-50%);
}

.leadership-grid h2::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 70px;
    height: 3px;
    background: linear-gradient(to right, var(--primary-color), var(--secondary-color));
    border-radius: 2px;
}

.leader-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 2.5rem;
    position: relative;
    z-index: 2;
}

.leader-card {
    text-align: center;
    background-color: white;
    border-radius: 12px;
    padding: 2rem;
    box-shadow: var(--box-shadow);
    transition: var(--transition);
    position: relative;
    top: 0;
}

.leader-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--box-shadow-hover);
}

.leader-card-image {
    height: 180px;
    width: 180px;
    margin: 0 auto 1.5rem;
    border-radius: 50%;
    background-color: var(--gray-light);
    background-size: cover;
    background-position: center;
    border: 5px solid white;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.leader-card:hover .leader-card-image {
    transform: scale(1.05);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.leader-card-image::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(58, 91, 191, 0.2), rgba(245, 182, 66, 0.2));
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 1;
}

.leader-card:hover .leader-card-image::before {
    opacity: 1;
}

.leader-card h3 {
    margin-bottom: 0.5rem;
    font-size: 1.4rem;
    color: var(--dark-color);
    transition: color 0.3s ease;
}

.leader-card:hover h3 {
    color: var(--primary-color);
}

.leader-card p {
    color: var(--secondary-color);
    font-weight: 600;
    font-size: 1.05rem;
    margin-bottom: 1rem;
}

.leader-card .social-links {
    justify-content: center;
    margin-top: 1.5rem;
}

.leader-card .social-icon {
    background-color: var(--light-color);
    color: var(--primary-color);
    width: 36px;
    height: 36px;
    font-size: 0.9rem;
}

.leader-card .social-icon:hover {
    background-color: var(--primary-color);
    color: white;
}

.leader-quote {
    font-style: italic;
    position: relative;
    padding-left: 1.5rem;
    margin-top: 1.5rem;
    border-left: 3px solid var(--primary-light);
}

.leader-quote p {
    color: var(--text-light);
    font-size: 0.95rem;
}

.leadership-cta {
    background: linear-gradient(135deg, var(--primary-dark), var(--primary-light));
    color: white;
    text-align: center;
    padding: 6rem 0;
    position: relative;
    overflow: hidden;
}

.leadership-cta::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1440 320"><path fill="rgba(255,255,255,0.1)" d="M0,64L48,80C96,96,192,128,288,138.7C384,149,480,139,576,144C672,149,768,171,864,165.3C960,160,1056,128,1152,117.3C1248,107,1344,117,1392,122.7L1440,128L1440,320L1392,320C1344,320,1248,320,1152,320C1056,320,960,320,864,320C768,320,672,320,576,320C480,320,384,320,288,320C192,320,96,320,48,320L0,320Z"></path></svg>');
    background-size: cover;
    opacity: 0.5;
}

.leadership-cta .container {
    position: relative;
    z-index: 2;
}

.leadership-cta h2 {
    font-size: 2.8rem;
    margin-bottom: 1.5rem;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.leadership-cta p {
    color: rgba(255, 255, 255, 0.9);
    max-width: 700px;
    margin: 0 auto 2.5rem;
    font-size: 1.2rem;
}

.leadership-cta .btn {
    background: white;
    color: var(--primary-dark);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.15);
}

.leadership-cta .btn:hover {
    background: var(--light-color);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

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

.leader-card {
    animation: fadeInUp 0.8s ease forwards;
    opacity: 0;
}

.leader-card:nth-child(2) {
    animation-delay: 0.2s;
}

.leader-card:nth-child(3) {
    animation-delay: 0.4s;
}

.leader-card:nth-child(4) {
    animation-delay: 0.6s;
}

@media (max-width: 992px) {
    .featured-leader {
        grid-template-columns: 1fr;
        max-width: 600px;
        margin-left: auto;
        margin-right: auto;
    }
    
    .leader-image {
        height: 400px;
    }
    
    .leader-image::after {
        display: none;
    }
    
    .leader-info {
        padding: 2rem;
    }
    
    .leadership-grid h2 {
        width: 100%;
        left: 0;
        transform: none;
    }
}

@media (max-width: 768px) {
    .leader-grid {
        grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    }
}

@media (max-width: 576px) {
    .leadership-section {
        padding: 4rem 0;
    }
    
    .leader-image {
        height: 300px;
    }
    
    .leader-info h2 {
        font-size: 1.8rem;
    }
    
    .leader-info h3 {
        font-size: 1.2rem;
    }
    
    .leadership-grid {
        padding: 3rem 0;
    }
    
    .leadership-grid h2 {
        font-size: 1.8rem;
    }
    
    .leader-card-image {
        height: 150px;
        width: 150px;
    }
    
    .leader-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
        max-width: 280px;
        margin: 0 auto;
    }
    
    .leadership-cta h2 {
        font-size: 2rem;
    }
}

/* Services Page Styling */
.service-times, 
.ministries, 
.small-groups {
    padding: 5rem 0;
    position: relative;
    overflow: hidden;
}

.service-times {
    background-color: white;
}

.service-times::before {
    content: '';
    position: absolute;
    top: -30%;
    left: -30%;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(90, 120, 215, 0.05) 0%, rgba(255, 255, 255, 0) 70%);
    z-index: 0;
}

/* Fix for service times, ministries and small groups headings */
.service-times h2,
.ministries h2,
.small-groups h2 {
    text-align: center;
    color: var(--primary-color);
    margin: 0 auto 3rem;
    font-size: 2.5rem;
    position: relative;
    display: inline-block;
    /* Remove left and transform */
    left: auto;
    transform: none;
}

.service-times h2::after,
.ministries h2::after,
.small-groups h2::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 70px;
    height: 3px;
    background: linear-gradient(to right, var(--primary-color), var(--secondary-color));
    border-radius: 2px;
}

.service-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2.5rem;
    position: relative;
    z-index: 2;
}

.service-card {
    position: relative;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.07);
    padding: 0;
    overflow: hidden;
    background: white;
    transition: transform 0.4s ease, box-shadow 0.4s ease;
    display: flex;
    flex-direction: column;
}

.service-card:hover {
    transform: translateY(-15px);
    box-shadow: 0 15px 35px rgba(58, 91, 191, 0.12);
}

.service-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 1.5rem 0;
}

.service-badge {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    color: white;
    font-size: 0.8rem;
    font-weight: 600;
    padding: 0.4rem 1rem;
    border-radius: 20px;
    box-shadow: 0 3px 10px rgba(58, 91, 191, 0.15);
}

.service-card:nth-child(2) .service-badge {
    background: linear-gradient(135deg, var(--secondary-color), var(--secondary-light));
    box-shadow: 0 3px 10px rgba(245, 182, 66, 0.15);
}

.service-card:nth-child(3) .service-badge {
    background: linear-gradient(135deg, var(--accent-color), #90e0e8);
    box-shadow: 0 3px 10px rgba(107, 213, 225, 0.15);
}

.service-card:nth-child(4) .service-badge {
    background: linear-gradient(135deg, #7c53c3, #a185d6);
    box-shadow: 0 3px 10px rgba(124, 83, 195, 0.15);
}

.service-card h3 {
    padding: 0 1.5rem;
    margin-top: 1rem;
    margin-bottom: 0.5rem;
    font-size: 1.5rem;
    color: var(--dark-color);
}

.service-card .time {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0 1.5rem;
    color: var(--primary-color);
    font-weight: 600;
    margin-bottom: 1rem;
}

.service-card:nth-child(2) .time {
    color: var(--secondary-color);
}

.service-card:nth-child(3) .time {
    color: var(--accent-color);
}

.service-card:nth-child(4) .time {
    color: #7c53c3;
}

.service-card p:not(.time) {
    padding: 0 1.5rem;
    margin-bottom: 1.5rem;
    line-height: 1.7;
    flex-grow: 1;
}

.service-card .btn-small {
    margin: 0 1.5rem 1.5rem;
    align-self: flex-start;
}

.service-card:nth-child(2) .btn-small {
    background: linear-gradient(to right, var(--secondary-color), var(--secondary-light));
    box-shadow: 0 4px 10px rgba(245, 182, 66, 0.2);
}

.service-card:nth-child(3) .btn-small {
    background: linear-gradient(to right, var(--accent-color), #90e0e8);
    box-shadow: 0 4px 10px rgba(107, 213, 225, 0.2);
}

.service-card:nth-child(4) .btn-small {
    background: linear-gradient(to right, #7c53c3, #a185d6);
    box-shadow: 0 4px 10px rgba(124, 83, 195, 0.2);
}

.service-icon {
    margin-bottom: 0;
}

.service-icon .icon-wrapper {
    width: 60px;
    height: 60px;
    margin-bottom: 0;
}

.service-icon i {
    font-size: 1.8rem;
}

/* Ministries Section */
.ministries {
    position: relative;
    padding: 6rem 0;
}

.section-heading {
    text-align: center;
    margin-bottom: 4rem;
}

.section-heading p {
    max-width: 800px;
    margin: 1.5rem auto 0;
    color: var(--text-light);
    font-size: 1.1rem;
    line-height: 1.8;
}

.divider {
    height: 4px;
    width: 70px;
    background: linear-gradient(to right, var(--primary-color), var(--secondary-color));
    margin: 1.5rem auto;
    border-radius: 5px;
}

.ministry-card {
    background-color: white;
    border-radius: 16px;
    padding: 2.5rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    transition: transform 0.4s ease, box-shadow 0.4s ease;
    position: relative;
    overflow: hidden;
    text-align: center;
    border-bottom: 4px solid transparent;
    top: 0;
}

.ministry-card:hover {
    transform: translateY(-15px);
    box-shadow: 0 15px 35px rgba(58, 91, 191, 0.1);
    border-bottom-color: var(--primary-color);
}

.ministry-card:nth-child(even):hover {
    border-bottom-color: var(--secondary-color);
}

.ministry-card a.btn-text {
    margin-top: 1rem;
    display: inline-block;
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.ministry-card:hover a.btn-text {
    opacity: 1;
    transform: translateY(0);
}

.icon-wrapper {
    margin-bottom: 2rem;
    width: 100px;
    height: 100px;
}

.ministry-icon i {
    font-size: 3rem;
}

.ministry-cta {
    text-align: center;
    margin-top: 4rem;
}

.fa-bounce {
    animation-duration: 2s;
}

.ministry-card:hover .fa-bounce {
    animation-iteration-count: infinite;
}

/* Small Groups Section */
.small-groups {
    padding-top: 7rem;
    padding-bottom: 7rem;
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 20 20"><rect width="1" height="1" fill="rgba(58, 91, 191, 0.03)"/></svg>');
}

.group-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2.5rem;
    position: relative;
    z-index: 2;
}

.group-card {
    border-top-width: 6px;
    border-radius: 16px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.07);
    padding: 3rem 2.5rem;
    background: linear-gradient(135deg, #ffffff 0%, #f9fafc 100%);
}

.group-icon .icon-wrapper {
    width: 100px;
    height: 100px;
    background: linear-gradient(135deg, rgba(58, 91, 191, 0.08), rgba(90, 120, 215, 0.12));
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
}

.group-card:nth-child(2) .group-icon .icon-wrapper {
    background: linear-gradient(135deg, rgba(245, 182, 66, 0.08), rgba(245, 182, 66, 0.12));
}

.group-card:nth-child(3) .group-icon .icon-wrapper {
    background: linear-gradient(135deg, rgba(107, 213, 225, 0.08), rgba(107, 213, 225, 0.12));
}

.group-card:nth-child(4) .group-icon .icon-wrapper {
    background: linear-gradient(135deg, rgba(90, 120, 215, 0.08), rgba(120, 150, 245, 0.12));
}

.group-card:hover .group-icon .icon-wrapper {
    transform: translateY(-10px) rotate(5deg);
}

.group-icon i {
    font-size: 2.8rem;
}

.group-card:hover .group-icon i {
    animation: pulse 1.5s infinite;
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); }
}

.group-card .time {
    font-size: 1.15rem;
    padding: 0.4rem 1.2rem;
    background-color: rgba(58, 91, 191, 0.1);
    border-radius: 30px;
    display: inline-block;
    margin-bottom: 1.5rem;
}

.group-card:nth-child(2) .time {
    background-color: rgba(245, 182, 66, 0.1);
}

.group-card:nth-child(3) .time {
    background-color: rgba(107, 213, 225, 0.1);
}

.group-card:nth-child(4) .time {
    background-color: rgba(90, 120, 215, 0.1);
}

/* Service CTA Section */
.service-cta {
    padding: 7rem 0;
    background: linear-gradient(135deg, var(--secondary-color), var(--secondary-dark));
}

.service-cta h2 {
    font-size: 3.2rem;
    margin-bottom: 1.8rem;
    position: relative;
    display: inline-block;
}

.service-cta h2::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 2px;
}

.service-cta .btn {
    padding: 1.2rem 2.8rem;
    font-size: 1.2rem;
    background: white;
    position: relative;
    overflow: hidden;
    z-index: 1;
    transition: all 0.4s ease;
}

.service-cta .btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0%;
    height: 100%;
    background: var(--primary-color);
    z-index: -1;
    transition: width 0.4s ease;
}

.service-cta .btn:hover {
    color: white;
}

.service-cta .btn:hover::before {
    width: 100%;
}

@media (max-width: 992px) {
    .service-times h2,
    .ministries h2,
    .small-groups h2 {
        width: 100%;
        left: 0;
        transform: none;
        font-size: 2.2rem;
    }
    
    .service-grid,
    .group-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    }
}

@media (max-width: 576px) {
    .service-times,
    .ministries,
    .small-groups {
        padding: 4rem 0;
    }
    
    .service-times h2,
    .ministries h2,
    .small-groups h2 {
        font-size: 1.8rem;
    }
    
    .service-grid,
    .group-grid {
        grid-template-columns: 1fr;
        max-width: 320px;
        margin: 0 auto;
    }
    
    .service-cta h2 {
        font-size: 2rem;
    }
}

/* Icon styling */
.icon-wrapper {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 90px;
    height: 90px;
    border-radius: 50%;
    margin-bottom: 1.5rem;
    background: linear-gradient(135deg, rgba(58, 91, 191, 0.1), rgba(90, 120, 215, 0.15));
    position: relative;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.ministry-card:hover .icon-wrapper,
.service-card:hover .icon-wrapper,
.group-card:hover .icon-wrapper,
.value-card:hover .icon-wrapper {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(58, 91, 191, 0.15);
}

.ministry-card:nth-child(even) .icon-wrapper,
.value-card:nth-child(2) .icon-wrapper {
    background: linear-gradient(135deg, rgba(245, 182, 66, 0.1), rgba(217, 150, 24, 0.15));
}

.ministry-card:nth-child(3) .icon-wrapper,
.value-card:nth-child(3) .icon-wrapper,
.group-card:nth-child(3) .icon-wrapper {
    background: linear-gradient(135deg, rgba(107, 213, 225, 0.1), rgba(107, 213, 225, 0.15));
}

.ministry-icon i,
.service-icon i,
.group-icon i,
.value-icon i {
    font-size: 2.5rem;
    color: var(--primary-color);
    transition: transform 0.3s ease;
}

.ministry-card:hover .ministry-icon i,
.service-card:hover .service-icon i,
.group-card:hover .group-icon i,
.value-card:hover .value-icon i {
    transform: scale(1.1);
}

.ministry-card:nth-child(even) .ministry-icon i,
.value-card:nth-child(2) .value-icon i,
.group-card:nth-child(2) .group-icon i {
    color: var(--secondary-color);
}

.ministry-card:nth-child(3) .ministry-icon i,
.value-card:nth-child(3) .value-icon i,
.group-card:nth-child(3) .group-icon i {
    color: var(--accent-color);
}

/* Social icons */
.social-icon i {
    font-size: 1.1rem;
}

/* Enhanced Card Styling */

/* Common Card Styles */
.service-card, .ministry-card, .group-card {
    background: white;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.06);
    transition: transform 0.4s ease, box-shadow 0.4s ease;
    height: 100%;
    overflow: hidden;
    position: relative;
}

.service-card:hover, .ministry-card:hover, .group-card:hover {
    transform: translateY(-12px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

/* Service Cards */
.service-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.service-card {
    display: flex;
    flex-direction: column;
    border-top: 5px solid var(--primary-color);
    padding: 0 0 25px;
}

.service-card:nth-child(2) {
    border-top-color: var(--secondary-color);
}

.service-card:nth-child(3) {
    border-top-color: var(--accent-color);
}

.service-card-header {
    padding: 25px 25px 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.service-badge {
    background: var(--light-color);
    color: var(--primary-color);
    font-weight: 600;
    font-size: 0.85rem;
    padding: 5px 12px;
    border-radius: 30px;
    box-shadow: 0 3px 10px rgba(58, 91, 191, 0.15);
}

.service-card:nth-child(2) .service-badge {
    color: var(--secondary-color);
}

.service-card:nth-child(3) .service-badge {
    color: var(--accent-color);
}

.service-card h3 {
    margin: 20px 25px 10px;
    font-size: 1.5rem;
}

.service-card .time {
    margin: 0 25px 15px;
    color: var(--text-light);
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 8px;
}

.service-card p {
    margin: 0 25px 20px;
    flex-grow: 1;
}

.service-features {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 0 25px 20px;
}

.feature-tag {
    background: var(--light-color);
    padding: 6px 12px;
    border-radius: 30px;
    font-size: 0.8rem;
    color: var(--text-color);
    display: flex;
    align-items: center;
    gap: 5px;
    transition: all 0.3s ease;
}

.service-card:hover .feature-tag {
    background: rgba(58, 91, 191, 0.08);
}

.service-card:nth-child(2):hover .feature-tag {
    background: rgba(245, 182, 66, 0.08);
}

.service-card:nth-child(3):hover .feature-tag {
    background: rgba(107, 213, 225, 0.08);
}

.service-card .btn-small {
    align-self: flex-start;
    margin-left: 25px;
    margin-top: auto;
}

.service-card:nth-child(2) .btn-small {
    background: linear-gradient(to right, var(--secondary-color), var(--secondary-light));
    box-shadow: 0 4px 10px rgba(245, 182, 66, 0.2);
}

.service-card:nth-child(3) .btn-small {
    background: linear-gradient(to right, var(--accent-color), #90e0e8);
    box-shadow: 0 4px 10px rgba(107, 213, 225, 0.2);
}

.service-card:nth-child(4) .btn-small {
    background: linear-gradient(to right, #7c53c3, #a185d6);
    box-shadow: 0 4px 10px rgba(124, 83, 195, 0.2);
}

.service-icon {
    margin-bottom: 0;
}

.service-icon .icon-wrapper {
    width: 60px;
    height: 60px;
    background: var(--light-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.service-card:hover .icon-wrapper {
    background: rgba(58, 91, 191, 0.1);
}

.service-card:nth-child(2):hover .icon-wrapper {
    background: rgba(245, 182, 66, 0.1);
}

.service-card:nth-child(3):hover .icon-wrapper {
    background: rgba(107, 213, 225, 0.1);
}

.service-card-header i {
    font-size: 1.8rem;
    color: var(--primary-color);
}

.service-card:nth-child(2) .service-card-header i {
    color: var(--secondary-color);
}

.service-card:nth-child(3) .service-card-header i {
    color: var(--accent-color);
}

/* Ministry Cards */
.ministry-card {
    text-align: center;
    padding: 40px 30px;
    border-radius: 15px;
}

.ministry-icon {
    position: relative;
    margin-bottom: 25px;
}

.ministry-icon .icon-wrapper {
    width: 85px;
    height: 85px;
    margin: 0 auto;
    background: var(--light-color);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.05);
}

.ministry-icon::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100px;
    height: 100px;
    border-radius: 50%;
    border: 2px dashed var(--primary-light);
    opacity: 0;
    transition: all 0.4s ease;
}

.ministry-card:hover .ministry-icon::after {
    opacity: 1;
    width: 110px;
    height: 110px;
}

.ministry-card:nth-child(2) .ministry-icon::after {
    border-color: var(--secondary-light);
}

.ministry-card:nth-child(3) .ministry-icon::after {
    border-color: var(--accent-color);
}

.ministry-card h3 {
    margin-bottom: 15px;
    font-size: 1.4rem;
}

.ministry-details {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    margin: 20px 0;
}

.ministry-details span {
    background: var(--light-color);
    padding: 6px 12px;
    border-radius: 30px;
    font-size: 0.8rem;
    display: flex;
    align-items: center;
    gap: 5px;
    transition: all 0.3s ease;
}

.ministry-card:hover .ministry-details span {
    background: rgba(58, 91, 191, 0.08);
    transform: translateY(-3px);
}

.ministry-card:nth-child(2):hover .ministry-details span {
    background: rgba(245, 182, 66, 0.08);
}

.ministry-card:nth-child(3):hover .ministry-details span {
    background: rgba(107, 213, 225, 0.08);
}

/* Group Cards */
.group-card {
    display: flex;
    flex-direction: column;
}

.group-card-header {
    padding: 25px 25px 15px;
    display: flex;
    align-items: center;
    gap: 15px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.group-card-header i {
    font-size: 1.5rem;
    color: var(--primary-color);
}

.group-card:nth-child(even) .group-card-header i {
    color: var(--secondary-color);
}

.group-card-header h3 {
    margin: 0;
    font-size: 1.3rem;
}

.group-schedule {
    background: var(--light-color);
    padding: 12px 25px;
    color: var(--text-light);
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 8px;
}

.group-card-content {
    padding: 20px 25px;
    flex-grow: 1;
}

.group-location {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 15px;
    background: var(--light-color);
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    color: var(--text-light);
    transition: all 0.3s ease;
}

.group-card:hover .group-location {
    background: rgba(58, 91, 191, 0.08);
}

.group-card:nth-child(even):hover .group-location {
    background: rgba(245, 182, 66, 0.08);
}

.group-card-footer {
    padding: 0 25px 25px;
    margin-top: auto;
}

/* Button Styling */
.btn-service, .btn-text {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--primary-color);
    font-weight: 600;
    text-decoration: none;
    padding: 6px 0;
    transition: all 0.3s ease;
    position: relative;
}

.btn-service:after, .btn-text:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: currentColor;
    transition: width 0.3s ease;
}

.btn-service:hover:after, .btn-text:hover:after {
    width: 100%;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .service-grid {
        grid-template-columns: 1fr;
    }
    
    .service-card, .ministry-card, .group-card {
        max-width: 400px;
        margin: 0 auto 20px;
    }
}

/* Enhanced "Join Us This Week" Section */
.service-cta {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    padding: 7rem 0;
    position: relative;
    overflow: hidden;
    color: white;
    text-align: center;
}

.service-cta::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1440 320"><path fill="rgba(255,255,255,0.07)" d="M0,160L48,170.7C96,181,192,203,288,181.3C384,160,480,96,576,96C672,96,768,160,864,181.3C960,203,1056,181,1152,154.7C1248,128,1344,96,1392,80L1440,64L1440,320L1392,320C1344,320,1248,320,1152,320C1056,320,960,320,864,320C768,320,672,320,576,320C480,320,384,320,288,320C192,320,96,320,48,320L0,320Z"></path></svg>');
    background-size: cover;
    opacity: 0.7;
}

.service-cta-inner {
    position: relative;
    z-index: 2;
    max-width: 800px;
    margin: 0 auto;
    background: rgba(255, 255, 255, 0.1);
    padding: 3rem;
    border-radius: 20px;
    backdrop-filter: blur(5px);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.service-cta h2 {
    font-size: 3.2rem;
    margin-bottom: 1.5rem;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    position: relative;
    display: inline-block;
}

.service-cta h2::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: var(--secondary-color);
    border-radius: 2px;
}

.service-cta p {
    font-size: 1.3rem;
    margin-bottom: 2.5rem;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.9);
}

.cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 2rem;
}

.service-cta .btn {
    padding: 1.2rem 2.5rem;
    font-size: 1.1rem;
    background: white;
    color: var(--primary-color);
    border-radius: 50px;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
    font-weight: 700;
    letter-spacing: 0.5px;
    border: none;
    transition: all 0.4s ease;
}

.service-cta .btn:hover {
    transform: translateY(-7px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.25);
}

.service-cta .btn-secondary {
    background: transparent;
    color: white;
    border: 2px solid white;
}

.service-cta .btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
}

.service-cta-decoration {
    position: absolute;
    width: 200px;
    height: 200px;
    border-radius: 50%;
    background: radial-gradient(circle, var(--secondary-color) 0%, rgba(255, 255, 255, 0) 70%);
    opacity: 0.3;
    z-index: 1;
}

.service-cta-decoration:nth-child(1) {
    top: -100px;
    left: -100px;
}

.service-cta-decoration:nth-child(2) {
    bottom: -50px;
    right: -50px;
    width: 150px;
    height: 150px;
    background: radial-gradient(circle, var(--accent-color) 0%, rgba(255, 255, 255, 0) 70%);
}

@media (max-width: 768px) {
    .service-cta-inner {
        padding: 2.5rem 1.5rem;
        margin: 0 1rem;
    }
    
    .service-cta h2 {
        font-size: 2.5rem;
    }
    
    .service-cta p {
        font-size: 1.1rem;
    }
    
    .cta-buttons {
        flex-direction: column;
        gap: 15px;
    }
    
    .service-cta .btn {
        padding: 1rem 2rem;
    }
}

/* Events Page Styling */

/* Featured Event Section */
.featured-event {
    padding: 80px 0;
    background-color: white;
}

.featured-event-card {
    display: flex;
    background: white;
    border-radius: 15px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.06);
    overflow: hidden;
    transition: transform 0.4s ease, box-shadow 0.4s ease;
    border-left: 5px solid var(--primary-color);
}

.featured-event-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 25px 45px rgba(0, 0, 0, 0.1);
}

.event-image {
    width: 40%;
    background: url('img/events/harvest-festival.jpg') center/cover no-repeat;
    position: relative;
}

.event-date {
    position: absolute;
    top: 20px;
    left: 20px;
    width: 80px;
    height: 80px;
    background: white;
    border-radius: 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.event-date .month {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--primary-color);
    text-transform: uppercase;
}

.event-date .day {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--text-color);
}

.event-content {
    width: 60%;
    padding: 40px;
}

.event-badge {
    display: inline-block;
    background: var(--primary-light);
    color: var(--primary-color);
    padding: 6px 12px;
    border-radius: 30px;
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 15px;
}

.event-content h3 {
    font-size: 2rem;
    margin-bottom: 15px;
    color: var(--primary-color);
}

.event-time, .event-location {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-light);
    margin-bottom: 10px;
    font-size: 0.95rem;
}

.event-time i, .event-location i {
    color: var(--primary-color);
}

.event-description {
    margin: 20px 0;
    line-height: 1.6;
}

.event-features {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 20px 0;
}

.feature-tag {
    background: var(--light-color);
    padding: 6px 12px;
    border-radius: 30px;
    font-size: 0.8rem;
    display: flex;
    align-items: center;
    gap: 5px;
    transition: all 0.3s ease;
}

.featured-event-card:hover .feature-tag {
    background: rgba(58, 91, 191, 0.08);
}

/* Upcoming Events */
.upcoming-events {
    padding: 80px 0;
    background-color: var(--light-color);
}

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

.event-card {
    background: white;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    overflow: hidden;
    transition: transform 0.4s ease, box-shadow 0.4s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
    border-top: 5px solid var(--primary-color);
}

.event-card:nth-child(2) {
    border-top-color: var(--secondary-color);
}

.event-card:nth-child(3) {
    border-top-color: var(--accent-color);
}

.event-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.event-card-header {
    padding: 25px 25px 0;
    position: relative;
}

.event-date-small {
    width: 70px;
    height: 70px;
    background: white;
    border: 2px solid var(--light-color);
    border-radius: 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    margin-bottom: 15px;
}

.event-date-small .month {
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--primary-color);
    text-transform: uppercase;
}

.event-card:nth-child(2) .event-date-small .month {
    color: var(--secondary-color);
}

.event-card:nth-child(3) .event-date-small .month {
    color: var(--accent-color);
}

.event-date-small .day {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-color);
}

.event-card-content {
    padding: 0 25px 25px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.event-type {
    display: inline-block;
    background: var(--light-color);
    padding: 5px 10px;
    border-radius: 20px;
    font-size: 0.75rem;
    margin-bottom: 15px;
    color: var(--text-light);
}

.event-card h3 {
    font-size: 1.4rem;
    margin-bottom: 10px;
    color: var(--text-color);
}

.event-card .event-time {
    font-size: 0.9rem;
    margin-bottom: 15px;
}

.event-card p {
    margin-bottom: 20px;
}

.event-location {
    margin-top: auto;
    display: inline-flex;
    align-items: center;
    background: var(--light-color);
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    margin-bottom: 15px;
    transition: all 0.3s ease;
}

.event-card:hover .event-location {
    background: rgba(58, 91, 191, 0.08);
}

.event-card:nth-child(2):hover .event-location {
    background: rgba(245, 182, 66, 0.08);
}

.event-card:nth-child(3):hover .event-location {
    background: rgba(107, 213, 225, 0.08);
}

/* Event Categories */
.event-categories {
    padding: 80px 0;
    background-color: white;
}

.category-card {
    background: white;
    border-radius: 15px;
    padding: 40px 30px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    text-align: center;
    transition: all 0.4s ease;
    height: 100%;
}

.category-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.category-icon {
    margin-bottom: 25px;
    position: relative;
}

.category-icon .icon-wrapper {
    width: 85px;
    height: 85px;
    margin: 0 auto;
    background: var(--light-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 1;
    transition: all 0.4s ease;
}

.category-icon::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100px;
    height: 100px;
    border-radius: 50%;
    border: 2px dashed var(--primary-light);
    opacity: 0;
    transition: all 0.4s ease;
}

.category-card:hover .category-icon::after {
    opacity: 1;
    width: 110px;
    height: 110px;
}

.category-icon i {
    font-size: 2rem;
    color: var(--primary-color);
}

.category-card:nth-child(2) .category-icon i {
    color: var(--secondary-color);
}

.category-card:nth-child(3) .category-icon i {
    color: var(--accent-color);
}

.category-card h3 {
    margin-bottom: 15px;
    font-size: 1.4rem;
}

.category-card p {
    margin-bottom: 25px;
    color: var(--text-light);
}
/* Updated CTA Section Before Footer */
.cta-section {
    padding: 80px 0;
    background-color: #0e0e4d; /* Darker blue background */
    color: #fff;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(33, 20, 175, 0.679) , rgba(4, 2, 27, 0.789) );
    z-index: 1;
}

.cta-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    margin: 0 auto;
}

.cta-section h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
    color: #fff;
}

.cta-section p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    color: rgba(255, 255, 255, 0.9);
}

.cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
}

.cta-section .btn {
    display: inline-block;
    padding: 14px 32px;
    background-color: #fff;
    color: #5142fc;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.cta-section .btn-secondary {
    background-color: transparent;
    border: 2px solid #fff;
    color: #fff;
}

.cta-section .btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.cta-section .btn-secondary:hover {
    background-color: #fff;
    color: #4a4ab9;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .cta-section {
        padding: 60px 0;
    }
    
    .cta-section h2 {
        font-size: 2rem;
    }
    
    .cta-buttons {
        flex-direction: column;
        gap: 15px;
    }
}

@media (max-width: 576px) {
    .cta-section h2 {
        font-size: 1.8rem;
    }
    
    .cta-section p {
        font-size: 1.1rem;
    }
}
/* Events Calendar */
.events-calendar {
    padding: 80px 0;
    background-color: var(--light-color);
}

.calendar-container {
    background: white;
    border-radius: 15px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.06);
    padding: 30px;
    margin-top: 40px;
}

.calendar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--gray-light);
}

.calendar-header h3 {
    font-size: 1.4rem;
    color: var(--primary-color);
}

.calendar-nav {
    display: flex;
    gap: 10px;
}

.calendar-nav-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--light-color);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-color);
    transition: all 0.3s ease;
}

.calendar-nav-btn:hover {
    background: var(--primary-color);
    color: white;
}

.calendar-body {
    min-height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 30px;
}

.calendar-placeholder {
    text-align: center;
    color: var(--text-light);
    max-width: 400px;
    margin: 0 auto;
}

.calendar-container .btn-small {
    margin: 0 auto;
    display: table;
}

/* Responsive Adjustments */
@media (max-width: 992px) {
    .featured-event-card {
        flex-direction: column;
    }
    
    .event-image, .event-content {
        width: 100%;
    }
    
    .event-image {
        height: 250px;
    }
    
    .events-grid {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    }
}

@media (max-width: 768px) {
    .event-content {
        padding: 30px 25px;
    }
    
    .event-content h3 {
        font-size: 1.6rem;
    }
    
    .events-grid {
        grid-template-columns: 1fr;
        max-width: 450px;
        margin-left: auto;
        margin-right: auto;
    }
    
    .category-card {
        margin-bottom: 30px;
    }
}

@media (max-width: 576px) {
    .event-features {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .calendar-container {
        padding: 20px 15px;
    }
}

/* Calendar Styling */
.calendar-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 4px;
}

.calendar-table th {
    padding: 10px;
    font-weight: 600;
    color: var(--primary-color);
    text-align: center;
}

.calendar-day {
    position: relative;
    height: 60px;
    background: white;
    border-radius: 10px;
    text-align: center;
    vertical-align: top;
    padding: 8px;
    transition: all 0.3s ease;
    cursor: default;
}

.calendar-day.empty {
    background: transparent;
}

.calendar-day .day-number {
    display: inline-block;
    width: 25px;
    height: 25px;
    line-height: 25px;
    text-align: center;
    border-radius: 50%;
}

.calendar-day.today .day-number {
    background: var(--primary-color);
    color: white;
    font-weight: 600;
}

.calendar-day.has-event {
    cursor: pointer;
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.05);
}

.calendar-day.has-event:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.event-indicator {
    display: flex;
    justify-content: center;
    gap: 3px;
    margin-top: 5px;
}

.event-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--primary-color);
}

.event-dot.worship {
    background: var(--primary-color);
}

.event-dot.fellowship {
    background: var(--secondary-color);
}

.event-dot.youth {
    background: var(--accent-color);
}

.event-dot.special {
    background: #e93c3c;
}

.event-dot.prayer {
    background: #7c53c3;
}

.event-popup {
    position: absolute;
    background: white;
    padding: 15px;
    border-radius: 10px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
    z-index: 100;
    width: 200px;
    animation: fadeIn 0.3s ease;
}

.event-type-label {
    display: inline-block;
    padding: 3px 8px;
    border-radius: 15px;
    font-size: 0.7rem;
    font-weight: 600;
    color: white;
    margin-bottom: 8px;
}

.event-type-label.worship {
    background: var(--primary-color);
}

.event-type-label.fellowship {
    background: var(--secondary-color);
}

.event-type-label.youth {
    background: var(--accent-color);
}

.event-type-label.special {
    background: #e93c3c;
}

.event-type-label.prayer {
    background: #7c53c3;
}

.event-popup h4 {
    margin: 0;
    color: var(--text-color);
}

.close-popup {
    position: absolute;
    top: 5px;
    right: 5px;
    background: transparent;
    border: none;
    color: var(--text-light);
    font-size: 1.2rem;
    cursor: pointer;
    padding: 0;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

@media (max-width: 768px) {
    .calendar-day {
        height: 50px;
        padding: 5px;
    }
    
    .calendar-day .day-number {
        width: 20px;
        height: 20px;
        line-height: 20px;
        font-size: 0.8rem;
    }
    
    .event-dot {
        width: 4px;
        height: 4px;
    }
}

@media (max-width: 576px) {
    .calendar-table th {
        font-size: 0.8rem;
        padding: 5px;
    }
    
    .calendar-day {
        height: 40px;
    }
}

/* Hero Slideshow Styling */
.hero-section {
    position: relative;
    height: 80vh;
    min-height: 500px;
    color: white;
    overflow: hidden;
}

.slideshow-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.slideshow-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0;
    transition: opacity 1.5s ease-in-out;
    z-index: 1;
}

.slideshow-slide::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.68); /* Increased from 0.4 to 0.6 */
    z-index: 2;
}

.slideshow-slide.active {
    opacity: 1;
}

.hero-content {
    position: relative;
    z-index: 3;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    text-align: center;
}

.hero-content h1 {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.hero-content p {
    font-size: 1.3rem;
    margin-bottom: 2rem;
    text-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
}

.hero-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
}

@media (max-width: 768px) {
    .hero-content h1 {
        font-size: 2.5rem;
    }
    
    .hero-content p {
        font-size: 1.1rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
        gap: 15px;
    }
}

/* Dropdown Menu Styling */
.has-dropdown {
    position: relative;
}

.has-dropdown > a {
    display: flex;
    align-items: center;
    gap: 5px;
}

.has-dropdown > a i {
    font-size: 0.8rem;
    transition: transform 0.3s ease;
}

.has-dropdown:hover > a i {
    transform: rotate(180deg);
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: white;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    border-radius: 5px;
    width: 200px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s ease;
    z-index: 100;
    padding: 10px 0;
}

.has-dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-menu li {
    display: block;
    margin: 0;
    padding: 0;
}

.dropdown-menu a {
    padding: 10px 20px;
    display: block;
    color: var(--text-color);
    font-size: 0.95rem;
    transition: all 0.3s ease;
    text-decoration: none;
}

.dropdown-menu a:hover {
    background: var(--light-color);
    color: var(--primary-color);
}

.dropdown-menu a::after {
    display: none;
}

/* Mobile dropdown handling */
@media (max-width: 768px) {
    .dropdown-menu {
        position: static;
        width: 100%;
        box-shadow: none;
        background: var(--light-color);
        opacity: 0;
        max-height: 0;
        overflow: hidden;
        visibility: visible;
        transform: none;
        transition: max-height 0.3s ease, opacity 0.3s ease;
        padding: 0;
        margin-left: 20px;
        border-radius: 0;
    }
    
    .has-dropdown.open .dropdown-menu {
        opacity: 1;
        max-height: 500px;
    }
    
    .dropdown-menu a {
        padding: 12px 20px;
    }
    
    .has-dropdown > a {
        width: calc(100% - 50px);
    }
    
    .dropdown-toggle {
        height: 46px;
        width: 46px;
        position: absolute;
        right: 0;
        top: 0;
        z-index: 10;
        background: transparent;
        border: none;
        color: var(--text-color);
        font-size: 1.2rem;
        cursor: pointer;
        display: flex;
        align-items: center;
        justify-content: center;
    }
}

/* Blog Post Page Styles */

.blog-post-section {
    padding: 80px 0;
    background-color: white;
}

.blog-post-container {
    display: grid;
    grid-template-columns: 7fr 3fr;
    gap: 40px;
}

/* Blog Post Main */
.blog-post-main {
    padding-right: 20px;
}

/* Post Header */
.post-header {
    margin-bottom: 30px;
}

.post-category-badge {
    display: inline-block;
    background: var(--primary-color);
    color: white;
    padding: 6px 15px;
    border-radius: 30px;
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 15px;
}

.post-title {
    font-size: 2.8rem;
    line-height: 1.2;
    margin-bottom: 20px;
    color: var(--text-color);
}

.post-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    color: var(--text-light);
    font-size: 0.9rem;
}

.post-meta i {
    margin-right: 5px;
}

/* Post Featured Image */
.post-featured-image {
    margin-bottom: 30px;
    border-radius: 15px;
    overflow: hidden;
}

.post-featured-image img {
    width: 100%;
    height: auto;
    display: block;
}

/* Post Content */
.post-content {
    line-height: 1.7;
    color: var(--text-color);
}

.post-intro {
    font-size: 1.2rem;
    line-height: 1.6;
    color: var(--text-light);
    margin-bottom: 25px;
}

.post-content h2 {
    font-size: 2rem;
    margin: 40px 0 20px;
    color: var(--primary-color);
}

.post-content h3 {
    font-size: 1.5rem;
    margin: 30px 0 15px;
    color: var(--text-color);
}

.post-content p {
    margin-bottom: 20px;
}

.post-content blockquote {
    padding: 30px;
    background-color: var(--light-color);
    border-left: 5px solid var(--primary-color);
    margin: 30px 0;
    font-size: 1.2rem;
    line-height: 1.6;
    font-style: italic;
    color: var(--text-color);
}

.post-content blockquote cite {
    display: block;
    margin-top: 15px;
    font-size: 0.9rem;
    color: var(--text-light);
    text-align: right;
}

.post-image-container {
    margin: 30px 0;
    border-radius: 10px;
    overflow: hidden;
}

.post-image-container img {
    width: 100%;
    height: auto;
    display: block;
}

.image-caption {
    background: var(--light-color);
    padding: 15px;
    text-align: center;
    font-size: 0.9rem;
    color: var(--text-light);
    margin: 0;
}

/* Post Tags */
.post-tags {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    margin: 40px 0;
    padding-top: 20px;
    border-top: 1px solid var(--gray-light);
}

.tags-title {
    font-weight: 600;
    color: var(--text-color);
}

.post-tag {
    display: inline-block;
    padding: 6px 12px;
    background: var(--light-color);
    color: var(--text-color);
    border-radius: 30px;
    font-size: 0.85rem;
    text-decoration: none;
    transition: all 0.3s ease;
}

.post-tag:hover {
    background: var(--primary-color);
    color: white;
}

/* Post Share */
.post-share {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 40px;
}

.share-title {
    font-weight: 600;
    color: var(--text-color);
}

.share-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--light-color);
    color: var(--text-color);
    text-decoration: none;
    transition: all 0.3s ease;
}

.share-link:hover {
    background: var(--primary-color);
    color: white;
}

/* Author Bio */
.author-bio {
    display: flex;
    gap: 20px;
    background: var(--light-color);
    padding: 30px;
    border-radius: 15px;
    margin: 40px 0;
}

.author-image {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
}

.author-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.author-name {
    margin: 0 0 10px;
    font-size: 1.3rem;
}

.author-description {
    color: var(--text-light);
    margin-bottom: 15px;
}

.author-social {
    display: flex;
    gap: 10px;
}

.author-social a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    background: white;
    color: var(--text-color);
    text-decoration: none;
    transition: all 0.3s ease;
}

.author-social a:hover {
    background: var(--primary-color);
    color: white;
}

/* Post Navigation */
.post-navigation {
    display: flex;
    justify-content: space-between;
    margin: 40px 0;
    padding: 20px 0;
    border-top: 1px solid var(--gray-light);
    border-bottom: 1px solid var(--gray-light);
}

.prev-post, .next-post {
    max-width: 45%;
    color: var(--text-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

.prev-post:hover, .next-post:hover {
    color: var(--primary-color);
}

.next-post {
    text-align: right;
}

.nav-label {
    display: block;
    font-size: 0.85rem;
    color: var(--text-light);
    margin-bottom: 5px;
}

.nav-title {
    font-weight: 600;
    font-size: 1rem;
}

/* Related Posts */
.related-posts {
    margin: 40px 0;
}

.related-posts .posts-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

/* Comments Section */
.comments-section {
    margin: 40px 0;
}

.comment {
    display: flex;
    gap: 20px;
    margin-bottom: 30px;
}

.comment-reply {
    margin-left: 60px;
}

.comment-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
}

.comment-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.comment-content {
    flex-grow: 1;
}

.comment-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.comment-author {
    margin: 0;
    font-size: 1.1rem;
}

.comment-date {
    font-size: 0.85rem;
    color: var(--text-light);
}

.comment-content p {
    margin-bottom: 10px;
}

.reply-link {
    display: inline-block;
    color: var(--primary-color);
    font-weight: 600;
    text-decoration: none;
}

/* Comment Form */
.comment-form {
    margin: 40px 0;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid var(--gray-light);
    border-radius: 5px;
    font-size: 1rem;
    font-family: inherit;
}

.form-checkbox {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
}

.form-checkbox input {
    width: 18px;
    height: 18px;
}

.comment-form .btn {
    background: var(--primary-color);
    color: white;
    border: none;
    padding: 12px 25px;
    border-radius: 5px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s ease;
}

.comment-form .btn:hover {
    background: var(--primary-dark);
}

/* Responsive Blog Post Layout */
@media (max-width: 992px) {
    .blog-post-container {
        grid-template-columns: 1fr;
    }
    
    .blog-post-main {
        padding-right: 0;
    }
    
    .post-title {
        font-size: 2.2rem;
    }
    
    .related-posts .posts-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .post-title {
        font-size: 1.8rem;
    }
    
    .post-content blockquote {
        padding: 20px;
        font-size: 1.1rem;
    }
    
    .author-bio {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    
    .post-navigation {
        flex-direction: column;
        gap: 20px;
    }
    
    .prev-post, .next-post {
        max-width: 100%;
    }
    
    .next-post {
        text-align: left;
    }
    
    .related-posts .posts-grid {
        grid-template-columns: 1fr;
    }
    
    .form-row {
        grid-template-columns: 1fr;
        gap: 0;
    }
    
    .comment-meta {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .comment-reply {
        margin-left: 30px;
    }
}

@media (max-width: 576px) {
    .post-meta {
        flex-direction: column;
        gap: 5px;
    }
    
    .post-tags, .post-share {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .comment {
        flex-direction: column;
    }
    
    .comment-avatar {
        margin-bottom: 10px;
    }
    
    .comment-reply {
        margin-left: 15px;
    }
}

/* Sermon Archive Page Styles */

.sermon-archive-section {
    padding: 80px 0;
    background-color: white;
}

/* Sermon Filters */
.sermon-filters {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 30px;
    margin-bottom: 50px;
    padding: 25px 30px;
    background: white;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.filter-group {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.filter-group label {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-color);
    margin-bottom: 0;
}

.sermon-filter,
.filter-group select,
.filter-group input {
    padding: 12px 16px;
    border: 2px solid var(--gray-light);
    border-radius: 8px;
    font-size: 0.95rem;
    min-width: 180px;
    transition: var(--transition);
    background: white;
}

.sermon-filter:focus,
.filter-group select:focus,
.filter-group input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(58, 91, 191, 0.1);
}

/* Sermon Container */
.sermon-container {
    max-width: 900px;
    margin: 0 auto;
}

.sermon-search {
    position: relative;
}

.sermon-search input {
    padding: 12px 45px 12px 16px;
    border: 2px solid var(--gray-light);
    border-radius: 8px;
    width: 100%;
    max-width: 250px;
    font-size: 0.95rem;
    transition: var(--transition);
}

.sermon-search input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(58, 91, 191, 0.1);
}

.sermon-search button {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    background: transparent;
    border: none;
    color: var(--text-light);
    cursor: pointer;
    padding: 8px;
    border-radius: 4px;
    transition: var(--transition);
}

.sermon-search button:hover {
    color: var(--primary-color);
    background: rgba(58, 91, 191, 0.1);
}

/* Featured Sermon */
.featured-sermon {
    display: flex;
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.08);
    margin-bottom: 50px;
}

.featured-sermon-image {
    width: 40%;
    position: relative;
}

.featured-sermon-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.play-button {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 70px;
    height: 70px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.play-button i {
    color: var(--primary-color);
    font-size: 1.5rem;
}

.play-button:hover {
    background: var(--primary-color);
}

.play-button:hover i {
    color: white;
}

.featured-sermon-content {
    width: 60%;
    padding: 40px;
}

.sermon-badge {
    display: inline-block;
    background: var(--primary-color);
    color: white;
    padding: 6px 15px;
    border-radius: 30px;
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 15px;
}

.featured-sermon .sermon-title {
    font-size: 2rem;
    margin-bottom: 15px;
    color: var(--text-color);
}

.sermon-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    color: var(--text-light);
    font-size: 0.9rem;
    margin-bottom: 20px;
}

.sermon-meta i {
    margin-right: 5px;
}

.sermon-excerpt {
    margin-bottom: 25px;
    line-height: 1.6;
}

.sermon-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.btn-outline {
    background: transparent;
    border: 1px solid var(--primary-color);
    color: var(--primary-color);
}

.btn-outline:hover {
    background: var(--primary-color);
    color: white;
}

/* Sermon Series Showcase */
.sermon-series-showcase {
    margin-bottom: 50px;
}

.series-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.series-card {
    height: 300px;
    border-radius: 15px;
    background-size: cover;
    background-position: center;
    position: relative;
    overflow: hidden;
}

.series-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.1), rgba(0, 0, 0, 0.7));
    z-index: 1;
}

.series-card-content {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 25px;
    color: white;
    z-index: 2;
}

.series-card h3 {
    font-size: 1.5rem;
    margin-bottom: 10px;
}

.series-card p {
    margin-bottom: 15px;
    font-size: 0.95rem;
    opacity: 0.9;
}

.sermon-count {
    display: inline-block;
    background: rgba(255, 255, 255, 0.2);
    padding: 5px 10px;
    border-radius: 20px;
    font-size: 0.8rem;
    margin-bottom: 15px;
}

/* Sermon List */
.sermon-list {
    padding: 80px 0;
    background-color: var(--light-color);
    position: relative;
    overflow: hidden;
}

.sermon-list::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(90, 120, 215, 0.03) 0%, rgba(255, 255, 255, 0) 70%);
    z-index: 0;
}

.sermon-list .container {
    position: relative;
    z-index: 2;
    max-width: 1000px;
}

.sermon-list h2 {
    text-align: center;
    color: var(--primary-color);
    font-size: 2.5rem;
    margin-bottom: 3rem;
    position: relative;
    display: inline-block;
    left: 50%;
    transform: translateX(-50%);
}

.sermon-card {
    background: white;
    border-radius: 12px;
    padding: 15px;
    margin-bottom: 20px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.05);
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 15px;
    align-items: center;
    transition: transform 0.4s ease, box-shadow 0.4s ease;
    border-top: 3px solid var(--primary-color);
    position: relative;
    overflow: hidden;
}

.sermon-card:nth-child(even) {
    border-top-color: var(--secondary-color);
}

.sermon-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.sermon-info {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.sermon-title {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--primary-color);
    margin: 0;
}

.sermon-meta {
    font-size: 0.9rem;
    color: #666;
    display: flex;
    gap: 15px;
}

.sermon-actions {
    display: flex;
    gap: 10px;
}

.action-btn {
    padding: 8px 12px;
    border-radius: 4px;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 5px;
}

.action-btn.play {
    background: var(--primary-color);
    color: white;
}

.action-btn.download {
    background: #eee;
    color: #333;
}

.action-btn:hover {
    opacity: 0.9;
    transform: scale(1.05);
}

.sermon-card-image {
    width: 250px;
    position: relative;
    flex-shrink: 0;
}

.sermon-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.sermon-duration {
    position: absolute;
    bottom: 10px;
    right: 10px;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 0.8rem;
}

.sermon-card-content {
    flex-grow: 1;
    padding: 15px;
}

.sermon-card .sermon-title {
    font-size: 1.3rem;
    margin-bottom: 10px;
    color: var(--text-color);
}

.sermon-card .sermon-meta {
    margin-bottom: 15px;
}

.sermon-card-actions {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 8px;
    padding: 0 15px;
    border-left: 1px solid var(--gray-light);
}

.sermon-action-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--light-color);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-color);
    text-decoration: none;
    transition: all 0.3s ease;
}

.sermon-action-btn:hover {
    background: var(--primary-color);
    color: white;
}

/* Sermon Subscribe */
.sermon-subscribe {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    border-radius: 15px;
    padding: 40px;
    color: white;
    display: flex;
    margin-top: 50px;
}

.sermon-subscribe-content {
    flex: 2;
    padding-right: 40px;
}

.sermon-subscribe h3 {
    font-size: 1.8rem;
    margin-bottom: 15px;
}

.sermon-subscribe p {
    margin-bottom: 25px;
    opacity: 0.9;
}

.subscribe-form {
    display: flex;
    max-width: 500px;
}

.subscribe-form input {
    flex-grow: 1;
    padding: 12px 15px;
    border: none;
    border-radius: 5px 0 0 5px;
    font-size: 1rem;
}

.subscribe-form .btn {
    border-radius: 0 5px 5px 0;
    padding: 12px 20px;
    background: var(--secondary-color);
    color: white;
    border: none;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s ease;
}

.subscribe-form .btn:hover {
    background: #e0a132;
}

.sermon-subscribe-links {
    flex: 1;
}

.sermon-subscribe-links h4 {
    margin-bottom: 15px;
    font-size: 1.2rem;
}

.podcast-links {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.podcast-link {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: white;
    text-decoration: none;
    padding: 8px 0;
    transition: opacity 0.3s ease;
}

.podcast-link:hover {
    opacity: 0.8;
}

.podcast-link i {
    font-size: 1.2rem;
}

/* Responsive Sermon Archive Layout */
@media (max-width: 992px) {
    .sermon-list .container {
        max-width: 100%;
    }

    .sermon-filters {
        flex-direction: column;
        align-items: center;
        gap: 25px;
        padding: 20px 25px;
        margin-bottom: 40px;
    }

    .filter-group {
        width: 100%;
        max-width: 300px;
    }

    .sermon-filter,
    .filter-group select,
    .filter-group input {
        width: 100%;
        min-width: auto;
    }
    
    .featured-sermon {
        flex-direction: column;
    }
    
    .featured-sermon-image,
    .featured-sermon-content {
        width: 100%;
    }
    
    .featured-sermon-image {
        height: 300px;
    }
    
    .series-cards {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .sermon-subscribe {
        flex-direction: column;
        gap: 30px;
    }
    
    .sermon-subscribe-content {
        padding-right: 0;
    }
}

@media (max-width: 768px) {
    .sermon-list {
        padding: 60px 0;
    }

    .sermon-list h2 {
        font-size: 2.2rem;
        margin-bottom: 2.5rem;
    }

    .sermon-filters {
        padding: 20px;
        margin-bottom: 35px;
        gap: 20px;
    }

    .filter-group {
        flex-wrap: wrap;
        max-width: 100%;
    }

    .sermon-card {
        grid-template-columns: 1fr;
        gap: 15px;
        padding: 15px;
        text-align: center;
    }

    .sermon-container {
        max-width: 100%;
    }
    
    .sermon-card-image {
        width: 100%;
        height: 200px;
    }
    
    .sermon-card-actions {
        flex-direction: row;
        justify-content: flex-start;
        padding: 0 15px 15px;
        border-left: none;
    }
    
    .series-cards {
        grid-template-columns: 1fr;
    }
    
    .subscribe-form {
        flex-direction: column;
        gap: 10px;
    }
    
    .subscribe-form input,
    .subscribe-form .btn {
        width: 100%;
        border-radius: 5px;
    }
}

@media (max-width: 576px) {
    .sermon-list {
        padding: 50px 0;
    }

    .sermon-list h2 {
        font-size: 2rem;
        margin-bottom: 2rem;
    }

    .sermon-filters {
        padding: 15px;
        margin-bottom: 30px;
        gap: 15px;
    }

    .sermon-search input {
        width: 100%;
        max-width: none;
    }

    .sermon-card {
        padding: 18px;
        margin-bottom: 20px;
        gap: 15px;
    }

    .sermon-meta {
        flex-direction: column;
        gap: 5px;
    }

    .sermon-actions {
        flex-direction: column;
        align-items: center;
        gap: 10px;
    }

    .sermon-actions .btn-small {
        width: 100%;
        max-width: 200px;
    }
}

.sermon-upload {
    padding: 60px 0;
    background: #f8f9fa;
}

.upload-form {
    max-width: 800px;
    margin: 0 auto;
    background: white;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label {
    font-weight: 600;
    color: #333;
}

.form-group input,
.form-group textarea {
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 1rem;
}

.form-group textarea {
    resize: vertical;
    min-height: 100px;
}

/* Blog Styles */
.blog-grid {
    display: grid;
    grid-template-columns: 1fr 350px;
    gap: 50px;
    margin-top: 40px;
}

.featured-post {
    margin-bottom: 60px;
    background: #fff;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.featured-post:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.12);
}

.post-image {
    position: relative;
    height: 450px;
    overflow: hidden;
}

.post-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.featured-post:hover .post-image img {
    transform: scale(1.05);
}

.category-badge {
    position: absolute;
    top: 20px;
    left: 20px;
    background: var(--primary-color);
    color: #fff;
    padding: 8px 16px;
    border-radius: 25px;
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.post-content {
    padding: 35px;
}

.post-content h2 {
    font-size: 2.2rem;
    margin-bottom: 20px;
    color: #1a1a1a;
    line-height: 1.3;
    font-weight: 700;
}

.post-meta {
    display: flex;
    gap: 25px;
    margin-bottom: 20px;
    color: #666;
    font-size: 0.95rem;
    border-bottom: 1px solid #eee;
    padding-bottom: 20px;
}

.post-meta i {
    color: var(--primary-color);
    margin-right: 8px;
}

.posts-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    margin-top: 40px;
}

.blog-post {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 3px 15px rgba(0,0,0,0.06);
    transition: all 0.3s ease;
}

.blog-post:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
}

/* Enhanced Sidebar Styles */
.blog-sidebar {
    position: sticky;
    top: 30px;
}

.sidebar-widget {
    background: #fff;
    padding: 30px;
    border-radius: 12px;
    margin-bottom: 30px;
    box-shadow: 0 3px 15px rgba(0,0,0,0.06);
}

.sidebar-widget h3 {
    font-size: 1.3rem;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 2px solid var(--primary-color);
    color: #1a1a1a;
    font-weight: 600;
}

.search-form {
    display: flex;
    gap: 10px;
    background: #f8f9fa;
    padding: 5px;
    border-radius: 8px;
}

.search-form input {
    flex: 1;
    padding: 12px 15px;
    border: none;
    background: transparent;
    font-size: 1rem;
    color: #333;
}

.search-form button {
    background: var(--primary-color);
    color: #fff;
    border: none;
    padding: 12px 20px;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.search-form button:hover {
    background: #333;
}

/* Enhanced Category List */
.category-list li {
    margin-bottom: 12px;
}

.category-list a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 15px;
    background: #f8f9fa;
    border-radius: 8px;
    color: #333;
    transition: all 0.3s ease;
}

.category-list a:hover {
    background: var(--primary-color);
    color: #fff;
    transform: translateX(5px);
}

.category-list span {
    background: #fff;
    padding: 3px 10px;
    border-radius: 15px;
    font-size: 0.85rem;
    color: var(--primary-color);
}

/* Enhanced Recent Posts Widget */
.recent-post {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid #eee;
}

.recent-post:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.recent-post img {
    width: 80px;
    height: 80px;
    border-radius: 8px;
    object-fit: cover;
}

.recent-post-info h4 {
    font-size: 1rem;
    margin-bottom: 8px;
    line-height: 1.4;
}

.recent-post-info span {
    font-size: 0.85rem;
    color: #666;
}

/* Enhanced Pagination */
.pagination {
    margin-top: 60px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
}

.pagination a {
    padding: 12px 20px;
    background: #fff;
    border-radius: 8px;
    color: #333;
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.pagination a.active,
.pagination a:hover {
    background: var(--primary-color);
    color: #fff;
}

/* Responsive Enhancements */
@media (max-width: 992px) {
    .blog-grid {
        grid-template-columns: 1fr;
    }
    
    .post-image {
        height: 350px;
    }
    
    .posts-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 576px) {
    .post-content {
        padding: 25px;
    }

    .post-content h2 {
        font-size: 1.8rem;
    }

    .post-meta {
        flex-direction: column;
        gap: 10px;
    }

    .category-badge {
        font-size: 0.8rem;
    }

    /* Enhanced mobile donation form styling */
    #card-element {
        padding: 12px;
        min-height: 45px;
    }

    .secure-payment-indicator {
        font-size: 0.8rem;
        padding: 8px;
        margin-top: 10px;
    }

    .form-status {
        font-size: 0.9rem;
        padding: 12px;
    }

    .btn-donate.loading::after {
        width: 18px;
        height: 18px;
    }
}

/* New Blog Styles */
.blog-hero {
    background: linear-gradient(rgba(0,0,0,0.7), rgba(0,0,0,0.7)), url('../images/sermon2.jpg');
    background-size: cover;
    background-position: center;
    height: 400px;
    display: flex;
    align-items: center;
    text-align: center;
    color: #fff;
    position: relative;
}

.blog-hero h1 {
    font-size: 3.5rem;
    margin-bottom: 20px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.blog-hero p {
    font-size: 1.2rem;
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

.blog-content {
    padding: 60px 0;
    background: #f8f9fa;
}

/* Featured Stories Slider */
.featured-stories {
    margin-bottom: 60px;
}

.featured-stories h2 {
    font-size: 2rem;
    margin-bottom: 30px;
    text-align: center;
}

.stories-slider {
    display: flex;
    gap: 20px;
    overflow-x: auto;
    padding: 20px 0;
    scroll-snap-type: x mandatory;
}

.story-card {
    min-width: 300px;
    background: #fff;
    border-radius: 15px;
    overflow: hidden;
    scroll-snap-align: start;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.story-card:hover {
    transform: translateY(-5px);
}

/* Blog Categories */
.blog-categories {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.category-btn {
    padding: 10px 20px;
    border: none;
    border-radius: 25px;
    background: #fff;
    color: #333;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.category-btn.active,
.category-btn:hover {
    background: var(--primary-color);
    color: #fff;
}

/* Blog Layout */
.blog-layout {
    display: grid;
    grid-template-columns: 1fr 350px;
    gap: 40px;
    width: 100%;
    box-sizing: border-box;
    overflow: hidden;
}

.blog-main {
    width: 100%;
    box-sizing: border-box;
    overflow: hidden;
}

/* Blog Masonry Grid */
.blog-masonry {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
    width: 100%;
    box-sizing: border-box;
}

.blog-post {
    background: #fff;
    border-radius: 15px;
    overflow: hidden;
    transition: transform 0.3s ease;
    position: relative;
    width: 100%;
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    z-index: 1;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.blog-post:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
    z-index: 2;
}

.post-image {
    height: 200px;
    overflow: hidden;
    position: relative;
}

.post-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.category-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    background: var(--primary-color);
    color: #fff;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
    z-index: 2;
}

.blog-post:hover .post-image img {
    transform: scale(1.1);
}

.post-content {
    padding: 25px;
}

/* Ensure card-media within blog posts behaves correctly */
.blog-post .card-media {
    position: relative;
    width: 100%;
    height: 200px;
    overflow: hidden;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

.blog-post .card-media .media-thumb {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 0;
    transition: transform 0.5s ease;
}

.post-meta {
    display: flex;
    gap: 15px;
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 15px;
}

.post-title {
    font-size: 1.4rem;
    margin-bottom: 15px;
    line-height: 1.4;
    color: #1a1a1a;
}

.post-excerpt {
    color: #666;
    line-height: 1.6;
    margin-bottom: 20px;
}

/* Load More Button */
.load-more {
    display: block;
    width: 200px;
    margin: 0 auto;
    padding: 15px 30px;
    background: transparent;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    border-radius: 25px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.load-more:hover {
    background: var(--primary-color);
    color: #fff;
}

/* Sidebar Styles */
.blog-sidebar > div {
    background: #fff;
    border-radius: 15px;
    padding: 30px;
    margin-bottom: 30px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.author-spotlight {
    text-align: center;
}

.author-image {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    margin: 0 auto 20px;
    overflow: hidden;
}

.author-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.trending-topics ul {
    list-style: none;
    padding: 0;
}

.trending-topics li {
    padding: 12px 0;
    border-bottom: 1px solid #eee;
}

.trending-topics li:last-child {
    border-bottom: none;
}

.newsletter-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.newsletter-form input {
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 25px;
    font-size: 1rem;
}

.btn-primary {
    background: var(--primary-color);
    color: #fff;
    border: none;
    padding: 12px 25px;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background: #333;
}

/* Load More Button Styles */
.load-more {
    display: block;
    margin: 40px auto 0;
    background: var(--primary-color);
    color: white;
    border: none;
    padding: 15px 30px;
    border-radius: 25px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.load-more:hover:not(:disabled) {
    background: #333;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.load-more:disabled {
    cursor: not-allowed;
    opacity: 0.6;
}

.load-more .fa-spinner {
    margin-right: 8px;
}

/* Event Download Button Styles */
.download-event-btn {
    background: var(--secondary-color);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin: 5px;
}

.download-event-btn:hover {
    background: #5a7a95;
    transform: translateY(-1px);
}

.download-event-btn i {
    font-size: 0.9rem;
}

/* Event card download button specific styles */
.event-card .download-event-btn {
    background: transparent;
    color: var(--secondary-color);
    border: 1px solid var(--secondary-color);
    padding: 8px 15px;
    font-size: 0.85rem;
    margin-top: 10px;
}

.event-card .download-event-btn:hover {
    background: var(--secondary-color);
    color: white;
}

/* Event actions layout */
.event-actions {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    margin-top: 20px;
}

.event-actions .btn {
    flex: 1;
    min-width: 150px;
    justify-content: center;
}

/* Responsive Design */
@media (max-width: 992px) {
    .blog-layout {
        grid-template-columns: 1fr;
    }

    .blog-sidebar {
        order: -1;
    }

    .blog-masonry {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
        gap: 25px;
    }
}

@media (max-width: 768px) {
    .blog-hero h1 {
        font-size: 2.5rem;
    }

    .blog-masonry {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .blog-post {
        margin-bottom: 20px;
        position: static;
        transform: none !important;
    }

    .blog-post:hover {
        transform: none !important;
    }

    .stories-slider {
        padding: 20px;
    }
}

@media (max-width: 576px) {
    .blog-hero {
        height: 300px;
    }

    .blog-hero h1 {
        font-size: 2rem;
    }

    .category-btn {
        padding: 8px 15px;
        font-size: 0.9rem;
    }

    .blog-masonry {
        grid-template-columns: 1fr;
        gap: 15px;
        margin-bottom: 30px;
    }

    .blog-post {
        margin-bottom: 15px;
        position: static;
        transform: none !important;
    }

    .blog-post:hover {
        transform: none !important;
    }

    .post-content {
        padding: 20px;
    }
}

/* Additional mobile breakpoints for blog cards */
@media (max-width: 480px) {
    .blog-masonry {
        grid-template-columns: 1fr;
        gap: 12px;
        margin-bottom: 25px;
        padding: 0 10px;
    }

    .blog-post {
        margin-bottom: 12px;
        position: static;
        transform: none !important;
        width: 100%;
        max-width: 100%;
    }

    .blog-post:hover {
        transform: none !important;
    }

    .post-content {
        padding: 15px;
    }

    .post-image,
    .blog-post .card-media {
        height: 180px;
    }
}

@media (max-width: 360px) {
    .blog-masonry {
        grid-template-columns: 1fr;
        gap: 10px;
        margin-bottom: 20px;
        padding: 0 5px;
    }

    .blog-post {
        margin-bottom: 10px;
        position: static;
        transform: none !important;
    }

    .blog-post:hover {
        transform: none !important;
    }

    .post-content {
        padding: 12px;
    }

    .post-image,
    .blog-post .card-media {
        height: 160px;
    }
}

/* Donation Page Styles */
.donation-hero {
    background: linear-gradient(rgba(0,0,0,0.6), rgba(0,0,0,0.6)), url('../images/donation.jpg');
    background-size: cover;
    background-position: center;
    padding: 100px 0;
    text-align: center;
    color: #fff;
}

.donation-hero h1 {
    font-size: 3rem;
    margin-bottom: 20px;
    animation: fadeInUp 0.8s ease;
}

.donation-hero p {
    font-size: 1.2rem;
    max-width: 600px;
    margin: 0 auto;
    animation: fadeInUp 1s ease;
}

.donation-section {
    padding: 80px 0;
    background: #f8f9fa;
}

.donation-grid {
    display: grid;
    grid-template-columns: 1fr 400px;
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
}

.donation-options {
    background: #fff;
    padding: 40px;
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.donation-options h2 {
    font-size: 2rem;
    margin-bottom: 30px;
    color: var(--primary-color);
}

.amount-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
    gap: 15px;
    margin-bottom: 30px;
}

.amount-btn {
    padding: 15px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    background: #fff;
    font-size: 1.2rem;
    font-weight: 600;
    color: #333;
    cursor: pointer;
    transition: all 0.3s ease;
}

.amount-btn:hover,
.amount-btn.active {
    background: var(--primary-color);
    color: #fff;
    border-color: var(--primary-color);
}

.custom-amount-input {
    margin-bottom: 30px;
}

.custom-amount-input input {
    width: 100%;
    padding: 15px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 1.2rem;
}

.giving-type,
.giving-frequency {
    margin-bottom: 30px;
}

.giving-type h3,
.giving-frequency h3 {
    margin-bottom: 15px;
    color: #333;
}

.giving-options {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
}

.giving-option {
    cursor: pointer;
}

.giving-option input {
    display: none;
}

.option-content {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 15px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.giving-option input:checked + .option-content {
    background: var(--primary-color);
    color: #fff;
    border-color: var(--primary-color);
}

.frequency-options {
    display: flex;
    gap: 15px;
}

.frequency-option {
    flex: 1;
    cursor: pointer;
}

.frequency-option input {
    display: none;
}

.frequency-option span {
    display: block;
    padding: 12px;
    text-align: center;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.frequency-option input:checked + span {
    background: var(--primary-color);
    color: #fff;
    border-color: var(--primary-color);
}

.payment-form {
    margin-top: 30px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 10px;
    color: #333;
}

#card-element {
    padding: 15px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    background: #fff;
}

.btn-donate {
    width: 100%;
    padding: 15px;
    background: var(--primary-color);
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.btn-donate:hover {
    background: #333;
    transform: translateY(-2px);
}

.donation-impact {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.impact-card {
    background: #fff;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.impact-card h3 {
    color: var(--primary-color);
    margin-bottom: 25px;
    font-size: 1.5rem;
}

.impact-items {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.impact-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 10px;
}

.impact-item i {
    font-size: 2rem;
    color: var(--primary-color);
}

.impact-item h4 {
    color: #333;
    margin: 10px 0;
}

.secure-giving {
    background: #fff;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    text-align: center;
}

.secure-giving i {
    font-size: 2.5rem;
    color: #28a745;
    margin-bottom: 15px;
}

/* Responsive Design */
@media (max-width: 992px) {
    .donation-grid {
        grid-template-columns: 1fr;
    }
    
    .donation-impact {
        order: -1;
    }
}

@media (max-width: 768px) {
    .giving-options {
        grid-template-columns: 1fr;
    }
    
    .frequency-options {
        flex-direction: column;
    }
    
    .donation-hero h1 {
        font-size: 2.5rem;
    }
}

@media (max-width: 576px) {
    .donation-options {
        padding: 25px;
    }
    
    .amount-options {
        grid-template-columns: 1fr;
    }
    
    .donation-hero h1 {
        font-size: 2rem;
    }
}

/* Continue styling for the recurring givers section */
.recurring-givers {
    padding: 70px 0;
    background: linear-gradient(135deg, rgba(84,58,183,0.05) 0%, rgba(0,172,193,0.05) 100%);
}

.recurring-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.recurring-content h2 {
    font-size: 2.2rem;
    color: #333;
    margin-bottom: 20px;
}

.recurring-content p {
    font-size: 1.1rem;
    color: #666;
    margin-bottom: 30px;
    line-height: 1.6;
}

.benefits-list {
    list-style: none;
    padding: 0;
    max-width: 600px;
    margin: 0 auto;
}

.benefits-list li {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px;
    margin-bottom: 15px;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
    font-size: 1.05rem;
    transition: transform 0.3s ease;
}

.benefits-list li:hover {
    transform: translateX(5px);
}

.benefits-list i {
    color: var(--primary-color);
    font-size: 1.2rem;
}

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

.animate-fade {
    opacity: 0;
    animation: fadeInUp 0.8s forwards;
}

/* Utility Classes */
.hidden {
    display: none;
}

/* Additional animation keyframes */
@keyframes pulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
    100% {
        transform: scale(1);
    }
}

@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.hidden {
    display: none;
}

.ministry-card[data-ministry="missions"]:hover .ministry-icon {
    background: linear-gradient(135deg, #2980b9 0%, #2c3e50 100%);
}

.ministry-card[data-ministry="building"] .ministry-icon {
    background: rgba(46, 204, 113, 0.1);
}

.ministry-card[data-ministry="building"]:hover .ministry-icon {
    background: linear-gradient(135deg, #2ecc71 0%, #27ae60 100%);
}

.ministry-card.active-ministry {
    border-color: var(--donation-primary);
    box-shadow: var(--shadow-medium);
    transform: translateY(-10px);
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
    100% {
        transform: scale(1);
    }
}

/* Animation Classes */
.fade-in {
    animation: fadeIn 1s ease forwards;
}

.slide-up {
    animation: slideUp 0.8s ease forwards;
}

.pulse {
    animation: pulse 2s infinite;
}

/* Helper Classes */
.hidden {
    display: none;
}

/* Error/Success messages */
.error-message {
    background-color: #fff0f0;
    color: #dc3545;
    padding: 12px 15px;
    border-radius: 8px;
    font-size: 0.9rem;
    margin-top: 15px;
    border-left: 4px solid #dc3545;
}

.success-message {
    background-color: #f0fff5;
    color: #28a745;
    padding: 12px 15px;
    border-radius: 8px;
    font-size: 0.9rem;
    margin-top: 15px;
    border-left: 4px solid #28a745;
}

/* Responsive Styles for Donation Page */
@media (max-width: 1200px) {
    .donation-hero h1 {
        font-size: 3rem;
    }
    
    .section-heading h2 {
        font-size: 2.2rem;
    }
    
    .donation-form-wrapper {
        max-width: 900px;
    }
    
    .ministry-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 992px) {
    .donation-hero {
        padding: 80px 0;
    }
    
    .impact-gallery,
    .ways-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .testimonial-wrapper {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .testimonial-image {
        max-width: 500px;
        margin: 0 auto;
    }
    
    .donation-form-wrapper {
        grid-template-columns: 1fr;
    }
    
    .donation-options {
        border-radius: var(--border-radius) var(--border-radius) 0 0;
    }
    
    .payment-section {
        border-radius: 0 0 var(--border-radius) var(--border-radius);
    }
    
    .youth-impact-wrapper {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .youth-impact-content {
        max-width: 100%;
    }
    
    .youth-impact-gallery {
        max-width: 600px;
        margin: 0 auto;
    }
}

@media (max-width: 768px) {
    .donation-hero h1 {
        font-size: 2.5rem;
    }
    
    .donation-hero-content {
        text-align: center;
    }
    
    blockquote {
        font-size: 1.2rem;
    }
    
    .amount-buttons {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .fund-options {
        grid-template-columns: 1fr;
    }
    
    .ways-grid {
        grid-template-columns: 1fr;
    }
    
    .impact-gallery {
        grid-template-columns: 1fr;
    }
    
    .counter {
        font-size: 2.5rem;
    }
    
    .payment-methods-tabs {
        flex-direction: column;
        border-bottom: none;
    }
    
    .payment-tab {
        border: 1px solid var(--donation-border);
        border-radius: 8px;
        margin-bottom: 10px;
        text-align: center;
    }
    
    .payment-tab.active::after {
        display: none;
    }
    
    .payment-tab.active {
        background: var(--donation-gradient);
        color: #fff;
    }
    
    .youth-stats {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .youth-stat-item {
        display: flex;
        align-items: center;
        text-align: left;
        padding: 15px;
    }
    
    .stat-value {
        font-size: 2rem;
        margin-right: 15px;
        margin-bottom: 0;
        min-width: 80px;
    }
    
    .gallery-grid {
        height: auto;
        grid-template-columns: 1fr 1fr;
    }
    
    .gallery-grid img:last-child {
        display: none;
    }
    
    .ministry-stats {
        flex-direction: column;
        gap: 15px;
    }
}

@media (max-width: 576px) {
    .donation-hero {
        padding: 60px 0;
    }
    
    .donation-hero h1 {
        font-size: 2rem;
    }
    
    .hero-pretitle {
        font-size: 1rem;
    }
    
    .section-heading h2 {
        font-size: 1.8rem;
    }
    
    .amount-buttons {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .btn-primary {
        padding: 14px 28px;
        font-size: 0.9rem;
    }
    
    .donation-options,
    .payment-section {
        padding: 30px 20px;
    }
    
    .faq-question h3 {
        font-size: 1rem;
    }
    
    .youth-impact-section {
        padding: 60px 0;
    }
    
    .gallery-main {
        height: 200px;
    }
    
    .ministry-card {
        padding: 30px 20px;
    }
    
    .ministry-icon {
        width: 70px;
        height: 70px;
    }
    
    .ministry-icon i {
        font-size: 2rem;
    }
    
    .ministry-card h3 {
        font-size: 1.4rem;
    }
}

/* Enhanced Contribution Card Styles */
.contribution-card {
    background: #fff;
    border-radius: var(--border-radius);
    box-shadow: 0 15px 50px rgba(0,0,0,0.1);
    overflow: hidden;
    max-width: 900px;
    margin: 0 auto;
    position: relative;
}

.contribution-header {
    background: linear-gradient(135deg, var(--donation-primary) 0%, var(--donation-secondary) 100%);
    padding: 25px 40px;
    color: #fff;
}

.contribution-steps {
    display: flex;
    justify-content: space-between;
    position: relative;
    max-width: 600px;
    margin: 0 auto;
}

.contribution-steps::before {
    content: '';
    position: absolute;
    top: 20px;
    left: 40px;
    right: 40px;
    height: 2px;
    background: rgba(255,255,255,0.3);
    z-index: 1;
}

.step {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    z-index: 2;
}

.step-number {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255,255,255,0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    margin-bottom: 10px;
    border: 2px solid rgba(255,255,255,0.3);
    transition: all 0.3s ease;
}

.step.active .step-number {
    background: #fff;
    color: var(--donation-primary);
    border-color: #fff;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.step-label {
    font-size: 0.9rem;
    opacity: 0.8;
    transition: all 0.3s ease;
}

.step.active .step-label {
    opacity: 1;
    font-weight: 600;
}

.contribution-body {
    padding: 40px;
}

.contribution-step-content {
    display: none;
}

.contribution-step-content.active {
    display: block;
    animation: fadeIn 0.5s ease;
}

.step-title {
    display: block;
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 20px;
    color: var(--donation-dark);
    position: relative;
    padding-bottom: 10px;
}

.step-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 3px;
    background: var(--donation-primary);
    border-radius: 10px;
}

.contribution-summary, 
.final-contribution-summary {
    background: var(--donation-light);
    padding: 25px;
    border-radius: var(--border-radius);
    margin-top: 30px;
    border-left: 4px solid var(--donation-primary);
}

.contribution-summary h3,
.final-contribution-summary h3 {
    margin-bottom: 15px;
    color: var(--donation-dark);
    font-size: 1.2rem;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px dashed var(--donation-border);
}

.summary-row:last-child {
    border-bottom: none;
}

.summary-row.total {
    margin-top: 10px;
    border-top: 2px solid var(--donation-primary);
    border-bottom: none;
    padding-top: 15px;
    font-weight: 700;
    font-size: 1.2rem;
}

.step-buttons {
    display: flex;
    justify-content: space-between;
    margin-top: 40px;
}

.btn-next, .btn-back {
    padding: 14px 25px;
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
}

.btn-next {
    background: var(--donation-gradient);
    color: #fff;
    padding-right: 30px;
    position: relative;
}

.btn-next::after {
    content: '\f061';
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    position: absolute;
    right: 20px;
    transition: transform 0.3s ease;
}

.btn-next:hover::after {
    transform: translateX(5px);
}

.btn-back {
    background: var(--donation-light);
    color: var(--donation-dark);
    padding-left: 30px;
    position: relative;
}

.btn-back::before {
    content: '\f060';
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    position: absolute;
    left: 20px;
    transition: transform 0.3s ease;
}

.btn-back:hover::before {
    transform: translateX(-5px);
}

.form-group.half {
    width: calc(50% - 10px);
}

.form-group.quarter {
    width: calc(25% - 10px);
}

.final-contribution-summary {
    margin-bottom: 30px;
}

.secure-notice {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 30px;
    padding: 15px;
    background: var(--donation-light);
    border-radius: 8px;
    font-size: 0.9rem;
    color: #666;
    text-align: center;
    justify-content: center;
}

.secure-notice i {
    color: #28a745;
    font-size: 1.2rem;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .contribution-header {
        padding: 20px;
    }
    
    .contribution-body {
        padding: 30px 20px;
    }
    
    .step-label {
        font-size: 0.8rem;
    }
    
    .form-row {
        flex-direction: column;
    }
    
    .form-group.half, 
    .form-group.quarter {
        width: 100%;
    }
    
    .step-buttons {
        flex-direction: column-reverse;
        gap: 15px;
    }
    
    .btn-next, .btn-back {
        width: 100%;
        text-align: center;
    }
}

@media (max-width: 576px) {
    .contribution-steps::before {
        left: 20px;
        right: 20px;
    }
    
    .step-number {
        width: 30px;
        height: 30px;
        font-size: 0.9rem;
    }
}

/* Variables for donation section */
:root {
    --donation-primary: #5142fc;
    --donation-secondary: #835ef6;
    --donation-gradient: linear-gradient(135deg, var(--donation-primary) 0%, var(--donation-secondary) 100%);
    --donation-light: #f5f7ff;
    --donation-text: #333;
    --donation-dark: #21214b;
    --donation-gray: #f0f2f5;
    --donation-border: #e2e5ed;
    --transition: all 0.3s ease;
    --shadow-soft: 0 10px 30px rgba(81, 66, 252, 0.08);
    --shadow-medium: 0 15px 40px rgba(81, 66, 252, 0.12);
    --border-radius: 12px;
}

/* Section Heading Styles */
.section-tag {
    display: inline-block;
    background: var(--donation-light);
    color: var(--donation-primary);
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.section-heading.centered {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 50px;
}

.section-heading h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
    position: relative;
}

.section-heading p {
    font-size: 1.1rem;
    color: #666;
    max-width: 600px;
    margin: 0 auto;
}

/* Donation Form Section */
.donation-form-section {
    padding: 100px 0;
    background: #fff;
}

/* Contribution Card Styles */
.contribution-card {
    background: #fff;
    border-radius: var(--border-radius);
    box-shadow: 0 15px 50px rgba(0,0,0,0.1);
    overflow: hidden;
    max-width: 900px;
    margin: 0 auto;
    position: relative;
}

.contribution-header {
    background: linear-gradient(135deg, var(--donation-primary) 0%, var(--donation-secondary) 100%);
    padding: 25px 40px;
    color: #fff;
}

.contribution-steps {
    display: flex;
    justify-content: space-between;
    position: relative;
    max-width: 600px;
    margin: 0 auto;
}

.contribution-steps::before {
    content: '';
    position: absolute;
    top: 20px;
    left: 40px;
    right: 40px;
    height: 2px;
    background: rgba(255,255,255,0.3);
    z-index: 1;
}

.step {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    z-index: 2;
}

.step-number {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255,255,255,0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    margin-bottom: 10px;
    border: 2px solid rgba(255,255,255,0.3);
    transition: all 0.3s ease;
}

.step.active .step-number {
    background: #fff;
    color: var(--donation-primary);
    border-color: #fff;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.step-label {
    font-size: 0.9rem;
    opacity: 0.8;
    transition: all 0.3s ease;
}

.step.active .step-label {
    opacity: 1;
    font-weight: 600;
}

.contribution-body {
    padding: 40px;
}

.contribution-step-content {
    display: none;
}

.contribution-step-content.active {
    display: block;
    animation: fadeIn 0.5s ease;
}

.step-title {
    display: block;
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 20px;
    color: var(--donation-dark);
    position: relative;
    padding-bottom: 10px;
}

.step-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 3px;
    background: var(--donation-primary);
    border-radius: 10px;
}

/* Amount Selection */
.amount-buttons {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 10px;
    margin-bottom: 20px;
}

.amount-btn {
    padding: 12px;
    background: #fff;
    border: 2px solid var(--donation-border);
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--donation-text);
    cursor: pointer;
    transition: var(--transition);
}

.amount-btn:hover,
.amount-btn.active {
    background: var(--donation-primary);
    color: #fff;
    border-color: var(--donation-primary);
}

.custom-amount-container {
    margin-top: 15px;
}

.input-group {
    display: flex;
    align-items: center;
}

.input-group-text {
    background: #fff;
    border: 2px solid var(--donation-border);
    border-right: none;
    padding: 12px 15px;
    border-radius: 8px 0 0 8px;
    font-weight: 600;
}

.input-group input {
    flex: 1;
    padding: 12px 15px;
    border: 2px solid var(--donation-border);
    border-left: none;
    border-radius: 0 8px 8px 0;
    font-size: 1.1rem;
}

/* Fund Selection */
.fund-options {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
}

.fund-option {
    position: relative;
}

.fund-option input {
    position: absolute;
    opacity: 0;
}

.fund-option label {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: #fff;
    border: 2px solid var(--donation-border);
    border-radius: 10px;
    padding: 20px;
    cursor: pointer;
    transition: var(--transition);
    height: 100%;
}

.fund-option input:checked + label {
    background: var(--donation-gradient);
    border-color: var(--donation-primary);
    color: #fff;
    box-shadow: var(--shadow-soft);
}

.fund-icon {
    font-size: 1.8rem;
    margin-bottom: 10px;
    color: var(--donation-primary);
    transition: var(--transition);
}

.fund-option input:checked + label .fund-icon {
    color: #fff;
}

.fund-name {
    font-weight: 600;
    font-size: 1.1rem;
}

/* Frequency Toggle */
.frequency-switch {
    position: relative;
    background: #fff;
    display: inline-flex;
    border-radius: 30px;
    padding: 5px;
    border: 2px solid var(--donation-border);
}

.frequency-switch input {
    position: absolute;
    opacity: 0;
}

.frequency-switch label {
    position: relative;
    z-index: 2;
    padding: 10px 25px;
    cursor: pointer;
    border-radius: 25px;
    font-weight: 600;
    transition: var(--transition);
}

.frequency-switch .switch-highlight {
    position: absolute;
    top: 5px;
    left: 5px;
    background: var(--donation-gradient);
    border-radius: 25px;
    height: calc(100% - 10px);
    width: calc(33.33% - 3.33px);
    transition: var(--transition);
}

.frequency-switch input:checked:nth-of-type(2) ~ .switch-highlight {
    transform: translateX(100%);
}

.frequency-switch input:checked:nth-of-type(3) ~ .switch-highlight {
    transform: translateX(200%);
}

.frequency-switch input:checked + label {
    color: #fff;
}

/* Summaries */
.contribution-summary, 
.final-contribution-summary {
    background: var(--donation-light);
    padding: 25px;
    border-radius: var(--border-radius);
    margin-top: 30px;
    border-left: 4px solid var(--donation-primary);
}

.contribution-summary h3,
.final-contribution-summary h3 {
    margin-bottom: 15px;
    color: var(--donation-dark);
    font-size: 1.2rem;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px dashed var(--donation-border);
}

.summary-row:last-child {
    border-bottom: none;
}

.summary-row.total {
    margin-top: 10px;
    border-top: 2px solid var(--donation-primary);
    border-bottom: none;
    padding-top: 15px;
    font-weight: 700;
    font-size: 1.2rem;
}

/* Step Buttons */
.step-buttons {
    display: flex;
    justify-content: space-between;
    margin-top: 40px;
}

.btn-next, .btn-back {
    padding: 14px 25px;
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
}

.btn-next {
    background: var(--donation-gradient);
    color: #fff;
    padding-right: 30px;
    position: relative;
}

.btn-next::after {
    content: '\f061';
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    position: absolute;
    right: 20px;
    transition: transform 0.3s ease;
}

.btn-next:hover::after {
    transform: translateX(5px);
}

.btn-back {
    background: var(--donation-light);
    color: var(--donation-dark);
    padding-left: 30px;
    position: relative;
}

.btn-back::before {
    content: '\f060';
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    position: absolute;
    left: 20px;
    transition: transform 0.3s ease;
}

.btn-back:hover::before {
    transform: translateX(-5px);
}

/* Form Styles */
.form-row {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
}

.form-group {
    width: 100%;
}

.form-group.half {
    width: calc(50% - 10px);
}

.form-group.quarter {
    width: calc(25% - 10px);
}

.form-group label {
    display: block;
    margin-bottom: 10px;
    font-weight: 600;
    color: #555;
}

.form-group input {
    width: 100%;
    padding: 15px;
    border: 2px solid var(--donation-border);
    border-radius: 8px;
    font-size: 1rem;
    transition: var(--transition);
}

.form-group input:focus {
    border-color: var(--donation-primary);
    box-shadow: 0 0 0 3px rgba(81, 66, 252, 0.1);
    outline: none;
}

.form-control {
    padding: 15px;
    border: 2px solid var(--donation-border);
    border-radius: 8px;
    background: #fff;
    transition: var(--transition);
}

/* Enhanced Stripe Card Element Styling */
#card-element {
    padding: 15px;
    border: 2px solid var(--donation-border);
    border-radius: 8px;
    background: #fff;
    transition: var(--transition);
    min-height: 50px;
}

#card-element:focus-within {
    border-color: var(--donation-primary);
    box-shadow: 0 0 0 3px rgba(81, 66, 252, 0.1);
}

#card-element.error {
    border-color: #dc3545;
    box-shadow: 0 0 0 3px rgba(220, 53, 69, 0.1);
}

#card-element.complete {
    border-color: #28a745;
    box-shadow: 0 0 0 3px rgba(40, 167, 69, 0.1);
}

/* Ensure Stripe Elements iframe is properly displayed */
#card-element .StripeElement {
    width: 100%;
    padding: 0;
}

#card-element iframe {
    width: 100% !important;
    height: auto !important;
    min-height: 20px !important;
}

/* Card Errors Styling */
#card-errors {
    color: #dc3545;
    font-size: 0.875rem;
    margin-top: 8px;
    padding: 8px 12px;
    background: rgba(220, 53, 69, 0.1);
    border-radius: 4px;
    border-left: 3px solid #dc3545;
    display: none;
}

#card-errors:not(:empty) {
    display: block;
}

/* Payment Methods */
.payment-methods-tabs {
    display: flex;
    margin-bottom: 30px;
    border-bottom: 2px solid var(--donation-gray);
}

.payment-tab {
    padding: 15px 25px;
    cursor: pointer;
    font-weight: 600;
    color: #777;
    position: relative;
    transition: var(--transition);
}

.payment-tab.active {
    color: var(--donation-primary);
}

.payment-tab.active::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: 3px;
    background: var(--donation-gradient);
}

.payment-tab i {
    margin-right: 8px;
}

.payment-forms {
    position: relative;
}

.payment-form {
    display: none;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.payment-form.active {
    display: block;
    opacity: 1;
}

/* PayPal Button */
.btn-paypal {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: #0070ba;
    color: #fff;
    padding: 16px 32px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1.1rem;
    border: none;
    cursor: pointer;
    transition: var(--transition);
}

.btn-paypal:hover {
    background: #003087;
    transform: translateY(-3px);
}

.paypal-content, .bank-content {
    padding: 30px 20px;
    text-align: center;
}

.paypal-content p {
    margin-bottom: 30px;
    font-size: 1.1rem;
    color: #666;
}

/* Bank Details */
.bank-details {
    background: var(--donation-light);
    padding: 30px;
    border-radius: var(--border-radius);
    border-left: 4px solid var(--donation-primary);
    text-align: left;
}

.bank-details h4 {
    font-size: 1.3rem;
    margin-bottom: 15px;
    color: var(--donation-primary);
}

.bank-details p {
    margin-bottom: 20px;
    color: #666;
}

.bank-details ul {
    list-style: none;
    padding: 0;
}

.bank-details li {
    padding: 12px 0;
    border-bottom: 1px solid var(--donation-border);
}

.bank-details li:last-child {
    border-bottom: none;
}

.bank-details li strong {
    display: inline-block;
    width: 180px;
    color: #333;
}

/* Complete Donation Button */
.btn-donate {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    padding: 16px;
    background: var(--donation-gradient);
    color: #fff;
    border: none;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    margin-top: 30px;
}

.btn-donate i {
    transition: var(--transition);
}

.btn-donate:hover {
    box-shadow: 0 10px 20px rgba(81, 66, 252, 0.2);
    transform: translateY(-3px);
}

.btn-donate:hover i {
    transform: scale(1.2);
}

/* Secure Notice */
.secure-notice {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 30px;
    padding: 15px;
    background: var(--donation-light);
    border-radius: 8px;
    font-size: 0.9rem;
    color: #666;
    text-align: center;
    justify-content: center;
}

.secure-notice i {
    color: #28a745;
    font-size: 1.2rem;
}

/* Error/Success Messages */
#card-errors {
    color: #dc3545;
    margin-top: 10px;
    font-size: 0.9rem;
}

.error-message {
    background-color: #fff0f0;
    color: #dc3545;
    padding: 12px 15px;
    border-radius: 8px;
    font-size: 0.9rem;
    margin-top: 15px;
    border-left: 4px solid #dc3545;
}

.success-message {
    background-color: #f0fff5;
    color: #28a745;
    padding: 12px 15px;
    border-radius: 8px;
    font-size: 0.9rem;
    margin-top: 15px;
    border-left: 4px solid #28a745;
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.hidden {
    display: none;
}

/* Responsive Styles */
@media (max-width: 1200px) {
    .section-heading h2 {
        font-size: 2.2rem;
    }
}

@media (max-width: 992px) {
    .donation-form-section {
        padding: 80px 0;
    }
    
    .contribution-body {
        padding: 30px;
    }
}

@media (max-width: 768px) {
    .donation-form-section {
        padding: 60px 0;
    }
    
    .contribution-header {
        padding: 20px;
    }
    
    .contribution-body {
        padding: 25px 20px;
    }
    
    .step-label {
        font-size: 0.8rem;
    }
    
    .amount-buttons {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .fund-options {
        grid-template-columns: 1fr;
    }
    
    .form-row {
        flex-direction: column;
        gap: 15px;
    }
    
    .form-group.half, 
    .form-group.quarter {
        width: 100%;
    }
    
    .step-buttons {
        flex-direction: column-reverse;
        gap: 15px;
    }
    
    .btn-next, .btn-back, .btn-donate {
        width: 100%;
        text-align: center;
    }
    
    .payment-methods-tabs {
        flex-direction: column;
        border-bottom: none;
        gap: 10px;
    }
    
    .payment-tab {
        border: 1px solid var(--donation-border);
        border-radius: 8px;
        text-align: center;
    }
    
    .payment-tab.active::after {
        display: none;
    }
    
    .payment-tab.active {
        background: var(--donation-gradient);
        color: #fff;
    }
}

@media (max-width: 576px) {
    .section-heading h2 {
        font-size: 1.8rem;
    }
    
    .contribution-steps::before {
        left: 20px;
        right: 20px;
    }
    
    .step-number {
        width: 32px;
        height: 32px;
        font-size: 0.9rem;
    }
    
    .contribution-body {
        padding: 20px 15px;
    }
    
    .amount-buttons {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .bank-details {
        padding: 20px;
    }
    
    .bank-details li strong {
        width: 140px;
    }
}

/* Contact Page Styles */
.contact-section {
    padding: 100px 0;
    background: #fff;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 50px;
    margin-top: 50px;
}

/* Contact Info Cards */
.contact-info {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    max-width: 1000px;
    margin: 0 auto;
}

.info-card {
    background: #fff;
    border-radius: var(--border-radius);
    padding: 35px 40px;
    box-shadow: var(--shadow-soft);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    min-height: 200px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

.info-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-medium);
}

.info-icon {
    font-size: 2.2rem;
    margin-bottom: 20px;
    color: var(--donation-primary);
    width: 70px;
    height: 70px;
    background: rgba(81, 66, 252, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    flex-shrink: 0;
}

.info-card:hover .info-icon {
    background: var(--donation-gradient);
    color: #fff;
    transform: scale(1.1);
}

.info-card h3 {
    margin-bottom: 20px;
    font-size: 1.4rem;
    color: var(--donation-dark);
    font-weight: 600;
}

.info-card p {
    color: #666;
    line-height: 1.8;
    margin-bottom: 20px;
    font-size: 1rem;
    flex-grow: 1;
}

.info-card .btn-text {
    margin-top: auto;
    align-self: flex-start;
}

/* Specific styling for Email Us card to handle long email addresses */
.email-card .email-content {
    word-break: break-word;
    overflow-wrap: break-word;
    hyphens: auto;
    font-size: 0.95rem !important;
    line-height: 1.7 !important;
    white-space: normal;
    max-width: 100%;
    text-overflow: ellipsis;
    display: block;
}

/* Ensure email card has adequate width */
.email-card {
    min-width: 0; /* Allow flexbox shrinking */
    overflow: hidden; /* Prevent content overflow */
}

.social-connect {
    grid-column: span 2;
    background: var(--donation-light);
    border-radius: var(--border-radius);
    padding: 35px 40px;
    text-align: center;
    min-height: 140px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.social-connect h3 {
    margin-bottom: 20px;
    color: var(--donation-dark);
}

.social-connect .social-links {
    display: flex;
    justify-content: center;
    gap: 15px;
}

.social-connect .social-icon {
    width: 45px;
    height: 45px;
    background: #fff;
    color: var(--donation-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-size: 1.2rem;
    transition: var(--transition);
    box-shadow: var(--shadow-soft);
}

.social-connect .social-icon:hover {
    background: var(--donation-gradient);
    color: #fff;
    transform: translateY(-5px);
}

/* Contact Form Styles */
.contact-form-container {
    background: #fff;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-soft);
    padding: 40px;
    position: relative;
}

.form-header {
    margin-bottom: 30px;
}

.form-header h3 {
    font-size: 1.5rem;
    color: var(--donation-dark);
    margin-bottom: 10px;
}

.form-header p {
    color: #666;
}

.contact-form .form-row {
    margin-bottom: 20px;
}

.contact-form .form-group {
    width: 100%;
}

.contact-form .form-group.half {
    width: calc(50% - 10px);
}

.contact-form label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #555;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
    width: 100%;
    padding: 15px;
    border: 2px solid var(--donation-border);
    border-radius: 8px;
    font-size: 1rem;
    transition: var(--transition);
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
    border-color: var(--donation-primary);
    box-shadow: 0 0 0 3px rgba(81, 66, 252, 0.1);
    outline: none;
}

.contact-form textarea {
    resize: vertical;
    min-height: 150px;
}

.checkbox-group {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-top: 5px;
}

.checkbox-group input[type="checkbox"] {
    width: 18px;
    height: 18px;
    margin-top: 3px;
}

.checkbox-group label {
    margin-bottom: 0;
    font-weight: normal;
}

.btn-submit {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: var(--donation-gradient);
    color: #fff;
    border: none;
    border-radius: 50px;
    padding: 16px 32px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    width: 100%;
    transition: var(--transition);
}

.btn-submit i {
    transition: var(--transition);
}

.btn-submit:hover {
    box-shadow: 0 10px 20px rgba(81, 66, 252, 0.2);
    transform: translateY(-3px);
}

.btn-submit:hover i {
    transform: translateX(5px);
}

.form-status {
    margin-top: 20px;
    padding: 15px 20px;
    border-radius: 8px;
    display: none;
    font-size: 0.95rem;
    font-weight: 500;
    transition: all 0.3s ease;
    border-left: 4px solid transparent;
}

.form-status.loading {
    display: flex;
    align-items: center;
    gap: 10px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-left-color: var(--donation-primary);
    color: #495057;
}

.form-status.loading::before {
    content: '';
    width: 16px;
    height: 16px;
    border: 2px solid var(--donation-primary);
    border-top: 2px solid transparent;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

.form-status.success {
    display: flex;
    align-items: center;
    gap: 10px;
    background: linear-gradient(135deg, #d4edda 0%, #c3e6cb 100%);
    border-left-color: #28a745;
    color: #155724;
}

.form-status.success::before {
    content: '✓';
    width: 20px;
    height: 20px;
    background: #28a745;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 12px;
}

.form-status.error {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    background: linear-gradient(135deg, #f8d7da 0%, #f5c6cb 100%);
    border-left-color: #dc3545;
    color: #721c24;
    white-space: pre-line;
}

.form-status.error::before {
    content: '⚠';
    width: 20px;
    height: 20px;
    background: #dc3545;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 12px;
    flex-shrink: 0;
    margin-top: 2px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Enhanced Button Loading States */
.btn-donate.loading {
    position: relative;
    color: transparent;
    pointer-events: none;
}

.btn-donate.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 20px;
    height: 20px;
    border: 2px solid transparent;
    border-top: 2px solid #fff;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: translate(-50%, -50%) rotate(0deg); }
    100% { transform: translate(-50%, -50%) rotate(360deg); }
}

/* Payment Security Indicators */
.secure-payment-indicator {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 15px;
    padding: 10px;
    background: rgba(40, 167, 69, 0.05);
    border-radius: 6px;
    font-size: 0.875rem;
    color: #28a745;
}

.secure-payment-indicator i {
    font-size: 1rem;
}

/* Stripe Branding */
.stripe-branding {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    margin-top: 10px;
    font-size: 0.75rem;
    color: #6c757d;
}

.stripe-branding::before {
    content: 'Powered by';
}

.stripe-branding::after {
    content: 'Stripe';
    font-weight: 600;
    color: #635bff;
}



/* Map Section Styles */
.map-section {
    padding: 100px 0;
    background: var(--donation-light);
}

.map-container {
    height: 500px;
    border-radius: var(--border-radius);
    overflow: hidden;
    margin-top: 50px;
    position: relative;
    box-shadow: var(--shadow-soft);
}

.map-info {
    margin-top: -80px;
    position: relative;
    z-index: 1;
    display: flex;
    justify-content: center;
}

.map-card {
    background: #fff;
    padding: 30px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-medium);
    max-width: 400px;
    text-align: center;
}

.map-card h3 {
    margin-bottom: 15px;
    color: var(--donation-dark);
    font-size: 1.5rem;
    font-weight: 600;
}

.map-card p {
    margin-bottom: 10px;
    color: #555;
    font-weight: 400;
}

.map-card p i {
    color: var(--donation-primary);
    margin-right: 8px;
}

.map-card .btn-small {
    margin-top: 15px;
    display: inline-block;
}

/* FAQ Section Styles */
.faq-section {
    padding: 100px 0;
}

.faq-container {
    max-width: 900px;
    margin: 50px auto 0;
}

.faq-item {
    background: #fff;
    border-radius: var(--border-radius);
    margin-bottom: 20px;
    box-shadow: var(--shadow-soft);
    overflow: hidden;
}

.faq-question {
    padding: 25px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.faq-question h3 {
    margin: 0;
    font-size: 1.2rem;
    color: var(--donation-dark);
    transition: var(--transition);
}

.faq-icon {
    background: var(--donation-light);
    color: var(--donation-primary);
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.faq-item.active .faq-icon {
    background: var(--donation-primary);
    color: #fff;
    transform: rotate(45deg);
}

.faq-item.active .faq-question h3 {
    color: var(--donation-primary);
}

.faq-answer {
    padding: 0 25px;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, padding 0.4s ease;
}

.faq-item.active .faq-answer {
    padding: 0 25px 25px;
    max-height: 1000px;
}

.faq-answer p {
    color: #666;
    line-height: 1.6;
}

/* CTA Section */
.contact-cta {
    padding: 100px 0;
    background: var(--donation-gradient);
    color: #fff;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.contact-cta::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    background: url('../images/welcome.jpg');
    opacity: 0.1;
    z-index: 1;
}

.cta-content {
    position: relative;
    z-index: 2;
    max-width: 700px;
    margin: 0 auto;
}

.contact-cta h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
    color: #fff;
    text-shadow: 0 2px 4px rgba(0,0,0,0.2); /* Add shadow for better readability */
}

.contact-cta p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    opacity: 1; /* Full opacity for better visibility */
    color: #fff;
    text-shadow: 0 1px 2px rgba(0,0,0,0.2);
}

.cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
}

.contact-cta .btn {
    background: #fff;
    color: var(--donation-primary);
}

.contact-cta .btn-secondary {
    background: rgba(255, 255, 255, 0.2);
    color: #fff;
    border: 2px solid #fff;
}

.contact-cta .btn:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.contact-cta .btn-secondary:hover {
    background: rgba(255, 255, 255, 0.3);
}

/* Responsive Styles */
@media (max-width: 992px) {
    .contact-grid {
        grid-template-columns: 1fr;
    }

    .contact-info {
        order: 2;
        gap: 25px;
        max-width: 700px;
    }

    .info-card {
        padding: 32px 35px;
        min-height: 190px;
    }

    /* Email card adjustments for tablet */
    .email-card .email-content {
        font-size: 0.92rem !important;
        line-height: 1.65 !important;
    }

    .contact-form-container {
        order: 1;
        margin-bottom: 50px;
    }

    .map-container {
        height: 400px;
    }
}

@media (max-width: 768px) {
    .contact-section,
    .map-section,
    .faq-section,
    .contact-cta {
        padding: 70px 0;
    }

    .contact-info {
        grid-template-columns: 1fr;
        gap: 25px;
        max-width: 500px;
    }

    .info-card {
        padding: 30px 25px;
        min-height: 180px;
    }

    .social-connect {
        grid-column: 1;
    }

    .form-row {
        flex-direction: column;
    }

    .contact-form .form-group.half {
        width: 100%;
    }

    .contact-cta h2 {
        font-size: 2rem;
    }

    .cta-buttons {
        flex-direction: column;
        gap: 15px;
    }

    .faq-question h3 {
        font-size: 1.1rem;
    }
}

@media (max-width: 576px) {
    .contact-form-container {
        padding: 25px 20px;
    }

    .info-card {
        padding: 25px 20px;
        min-height: 160px;
    }

    .info-card h3 {
        font-size: 1.2rem;
        margin-bottom: 15px;
    }

    .info-card p {
        font-size: 0.95rem;
        line-height: 1.7;
        margin-bottom: 15px;
    }

    /* Enhanced email handling for mobile */
    .email-card .email-content {
        font-size: 0.9rem !important;
        line-height: 1.6 !important;
        word-break: break-all;
        overflow-wrap: anywhere;
    }

    .contact-info {
        gap: 20px;
        max-width: 400px;
    }

    .map-card {
        padding: 20px;
        margin: 0 20px;
    }

    .contact-cta h2 {
        font-size: 1.8rem;
    }

    .map-container {
        height: 300px;
    }
}

/* Static map fallback styling */
.static-map {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.static-map img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.map-marker {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 40px;
    height: 40px;
    animation: marker-bounce 1.5s infinite;
}

@keyframes marker-bounce {
    0%, 100% {
        transform: translate(-50%, -50%);
    }
    50% {
        transform: translate(-50%, -65%);
    }
}

.map-loaded::before {
    display: none;
}

.map-info-window {
    padding: 15px;
    max-width: 280px;
}

.map-info-window h3 {
    margin-bottom: 10px;
    color: var(--donation-primary);
    font-size: 16px;
}

.map-info-window p {
    margin-bottom: 8px;
    font-size: 14px;
}

.map-info-window i {
    color: var(--donation-primary);
    margin-right: 5px;
}

.map-info-window .btn-text {
    color: var(--donation-primary);
    font-weight: 600;
    font-size: 14px;
    display: inline-block;
    margin-top: 5px;
}

/* Update mobile styles for contact page */
@media (max-width: 768px) {
    .contact-section,
    .map-section,
    .faq-section,
    .contact-cta {
        padding: 70px 0;
    }

    .contact-info {
        grid-template-columns: 1fr;
        gap: 25px;
        max-width: 500px;
    }

    .info-card {
        text-align: center;
        padding: 30px 25px;
        min-height: 180px;
    }

    .info-icon {
        margin-left: auto;
        margin-right: auto;
    }

    .social-connect {
        grid-column: 1;
    }

    .form-row {
        flex-direction: column;
    }

    .contact-form .form-group.half {
        width: 100%;
    }

    .contact-cta h2 {
        font-size: 2rem;
    }

    .cta-buttons {
        flex-direction: column;
        gap: 15px;
    }

    .faq-question h3 {
        font-size: 1.1rem;
    }
}

.page-header.services-header {
    background-image: url('../images/welcome.jpg');
}

/* About Cards Styles */
.about-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.about-card {
    background: #fff;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow-soft);
    transition: var(--transition);
}

.about-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-medium);
}

.card-image {
    height: 220px;
    position: relative;
    overflow: hidden;
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.about-card:hover .card-image img {
    transform: scale(1.1);
}

.card-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to top, rgba(33, 33, 75, 0.8), transparent);
}

.card-content {
    padding: 25px;
}

.card-content h3 {
    color: var(--donation-dark);
    font-size: 1.3rem;
    margin-bottom: 15px;
    position: relative;
}

.card-content h3::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -8px;
    width: 40px;
    height: 3px;
    background: var(--donation-primary);
    border-radius: 2px;
}

.card-content p {
    color: #666;
    line-height: 1.6;
}

/* Responsive adjustments */
@media (max-width: 992px) {
    .about-cards {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 576px) {
    .about-cards {
        grid-template-columns: 1fr;
    }
    
    .card-image {
        height: 200px;
    }
}
/* Resources Section */
.resources-section {
    padding: 80px 0;
    background-color: #fff;
}

.resources-container {
    margin-top: 50px;
}

.resource-item {
    display: flex;
    margin-bottom: 50px;
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
}

.resource-item.alt {
    flex-direction: row-reverse;
}

.resource-image {
    flex: 1;
    height: 350px;
    min-height: 300px;
    position: relative;
}

.resource-details {
    flex: 1;
    padding: 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.resource-details h3 {
    font-size: 1.8rem;
    margin-bottom: 15px;
    color: #333;
}

.resource-details p {
    margin-bottom: 25px;
    color: #666;
    line-height: 1.6;
}

.btn-primary {
    display: inline-block;
    padding: 12px 30px;
    background-color: #5142fc;
    color: white;
    text-decoration: none;
    border-radius: 30px;
    font-weight: 600;
    transition: all 0.3s ease;
    text-align: center;
}

.btn-primary:hover {
    background-color: #4235db;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(81, 66, 252, 0.2);
}

/* Events Section */
.events-section {
    padding: 80px 0;
    background-color: #f8f9fa;
}

.events-container {
    margin-top: 50px;
}

.event-item {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    padding: 20px;
}

.event-date {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 80px;
    height: 80px;
    background: #5142fc;
    color: white;
    border-radius: 10px;
    margin-right: 25px;
    flex-shrink: 0;
}

.event-month {
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
}

.event-day {
    font-size: 1.8rem;
    font-weight: 700;
}

.event-info {
    flex: 1;
}

.event-info h3 {
    font-size: 1.4rem;
    margin-bottom: 10px;
    color: #333;
}

.event-meta {
    font-size: 0.9rem;
    color: #777;
    margin-bottom: 10px;
}

.event-meta i {
    color: #5142fc;
    margin-right: 5px;
}

.event-desc {
    color: #666;
    line-height: 1.5;
}

.event-action {
    margin-left: 20px;
}

.events-footer {
    text-align: center;
    margin-top: 40px;
}

.events-footer .btn {
    display: inline-block;
    padding: 12px 30px;
    background-color: transparent;
    border: 2px solid #5142fc;
    color: #5142fc;
    text-decoration: none;
    border-radius: 30px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.events-footer .btn:hover {
    background-color: #5142fc;
    color: white;
}

/* Responsive Styles */
@media (max-width: 992px) {
    .resource-item, 
    .resource-item.alt {
        flex-direction: column;
    }
    
    .resource-image {
        height: 250px;
    }
    
    .resource-details {
        padding: 30px;
    }
}

@media (max-width: 768px) {
    .event-item {
        flex-direction: column;
        text-align: center;
        padding: 30px 20px;
    }
    
    .event-date {
        margin-right: 0;
        margin-bottom: 20px;
    }
    
    .event-action {
        margin-left: 0;
        margin-top: 20px;
    }
    
    .resource-details h3 {
        font-size: 1.5rem;
    }
}

@media (max-width: 576px) {
    .resources-section,
    .events-section {
        padding: 50px 0;
    }
    
    .resource-image {
        height: 200px;
    }
    
    .resource-details {
        padding: 25px 20px;
    }
    
    .event-day {
        font-size: 1.5rem;
    }
    
    .event-info h3 {
        font-size: 1.2rem;
    }
}
/* Fix for Events Footer Button */
.events-footer {
    text-align: center;
    margin-top: 40px;
}

.events-footer .btn {
    display: inline-block;
    padding: 12px 30px;
    background-color: #5142fc;
    color: white;
    text-decoration: none;
    border-radius: 30px;
    font-weight: 600;
    transition: all 0.3s ease;
    font-size: 1rem;
    letter-spacing: 0.5px;
    box-shadow: 0 5px 15px rgba(81, 66, 252, 0.2);
}

.events-footer .btn:hover {
    background-color: #4235db;
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(81, 66, 252, 0.3);
}