/* HERO FIX OFICIAL - rateio.live */
.hero {
    position: relative;
    background: #f3f8ff;
    overflow: hidden;
}
.hero .container {
    position: relative;
    min-height: 400px;
    display: flex;
    align-items: center;
    z-index: 2;
}
.hero .hero-copy {
    position: relative;
    z-index: 3;
    width: 50%;
    max-width: 620px;
    padding: 34px 0;
}
.hero .hero-copy h1 {
    font-size: 38px;
    line-height: 1.15;
    letter-spacing: -1.2px;
    margin: 0 0 18px;
    font-weight: 800;
    color: #081e43 !important;
}
.hero .hero-copy h1 span {
    color: #008524 !important;
    font-size: 46px;
    letter-spacing: -1.5px;
}
.hero .hero-copy > p {
    font-size: 18.5px;
    line-height: 1.5;
    color: #1e293b !important;
    margin: 18px 0 22px;
    max-width: 560px;
}
.hero .hero-art {
    position: absolute;
    inset: 0 0 0 auto;
    width: 56%;
    max-width: 960px;
    height: 100%;
    background-image: url('/assets/hero-estudante-clean.webp');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: right center;
    pointer-events: none;
    z-index: 1;
}

@media (max-width: 1050px) {
    .hero .hero-art {
        width: 52%;
    }
    .hero .hero-copy {
        width: 52%;
    }
}

@media (max-width: 900px) {
    .hero {
        padding-bottom: 300px;
    }
    .hero .container {
        min-height: auto;
    }
    .hero .hero-copy {
        width: 100% !important;
        padding: 24px 0 18px;
    }
    .hero .hero-art {
        width: 100%;
        height: 290px;
        top: auto;
        bottom: 0;
        left: 0;
        right: 0;
        background-position: center bottom;
        background-size: contain;
    }
}

@media (max-width: 600px) {
    .hero {
        padding-bottom: 230px;
    }
    .hero .hero-art {
        height: 220px;
    }
    .hero .hero-copy h1 {
        font-size: 27px !important;
    }
    .hero .hero-copy h1 span {
        font-size: 34px !important;
    }
    .hero .hero-copy > p {
        font-size: 15px !important;
        line-height: 1.45;
    }
}


/* =========================================================
   MEGA MENU & DROPDOWNS (RATEIO D CONCURSOS STYLE)
   ========================================================= */
header .container.header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 14px 20px;
    position: relative;
}

#navigation {
    display: flex;
    align-items: center;
    gap: 24px;
    margin: 0;
    padding: 0;
}

.nav-link-item, .nav-drop-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 4px;
    color: #1e293b !important;
    font-size: 14.5px;
    font-weight: 700;
    text-decoration: none !important;
    background: transparent !important;
    border: none !important;
    border-bottom: 2px solid transparent !important;
    cursor: pointer;
    font-family: inherit;
    transition: color 0.15s ease, border-color 0.15s ease;
    white-space: nowrap;
    position: relative;
    box-shadow: none !important;
}

.nav-link-item:hover, .nav-drop-wrap:hover > .nav-drop-btn, .nav-drop-wrap.active > .nav-drop-btn {
    color: #0054b8 !important;
    border-bottom-color: #0054b8 !important;
    background: transparent !important;
}

.nav-link-item.active {
    color: #0054b8 !important;
    border-bottom-color: #0054b8 !important;
    background: transparent !important;
}

.nav-chevron {
    width: 14px;
    height: 14px;
    stroke-width: 2.2;
    transition: transform 0.2s ease;
    color: #64748b;
}

.nav-drop-wrap:hover .nav-chevron, .nav-drop-wrap.active .nav-chevron {
    transform: rotate(180deg);
    color: #0054b8;
}

.nav-drop-wrap {
    position: relative;
}

/* Dropdown Menu Container (Clean white card like RateioDConcursos) */
.nav-drop-menu {
    position: absolute;
    top: calc(100% + 2px);
    left: 0;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12), 0 4px 10px rgba(0, 0, 0, 0.05);
    padding: 18px 24px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(6px);
    transition: opacity 0.18s ease, transform 0.18s ease, visibility 0.18s ease;
    z-index: 1000;
}

.nav-drop-wrap:hover .nav-drop-menu, .nav-drop-wrap.active .nav-drop-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.nav-drop-mega {
    min-width: 440px;
}

.nav-drop-single {
    min-width: 280px;
}

.nav-drop-title {
    font-size: 15px;
    font-weight: 800;
    color: #0f172a;
    margin: 0 0 14px 0;
    padding: 0;
    letter-spacing: -0.2px;
}

.nav-drop-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3px 20px;
}

.nav-drop-list {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.nav-drop-grid a, .nav-drop-list a {
    display: block;
    padding: 6px 8px;
    font-size: 12.5px;
    font-weight: 600;
    color: #475569;
    text-decoration: none !important;
    border-radius: 4px;
    transition: all 0.15s ease;
    letter-spacing: 0.1px;
    white-space: nowrap;
}

.nav-drop-grid a:hover, .nav-drop-list a:hover {
    color: #0054b8 !important;
    background: #f8fafc;
    padding-left: 12px;
}

/* MOBILE DROPDOWN STYLING */
@media (max-width: 900px) {
    #navigation.open {
        position: static !important;
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
        max-height: 80vh !important;
        overflow-y: auto !important;
        overflow-x: hidden !important;
        display: flex !important;
        flex-direction: column !important;
        flex-wrap: nowrap !important;
        gap: 0 !important;
        padding: 12px 14px !important;
        background: #ffffff !important;
        z-index: 9999 !important;
        box-shadow: 0 14px 28px rgba(0,0,0,0.15) !important;
        border-bottom: 2px solid #0045ae !important;
    }
    .nav-drop-wrap {
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
        position: relative !important;
    }
    .nav-drop-btn, .nav-link-item {
        width: 100% !important;
        display: flex !important;
        justify-content: space-between !important;
        align-items: center !important;
        padding: 12px 6px !important;
        border-bottom: 1px solid #e2e8f0 !important;
        font-size: 15px !important;
        color: #081e43 !important;
        box-sizing: border-box !important;
    }
    .nav-drop-menu, .nav-drop-mega, .nav-drop-single {
        position: static !important;
        box-shadow: none !important;
        border: none !important;
        border-left: 3px solid #0054b8 !important;
        border-radius: 0 !important;
        padding: 6px 0 6px 12px !important;
        min-width: 0 !important;
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
        display: none !important;
        opacity: 1 !important;
        visibility: visible !important;
        transform: none !important;
        background: #f8fafc !important;
        margin: 4px 0 !important;
    }
    .nav-drop-wrap.active .nav-drop-menu {
        display: block !important;
    }
    .nav-drop-grid {
        display: flex !important;
        flex-direction: column !important;
        width: 100% !important;
        gap: 0 !important;
    }
    .nav-drop-grid .dropdown-col {
        width: 100% !important;
    }
    .nav-drop-grid a, .nav-drop-list a {
        display: block !important;
        padding: 8px 6px !important;
        font-size: 12.5px !important;
        border-bottom: 1px solid #edf2f7 !important;
        color: #334155 !important;
        font-weight: 700 !important;
        white-space: normal !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }
}


/* REMOVE LINHA AZUL QUE CORTAVA O INÍCIO */
nav a:after, nav a.active:after, .nav-link-item:after, .nav-link-item.active:after, .nav-link-item:before {
    display: none !important;
    content: none !important;
}
.nav-link-item {
    text-decoration: none !important;
    border-bottom: none !important;
}
