/* Intro text */
.sponsors-intro {
    text-align: center;
    font-size: 1.6rem;
    color: var(--par-title-color);
    margin-bottom: 2.5rem;
    font-weight: 300;
    font-family: 'Georgia', 'Times New Roman', serif !important;
    font-style: italic;
    letter-spacing: 0.5px;
    line-height: 1.4;
}

/* Sponsor sections */
.sp-section {
    display: flex;
    align-items: center;
    gap: 30px;
    margin-bottom: 50px;
    padding: 35px;
    border-radius: 20px;
    background: linear-gradient(145deg, #ffffff, #f8f9fa);
    box-shadow: 0 8px 25px rgba(4, 49, 96, 0.08);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(4, 49, 96, 0.05);
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 0.8s ease forwards;
}

/* Subtle animated background effect */
.sp-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(4, 49, 96, 0.02), transparent);
    transition: left 0.8s ease;
    z-index: 1;
}

.sp-section:hover::before {
    left: 100%;
}

.sp-section:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 40px rgba(4, 49, 96, 0.12);
    border-color: rgba(4, 49, 96, 0.1);
}

/* Remove bottom border, add better spacing */
.sp-section:not(:last-child) {
    border-bottom: none;
}

.sp-section:last-child {
    margin-bottom: 0;
}

/* Reverse layout for alternating design */
.sp-section.reverse {
    flex-direction: row-reverse;
}

/* Logo container */
.sp-logo-container {
    flex-shrink: 0;
    width: 300px;
    height: 220px;
    background: linear-gradient(145deg, #f8f9fa, #ffffff);
    border: 2px solid #e2e8f0;
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    transition: all 0.4s ease;
    position: relative;
    z-index: 2;
}

.sp-section:hover .sp-logo-container {
    border-color: #043160;
    background: linear-gradient(145deg, #ffffff, #f1f5f9);
    transform: scale(1.02);
}

/* Logo image  */
.sp-logo-image {
    width: 85%;
    height: 85%;
    object-fit: contain;
    border-radius: 8px;
    transition: all 0.4s ease;
    filter: brightness(1) contrast(1.05);
}

.sp-section:hover .sp-logo-image {
    transform: scale(1.05);
    filter: brightness(1.05) contrast(1.1);
}

/* Content area */
.sp-content {
    flex: 1;
    position: relative;
    z-index: 2;
}

/* Title styling */
.sp-title {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--par-title-color);
    margin-bottom: 20px;
    position: relative;
    transition: all 0.3s ease;
}

.sp-title::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 0;
    height: 3px;
    background: linear-gradient(135deg, #043160, #1e5289);
    border-radius: 2px;
    transition: width 0.5s ease;
}

.sp-section:hover .sp-title::after {
    width: 60px;
}

/* Description styling */
.sp-description {
    font-size: 1rem;
    line-height: 1.7;
    color: #4a5568;
    text-align: justify;
    transition: color 0.3s ease;
}

.sp-section:hover .sp-description {
    color: #2d3748;
}

/* Custom HR */
.custom-hr {
    border: none;
    height: 3px;
    background: linear-gradient(135deg, #043160, #1e5289);
    border-radius: 2px;
    margin: 40px auto;
    width: 100px;
    opacity: 0.8;
}

/* Sponsor type styling - only gold and blue */
.sp-section[data-sponsor-type="blue"] {
    background: linear-gradient(145deg, #f8f9fa, #e8f4f8);
    border-left: 4px solid #043160;
}

.sp-section[data-sponsor-type="gold"] {
    background: linear-gradient(145deg, #fefcf6, #f9f7f1);
    border-left: 4px solid #d4a574;
}

/* Animation delays */
.sp-section:nth-child(1) { animation-delay: 0.1s; }
.sp-section:nth-child(2) { animation-delay: 0.2s; }
.sp-section:nth-child(3) { animation-delay: 0.3s; }
.sp-section:nth-child(4) { animation-delay: 0.4s; }
.sp-section:nth-child(5) { animation-delay: 0.5s; }
.sp-section:nth-child(6) { animation-delay: 0.6s; }
.sp-section:nth-child(7) { animation-delay: 0.7s; }
.sp-section:nth-child(8) { animation-delay: 0.8s; }

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

/* Accessibility */
.sp-section:focus-within {
    outline: 2px solid #043160;
    outline-offset: 2px;
}

/* Responsive design */
@media (max-width: 768px) {
    .sp-section,
    .sp-section.reverse {
        flex-direction: column;
        text-align: center;
        gap: 25px;
        padding: 25px 20px;
        margin-bottom: 35px;
    }
    
    .sp-logo-container {
        width: 220px;
        height: 160px;
        margin: 0 auto;
    }
    
    .sp-title {
        font-size: 1.6rem;
        text-align: center;
    }
    
    .sp-title::after {
        left: 50%;
        transform: translateX(-50%);
    }
    
    .sp-section:hover .sp-title::after {
        width: 50px;
    }
    
    .sp-description {
        text-align: left;
        font-size: 0.95rem;
    }

    .sponsors-intro {
        font-size: 1.3rem;
        margin-bottom: 2rem;
    }
}

@media (max-width: 480px) {
    .sp-section {
        padding: 20px 15px;
        margin-bottom: 30px;
    }
    
    .sp-logo-container {
        width: 180px;
        height: 140px;
    }
    
    .sp-title {
        font-size: 1.4rem;
    }
    
    .sp-description {
        font-size: 0.9rem;
        line-height: 1.6;
    }

    .sponsors-intro {
        font-size: 1rem;
        padding: 0 10px;
    }
}

/* Print styles */
@media print {
    .sp-section {
        break-inside: avoid;
        box-shadow: none;
        border: 1px solid #ddd;
        background: white !important;
    }
    
    .sp-section::before {
        display: none;
    }

    .sp-section[data-link] {
        cursor: pointer;
    }
    
    .sp-section[data-link]:hover {
        transform: translateY(-12px);
    }
    
    .sp-section[data-link]:active {
        transform: translateY(-6px);
        transition: transform 0.1s ease;
    }
}