/*
 * Modern Homepage Styles with Animations
 * EOTCMMAA Church Theme
 */

/* ========================================
   1. Modern Hero Section
======================================== */
.modern-hero {
    position: relative;
    min-height: 100vh;
    overflow: hidden;
}


.church-names-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 5;
    text-align: center;
    width: 100%;
    padding: 2rem;
    background: transparent;
}

.church-name {
    color: rgba(255, 255, 255, 0.95);
    text-shadow: 3px 3px 8px rgba(0, 0, 0, 0.8),
                 1px 1px 4px rgba(0, 0, 0, 0.9),
                 -1px -1px 4px rgba(0, 0, 0, 0.5);
    font-size: clamp(1.8rem, 4vw, 3.5rem);
    font-weight: 700;
    line-height: 1.4;
    margin-bottom: 1rem;
}

.church-name.amharic {
    font-size: clamp(2rem, 5vw, 4rem);
}

.church-name.english {
    font-size: clamp(1.5rem, 3.5vw, 3rem);
    font-weight: 600;
}

.church-name.monastery {
    font-size: clamp(1.3rem, 3vw, 2.5rem);
    font-weight: 500;
    opacity: 0.9;
}

/* Hero Carousel Styles */

.hero-carousel .hero-slider {
    height: 100vh;
}

.hero-slide {
    position: relative;
    min-height: 100vh;
    display: flex !important;
    align-items: center;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    /* Default gradient background */
    background: linear-gradient(135deg, #2d5f3f 0%, #1a3d2e 100%);
}

/* When a background image is set, it will override the gradient */
.hero-slide[style*="background-image"] {
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

/* Slick Carousel Custom Styles */
.hero-carousel .slick-dots {
    bottom: 30px;
    z-index: 10;
}

.hero-carousel .slick-dots li button:before {
    color: var(--white);
    font-size: 12px;
    opacity: 0.5;
}

.hero-carousel .slick-dots li.slick-active button:before {
    opacity: 1;
    color: var(--gold);
}

.hero-carousel .slick-prev,
.hero-carousel .slick-next {
    z-index: 10;
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    transition: all 0.3s ease;
}

.hero-carousel .slick-prev:hover,
.hero-carousel .slick-next:hover {
    background: rgba(212, 175, 55, 0.8);
}

.hero-carousel .slick-prev:before,
.hero-carousel .slick-next:before {
    font-size: 20px;
    color: var(--white);
}

.hero-carousel .slick-prev {
    left: 30px;
}

.hero-carousel .slick-next {
    right: 30px;
}

/* Hide arrows on mobile */
@media (max-width: 768px) {
    .hero-carousel .slick-prev,
    .hero-carousel .slick-next {
        display: none !important;
    }
}

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

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom,
                rgba(0, 0, 0, 0.2) 0%,
                rgba(0, 0, 0, 0.4) 50%,
                rgba(0, 0, 0, 0.2) 100%);
    z-index: 2;
}

.hero-particles {
    display: none;
}

.hero-content-wrapper {
    position: relative;
    z-index: 4;
    width: 100%;
}

.hero-content {
    text-align: center;
    color: var(--white);
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem;
}

.hero-badge {
    display: inline-block;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50px;
    padding: 0.5rem 1.5rem;
    margin-bottom: 2rem;
    animation: fadeInUp 1s ease-out;
}

.badge-text {
    font-size: 0.9rem;
    font-weight: 500;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.hero-title {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    font-family: var(--font-heading);
}

.title-line {
    display: block;
    opacity: 0;
    transform: translateY(30px);
    animation: titleSlideUp 0.8s ease-out forwards;
}

.title-line.highlight {
    background: linear-gradient(45deg, var(--accent-gold), #f4d03f);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.title-line:nth-child(2) { animation-delay: 0.2s; }
.title-line:nth-child(3) { animation-delay: 0.4s; }

@keyframes titleSlideUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-subtitle {
    font-size: 1.2rem;
    line-height: 1.6;
    margin-bottom: 2.5rem;
    opacity: 0.9;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.hero-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 3rem;
}



.hero-scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 4;
}

.scroll-arrow {
    width: 40px;
    height: 40px;
    border: 2px solid rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.7);
    animation: bounce 2s infinite;
    cursor: pointer;
    transition: all 0.3s ease;
}

.scroll-arrow:hover {
    border-color: var(--accent-gold);
    color: var(--accent-gold);
    transform: translateY(-5px);
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
    40% { transform: translateY(-10px); }
    60% { transform: translateY(-5px); }
}

/* ========================================
   2. Modern Buttons
======================================== */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 2rem;
    border: none;
    border-radius: 50px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    cursor: pointer;
    font-size: 1rem;
}

.btn-lg {
    padding: 1.25rem 2.5rem;
    font-size: 1.1rem;
}

