/* Jury Section Styles */
.jury-card {
    text-align: center;
    padding: 20px;
    margin-bottom: 30px;
}

.jury-img {
    width: 325px;
    /* height: 200px; */
    object-fit: cover;
    /* border-radius: 50%; */
    margin-bottom: 15px;
}

.jury-name {
    font-size: 1.2rem;
    margin-bottom: 5px;
    color: var(--light);
}

.jury-title {
    font-size: 0.9rem;
    color: var(--gray);
}

#juryCarousel {
    padding: 20px 40px;
}

#juryCarousel .carousel-control-prev,
#juryCarousel .carousel-control-next {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    top: 50%;
    transform: translateY(-50%);
}

#juryCarousel .carousel-control-prev {
    left: -10px;
}

#juryCarousel .carousel-control-next {
    right: -10px;
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
    width: 20px;
    height: 20px;
}

/* Gallery Styles */
.gallery-carousel {
    margin-bottom: 50px;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    padding: 15px;
}

.gallery-item {
    position: relative;
    width: 100%;
    height: 0;
    padding-bottom: 75%; /* 4:3 aspect ratio */
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.gallery-item:hover {
    transform: scale(1.02);
}

.gallery-item img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Responsive adjustments */
@media (min-width: 768px) {
    .gallery-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 20px;
        padding: 20px;
    }
}

/* Carousel controls customization */
.gallery-carousel .carousel-control-prev,
.gallery-carousel .carousel-control-next {
    width: 5%;
    opacity: 0.8;
}

.gallery-carousel .carousel-control-prev-icon,
.gallery-carousel .carousel-control-next-icon {
    background-color: rgba(0,0,0,0.5);
    padding: 20px;
    border-radius: 50%;
}

/* Dark theme adjustments */
.dark-theme .gallery-item {
    box-shadow: 0 4px 8px rgba(255,255,255,0.1);
}

/* Gallery Preview Modal Styles */
#galleryPreviewModal .modal-content {
    background-color: transparent;
    border: none;
}

#galleryPreviewModal .modal-dialog {
    max-width: 90vw;
    margin: 0 auto;
}

#galleryPreviewModal .modal-body {
    position: relative;
    padding: 0;
}

#galleryPreviewModal .close {
    position: absolute;
    right: 15px;
    top: 15px;
    z-index: 1050;
    font-size: 2rem;
    color: white;
    opacity: 0.8;
    text-shadow: 0 0 3px rgba(0,0,0,0.5);
}

#galleryPreviewModal .close:hover {
    opacity: 1;
}

.preview-img {
    width: 100%;
    height: 90vh;
    object-fit: contain;
}

#galleryPreviewCarousel .carousel-control-prev,
#galleryPreviewCarousel .carousel-control-next {
    width: 10%;
}

#galleryPreviewCarousel .carousel-control-prev-icon,
#galleryPreviewCarousel .carousel-control-next-icon {
    width: 40px;
    height: 40px;
    background-color: rgba(0,0,0,0.5);
    border-radius: 50%;
    padding: 25px;
}

.dark-theme #galleryPreviewModal .modal-content {
    background-color: rgba(0, 0, 0, 0.9);
}

/* Make gallery items clickable */
.gallery-item {
    cursor: pointer;
}

/* Jury Grid Styles */
.jury-carousel {
    margin-bottom: 50px;
    padding: 0 40px;
}

.jury-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    padding: 20px;
}

.jury-item {
    position: relative;
    width: 100%;
    height: 0;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
    cursor: pointer;
}

.jury-item:hover {
    transform: scale(1.02);
}

.jury-item img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.jury-info {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 15px;
    background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
    color: white;
    transition: opacity 0.3s ease;
}

.jury-info .jury-name {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 600;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5),
                -1px -1px 2px rgba(0, 0, 0, 0.5),
                1px -1px 2px rgba(0, 0, 0, 0.5),
                -1px 1px 2px rgba(0, 0, 0, 0.5);
}

.jury-info .jury-title {
    margin: 5px 0 0;
    font-size: 0.9rem;
    opacity: 0.9;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.4),
                -1px -1px 2px rgba(0, 0, 0, 0.4),
                1px -1px 2px rgba(0, 0, 0, 0.4),
                -1px 1px 2px rgba(0, 0, 0, 0.4);
}

