/* Hero Section */
.extension-hero {
    text-align: center;
    padding: 20px 0 40px 0;
}

.hero-text {
    font-size: 1.2rem;
    color: #555;
    max-width: 800px;
    margin: 0 auto 30px auto;
}

/* Call to Action Button */
.cta-button {
    display: inline-block;
    background-color: #005bb5;
    color: white;
    padding: 12px 30px;
    font-size: 1.1rem;
    font-weight: bold;
    border-radius: 5px;
    text-decoration: none;
    transition: background-color 0.3s ease, transform 0.2s ease;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.cta-button:hover {
    background-color: #003f8c;
    transform: translateY(-2px);
    text-decoration: none;
    color: white;
}

/* Divider */
.divider {
    border: 0;
    height: 1px;
    background-image: linear-gradient(to right, rgba(0, 0, 0, 0), rgba(0, 0, 0, 0.1), rgba(0, 0, 0, 0));
    margin: 20px 0 40px 0;
}

/* Feature Grid Layout */
.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-bottom: 20px;
}

.feature-card {
    background-color: #fcfcfc;
    border: 1px solid #eee;
    border-radius: 8px;
    padding: 25px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    transition: box-shadow 0.3s ease;
}

.feature-card:hover {
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.feature-card h2 {
    color: #005bb5;
    font-size: 1.4rem;
    margin-top: 0;
    margin-bottom: 15px;
    border-bottom: 2px solid #f0f0f0;
    padding-bottom: 10px;
}

.feature-card p {
    font-size: 1rem;
    color: #4a4a4a;
    line-height: 1.6;
    margin: 0;
}

/* Slideshow container */
.carousel-container {
    max-width: 850px;
    position: relative;
    margin: 40px auto;
    border: 1px solid #ddd;
    background: #fff;
    border-radius: 8px;
    overflow: hidden; /* Ensures images stay within rounded corners */
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
}

/* Hide the slides by default */
.carousel-slide {
    display: none;
}

/* Slide images */
.carousel-slide img {
    width: 100%;
    height: auto;
    display: block;
    border-bottom: 1px solid #eee;
}

/* Caption text block below the image */
.slide-caption {
    padding: 25px;
    text-align: left;
    background-color: #fbfbfb;
}

.slide-caption h3 {
    color: #005bb5;
    margin-top: 0;
    margin-bottom: 10px;
}

.slide-caption p {
    font-size: 1rem !important; /* Override base font size */
    color: #555;
    margin: 0;
    line-height: 1.5;
}

/* Next & previous buttons */
.prev, .next {
    cursor: pointer;
    position: absolute;
    /* Position them centered relative to the IMAGE part, roughly */
    top: 40%; 
    width: auto;
    padding: 16px;
    margin-top: -22px;
    color: white;
    font-weight: bold;
    font-size: 24px;
    transition: 0.3s ease;
    border-radius: 0 3px 3px 0;
    user-select: none;
    background-color: rgba(0, 0, 0, 0.3); /* Semi-transparent black */
}

/* Position the "next button" to the right */
.next {
    right: 0;
    border-radius: 3px 0 0 3px;
}

/* On hover, add a darker black background color */
.prev:hover, .next:hover {
    background-color: rgba(0, 0, 0, 0.7);
}

/* Fading animation effect for slides */
.fade {
    animation-name: fade;
    animation-duration: 0.8s;
}

@keyframes fade {
    from {opacity: .7}
    to {opacity: 1}
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .feature-grid {
        grid-template-columns: 1fr;
    }
    
    .hero-text {
        font-size: 1.1rem;
    }
}