.btn-sm {
    padding: 0.75rem 1.5rem;
    font-size: 0.9rem;
}

.btn-primary {
    background: linear-gradient(45deg, var(--accent-gold), #f4d03f);
    color: var(--text-dark);
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(212, 175, 55, 0.4);
}

.btn-outline {
    background: transparent;
    color: var(--white);
    border: 2px solid rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(10px);
}

.btn-outline:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--accent-gold);
    color: var(--accent-gold);
}

.btn-white {
    background: var(--primary-green);
    color: var(--white);
    box-shadow: 0 4px 15px rgba(46, 125, 50, 0.3);
    transition: all 0.3s ease;
    transform: translateY(0);
}

.btn-white:hover {
    background: var(--dark-green);
    box-shadow: 0 8px 25px rgba(46, 125, 50, 0.5);
    transform: translateY(-3px);
    color: var(--white);
}

.btn-outline-white {
    background: transparent;
    color: var(--primary-green);
    border: 2px solid var(--primary-green);
}

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

/* ========================================
   3. Section Styling
======================================== */
.section-header {
    margin-bottom: 4rem;
    text-align: center;
    position: relative;
    z-index: 2;
}

.text-center {
    text-align: center !important;
}

.section-badge {
    display: inline-block;
    background: linear-gradient(45deg, var(--accent-gold), #f4d03f);
    color: var(--text-dark);
    padding: 0.5rem 1.5rem;
    border-radius: 25px;
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 1rem;
}

/* Ensure section headers and badges are centered */
.section-header.text-center,
.section-header.text-center .section-badge,
.section-header.text-center .section-title,
.section-header.text-center .section-description {
    text-align: center !important;
}

.section-badge.light {
    background: var(--primary-green);
    color: var(--white);
}

.section-title {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
    font-family: var(--font-heading);
    color: var(--text-dark);
}

.section-title.light {
    color: var(--white);
}

.section-title .highlight {
    background: linear-gradient(45deg, var(--accent-gold), #f4d03f);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.section-description {
    font-size: 1.1rem;
    line-height: 1.6;
    color: var(--text-light);
    max-width: 600px;
    margin: 0 auto;
}

.section-description.light {
    color: var(--text-light);
}

.section-footer {
    margin-top: 4rem;
    padding-top: 2rem;
}

/* Specific spacing for events and gallery sections */
.modern-events .section-footer {
    margin-top: 5rem;
    padding-top: 2.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.modern-gallery .section-footer {
    margin-top: 2rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.modern-events .section-footer {
    border-top: 1px solid rgba(0, 0, 0, 0.1);
}

/* ========================================
   4. Modern Services Section
======================================== */
.modern-services {
    padding: 6rem 0;
    background: var(--off-white);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.modern-card {
    position: relative;
    background: var(--white);
    border-radius: 20px;
    padding: 2.5rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    overflow: hidden;
}

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

.card-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--primary-green) 0%, var(--dark-green) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 1;
}

.modern-card:hover .card-background {
    opacity: 0.05;
}

.service-icon {
    position: relative;
    z-index: 2;
    margin-bottom: 1.5rem;
}

.icon-wrapper {
    width: 80px;
    height: 80px;
    background: linear-gradient(45deg, var(--primary-green), var(--dark-green));
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: var(--white);
    transition: all 0.3s ease;
}

.modern-card:hover .icon-wrapper {
    transform: scale(1.1) rotate(5deg);
    background: linear-gradient(45deg, var(--accent-gold), #f4d03f);
}

.modern-card:hover .icon-wrapper i {
    color: var(--dark-green);
}

.service-content {
    position: relative;
    z-index: 2;
}

.service-content h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--text-dark);
    font-family: var(--font-heading);
}

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

.service-features {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin-bottom: 1.5rem;
}

.feature-tag {
    background: rgba(45, 95, 63, 0.1);
    color: var(--primary-green);
    padding: 0.25rem 0.75rem;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 500;
}

.card-hover-effect {
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(212, 175, 55, 0.1), transparent);
    transition: left 0.5s ease;
    z-index: 1;
}

.modern-card:hover .card-hover-effect {
    left: 100%;
}

.card-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--primary-green);
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
    z-index: 2;
}

.card-link:hover {
    color: var(--accent-gold);
    transform: translateX(5px);
}

/* ========================================
   5. Modern Events Section
======================================== */
.modern-events {
    padding: 6rem 0;
    position: relative;
    background: var(--white);
}

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

.background-pattern {
    width: 100%;
    height: 100%;
    background-image:
        radial-gradient(circle at 25% 25%, rgba(45, 95, 63, 0.05) 0%, transparent 50%),
        radial-gradient(circle at 75% 75%, rgba(212, 175, 55, 0.05) 0%, transparent 50%);
}

