/* Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background: transparent;
    overflow-x: hidden;
    margin: 0;
    padding: 0;
    width: 100%;
}

/* Section Container */
.partners-section {
    width: 100%;
    padding: 80px 0;
    background: transparent;
}

.container {
    max-width: 100%;
    margin: 0;
    padding: 0;
}

/* Header Styles */
.header-content {
    text-align: center;
    margin-bottom: 60px;
}

.section-title {
    font-size: 48px;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 12px;
    line-height: 1.2;
}

.section-subtitle {
    font-size: 20px;
    color: #666;
    font-weight: 400;
}

.section-subtitle em {
    font-style: italic;
    font-weight: 400;
}

/* Slider Container */
.slider-container {
    width: 100%;
    overflow: hidden;
    position: relative;
    padding: 20px 0;
}

.slider-track {
    display: flex;
    gap: 20px;
    width: fit-content;
    animation: scroll 80s linear infinite;
}

/* Partner Card */
.partner-card {
    position: relative;
    width: 280px;
    height: 400px;
    flex-shrink: 0;
    border-radius: 16px;
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    background: #fff;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.partner-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

/* Card Front (Always Visible) */
.card-front {
    position: relative;
    width: 100%;
    height: 100%;
}

.partner-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Text Overlay at Bottom */
.partner-info {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 30px 20px 20px 20px;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.85) 0%, rgba(0, 0, 0, 0.6) 60%, transparent 100%);
    z-index: 2;
}

.partner-name {
    font-size: 26px;
    color: #ffffff;
    margin-bottom: 4px;
    line-height: 1;
    text-transform: uppercase;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    display: block;
}

/* Name styling variations */
.name-part {
    display: block;
    letter-spacing: 0.5px;
    line-height: 1.1;
}

.name-part.thin {
    font-weight: 300;
    font-style: italic;
}

.name-part.light {
    font-weight: 400;
}

.name-part.regular {
    font-weight: 500;
}

.name-part.bold {
    font-weight: 700;
}

.name-part.extrabold {
    font-weight: 900;
    letter-spacing: 1.5px;
}

.name-part.italic {
    font-style: italic;
    font-weight: 600;
}

.partner-role {
    font-size: 13px;
    color: #ffffff;
    line-height: 1.4;
    font-weight: 400;
    opacity: 0.95;
    margin-bottom: 6px;
}

.discover-more {
    display: inline-block;
    font-size: 11px;
    color: #ffffff;
    font-weight: 500;
    opacity: 0.85;
    margin-top: 6px;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.partner-card:hover .discover-more {
    opacity: 1;
    transform: translateX(3px);
}

/* Card Expanded - Hidden in card, shown in modal */
.card-expanded {
    display: none;
}

/* Modal Styles */
.modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    z-index: 9999;
    opacity: 0;
    transition: opacity 0.3s ease;
    overflow-y: auto;
    padding: 20px;
}

.modal-overlay.active {
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 1;
}

.modal-content {
    background: linear-gradient(135deg, #001f3f 0%, #003d7a 50%, #001f3f 100%);
    border-radius: 20px;
    max-width: 900px;
    width: 100%;
    position: relative;
    transform: scale(0.9);
    transition: transform 0.3s ease;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.modal-overlay.active .modal-content {
    transform: scale(1);
}

.modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: rgba(0, 0, 0, 0.6);
    color: #fff;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    font-size: 28px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 10;
    line-height: 1;
    padding: 0;
}

.modal-close:hover {
    background: rgba(0, 0, 0, 0.8);
    transform: rotate(90deg);
}

.modal-body {
    display: flex;
    gap: 40px;
    padding: 40px;
}

.modal-image {
    width: 350px;
    height: 450px;
    object-fit: cover;
    object-position: top center;
    border-radius: 16px;
    flex-shrink: 0;
}

.modal-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.modal-name {
    font-size: 42px;
    color: #ffffff;
    margin-bottom: 12px;
    line-height: 1;
    text-transform: uppercase;
}

.modal-name .name-part {
    display: block;
    line-height: 1.1;
}

.modal-role {
    font-size: 16px;
    color: rgba(255, 255, 255, 0.85);
    font-weight: 500;
    margin-bottom: 24px;
    line-height: 1.4;
}

.modal-bio {
    font-size: 16px;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.8;
}

/* Scroll Animation */
@keyframes scroll {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(calc(-280px * 12 - 20px * 12));
    }
}

