/* =========================================================
   EDUCAR CURSOS — Header + Top bar + Login modal (reutilizável)
   Primary: #6d0eb1
   ========================================================= */
/* :root {
  --primary: #6d0eb1;
  --primary-dark: #550a8c;
  --accent: #f7c948;
  --white: #fff;
  --dark: #1b2332;
  --gray-100: #f4f5f7;
  --gray-200: #e6e8ec;
  --gray-300: #d5d8de;
  --gray-400: #9aa0a6;
  --gray-500: #6b7280;
  --gray-600: #4b5563;
  --gray-700: #374151;
  --gray-800: #1f2937;
  --gray-900: #111827;
  --font: "Poppins", system-ui, -apple-system, sans-serif;
  --w: 1320px;
} */
:root {
    --primary: #6d0eb1;
    --primary-dark: #550a8c;
    --accent: #f7c948;
    --white: #fff;
    --dark: #1b2332;
    --gray-100: #f4f5f7;
    --gray-200: #e6e8ec;
    --gray-400: #9aa0a6;
    --gray-500: #6b7280;
    --gray-600: #4b5563;
    --gray-700: #374151;
    --gray-800: #1f2937;
    --gray-900: #111827;
    --font: "Poppins", system-ui, -apple-system, sans-serif;
    --w: 1320px;
    --border-50: 50px;
}
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}
html {
    scroll-behavior: smooth;
}
body {
    font-family: var(--font);
    color: var(--gray-800);
    line-height: 1.55;
    background: #fff;
    overflow-x: hidden;
}
a {
    text-decoration: none;
    color: inherit;
}
ul {
    list-style: none;
}
img {
    max-width: 100%;
    display: block;
}
button,
input,
select {
    font-family: inherit;
    border: 0;
    outline: 0;
    background: none;
}
.wrap {
    width: 100%;
    max-width: var(--w);
    margin: 0 auto;
    padding: 0 24px;
}

/* Top bar: idioma à esquerda | menu + redes juntos à direita */
.top-bar {
    font-size: 12px;
}
.top-bar .wrap {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 42px;
    gap: 16px;
}
.lang-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--gray-600);
    cursor: pointer;
    font-size: 12px;
}
.lang-btn:hover {
    color: #fff;
}
.top-right {
    display: flex;
    align-items: center;
    gap: 22px;
}
.top-nav {
    display: flex;
    align-items: center;
    gap: 18px;
}
.top-nav a {
    color: var(--gray-600);
    font-size: 12px;
    font-weight: 500;
    position: relative;
}
.top-nav a:hover {
    color: var(--primary-dark);
}
.top-nav a .tag-new {
    position: absolute;
    top: -10px;
    right: -22px;
    background: #ff3b5c;
    color: #fff;
    font-size: 8px;
    font-weight: 700;
    padding: 1px 4px;
    text-transform: uppercase;
}
.top-social {
    display: flex;
    align-items: center;
    gap: 14px;
}
.top-social a {
    color: rgba(255, 255, 255, 0.75);
    font-size: 13px;
}
.top-social a:hover {
    color: #fff;
}

/* Header: logo | search centrado | ações  (space-between) */
.header-main {
    padding: 16px 0 12px;
}
.header-main .wrap {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}
.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #fff;
    font-size: 18px;
    font-weight: 700;
    flex-shrink: 0;
}
.logo-mark {
    width: 38px;
    height: 38px;

    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 13px;
}
.header-search {
    display: flex;
    align-items: stretch;
    background: var(--gray-100);
    height: 46px;
    flex: 1;
    max-width: 520px;
    position: relative;
    margin: 0 auto;
}
.search-cat {
    position: relative;
    flex-shrink: 0;
}
.search-cat-btn {
    height: 100%;
    padding: 0 16px;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    font-weight: 600;
    color: var(--gray-700);
    border-right: 1px solid var(--gray-200);
    cursor: default;
    white-space: nowrap;
    background: var(--gray-100);
}
.search-cat-btn .fa-chevron-down {
    font-size: 9px;
    color: var(--gray-400);
}
/* Categorias ao HOVER (não clique) */
.search-cat-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 220px;
    background: #fff;
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.14);
    z-index: 50;
}
.search-cat:hover .search-cat-menu,
.search-cat-menu:hover {
    display: block;
}
.search-cat-menu button {
    display: block;
    width: 100%;
    text-align: left;
    padding: 11px 16px;
    font-size: 13px;
    color: var(--gray-700);
    cursor: pointer;
}
.search-cat-menu button:hover {
    background: #f3eef9;
    color: var(--primary);
}
.header-search input {
    flex: 1;
    padding: 0 14px;
    font-size: 13px;
    color: var(--gray-800);
    min-width: 0;
}
.header-search input::placeholder {
    color: var(--gray-400);
}
.header-search .search-go {
    width: 50px;
    background: var(--primary);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    flex-shrink: 0;
}
.header-search .search-go:hover {
    background: var(--primary-dark);
}
.header-actions {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-shrink: 0;
}
.header-actions a,
.header-actions .link-login {
    font-size: 13px;
    font-weight: 500;
    color: r(--gray-100);
    display: inline-flex;
    align-items: center;
    gap: 7px;
    cursor: pointer;
}
.header-actions a:hover,
.header-actions .link-login:hover {
    color: var(--primary);
}
.btn-signup {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 22px;
    background: var(--primary);
    color: #fff;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    cursor: pointer;
    border-radius: 50px;
}
.btn-signup:hover {
    background: var(--primary-dark);
}
.icon-heart {
    color: var(--gray-500);
    font-size: 16px;
    cursor: pointer;
}
.icon-heart:hover {
    color: var(--primary);
}
.mobile-toggle {
    display: none;
    color: var(--gray-800);
    font-size: 22px;
    cursor: pointer;
}

