/*==================================================
    XD DESIGN LDA
    ZÉNITE OLYMPIADS
    MODERN VERSION — STRUCTURE PRESERVED
==================================================*/


/* =========================================================
   GLOBAL
   ========================================================= */

:root {
    --blue: #2ba7e4;
    --blue-dark: #087db8;
    --blue-deep: #032044;

    --gold: #d4af37;
    --gold-light: #f4d03f;

    --white: #ffffff;
    --black: #101828;
    --text: #344054;
    --muted: #667085;

    --background: #f8fafc;
    --border: #e4e7ec;

    --radius: 16px;

    --shadow-soft: 0 4px 15px rgba(0, 0, 0, 0.07);
    --shadow-hover: 0 10px 25px rgba(0, 0, 0, 0.12);

    --transition: 0.25s ease;
}

{
    box-sizing: border-box;
}


html,
body {
    margin: 0;
    padding: 0;

    max-width: 100%;

    scroll-behavior: smooth;
}


body {
    font-family: "Roboto", sans-serif;

    color: var(--text);

    background: var(--white);

    line-height: 1.6;
}


img {
    max-width: 100%;
}





/* ==============================
   VIDEO BACKGROUND
================================ */

.video-background {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100vh;
    overflow: hidden;
    z-index: -10;
}

.video-background video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.video-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 20, 45, 0.45);
    z-index: 1;
}

/* =========================================================
   HEADER
   ========================================================= */

.header-zone {
    background: #2ba7e4;

    display: grid;

    grid-template-columns: 1fr auto 1fr;

    align-items: center;

    padding: 10px 20px;

    border-bottom: 1px solid var(--border);

    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.04);
}


.header-zone img {
    justify-self: start;

    display: block;

    width: 110px;
    height: 90px;

    object-fit: contain;
}


.header-zone h1 {
    justify-self: center;

    text-align: center;

    color: white;

    font-size: 35px;

    margin: 0;

    font-weight: 800;

    letter-spacing: -0.5px;
}


.btn {
    display: block;

    margin: 10px 70px 10px 10px;

    padding: 9px 16px;

    background: #00ff4e;

    color: var(--white);

    text-decoration: none;

    border-radius: 50px;

    font-weight: bold;

    justify-self: end;

    font-size: 15px;

    box-shadow: 0 4px 12px rgba(43, 167, 228, 0.20);

    transition: var(--transition);
}

#languageToggle{
display: block;
    margin: 10px 70px 10px 10px;

    padding: 9px 16px;

    color: var(--white);

    border-radius: 50px;

    font-weight: bold;

    font-size: 15px;

    box-shadow: 0 4px 12px rgba(43, 167, 228, 0.20);
}

.btn:hover {
    background: #00fff7;

    transform: translateY(-2px);

    box-shadow: 0 7px 18px rgba(43, 167, 228, 0.25);
}


.btn h3 {
    margin: 0;
}


/* =========================================================
   NAVBAR
   ========================================================= */

.navbar {
    display: flex;

    position: relative;

    justify-content: center;

    align-items: center;

    flex-wrap: wrap;

    gap: 70px;

    background: linear-gradient(
	90deg,
	#8C6A00 0%,
	#C99A1A 20%,
	#F4D03F 50%,
	#D4AF37 75%,
	#8C6A00 100%
	);

    padding: 4px 2px;

    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.08);
}


.navbar a {
    text-decoration: none;

    color: white;

    transition: var(--transition);

    border-radius: 8px;

    padding: 3px 8px;
}


.navbar a:hover {
    color: #2ba7e4;

    background: rgba(255, 255, 255, 0.14);
}


.navbar h3 {
    margin: 0;

    font-size: 20px;

    font-weight: 600;
}


/* =========================================================
   HAMBURGER MENU
   ========================================================= */

.hamburger {
    display: none;

    background: transparent;

    border: none;

    cursor: pointer;

    padding: 8px;

    width: 45px;
    height: 45px;

    flex-direction: column;

    justify-content: center;

    align-items: center;

    gap: 5px;
}