.events-timeline {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 1.5rem;
    position: relative;
    z-index: 2;
    max-width: 1200px;
    margin: 0 auto;
}

.modern-event-card {
    position: relative;
    background: var(--white);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.modern-event-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.12);
}

.event-card-inner {
    position: relative;
    padding: 1.5rem;
}

.event-date-badge {
    position: absolute;
    top: -15px;
    right: 1.5rem;
    z-index: 3;
}

.date-circle {
    width: 70px;
    height: 70px;
    background: linear-gradient(45deg, var(--accent-gold), #f4d03f);
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--text-dark);
    font-weight: 700;
    box-shadow: 0 4px 12px rgba(212, 175, 55, 0.3);
    border: 3px solid var(--white);
}

.date-circle .day {
    font-size: 1.5rem;
    line-height: 1;
}

.date-circle .month {
    font-size: 0.8rem;
    text-transform: uppercase;
}

.event-category {
    margin-bottom: 1rem;
}

.category-tag {
    background: rgba(45, 95, 63, 0.1);
    color: var(--primary-green);
    padding: 0.25rem 1rem;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.event-title {
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 1rem;
    font-family: var(--font-heading);
}

.event-title a {
    color: var(--text-dark);
    text-decoration: none;
    transition: color 0.3s ease;
}

.event-title a:hover {
    color: var(--primary-green);
}

/* Homepage Event Hero Title Spacing Fix */
.event-hero-main .event-hero-title,
.event-hero-main h3.event-hero-title,
h3.event-hero-title {
    margin-top: -25px !important;
    margin-bottom: 30px !important;
    padding-top: 0 !important;
    padding: 0 !important;
    margin: -25px 0 30px 0 !important;
}

.event-meta {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-light);
    font-size: 0.9rem;
}

.meta-item i {
    color: var(--accent-gold);
    width: 16px;
}

.event-excerpt {
    color: var(--text-light);
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.event-actions {
    margin-top: auto;
}

.event-hover-effect {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(45, 95, 63, 0.05) 0%, rgba(212, 175, 55, 0.05) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.modern-event-card:hover .event-hover-effect {
    opacity: 1;
}

.no-events-message {
    text-align: center;
    padding: 3rem 2rem;
    grid-column: 1 / -1;
    background: var(--white);
    border-radius: 16px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
}

.message-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(45deg, var(--accent-gold), #f4d03f);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    font-size: 2rem;
    color: var(--text-dark);
}

.no-events-message h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--text-dark);
}

.no-events-message p {
    color: var(--text-light);
    font-size: 1.1rem;
}

/* ========================================
   6. Modern Community Section
======================================== */
.modern-community {
    padding: 6rem 0;
    background: linear-gradient(180deg, var(--off-white) 0%, #ffffff 100%);
    position: relative;
    overflow: hidden;
}

.modern-community::before {
    content: '';
    position: absolute;
    top: 0;
    left: -50%;
    width: 200%;
    height: 100%;
    background: radial-gradient(circle at 50% 50%, rgba(212, 175, 55, 0.03) 0%, transparent 70%);
    animation: gentleShift 20s ease-in-out infinite;
}

@keyframes gentleShift {
    0%, 100% { transform: translateX(0); }
    50% { transform: translateX(25%); }
}

.organizations-carousel {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
}

/* Community Section Header Styles */
.modern-community .section-badge {
    background: var(--primary-green);
    color: white;
    padding: 0.5rem 1.5rem;
    border-radius: 50px;
    font-weight: 600;
    display: inline-block;
    margin-bottom: 1rem;
}

.modern-community .section-title {
    color: var(--text-dark) !important;
    text-shadow: none !important;
}

.modern-community .section-title .highlight {
    color: var(--primary-green) !important;
    background: none !important;
    -webkit-text-fill-color: var(--primary-green) !important;
    text-shadow: none !important;
}

.modern-community .section-description {
    color: #666666 !important;
    font-size: 1.1rem;
    line-height: 1.6;
    max-width: 700px;
    margin: 0 auto;
}

.orgs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
}

.modern-org-card {
    background: var(--white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(0, 0, 0, 0.05);
    position: relative;
}

.modern-org-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(212, 175, 55, 0.1), transparent);
    transition: left 0.6s ease;
}

.modern-org-card:hover::before {
    left: 100%;
}

.modern-org-card:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 15px 35px rgba(45, 95, 63, 0.15);
    border-color: var(--accent-gold);
}

.org-image {
    position: relative;
    height: 180px;
    overflow: hidden;
}

.org-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

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

.default-org-image {
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, var(--primary-green), var(--dark-green));
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 3rem;
}

.org-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(45, 95, 63, 0.9) 0%, rgba(45, 95, 63, 0.7) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.4s ease;
    backdrop-filter: blur(2px);
}

.modern-org-card:hover .org-overlay {
    opacity: 1;
}

