/* Competition Information Section Styles */

.competition-info-section {
    position: relative;
    background: linear-gradient(135deg, #0d1b2a 0%, #1b263b 50%, #0d1b2a 100%);
    overflow: hidden;
}

.competition-info-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grid" width="10" height="10" patternUnits="userSpaceOnUse"><path d="M 10 0 L 0 0 0 10" fill="none" stroke="rgba(59,130,246,0.1)" stroke-width="0.5"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
    opacity: 0.3;
    z-index: 1;
}

.competition-info-section .container {
    position: relative;
    z-index: 2;
}

/* Section Header Styles */
.competition-info-section .section-badge {
    display: inline-block;
    background: linear-gradient(45deg, #3b82f6, #1d4ed8);
    color: white;
    padding: 8px 24px;
    border-radius: 50px;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 1rem;
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.3);
}

.competition-info-section .section-title {
    font-size: 3rem;
    margin-bottom: 1.5rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.competition-info-section .section-line {
    width: 80px;
    height: 4px;
    background: linear-gradient(45deg, #3b82f6, #1d4ed8);
    border-radius: 2px;
    margin: 1.5rem auto;
    position: relative;
}

.competition-info-section .section-line::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 12px;
    height: 12px;
    background: #3b82f6;
    border-radius: 50%;
    box-shadow: 0 0 20px rgba(59, 130, 246, 0.6);
}

.competition-info-section .section-subtitle {
    font-size: 1.2rem;
    line-height: 1.6;
    opacity: 0.9;
}

/* Competition Card Styles */
.competition-card {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    height: 100%;
    min-height: 350px;
}

.competition-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    border-color: rgba(59, 130, 246, 0.5);
}

.competition-image-wrapper {
    position: relative;
    width: 100%;
    height: 350px;
    overflow: hidden;
    border-radius: 20px;
}

/* Responsive image wrapper adjustments */
@media (max-width: 768px) {
    .competition-image-wrapper {
        height: auto;
        min-height: 280px;
        aspect-ratio: 4/3; /* Maintain aspect ratio */
        overflow: visible; /* Allow full image display */
    }
}

@media (max-width: 576px) {
    .competition-image-wrapper {
        height: auto;
        min-height: 250px;
        aspect-ratio: 1/1; /* Square for mobile */
        overflow: visible; /* Allow full image display */
        border-radius: 15px;
    }
}

.competition-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform 0.6s ease;
    filter: brightness(0.9) contrast(1.1);
}

/* Mobile-specific image handling */
@media (max-width: 768px) {
    .competition-image {
        object-fit: contain; /* Ensure full image is visible on mobile */
        background-color: rgba(13, 27, 42, 0.1);
    }
}

@media (max-width: 576px) {
    .competition-image {
        object-fit: contain; /* Ensure full image is visible on mobile */
        background-color: rgba(13, 27, 42, 0.05);
        padding: 2px; /* Small padding to prevent any edge cropping */
    }
}

.competition-card:hover .competition-image {
    transform: scale(1.1);
    filter: brightness(1) contrast(1.2);
}

.competition-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        135deg,
        rgba(0, 0, 0, 0.7) 0%,
        rgba(59, 130, 246, 0.3) 50%,
        rgba(0, 0, 0, 0.8) 100%
    );
    opacity: 0;
    transition: all 0.4s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 20px;
}

.competition-card:hover .competition-overlay {
    opacity: 1;
}

.competition-hover-content {
    text-align: center;
    color: white;
    transform: translateY(20px);
    transition: transform 0.4s ease;
}

.competition-card:hover .competition-hover-content {
    transform: translateY(0);
}

.competition-hover-content i {
    font-size: 3rem;
    margin-bottom: 1rem;
    opacity: 0.9;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.5));
}

/* Responsive Design */
@media (max-width: 1200px) {
    .competition-info-section .section-title {
        font-size: 2.5rem;
    }
    
    .competition-image-wrapper {
        height: 300px;
    }
    
    .competition-card {
        min-height: 300px;
    }
}

@media (max-width: 768px) {
    .competition-info-section .section-title {
        font-size: 2rem;
    }
    
    .competition-info-section .section-subtitle {
        font-size: 1.1rem;
    }
    
    .competition-image-wrapper {
        height: auto;
        min-height: 250px;
        padding-bottom: 75%; /* 4:3 aspect ratio */
        position: relative;
    }
    
    .competition-image {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        object-fit: contain; /* Show full image without cropping */
        object-position: center;
        background-color: rgba(0, 0, 0, 0.1);
    }
    
    .competition-card {
        min-height: auto;
        margin-bottom: 2rem;
    }
    
    .competition-hover-content i {
        font-size: 2.5rem;
    }
}

@media (max-width: 576px) {
    .competition-info-section .section-title {
        font-size: 1.8rem;
    }
    
    .competition-image-wrapper {
        height: auto;
        min-height: 250px;
        aspect-ratio: 1/1; /* Square for mobile */
        overflow: visible; /* Allow full image display */
        border-radius: 15px;
    }
    
    .competition-image {
        position: relative;
        width: 100%;
        height: auto;
        min-height: 250px;
        object-fit: contain; /* Show full image without cropping */
        object-position: center;
        background-color: rgba(13, 27, 42, 0.05);
        padding: 2px; /* Small padding to prevent any edge cropping */
        border-radius: 15px;
    }
    
    .competition-card {
        min-height: auto;
        border-radius: 15px;
        margin-bottom: 1.5rem;
    }
    
    .competition-hover-content i {
        font-size: 2rem;
    }
    
    .competition-overlay {
        border-radius: 15px;
    }
}

/* Extra small devices */
@media (max-width: 480px) {
    .competition-image-wrapper {
        min-height: 220px;
    }
    
    .competition-image {
        min-height: 220px;
        padding: 5px;
    }
    
    .competition-info-section .section-title {
        font-size: 1.6rem;
    }
}

/* Animation Enhancements */
.competition-card {
    animation: fadeInUp 0.6s ease-out forwards;
}

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

/* Additional Visual Effects */
.competition-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, transparent, rgba(59, 130, 246, 0.1), transparent);
    opacity: 0;
    transition: opacity 0.4s ease;
    border-radius: 20px;
    z-index: 1;
}

.competition-card:hover::before {
    opacity: 1;
}

.competition-image-wrapper::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 50%;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.4), transparent);
    transition: opacity 0.4s ease;
}

.competition-card:hover .competition-image-wrapper::after {
    opacity: 0.7;
}
