* {
    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);
}

/* ===== MAIN ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}

.main-contact {
    position: relative;
    min-height: 100vh;
    padding: 150px 20px 100px;
    display: flex;
    justify-content: center;
    align-items: center;
    /* Fundo conforme solicitado */
    background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)),
        url('img/webp/Banner.webp') no-repeat center center;
    background-size: cover;
}

.container {
    width: 100%;
    max-width: 1000px;
}

/* Header */
.section-header {
    text-align: center;
    color: #fff;
    margin-bottom: 50px;
}

.section-header h1 {
    font-size: 32px;
    font-weight: 600;
    margin-bottom: 15px;
}

.section-header p {
    font-weight: 300;
    max-width: 600px;
    margin: 0 auto;
    font-size: 14px;
    line-height: 1.6;
    text-align: center;
}

/* Layout Grid */
.content-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 30px;
}

/* Informações de Contato (Esquerda) */
.contact-info {
    flex: 1;
}

.info-box {
    display: flex;
    margin-bottom: 30px;
}

.info-box .icon {
    width: 45px;
    height: 45px;
    background: #fff;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 50%;
    margin-right: 20px;
}

.info-box .icon svg {
    width: 22px;
    height: 22px;
    color: #111;
}

.info-box .text h3 {
    color: #00bcd4;
    /* Azul Cyan igual da foto */
    font-size: 16px;
    font-weight: 400;
    margin-bottom: 3px;
}

.info-box .text p {
    color: #fff;
    font-size: 13px;
    line-height: 1.5;
}

/* Card do Formulário (Direita) */
.contact-form-card {
    flex: 1;
    background: #fff;
    padding: 40px;
    border-radius: 2px;
}

.contact-form-card h2 {
    font-size: 24px;
    color: #333;
    font-weight: 600;
    margin-bottom: 30px;
}

/* Estilo dos Inputs */
.input-group {
    position: relative;
    margin-bottom: 35px;
}

.input-group input,
.input-group textarea {
    width: 100%;
    padding: 5px 0;
    font-size: 15px;
    border: none;
    border-bottom: 1px solid #333;
    outline: none;
    background: transparent;
}

.input-group textarea {
    height: 70px;
    resize: none;
}

.input-group .label {
    position: absolute;
    left: 0;
    top: 5px;
    font-size: 15px;
    color: #666;
    pointer-events: none;
    transition: 0.3s;
}

/* Animação do Label ao digitar */
.input-group input:focus~.label,
.input-group input:valid~.label,
.input-group textarea:focus~.label,
.input-group textarea:valid~.label {
    top: -20px;
    font-size: 12px;
    color: #00bcd4;
}

/* Botão Send */
.send-btn {
    background: #00bcd4;
    color: #fff;
    border: none;
    padding: 10px 25px;
    font-size: 14px;
    cursor: pointer;
    transition: 0.3s;
}

.send-btn:hover {
    background: #008ba3;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 188, 212, 0.4);
}

/* RESPONSIVIDADE (Aba Mobile da foto) */
@media (max-width: 768px) {
    .main-contact {
        background: #fff;
        padding: 100px 20px 50px;
    }

    .section-header {
        color: #333;
    }

    .content-wrapper {
        flex-direction: column;
    }

    .contact-info {
        margin-bottom: 40px;
        width: 100%;
    }

    .info-box {
        background: #fff;
        padding: 5px 0;
    }

    .info-box .icon {
        background: #333;
    }

    .info-box .icon svg {
        color: #fff;
    }

    .info-box .text p {
        color: #333;
        text-align: left;
    }

    .contact-form-card {
        width: 100%;
        padding: 20px 0;
        box-shadow: none;
    }

    .contact-form-card h2 {
        margin-bottom: 20px;
    }

    /* Adiciona a imagem no fundo apenas como um detalhe no final se quiser imitar a foto */
    .main-contact::after {
        content: "";
        display: block;
        width: 100%;
        height: 150px;
        background: linear-gradient(rgba(0,0,0,0.5), rgba(0,0,0,0.5)), url('img/webp/Banner.webp') no-repeat center center;
        background-size: cover;
        margin-top: 50px;
    }
}

/* ==== Main ==== */




/* ===== 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 NAVBAR ===== */
@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;
    }
}

/* ===== 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;
    }
}
/* Alertas do formulário de contacto */
.alert {
    padding: 14px 18px;
    border-radius: 8px;
    margin-bottom: 18px;
    font-size: 15px;
    font-weight: 500;
}
.alert-sucesso {
    background-color: #dcfce7;
    color: #166534;
    border: 1px solid #86efac;
}
.alert-erro {
    background-color: #fee2e2;
    color: #991b1b;
    border: 1px solid #fca5a5;
}

/* ===== STUDENT SUPPORT SECTION (BLUE) ===== */
.student-support {
    background-color: #0f3f8a; /* Primary Blue */
    padding: 80px 0 100px;
    color: #ffffff;
    text-align: center;
}