.org-link {
    width: 50px;
    height: 50px;
    background: var(--accent-gold);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-dark);
    text-decoration: none;
    font-size: 1.2rem;
    transition: all 0.3s ease;
}

.org-link:hover {
    transform: scale(1.1) rotate(90deg);
    background: var(--white);
    color: var(--primary-green);
}

.org-content {
    padding: 1.5rem;
}

.org-content h4 {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--text-dark);
    font-family: var(--font-heading);
}

.org-content p {
    color: var(--text-light);
    line-height: 1.5;
    font-size: 0.9rem;
}

/* ========================================
   7. Latest News Section
======================================== */
.modern-news {
    padding: 6rem 0;
    background: linear-gradient(180deg, #ffffff 0%, #f8f9fa 100%);
}

.modern-news .section-badge {
    background: var(--accent-gold);
    color: var(--text-dark);
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.news-card {
    background: var(--white);
    border-radius: 12px;
    overflow: hidden;
    position: relative;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.06);
    border: 1px solid rgba(0, 0, 0, 0.04);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.news-card-header {
    position: relative;
    aspect-ratio: 16 / 9;
    height: auto;
    background: linear-gradient(135deg, var(--primary-green, #2e7d32), var(--dark-green, #1b5e20));
    overflow: hidden;
}

.news-thumbnail,
.news-thumbnail a {
    display: block;
    width: 100%;
    height: 100%;
}

.news-thumbnail img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.35s ease;
}

.news-card:hover .news-thumbnail img {
    transform: scale(1.05);
}

.news-thumbnail.default-thumbnail {
    display: flex;
    align-items: center;
    justify-content: center;
}

.news-thumbnail.default-thumbnail i {
    color: rgba(255, 255, 255, 0.9);
    font-size: 2.4rem;
}

.news-thumbnail.default-thumbnail::after {
    content: "News";
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.95rem;
    font-weight: 600;
    margin-top: 0.45rem;
}

.news-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 28px rgba(45, 95, 63, 0.12);
}

.news-date-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: rgba(255, 255, 255, 0.95);
    color: var(--text-dark);
    padding: 0.6rem 0.9rem;
    border-radius: 10px;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.12);
    text-align: center;
    min-width: 70px;
    z-index: 2;
}

.news-date-badge .day {
    display: block;
    font-size: 1.2rem;
    font-weight: 700;
    line-height: 1.1;
    color: var(--primary-green, #2e7d32);
}

.news-date-badge .month {
    display: block;
    font-size: 0.85rem;
    letter-spacing: 0.5px;
    opacity: 0.9;
}

.news-card-content {
    padding: 1.1rem 1.25rem 1.25rem;
}

.news-title {
    font-size: 1.15rem;
    margin-bottom: 0.6rem;
    color: var(--text-dark);
}

.news-title a {
    color: inherit;
    text-decoration: none;
}

.news-title a:hover {
    color: var(--primary-green);
}

.news-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    font-size: 0.9rem;
    color: var(--text-light);
    margin-bottom: 0.75rem;
}

.news-meta i {
    color: var(--primary-green);
    margin-right: 6px;
}

.news-excerpt {
    color: var(--text-light);
    line-height: 1.6;
    margin-bottom: 1rem;
    font-size: 0.95rem;
}

@media (max-width: 1100px) {
    .news-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 767px) {
    .news-grid {
        grid-template-columns: 1fr;
        gap: 1.1rem;
    }

    .news-card-header {
        aspect-ratio: 4 / 3;
    }

    .news-card-content {
        padding: 1rem;
    }
}

/* Force homepage-specific news responsiveness to avoid clashes with global .news-* rules */
.modern-news .news-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    align-items: start;
}

.modern-news .news-card {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.modern-news .news-card-header {
    display: block !important;
    width: 100%;
    min-height: 200px;
    aspect-ratio: 16 / 9 !important;
    overflow: hidden !important;
}

.modern-news .news-thumbnail,
.modern-news .news-thumbnail a {
    display: block !important;
    width: 100% !important;
    height: 100% !important;
}

.modern-news .news-thumbnail img {
    display: block !important;
    width: 100% !important;
    height: 100% !important;
    max-width: none !important;
    object-fit: cover !important;
}

.modern-news .news-thumbnail.default-thumbnail {
    display: flex !important;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

@media (max-width: 1100px) {
    .modern-news .news-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    }
}

@media (max-width: 767px) {
    .modern-news .news-grid {
        grid-template-columns: 1fr !important;
    }

    .modern-news .news-card-header {
        min-height: 180px;
        aspect-ratio: 4 / 3 !important;
    }
}

.no-news-message {
    text-align: center;
    padding: 2.5rem;
    background: var(--white);
    border-radius: 14px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.06);
    max-width: 700px;
    margin: 0 auto;
}