/* Mobile nav */
.mobile-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
    z-index: 3000;
}
.mobile-overlay.show {
    display: block;
}
.mobile-nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100%;
    background: #fff;
    z-index: 3001;
    padding: 60px 20px 20px;
    box-shadow: -4px 0 20px rgba(0, 0, 0, 0.1);
    transition: right 0.3s;
}
.mobile-nav.open {
    right: 0;
}
.mobile-nav a {
    display: block;
    padding: 12px 0;
    border-bottom: 1px solid var(--gray-200);
    font-size: 14px;
    color: var(--gray-800);
}
.mobile-nav a:hover {
    color: var(--primary);
}
.close-mobile {
    position: absolute;
    top: 16px;
    right: 16px;
    font-size: 20px;
    cursor: pointer;
    color: var(--gray-700);
}

/* Login modal — recto */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
    z-index: 20000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    visibility: hidden;
    transition:
        opacity 0.2s,
        visibility 0.2s;
}
.modal-overlay.open {
    opacity: 1;
    visibility: visible;
}
.modal-login {
    background: #fff;
    width: 100%;
    max-width: 400px;
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.25);
    transform: translateY(8px);
    transition: transform 0.2s;
}
.modal-overlay.open .modal-login {
    transform: translateY(0);
}
.modal-login-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    border-bottom: 1px solid var(--gray-200);
}
.modal-login-head h3 {
    font-size: 16px;
    font-weight: 600;
    color: var(--gray-900);
    margin: 0;
}
.modal-close {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: var(--gray-500);
    font-size: 16px;
}
.modal-login-body {
    padding: 20px;
}
.form-group {
    margin-bottom: 14px;
}
.form-group label {
    display: block;
    font-size: 12px;
    font-weight: 500;
    color: var(--gray-700);
    margin-bottom: 5px;
}
.form-control {
    width: 100%;
    padding: 11px 12px;
    border: 1px solid var(--gray-200);
    font-size: 13px;
    color: var(--gray-800);
    background: #fff;
}
.form-control:focus {
    border-color: var(--primary);
}
.form-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
    font-size: 12px;
    color: var(--gray-600);
}
.form-meta label {
    display: flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
}
.form-meta a {
    color: var(--primary);
}
.btn-submit {
    width: 100%;
    padding: 12px;
    background: var(--primary);
    color: #fff;
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    cursor: pointer;
}
.btn-submit:hover {
    background: var(--primary-dark);
}
.modal-or {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 16px 0;
    font-size: 11px;
    color: var(--gray-400);
    text-transform: uppercase;
}
.modal-or::before,
.modal-or::after {
    content: "";
    flex: 1;
    height: 1px;
    background: var(--gray-200);
}
.modal-social {
    display: flex;
    gap: 8px;
}
.modal-social button {
    flex: 1;
    padding: 10px;
    border: 1px solid var(--gray-200);
    font-size: 12px;
    color: var(--gray-700);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}
.modal-social button:hover {
    border-color: var(--primary);
    color: var(--primary);
}
.modal-foot {
    text-align: center;
    margin-top: 16px;
    font-size: 12px;
    color: var(--gray-600);
}
.modal-foot a {
    color: var(--primary);
    font-weight: 600;
}

/* Footer reutilizável */
.footer {
    background: #fff;
    border-top: 1px solid var(--gray-200);
    padding: 48px 0 0;
    color: var(--gray-500);
    font-size: 13px;
}
.footer-grid {
    display: grid;
    grid-template-columns: 1.3fr 1fr 1fr 1.3fr;
    gap: 36px;
    padding-bottom: 40px;
}
.footer h4 {
    font-size: 13px;
    font-weight: 700;
    color: var(--gray-900);
    text-transform: uppercase;
    letter-spacing: 0.4px;
    margin-bottom: 14px;
}
.footer p {
    line-height: 1.7;
    margin-bottom: 8px;
}
.footer a:hover {
    color: var(--primary);
}
.footer-links li {
    margin-bottom: 8px;
}
.footer-social {
    display: flex;
    gap: 12px;
    margin-top: 12px;
}
.footer-social a {
    color: var(--gray-500);
    font-size: 14px;
}
.footer-blog-item {
    display: flex;
    gap: 10px;
    margin-bottom: 12px;
    align-items: flex-start;
}
.footer-blog-item img {
    width: 54px;
    height: 54px;
    object-fit: cover;
    flex-shrink: 0;
}
.footer-blog-item .meta {
    font-size: 12px;
    line-height: 1.4;
}
.footer-blog-item .meta strong {
    display: block;
    color: var(--gray-800);
    font-weight: 500;
    margin-bottom: 2px;
}
.footer-blog-item .meta span {
    color: var(--gray-400);
    font-size: 11px;
}
.footer-bottom {
    border-top: 1px solid var(--gray-200);
    padding: 16px 0;
    text-align: center;
    font-size: 12px;
    color: var(--gray-400);
}

@media (max-width: 900px) {
    .top-nav {
        display: none;
    }
    .header-actions .hide-m {
        display: none;
    }
    .mobile-toggle {
        display: block;
    }
    .header-search {
        max-width: 220px;
    }
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}
@media (max-width: 600px) {
    .header-search {
        display: none;
    }
    .footer-grid {
        grid-template-columns: 1fr;
    }
    .top-bar .wrap {
        grid-template-columns: 1fr auto;
    }
    .top-social {
        display: none;
    }
}
