@font-face {
    font-family: "foqha";
    src: url("../fonts/foqha.ttf");
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Open Sans", sans-serif;
}

*::-webkit-scrollbar {
    display: none;
}

* {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

body {
    background-color: #e8e1cc;
}

body.page-body {
    background-color: #FFF9E6;
}

header {
    position: relative;
    border: 10px solid #FFF9E6;
    background-color: #FFF9E6;
}

header img,
header video {
    width: 100%;
    height: calc(100dvh - 30px);
    object-fit: cover;
    border-radius: 0 0 60px 60px;
    z-index: 100;
    position: relative;
    object-position: top;
}

header .header-sound {
    position: absolute;
    right: 6%;
    top: 0;
    z-index: 101;
    padding: 6px;
    border-radius: 0 0 30px 30px;
    background-color: #FFF9E6;
}

header .header-sound i {
    font-size: 20px;
}

header .header-overlay {
    position: absolute;
    inset: 0;
    z-index: 100;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.3) 65%, rgba(0, 0, 0, 1) 100%);
    border-radius: 0 0 60px 60px;
}

header .header-title {
    font-family: "Foqha", sans-serif;
    position: absolute;
    bottom: 10%;
    color: #FFF9E6;
    z-index: 101;
    font-size: 120px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    text-align: center;
    line-height: 0.8;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.header-title span {
    font-size: 20px;
    font-family: "Open Sans", sans-serif;
}

.header-title a {
    font-size: 14px;
    font-family: "Open Sans", sans-serif;
    background-color: #FFF9E6;
    color: #010302;
    width: fit-content;
    text-decoration: none;
    padding: 10px 22px;
    border-radius: 8px;
    position: relative;
    font-weight: 700;
    transition: all .2s ease-in-out;
    z-index: 101;
}

.header-title a:hover {
    transform: translateY(4px);
    color: #FFF9E6;
    background-color: #2b281f;
}

.header-logo {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    height: 160px;
    background-color: #FFF9E6;
    z-index: 101;
    border-radius: 0 0 100px 100px;
}

.header-logo img {
    width: 100%;
    height: 100%;
    filter: invert(1);
}

.apply-form-header.header-logo {
    background-color: #e8e1cc;
    width: 160px;
    height: 170px;
    padding-block: 10px;
}

.apply-form-header.header-logo img {
    width: 160px;
    height: 160px;
}

main {
    padding-bottom: 60px;
    background-color: #FFF9E6;
    border-radius: 0 0 60px 60px;
    z-index: 100;
}

main > section:not(:first-child) {
    margin-top: 60px;
    padding-inline: 10%;
}

.page-body main {
    margin-top: 130px;
    margin-bottom: 0;
}

section {
    margin-top: 30px;
}

section .section-title {
    font-family: "foqha", "Open Sans", sans-serif;
    font-size: 60px;
    color: #010302;
    line-height: 0.7;
}

@media screen and (max-width: 760px) {
    section .section-title {
        line-height: 0.8;
    }
}

section .section-title span {
    font-family: "foqha", "Open Sans", sans-serif;
    font-size: 60px;
    color: #BA0001;
}

section p {
    font-size: 20px;
}

.announcements-section {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.announcement {
    background-color: #e8e1cc;
    border-radius: 10px;
    width: 100%;
    border: 10px solid #e8e1cc;
    display: flex;
}

.announcement:first-child {
    border-top-left-radius: 30px;
    border-top-right-radius: 30px;
}

.announcement:last-child {
    border-bottom-left-radius: 30px;
    border-bottom-right-radius: 30px;
}

.announcement-thumb {
    flex: 0 0 30%;
    position: relative;
}

.announcement-thumb::after {
    content: '';
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border-radius: 10px 0 0 10px;
    background: linear-gradient(90deg, rgba(232, 225, 204, 0) 55%, rgba(232, 225, 204, 1) 100%);
}

.announcement-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 10px 0 0 10px;
}

.announcement:first-child .announcement-thumb::after,
.announcement:first-child .announcement-thumb img {
    border-top-left-radius: 30px;
    border-top-right-radius: 30px;
}

.announcement:last-child .announcement-thumb::after,
.announcement:last-child .announcement-thumb img {
    border-bottom-left-radius: 30px;
    border-bottom-right-radius: 30px;
}

@media screen and (max-width: 800px) {
    .announcement {
        flex-direction: column;
    }

    .announcement:first-child .announcement-thumb img {
        background-color: #e8e1cc;
        border-radius: 30px 30px 0 0 !important;
    }

    .announcement-thumb::after {
        background: linear-gradient(180deg, rgba(232, 225, 204, 0) 55%, rgba(232, 225, 204, 1) 100%);
    }
}

.announcement-content {
    padding: 20px;
}

.announcement-content .announcement-title {
    font-family: "Open Sans", sans-serif;
    font-weight: bold;
    font-size: 28px;
}

.announcement-content .announcement-details {
    font-size: 18px;
}

.jury-section {
    position: relative;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 220px!important;
    row-gap: 200px;
}

.jury-section .section-title {
    position: absolute;
    top: -160px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 200px;
    color: #e8e1cc;
}

.jury-section .jury {
    flex: 0 0 calc(calc(100% - 60px) / 3);
    background-color: #e8e1cc;
    border-radius: 10px 10px 30px 30px;
    min-height: 240px;
    display: flex;
    flex-direction: column;
    position: relative;
    flex-wrap: wrap;
    width: 100%;
}

@media screen and (max-width: 800px) {
    .jury-section .jury {
        flex: 0 0 calc(calc(100% - 60px) / 2);
    }
}


.jury-title {
    font-family: "foqha", "Open Sans", sans-serif;
    text-align: center;
    font-size: 50px;
    line-height: 0.8;
    color: #494333;
    margin-top: auto;
    margin-bottom: 10px;
    z-index: 101;
    text-transform: uppercase;
}

.jury-title span {
    width: 0px;
    height: 0px;
    opacity: 0;
    display: inline-block;
}

.jury-image {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    position: absolute;
    bottom: 60px;
}

.jury-image img {
    width: 100%;
    max-height: 400px;
    max-width: calc(100vw / 3);
    mask-image: linear-gradient(black 70%, transparent 100%);
}

.gallery-section {
    margin-top: 60px;
}

.gallery-section .section-title {
    text-align: center;
    font-size: 200px;
    color: #e8e1cc;
}

.gallery {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}

.gallery .gallery-image {
    border: 10px solid #e8e1cc;
    border-radius: 10px;
    background-color: #e8e1cc;
}

.gallery .gallery-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 10px;
}

