* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

p {
    text-align: justify;
}

html,
body {
    height: 100%;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #ffffff;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* ===== NAVBAR ===== */
.navbar {
    background-color: transparent;
    border-bottom: none;
    position: fixed;
    top: 0;
    z-index: 1000;
    width: 100%;
    transition: background-color 0.3s ease, border-bottom 0.3s ease;
}

.navbar.scrolled {
    background-color: #ffffff;
    border-bottom: 1px solid #e5e7eb;
}

.navbar-container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 30px;
    height: 100px;
    display: -webkit-flex;
    display: flex;
    -webkit-align-items: center;
    align-items: center;
    -webkit-justify-content: space-between;
    justify-content: space-between;
}

.brand-logo {
    font-size: 21px;
    font-weight: 800;
    color: #111827;
    text-decoration: none;
    letter-spacing: 0.5px;
    display: flex;
    align-items: center;
}

.logo-img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
    display: block;
}

.navbar-nav {
    display: -webkit-flex;
    display: flex;
    -webkit-align-items: center;
    align-items: center;
}

.nav-menu {
    list-style: none;
    display: -webkit-flex;
    display: flex;
    -webkit-align-items: center;
    align-items: center;
    gap: 34px;
    padding: 0;
}

.nav-link {
    text-decoration: none;
    font-size: 14.5px;
    font-weight: 500;
    color: #ffffff;
    white-space: nowrap;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.4);
    transition: color 0.3s;
}

.navbar.scrolled .nav-link {
    color: #4b5563;
    text-shadow: none;
}

.nav-link:hover,
.nav-link.active {
    color: #e5e7eb;
    font-weight: 600;
}

.navbar.scrolled .nav-link:hover,
.navbar.scrolled .nav-link.active {
    color: #111827;
}

/* ===== NAV SOCIAL ICONS ===== */
.nav-social {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-left: 30px;
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    color: #ffffff;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.4);
    transition: color 0.3s, transform 0.2s;
}

.social-link svg {
    width: 100%;
    height: 100%;
}

.social-link:hover {
    color: #e5e7eb;
    transform: scale(1.15);
}

.navbar.scrolled .social-link {
    color: #4b5563;
}

.navbar.scrolled .social-link:hover {
    color: #111827;
}

/* ===== HAMBURGER ===== */
.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
}

.hamburger span {
    display: block;
    width: 22px;
    height: 2px;
    background-color: #ffffff;
    border-radius: 2px;
    transition: all 0.3s ease;
}

.navbar.scrolled .hamburger span {
    background-color: #111827;
}

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(7px, 7px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* ===== HERO ===== */
.hero {
    position: relative;
    width: 100%;
    height: 100vh;
    min-height: 100vh;
    flex-shrink: 0;
    overflow: hidden;
}

.hero-bg {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.25) 0%, rgba(0, 0, 0, 0.1) 60%, rgba(0, 0, 0, 0.0) 100%);
}

/* ===== HERO CONTENT ===== */
.hero-content {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 20px;
    z-index: 2;
}

.hero-card {
    display: flex;
    width: calc(100vw - 80px);
    max-width: 1900px;
    height: 700px;
    background: #ffffff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.25);
}

.hero-img-col {
    width: 60%;
    flex-shrink: 0;
}

.hero-img-col img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.hero-content-col {
    width: 55%;
    padding: 40px 36px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 16px;
}

.hero-content-col h1 {
    font-size: 26px;
    font-weight: 800;
    color: #111827;
    line-height: 1.25;
}

.hero-content-col p {
    font-size: 14px;
    color: #6b7280;
    line-height: 1.65;
}

.thumbs-row {
    display: flex;
    gap: 10px;
    margin-top: 8px;
}

.thumb-item {
    position: relative;
    flex: 1;
    border-radius: 10px;
    overflow: hidden;
    aspect-ratio: 1 / 1;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.thumb-item:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

.thumb-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.thumb-badge {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.55);
    color: #fff;
    font-size: 11px;
    font-weight: 600;
    text-align: center;
    padding: 5px 4px;
}

/* ===== MAIN ===== */
main {
    flex: 1;
    padding: 0;
}