.hamburger span {
    display: block;

    width: 26px;
    height: 3px;

    background: var(--white);

    border-radius: 3px;

    transition: 0.3s;
}


/* =========================================================
   DROPDOWN MENU
   ========================================================= */

.dropdown {
    position: relative;

    display: inline-block;

    color: white;
}


.dropbtn {
    cursor: pointer;
}


.dropdown-content {
    display: none;

    position: absolute;

    top: 100%;
    left: 0;

    min-width: 220px;

    background: var(--white);

    border: 1px solid var(--border);

    border-radius: 12px;

    overflow: hidden;

    box-shadow: var(--shadow-hover);

    z-index: 999;
}


.dropdown-content a {
    display: block;

    padding: 12px 16px;

    text-decoration: none;

    color: var(--text);

    background: var(--white);

    font-size: 15px;

    border-radius: 0;
}


.dropdown-content a:hover {
    background: #eef8fd;

    color: var(--blue-dark);
}


.dropdown:hover .dropdown-content {
    display: block;
}


/* =========================================================
   BANNER / SLIDESHOW
   ========================================================= */

.banner {
    position: relative;

    width: 100%;

    overflow: hidden;

    margin-bottom: 2em;

    aspect-ratio: 16 / 6;
}


.bannerChildren {
    position: absolute;

    inset: 0;

    width: 100%;
    height: 100%;

    display: flex;

    justify-content: center;

    align-items: center;

    transform: translateX(100%);

    animation: carousel 15s infinite;
}


.bannerChildren img {
    width: 100%;
    height: 100%;

    display: block;

    object-fit: cover;
}


.bannerChildren:nth-child(1) {
    animation-delay: 0s;
}


.bannerChildren:nth-child(2) {
    animation-delay: 5s;
}


.bannerChildren:nth-child(3) {
    animation-delay: 10s;
}


@keyframes carousel {

    0% {
        transform: translateX(100%);
    }

    7%,
    27% {
        transform: translateX(0);
    }

    34%,
    100% {
        transform: translateX(-100%);
    }
}


/* =========================================================
   INTRODUCTION
   ========================================================= */

.intro {
    width: 100%;

    display: flex;

    flex-direction: row;

    align-items: center;

    justify-content: center;

    gap: 40px;

    margin-top: 50px;

    margin-bottom: 50px;

    padding: 40px 20px;
}


.intro video {
    width: 500px;

    max-width: 100%;

    height: 300px;

    background: #ddd;

    border-radius: 16px;

    box-shadow: var(--shadow-soft);
}


.intro-text {
    max-width: 600px;
}


.intro p {
    font-size: 30px;

    line-height: 1.8;

    color: white;
}


/* =========================================================
   COMPETITIONS
   ========================================================= */

.compet {
    width: 100%;

    padding: 40px 20px;

    background: var(--background);
}


#competition {
    text-align: center;

    color: white;

    font-size: 40px;

    font-weight: 800;

    text-shadow: none;

    margin-bottom: 35px;
}


#competition::after {
    content: "";

    display: block;

    width: 50px;
    height: 4px;

    margin: 12px auto 0;

    background: var(--gold);

    border-radius: 10px;
}


.comp {
    display: grid;

    grid-template-columns: repeat(4, 1fr);

    gap: 25px;
}


.comp-card {
    position: relative;

    width: 100%;

    margin-bottom: 20px;

    background: var(--white);

    border: 1px solid var(--border);

    border-radius: 20px;

    overflow: hidden;

    box-shadow: var(--shadow-soft);

    transition:
        transform var(--transition),
        box-shadow var(--transition);
}


.comp-card:hover {
    transform: translateY(-5px);

    box-shadow: var(--shadow-hover);
}


.comp-card img {
    width: 100%;

    height: auto;

    display: block;

    border-radius: 0;
}


.comp-card p {
    line-height: 1.5;

    margin: 0;

    padding: 18px;

    color: var(--text);
    
    background: #d4af37;
}


/* =========================================================
   HEADER IMAGES
   ========================================================= */

.header-img {
    position: relative;
}


.header-img img {
    width: 100%;

    display: block;

    border-radius: 20px;

    box-shadow: var(--shadow-soft);
}


