.wrapper {
    position: relative;
    margin: 0 auto;
    max-width: 1024px;
}

.row {
    width: 100%;
    display: flex; flex-direction: row;
    align-items: center; justify-content: space-between;
}

#nav {
    z-index: 1;
    padding: 1.5em;
    position: fixed;
    top: 0; left: 0;
    width: 100%;
    background: transparent;
    transition: all 0.2s;
} nav {
    margin: 0 auto;
    width: 100%; max-width: 1024px;
    display: flex; flex-direction: row;
    align-items: center; justify-content: space-between;
}

.title {
    text-decoration: none !important;
} .title:hover, .title:focus {
    -webkit-mask-image: linear-gradient(-75deg, rgba(0, 0, 0, .6) 30%, #000 50%, rgba(0, 0, 0, .6) 70%);
    -webkit-mask-size: 200%;
    animation: shine 2s infinite;
} .title > h1 {
    font-size: 7em; font-weight: 600;
    text-transform: uppercase;
    color: var(--default);
    transition: all 0.2s;
}

.navbar {
    position: absolute;
    right: 0;
    display: flex; flex-direction: row;
} .navbar > li {
    margin-right: 2em;
} .navbar > li:last-child {
    margin-right: unset;
} .navbar > li > a {
    font-size: 1.3rem;
    text-decoration: none;
    color: var(--primary-alt);
} .navbar > li > a:hover, .navbar > li > a:focus, .active{
    color: var(--secondary) !important;
}

#action-btn {
    padding: .3em 1em;
    position: relative;
    border-radius: 5px; border: 3px solid transparent;
    background-image: linear-gradient(45deg,#005446,#39003f,#590000),linear-gradient(45deg,#007a65,#7f0e7f,#ff8983);
    background-clip: padding-box,border-box;
    background-origin: border-box,border-box;
} #action-btn::before {
    content: 'News';
    z-index: 1;
    padding: 0.3em 1em;
    position: absolute;
    top: 0; bottom: 0;
    left: 0; right: 0;
    border-radius: 5px;
    color: var(--light); background: var(--dark);
    transition: background-color 1s cubic-bezier(0.05,0,0,1);
} #action-btn:hover::before, #action-btn:focus::before, .action-btn-active::before {
    color: #FFF !important; background: transparent !important;
}

.action-btn-sidebar-fix {
    padding: 0.1em 1em 0.1em 0.3em !important;
} .action-btn-sidebar-fix::before {
    padding: 0.1em 1em 0.1em 0.3em !important;
}

#navbtn {
    z-index: 1;
    position: absolute;
    right: 0;
    display: none;
    font-size: 2rem;
    border: none;
    color: var(--light); background: transparent;
} .navbtn-fix {
    position: absolute;
    top: 0; right: 0;
    color: var(--dark) !important;
    transition: all 0.2s;
}

.sidebar {
    padding: 1.5em;
    position: absolute;
    top: calc(-100vh - 1.5em); left: -1.5em;
    width: 100vw; height: 100vh;
    display: flex; flex-direction: column;
    align-items: flex-start;
    background: var(--light);
    transition: all 0.2s;
} .sidebar > li {
    margin-bottom: 2em;
} .sidebar > li:first-child {
    margin-top: 3em;
} .sidebar > li:last-child {
    margin-bottom: unset;
} .sidebar > li > a {
    font-size: 2.3rem; font-weight: 700;
    text-decoration: none;
    color: var(--primary-alt);
} .sidebar > li > a:hover {
    color: var(--secondary);
} .sidebar-off {
    top: calc(-100vh - 1.5em) !important;
    opacity: 0;
} .sidebar-on {
    top: -1.5em !important;
    opacity: 1;
}

.nav-fix {
    background: #000 !important;
    transition: all 0.2s;
} .navbar-fix {
    position: static !important;
    transition: all 0.2s;
} .title-fix {
    font-size: 1.3rem !important;
    color: var(--light) !important;
    transition: all 0.2s;
}