/* ===== NOSSAS INFRAESTRUTURAS ===== */
.infra-section {
    background: #ffffff;
    padding: 0;
    overflow: hidden;
}

.infra-inner {
    display: flex;
    align-items: stretch;
    min-height: 860px;
}

.infra-card {
    flex: 0 0 38%;
    background: #fff;
    padding: 60px 48px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    z-index: 1;
}

.infra-card h2 {
    font-family: Georgia, "Times New Roman", serif;
    font-size: 32px;
    font-weight: 700;
    color: #111827;
    margin: 0 0 4px;
}

.infra-line {
    width: 48px;
    height: 3px;
    background: #0f3f8a;
    margin: 14px 0 20px;
}

.infra-card p {
    font-size: 15px;
    color: #4b5563;
    line-height: 1.7;
    text-align: left;
    margin-bottom: 32px;
}

.infra-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: #0f3f8a;
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    padding: 14px 28px;
    text-decoration: none;
    align-self: flex-start;
    transition: background 0.2s;
}

.infra-btn:hover {
    background: #0a2d64;
}

.infra-images {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 30px;
    background: transparent;
}

/* Contentor delimitado com bordas curvas */
.infra-carousel {
    position: relative;
    width: 1000px;
    max-width: 100%;
    height: 860px;
    border-radius: 20px;
    overflow: hidden;
    flex-shrink: 0;
    background: #f3f4f6;
}

.infra-track {
    display: flex;
    flex-wrap: nowrap;
    width: 100%;
    height: 100%;
    will-change: transform;
    transition: transform 0.55s cubic-bezier(0.4, 0, 0.2, 1);
}

.infra-track img {
    flex: 0 0 100%;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* dots + arrows overlay — inside .infra-carousel */
.infra-nav {
    position: absolute;
    bottom: 20px;
    right: 20px;
    display: flex;
    gap: 8px;
    z-index: 10;
}

.infra-nav-btn {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: none;
    background: rgba(255, 255, 255, 0.92);
    color: #0f3f8a;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 22px;
    line-height: 1;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.18);
    transition: background 0.2s, color 0.2s;
}

.infra-nav-btn:hover {
    background: #0f3f8a;
    color: #fff;
}

.infra-dots {
    position: absolute;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 7px;
    z-index: 10;
}

.infra-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    border: none;
    cursor: pointer;
    padding: 0;
    transition: background 0.2s, transform 0.2s;
}

.infra-dot.active {
    background: #fff;
    transform: scale(1.3);
}

@media (max-width: 900px) {
    .infra-inner {
        flex-direction: column;
    }

    .infra-card {
        flex: none;
        padding: 40px 28px;
    }

    .infra-images {
        min-height: 260px;
    }
}

/* ===== FOOTER ===== */
.site-footer {
    background: #06132b;
    color: #cbd5e1;
    border-top: 4px solid #0f3f8a;
}

.footer-cta {
    background: #0f3f8a;
    padding: 28px 0;
}

.footer-cta-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    flex-wrap: wrap;
}

.footer-cta-inner p {
    font-size: 15px;
    font-weight: 600;
    color: #fff;
    text-align: left;
    margin: 0;
}

.footer-cta-inner span {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.75);
    font-weight: 400;
}

.footer-cta-btn {
    flex-shrink: 0;
    padding: 11px 26px;
    background: #fff;
    color: #0f3f8a;
    font-size: 13.5px;
    font-weight: 700;
    text-decoration: none;
    border-radius: 4px;
    letter-spacing: 0.03em;
    transition: background 0.2s, color 0.2s;
}

.footer-cta-btn:hover {
    background: #e0eaff;
}

.footer-top {
    padding: 60px 0 44px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2.2fr 1fr 1.3fr 1.1fr;
    gap: 44px;
    align-items: start;
}

.footer-logo {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 12px;
    display: block;
    border: 2px solid rgba(255, 255, 255, 0.15);
}

.footer-brand-name {
    font-size: 14px;
    font-weight: 700;
    color: #fff;
    letter-spacing: 0.02em;
    margin-bottom: 10px;
}