.support-header {
    margin-bottom: 70px;
}

.support-header h2 {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 15px;
    font-family: Georgia, 'Times New Roman', serif;
}

.support-header p {
    font-size: 16px;
    color: rgba(255, 255, 255, 0.9);
    max-width: 600px;
    margin: 0 auto;
    text-align: center;
}

.support-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 20px;
}

.support-card {
    background-color: #ffffff;
    border-radius: 12px;
    padding: 60px 30px 40px;
    position: relative;
    color: #111827;
    transition: transform 0.3s ease;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.support-card:hover {
    transform: translateY(-5px);
}

.support-icon {
    position: absolute;
    top: -30px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 60px;
    background-color: #ffffff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    border: 4px solid #0f3f8a;
    color: #0f3f8a;
}

.support-icon svg {
    width: 24px;
    height: 24px;
}

.support-card h3 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 20px;
    color: #0f3f8a;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.support-card p {
    font-size: 15px;
    color: #4b5563;
    margin-bottom: 8px;
    font-weight: 600;
    text-align: center;
}

@media (max-width: 900px) {
    .support-grid {
        grid-template-columns: 1fr;
        gap: 60px;
        max-width: 400px;
        margin: 0 auto;
    }
    
    .support-header h2 {
        font-size: 24px;
        padding: 0 20px;
    }
}

/* ===== PEDAGOGICAL GRID ===== */
.pedagogical-grid {
    background-color: #f1f5f9;
    padding: 80px 0;
}

.grid-header {
    text-align: center;
    margin-bottom: 50px;
}

.grid-header h2 {
    font-size: 32px;
    font-weight: 700;
    color: #1e293b;
    font-family: Georgia, 'Times New Roman', serif;
}

.p-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}

.p-card {
    background: #ffffff;
    border-radius: 8px;
    padding: 35px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    border-bottom: 4px solid transparent;
    transition: border-color 0.3s, transform 0.3s;
}

.p-card:hover {
    border-bottom: 4px solid #0f3f8a;
    transform: translateY(-5px);
}

.p-card h3 {
    font-size: 20px;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 25px;
    border-bottom: 1px solid #e2e8f0;
    padding-bottom: 10px;
}

.p-info {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.p-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.p-item svg {
    width: 20px;
    height: 20px;
    color: #0f3f8a;
    flex-shrink: 0;
    margin-top: 2px;
}

.p-item span {
    font-size: 14.5px;
    color: #475569;
    line-height: 1.5;
}

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

/* ===== BOLETIM INFORMATIVO (NEWSLETTER - BLUE) ===== */
.newsletter-bar {
    background-color: #0c2d66; /* Deep blue to match site identity */
    padding: 60px 0;
    color: #ffffff;
}

.newsletter-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 50px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 40px;
}

.newsletter-text {
    flex: 1;
}

.newsletter-text h2 {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 20px;
}

.newsletter-line {
    width: 60px;
    height: 3px;
    background-color: #ffffff;
    margin-bottom: 20px;
}

.newsletter-text p {
    font-size: 15px;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.9);
    max-width: 500px;
    text-align: left;
}

.newsletter-form {
    flex: 1;
    display: flex;
    justify-content: flex-end;
}

.newsletter-form form {
    background-color: #ffffff;
    border-radius: 50px;
    padding: 4px 4px 4px 25px;
    display: flex;
    align-items: center;
    width: 100%;
    max-width: 500px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.newsletter-form input {
    border: none;
    outline: none;
    flex: 1;
    font-size: 15px;
    color: #333;
    padding: 10px 0;
}

.newsletter-form button {
    background-color: #0f3f8a;
    color: #ffffff;
    border: none;
    padding: 12px 35px;
    border-radius: 40px;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: background-color 0.3s;
}

.newsletter-form button:hover {
    background-color: #0c2d66;
}

/* ===== WHATSAPP FLOATING BUTTON ===== */
.whatsapp-float {
    position: fixed;
    bottom: 25px;
    left: 25px;
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    z-index: 2000;
    transition: transform 0.3s ease;
}

.whatsapp-float:hover {
    transform: scale(1.05);
}

.whatsapp-badge {
    width: 45px;
    height: 45px;
    background-color: #25d366; /* Traditional WhatsApp Green */
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.whatsapp-badge svg {
    width: 26px;
    height: 26px;
}

.whatsapp-text {
    background-color: #ffffff;
    padding: 8px 15px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 600;
    color: #4b5563;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    white-space: nowrap;
}

@media (max-width: 900px) {
    .newsletter-container {
        flex-direction: column;
        align-items: flex-start;
        gap: 30px;
        padding: 0 20px;
    }
    
    .newsletter-form {
        width: 100%;
        justify-content: flex-start;
    }
    
    .whatsapp-text {
        display: none; /* Hide label on mobile to save space */
    }
}