#header1 {
    background-image: url(../images/pitch.jpeg);
    background-size: cover; background-position: center;
    background-repeat: no-repeat;
    border-bottom: 3px solid var(--default);
} #header2 {
    max-width: 100%;
    position: relative;
    background-image: url(../images/lights.jpeg);
    background-size: cover; background-position: center;
    background-attachment: fixed;
    background-repeat: no-repeat;
    border-bottom: 3px solid var(--default);
} #header2::before {
    content: '';
    position: absolute;
    top: 0; bottom: 0;
    left: 0; right: 0;
    background: rgba(0, 0, 0, 0.7);
} header {
    position: relative;
    height: 700px;
} header > img {
    position: absolute;
    bottom: 0; right: 5%;
    width: 400px;
    filter: saturate(115%) brightness(90%) contrast(110%);
}

#footer {
    background: #0C0D13;
    border-top: 3px solid var(--success);
} footer {
    padding: 1.5em;
    min-height: 100px;
    display: flex; flex-direction: row;
    align-items: center; justify-content: space-between;
} footer > p {
    font-size: 1rem; font-weight: 300;
    color: var(--light);
} footer > p > a {
    font-size: 1rem; font-weight: 700;
    text-decoration: none !important;
    color: var(--success);
} footer > ul {
    display: flex; flex-direction: row;
} footer > ul > li {
    margin-right: 1.5em;
} footer > ul > li:last-child {
    margin-right: unset;
} footer > ul > li > a {
    font-size: 1.2rem;
    color: var(--light);
} footer > ul > li > a:hover {
    color: var(--primary-alt);
}

.section-title {
    font-size: 1.9rem; font-weight: 700;
}