.footer-brand p {
    font-size: 13px;
    line-height: 1.75;
    color: #64748b;
    text-align: left;
}

.footer-col h4 {
    font-size: 11px;
    font-weight: 700;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-col ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-col ul li a {
    font-size: 13.5px;
    color: #64748b;
    text-decoration: none;
    transition: color 0.2s, padding-left 0.2s;
    display: inline-block;
}

.footer-col ul li a:hover {
    color: #fff;
    padding-left: 4px;
}

.footer-contact {
    gap: 14px !important;
}

.footer-contact li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 13px;
    color: #64748b;
    line-height: 1.5;
}

.footer-contact li svg {
    width: 15px;
    height: 15px;
    flex-shrink: 0;
    margin-top: 2px;
    color: #0f3f8a;
}

.footer-socials {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 4px;
}

.footer-socials a {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #64748b;
    transition: background 0.2s, color 0.2s, border-color 0.2s;
}

.footer-socials a:hover {
    background: #0f3f8a;
    color: #fff;
    border-color: #0f3f8a;
}

.footer-socials svg {
    width: 17px;
    height: 17px;
}

.footer-bottom {
    padding: 20px 0;
}

.footer-bottom-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
}

.footer-bottom p {
    font-size: 12px;
    color: #334155;
    text-align: left;
    margin: 0;
}

.footer-bottom-links {
    display: flex;
    gap: 20px;
}

.footer-bottom-links a {
    font-size: 12px;
    color: #334155;
    text-decoration: none;
    transition: color 0.2s;
}

.footer-bottom-links a:hover {
    color: #64748b;
}

@media (max-width: 900px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 32px;
    }

    .footer-brand {
        grid-column: 1 / -1;
    }

    .footer-cta-inner {
        flex-direction: column;
        align-items: flex-start;
    }

    .footer-bottom-inner {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .footer-bottom p {
        text-align: center;
    }
}

@media (max-width: 640px) {
    .footer-grid {
        grid-template-columns: 1fr;
    }
}

/* ===== RESPONSIVE ===== */
@media (max-width: 900px) {
    .hero-card {
        flex-direction: column;
        max-height: 85vh;
        overflow-y: auto;
    }

    .hero-img-col {
        width: 100%;
        min-height: 200px;
        height: 200px;
    }

    .hero-content-col {
        width: 100%;
        padding: 24px 20px;
    }

    .hero-content-col h1 {
        font-size: 20px;
    }
}

@media (max-width: 768px) {
    .hamburger {
        display: -webkit-flex;
        display: flex;
    }

    .navbar-nav {
        display: none;
        position: absolute;
        top: 100px;
        left: 0;
        right: 0;
        background-color: rgba(0, 0, 0, 0.75);
        border-bottom: 1px solid rgba(255, 255, 255, 0.15);
        box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
        backdrop-filter: blur(8px);
    }

    .navbar.scrolled .navbar-nav {
        background-color: #ffffff;
        border-bottom: 1px solid #e5e7eb;
        backdrop-filter: none;
    }

    .navbar-nav.active {
        display: -webkit-flex;
        display: flex;
        -webkit-flex-direction: column;
        flex-direction: column;
    }

    .nav-menu {
        -webkit-flex-direction: column;
        flex-direction: column;
        gap: 0;
        width: 100%;
    }

    .nav-link {
        display: block;
        padding: 13px 24px;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }

    .navbar.scrolled .nav-link {
        border-bottom: 1px solid #f3f4f6;
    }

    .nav-social {
        margin-left: 0;
        justify-content: center;
        padding: 14px 0;
        gap: 20px;
    }
}

/* ===== SERVIÇOS ===== */
.services-section {
    background: #ffffff;
    padding: 72px 20px;
}

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