/* Carousel controls customization */
#juryCarousel .carousel-control-prev,
#juryCarousel .carousel-control-next {
    width: 40px;
    height: 40px;
    background: rgba(0, 0, 0, 0.5);
    border-radius: 50%;
    top: 50%;
    transform: translateY(-50%);
    opacity: 0.8;
}

#juryCarousel .carousel-control-prev {
    left: 0;
}

#juryCarousel .carousel-control-next {
    right: 0;
}

#juryCarousel .carousel-control-prev:hover,
#juryCarousel .carousel-control-next:hover {
    opacity: 1;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .jury-grid {
        grid-template-columns: repeat(1, 1fr);
        gap: 15px;
        padding: 15px;
    }
    
    .jury-carousel {
        padding: 0 20px;
    }
}

@media (min-width: 769px) and (max-width: 991px) {
    .jury-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Jury Preview Modal Styles */
#juryPreviewModal .modal-content {
    background-color: rgba(0, 0, 0, 0.9);
    border: none;
}

#juryPreviewModal .modal-dialog {
    max-width: 90vw;
    margin: 0 auto;
}

#juryPreviewModal .modal-body {
    position: relative;
    padding: 0;
}

#juryPreviewModal .close {
    position: absolute;
    right: 15px;
    top: 15px;
    z-index: 1050;
    font-size: 2rem;
    color: white;
    opacity: 0.8;
    text-shadow: 0 0 3px rgba(0,0,0,0.5);
}

#juryPreviewModal .close:hover {
    opacity: 1;
}

/* Modal Carousel Controls */
#juryPreviewCarousel .carousel-control-prev,
#juryPreviewCarousel .carousel-control-next {
    width: 10%;
    opacity: 1;
    z-index: 1050;
}

#juryPreviewCarousel .carousel-control-prev-icon,
#juryPreviewCarousel .carousel-control-next-icon {
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    padding: 25px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
}

#juryPreviewCarousel .carousel-control-prev {
    left: 20px;
}

#juryPreviewCarousel .carousel-control-next {
    right: 20px;
}

#juryPreviewCarousel .carousel-control-prev:hover .carousel-control-prev-icon,
#juryPreviewCarousel .carousel-control-next:hover .carousel-control-next-icon {
    background-color: rgba(255, 255, 255, 0.3);
}

/* Preview Content Styles */
.jury-preview-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 40px 20px;
    color: white;
    height: 100%;
}

.jury-preview-content .preview-img {
    max-height: 70vh;
    max-width: 100%;
    width: auto;
    height: auto;
    margin-bottom: 20px;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    object-fit: contain;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .jury-preview-content {
        padding: 20px;
    }

    .jury-preview-content .preview-img {
        max-height: none;
        width: 100%;
        height: auto;
        aspect-ratio: 16/9;
    }

    #juryPreviewModal .modal-dialog {
        margin: 0;
        max-width: 100%;
        height: 100%;
        display: flex;
        align-items: center;
    }

    #juryPreviewModal .modal-content {
        height: auto;
    }

    #juryPreviewCarousel {
        height: 100%;
    }

    .jury-preview-info {
        margin-top: 10px;
    }
}

/* Additional modal adjustments for better mobile display */
@media (orientation: portrait) and (max-width: 768px) {
    .jury-preview-content .preview-img {
        width: 100%;
        height: auto;
        max-height: 50vh;
        object-fit: contain;
    }
}

@media (orientation: landscape) and (max-width: 768px) {
    .jury-preview-content .preview-img {
        height: 70vh;
        width: auto;
        max-width: 100%;
    }
}

/* Title Styles */
.title {
    font-size: 1.1rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    color: var(--light);
    text-transform: uppercase;
    margin-bottom: 1.5rem;
    position: relative;
    display: inline-block;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3),
                -1px -1px 2px rgba(0, 0, 0, 0.3),
                1px -1px 2px rgba(0, 0, 0, 0.3),
                -1px 1px 2px rgba(0, 0, 0, 0.3);
}

.title:after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -8px;
    width: 40px;
    height: 2px;
    background: var(--light);
}

.dark-theme .title {
    color: var(--light);
}

.dark-theme .title:after {
    background: var(--light);
}

