
@font-face {
    font-family: 'Roboto';
    font-style: normal;
    font-display: swap;
    src: url("../fonts/Roboto-Regular.woff2") format('woff2');
}

@font-face {
    font-family: 'OswaldBold';
    font-style: normal;
    font-display: swap;
    src: url("../fonts/Oswald-Bold.woff2") format('woff2');
}

@font-face {
    font-family: 'OswaldRegular';
    font-style: normal;
    font-display: swap;
    src: url("../fonts/Oswald-Regular.woff2") format('woff2');
}


*{
    margin:0;
    padding:0;
    box-sizing:border-box;
}

html{
    scroll-behavior:smooth;
}

body{
    font-family:"OswaldBold", "OswaldRegular", "Roboto";
    background:#fafafa;
    color:#222;
    min-height:100vh;
    display:flex;
    flex-direction:column;
    padding-top:65px;
}

/* =========================
   GLOBAL CONTAINER
========================= */

.container{
    width:90%;
    max-width:1300px;
    margin:auto;
    
}


/* =========================
   COVER
========================= */

.cover img{
    width:100%;
    height:650px;
    object-fit:cover;
    display:block;
}

.cover{
    position: relative;
    width: 100%;
    height: 650px;
    overflow: hidden;
}

/* الصورة */
.cover img{
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* طبقة شفافة فوق الصورة */
.cover-overlay{
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.45);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start; /* 👈 هنا التغيير الأساسي */
    text-align: left;
}

/* النص */
#cover-text{
    font-family: 'OswaldBold';
    font-size: 72px;
    color: #fff;
    max-width: 600px;
    margin-bottom: 16px;
    line-height: 0.95;
    letter-spacing: 2px;
}

#cover-text span{
    font-family: 'OswaldBold';
    font-size: 72px;
    color: #d41111;
    max-width: 600px;
    display: block;

}
.cover-overlay p{
    font-family: 'OswaldRegular';
    font-size: 20px;
    margin-bottom: 40px;
    color: #FFFFFFB3;
    max-width: 500px;
}

/* الأزرار */
.cover-buttons{
    display: flex;
    gap: 15px;
}

.primary-btn{
    padding: 12px 25px;
    border: none;
    border-radius: 25px;
    background: #d41111;
    color: #fff;
    font-weight: bold;
    cursor: pointer;
    transition: 0.3s;
    text-decoration: none;
}

.primary-btn:hover{
    background: #ac0c0c;
}

.secondary-btn{
    padding: 12px 25px;
    border: 2px solid #fff;
    border-radius: 25px;
    background: transparent;
    color: #fff;
    font-weight: bold;
    cursor: pointer;
    transition: 0.3s;
    text-decoration: none;
}

.secondary-btn:hover{
    background: #ffffff68;
}

/* =========================
   Counter Card
========================= */

.counter-section{
    padding: 64px 0px;
    gap: 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;

}

.counter-card{
    border: 1px solid rgba(0,0,0,0.08);
    padding: 32px;
    border-radius: 16px;
    flex:1;
    min-width:220px;
}

.counter-card i{
    margin-bottom: 12px;
    font-size: 20px;
    color: #d41111;
}

.counter-card h2{
    font-size: 36px;
    font-family: 'OswaldBold';
}

.counter-card p{
    font-size: 14px;
    font-family: 'Roboto';
    margin-top: 4px;
    color: #737373;
}
/* =========================
   competition-section
========================= */

.competitions-section{
    padding: 64px 0px;
    margin-bottom: 100px;
}


.section-header{
    display:flex;
    justify-content:space-between;
    align-items:center;
    margin-bottom:40px;
}

.section-header h2{
    color: #000;
    font-family:"OswaldBold";
    font-size:36px;
    margin-bottom:10px;
}

.section-header p{
    margin-top: 8px;
    font-family:"Roboto";
    color:#737373;
    font-size:16px;
}

.view-all{
    text-decoration:none;
    color:#ff2b2b;
    font-weight:600;
}
.view-all:hover{
    text-decoration:underline;
}


.competitions-grid{
    display:grid;
    grid-template-columns:repeat(3,1fr);
    gap:25px;
}

.card-link{
    text-decoration:none;
    color:inherit;
    display:block;
}

.competition-card{
    background:#fff;
    border:1px solid #e0e0e0;
    border-radius:20px;
    padding:24px;
    position:relative;
    overflow:hidden;
    transition: 0.3s ease;
    cursor:pointer;
}
.competition-card:hover{
    border:1px solid #f6cfcf;
    transform: translateY(-5px);
    box-shadow: 0px 0px 10px rgba(0,0,0,0.18);
    
}

.competition-card::before{
    content:"";
    position:absolute;
    top:0;
    left:0;
    width:100%;
    height:6px;
    background:linear-gradient(
        90deg,
        #ff1d1d,
        #7f1010,
        #1a0f0f
    );
}

.card-top{
    display:flex;
    justify-content:space-between;
    align-items:center;
    margin-bottom:20px;
}

.badge{
    background:#eef4ff;
    color:#2563eb;
    padding:6px 12px;
    border-radius:999px;
    font-size:12px;
    font-weight:600;
}

.registration{
    background:#e8fff3;
    color:#059669;
}

.status{
    color:#737373;
    font-size:12px;
    letter-spacing:1px;
}

.competition-title{
    font-family:"OswaldBold";
    font-size:20px;
    margin-bottom:12px;
    color: #000;
    transition:color 0.3s ease;
}

.competition-card:hover .competition-title{
    color:#d41111;
}

.card-info{
    display:flex;
    flex-direction:column;
    gap:12px;
    color:#737373;
}

.card-info p{
    margin:0;
    color: #737373;
    font-size: 14px;
    font-family: "Roboto";
}

.card-info p i{
    margin:0;
    color: #d41111;
    font-size: 14px;
}

.competition-card hr{
    border:none;
    border-top:1px solid #e5e7eb;
    margin:24px 0;
}

.prize{
    display:flex;
    align-items:end;
    gap:4px;
}

.amount{
    font-size:18px;
    font-family: "OswaldBold";
    color:#000;
}

.prize span:last-child{
    color:#737373;
    font-family: "Roboto";
    font-size: 12px;
}

/* =========================
   RESPONSIVE
========================= */


@media (max-width:1200px){
    .competitions-grid{
        grid-template-columns:repeat(2,1fr);
    }
}

@media (max-width:768px){
    .competitions-grid{
        grid-template-columns:1fr;
    }
}

@media(max-width:992px){

    .footer-content{
        grid-template-columns:1fr;
        gap:40px;
    }

    .footer-bottom{
        margin-top:40px;
    }

}

@media (max-width:768px){

    .cover{
        height:500px;
    }

    #cover-text{
        font-size:42px;
        line-height:1;
    }

    #cover-text span{
        font-size:42px;
    }

    .cover-overlay p{
        font-size:16px;
        margin-bottom:25px;
        max-width:100%;
    }

    .cover-buttons{
        flex-direction:column;
        width:100%;
        max-width:250px;
    }

    .primary-btn,
    .secondary-btn{
        text-align:center;
    }
}

@media (max-width:768px){

    .counter-section{
        flex-direction:column;
        padding:40px 0;
    }

    .counter-card{
        width:100%;
    }
}