.header-img h1 {
    position: relative;

    top: 20px;
    left: 20px;

    color: var(--blue-deep);
}


/* =========================================================
   LARGE / SPECIAL IMAGE
   ========================================================= */

.spec-img {
    width: 100%;

    display: flex;

    position: relative;

    align-items: center;

    justify-content: center;

    margin-top: 40px;
}


.spec-img img {
    width: 100%;

    height: auto;

    display: block;
}


/* =========================================================
   ICONS
   ========================================================= */

.icons-1 {
    display: flex;

    flex-direction: row;

    gap: 10px;

    position: relative;

    background: var(--white);

    margin: auto;

    align-content: space-between;

    flex-wrap: wrap;
}


/* =========================================================
   FOOTER
   ========================================================= */

.footer-container {
    width: 100%;

    display: flex;

    justify-content: space-between;

    align-items: center;

    gap: 30px;

    padding: 40px 8%;

    background:linear-gradient(
	90deg,
	#8C6A00 0%,
	#C99A1A 20%,
	#F4D03F 50%,
	#D4AF37 75%,
	#8C6A00 100%
	);

    color: var(--white);

    border-top: 4px solid var(--gold);
}


.footer-left,
.footer-center,
.footer-right {
    flex: 1;
}


.footer-left p {
    margin: 12px 0;

    font-size: 20px;
}


.footer-left img {
    width: 20px;
    height: 20px;

    vertical-align: middle;
}


.footer-center {
    display: flex;

    flex-direction: row;

    justify-content: center;

    align-items: center;

    gap: 18px;
}


.footer-center a {
    color: var(--white);

    text-decoration: none;

    font-weight: 600;

    transition: var(--transition);
}


.footer-center a:hover {
    color: var(--gold-light);
}


.footer-center img {
    max-width: 30px;

    height: auto;

    transition: var(--transition);
}


.footer-center a:hover img {
    transform: translateY(-3px);
}


.footer-right {
    display: flex;

    justify-content: flex-end;
}


.footer-right img {
    width: 170px;

    max-width: 100%;

    height: auto;
}


/* =========================================================
   REGISTRATION FORM
   ========================================================= */

.registration {
    width: 70%;

    margin: 60px auto;

    background: var(--white);

    padding: 40px;

    border-radius: 20px;

    border: 1px solid var(--border);

    box-shadow: var(--shadow-md);
}


.registration h2 {
    text-align: center;

    color: var(--blue-deep);

    margin-bottom: 35px;

    font-size: 32px;
}


.form-group {
    display: flex;

    flex-direction: column;

    margin-bottom: 22px;
}


.form-row {
    display: grid;

    grid-template-columns: 1fr 1fr;

    gap: 25px;
}


label {
    margin-bottom: 8px;

    font-weight: 700;

    color: var(--blue-deep);
}


input,
select,
textarea {
    width: 100%;

    padding: 14px;

    border: 1px solid #d5d5d5;

    border-radius: 10px;

    font-size: 16px;

    font-family: inherit;

    color: var(--text);

    background: var(--white);

    transition: var(--transition);
}


input:hover,
select:hover,
textarea:hover {
    border-color: #aab4c0;
}


input:focus,
select:focus,
textarea:focus {
    outline: none;

    border-color: var(--blue);

    box-shadow: 0 0 0 4px rgba(43, 167, 228, 0.12);
}


textarea {
    resize: vertical;
}


button {
    width: 100%;

    padding: 16px;

    border: none;

    border-radius: 50px;

    cursor: pointer;

    font-size: 18px;

    font-weight: bold;

    color: var(--white);

    background: var(--blue);

    transition: var(--transition);

    box-shadow: 0 5px 15px rgba(43, 167, 228, 0.2);
}


button:hover {
    background: var(--blue-dark);

    transform: translateY(-2px);

    box-shadow: 0 9px 22px rgba(43, 167, 228, 0.3);
}



/* =========================================================
   RESPONSIVE DESIGN
   TABLET + MOBILE
   ========================================================= */


/* =========================================================
   TABLET
   601px — 1024px
   ========================================================= */