#about {
    background: #000;
    background-image: url(../images/spotlight.jpeg);
    background-size: cover; background-position: center;
    background-repeat: no-repeat;
    border-bottom: 3px solid var(--default);
} .about {
    padding: 3em 1.5em;
    min-height: 700px;
    display: flex; flex-direction: column;
    align-items: flex; justify-content: center;
} .about > .section-title {
    color: var(--light);
} .about > .row {
    margin-top: 3em;
} .about > .row > p {
    position: relative;
    display: block;
    width: 45%;
    align-self: flex-start; text-align: justify;
    font-size: 1.1rem; line-height: 2em;
    color: var(--light);
} .about > .row > img {
    width: 50%;
    border-radius: 5px;
    filter: drop-shadow(-10px 10px 0.3rem #000);
}

#career {
    overflow: hidden;
    position: relative;
    background-image: linear-gradient(45deg,#005446,#39003f,#005446),linear-gradient(45deg,#007a65,#7f0e7f,#ff8983);
} .career {
    z-index: 0;
    padding: 3em 1.5em;
    position: relative;
    min-height: 700px;
    display: flex; flex-direction: column;
    align-items: flex-start; justify-content: center;
} .career > .section-title {
    z-index: 1;
    margin: auto;
    position: relative;
    padding: 0.3em 1em;
    border-radius: 5px; border: 3px solid var(--success);
    color: var(--light);
    background-image: linear-gradient(45deg,#005446,#39003f,#590000),linear-gradient(45deg,#007a65,#7f0e7f,#ff8983);
} .career > .section-title::before {
    content: '';
    z-index: -1;
    position: absolute;
    top: 0; bottom:0;
    left: 0; right: 0;
    display: grid; place-items: center;
    background: rgba(0, 0, 0, 0.75);
} .timeline {
    margin-top: 3em;
    position: relative;
    width: 100%;
} .timeline::after {
    content: '';
    margin-left: -1px;
    position: absolute;
    top: -162px; left: 50%; bottom: -50px;
    width: 2px;
    background: var(--success);
} .event {
    width: 50%;
    position: relative;
} .event::before {
    content: '';
    z-index: 1;
    width: 40px; height: 2px;
    position: absolute;
    top: calc(50% - 1px); right: 8px;
    background: var(--success);
} .event::after {
    content: '';
    z-index: 1;
    width: 16px; height: 16px;
    position: absolute;
    top: calc(50% - 8px); right: -8px;
    border-radius: 15px; border: 2px solid var(--success);
    background: #FFF;
} .event.left {
    padding-right: 1.5em;
    left: 0;
} .event.right {
    padding-left: 1.5em;
    left: 50%;
} .event.right::before {
    left: 8px;
} .event.right::after {
    left: -8px;
} .event .date {
    position: absolute;
    top: calc(50% - 10px);
    font-size: 0.9rem; font-weight: 700;
    text-align: center; letter-spacing: 1px;
    color: var(--success);
} .event.left .date {
    right: -105px;
} .event.right .date {
    left: -105px;
} .event > .content {
    padding: 1.5em;
    position: relative;
    display: flex; flex-direction: row;
    align-items: center; justify-content: space-between;
    border-radius: 5px 25px 25px 5px; box-shadow: 0 0 3px 1px #999;
    background: #F6D155;
} .event.right .content {
    padding: 1.5em;
    flex-direction: row-reverse;
    justify-content: flex-end;
    border-radius: 25px 5px 5px 25px;
} .event.right > .content > span{
    margin-left: 1.5em;
} .event > .content > img{
    padding: 0.3em;
    width: 50px; height: 50px;
    border-radius: 15px; border: 2px solid var(--success);
    background: var(--light);
} .event > .content > span > h2 {
    font-size: 1.2rem; font-weight: 700;
    color: var(--success);
} .event > .content > span > p {
    font-size: 1rem;
} .event > .position {
    position: absolute;
    top: -2em;
    font-size: 0.9rem;
    color: var(--success); background: transparent;
} .event.left > .position {
    left: 5px;
} .event.right > .position {
    right: 5px;
}

#trophies {
    background: var(--primary);
    border-top: 3px solid var(--default);
    border-bottom: 3px solid var(--default);
} .trophies {
    padding: 3em 1.5em;
    min-height: 700px;
    position: relative;
    display: flex; flex-direction: column;
    align-items: flex-start; justify-content: center;
} .trophies > .section-title {
    color: var(--light);
} .trophies > .row {
    margin-top: 3em;
    justify-content: space-around;
} .trophies > .row:last-of-type {
    margin-top: 7.5em;
    margin-bottom: 3em;
} 

.card {
    padding-left: 1em;
    position: relative;
    width: 30%; max-width: 500px;
    min-height: 250px;
    border-left: 1px solid var(--success);
} .card > h3 {
    margin-bottom: 2.5em;
    font-weight: 600;
    color: var(--success);
} .card > ul {
    margin-left: 1em;
} .card > ul > li {
    margin-bottom: 1em;
    font-family: 'Bungee Hairline', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
    font-size: 1.1rem; font-weight: 600;
    color: var(--light);
} .card > ul > li:last-child {
    margin-bottom: unset;
} .card::before {
    content: '';
    margin-right: 1em;
    position: absolute;
    top: 0; bottom: -3em;
    left: 0; right: 0;
} .card.c1::before {
    margin-top: 3em;
    background-image: url('../images/caf-cup.png');
    background-size: 70px 100%;
    background-repeat: no-repeat;
    background-position: right;
    filter: drop-shadow(-15px 10px 0.75rem #000);
} .card.c2::before {
    margin-top: 3em;
    position: absolute;
    right: -0.8em;
    background-image: url('../images/tunisian-super-cup.png');
    background-size: 105px 100%;
    background-repeat: no-repeat;
    background-position: right;
    filter: drop-shadow(-15px 10px 0.75rem #000);
} .card.c3::before {
    margin-top: 3em;
    background-image: url('../images/tunisian-cup.png');
    background-size: 80px 100%;
    background-repeat: no-repeat;
    background-position: right;
    filter: drop-shadow(-15px 10px 0.75rem #000);
} .card.c4::before {
    margin-top: 3em;
    background-image: url('../images/caf-confederation-cup.png');
    background-size: 95px 100%;
    background-repeat: no-repeat;
    background-position: right;
    filter: drop-shadow(-15px 10px 0.75rem #000);
} .card.c5::before {
    margin-top: 3em;
    background-image: url('../images/botola-pro-cup.webp');
    background-size: 180px 100%;
    background-repeat: no-repeat;
    background-position: right;
    filter: drop-shadow(-15px 10px 0.75rem #000);
}

#achievements {
    position: relative;
    background-color: #000;
    background-image: url('../images/mouine-chaabani.jpg');
    background-size: 1500px 100%; background-position: center;
    background-repeat: repeat-x;
    border-bottom: 3px solid var(--default);
} #achievements::before {
    content: '';
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(12, 13, 19, 0.95);
} .achievements {
    padding: 3em 1.5em;
    min-height: 700px;
    position: relative;
    display: flex; flex-direction: column;
    align-items: flex-start; justify-content: center;
} .achievements > .section-title {
    color: var(--light);
} .achievements > .row {
    margin-top: 3em;
} .achievements > .row > .stats {
    width: 30%; height: 250px;
    display: flex; flex-direction: column;
    align-items: center; justify-content: flex-start;
} .achievements > .row > .stats > span {
    text-shadow: 2px 2px var(--success);
} .achievements > .row > .stats > span > b {
    display: inline;
    font-size: 7rem;
    color: var(--default);
} .achievements > .row > .stats > span > p {
    display: inline;
    font-size: 2rem;
    color: var(--default);
} .achievements > .row > .stats > p {
    display: block;
    max-width: 250px;
    font-size: 1.1rem; font-weight: 600;
    text-align: center; letter-spacing: 1px;
    color: var(--success);
}

#contact {
    background: var(--light);
} .contact {
    padding: 3em 1.5em;
    min-height: 700px;
    display: flex; flex-direction: column;
    align-items: flex-start; justify-content: center;
} .contact > .row {
    height: 500px;
}

.info {
    padding: 3em 1.5em;
    position: relative;
    width: 40%; height: 100%;
    min-width: 325px;
    display: flex; flex-direction: column;
    border-radius: 3px 0 0 3px; border: 1px solid #CCC; border-right: none;
    background: var(--primary);
} .info > h1 {
    margin-bottom: 1.5em;
    color: var(--light);
} .info > li {
    margin-bottom: 2.5em;
    color: var(--light);
} .info > li:last-child {
    margin-bottom: unset;
} .info > li > a {
    color: var(--light);
} .info > li > a:hover {
    color: var(--success);
}

.contact-form {
    padding: 3em 1.5em;
    position: relative;
    width: 60%; height: 100%;
    display: flex; flex-direction: column;
    border-radius: 0 3px 3px 0; border: 1px solid #CCC; border-left: none;
    background: #FFF;
} .contact-form > h1 {
    margin-bottom: 1.5em;
} .contact-form > span {
    margin-bottom: 2em;
    width: 100%;
    display: flex; flex-direction: row;
    align-items: center; justify-content: space-between;
} .contact-form > span > input, .contact-form > input {
    padding: 0.3em 0.5em;
    width: 48%;
    font-size: 1rem;
    border: unset; border-radius: unset; border-bottom: 1px solid #CCC;
    transition: linear 0.2s;
} .contact-form > span > input:focus, .contact-form > input:focus {
    border-bottom: 1px solid var(--primary-alt);
} .contact-form > textarea {
    margin-top: 2.5em;
    height: 150px;
    font-size: 1rem;
    border: unset; border-radius: unset; border-bottom: 1px solid #CCC;
    transition: linear 0.2s;
} .contact-form > textarea:focus {
    border-bottom: 1px solid var(--primary-alt);
} .contact-form > button {
    margin-top: 2.5em;
    padding: 0.5em 0;
    font-size: 1rem; font-weight: 600;
    letter-spacing: 1px;
    border-radius: 3px;
    color: var(--light); background: var(--primary);
    transition: linear 0.2s;
} .contact-form > button:hover, .contact-form > button:focus {
    color: #FFF; background: var(--primary-alt);
}

.empty {
    width: 100%;
    display: grid; place-items: center;
} .empty > img {
    padding: 0 1em;
    margin-bottom: 1.5em;
    width: 350px;
} .empty > h1 {
    letter-spacing: 3px;
    font-size: 2rem; font-weight: 700;
    color: #7E7E7E;
}

#news {
    background: var(--light);
} .news {
    padding: 3em 1.5em;
    min-height: calc(100vh - 700px);
} .news > .section-title {
    font-size: 2.3rem;
    margin-bottom: 1.5em;
    color: var(--dark);
} .news > .row {
    align-items: flex-start;
    justify-content: flex-start;
    flex-wrap: wrap;
    gap: 2em 3.5%;
}

.news-card {
    width: 100px;
    flex-basis: 31%;
    box-shadow: 0 0 15px 3px #CCC;
    direction: rtl;
} .news-card > a {
    text-decoration: none !important;
} .news-card > a > div {
    width: 100%;
    overflow: hidden;
} .news-card > a > div > img, .news-card > a > div > video {
    width: 100%; height: 300px !important;
    border-radius: 3px 3px 0 0;
    object-fit: cover;
    transition: transform 0.2s ease;
} .news-card > a > div > img:hover, .news-card > a > div > video:hover {
    transform: scale(1.2);
} .news-card > a > span {
    padding: 1.5em 1em;
    height: 235px;
    display: flex; flex-direction: column;
    border-radius: 0 0 3px 3px;
    background: #FFF;
} .news-card > a > span > h1 {
    margin-bottom: 0.3em;
    font-size: 1.2rem; font-weight: 700;
    color: var(--primary);
} .news-card > a > span > p {
    direction: ltr;
    text-align: right;
    margin-bottom: 1em;
    font-size: 0.8em;
    color: var(--primary-alt);
} .news-card > a > span > pre {
    font-size: 0.9rem;
    white-space: pre-wrap;
    color: var(--default);
}

.some-news {
    width: 65%;
    display: flex; flex-direction: column;
    direction: rtl;
} .some-news > img, .some-news > video {
    margin-bottom: 1em;
    border-radius: 3px;
} .some-news > h1 {
    margin-bottom: 0.3em;
    font-size: 1.8rem; font-weight: 700;
    color: var(--dark);
} .some-news > p {
    direction: ltr;
    text-align: right;
    font-size: 0.8em;
    color: var(--primary-alt);
} .some-news > pre {
    margin: 2.5em 0;
    white-space: pre-wrap;
    text-align: justify;
} .some-news > .link {
    font-size: 1rem;
    color: var(--secondary);
}

.share {
    display: flex; flex-direction: row;
    align-items: center; justify-content: flex-start;
    direction: ltr;
} .share > #facebook-btn {
    margin-right: 1em;
    padding: 0.4em 0;
    width: 80px;
    font-size: 0.75rem;
    text-align: center; text-decoration: none;
    border-radius: 3px; border: 1px solid #CCC;
    color: var(--light);
    transition: linear 0.2s;
} .share > #twitter-btn {
    padding: 0.6em 0;
    width: 80px;
    font-size: 0.75rem;
    text-align: center; text-decoration: none;
    border-radius: 3px; border: 1px solid #CCC;
    color: #FFF;
    transition: linear 0.2s;
    margin-right: 1.5em;
} .share > #facebook-btn {
    background: #1877F2;
} .share > #twitter-btn {
    background: #1DA1F2;
}

