/* Awards Carousel Styles */
.awards-carousel-container {
    position: relative;
    max-width: 100%;
    margin: 2rem auto;
    overflow: hidden;
}

.awards-carousel {
    display: flex;
    transition: transform 0.5s ease;
    gap: 1rem;
}

.award-card {
    flex: 0 0 300px;
    width: 300px;
    height: 150px;
    position: relative;
    background: rgba(0,0,0,0.8);
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
	border: 2px solid #fddc01;
}

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

.award-image-container {
    position: relative;
    width: 100%;
    height: 150px;
    overflow: hidden;
}

.award-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    top: -5px;
    /* Overlap effect */
    left: 0;
    border-radius: 8px 8px 0 0;
}

.award-title {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 40px;
    background: rgba(0, 0, 0, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 600;
    text-align: center;
	color: white;
	padding: 0 8px;
    line-height: 1.2;
    border-radius: 0 0 8px 8px;
}

/* Navigation Arrows */
.carousel-arrow {
	padding:0;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.7);
    color: white;
    border: none;
    width: 40px ;
    height: 40px;
    border-radius: 50%;
    font-size: 18px;
    cursor: pointer;
    z-index: 10;
    transition: background-color 0.3s ease;
}

.carousel-arrow:hover {
    background: rgba(0, 0, 0, 0.9);
}

.carousel-prev {
    left: 10px;
}

.carousel-next {
    right: 10px;
}

/* Navigation Dots */
.carousel-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 1rem;
}

.carousel-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    border: none;
    background: #ccc;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.carousel-dot.active,
.carousel-dot:hover {
    background: #007cba;
}

/* Responsive Design */
@media (max-width: 768px) {
    .awards-carousel-container {
        margin: 1rem;
    }

    .awards-carousel {
        gap: 0.5rem;
    }

    .award-card {
        flex: 0 0 240px;
        width: 240px;
        height: 120px;
    }

    .award-image-container {
        height: 88px;
    }

    .award-title {
        height: 32px;
        font-size: 12px;
    }

    .carousel-arrow {
        width: 32px;
        height: 32px;
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    .award-card {
        flex: 0 0 200px;
        width: 200px;
        height: 100px;
    }

    .award-image-container {
        height: 74px;
    }

    .award-title {
        height: 26px;
        font-size: 11px;
    }
}

/* Animation for autoplay */
@keyframes slideLeft {
    from {
        transform: translateX(0);
    }

    to {
        transform: translateX(-100%);
    }
}

.awards-carousel.sliding {
    animation: slideLeft 0.5s ease-in-out;
}

/* Loading state */
.awards-carousel-container.loading {
    opacity: 0.7;
}

.awards-carousel-container.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 20px;
    height: 20px;
    border: 2px solid #f3f3f3;
    border-top: 2px solid #007cba;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% {
        transform: translate(-50%, -50%) rotate(0deg);
    }

    100% {
        transform: translate(-50%, -50%) rotate(360deg);
    }
}

/* 
Modal/Popup Styles */
.award-modal {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
    animation: fadeIn 0.3s ease;
}

.award-modal.show {
    display: flex;
    align-items: center;
    justify-content: center;
}

.award-modal-content {
    position: relative;
    background-color: #fff;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    max-width: 90vw;
    max-height: 90vh;
    overflow: hidden;
    animation: slideUp 0.3s ease;
}

.award-modal-image {
    width: 100%;
    height: auto;
    max-width: 800px;
    max-height: 600px;
    object-fit: contain;
    display: block;
}

.award-modal-title {
    padding: 1rem 1.5rem;
    background: #f8f9fa;
    border-top: 1px solid #e9ecef;
    font-size: 18px;
    font-weight: 600;
    color: #333;
    text-align: center;
}

.award-modal-close {
	padding: 0;
    position: absolute;
    top: 15px;
    right: 15px;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    border: none;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    font-size: 18px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.3s ease;
    z-index: 10001;
}

.award-modal-close:hover {
    background: rgba(0, 0, 0, 0.9);
}

/* Click indicator for cards */
.award-card {
    cursor: pointer;
}

.award-card::after {
    content: '';
    position: absolute;
    top: 10px;
    right: 10px;
    width: 24px;
    height: 24px;
    background: rgba(0, 0, 0, 0.6);
    border-radius: 50%;
    opacity: 0;
    transition: opacity 0.3s ease;
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" fill="white" viewBox="0 0 24 24"><path d="M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm-2 15l-5-5 1.41-1.41L10 14.17l7.59-7.59L19 8l-9 9z"/></svg>');
    background-size: 16px 16px;
    background-repeat: no-repeat;
    background-position: center;
}

.award-card:hover::after {
    opacity: 1;
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes slideUp {
    from {
        transform: translateY(50px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* Mobile responsive modal */
@media (max-width: 768px) {
    .award-modal-content {
        margin: 1rem;
        max-width: calc(100vw - 2rem);
        max-height: calc(100vh - 2rem);
    }

    .award-modal-image {
        max-height: calc(100vh - 120px);
    }

    .award-modal-title {
        font-size: 16px;
        padding: 0.75rem 1rem;
    }

    .award-modal-close {
        width: 30px;
        height: 30px;
        font-size: 16px;
        top: 10px;
        right: 10px;
    }
}

/* Loading state for modal */
.award-modal-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 3rem;
}

.award-modal-loading::after {
    content: '';
    width: 40px;
    height: 40px;
    border: 3px solid #f3f3f3;
    border-top: 3px solid #007cba;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}