/* General Styles */
.awards-container {
    position: relative;
    padding: 20px;
    overflow: hidden;
    margin: 20px; /* Add margin around the entire container */
}

.scroll-container {
    display: flex;
    overflow-x: auto; /* Enable horizontal scrolling */
    scroll-behavior: smooth; /* Smooth scrolling */
    gap: 20px; /* Space between cards */
    padding-bottom: 20px; /* Add padding to avoid cutting off content */
    scroll-snap-type: x mandatory; /* Enable snapping */
}

.award-card {
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    width: 400px;
    flex: 0 0 auto; /* Ensure cards don't shrink or grow */
    padding: 20px;
    text-align: center;
    transition: transform 0.3s ease;
    scroll-snap-align: start; /* Snap cards to the start of the container */
}

.award-card:hover {
    transform: scale(1.05);
}

.award-card img {
    width: 100%; /* Fixed width */
    height: 200px; /* Fixed height for consistency */
    border-radius: 10px;
    object-fit: cover; /* Ensures the image covers the area without distortion */
}

.award-card h2 {
    font-size: 0.5em; 
    margin: 10px 0;
}

.award-card .year {
    font-size: 1.2em;
    color: #777;
}

.award-card .brief {
    font-size: 0.8em;
    color: #555;
}

.details-btn {
    background-color: #333;
    color: #fff;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.details-btn:hover {
    background-color: #555;
}

/* Scroll Buttons */
.scroll-button {
    background-color: rgba(0, 0, 0, 0.3); /* Transparent background */
    border: none;
    color: white;
    font-size: 40px; /* Larger arrows */
    cursor: pointer;
    padding: 20px;
    position: absolute;
    top: 30%;
    transform: translateY(-50%);
    z-index: 1;
    opacity: 0.7; /* Transparent effect */
    transition: opacity 0.3s ease;
}

.scroll-button:hover {
    opacity: 1; /* Fully visible on hover */
}

.scroll-button.left {
    left: 0;
}

.scroll-button.right {
    right: 0;
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    justify-content: center;
    align-items: center;
}

.modal-content {
    background-color: #fff;
    padding: 20px;
    border-radius: 10px;
    width: 80%;
    max-width: 600px;
    position: relative;
}



.close {
    position: absolute;
    top: 10px;
    right: 20px;
    font-size: 24px;
    cursor: pointer;
}

/* Media Queries for Responsiveness */

/* Small devices (phones, 600px and below) */
@media (max-width: 600px) {
    .award-card {
        width: 250px; /* Smaller cards for mobile */
    }

    .scroll-button {
        font-size: 30px; /* Smaller arrows for mobile */
        padding: 15px;
    }

    .modal-content {
        width: 90%; /* Wider modal for small screens */
    }
}

/* Medium devices (tablets, 601px to 900px) */
@media (min-width: 601px) and (max-width: 900px) {
    .award-card {
        width: 280px; /* Slightly larger cards for tablets */
    }

    .scroll-button {
        font-size: 35px; /* Medium-sized arrows for tablets */
        padding: 18px;
    }
}

/* Large devices (desktops, 901px and above) */
@media (min-width: 901px) {
    .award-card {
        width: 300px; /* Default card size for desktops */
    }

    .scroll-button {
        font-size: 40px; /* Larger arrows for desktops */
        padding: 20px;
    }
}

/* Extra-large devices (large desktops, 1200px and above) */
@media (min-width: 1200px) {
    .award-card {
        width: 320px; /* Slightly larger cards for extra-large screens */
    }

    .scroll-button {
        font-size: 45px; /* Larger arrows for extra-large screens */
        padding: 25px;
    }
}