/**
 * Results and Participants Section
 * Accordion layout with modern design
 * Colors: #293172, #f8b034, #43a7df, #f59f35
 */

/* Section Styling */
.results-participants-section {
    position: relative;
    padding: 100px 0;
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    overflow: hidden;
}

.results-participants-section .sec-title {
    margin-bottom: 60px;
}

.results-participants-section .sec-title .sub-title {
    color: #43a7df;
    font-size: 16px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.results-participants-section .sec-title h2 {
    color: #293172;
    font-size: 42px;
    font-weight: 800;
    margin-top: 10px;
}

/* Accordion Wrapper - Two Column Layout */
.accordion-wrapper {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    gap: 30px;
    align-items: flex-start;
}

/* Accordion Item - 50% Width Each */
.accordion-item {
    flex: 1;
    min-width: 0;
    background: #ffffff;
    border-radius: 20px;
    margin-bottom: 0;
    box-shadow: 0 5px 20px rgba(41, 49, 114, 0.1);
    overflow: hidden;
    transition: all 0.4s ease;
    height: fit-content;
}

.accordion-item:hover {
    box-shadow: 0 10px 35px rgba(41, 49, 114, 0.15);
    transform: translateY(-3px);
}

/* Accordion Header */
.accordion-header {
    display: flex;
    align-items: center;
    padding: 30px 40px;
    background: linear-gradient(135deg, #293172 0%, #43a7df 100%);
    cursor: pointer;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

.accordion-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.6s ease;
}

.accordion-header:hover::before {
    left: 100%;
}

.accordion-header:hover {
    background: linear-gradient(135deg, #43a7df 0%, #293172 100%);
}

/* Accordion Icon */
.accordion-icon {
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #f8b034 0%, #f59f35 100%);
    border-radius: 50%;
    margin-right: 25px;
    font-size: 26px;
    color: #ffffff;
    box-shadow: 0 4px 15px rgba(248, 176, 52, 0.4);
    transition: all 0.4s ease;
}

.accordion-header:hover .accordion-icon {
    transform: scale(1.1) rotate(10deg);
    box-shadow: 0 6px 20px rgba(248, 176, 52, 0.6);
}

/* Accordion Title */
.accordion-title {
    flex: 1;
    font-size: 28px;
    font-weight: 800;
    color: #ffffff;
    margin: 0;
    transition: all 0.3s ease;
}

/* Accordion Toggle */
.accordion-toggle {
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    font-size: 20px;
    color: #ffffff;
    transition: all 0.4s ease;
}

.accordion-header:hover .accordion-toggle {
    background: rgba(255, 255, 255, 0.3);
    transform: rotate(180deg);
}

.accordion-item.active .accordion-toggle i {
    transform: rotate(180deg);
}

/* Accordion Content - Fixed Height Management */
.accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    padding: 0 40px;
}

.accordion-item.active .accordion-content {
    max-height: 2500px;
    padding: 40px;
    overflow-y: auto;
}

/* Content Intro */
.content-intro {
    margin-bottom: 35px;
    padding: 25px;
    background: linear-gradient(135deg, rgba(67, 167, 223, 0.08) 0%, rgba(41, 49, 114, 0.05) 100%);
    border-left: 4px solid #43a7df;
    border-radius: 10px;
}

.content-intro p {
    font-size: 16px;
    line-height: 1.8;
    color: #293172;
    margin: 0;
    font-weight: 500;
}

/* Results Grid */
.results-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
    margin-top: 30px;
}

/* Result Card */
.result-card {
    background: #ffffff;
    padding: 30px;
    border-radius: 15px;
    border: 2px solid #43a7df;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

.result-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #f8b034 0%, #f59f35 100%);
    transform: scaleX(0);
    transition: transform 0.4s ease;
}

.result-card:hover::before {
    transform: scaleX(1);
}

.result-card:hover {
    border-color: #f8b034;
    box-shadow: 0 8px 30px rgba(248, 176, 52, 0.2);
    transform: translateY(-5px);
}

/* Result Icon */
.result-icon {
    width: 70px;
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #43a7df 0%, #293172 100%);
    border-radius: 50%;
    margin-bottom: 20px;
    font-size: 30px;
    color: #ffffff;
    box-shadow: 0 4px 15px rgba(67, 167, 223, 0.3);
    transition: all 0.4s ease;
}

.result-card:hover .result-icon {
    background: linear-gradient(135deg, #f8b034 0%, #f59f35 100%);
    transform: scale(1.1) rotate(10deg);
    box-shadow: 0 6px 20px rgba(248, 176, 52, 0.4);
}

.result-card h4 {
    font-size: 20px;
    font-weight: 800;
    color: #293172;
    margin-bottom: 12px;
}

.result-card p {
    font-size: 14px;
    line-height: 1.7;
    color: #293172;
    margin: 0;
    opacity: 0.85;
}

.result-card p strong {
    color: #f8b034;
    font-weight: 700;
}

/* Participants Grid */
.participants-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 20px;
    margin-top: 30px;
}

/* Participant Item */
.participant-item {
    display: flex;
    align-items: flex-start;
    padding: 20px;
    background: #ffffff;
    border-radius: 12px;
    border-left: 4px solid #43a7df;
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px rgba(41, 49, 114, 0.05);
}

.participant-item:hover {
    border-left-color: #f8b034;
    box-shadow: 0 5px 20px rgba(248, 176, 52, 0.15);
    transform: translateX(5px);
}

.participant-bullet {
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #43a7df 0%, #293172 100%);
    border-radius: 50%;
    color: #ffffff;
    font-size: 18px;
    font-weight: 700;
    margin-right: 15px;
    flex-shrink: 0;
    transition: all 0.3s ease;
}

.participant-item:hover .participant-bullet {
    background: linear-gradient(135deg, #f8b034 0%, #f59f35 100%);
    transform: scale(1.15);
}

.participant-text {
    font-size: 15px;
    line-height: 1.6;
    color: #293172;
    font-weight: 500;
}

/* Responsive Design */
@media (max-width: 991px) {
    .results-participants-section {
        padding: 80px 0;
    }

    .results-participants-section .sec-title h2 {
        font-size: 36px;
    }

    /* Stack columns on tablet */
    .accordion-wrapper {
        flex-direction: column;
        gap: 25px;
    }

    .accordion-item {
        margin-bottom: 0;
    }

    .accordion-header {
        padding: 25px 30px;
    }

    .accordion-icon {
        width: 50px;
        height: 50px;
        font-size: 22px;
        margin-right: 20px;
    }

    .accordion-title {
        font-size: 24px;
    }

    .accordion-content {
        padding: 0 30px;
    }

    .accordion-item.active .accordion-content {
        padding: 30px;
    }

    .results-grid,
    .participants-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 767px) {
    .results-participants-section {
        padding: 60px 0;
    }

    .results-participants-section .sec-title h2 {
        font-size: 30px;
    }

    .accordion-header {
        padding: 20px 20px;
        flex-wrap: wrap;
    }

    .accordion-icon {
        width: 45px;
        height: 45px;
        font-size: 20px;
        margin-right: 15px;
    }

    .accordion-title {
        font-size: 20px;
        flex: 1;
        min-width: calc(100% - 110px);
    }

    .accordion-toggle {
        width: 40px;
        height: 40px;
        font-size: 18px;
    }

    .accordion-content {
        padding: 0 20px;
    }

    .accordion-item.active .accordion-content {
        padding: 25px 20px;
    }

    .content-intro {
        padding: 20px;
    }

    .result-card,
    .participant-item {
        padding: 20px;
    }
}

@media (max-width: 575px) {
    .results-participants-section .sec-title h2 {
        font-size: 26px;
    }

    .accordion-title {
        font-size: 18px;
    }

    .participants-grid {
        grid-template-columns: 1fr;
    }
}