@media screen and (min-width: 601px) and (max-width: 1024px) {

    /* -----------------------------------------
       GLOBAL
       ----------------------------------------- */

    html,
    body {
        width: 100%;
        max-width: 100%;
        overflow-x: hidden;
    }


    /* -----------------------------------------
       HEADER
       ----------------------------------------- */

    .header-zone {
        grid-template-columns: 100px 1fr auto;

        padding: 8px 20px;

        gap: 15px;

        min-height: 80px;
    }


    .header-zone img {
        width: 85px;
        height: 70px;
    }


    .header-zone h1 {
        font-size: 28px;

        line-height: 1.15;
    }


    /* Register button */

    .header-zone .btn {
        display: none;
    }


    /* Language button */

    #languageToggle {
        margin: 5px;

        padding: 7px 12px;

        font-size: 13px;
    }


    /* -----------------------------------------
       HAMBURGER
       ----------------------------------------- */

    .hamburger {
        display: flex;

        width: 45px;
        height: 45px;

        padding: 6px;

        margin: 0;

        background: transparent;

        border: none;

        box-shadow: none;

        flex-direction: column;

        justify-content: center;

        align-items: center;

        gap: 5px;

        cursor: pointer;
    }


    .hamburger span {
        display: block;

        width: 27px;
        height: 3px;

        background: var(--white);

        border-radius: 3px;

        transition: 0.3s ease;
    }


    /* Hamburger → X */

    .hamburger.active span:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }

    .hamburger.active span:nth-child(2) {
        opacity: 0;
    }

    .hamburger.active span:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }


    /* -----------------------------------------
       NAVBAR
       ----------------------------------------- */

    .navbar {
        display: none;

        width: 100%;

        flex-direction: column;

        align-items: stretch;

        gap: 0;

        padding: 5px 0;
    }


    .navbar.active {
        display: flex;
    }


    .navbar a,
    .navbar .dropdown {
        width: 100%;
    }


    .navbar a {
        display: block;

        padding: 12px 25px;

        border-radius: 0;

        text-align: left;
    }


    .navbar h3 {
        font-size: 17px;
    }


    /* -----------------------------------------
       DROPDOWN
       ----------------------------------------- */

    .dropdown {
        display: block;
    }


    .dropdown-content {
        position: static;

        width: 100%;

        min-width: 0;

        border: none;

        border-radius: 0;

        box-shadow: none;

        background: rgba(255, 255, 255, 0.98);
    }


    /* Disable desktop hover dropdown */

    .dropdown:hover .dropdown-content {
        display: none;
    }


    .dropdown.open .dropdown-content {
        display: block;
    }


    .dropdown-content a {
        padding: 11px 40px;

        font-size: 15px;
    }


    /* -----------------------------------------
       BANNER
       ----------------------------------------- */

    .banner {
        aspect-ratio: 16 / 7;

        margin-bottom: 1.5em;
    }


    /* -----------------------------------------
       INTRO
       ----------------------------------------- */

    .intro {
        gap: 25px;

        margin-top: 35px;

        margin-bottom: 35px;

        padding: 30px 25px;
    }


    .intro video {
        width: 48%;

        height: auto;

        aspect-ratio: 16 / 9;

        object-fit: cover;
    }


    .intro-text {
        width: 52%;

        max-width: none;
    }


    .intro p {
        font-size: 22px;

        line-height: 1.6;

        margin: 0;
    }


    /* -----------------------------------------
       COMPETITIONS
       ----------------------------------------- */

    .compet {
        padding: 35px 25px;
    }


    #competition {
        font-size: 34px;

        margin-bottom: 30px;
    }


    .comp {
        grid-template-columns: repeat(2, 1fr);

        gap: 20px;
    }


    .comp-card {
        margin-bottom: 0;
    }


    .comp-card p {
        padding: 15px;

        font-size: 15px;
    }


    /* -----------------------------------------
       SPECIAL IMAGE
       ----------------------------------------- */

    .spec-img {
        margin-top: 30px;
    }


    /* -----------------------------------------
       FOOTER
       ----------------------------------------- */

    .footer-container {
        padding: 35px 5%;

        gap: 20px;
    }


    .footer-left p {
        font-size: 17px;
    }


    .footer-center {
        gap: 14px;
    }


    .footer-right img {
        width: 140px;
    }


    /* -----------------------------------------
       REGISTRATION
       ----------------------------------------- */

    .registration {
        width: 85%;

        padding: 30px;

        margin: 45px auto;
    }


    .registration h2 {
        font-size: 28px;
    }


    input,
    select,
    textarea {
        box-sizing: border-box;
    }
}