@media screen and (min-width: 760px) {

    .gallery-image:first-child img,
    .gallery-image:first-child {
        border-top-left-radius: 30px;
    }

    .gallery-image:nth-child(3) img,
    .gallery-image:nth-child(3) {
        border-top-right-radius: 30px;
    }

    .gallery-image:last-child img,
    .gallery-image:last-child {
        border-bottom-right-radius: 30px;
    }

    .gallery-image:nth-last-child(3) img,
    .gallery-image:nth-last-child(3) {
        border-bottom-left-radius: 30px;
    }
}

@media screen and (max-width: 760px) {
    .gallery {
        grid-template-columns: repeat(2, 1fr);
    }

    .gallery-image:first-child img,
    .gallery-image:first-child {
        border-top-left-radius: 30px;
    }

    .gallery-image:nth-child(2) img,
    .gallery-image:nth-child(2) {
        border-top-right-radius: 30px;
    }

    .gallery-image:last-child img,
    .gallery-image:last-child {
        border-bottom-right-radius: 30px;
    }

    .gallery-image:nth-last-child(2) img,
    .gallery-image:nth-last-child(2) {
        border-bottom-left-radius: 30px;
    }
}

@media screen and (max-width: 500px) {
    .gallery {
        grid-template-columns: 1fr;
    }

    .gallery-image:first-child img,
    .gallery-image:first-child {
        border-top-left-radius: 30px;
    }

    .gallery-image:nth-child(1) img,
    .gallery-image:nth-child(1) {
        border-top-right-radius: 30px;
    }

    .gallery-image:last-child img,
    .gallery-image:last-child {
        border-bottom-right-radius: 30px;
    }

    .gallery-image:nth-last-child(1) img,
    .gallery-image:nth-last-child(1) {
        border-bottom-left-radius: 30px;
    }
}

footer {
    background-color: #e8e1cc;
    display: flex;
    align-items: center;
    justify-content: center;
    padding-block: 30px;
    flex-direction: column;
    gap: 20px;
}

footer img {
    width: 100%;
    max-width: 300px;
}

.footer-signature {
    font-size: 12px;
    color: #635d4c;
    text-align: center;
}

.footer-signature a {
    text-decoration: none;
    color: #2b281f;
    font-weight: 500;
}

.footer-socials {
    position: relative;
    display: flex;
    gap: 6px;
}

.footer-socials::before {
    content: '';
    display: block;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 300%;
    max-width: 80vw;
    height: 4px;
    background-color: #c8c0a7;
    border-radius: 8px;
}

