/* ─── Reset & Base ─────────────────────────────────────── */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Poppins', sans-serif;
    color: #333;
    background: #f5f5f7;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
}

img {
    max-width: 100%;
    display: block;
}

/* ─── CSS Variables ─────────────────────────────────────── */
:root {
    --purple-dark: #4a1a8a;
    --purple: #6b2fa0;
    --purple-mid: #8b3fc0;
    --pink: #c0306a;
    --orange: #f7931e;
    --orange-light: #ffb347;
    --blue: #1565c0;
    --blue-mid: #1e88e5;
    --blue-light: #42a5f5;
    --white: #ffffff;
    --gray-bg: #f5f5f7;
    --text-dark: #1a1a2e;
    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
    --shadow-hover: 0 16px 48px rgba(0, 0, 0, 0.2);
}

/* ─── Header ────────────────────────────────────────────── */
header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.97);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.08);
    padding: 0 5%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 70px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    transition: opacity 0.2s;
}

.logo:hover {
    opacity: 0.8;
}

.logo-icon {
    width: 44px;
    height: 44px;
    background: linear-gradient(135deg, var(--purple), var(--orange));
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.logo-icon svg {
    width: 26px;
    height: 26px;
    fill: #fff;
}

.logo-text {
    line-height: 1.1;
}

.logo-text span:first-child {
    display: block;
    font-size: 1rem;
    font-weight: 800;
    color: var(--purple-dark);
    letter-spacing: -0.3px;
}

.logo-text span:last-child {
    display: block;
    font-size: 0.65rem;
    font-weight: 600;
    color: var(--orange);
    letter-spacing: 2px;
    text-transform: uppercase;
}

nav {
    display: flex;
    align-items: center;
    gap: 32px;
}

nav a {
    font-size: 0.875rem;
    font-weight: 500;
    color: #444;
    position: relative;
    padding-bottom: 3px;
    transition: color 0.2s;
}

nav a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--purple);
    transition: width 0.3s;
}

nav a:hover {
    color: var(--purple);
}

nav a:hover::after,
nav a.active::after {
    width: 100%;
}

nav a.active {
    color: var(--purple);
    font-weight: 600;
}

.btn-entrar {
    background: linear-gradient(135deg, var(--purple), var(--pink));
    color: #fff !important;
    padding: 10px 24px;
    border-radius: 50px;
    font-size: 0.875rem;
    font-weight: 600;
    transition: transform 0.2s, box-shadow 0.2s !important;
    box-shadow: 0 4px 16px rgba(107, 47, 160, 0.35);
}

.btn-entrar:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(107, 47, 160, 0.5) !important;
}

/* Remove a linha roxa de baixo se houver */
.btn-entrar::after {
    display: none !important;
}

/* ─── Hero Interno (Recursos) ───────────────────────────── */
.hero-internal {
    background: linear-gradient(135deg, var(--blue-mid), var(--purple-dark));
    min-height: 300px;
    padding: 120px 5% 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
}

.hero-internal::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 100%;
    height: 40px;
    background: #f5f5f7;
    clip-path: polygon(0 100%, 100% 100%, 0 0);
}

.hero-internal h1 {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 900;
    color: #fff;
    margin-bottom: 10px;
}

.hero-internal p {
    font-size: 1.05rem;
    color: rgba(255, 255, 255, 0.85);
    max-width: 600px;
    margin: 0 auto;
}

/* ─── Ferramentas de Busca e Filtro ─────────────────────── */
.filter-btn {
    padding: 10px 24px;
    border: 2px solid var(--purple);
    background: transparent;
    color: var(--purple);
    border-radius: 50px;
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.filter-btn:hover {
    background: var(--purple);
    color: #fff;
}

.filter-btn.active {
    background: linear-gradient(135deg, var(--purple), var(--pink));
    color: #fff;
    border-color: transparent;
    box-shadow: 0 4px 12px rgba(107, 47, 160, 0.3);
}

/* ─── Search Bar ────────────────────────────────────────── */
.search-container {
    display: flex;
    justify-content: center;
    margin-bottom: 20px;
}

.search-input {
    width: 100%;
    max-width: 500px;
    padding: 12px 20px;
    border: 2px solid #e0e0e0;
    border-radius: 50px;
    font-size: 1rem;
    font-family: 'Poppins', sans-serif;
    transition: all 0.3s ease;
    background: #fff;
    color: #333;
}

.search-input::placeholder {
    color: #999;
}

.search-input:focus {
    outline: none;
    border-color: var(--purple);
    box-shadow: 0 0 0 3px rgba(107, 47, 160, 0.1);
}

/* ─── Grid de Recursos ──────────────────────────────────── */
.resources-grid {
    max-width: 1200px;
    margin: 40px auto 100px;
    padding: 0 5%;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
}

.resource-card {
    background: #fff;
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
    transition: transform 0.3s, box-shadow 0.3s;
    display: flex;
    flex-direction: column;
}

.resource-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-hover);
}

.rc-banner {
    width: 100%;
    height: 160px;
    background: #eee;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.rc-banner svg {
    width: 50px;
    height: 50px;
    opacity: 0.7;
}