/* Pause animation on hover */
.slider-container:hover .slider-track {
    animation-play-state: paused;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .section-title {
        font-size: 40px;
    }

    .section-subtitle {
        font-size: 18px;
    }

    .partner-card {
        width: 240px;
        height: 340px;
    }

    .partner-name {
        font-size: 22px;
        font-weight: 900;
        letter-spacing: 0.8px;
    }

    .partner-role {
        font-size: 12px;
    }

    @keyframes scroll {
        0% {
            transform: translateX(0);
        }
        100% {
            transform: translateX(calc(-240px * 12 - 20px * 12));
        }
    }
}

@media (max-width: 768px) and (orientation: portrait) {
    .partners-section {
        padding: 40px 0 0 0;
    }

    .header-content {
        padding: 0 20px;
        margin-bottom: 40px;
    }

    .section-title {
        font-size: 32px;
    }

    .section-subtitle {
        font-size: 16px;
    }

    .partner-card {
        width: 320px;
        height: 420px;
    }

    .partner-info {
        padding: 28px 20px 20px 20px;
    }

    .partner-name {
        font-size: 22px;
        font-weight: 900;
        letter-spacing: 0.8px;
    }

    .partner-role {
        font-size: 12px;
    }

    .slider-track {
        gap: 16px;
    }
    
    @keyframes scroll {
        0% {
            transform: translateX(0);
        }
        100% {
            transform: translateX(calc(-320px * 12 - 16px * 12));
        }
    }

    /* Modal Responsive */
    .modal-overlay {
        padding: 30px;
    }

    .modal-body {
        flex-direction: column;
        padding: 15px 30px !important;
    }

    .modal-image {
        width: 100%;
        height: 180px;
    }

    .modal-name {
        font-size: 18px;
        font-weight: 900;
        letter-spacing: 0.6px;
    }

    .modal-role {
        font-size: 11px;
    }

    .modal-bio {
        font-size: 12px;
    }

    .modal-close {
        top: 10px;
        right: 10px;
        width: 28px;
        height: 28px;
        font-size: 20px;
    }

    @keyframes scroll {
        0% {
            transform: translateX(0);
        }
        100% {
            transform: translateX(calc(-200px * 14 - 16px * 14));
        }
    }
}

@media (max-width: 480px) {
    .header-content {
        padding: 0 16px;
    }

    .section-title {
        font-size: 28px;
    }

    .section-subtitle {
        font-size: 15px;
    }

    .partner-card {
        width: 180px;
        height: 260px;
    }

    .partner-info {
        padding: 16px 12px 12px 12px;
    }

    .partner-name {
        font-size: 17px;
        font-weight: 900;
        letter-spacing: 0.5px;
    }

    .partner-role {
        font-size: 10px;
    }

    .slider-track {
        gap: 12px;
    }

    /* Modal Mobile Small */
    .modal-body {
        padding: 15px 30px !important;
    }

    .modal-image {
        width: 100%;
        height: 180px;
    }

    .modal-name {
        font-size: 18px;
        font-weight: 900;
        letter-spacing: 0.6px;
    }

    .modal-role {
        font-size: 11px;
        margin-bottom: 8px;
    }

    .modal-bio {
        font-size: 12px;
    }

    @keyframes scroll {
        0% {
            transform: translateX(0);
        }
        100% {
            transform: translateX(calc(-180px * 14 - 12px * 14));
        }
    }
}