.footer-socials a {
    background-color: #e8e1cc;
    z-index: 100;
    display: block;
    padding: 6px;
    text-decoration: none;
    color: #756f5b;
    transition: all .1s ease-in-out;
}

.footer-socials a:hover {
    color: #2b281f;
}

.preloader {
    position: fixed;
    inset: 0;
    z-index: 10000;
    background-color: #e8e1cc;
    transition: all .2s ease-in-out;
}

.preloader img {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    filter: invert(1);
    width: 100%;
    max-width: 300px;
    transition: all .5s ease-in-out;
}

.preloader.load img {
    width: 160px;
    top: 10px;
    transform: translate(-50%, 0);
}

.preloader.loaded {
    background-color: transparent;
}

.preloader.loaded img {
    opacity: 0;
}

.sponsors-section {
    display: flex;
    gap: 10px;
    align-items: center;
    padding-bottom: 10px;
    background-color: #e8e1cc;
    margin-inline: 10px;
    margin-top: 0;
    padding-top: 80px;
    transform: translateY(-80px);
    z-index: 1;
    position: relative;
    border-radius: 0 0 60px 60px;
}

.sponsors-section .sponsor {
    flex: 1 1 0;
    background-color: #e8e1cc;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding-block: 20px;
    max-height: 100px;
}

.sponsors-section:not(:has(.sponsor:nth-child(2))) {
    justify-content: center;
}

.sponsors-section:not(:has(.sponsor:nth-child(2))) .sponsor {
    max-width: 300px;
}

.sponsors-section .sponsor img {
    width: 80%;
    height: 45px;
    object-fit: contain;
}

.sponsors-section .sponsor:first-child {
    border-top-left-radius: 30px;
    border-bottom-left-radius: 30px;
}

.sponsors-section .sponsor:last-child {
    border-top-right-radius: 30px;
    border-bottom-right-radius: 30px;
}

/* APPLY FORM PAGE */

@media screen and (min-height: 700px) {
    body.page-body:not(.admin-page) {
        overflow: hidden;
    }
}

.apply-form-nav {
    list-style-type: none;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.apply-form-nav li {
    display: flex;
    align-items: center;
    color: #635d4c;
    font-weight: 600;
    gap: 10px;
    padding: 4px 20px 4px 4px;
    border-radius: 30px;
    transition: all .2s ease-in-out;
    cursor: default;
}

.apply-form-nav li span {
    background-color: #e8e1cc;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    font-weight: bolder;
    font-size: 20px;
    color: #635d4c;
    transition: all .2s ease-in-out;
}

.apply-form-nav li:hover,
.apply-form-nav li.active {
    background-color: #e8e1cc;
}

.apply-form-nav li.active span,
.apply-form-nav li:hover span {
    background-color: #FFF9E6;
}

.apply-form-main {
    margin-top: 20px;
    max-width: 800px;
    width: 100%;
    height: 360px;
    margin-inline: auto;
    overflow: hidden;
}

.apply-form-steps {
    width: calc(100% * var(--step));
    display: flex;
    transition: margin .2s ease-in-out;
}

.apply-form-step {
    overflow-y: scroll;
    width: 100%;
    height: 100%;
    max-height: 360px;
    max-width: 800px;
}

.apply-form-footer {
    width: 100%;
    max-width: 800px;
    margin-inline: auto;
    margin-top: 20px;
}

.apply-form-btns {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: auto;
}

.apply-form-btns button {
    background-color: #e8e1cc;
    color: #494333;
    font-weight: bold;
    cursor: pointer;
    border: none;
    outline: none;
    padding: 8px 30px;
    border-radius: 30px;
}

.apply-form-btns button:disabled {
    opacity: 0.4;
    cursor: default;
}

.form-element {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 4px;
    margin-bottom: 16px;
}

.form-element input,
.form-element textarea,
.form-element select {
    background-color: #e8e1cc;
    border: none;
    outline: none;
    padding: 12px 20px;
    border-radius: 6px;
    font-size: 14px;
    resize: none;
}

.form-element label {
    color: #494333;
    font-weight: 500;
}


.apply-form-step .form-sartname-check {
    margin-block: 12px;
    width: 100%;
    background-color: #e8e1cc;
    padding: 12px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.apply-form-step .form-sartname-check input {
    accent-color: #756f5b;
    width: 20px;
    height: 20px;
}

.apply-form-step .form-sartname-check label {
    width: 100%;
    height: 100%;
}

.tx-center {
    text-align: center;
}

@media screen and (max-width: 480px) {
    header .header-title {
        font-size: 80px;
    }

    .gallery-section .section-title,
    .jury-section .section-title {
        font-size: 120px;
    }
}