.latest-news {
    width: 30%;
} .latest-news > h3 {
    margin-bottom: 1.5em;
    font-size: 1.1rem; font-weight: 600;
} .latest-news-list {
    padding: 0 0.3em;
    display: flex; flex-direction: column;
    direction: rtl;
} .latest-news-list > li {
    padding-top: 1.5em;
    margin-bottom: 1.5em;
    border-top: 1px solid #CCC;
} .latest-news-list > li:last-child {
    margin-bottom: unset;
} .latest-news-card {
    display: flex; flex-direction: row;
    align-items: flex-start; justify-content: space-between;
    text-decoration: none !important;
} .latest-news-card > img, .latest-news-card > video {
    width: 20%; height: 50px;
    object-fit: cover;
    border-radius: 1px;
} .latest-news-card > span {
    width: 75%;
} .latest-news-card > span > h1 {
    margin-bottom: 0.3em;
    font-size: 1.1rem; font-weight: 600;
    color: var(--dark);
} .latest-news-card > span > p {
    direction: ltr;
    text-align: right;
    font-size: 0.8em;
    color: var(--primary-alt);
}

@media screen and (max-width: 840px) {
    .title > h1 { font-size: 5rem; }

    .navbar {
        display: none;
    } #navbtn {
        display: block;
    }

    .row {
        flex-direction: column;
    } .row > * {
        margin-bottom: 2.5em;
        width: 100% !important;
    } .row > *:last-child {
        margin-bottom: unset;
    }


    footer {
        flex-direction: column-reverse;
        align-items: flex-start; justify-content: center;
    } footer > ul {
        margin-bottom: 1em;
    }

    .about > .row > img { filter: drop-shadow(0 0 0.3rem #000); }

    .career > .section-title {
        margin: unset; margin-right: auto;
    } .timeline{
        margin-bottom: 0;
    } .timeline::after {
        top: -158px; left: 90px;
    } .event {
        margin-top: 3em;
        width: 100%;
    } .event.left, .event.right {
        padding-left: 6.9em; padding-right: 0;
        left: 0%;
    } .event.left::before, .event.right::before {
        left: 98px;
        width: 25px;
    } .event.left::after, .event.right::after {
        left: 82px;
    } .event.left .date, .event.right .date {
        top: calc(50% - 8px); left: 0; right: unset;
    } .event.left .content, .event.right .content {
        padding: 0.75em;
        flex-direction: row-reverse;
        justify-content: flex-end;
        border-radius: 25px 5px 5px 25px;
    } .event.left > .content > span, .event.right > .content > span{
        margin-left: 0.75em;
    } .event > .content > span > h2 {
        font-size: 0.85rem;
    } .event > .content > span > p {
        font-size: 0.65rem; 
    } .event> .content > img{
        width: 35px; height: 35px;
    } .event> .date{
        font-size: 0.7rem;
    } .event.left > .position, .event.right > .position {
        left: unset; right: 5px;
        font-size: 0.6rem;
    }

    .card{ margin-bottom: 5em !important; }
  
    .card.c5::before {
        background-position: calc(100% + 25px) center;
    }

    .contact > .row {
        height: fit-content;
    } .contact > .row > * {
        margin-bottom: unset;
    } .contact > .row > .info {
        padding: 3em 1.5em;
        border-radius: 3px 3px 0 0; border: 1px solid #CCC; border-bottom: unset;
    } .contact > .row > form {
        padding: 3em 1.5em;
        border-radius: 0 0 3px 3px; border: 1px solid #CCC; border-top: unset;
    }
}

@media screen and (max-width: 445px) {
    .title > h1 { font-size: 2.5rem; }

    header {
        height: 550px;
    } header > img {
        width: 300px;
        right: 3%;
    }

    .section-title { font-size: 1.4rem; }

    .timeline::after { top: -145px; }
    
    .info > li { font-size: 0.8rem; }
}