/* Update jury preview info title */
.jury-preview-info .title {
    font-size: 1.1rem;
    font-weight: 500;
    letter-spacing: 0.3px;
    color: rgba(255, 255, 255, 0.9);
    text-transform: none;
    margin: 10px 0 0;
    opacity: 0.9;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3),
                -1px -1px 2px rgba(0, 0, 0, 0.3),
                1px -1px 2px rgba(0, 0, 0, 0.3),
                -1px 1px 2px rgba(0, 0, 0, 0.3);
}

.jury-preview-info .title:after {
    display: none;
}

/* Dark theme adjustments */
.dark-theme .jury-item {
    box-shadow: 0 4px 8px rgba(255,255,255,0.1);
}

/* Finalists Section Styles */
.announcement-header {
    margin-bottom: 2rem;
    border-left: 3px solid var(--light);
    padding-left: 1rem;
}

.announcement-header h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--light);
    margin-bottom: 0.5rem;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

.announcement-date {
    color: var(--gray);
    font-size: 0.9rem;
    font-style: italic;
}

.finalists-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    margin: 2rem 0;
}

.finalist-category {
    background: rgba(255, 255, 255, 0.05);
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.finalist-category:hover {
    transform: translateY(-5px);
}

.finalist-category h4 {
    color: var(--light);
    font-size: 1.2rem;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid rgba(255, 255, 255, 0.1);
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

.finalist-category ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.finalist-category ul li {
    color: var(--light);
    padding: 0.5rem 0;
    font-size: 0.95rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.finalist-category ul li:last-child {
    border-bottom: none;
}

.award-ceremony {
    background: rgba(255, 255, 255, 0.05);
    padding: 2rem;
    border-radius: 8px;
    margin-top: 2rem;
    text-align: center;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.award-ceremony h4 {
    color: var(--light);
    font-size: 1.3rem;
    margin-bottom: 1rem;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

.award-ceremony p {
    color: var(--light);
    opacity: 0.9;
    margin-bottom: 0;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .finalists-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .announcement-header h3 {
        font-size: 1.3rem;
    }

    .finalist-category {
        padding: 1rem;
    }

    .finalist-category h4 {
        font-size: 1.1rem;
    }

    .award-ceremony {
        padding: 1.5rem;
    }
}

/* Dark theme adjustments */
.dark-theme .finalist-category {
    background: rgba(255, 255, 255, 0.03);
}

.dark-theme .award-ceremony {
    background: rgba(255, 255, 255, 0.03);
}

/* Award Winners Section Styles */
.ceremony-description {
    margin-bottom: 2rem;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
}

.award-winners-carousel {
    margin-bottom: 3rem;
}

.award-winners-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    padding: 1rem;
}

.award-winner-item {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.3s ease;
    background: rgba(255, 255, 255, 0.05);
}

.award-winner-item:hover {
    transform: translateY(-5px);
}

.award-winner-item img {
    width: 100%;
    height: 300px;
    object-fit: cover;
}

.award-info {
    padding: 1rem;
    background: rgba(0, 0, 0, 0.8);
    color: var(--light);
}

.award-category {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    color: var(--light);
}

.winner-name {
    font-size: 0.9rem;
    margin: 0;
    opacity: 0.9;
}

/* Award Winners Preview Modal Styles */
#awardWinnersPreviewModal .modal-content {
    background-color: rgba(0, 0, 0, 0.9);
    border: none;
}

#awardWinnersPreviewModal .modal-dialog {
    max-width: 90vw;
    margin: 0 auto;
}

#awardWinnersPreviewModal .modal-body {
    position: relative;
    padding: 0;
}

/* Update close button styles */
#awardWinnersPreviewModal .close {
    position: absolute;
    right: 15px;
    top: 15px;
    z-index: 1060; /* Increased z-index to be above carousel controls */
    font-size: 2rem;
    color: white;
    opacity: 0.8;
    text-shadow: 0 0 3px rgba(0,0,0,0.5);
    width: 40px;
    height: 40px;
    background: rgba(0, 0, 0, 0.5);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

#awardWinnersPreviewModal .close:hover {
    opacity: 1;
    background: rgba(0, 0, 0, 0.7);
}

/* Update carousel controls z-index */
#awardWinnersPreviewCarousel .carousel-control-prev,
#awardWinnersPreviewCarousel .carousel-control-next {
    width: 10%;
    opacity: 1;
    z-index: 1050;
}

