﻿/* Basic CSS for the slider functionality */
.cards-wrapper {
    display: flex; /* Arrange cards in a row */
    transition: transform 0.8s ease-in-out; /* Smooth transition for sliding, adjusted for auto-play */
}

.slider-container {
    overflow: hidden; /* Hide cards that are out of view */
    position: relative; /* For button positioning if needed */
    cursor: grab; /* Add cursor styling to indicate interactivity */
}

    .slider-container:active {
        cursor: grabbing;
    }

/* Important: Override grid-row behavior for the slider functionality */
/* Ensure flex for sliding and prevent wrapping */
.fr-grid-row.cards-wrapper {
    display: flex;
    flex-wrap: nowrap;
    justify-content: flex-start;
}

/* Card Item Styling */
.card-item {
    flex-shrink: 0; /* Prevent cards from shrinking */
    padding: 20px;
    box-sizing: border-box; /* Include padding in the element's total width */
    transition: all 0.3s ease-in-out; /* Smooth transitions for hover effects */
}

.fr-card {
    overflow: hidden; /* Ensures content respects border-radius */
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1); /* Subtle shadow */
    height: 100%; /* Ensure cards take full height of their container */
    display: flex; /* Use flexbox for internal alignment */
    flex-direction: column; /* Stack content vertically */
    /* --- NEW BORDER STYLES --- */
    /* Ensure transition also applies to border-color if you change it on hover */
    transition: all 0.3s ease-in-out, border-color 0.3s ease-in-out;
}

.useful-link-fr-card:hover {
    transform: translateY(-5px); /* Lift effect on hover */
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15); /* More pronounced shadow on hover */
    border-color: #c0c0c0; /* Slightly darker border on hover for subtle feedback */
}

.fr-card__body {
    display: flex;
    justify-content: center; /* Center content horizontally */
    align-items: center; /* Center content vertically */
    min-height: 100px; /* Minimum height for the card body to accommodate images */
    padding: 1.5rem; /* More generous padding */
}

    .fr-card__body img {
        display: block; /* Remove extra space below image */
        max-width: 100%; /* Ensure image fits within its container */
        height: auto; /* Maintain aspect ratio */
        max-height: 70px; /* Slightly increase max-height for logos */
        object-fit: contain; /* Ensure the image fits without cropping */
    }

/* Responsive Card Widths */
/* Mobile: 2 cards per view */

.card-item {
    flex: 0 0 calc(100% / 2);
    max-width: calc(100% / 2);
}



.home-welcome-readmore {
    display: flex;
    justify-content: center;
    margin-top: 1rem;
}

.countdown-background-img {
    background: #f7f7f7;
    max-width: 100vw;
}

.countdown-container {
    margin: 0 auto;
    padding: 2rem 0rem ;
    text-align: center;
}

    .countdown-container h3 {
        font-weight: 700;
        margin-bottom: 1rem;
        color: #2c3e50;
    }



.count-text {
    color: #2c3e50 !important;
}

.event-time-local {
    font-size: 0.9rem;
    color: #555;
    margin-top: 0.5rem;
}

.fade-out {
    opacity: 0;
    transition: opacity 0.5s ease;
}

.counter-content .countdown {
    text-align: center;
    display: flex;
    margin-top: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

    .counter-content .countdown li {
        list-style: none;
        flex-basis: 150px;
    }




        .counter-content .countdown li:nth-child(2) span {
            background: #2a5298;
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
        }

        .counter-content .countdown li:nth-child(3) span {
            background: #2a5298;
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
        }

        .counter-content .countdown li:nth-child(4) span {
            background: #2a5298;
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
        }


@media (max-width: 480px) {

    .countdown-container {
        padding: 1em;
    }

        .countdown-container h2 {
            font-weight: 700;
            font-size: 4vw;
            color: #2c3e50;
        }

    .counter-content .countdown li {
        flex-basis: 25%;
    }

    .home-welcome-readmore {
        margin-top: .5em;
    }



    .fr-text--lead, .fr-text--xl {
        font-size: 1em !important;
        line-height: 23em !important;
        margin: var(--text-spacing);
        margin-bottom: 0px;
    }

        .fr-text--lead > p {
            margin-bottom: 0px;
        }


    .fade-text-container > p {
        color: grey !important;
    }
}
/* Tablet/Medium screens: 3 cards per view */
@media (min-width: 768px) {


    .card-item {
        flex: 0 0 calc(100% / 3);
        max-width: calc(100% / 3);
    }
}
/* Laptop/Large screens: 4 cards per view */
@media (min-width: 992px) {
    .card-item {
        flex: 0 0 calc(100% / 4);
        max-width: calc(100% / 4);
    }
}
/* Desktop/Extra Large screens: 5 cards per view */
@media (min-width: 1200px) {
    .card-item {
        flex: 0 0 calc(100% / 5); /* Display 5 cards on XL screens */
        max-width: calc(100% / 5);
    }
}

/*.home-hero {
    position: relative;
    background-image: url('/images/Kbach-1.png'), url('/images/Kbach-2.png');
    background-position: 1% 5%, 99% 5%;
    background-repeat: no-repeat, no-repeat;
    background-size: auto 90%, auto 90%;
    background-color: #fff;
    z-index: 1;
}*/
.more-btn {
    border: 1px solid #0055a4;
    border-radius: 0!important;
    color: #0055a4;

}
    .more-btn:hover {
        background-color: #fafafa;
        color: #004080;
    }