/* =========================================================
   MOBILE
   600px AND BELOW
   ========================================================= */

@media screen and (max-width: 600px) {

    /* -----------------------------------------
       GLOBAL
       ----------------------------------------- */

    html,
    body {
        width: 100%;

        max-width: 100%;

        overflow-x: hidden;
    }


    body {
        font-size: 15px;
    }


    img,
    video {
        max-width: 100%;
    }


    /* -----------------------------------------
       HEADER
       ----------------------------------------- */

    @media screen and (max-width: 600px) {

    .header-zone {
        display: grid;

        grid-template-columns:
            48px
            1fr
            auto
            42px;

        align-items: center;

        gap: 6px;

        width: 100%;
        min-height: 65px;

        padding: 7px 10px;
    }

    .header-zone img {
        width: 48px;
        height: 48px;
        object-fit: contain;
    }

    .header-zone > div {
        min-width: 0;
        text-align: center;
    }

    .header-zone h1 {
        font-size: 18px;
        line-height: 1.1;
        margin: 0;
        white-space: nowrap;
    }

    /* LANGUAGE */
    #languageToggle {
        width: auto;
        margin: 3px auto 0;
        padding: 4px 7px;
        font-size: 10px;
    }

    /* REGISTER */
    .header-zone .btn {
        display: block;

        width: auto;
        margin: 0;

        padding: 7px 9px;

        font-size: 11px;
        line-height: 1;

        white-space: nowrap;
    }

    /* HAMBURGER */
    .hamburger {
        display: flex;

        width: 42px;
        height: 42px;

        padding: 5px;
        margin: 0;

        justify-self: end;
    }

    /* -----------------------------------------
       LANGUAGE BUTTON
       ----------------------------------------- */

    #languageToggle {
        margin: 0;

        padding: 6px 8px;

        font-size: 11px;

        width: auto;

        box-shadow: none;
    }


    /* -----------------------------------------
       HAMBURGER
       ----------------------------------------- */

    .hamburger {
        display: flex;

        width: 42px;

        height: 42px;

        padding: 5px;

        margin: 0;

        background: transparent;

        border: none;

        box-shadow: none;

        border-radius: 8px;

        flex-direction: column;

        justify-content: center;

        align-items: center;

        gap: 5px;

        cursor: pointer;
    }


    .hamburger span {
        display: block;

        width: 25px;

        height: 3px;

        background: var(--white);

        border-radius: 3px;

        transition: 0.3s ease;
    }


    /* Hamburger → X */

    .hamburger.active span:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }

    .hamburger.active span:nth-child(2) {
        opacity: 0;
    }

    .hamburger.active span:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }


    /* -----------------------------------------
       NAVBAR
       ----------------------------------------- */

    .navbar {
        display: none;

        width: 100%;

        flex-direction: column;

        align-items: stretch;

        gap: 0;

        padding: 5px 0;

        box-sizing: border-box;
    }


    .navbar.active {
        display: flex;
    }


    .navbar > a,
    .navbar > .dropdown {
        width: 100%;
    }


    .navbar a {
        display: block;

        width: 100%;

        padding: 12px 18px;

        box-sizing: border-box;

        border-radius: 0;

        text-align: left;
    }


    .navbar h3 {
        margin: 0;

        font-size: 16px;

        font-weight: 600;
    }


    /* -----------------------------------------
       DROPDOWN
       ----------------------------------------- */

    .dropdown {
        display: block;

        width: 100%;
    }


    .dropdown > h3 {
        padding: 12px 18px;

        margin: 0;

        cursor: pointer;
    }


    .dropdown-content {
        position: static;

        display: none;

        width: 100%;

        min-width: 0;

        border: none;

        border-radius: 0;

        box-shadow: none;

        background: var(--white);
    }


    /* Disable desktop hover */

    .dropdown:hover .dropdown-content {
        display: none;
    }


    .dropdown.open .dropdown-content {
        display: block;
    }


    .dropdown-content a {
        padding: 10px 35px;

        font-size: 14px;

        color: var(--text);
    }


    /* -----------------------------------------
       BANNER
       ----------------------------------------- */

    .banner {
        width: 100%;

        aspect-ratio: 16 / 9;

        margin-bottom: 1em;
    }


    .bannerChildren img {
        width: 100%;

        height: 100%;

        object-fit: cover;
    }


    /* -----------------------------------------
       INTRO
       ----------------------------------------- */

    .intro {
        display: flex;

        flex-direction: column;

        width: 100%;

        box-sizing: border-box;

        gap: 20px;

        margin-top: 25px;

        margin-bottom: 25px;

        padding: 25px 18px;
    }


    .intro video {
        width: 100%;

        height: auto;

        aspect-ratio: 16 / 9;

        object-fit: cover;

        border-radius: 12px;
    }


    .intro-text {
        width: 100%;

        max-width: 100%;
    }


    .intro p {
        font-size: 18px;

        line-height: 1.6;

        margin: 0;
    }


    /* -----------------------------------------
       COMPETITIONS
       ----------------------------------------- */

    .compet {
        width: 100%;

        box-sizing: border-box;

        padding: 30px 15px;
    }


    #competition {
        font-size: 28px;

        line-height: 1.2;

        margin-bottom: 25px;
    }


    #competition::after {
        width: 40px;

        height: 3px;

        margin-top: 10px;
    }


    .comp {
        grid-template-columns: 1fr;

        gap: 18px;

        width: 100%;
    }


    .comp-card {
        width: 100%;

        margin-bottom: 0;

        border-radius: 16px;
    }


    .comp-card p {
        padding: 14px;

        font-size: 14px;

        line-height: 1.5;
    }


    /* -----------------------------------------
       HEADER IMAGE
       ----------------------------------------- */

    .header-img img {
        border-radius: 12px;
    }


    .header-img h1 {
        top: 10px;

        left: 10px;

        font-size: 24px;
    }


    /* -----------------------------------------
       SPECIAL IMAGE
       ----------------------------------------- */

    .spec-img {
        width: 100%;

        margin-top: 25px;
    }


    .spec-img img {
        width: 100%;

        height: auto;
    }


    /* -----------------------------------------
       ICONS
       ----------------------------------------- */

    .icons-1 {
        width: 100%;

        justify-content: center;

        gap: 8px;

        padding: 10px;

        box-sizing: border-box;
    }


    /* -----------------------------------------
       FOOTER
       ----------------------------------------- */

    .footer-container {
        width: 100%;

        box-sizing: border-box;

        display: flex;

        flex-direction: column;

        justify-content: center;

        align-items: center;

        text-align: center;

        gap: 25px;

        padding: 35px 20px;
    }


    .footer-left,
    .footer-center,
    .footer-right {
        width: 100%;

        flex: none;
    }


    .footer-left p {
        font-size: 15px;

        margin: 9px 0;
    }


    .footer-left img {
        width: 18px;

        height: 18px;
    }


    .footer-center {
        display: flex;

        justify-content: center;

        align-items: center;

        flex-wrap: wrap;

        gap: 15px;
    }


    .footer-center img {
        max-width: 26px;
    }


    .footer-right {
        justify-content: center;
    }


    .footer-right img {
        width: 130px;
    }


    /* -----------------------------------------
       REGISTRATION
       ----------------------------------------- */

    .registration {
        width: calc(100% - 30px);

        box-sizing: border-box;

        margin: 30px auto;

        padding: 22px 18px;

        border-radius: 16px;
    }


    .registration h2 {
        font-size: 25px;

        line-height: 1.2;

        margin-bottom: 25px;
    }


    .form-row {
        display: grid;

        grid-template-columns: 1fr;

        gap: 0;
    }


    .form-group {
        margin-bottom: 18px;
    }


    label {
        font-size: 14px;

        margin-bottom: 6px;
    }


    input,
    select,
    textarea {
        width: 100%;

        box-sizing: border-box;

        padding: 12px;

        font-size: 16px;

        border-radius: 9px;
    }


    button {
        padding: 14px;

        font-size: 16px;
    }
}



