/* Sponsors Section Styles */

.sponsors-section {
    background: transparent;
    padding: 80px 0;
}

.sponsors-section__content {
    max-width: 1200px;
    margin: 0 auto;
}

.sponsors-section__header {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 50px;
    position: relative;
}

.sponsors-section__header .heading-container {
    margin: 0;
}

.sponsors-section__header .sponsors-carousel__nav--prev {
    position: absolute;
    left: 50px;
}

.sponsors-section__header .sponsors-carousel__nav--next {
    position: absolute;
    right: 50px;
}

/* Sponsors Carousel Styles */
.sponsors-carousel-container {
    position: relative;
}

.sponsors-carousel {
    overflow: hidden;
    border-radius: 0;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    padding: 40px 0;
    width: 100vw;
    margin-left: calc(-50vw + 50%);
    position: relative;
}

.sponsors-carousel__track {
    display: flex;
    gap: 25px;
    padding: 0 20px;
    animation: scroll-continuous 38s linear infinite;
    width: calc(400px * 22 + 25px * 21 + 40px);
}

@keyframes scroll-continuous {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(calc(-400px * 11 - 25px * 10));
    }
}

.sponsors-carousel:hover .sponsors-carousel__track {
    animation-play-state: paused;
}

.sponsors-carousel__slide {
    flex: 0 0 auto;
    width: 400px;
    height: 260px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--dark-brown-100);
    border-radius: 12px;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.sponsors-carousel__slide:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
    background: var(--orange-100);
    border-color: var(--beige-100);
}

.sponsors-carousel__slide img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    object-position: center;
    transition: all 0.3s ease;
    opacity: 1;
    filter: brightness(0) invert(1);
}

.sponsors-carousel__slide:hover img {
    filter: brightness(0) invert(0);
}

/* Special styling for partner logos (first 3) */
.sponsors-carousel__slide--partner {
    padding: 70px !important; /* 50px more than the default 20px */
}

.sponsors-carousel__nav {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--dark-brown-100);
    border: none;
    color: var(--beige-100);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    z-index: 10;
    flex-shrink: 0;
}

.sponsors-carousel__nav:hover {
    background: var(--orange-100);
    transform: scale(1.1);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.sponsors-carousel__nav:active {
    transform: scale(0.95);
}

.sponsors-carousel__nav svg {
    fill: currentColor;
    transition: fill 0.3s ease;
    width: 24px;
    height: 24px;
}

.sponsors-carousel__nav:disabled {
    cursor: not-allowed;
    opacity: 0.5 !important;
}

.sponsors-carousel__nav:disabled:hover {
    transform: none;
    background: var(--dark-brown-100);
}

/* Smooth cursor transitions */
.sponsors-carousel {
    cursor: grab;
}

.sponsors-carousel:active {
    cursor: grabbing;
}

/* Additional hover effects for slides */
.sponsors-carousel__slide {
    position: relative;
    overflow: hidden;
}

.sponsors-carousel__slide::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, transparent, rgba(255, 92, 0, 0.1), transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.sponsors-carousel__slide:hover::before {
    opacity: 1;
}

/* Sponsor Lightbox Styles */
.modal__sponsor-lightbox {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10000;
    animation: fadeIn 0.3s ease;
}

.modal__sponsor-lightbox.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal__sponsor-lightbox-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
}

.modal__sponsor-lightbox-content {
    position: relative;
    background: #f0e2c5;
    border-radius: 15px;
    max-width: 90vw;
    max-height: 90vh;
    width: 700px;
    margin: 20px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    animation: slideUp 0.3s ease;
    overflow: hidden;
}

.modal__sponsor-lightbox-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: rgba(255, 255, 255, 0.9);
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    cursor: pointer;
    z-index: 10001;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.modal__sponsor-lightbox-close:hover {
    background: rgba(255, 255, 255, 1);
    transform: scale(1.1);
}

.modal__sponsor-lightbox-close svg {
    width: 16px;
    height: 16px;
    fill: var(--dark-brown-100);
}

.modal__sponsor-lightbox-body {
    display: flex;
    flex-direction: column;
    min-height: 400px;
}

.modal__sponsor-lightbox-image {
    width: 100%;
    height: 200px;
    background: #333;
    position: relative;
    overflow: hidden;
}

.modal__sponsor-lightbox-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.modal__sponsor-lightbox-info {
    flex: 1;
    padding: 30px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    background: #f0e2c5;
}

.modal__sponsor-lightbox-info h2 {
    font-family: 'Comfortaa', sans-serif;
    font-size: 2.2rem;
    color: var(--dark-brown-100);
    margin: 0 0 10px 0;
    font-weight: 600;
    line-height: 1.2;
}

.modal__sponsor-lightbox-category {
    margin-bottom: 20px;
}

.modal__sponsor-lightbox-category span {
    display: inline-block;
    background: var(--orange-100);
    color: white;
    padding: 6px 16px;
    border-radius: 20px;
    font-family: 'Inter', sans-serif;
    font-size: 0.9rem;
    font-weight: 500;
}

.modal__sponsor-lightbox-description {
    flex: 1;
    margin-bottom: 25px;
}

.modal__sponsor-lightbox-description p {
    font-family: 'Inter', sans-serif;
    font-size: 1.1rem;
    color: #3a2016;
    line-height: 1.6;
    margin: 0;
}

