/* docs/stylesheets/carousel.css */
.swiper {
    width: 100%;
    height: 400px; /* Adjust height as needed */
    border-radius: 8px;
    box-shadow: 0 0px 0px rgba(0, 0, 0, 0.1);
    margin-bottom: 2em;
    --swiper-navigation-color: #ff9536ff; /* Red Arrows */
    --swiper-pagination-color: #ff9536ff; /* Green Dots */
}

.swiper-slide {
    text-align: center;
    font-size: 18px;
    background: var(--md-default-bg-color); /* Matches theme (dark/light) */
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.swiper-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Ensures images fill the slide */
}

/* Optional: Caption styling */
.slide-caption {
    position: absolute;
    bottom: 10px;
    left: 20px;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 8px 12px;
    border-radius: 4px;
    max-width: 80%;
    text-align: left;
    opacity: 0.9; /* Slightly transparent for better readability */
}

.slide-caption h3 {
    margin: 0 0 5px 0;
    color: #fff;
    font-size: 1.1em; /* Standard is usually ~1.5em */
    line-height: 1.2;
}
.slide-caption p {
    margin: 0;
    font-size: 0.9em;
    font-size: 0.85em; /* Was 0.9em */
    opacity: 0.9; /* Slightly dims the text for better hierarchy */
}

.grid-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 2em;
}

.card {
    background: var(--md-default-bg-color);
    border: 1px solid var(--md-default-fg-color--lightest);
    border-radius: 8px;
    padding: 20px;
    transition:
        transform 0.2s,
        box-shadow 0.2s;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.card h3 {
    margin-top: 0;
}