.award-preview-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 40px 20px;
    color: white;
}

.award-preview-content .preview-img {
    max-height: 70vh;
    width: auto;
    margin-bottom: 20px;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    object-fit: contain;
}

.award-preview-info {
    text-align: center;
    padding: 20px;
    width: 100%;
    background: rgba(0, 0, 0, 0.8);
}

.award-preview-info h3 {
    margin-bottom: 10px;
    font-size: 1.5rem;
    color: var(--light);
}

.award-preview-info .category {
    font-size: 1.1rem;
    margin: 0;
    opacity: 0.9;
    color: var(--light);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .award-preview-content {
        padding: 20px;
    }

    .award-preview-content .preview-img {
        width: 100%;
        height: auto;
        max-height: 50vh;
    }

    #awardWinnersPreviewModal .modal-dialog {
        margin: 0;
        max-width: 100%;
        height: 100%;
        display: flex;
        align-items: center;
    }
}

/* Ceremony Ending Section Styles */
.ceremony-ending {
    margin: 4rem 0;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.ceremony-ending-image {
    width: 100%;
    position: relative;
}

.ceremony-ending-image img {
    width: 100%;
    border-radius: 8px 8px 0 0;
}

.ceremony-ending-text {
    padding: 1.5rem;
    text-align: center;
    color: var(--light);
    background: rgba(0, 0, 0, 0.5);
    border-radius: 0 0 8px 8px;
}

.ceremony-ending-text p {
    margin: 0;
    font-size: 0.95rem;
    line-height: 1.5;
    opacity: 0.9;
}

/* Dark theme adjustment */
.dark-theme .ceremony-ending {
    background: rgba(255, 255, 255, 0.03);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .ceremony-ending {
        margin: 2rem 0;
    }
    
    .ceremony-ending-text {
        padding: 1rem;
    }
    
    .ceremony-ending-text p {
        font-size: 0.9rem;
    }
}

/* Video Section Styles */
.video-section {
    position: relative;
    margin: 6rem auto;
    padding: 2rem;
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.05) 0%, rgba(255, 255, 255, 0.02) 100%);
    border-radius: 16px;
    box-shadow: 
        0 4px 30px rgba(0, 0, 0, 0.1),
        inset 0 0 20px rgba(255, 255, 255, 0.05);
    overflow: hidden;
}

.video-header {
    text-align: center;
    margin-bottom: 2rem;
}

.video-description {
    color: var(--light);
    opacity: 0.8;
    font-size: 1.1rem;
    margin-top: 0.5rem;
}

.video-container {
    position: relative;
    width: 100%;
    max-width: 1000px;
    max-height: 70vh;
    margin: 0 auto;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.video-container:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4);
}

.video-wrapper {
    position: relative;
    padding-top: 88.89%;
    background: rgba(0, 0, 0, 0.2);
}

.video-wrapper video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 12px;
    cursor: pointer;
    z-index: 2;
}

.video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 3;
}

.video-container:hover .video-overlay {
    background: rgba(0, 0, 0, 0.4);
}

.play-button {
    width: 80px;
    height: 80px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 30px rgba(0, 0, 0, 0.5);
    transform: scale(1);
    transition: transform 0.3s ease, background-color 0.3s ease;
}

.play-button:hover {
    transform: scale(1.1);
    background: rgba(255, 255, 255, 1);
}

.play-button i {
    font-size: 2rem;
    color: #000;
    margin-left: 5px;
}

/* Custom video controls styling */
.video-wrapper video::-webkit-media-controls {
    background: rgba(0, 0, 0, 0.7);
    border-radius: 0 0 12px 12px;
}

.video-wrapper video::-webkit-media-controls-panel {
    padding: 0 10px;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .video-section {
        margin: 3rem auto;
        padding: 1rem;
    }

    .video-description {
        font-size: 1rem;
    }

    .play-button {
        width: 60px;
        height: 60px;
    }

    .play-button i {
        font-size: 1.5rem;
    }
}

/* Dark theme adjustments */
.dark-theme .video-section {
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.03) 0%, rgba(255, 255, 255, 0.01) 100%);
}

.dark-theme .play-button {
    background: rgba(255, 255, 255, 0.8);
}