.no-news-message h3 {
    margin: 1rem 0 0.5rem;
    color: var(--text-dark);
}

.no-news-message p {
    color: var(--text-light);
}

/* ========================================
   8. Modern Gallery Section
======================================== */
.modern-gallery {
    padding: 6rem 0;
    position: relative;
    background: linear-gradient(135deg, #f8f9fa 0%, #e8f5e9 100%) !important;
}

/* Gallery Button Specific Styles */
.modern-gallery .btn-white {
    background: var(--primary-green);
    color: var(--white) !important;
    border: 2px solid var(--primary-green);
    box-shadow: 0 4px 20px rgba(46, 125, 50, 0.3);
    transition: all 0.4s ease;
    transform: translateY(0);
    position: relative;
    overflow: hidden;
    cursor: pointer;
    text-decoration: none;
}

.modern-gallery .btn-white:hover,
.modern-gallery .btn-white:focus {
    background: var(--dark-green) !important;
    color: var(--white) !important;
    border-color: var(--dark-green);
    box-shadow: 0 8px 30px rgba(46, 125, 50, 0.5);
    transform: translateY(-3px) scale(1.02);
    text-decoration: none;
}

.modern-gallery .btn-white:active {
    transform: translateY(-1px) scale(1.01);
    box-shadow: 0 5px 20px rgba(46, 125, 50, 0.4);
}

.modern-gallery .btn-white span {
    position: relative;
    z-index: 2;
}

.modern-gallery .btn-white i {
    position: relative;
    z-index: 2;
    transition: transform 0.3s ease;
}

.modern-gallery .btn-white:hover i {
    transform: translateX(5px);
}

/* Section header styles for better visibility */
.modern-gallery .section-header .section-badge {
    background: var(--primary-green);
    color: white;
    padding: 0.5rem 1.5rem;
    border-radius: 50px;
    font-weight: 600;
}

.modern-gallery .section-title {
    color: var(--text-dark) !important;
    margin-top: 1rem;
}

.modern-gallery .section-title .highlight {
    color: var(--accent-gold);
    text-shadow: none;
}

.modern-gallery .section-description {
    color: var(--text-light) !important;
}

.gallery-masonry {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    position: relative;
    z-index: 2;
    max-width: 100%;
    width: 100%;
    margin-top: 2rem;
}

.modern-gallery-item {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    aspect-ratio: 16/10;
    height: 250px;
    width: 100%;
    background: var(--primary-green);
}

.gallery-item-inner {
    position: relative;
    height: 100%;
    overflow: hidden;
}

.gallery-item-inner img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.default-gallery-image {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--primary-green), var(--dark-green));
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 2rem;
    gap: 0.5rem;
}

.gallery-placeholder-text {
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--white);
}

.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.2) 0%, rgba(0, 0, 0, 0.9) 100%);
    display: flex;
    align-items: flex-end;
    padding: 1.5rem;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.modern-gallery-item:hover .gallery-overlay {
    opacity: 1;
}

