﻿


/* --- General Swiper Styling --- */
.swiper {
    width: 100%;
    max-width: 1100px; /* Increased max-width slightly */
    margin: 0 auto;
    padding: 0px 0; /* Increased padding for better nav button spacing */
    position: relative;
    overflow: hidden;
}

.swiper-slide {
    height: auto; /* Allow height to adjust based on content */
    background-color: #ffffff; /* White background for cards */
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    display: flex; /* Use flexbox for content alignment */
    flex-direction: column; /* Stack content vertically */
    overflow: hidden; /* Ensure content respects border-radius */
}

.slide-content {
    padding: 5px;
    text-align: left; /* Center text content */
    flex-grow: 1; /* Allow content area to grow */
    display: flex;
    flex-direction: column;
}

    .slide-content img {
        width: 100%; /* Make image fill container width */
        height: 300px; /* Fixed height for consistency */
        object-fit: cover; /* Cover the area, crop if needed */
        display: block;
        margin-bottom: 15px;
        border-radius: 5px 5px 0 0; /* Optional: Round top corners */
        /* Remove top radius if image is inside padding */
        /* margin: -20px -20px 15px -20px; */ /* Alternative if you want image edge-to-edge */
    }

    .slide-content h3 {
        font-size: 1.3em;
        margin-top: 0;
        margin-bottom: 10px;
        color: #0056b3;
    }

    .slide-content p {
        font-size: 0.95em;
        line-height: 1.5;
        color: #495057;
        margin-bottom: 10px;
        flex-grow: 1; /* Push button to the bottom */
    }

.slide-button {
    display: inline-block;
    padding: 10px 20px;
    background-color: #007bff;
    color: white;
    text-decoration: none;
    border-radius: 5px;
    font-weight: 500;
    transition: background-color 0.3s ease, transform 0.2s ease;
    margin-top: auto; /* Stick to the bottom if parent is flex column */
    align-self: center; /* Center button horizontally */
}

    .slide-button:hover {
        background-color: #0056b3;
        transform: translateY(-2px);
    }


/* --- Navigation Buttons Styling (Adjusted for new padding) --- */
.swiper-button-prev,
.swiper-button-next {
    position: absolute;
    top: 40%;
    transform: translateY(-50%);
    width: 44px;
    height: 44px;
    background-color: rgba(0, 0, 0, 0.4);
    border-radius: 50%;
    color: white;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10;
    transition: background-color 0.3s ease;
}

    .swiper-button-prev:hover,
    .swiper-button-next:hover {
        background-color: rgba(0, 0, 0, 0.6);
    }

    .swiper-button-prev::after,
    .swiper-button-next::after {
        font-size: 20px;
        font-weight: bold;
    }

.swiper-button-prev {
    left: 10px; /* Position closer to the edge */
}

.swiper-button-next {
    right: 10px; /* Position closer to the edge */
}


/* --- Pagination Styling --- */
.swiper-pagination {
    position: absolute;
    bottom: 15px; /* Adjust position slightly higher */
    left: 0;
    width: 100%;
    text-align: center;
}

.swiper-pagination-bullet {
    background-color: #adb5bd;
    opacity: 0.8;
    width: 10px;
    height: 10px;
    margin: 0 5px;
}

.swiper-pagination-bullet-active {
    background-color: #007bff;
    opacity: 1;
}

/* --- Custom Classes for Specific Slider Controls --- */
/* Optional: If you need different control colors per slider */
.feature-slider .swiper-button-prev,
.feature-slider .swiper-button-next {
    /* Example: Blueish controls */
    /* background-color: rgba(0, 123, 255, 0.6); */
}

.feature-slider .swiper-pagination-bullet-active {
    /* background-color: #007bff; */
}

.blog-slider .swiper-button-prev,
.blog-slider .swiper-button-next {
    /* Example: Greenish controls */
    /* background-color: rgba(40, 167, 69, 0.6); */
}

.blog-slider .swiper-pagination-bullet-active {
    /* background-color: #28a745; */
}

@media screen and (max-width: 599px) {
    .slide-content img {
        width: 100%; /* Make image fill container width */
        height: 150px; /* Fixed height for consistency */
      
    }

    .slide-content h3 {
        font-size: 16px;
        margin-top: 0;
        margin-bottom: 10px;
        color: #0056b3;
    }

    .slide-content p {
        font-size: 15px;
        max-height:100px;
        overflow-y:auto;
    }
}