/* =========================================================
   VERY SMALL MOBILE
   300px AND BELOW
   ========================================================= */

@media screen and (max-width: 300px) {

    .header-zone {
        grid-template-columns: 45px 1fr 40px;

        gap: 4px;

        padding: 6px;
    }


    .header-zone img {
        width: 42px;

        height: 42px;
    }


    .header-zone h1 {
        font-size: 16px;
    }


    .hamburger {
        width: 38px;

        height: 38px;
    }


    .hamburger span {
        width: 22px;

        height: 2px;
    }


    #languageToggle {
        font-size: 9px;

        padding: 5px 6px;
    }


    .navbar a {
        padding: 10px 15px;
    }


    .navbar h3 {
        font-size: 14px;
    }


    .banner {
        aspect-ratio: 16 / 9;
    }


    .intro {
        padding: 20px 12px;
    }


    .intro p {
        font-size: 16px;

        line-height: 1.5;
    }


    .compet {
        padding: 25px 10px;
    }


    #competition {
        font-size: 24px;
    }


    .comp-card p {
        padding: 12px;

        font-size: 13px;
    }


    .registration {
        width: calc(100% - 20px);

        padding: 18px 12px;
    }


    .registration h2 {
        font-size: 21px;
    }


    .footer-container {
        padding: 30px 12px;
    }
}




