/* ========================================
   MODERN HOMEPAGE STYLES - SPIRITUAL LIFE CENTER
   ======================================== */

/* Modern Service Times & Location Cards */
.home-church-grid > div {
    border: 2px solid rgba(59, 89, 152, 0.1) !important;
    border-radius: 24px !important;
    padding: 3rem !important;
    background: linear-gradient(135deg, #ffffff 0%, #f8f9ff 100%) !important;
    box-shadow: 0 10px 40px rgba(59, 89, 152, 0.08) !important;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1) !important;
    position: relative;
    overflow: hidden;
}

.home-church-grid > div::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #3B5998 0%, #6B8DD6 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.home-church-grid > div:hover::before {
    opacity: 1;
}

.home-church-grid > div:hover {
    transform: translateY(-12px);
    box-shadow: 0 20px 60px rgba(59, 89, 152, 0.15) !important;
    border-color: rgba(59, 89, 152, 0.25) !important;
}

.home-church-grid h2 {
    font-size: 1.75rem !important;
    font-weight: 900 !important;
    color: #1f2937 !important;
    margin-bottom: 2rem !important;
    letter-spacing: -0.02em;
}

.home-church-grid .fas {
    font-size: 1.5rem !important;
    color: #3B5998 !important;
    transition: all 0.3s ease;
}

.home-church-grid > div:hover .fas {
    transform: scale(1.15);
    color: #2D4373 !important;
}

.home-church-grid a {
    display: inline-flex !important;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 2rem !important;
    border-radius: 12px !important;
    font-weight: 700 !important;
    font-size: 1rem !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
    text-decoration: none !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08) !important;
}

.home-church-grid a:first-of-type {
    background: linear-gradient(135deg, #3B5998 0%, #2D4373 100%) !important;
    color: #ffffff !important;
    border: none !important;
}

.home-church-grid a:first-of-type:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 8px 25px rgba(59, 89, 152, 0.3) !important;
}

.home-church-grid a:last-of-type {
    background: transparent !important;
    color: #3B5998 !important;
    border: 2px solid #3B5998 !important;
}

.home-church-grid a:last-of-type:hover {
    background: rgba(59, 89, 152, 0.05) !important;
    transform: translateY(-3px);
    border-color: #2D4373 !important;
}

/* Modern Quick Links Grid */
.home-quicklinks-grid {
    margin-top: 4rem !important;
}

.home-quicklinks-grid a {
    position: relative;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1) !important;
    border-radius: 20px !important;
    padding: 2.25rem 1.75rem !important;
    box-shadow: 0 8px 30px rgba(59, 89, 152, 0.1) !important;
    border: 2px solid rgba(59, 89, 152, 0.12) !important;
    background: linear-gradient(135deg, #ffffff 0%, #f8f9ff 100%) !important;
}

.home-quicklinks-grid a::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #3B5998 0%, #6B8DD6 100%);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s ease;
}

.home-quicklinks-grid a:hover::before {
    transform: scaleX(1);
}

.home-quicklinks-grid a:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 20px 50px rgba(59, 89, 152, 0.18) !important;
    border-color: rgba(59, 89, 152, 0.3) !important;
    background: linear-gradient(135deg, #ffffff 0%, #EBF0F9 100%) !important;
}

.home-quicklinks-grid a > div:first-child {
    margin-bottom: 1rem !important;
}

.home-quicklinks-grid a > div:first-child > div:first-child {
    font-size: 1.15rem !important;
    color: #1f2937 !important;
    font-weight: 900 !important;
    letter-spacing: -0.01em;
}

.home-quicklinks-grid a > div:last-child {
    color: #6b7280 !important;
    font-size: 0.95rem !important;
    line-height: 1.5;
    font-weight: 500;
}

.home-quicklinks-grid a .fas {
    font-size: 2rem !important;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1) !important;
    color: #3B5998 !important;
}