.gallery-content {
    color: var(--white);
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.gallery-content h4 {
    font-size: 1.1rem;
    font-weight: 600;
    margin: 0;
    color: white;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

.gallery-link {
    width: 40px;
    height: 40px;
    background: var(--accent-gold);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-dark);
    text-decoration: none;
    transition: all 0.3s ease;
    margin-left: 0.5rem;
}

.gallery-actions {
    display: flex;
    gap: 0.5rem;
}

.gallery-link:hover {
    background: var(--white);
    transform: scale(1.1);
}

.gallery-link:hover {
    transform: scale(1.1);
    background: #f4d03f;
}

/* ========================================
   8. Modern CTA Section (Join Our Spiritual Community)
======================================== */
.modern-cta {
    padding: 2.5rem 0;
    position: relative;
    background: linear-gradient(135deg, var(--primary-green) 0%, var(--dark-green) 100%) !important;
    overflow: hidden;
}

.modern-cta .container {
    max-width: 100% !important;
    width: 100% !important;
    padding: 0 3rem !important;
    margin: 0 auto !important;
}

/* Global width and spacing improvements */
.modern-services,
.modern-events,
.modern-community,
.modern-gallery,
.modern-cta {
    padding: 4rem 0;
    width: 100% !important;
    max-width: 100% !important;
}

.modern-services .container,
.modern-events .container,
.modern-community .container,
.modern-gallery .container,
.modern-cta .container {
    max-width: 100% !important;
    width: 100% !important;
    padding: 0 3rem !important;
    margin: 0 auto !important;
}

/* Force full width for Organizations and Gallery sections */
.modern-community,
.modern-gallery {
    width: 100% !important;
    max-width: 100% !important;
}

.modern-community .container,
.modern-gallery .container {
    max-width: 100% !important;
    width: 100% !important;
    padding: 0 3rem !important;
    margin: 0 auto !important;
}

/* Specific grid containers */
.orgs-grid {
    max-width: 100% !important;
    width: 100% !important;
}

/* Override any theme defaults */
.modern-community .container,
.modern-gallery .container,
.modern-cta .container,
.modern-community div.container,
.modern-gallery div.container,
.modern-cta div.container,
section.modern-community .container,
section.modern-gallery .container,
section.modern-cta .container {
    max-width: 100% !important;
    width: 100% !important;
    padding: 0 3rem !important;
    margin: 0 auto !important;
    box-sizing: border-box !important;
}

/* Ensure parent sections take full width */
section.modern-community,
section.modern-gallery,
section.modern-cta {
    width: 100% !important;
    max-width: 100% !important;
    display: block !important;
}

/* Universal home page container override */
body.home .container,
.page-template-home .container {
    max-width: 100% !important;
    width: 100% !important;
    padding: 0 3rem !important;
    margin: 0 auto !important;
}

/* Specific targeting for stubborn containers */
.modern-community .container * {
    max-width: 100% !important;
}

.modern-gallery .container * {
    max-width: 100% !important;
}

.modern-cta .container * {
    max-width: 100% !important;
}

/* Force CTA content wrapper to full width */
.cta-content {
    width: 100% !important;
    max-width: 100% !important;
}

/* Reduce grid gaps and margins */
.services-grid,
.events-timeline,
.orgs-grid {
    gap: 1.5rem;
    margin-top: 2rem;
}

.section-header {
    margin-bottom: 2.5rem;
}

.section-footer {
    margin-top: 2.5rem;
    padding-top: 1.5rem;
}

/* Hero section improvements */
.hero-content {
    max-width: 100%;
    padding: 0 2rem;
}

.hero-actions {
    gap: 1rem;
    margin-top: 2rem;
}

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

.cta-particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        radial-gradient(circle at 20% 80%, rgba(212, 175, 55, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(255, 255, 255, 0.05) 0%, transparent 50%);
    animation: subtleMove 15s ease-in-out infinite;
}

@keyframes subtleMove {
    0%, 100% { transform: translateX(0) translateY(0); }
    25% { transform: translateX(10px) translateY(-10px); }
    50% { transform: translateX(-10px) translateY(10px); }
    75% { transform: translateX(5px) translateY(-5px); }
}

.cta-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.2);
}

.cta-content {
    position: relative;
    z-index: 3;
    color: var(--white);
    max-width: 800px;
    margin: 0 auto;
}

.cta-icon {
    width: 100px;
    height: 100px;
    background: var(--accent-gold);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 2rem;
    font-size: 2.5rem;
    color: var(--text-dark);
    box-shadow: 0 10px 30px rgba(212, 175, 55, 0.3);
    animation: gentleFloat 3s ease-in-out infinite;
}

@keyframes gentleFloat {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}

.cta-title {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    font-family: var(--font-heading);
    color: var(--white);
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
}

.cta-title .highlight {
    color: var(--accent-gold);
    display: inline-block;
}

.cta-description {
    font-size: 1.2rem;
    line-height: 1.6;
    margin-bottom: 2.5rem;
    color: rgba(255, 255, 255, 0.95);
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.1);
}

.cta-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 3rem;
}

/* CTA Info Wrapper */
.cta-info-wrapper {
    width: 100%;
    margin-top: 3rem;
}

.cta-info-container {
    display: grid;
    grid-template-columns: minmax(400px, 1fr) minmax(500px, 1.5fr);
    gap: 3rem;
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    align-items: stretch;
}

/* Contact Box Styling */
.cta-contact-box {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    padding: 2.5rem;
    border-radius: 20px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.contact-title {
    color: var(--primary-green);
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 3px solid var(--accent-gold);
    display: inline-block;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 1.8rem;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 1.2rem;
    color: var(--text-dark);
}

.contact-icon {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, var(--primary-green), var(--dark-green));
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 4px 12px rgba(45, 95, 63, 0.3);
}

.contact-icon i {
    color: var(--white);
    font-size: 1.1rem;
}

.contact-content {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
}

.contact-label {
    font-size: 0.9rem;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 500;
}

.contact-text {
    font-size: 1.15rem;
    color: var(--text-dark);
    letter-spacing: 0.3px;
}

.contact-text strong {
    font-weight: 700;
    color: var(--primary-green);
}

/* Map Box Styling */
.cta-map-box {
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
    border: 3px solid rgba(255, 255, 255, 0.3);
    background: var(--white);
    position: relative;
    min-height: 450px;
    height: 100%;
}

/* New CTA Layout Styles - Centered Header */
.cta-header-centered {
    text-align: center;
    max-width: 100%;
    margin: 0 auto 2rem;
    padding: 0;
}