.service-card {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.service-icon {
    width: 52px;
    height: 52px;
    background: #5b5fcf;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 12px;
    flex-shrink: 0;
}

.service-icon svg {
    width: 100%;
    height: 100%;
}

.service-card h3 {
    font-size: 16px;
    font-weight: 700;
    color: #111827;
    line-height: 1.3;
}

.service-card p {
    font-size: 13.5px;
    color: #6b7280;
    line-height: 1.7;
}

/* ===== HIGHLIGHT ===== */
.highlight-section {
    display: flex;
    align-items: center;
    background: #f9fafb;
    min-height: 420px;
    padding: 40px 0;
}

.highlight-img {
    width: 45%;
    flex-shrink: 0;
    overflow: visible;
    padding: 40px 0 40px 40px;
}

.highlight-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    border-radius: 20px;
}

.highlight-content {
    width: 55%;
    padding: 64px 60px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 18px;
    background: transparent;
}

.highlight-content h2 {
    font-size: 28px;
    font-weight: 800;
    color: #111827;
    line-height: 1.25;
}

.highlight-content p {
    font-size: 14px;
    color: #6b7280;
    line-height: 1.7;
    max-width: 480px;
}

.highlight-btn {
    align-self: flex-start;
    padding: 12px 28px;
    font-size: 13px;
    letter-spacing: 0.5px;
    border-radius: 6px;
}

/* ===== ESTUDAR NO IDHI (TRÊS CARTÕES) ===== */
.study-section {
    background-color: #ffffff;
    padding: 72px 0 80px;
}

.study-header {
    text-align: center;
    margin-bottom: 40px;
}

.study-header h2 {
    font-size: 26px;
    font-weight: 800;
    color: #111827;
    margin-bottom: 8px;
}

.study-header p {
    font-size: 14px;
    color: #6b7280;
}

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

.study-card {
    background-color: #f9fafb;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.08);
    display: flex;
    flex-direction: column;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.study-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 40px rgba(15, 23, 42, 0.15);
}

.study-card-image img {
    width: 100%;
    height: 190px;
    object-fit: cover;
    display: block;
}

.study-card-body {
    padding: 18px 20px 20px;
}

.study-card-body h3 {
    font-size: 16px;
    font-weight: 700;
    color: #111827;
    margin-bottom: 8px;
}

.study-card-body p {
    font-size: 13.5px;
    color: #6b7280;
    line-height: 1.65;
    margin-bottom: 12px;
}

.study-card-link {
    font-size: 13.5px;
    font-weight: 600;
    color: #2563eb;
    text-decoration: none;
}

.study-card-link:hover {
    text-decoration: underline;
}

/* ===== GALERIA ESTUDAR NO IDHI (CARROSSEL) ===== */
.study-gallery-section {
    background: #fff;
    padding: 64px 0 100px;
    overflow: hidden;
}

/* cabeçalho */
.sgs-header {
    text-align: center;
    margin-bottom: 48px;
}

.sgs-header h2 {
    font-family: Georgia, "Times New Roman", serif;
    font-size: 38px;
    font-weight: 700;
    color: #111827;
    margin: 0;
}

.sgs-line {
    width: 50px;
    height: 3px;
    background: #0f3f8a;
    margin: 14px auto 16px;
}

.sgs-header p {
    font-size: 16px;
    color: #6b7280;
    text-align: center;
}

/* carrossel */
.sgs-carousel {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 0 40px;
}

.sgs-viewport {
    overflow: hidden;
    flex: 1;
    min-width: 0;
}

.sgs-track {
    display: flex;
    flex-wrap: nowrap;
    gap: 20px;
    will-change: transform;
}

/* cada card */
.sgs-item {
    flex: 0 0 360px;
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
}

.sgs-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(15, 23, 42, 0.15);
}

.sgs-item img {
    width: 360px;
    height: 360px;
    object-fit: cover;
    display: block;
    flex-shrink: 0;
    border-radius: 12px;
}

/* caixa de legenda */
.sgs-caption {
    background: #fff;
    padding: 16px 18px 18px;
    text-align: center;
    box-shadow: 0 6px 20px rgba(15, 23, 42, 0.09);
    position: relative;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

.sgs-caption::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 3px;
    background: #0f3f8a;
}

.sgs-caption h3 {
    font-family: Georgia, "Times New Roman", serif;
    font-size: 14px;
    font-weight: 700;
    color: #111827;
    line-height: 1.35;
    margin: 0 0 6px;
}