/* Cores dos banners ilustrativos */
.bg-orange {
    background: linear-gradient(135deg, var(--orange-light), var(--orange));
}

.bg-blue {
    background: linear-gradient(135deg, var(--blue-light), var(--blue-mid));
}

.bg-purple {
    background: linear-gradient(135deg, var(--purple-mid), var(--purple-dark));
}

.bg-pink {
    background: linear-gradient(135deg, #ff758c, var(--pink));
}

.rc-body {
    padding: 24px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.rc-tag {
    display: inline-block;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--purple);
    background: rgba(107, 47, 160, 0.1);
    padding: 4px 10px;
    border-radius: 4px;
    margin-bottom: 12px;
    align-self: flex-start;
}

.rc-body h3 {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 8px;
}

.rc-body p {
    font-size: 0.85rem;
    color: #666;
    line-height: 1.5;
    margin-bottom: 20px;
    flex: 1;
}

.btn-action {
    display: block;
    text-align: center;
    padding: 12px;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 600;
    transition: all 0.2s;
}

.btn-download {
    background: rgba(30, 136, 229, 0.1);
    color: var(--blue-mid);
}

.btn-download:hover {
    background: var(--blue-mid);
    color: #fff;
}

.btn-access {
    background: rgba(247, 147, 30, 0.1);
    color: var(--orange);
}

.btn-access:hover {
    background: var(--orange);
    color: #fff;
}

/* ─── Card Actions (Botões de Link e PDF) ──────────────── */
.card-actions {
    display: flex;
    gap: 12px;
    margin-top: auto;
    flex-wrap: wrap;
}

.btn-action {
    padding: 8px 16px;
    border-radius: var(--radius-sm);
    font-size: 0.85rem;
    font-weight: 600;
    font-family: 'Poppins', sans-serif;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 1.5px solid transparent;
}

.btn-video {
    background-color: rgba(247, 147, 30, 0.1);
    color: var(--orange);
    border-color: var(--orange);
}

.btn-video:hover {
    background-color: var(--orange);
    color: #fff;
    box-shadow: 0 4px 12px rgba(247, 147, 30, 0.3);
}

.btn-pdf {
    background-color: rgba(107, 47, 160, 0.1);
    color: var(--purple);
    border-color: var(--purple);
}

.btn-pdf:hover {
    background-color: var(--purple);
    color: #fff;
    box-shadow: 0 4px 12px rgba(107, 47, 160, 0.3);
}

/* ─── Footer ────────────────────────────────────────────── */
footer {
    background: linear-gradient(135deg, var(--purple-dark), #2d0a5a);
    padding: 32px 5%;
    text-align: center;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 24px;
    margin-bottom: 16px;
}

.footer-links a {
    font-size: 0.82rem;
    color: rgba(255, 255, 255, 0.7);
    transition: color 0.2s;
}

.footer-links a:hover {
    color: #fff;
}

.footer-divider {
    color: rgba(255, 255, 255, 0.3);
}

footer p {
    font-size: 0.78rem;
    color: rgba(255, 255, 255, 0.45);
}

/* ─── Responsive ────────────────────────────────────────── */
@media (max-width: 640px) {
    nav {
        gap: 16px;
    }

    nav a {
        font-size: 0.78rem;
    }

    .hero-internal {
        padding: 100px 5% 40px;
    }

    .search-bar {
        flex-direction: column;
        border-radius: var(--radius-md);
        padding: 10px;
    }

    .search-bar input {
        padding: 10px;
        margin-bottom: 10px;
    }

    .search-bar button {
        width: 100%;
        border-radius: 8px;
    }
}

.logo-img {
    width: 150px;
    height: 150px;
    object-fit: contain;
    /* Garante que a imagem não fique esticada */
    border-radius: 12px;
    /* Mantém as bordas arredondadas do design original */
    flex-shrink: 0;
}

.nav-img-link {
    display: flex;
    align-items: center;
    padding: 0 10px;
}

.nav-icon {
    height: 35px;
    /* Ajuste essa altura para combinar com o tamanho da sua fonte */
    width: auto;
    transition: transform 0.3s ease;
    cursor: pointer;
}

/* Efeito de aumentar levemente ao passar o mouse */
.nav-icon:hover {
    transform: scale(1.1);
}

/* Ajuste para dispositivos móveis (opcional) */
@media (max-width: 768px) {
    .nav-icon {
        height: 30px;
    }
}

/* Estilização ajustada para a imagem ficar menor */
.nav-img-link {
    display: flex;
    align-items: center;
    padding: 0 8px;
    /* Reduzi um pouco o espaçamento lateral */
}

.nav-icon {
    height: 20px;
    /* Mude aqui: 25px deixa a imagem bem discreta e alinhada ao texto */
    width: auto;
    transition: transform 0.3s ease;
    cursor: pointer;
    object-fit: contain;
    /* Garante que a imagem não distorça */
}

/* Efeito de destaque ao passar o mouse */
.nav-icon:hover {
    transform: scale(1.1);
}