/* =========================================================
   HAMBURGER MENU — TABLET + MOBILE
   ========================================================= */

@media screen and (max-width: 1024px) {

    /* Hamburger visible */
    .hamburger {
        display: flex;
        width: 45px;
        height: 45px;
        padding: 6px;
        margin: 0;
        background: transparent;
        border: none;
        box-shadow: none;
        border-radius: 8px;

        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 5px;

        cursor: pointer;
    }

    .hamburger:hover {
        background: transparent;
        transform: none;
        box-shadow: none;
    }

    .hamburger span {
        display: block;
        width: 27px;
        height: 3px;
        background: white;
        border-radius: 3px;
        transition: 0.3s ease;
    }

    /* Navbar fechada */
    .navbar {
        display: none;
        width: 100%;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        padding: 0;

        background: linear-gradient(
            90deg,
            #8C6A00 0%,
            #C99A1A 20%,
            #F4D03F 50%,
            #D4AF37 75%,
            #8C6A00 100%
        );
    }

    /* Navbar aberta */
    .navbar.active {
        display: flex;
    }

    /* Cada item da lista */
    .navbar > a,
    .navbar > .dropdown {
        width: 100%;
        border-bottom: 1px solid rgba(255,255,255,0.25);
    }

    .navbar a {
        display: block;
        width: 100%;
        padding: 14px 25px;

        text-align: left;
        border-radius: 0;
    }

    .navbar h3 {
        margin: 0;
        font-size: 17px;
    }

    /* Hamburger transforma-se em X */
    .hamburger.active span:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }

    .hamburger.active span:nth-child(2) {
        opacity: 0;
    }

    .hamburger.active span:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }

    /* DROPDOWNS */
    .dropdown {
        display: block;
        width: 100%;
    }

    .dropdown > h3 {
        padding: 14px 25px;
        margin: 0;
        cursor: pointer;
    }

    .dropdown-content {
        position: static;
        display: none;

        width: 100%;
        min-width: 0;

        border: none;
        border-radius: 0;
        box-shadow: none;

        background: white;
    }

    /* Não abrir apenas com hover no tablet/mobile */
    .dropdown:hover .dropdown-content {
        display: none;
    }

    /* Abrir quando tiver .open */
    .dropdown.open .dropdown-content {
        display: block;
    }

    .dropdown-content a {
        padding: 12px 45px;
        color: var(--text);
        background: white;
    }
}