.sgs-caption p {
    font-size: 12.5px;
    color: #6b7280;
    line-height: 1.6;
    text-align: center;
    margin: 0 0 10px;
}

.sgs-link {
    display: inline-block;
    margin-top: auto;
    font-size: 12.5px;
    font-weight: 700;
    color: #0f3f8a;
    text-decoration: none;
}

.sgs-link:hover {
    color: #0a2d64;
}

/* setas */
.sgs-arrow {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1px solid #d1d5db;
    background: #fff;
    color: #6b7280;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 24px;
    line-height: 1;
    box-shadow: 0 4px 10px rgba(15, 23, 42, 0.10);
    transition: background 0.2s, color 0.2s;
    flex-shrink: 0;
}

.sgs-arrow:hover {
    background: #0f3f8a;
    color: #fff;
}

/* responsivo */
@media (max-width: 900px) {
    .sgs-header h2 {
        font-size: 30px;
    }
}

@media (max-width: 640px) {
    .study-gallery-section {
        padding: 40px 0 90px;
    }

    .sgs-header h2 {
        font-size: 26px;
    }

    .sgs-caption h3 {
        font-size: 15px;
    }
}

@media (max-width: 900px) {
    .services-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .highlight-section {
        flex-direction: column;
    }

    .highlight-img,
    .highlight-content {
        width: 100%;
    }

    .highlight-img {
        height: auto;
        padding: 20px;
    }

    .highlight-content {
        padding: 40px 24px;
    }

    .highlight-content h2 {
        font-size: 22px;
    }

    .study-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}

/* ===== UTILITÁRIOS ===== */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.btn {
    padding: 10px 24px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
    border: none;
    transition: transform 0.2s, box-shadow 0.2s;
}

.btn-primary {
    background: #2563eb;
    color: #fff;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(37, 99, 235, 0.35);
}

.btn-secondary {
    background: #fff;
    color: #2563eb;
    border: 2px solid #2563eb;
}

.btn-secondary:hover {
    background: #eff6ff;
    transform: translateY(-2px);
}

/* ===== DROPDOWN MENU ===== */
.dropdown {
    position: relative;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 250px;
    background-color: #ffffff;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    border-top: 1px solid #0f3f8a;
    opacity: 0;
    visibility: hidden;
    transform: translateY(15px);
    transition: all 0.3s ease;
    list-style: none;
    padding: 10px 0;
    margin: 0;
    z-index: 1000;
}

.dropdown-menu::before {
    content: "";
    position: absolute;
    top: -5px; /* Centers vertically on the top border */
    left: 31px; /* Centers roughly under the 'Educação' text (width ~62px) */
    width: 9px;
    height: 9px;
    border: 1px solid #0f3f8a;
    background-color: #fff;
    border-radius: 50%;
}

.dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-item {
    display: block;
    padding: 12px 24px;
    color: #0f3f8a;
    font-size: 14.5px;
    font-weight: 500;
    text-decoration: none;
    transition: background-color 0.2s, color 0.2s;
}

.dropdown-item:hover {
    background-color: #f0f4fc;
    color: #0c2d66; /* Darker blue on hover */
}

@media (max-width: 768px) {
    .dropdown-menu {
        position: static;
        width: 100%;
        box-shadow: none;
        border-top: none;
        opacity: 1;
        visibility: visible;
        display: none;
        transform: none;
        padding: 5px 0 15px 0;
        background-color: transparent;
    }
    .dropdown-menu::before {
        display: none;
    }
    .dropdown:hover .dropdown-menu,
    .dropdown.active .dropdown-menu {
        display: block;
    }
    .dropdown-item {
        padding: 10px 24px;
        text-align: center;
        color: #ffffff;    /* Maintain white font for mobile menu matching */
        font-weight: 400;
    }
    .navbar.scrolled .dropdown-item {
        color: #0f3f8a;    /* Switch to blue when navbar is scrolled */
    }
    .dropdown-item:hover {
        background-color: rgba(255, 255, 255, 0.1);
        color: #e5e7eb;
    }
    .navbar.scrolled .dropdown-item:hover {
        background-color: #f0f4fc;
        color: #0c2d66;
    }
}
