/* Service Page Hero */
.service-detail-hero {
    padding: 150px 20px 80px;
    background: linear-gradient(135deg, #1b3022 0%, #2e4f2d 100%);
    color: white;
    text-align: center;
}

.service-info-grid{
    background-color: #fcf9f2;
}

/* Container adjustment */
.service-info-grid .split-layout {
    display: flex;
    flex-wrap: wrap; /* Allows cards to wrap to the next line on smaller screens */
    align-items: stretch; /* This forces all items in a row to the same height */
    gap: 25px;
}

/* Card adjustment */
.info-card {
    background: white;
    padding: 40px;
    border-radius: 24px;
    flex: 1; 
    min-width: 280px; /* Prevents cards from getting too skinny */
    display: flex;
    flex-direction: column; /* Aligns content vertically */
    height: 100%; /* Ensures it fills the flex container */
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    border: 1px solid #e0eadd;
}

.card-tag {
    display: inline-block;
    padding: 5px 15px;
    background: #d2f3d3;
    color: #1b3022;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: bold;
    text-transform: uppercase;
    margin-bottom: 15px;
}

.card-tag.online {
    background: #eaf7eb;
    color: #4a7c44;
}

/* Styling the Location Notice link */
.location-note a {
    color: #4a7c44; /* dcc green */
    text-decoration: none;
    font-weight: 600;
    position: relative;
    padding-bottom: 1px;
    transition: color 0.3s ease;
}

/* Adding a subtle, permanent underline that gets thicker on hover */
.location-note a::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 1px;
    bottom: 0;
    left: 0;
    background-color: rgba(74, 124, 68, 0.3); /* Faded green underline */
    transition: all 0.3s ease;
}

.location-note a:hover {
    color: #1b3022; /* Darken text on hover */
}

.location-note a:hover::after {
    height: 2px;
    background-color: #4a7c44; /* Solid green on hover */
}

/* Digital Platforms Section */
.digital-platforms {
    padding: 100px 20px;
    background-color: #d2f3d3;
    text-align: center;
}

.platform-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    max-width: 1000px;
    margin: 40px auto 0;
}

.platform-card {
    background: white;
    padding: 40px;
    border-radius: 24px;
    text-decoration: none;
    color: #1b3022;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid rgba(0,0,0,0.05);
}

.platform-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
}

.platform-icon {
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.action-text {
    display: block;
    margin-top: 20px;
    font-weight: bold;
    color: #4a7c44;
}


.featured-sermon {
    padding: 80px 20px;
    background-color: #fcf9f2;
    text-align: center;
}

/* This trick maintains a 16:9 aspect ratio for the video */
.video-container {
    position: relative;
    width: 100%;
    max-width: 900px;
    margin: 40px auto;
    padding-bottom: 56.25%; /* 16:9 Ratio */
    height: 0;
    overflow: hidden;
    border-radius: 30px; /* Matching map and cards */
    box-shadow: 0 20px 50px rgba(0,0,0,0.15);
}

@media (max-width: 768px) {
    .video-container {
        margin-left: calc(-45vw + 50%);
        width: 90vw;
        max-width: 900px;
        padding-bottom: 80vw;
    }
}


.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

.video-caption {
    font-size: 1rem;
    color: #555;
    margin-top: 20px;
    font-style: italic;
}