.home-quicklinks-grid a:hover .fas {
    transform: scale(1.2) rotate(5deg) !important;
    color: #2D4373 !important;
}

/* Hero Section Enhancements */
.hero {
    position: relative;
    min-height: 90vh !important;
}

.hero-overlay {
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.5) 0%, rgba(59, 89, 152, 0.3) 100%) !important;
}

.hero-headline {
    font-size: clamp(2.5rem, 5vw, 4rem) !important;
    font-weight: 900 !important;
    letter-spacing: -0.02em !important;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.5) !important;
    line-height: 1.1 !important;
}

.hero-kicker {
    font-size: clamp(1.25rem, 2.5vw, 1.75rem) !important;
    font-weight: 600 !important;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.4) !important;
    line-height: 1.5 !important;
    max-width: 800px;
    margin: 0 auto;
}

.hero-credit .cta-button {
    background: linear-gradient(135deg, #3B5998 0%, #2D4373 100%) !important;
    color: #ffffff !important;
    padding: 1.25rem 3rem !important;
    font-size: 1.15rem !important;
    font-weight: 700 !important;
    border-radius: 50px !important;
    border: none !important;
    box-shadow: 0 10px 30px rgba(59, 89, 152, 0.4) !important;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1) !important;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.hero-credit .cta-button:hover {
    transform: translateY(-5px) scale(1.05) !important;
    box-shadow: 0 15px 40px rgba(59, 89, 152, 0.5) !important;
    background: linear-gradient(135deg, #2D4373 0%, #1E2A4A 100%) !important;
}

/* Section Title Enhancements */
.section-title {
    font-size: clamp(2.25rem, 4vw, 3rem) !important;
    font-weight: 900 !important;
    color: #1f2937 !important;
    letter-spacing: -0.02em !important;
    margin-bottom: 4rem !important;
}

.section-title::after {
    width: 100px !important;
    height: 4px !important;
    background: linear-gradient(90deg, #3B5998 0%, #6B8DD6 100%) !important;
    margin: 1.5rem auto !important;
    border-radius: 10px !important;
}

/* Events Grid Modernization */
.events-grid {
    gap: 3rem !important;
}

.event-card {
    border-radius: 24px !important;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1) !important;
    border: 2px solid rgba(59, 89, 152, 0.1) !important;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1) !important;
    overflow: hidden;
}

.event-card:hover {
    transform: translateY(-12px) !important;
    box-shadow: 0 20px 60px rgba(59, 89, 152, 0.15) !important;
    border-color: rgba(59, 89, 152, 0.25) !important;
}

.event-image {
    height: 280px !important;
    position: relative;
    overflow: hidden;
}

.event-image::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(180deg, transparent 0%, rgba(0, 0, 0, 0.3) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.event-card:hover .event-image::after {
    opacity: 1;
}

.event-date-badge {
    background: linear-gradient(135deg, #3B5998 0%, #2D4373 100%) !important;
    padding: 1rem 1.25rem !important;
    border-radius: 16px !important;
    box-shadow: 0 6px 20px rgba(59, 89, 152, 0.4) !important;
}

.event-title {
    font-size: clamp(1.5rem, 3vw, 1.85rem) !important;
    font-weight: 800 !important;
    color: #1f2937 !important;
    letter-spacing: -0.01em !important;
}

.event-btn {
    background: linear-gradient(135deg, #3B5998 0%, #2D4373 100%) !important;
    padding: 1rem 2rem !important;
    border-radius: 12px !important;
    font-weight: 700 !important;
    box-shadow: 0 6px 20px rgba(59, 89, 152, 0.3) !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

.event-btn:hover {
    transform: translateX(8px) scale(1.05) !important;
    box-shadow: 0 8px 25px rgba(59, 89, 152, 0.4) !important;
}

/* Topics Grid Modernization */
.topics-grid {
    gap: 3rem !important;
}

.topic-card {
    border-radius: 24px !important;
    padding: 3rem !important;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08) !important;
    border: 2px solid rgba(59, 89, 152, 0.1) !important;
    border-left: 5px solid #3B5998 !important;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1) !important;
    background: linear-gradient(135deg, #ffffff 0%, #f8f9ff 100%) !important;
}

.topic-card:hover {
    transform: translateY(-12px) !important;
    box-shadow: 0 20px 60px rgba(59, 89, 152, 0.15) !important;
    border-left-color: #2D4373 !important;
    border-color: rgba(59, 89, 152, 0.25) !important;
}

.topic-card h3 {
    font-size: clamp(1.5rem, 3vw, 1.85rem) !important;
    font-weight: 800 !important;
    color: #1f2937 !important;
    letter-spacing: -0.01em !important;
}

.topic-icon {
    font-size: 3.5rem !important;
    margin-bottom: 1.5rem !important;
    color: #3B5998 !important;
    transition: all 0.3s ease;
}

.topic-card:hover .topic-icon {
    transform: scale(1.15) rotate(5deg);
    color: #2D4373 !important;
}

/* Gallery Grid Modernization */
.gallery-grid {
    gap: 3rem !important;
}

.gallery-item {
    border-radius: 24px !important;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1) !important;
    border: 2px solid rgba(59, 89, 152, 0.1) !important;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

.gallery-item:hover {
    transform: translateY(-12px) scale(1.02) !important;
    box-shadow: 0 20px 60px rgba(59, 89, 152, 0.15) !important;
    border-color: rgba(59, 89, 152, 0.25) !important;
}

/* Benefits Grid Modernization */
.benefits-grid {
    gap: 3rem !important;
}

.benefit-item {
    padding: 2rem;
    border-radius: 20px;
    background: linear-gradient(135deg, #ffffff 0%, #f8f9ff 100%);
    border: 2px solid rgba(59, 89, 152, 0.1);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.benefit-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 40px rgba(59, 89, 152, 0.12);
    border-color: rgba(59, 89, 152, 0.25);
}

.benefit-icon {
    font-size: 3rem !important;
    color: #3B5998 !important;
    transition: all 0.3s ease;
}

.benefit-item:hover .benefit-icon {
    transform: scale(1.15) rotate(5deg);
    color: #2D4373 !important;
}

.benefit-content h4 {
    font-size: clamp(1.35rem, 3vw, 1.65rem) !important;
    font-weight: 800 !important;
    color: #1f2937 !important;
    letter-spacing: -0.01em !important;
}

/* Responsive Enhancements */
@media (max-width: 1024px) {
    .home-church-grid {
        grid-template-columns: 1fr !important;
        gap: 2rem !important;
    }

    .home-quicklinks-grid {
        grid-template-columns: repeat(3, 1fr) !important;
        gap: 1.5rem !important;
    }
}

@media (max-width: 768px) {
    .home-church-grid > div {
        padding: 2rem !important;
    }

    .home-quicklinks-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 1.25rem !important;
    }

    .home-quicklinks-grid a {
        padding: 1.75rem 1.25rem !important;
    }

    .hero {
        min-height: 70vh !important;
    }
}

@media (max-width: 480px) {
    .home-quicklinks-grid {
        grid-template-columns: 1fr !important;
    }
}

/* Smooth Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.topic-card,
.event-card,
.gallery-item,
.benefit-item {
    animation: fadeInUp 0.6s ease backwards;
}

.topic-card:nth-child(1) { animation-delay: 0.1s; }
.topic-card:nth-child(2) { animation-delay: 0.2s; }
.topic-card:nth-child(3) { animation-delay: 0.3s; }
.topic-card:nth-child(4) { animation-delay: 0.4s; }
.topic-card:nth-child(5) { animation-delay: 0.5s; }
.topic-card:nth-child(6) { animation-delay: 0.6s; }