.cta-header-centered .cta-icon {
    margin: 0 auto 1rem;
    width: 70px;
    height: 70px;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.25);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.cta-header-centered .cta-icon i {
    font-size: 2rem;
    color: var(--accent-gold);
    filter: drop-shadow(0 3px 5px rgba(0, 0, 0, 0.2));
}

.cta-header-centered .cta-title {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
    color: var(--white);
    line-height: 1.2;
    margin-bottom: 1rem;
    text-align: center;
}

.cta-header-centered .cta-title .highlight {
    background: linear-gradient(45deg, var(--accent-gold), #f4d03f);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: inline-block;
}

.cta-header-centered .cta-description {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.6;
    margin-bottom: 1.5rem;
    text-align: center;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.cta-header-centered .cta-actions {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* Modern Compact Contact Cards */
.cta-contact-cards {
    margin-top: 2.5rem;
    width: 100%;
    max-width: 100%;
    margin-left: auto;
    margin-right: auto;
    padding: 0;
}

.contact-card-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(240px, 1fr));
    gap: 1rem;
    align-items: stretch;
}

.contact-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    padding: 1.2rem;
    text-align: center;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    min-height: 140px;
}

.contact-card:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.15);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.contact-card .card-icon {
    width: 50px;
    height: 50px;
    margin: 0 auto 1rem;
    background: var(--accent-gold);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.contact-card:hover .card-icon {
    transform: scale(1.1);
    background: var(--white);
}

.contact-card .card-icon i {
    font-size: 1.3rem;
    color: var(--dark-green);
}

.contact-card h4 {
    color: var(--white);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.contact-card p {
    color: rgba(255, 255, 255, 0.95);
    font-size: 1rem;
    font-weight: 700;
    margin: 0;
    word-break: normal;
    overflow-wrap: normal;
}

/* Map Card Special Styling */
.contact-card.map-card {
    grid-column: span 1;
    padding: 0;
    min-height: 140px;
    position: relative;
}

.map-card .church-map-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 1;
    border-radius: 15px;
    object-fit: cover;
}

.map-card .map-overlay {
    position: relative;
    z-index: 2;
    padding: 1.5rem;
    background: linear-gradient(135deg,
        rgba(45, 95, 63, 0.75) 0%,
        rgba(76, 175, 80, 0.65) 100%);
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border-radius: 15px;
    backdrop-filter: blur(2px);
}

.btn-view-map {
    margin-top: 1rem;
    padding: 0.5rem 1.2rem;
    background: var(--white);
    color: var(--dark-green);
    border-radius: 25px;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 600;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-view-map:hover {
    transform: scale(1.05);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.btn-view-map i {
    font-size: 0.8rem;
}

.cta-left-content {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    text-align: left;
    padding-right: 2rem;
    max-width: 100%;
}

.cta-header-section {
    display: flex;
    flex-direction: column;
    gap: 1.75rem;
    margin-bottom: 1rem;
}

.cta-contact-section {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    padding: 1.5rem;
    border-radius: 20px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
    border: 2px solid rgba(255, 255, 255, 0.4);
}

.cta-contact-section .contact-title {
    color: var(--primary-green);
    font-size: 1.6rem;
    font-weight: 700;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 3px solid var(--accent-gold);
    display: inline-block;
}

.cta-contact-section .contact-details {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.cta-contact-section .contact-item {
    display: flex;
    align-items: flex-start;
    gap: 1.2rem;
    color: var(--text-dark);
}

.cta-contact-section .contact-text strong {
    font-size: 1.2rem;
    color: var(--dark-green);
}

.cta-bottom-container .cta-contact-section {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    padding: 2rem;
    border-radius: 20px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
    border: 2px solid rgba(255, 255, 255, 0.4);
    height: fit-content;
}

.cta-bottom-container .cta-map-container {
    width: 100%;
    height: 100%;
    min-height: 400px;
    max-height: 450px;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.2);
    border: 3px solid rgba(255, 255, 255, 0.3);
    background: var(--white);
}

/* Override center alignment for new layout */
.cta-main-container .cta-icon {
    margin: 0;
    width: 80px;
    height: 80px;
}

.cta-main-container .cta-title {
    margin-bottom: 0;
    text-align: left;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.cta-main-container .cta-description {
    text-align: left;
    margin-bottom: 0;
    max-width: none;
    word-wrap: break-word;
    overflow-wrap: break-word;
    line-height: 1.6;
}

.cta-main-container .cta-actions {
    justify-content: flex-start;
    margin-bottom: 0;
}

.cta-main-container .contact-title {
    text-align: left;
}

.cta-map-box::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg,
        rgba(45, 95, 63, 0.1) 0%,
        transparent 50%,
        rgba(212, 175, 55, 0.1) 100%);
    pointer-events: none;
    z-index: 1;
}

.church-map {
    width: 100%;
    height: 100%;
    min-height: 400px;
    display: block;
    position: relative;
    z-index: 0;
}

/* CTA Section Button Overrides */
.modern-cta .btn-white {
    background: var(--white);
    color: var(--primary-green);
    box-shadow: 0 4px 15px rgba(255, 255, 255, 0.3);
}

.modern-cta .btn-white:hover {
    background: var(--accent-gold);
    color: var(--text-dark);
    box-shadow: 0 8px 25px rgba(212, 175, 55, 0.4);
}

.modern-cta .btn-outline-white {
    background: transparent;
    color: var(--white);
    border: 2px solid var(--white);
}

.modern-cta .btn-outline-white:hover {
    background: var(--white);
    color: var(--primary-green);
    border-color: var(--white);
}

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

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

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

@keyframes zoomIn {
    from {
        opacity: 0;
        transform: scale(0.8);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Scroll animations */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

.animate-on-scroll.animated {
    opacity: 1;
    transform: translateY(0);
}

/* ========================================
   10. Responsive Design
======================================== */
@media (max-width: 1024px) {
    .cta-info-container {
        grid-template-columns: 1fr;
        gap: 2.5rem;
        max-width: 800px;
    }

    .cta-map-box {
        min-height: 400px;
    }

    .cta-main-container {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .contact-card-grid {
        grid-template-columns: 1fr 1fr;
        gap: 1rem;
    }

    .contact-card.map-card {
        grid-column: span 2;
    }
}

@media (max-width: 768px) {
    .modern-hero,
    .modern-services,
    .modern-events,
    .modern-community,
    .modern-gallery,
    .modern-cta {
        padding: 3rem 0;
    }

    .modern-services .container,
    .modern-events .container,
    .modern-community .container,
    .modern-gallery .container,
    .modern-cta .container {
        padding: 0 2rem;
    }



    .hero-actions {
        flex-direction: column;
        align-items: center;
        gap: 0.75rem;
    }

    .services-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .events-timeline {
        grid-template-columns: 1fr;
        gap: 1.25rem;
    }

    .orgs-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 1.25rem;
    }

    .gallery-masonry {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
        padding: 0;
    }

    .cta-actions {
        flex-direction: column;
        align-items: center;
        gap: 0.75rem;
    }

    .contact-card-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .contact-card.map-card {
        grid-column: span 1;
        min-height: 200px;
    }

    .cta-contact-cards {
        padding: 0;
    }

    .cta-info-container {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .cta-contact-box {
        padding: 2rem;
    }

    .contact-title {
        font-size: 1.5rem;
    }

    .contact-details {
        gap: 1.5rem;
    }

    .contact-icon {
        width: 45px;
        height: 45px;
    }

    .contact-icon i {
        font-size: 1.1rem;
    }

    .contact-label {
        font-size: 0.85rem;
    }

    .contact-text {
        font-size: 1rem;
    }

    .cta-map-box {
        height: 300px;
    }

    .church-map {
        min-height: 300px;
    }

    .section-header {
        margin-bottom: 3rem;
    }

    .section-title {
        font-size: clamp(1.8rem, 4vw, 2.5rem);
    }

    .section-footer {
        margin-top: 3rem;
        padding-top: 1.5rem;
    }

    .modern-events .section-footer {
        margin-top: 3.5rem;
        padding-top: 2rem;
    }

    .modern-gallery .section-footer {
        margin-top: 1.5rem;
        padding-top: 1rem;
    }
}

@media (max-width: 480px) {
    .modern-hero,
    .modern-services,
    .modern-events,
    .modern-community,
    .modern-gallery,
    .modern-cta {
        padding: 3rem 0;
    }

    .modern-card {
        padding: 1.25rem;
    }

    .event-card-inner {
        padding: 1.25rem;
    }

    .date-circle {
        width: 55px;
        height: 55px;
    }

    .date-circle .day {
        font-size: 1.1rem;
    }

    .date-circle .month {
        font-size: 0.65rem;
    }

    .gallery-masonry {
        grid-template-columns: 1fr;
        gap: 1rem;
        padding: 0;
    }

    .orgs-grid {
        grid-template-columns: 1fr;
    }

    .hero-content {
        padding: 1rem;
    }

    .section-header {
        margin-bottom: 2rem;
    }

    .section-footer {
        margin-top: 2.5rem;
        padding-top: 1rem;
    }

    .modern-events .section-footer {
        margin-top: 3rem;
        padding-top: 1.5rem;
    }

    .modern-gallery .section-footer {
        margin-top: 1.5rem;
        padding-top: 0.5rem;
    }

    .btn {
        padding: 0.875rem 1.5rem;
        font-size: 0.9rem;
    }

    .btn-lg {
        padding: 1rem 2rem;
        font-size: 1rem;
    }
}