.modal__sponsor-lightbox-details {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.sponsor-detail-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: 'Inter', sans-serif;
}

.sponsor-detail-item strong {
    color: var(--dark-brown-100);
    font-weight: 600;
    min-width: 80px;
}

.sponsor-detail-item span {
    color: var(--dark-brown-80);
}

.sponsor-detail-item a {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--orange-100);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.sponsor-detail-item a:hover {
    color: var(--dark-brown-100);
}

.sponsor-detail-item a svg {
    fill: currentColor;
    transition: transform 0.3s ease;
}

.sponsor-detail-item a:hover svg {
    transform: translateX(3px);
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .sponsors-section {
        padding: 60px 0;
    }

    .sponsors-section__header {
        margin-bottom: 40px;
    }

    .sponsors-section__header .sponsors-carousel__nav--prev {
        left: 30px;
    }

    .sponsors-section__header .sponsors-carousel__nav--next {
        right: 30px;
    }

    .sponsors-carousel {
        padding: 30px 0;
        width: 100vw;
        margin-left: calc(-50vw + 50%);
        border-radius: 0;
    }

    .sponsors-carousel__track {
        gap: 20px;
        padding: 0 15px;
        width: calc(300px * 22 + 20px * 21 + 30px);
        animation: scroll-continuous-mobile 33s linear infinite;
    }

    @keyframes scroll-continuous-mobile {
        0% {
            transform: translateX(0);
        }
        100% {
            transform: translateX(calc(-300px * 11 - 20px * 10));
        }
    }

    .sponsors-carousel__slide {
        width: 300px;
        height: 190px;
        padding: 18px;
        border-radius: 10px;
    }

    .sponsors-carousel__slide--partner {
        padding: 60px !important; /* Adjusted for tablet */
    }

    .sponsors-carousel__nav {
        width: 40px;
        height: 40px;
    }

    .sponsors-carousel__nav svg {
        width: 18px;
        height: 18px;
    }

    .modal__sponsor-lightbox-content {
        width: 95vw;
        max-height: 85vh;
        margin: 10px;
    }

    .modal__sponsor-lightbox-info {
        padding: 20px;
    }

    .modal__sponsor-lightbox-info h2 {
        font-size: 1.8rem;
        margin-bottom: 8px;
    }

    .modal__sponsor-lightbox-description p {
        font-size: 1rem;
    }

    .modal__sponsor-lightbox-details {
        gap: 12px;
    }

    .sponsor-detail-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 5px;
    }

    .sponsor-detail-item strong {
        min-width: auto;
    }

    .modal__sponsor-lightbox-close {
        width: 35px;
        height: 35px;
        top: 10px;
        right: 10px;
    }

    .modal__sponsor-lightbox-close svg {
        width: 14px;
        height: 14px;
    }
}

/* Small Mobile */
@media (max-width: 480px) {
    .sponsors-section__header {
        margin-bottom: 30px;
        gap: 15px;
    }

    .sponsors-section__header .heading-container h2 {
        font-size: 1.8rem;
    }

    .sponsors-section__header .sponsors-carousel__nav--prev {
        left: 20px;
    }

    .sponsors-section__header .sponsors-carousel__nav--next {
        right: 20px;
    }

    .sponsors-carousel {
        padding: 25px 0;
        width: 100vw;
        margin-left: calc(-50vw + 50%);
        border-radius: 0;
    }

    .sponsors-carousel__track {
        gap: 15px;
        padding: 0 10px;
        width: calc(260px * 22 + 15px * 21 + 20px);
        animation: scroll-continuous-small 28s linear infinite;
    }

    @keyframes scroll-continuous-small {
        0% {
            transform: translateX(0);
        }
        100% {
            transform: translateX(calc(-260px * 11 - 15px * 10));
        }
    }

    .sponsors-carousel__slide {
        width: 260px;
        height: 160px;
        padding: 16px;
        border-radius: 8px;
    }

    .sponsors-carousel__slide--partner {
        padding: 50px !important; /* Adjusted for mobile */
    }

    .sponsors-carousel__nav {
        width: 35px;
        height: 35px;
    }

    .sponsors-carousel__nav svg {
        width: 16px;
        height: 16px;
    }

    .modal__sponsor-lightbox-content {
        width: 98vw;
        margin: 5px;
        border-radius: 10px;
    }

    .modal__sponsor-lightbox-info {
        padding: 15px;
    }

    .modal__sponsor-lightbox-info h2 {
        font-size: 1.6rem;
    }
}

/* Animations */
@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
    .sponsor-item,
    .modal__sponsor-lightbox-content,
    .sponsor-detail-item a svg {
        transition: none;
    }
    
    .modal__sponsor-lightbox,
    .modal__sponsor-lightbox-content {
        animation: none;
    }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .modal__sponsor-lightbox-overlay {
        background: rgba(0, 0, 0, 0.95);
    }

    .modal__sponsor-lightbox-content {
        border: 2px solid #ff5c00;
    }
}

/* Print styles */
@media print {
    .sponsors-section {
        background: white;
        color: black;
    }
    
    .sponsor-item {
        background: white;
        border: 1px solid #ccc;
    }
}
