/*=========================================================*
* NIC Kerala Onam Celebration 2026
* competitions.css
*=========================================================*/


/*=========================================================*
COMPETITION HERO
=========================================================*/


.competitionHero {


    min-height: 60vh;

    position: relative;

    display: flex;

    align-items: center;

    justify-content: center;


    background:

        linear-gradient(135deg,
            rgba(255, 213, 79, .92),
            rgba(255, 152, 0, .88)),

        url("../images/onam-bg.jpg");


    background-size: cover;

    background-position: center;

    overflow: hidden;


}




.competitionOverlay {


    position: absolute;

    inset: 0;


    background:

        radial-gradient(circle,
            transparent,
            rgba(0, 0, 0, .35));


}





.competitionHeroContent {


    position: relative;

    z-index: 2;


    color: white;

    text-align: center;


    max-width: 900px;


    padding: 40px 20px;


}





.competitionHeroContent .tag {


    display: inline-block;


    padding: 8px 22px;


    border-radius: 30px;


    background:

        rgba(255, 255, 255, .25);


    backdrop-filter: blur(10px);


    font-size: 18px;


    margin-bottom: 20px;


}






.competitionHeroContent h1 {

    font-size: 58px;


    font-weight: 900;


    margin: 10px 0;


}





.competitionHeroContent h2 {


    font-size: 30px;


    margin-bottom: 20px;


}





.competitionHeroContent p {


    font-size: 18px;


    line-height: 1.7;


}






.competitionHero .heroInfo {


    margin-top: 35px;


    display: flex;


    justify-content: center;


    flex-wrap: wrap;


    gap: 20px;


}





.competitionHero .heroInfo div {


    padding: 12px 25px;


    border-radius: 30px;


    background:

        rgba(255, 255, 255, .2);


    backdrop-filter: blur(10px);


}






/*=========================================================*
COMPETITION SECTION
=========================================================*/


.competitionsSection {


    padding: 80px 8%;


    background: #f7f8fb;


}







.competitionsGrid {


    display: grid;


    grid-template-columns:

        repeat(auto-fit,
            minmax(320px, 1fr));


    gap: 30px;


    margin-top: 45px;


}






/*=========================================================
 COMPACT ONAM COMPETITION CARDS
=========================================================*/

.competitionsGrid {

    display: grid;

    grid-template-columns:
        repeat(auto-fit, minmax(280px, 1fr));

    gap: 22px;

    margin-top: 35px;

}



/* CARD */

.competitionCard {

    background:
        linear-gradient(145deg,
            #ffffff,
            #fffaf0);

    border-radius: 22px;

    padding: 20px;

    position: relative;

    overflow: hidden;

    border: 1px solid rgba(255, 152, 0, .15);

    box-shadow:
        0 10px 30px rgba(0, 0, 0, .08);

    transition: .35s;

}



.competitionCard::before {

    content: "";

    position: absolute;

    top: 0;
    left: 0;

    width: 100%;

    height: 5px;

    background:
        linear-gradient(90deg,
            #ffd54f,
            #ff9800,
            #e65100);

}



.competitionCard:hover {

    transform:
        translateY(-8px);

    box-shadow:
        0 18px 45px rgba(255, 152, 0, .25);

}



/* HEADER */

.competitionHeader {

    display: flex;

    justify-content: space-between;

    align-items: center;

    margin-bottom: 15px;

}



.competitionNumber {


    width: 38px;

    height: 38px;

    border-radius: 50%;


    display: flex;

    align-items: center;

    justify-content: center;


    background:
        linear-gradient(135deg,
            #ffd54f,
            #ff9800);


    color: white;

    font-size: 14px;

    font-weight: 800;

}




.competitionType {


    padding: 6px 12px;

    border-radius: 20px;

    background: #fff3e0;

    color: #e65100;

    font-size: 12px;

    font-weight: 700;

}



/* STATUS */

.competitionStatus {


    display: inline-block;

    padding: 5px 14px;

    border-radius: 20px;

    background: #dcfce7;

    color: #15803d;

    font-size: 12px;

    font-weight: 700;

    margin-bottom: 10px;

}



/* TITLE */

.competitionCard h3 {


    font-size: 20px;

    line-height: 1.3;

    margin: 8px 0;

    color: #1e293b;

}



/* DESCRIPTION */


.competitionDescription {


    font-size: 14px;

    color: #64748b;

    line-height: 1.6;

    margin-bottom: 12px;


}



/* DATE BOX */


.competitionDates {


    background:
        #fff7ed;


    padding: 12px;


    border-radius: 15px;


    font-size: 13px;


    display: grid;

    gap: 6px;


    color: #475569;


}





/* RULE BUTTON */


.rulesToggle {


    margin-top: 15px;


    padding: 11px 14px;


    border-radius: 14px;


    background:
        linear-gradient(135deg,
            #fff7ed,
            #ffedd5);


    color: #ea580c;


    font-size: 14px;

    font-weight: 700;


    display: flex;

    justify-content: space-between;

    cursor: pointer;


}





/* RULES */


.competitionRules {


    max-height: 0;

    overflow: hidden;

    opacity: 0;

    transition: .4s ease;


}



.competitionRules.show {


    max-height: 600px;

    opacity: 1;

    margin-top: 12px;


}




.ruleItem {


    display: flex;

    gap: 10px;

    padding: 10px 0;

    border-bottom: 1px solid #f1f1f1;


}



.ruleNumber {


    min-width: 28px;

    height: 28px;


    border-radius: 50%;


    display: flex;

    align-items: center;

    justify-content: center;


    background: #ff9800;


    color: white;


    font-size: 12px;


}



.ruleItem p {


    font-size: 13px;

    line-height: 1.5;

    margin: 0;

    color: #475569;


}




/* SUBMISSION */


.submissionBox {


    margin-top: 15px;


    padding: 12px;


    border-radius: 14px;


    background: #f8fafc;


    border: 1px solid #e2e8f0;


}



.submissionBox h4 {


    font-size: 15px;

    color: #ff9800;

    margin-bottom: 8px;


}



.submissionBox p {


    font-size: 13px;

    margin: 4px 0;

}





/* BUTTON */


.participateBtn {


    margin-top: 15px;


    width: 100%;


    padding: 12px;


    border: none;


    border-radius: 30px;


    background:


        linear-gradient(135deg,
            #ffd54f,
            #ff9800);


    color: white;


    font-size: 15px;


    font-weight: 700;


    cursor: pointer;


    transition: .3s;


}




.participateBtn:hover {


    transform: scale(1.03);


    box-shadow:
        0 8px 20px rgba(255, 152, 0, .35);


}




/* MOBILE */


@media(max-width:768px) {


    .competitionsGrid {


        grid-template-columns: 1fr;

        gap: 18px;


    }


    .competitionCard {


        padding: 18px;


    }



    .competitionCard h3 {


        font-size: 18px;


    }



}