/* ============================================================
   CemTI · style.css — Tema Cosmos v2 (visual impactante)
   ============================================================ */

:root {
    --cosmos:  #020912;
    --nebula:  #1A0A3C;
    --cyan:    #00D4FF;
    --violet:  #7B2FBE;
    --white:   #F0F4FF;
    --dim:     #8892B0;
    --surface: rgba(255,255,255,0.05);
    --border:  rgba(0,212,255,0.25);   /* visível, não sutil */
    --radius:  14px;
    --nav-h:   64px;
}

/* --- Reset ------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

/* --- Body: espaço sideral com profundidade ----------------- */
body {
    background:
        radial-gradient(ellipse 120% 60% at 20% 0%,   rgba(123,47,190,0.18) 0%, transparent 55%),
        radial-gradient(ellipse 80%  50% at 80% 100%, rgba(0,212,255,0.12)  0%, transparent 50%),
        #020912;
    color: var(--white);
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1rem;
    line-height: 1.65;
    min-height: 100vh;
    overflow-x: hidden;
}

a { color: var(--cyan); text-decoration: none; }
a:hover { color: var(--white); }
img { max-width: 100%; }

/* --- Canvas ------------------------------------------------ */
#stars-canvas,
#neural-canvas {
    position: fixed;
    inset: 0;
    pointer-events: none;
}
#stars-canvas  { z-index: 0; }
/* Opacidade alta — rede neural precisa ser VISTA */
#neural-canvas { z-index: 1; opacity: 0.75; }

/* --- Orbs animações (JS cria inline, CSS só define keyframes) */
@keyframes orbFloat {
    0%   { transform: translate(0,0)     scale(1); }
    100% { transform: translate(32px,32px) scale(1.12); }
}
@keyframes orbFloat3 {
    0%   { transform: translateX(-50%) translate(0,0)     scale(1); }
    100% { transform: translateX(-50%) translate(18px,22px) scale(1.08); }
}

/* --- NAV --------------------------------------------------- */
.cemti-nav {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 1000;
    height: var(--nav-h);
    background: rgba(2,9,18,0.92);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(0,212,255,0.2);
    box-shadow: 0 2px 30px rgba(0,0,0,0.5);
}
.cemti-nav__inner {
    max-width: 1200px;
    margin: 0 auto;
    height: 100%;
    padding: 0 1.5rem;
    display: flex;
    align-items: center;
    gap: 2rem;
}
.cemti-nav__logo {
    display: flex;
    align-items: center;
    gap: .5rem;
    flex-shrink: 0;
    font-family: 'Orbitron', sans-serif;
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--cyan);
    text-shadow: 0 0 12px rgba(0,212,255,0.6);
}
.cemti-nav__logo img { height: 36px; width: auto; }

.cemti-nav__list {
    display: flex;
    align-items: center;
    gap: .25rem;
    list-style: none;
    margin-left: auto;
}
.cemti-nav__item { position: relative; }
.cemti-nav__link {
    display: flex;
    align-items: center;
    gap: .3rem;
    padding: .45rem .85rem;
    border-radius: 6px;
    color: var(--dim);
    font-size: .9rem;
    font-weight: 500;
    transition: color .2s, background .2s, text-shadow .2s;
    white-space: nowrap;
    cursor: pointer;
}
.cemti-nav__link:hover {
    color: var(--cyan);
    background: rgba(0,212,255,0.08);
    text-shadow: 0 0 8px rgba(0,212,255,0.5);
}
.cemti-nav__arrow { font-size: .7rem; transition: transform .2s; }
.has-dropdown.dropdown-open > .cemti-nav__link {
    color: var(--cyan);
    background: rgba(0,212,255,0.08);
    text-shadow: 0 0 8px rgba(0,212,255,0.5);
}
.has-dropdown.dropdown-open .cemti-nav__arrow { transform: rotate(180deg); }

.cemti-nav__dropdown {
    display: none;
    position: absolute;
    top: calc(100% + 8px);
    left: 50%;
    transform: translateX(-50%);
    min-width: 215px;
    list-style: none;
    background: rgba(2,9,18,0.98);
    border: 1px solid rgba(0,212,255,0.3);
    border-radius: 10px;
    padding: .4rem 0;
    box-shadow: 0 8px 40px rgba(0,0,0,.7), 0 0 20px rgba(0,212,255,0.08);
    z-index: 10;
    animation: dropdownIn .18s ease;
}
.has-dropdown.dropdown-open .cemti-nav__dropdown { display: block; }
@keyframes dropdownIn {
    from { opacity: 0; transform: translateX(-50%) translateY(-8px); }
    to   { opacity: 1; transform: translateX(-50%) translateY(0); }
}
.cemti-nav__dropdown li a {
    display: block;
    padding: .6rem 1.2rem;
    color: var(--dim);
    font-size: .88rem;
    transition: color .15s, background .15s, text-shadow .15s;
}
.cemti-nav__dropdown li a:hover {
    color: var(--cyan);
    background: rgba(0,212,255,0.08);
    text-shadow: 0 0 6px rgba(0,212,255,0.4);
}

.cemti-nav__toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 36px; height: 36px;
    padding: 4px;
    background: none;
    border: none;
    cursor: pointer;
    margin-left: auto;
}
.cemti-nav__toggle span {
    display: block;
    height: 2px;
    background: var(--dim);
    border-radius: 2px;
    transition: transform .25s, opacity .25s, background .25s;
}
.cemti-nav__toggle:hover span { background: var(--cyan); }
.cemti-nav__toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.cemti-nav__toggle.open span:nth-child(2) { opacity: 0; }
.cemti-nav__toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* --- MAIN -------------------------------------------------- */
#cemti-main {
    position: relative;
    z-index: 2;
    padding-top: var(--nav-h);
    min-height: calc(100vh - var(--nav-h));
}
#cemti-main.container.py-4 { padding-top: calc(var(--nav-h) + 1.5rem); }

/* ============================================================
   ANIMAÇÕES ENTRADA HERO
   ============================================================ */
@keyframes heroEntrance {
    from { opacity: 0; transform: translateY(26px); }
    to   { opacity: 1; transform: none; }
}
@keyframes tagBounceIn {
    0%   { opacity: 0; transform: scale(0.7) translateY(12px); }
    55%  { transform: scale(1.1) translateY(-3px); }
    80%  { transform: scale(0.97) translateY(1px); }
    100% { opacity: 1; transform: scale(1) translateY(0); }
}
@keyframes slideInLeft {
    from { opacity: 0; transform: translateX(-40px); }
    to   { opacity: 1; transform: none; }
}

.hero__badge  { animation: heroEntrance .55s ease both 0.1s; }
.hero__title .line-1 { display: block; animation: heroEntrance .65s ease both 0.38s; }
.hero__title .line-2 { display: block; animation: heroEntrance .65s ease both 0.54s; }
.hero__title .line-3 { display: block; animation: heroEntrance .65s ease both 0.70s; }
.hero__subtitle { animation: heroEntrance .5s ease both 0.90s; }
.hero__tagline  { animation: heroEntrance .5s ease both 1.05s; }
.stack-tag      { animation: tagBounceIn .55s cubic-bezier(0.34,1.56,0.64,1) both; }
.hero__btns     { animation: heroEntrance .5s ease both 1.80s; }
.hero__scroll   { animation: heroEntrance .5s ease both 2.00s; }

/* --- HERO -------------------------------------------------- */
.hero {
    min-height: 92vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 6rem 1.5rem 3rem;
    position: relative;
    overflow: hidden;
}

/* Partículas flutuantes (8) */
.hero__particles {
    position: absolute;
    inset: 0;
    pointer-events: none;
}
.particle {
    position: absolute;
    border-radius: 50%;
    opacity: 0;
    animation: particleRise var(--dur, 7s) ease-in infinite var(--delay, 0s);
    left: var(--x, 50%);
    bottom: 5%;
}
@keyframes particleRise {
    0%   { opacity: 0;   transform: translateY(0)     scale(0.5); }
    15%  { opacity: 0.9; }
    80%  { opacity: 0.3; }
    100% { opacity: 0;   transform: translateY(-75vh) scale(2.0); }
}
.particle:nth-child(1) { width:4px; height:4px; --x:8%;  --dur:7.2s; --delay:0.2s;  background:rgba(0,212,255,0.9);   box-shadow:0 0 6px #00D4FF; }
.particle:nth-child(2) { width:3px; height:3px; --x:22%; --dur:5.5s; --delay:1.3s;  background:rgba(123,47,190,0.9);  box-shadow:0 0 6px #7B2FBE; }
.particle:nth-child(3) { width:5px; height:5px; --x:38%; --dur:8.5s; --delay:0.7s;  background:rgba(0,212,255,0.85);  box-shadow:0 0 8px #00D4FF; }
.particle:nth-child(4) { width:3px; height:3px; --x:52%; --dur:6.2s; --delay:2.0s;  background:rgba(123,47,190,0.85); box-shadow:0 0 6px #7B2FBE; }
.particle:nth-child(5) { width:4px; height:4px; --x:66%; --dur:7.8s; --delay:0.4s;  background:rgba(0,212,255,0.9);   box-shadow:0 0 8px #00D4FF; }
.particle:nth-child(6) { width:3px; height:3px; --x:80%; --dur:5.9s; --delay:3.0s;  background:rgba(123,47,190,0.9);  box-shadow:0 0 6px #7B2FBE; }
.particle:nth-child(7) { width:4px; height:4px; --x:91%; --dur:6.8s; --delay:1.6s;  background:rgba(0,212,255,0.85);  box-shadow:0 0 6px #00D4FF; }
.particle:nth-child(8) { width:3px; height:3px; --x:45%; --dur:7.0s; --delay:4.2s;  background:rgba(123,47,190,0.8);  box-shadow:0 0 6px #7B2FBE; }

/* Badge */
.hero__badge {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    padding: .4rem 1rem;
    border-radius: 99px;
    border: 1px solid rgba(0,212,255,0.4);
    background: rgba(0,212,255,0.08);
    color: var(--cyan);
    font-size: .82rem;
    font-weight: 500;
    letter-spacing: .06em;
    margin-bottom: 2rem;
    box-shadow: 0 0 16px rgba(0,212,255,0.15), inset 0 0 12px rgba(0,212,255,0.06);
}
.hero__badge-dot {
    width: 8px; height: 8px;
    border-radius: 50%;
    background: var(--cyan);
    box-shadow: 0 0 8px #00D4FF, 0 0 16px #00D4FF;
    animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse {
    0%,100% { opacity: 1; transform: scale(1);   box-shadow: 0 0 8px #00D4FF, 0 0 16px #00D4FF; }
    50%      { opacity: .5; transform: scale(.7); box-shadow: 0 0 4px #00D4FF; }
}

/* Título: enorme e imponente */
.hero__title {
    font-family: 'Orbitron', sans-serif;
    font-size: clamp(2.8rem, 8vw, 6.5rem);
    font-weight: 900;
    line-height: 1.06;
    margin-bottom: 1.5rem;
    letter-spacing: -.02em;
    will-change: transform;
}
.hero__title .line-1 {
    color: var(--cyan);
    text-shadow:
        0 0 30px rgba(0,212,255,0.9),
        0 0 60px rgba(0,212,255,0.5),
        0 0 100px rgba(0,212,255,0.25);
}
.hero__title .line-2 {
    color: rgba(240,244,255,0.45);
}
.hero__title .line-3 {
    color: var(--cyan);
    text-shadow:
        0 0 40px rgba(0,212,255,1.0),
        0 0 80px rgba(0,212,255,0.6),
        0 0 140px rgba(0,212,255,0.3),
        0 0 200px rgba(123,47,190,0.2);
}

.hero__subtitle {
    font-size: clamp(1.05rem, 2.5vw, 1.35rem);
    color: rgba(136,146,176,0.9);
    max-width: 560px;
    margin: 0 auto .5rem;
}
.hero__tagline {
    font-size: .92rem;
    color: rgba(136,146,176,.6);
    letter-spacing: .04em;
    margin-bottom: 2.2rem;
}

/* Stack tags neon */
.hero__stack {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: .55rem;
    margin-bottom: 2.5rem;
}
.stack-tag {
    padding: .35rem .85rem;
    border-radius: 99px;
    border: 1px solid rgba(0,212,255,0.45);
    background: rgba(0,212,255,0.08);
    color: var(--cyan);
    font-size: .8rem;
    font-weight: 600;
    letter-spacing: .04em;
    box-shadow: 0 0 10px rgba(0,212,255,0.2), inset 0 0 8px rgba(0,212,255,0.05);
    text-shadow: 0 0 8px rgba(0,212,255,0.7);
    transition: box-shadow .2s, background .2s;
}
.stack-tag:hover {
    background: rgba(0,212,255,0.15);
    box-shadow: 0 0 18px rgba(0,212,255,0.4);
}

/* Botões com gradiente e glow */
.hero__btns {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 3.5rem;
}
.btn {
    display: inline-flex;
    align-items: center;
    gap: .45rem;
    padding: .75rem 1.8rem;
    border-radius: 8px;
    font-weight: 700;
    font-size: 1rem;
    transition: all .25s;
    cursor: pointer;
    border: none;
    letter-spacing: .02em;
}
.btn-primary {
    background: linear-gradient(135deg, #00D4FF 0%, #7B2FBE 100%);
    color: #fff;
    box-shadow: 0 4px 20px rgba(0,212,255,0.35), 0 4px 40px rgba(123,47,190,0.2);
}
.btn-primary:hover {
    background: linear-gradient(135deg, #33DFFF 0%, #9B3FDE 100%);
    transform: translateY(-3px);
    box-shadow: 0 8px 32px rgba(0,212,255,0.5), 0 8px 60px rgba(123,47,190,0.35);
    color: #fff;
}
.btn-outline {
    background: transparent;
    color: var(--white);
    border: 1.5px solid rgba(0,212,255,0.45);
    box-shadow: 0 0 12px rgba(0,212,255,0.1);
}
.btn-outline:hover {
    border-color: var(--cyan);
    color: var(--cyan);
    transform: translateY(-3px);
    box-shadow: 0 0 24px rgba(0,212,255,0.3);
    text-shadow: 0 0 8px rgba(0,212,255,0.5);
}

/* Seta scroll */
.hero__scroll {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: .4rem;
    color: rgba(136,146,176,0.6);
    font-size: .72rem;
    letter-spacing: .1em;
    animation: heroEntrance .5s ease both 2s, scrollBounce 2s ease-in-out 2.5s infinite;
}
.hero__scroll-arrow {
    width: 20px; height: 20px;
    border-right: 2px solid rgba(0,212,255,0.5);
    border-bottom: 2px solid rgba(0,212,255,0.5);
    transform: rotate(45deg);
    margin-top: .2rem;
    box-shadow: 3px 3px 8px rgba(0,212,255,0.2);
}
@keyframes scrollBounce {
    0%,100% { transform: translateY(0); }
    50%      { transform: translateY(9px); }
}

/* --- SEÇÃO GENÉRICA --------------------------------------- */
.section {
    padding: 5rem 1.5rem;
    max-width: 1200px;
    margin: 0 auto;
}
.section__header { text-align: center; margin-bottom: 3.5rem; }
.section__eyebrow {
    display: inline-block;
    color: var(--cyan);
    font-size: .78rem;
    font-weight: 700;
    letter-spacing: .14em;
    text-transform: uppercase;
    margin-bottom: .7rem;
    text-shadow: 0 0 10px rgba(0,212,255,0.6);
}
.section__title {
    font-family: 'Orbitron', sans-serif;
    font-size: clamp(1.7rem, 4vw, 2.6rem);
    font-weight: 700;
    margin-bottom: .7rem;
    text-shadow: 0 0 30px rgba(0,212,255,0.2);
}
.section__desc { color: var(--dim); max-width: 520px; margin: 0 auto; }

/* Separador decorativo entre seções */
.section + .section::before {
    content: '';
    display: block;
    width: 80px;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--cyan), transparent);
    margin: 0 auto 5rem;
    box-shadow: 0 0 12px rgba(0,212,255,0.5);
}

/* --- ESPORTES -------------------------------------------- */
.sports-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
    gap: 1.75rem;
}
.sport-card {
    position: relative;
    display: block;
    background: linear-gradient(145deg, rgba(255,255,255,0.06) 0%, rgba(255,255,255,0.02) 100%);
    border: 1.5px solid rgba(0,212,255,0.25);
    border-radius: var(--radius);
    padding: 2.2rem;
    text-align: center;
    color: var(--white);
    text-decoration: none;
    transition: transform .3s cubic-bezier(0.34,1.56,0.64,1), border-color .3s;
    box-shadow: 0 4px 20px rgba(0,0,0,0.3), inset 0 1px 0 rgba(255,255,255,0.06);
}
/* Barra de acento no topo */
.sport-card::before {
    content: '';
    position: absolute;
    top: 0; left: 10%; right: 10%;
    height: 3px;
    border-radius: 0 0 4px 4px;
    background: var(--accent, var(--cyan));
    box-shadow: 0 0 16px var(--accent, var(--cyan)), 0 0 32px var(--accent, var(--cyan));
}
/* Glow pulsante na borda ao hover */
@keyframes cardGlow {
    from { box-shadow: 0 8px 32px rgba(0,0,0,.4),  0 0 16px -4px var(--accent, var(--cyan)); }
    to   { box-shadow: 0 20px 64px rgba(0,0,0,.6), 0 0 40px -4px var(--accent, var(--cyan)), 0 0 80px -12px var(--accent-glow, rgba(0,212,255,0.3)); }
}
.sport-card:hover {
    transform: scale(1.04) translateY(-8px);
    border-color: var(--accent, var(--cyan));
    animation: cardGlow 1.0s ease-in-out infinite alternate;
}
.sport-card__icon  { font-size: 3.2rem; margin-bottom: 1rem; filter: drop-shadow(0 0 8px rgba(255,255,255,0.3)); }
.sport-card__title {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--accent, var(--cyan));
    margin-bottom: .65rem;
    text-shadow: 0 0 14px var(--accent, var(--cyan));
}
.sport-card__desc { color: rgba(136,146,176,0.85); font-size: .9rem; margin-bottom: 1.6rem; line-height: 1.55; }
.sport-card__link {
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    color: var(--accent, var(--cyan));
    font-size: .85rem;
    font-weight: 700;
    letter-spacing: .05em;
    transition: gap .2s, text-shadow .2s;
    text-shadow: 0 0 8px var(--accent, var(--cyan));
}
.sport-card:hover .sport-card__link { gap: .7rem; }

/* --- SEÇÕES (8 cards) ------------------------------------- */
.content-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(265px, 1fr));
    gap: 1.35rem;
}
.content-card {
    background: linear-gradient(145deg, rgba(255,255,255,0.055) 0%, rgba(255,255,255,0.02) 100%);
    border: 1.5px solid rgba(0,212,255,0.18);
    border-radius: var(--radius);
    padding: 1.75rem;
    transition: transform .25s, box-shadow .25s, border-color .25s;
    cursor: default;
    box-shadow: 0 2px 12px rgba(0,0,0,0.25);
}
.content-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 16px 48px rgba(0,0,0,.4), 0 0 24px rgba(0,212,255,0.1);
    border-color: rgba(0,212,255,0.45);
}
.content-card__icon {
    font-size: 2.2rem;
    margin-bottom: .9rem;
    display: inline-block;
    filter: drop-shadow(0 0 6px rgba(0,212,255,0.3));
}
@keyframes iconBounce {
    0%   { transform: scale(1) translateY(0); }
    35%  { transform: scale(1.3) translateY(-5px); }
    65%  { transform: scale(0.9) translateY(2px); }
    100% { transform: scale(1) translateY(0); }
}
.content-card:hover .content-card__icon {
    animation: iconBounce .45s cubic-bezier(0.36,0.07,0.19,0.97) both;
}
.content-card__title {
    font-family: 'Orbitron', sans-serif;
    font-size: .92rem;
    font-weight: 700;
    color: var(--white);
    margin-bottom: .55rem;
    text-shadow: 0 0 8px rgba(0,212,255,0.15);
}
.content-card__desc { color: rgba(136,146,176,0.8); font-size: .85rem; line-height: 1.6; }

/* --- Reveal ----------------------------------------------- */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity .6s ease, transform .6s ease;
}
.reveal.visible { opacity: 1; transform: none; }
.reveal-sport {
    opacity: 0;
    transform: translateX(-36px);
    transition: opacity .5s ease, transform .55s cubic-bezier(0.34,1.56,0.64,1);
}
.reveal-sport.visible { opacity: 1; transform: none; }

/* --- FOOTER ----------------------------------------------- */
.cemti-footer {
    position: relative;
    z-index: 2;
    border-top: 1px solid rgba(0,212,255,0.12);
    padding: 2.5rem 1.5rem;
    background: rgba(2,9,18,0.6);
}
.cemti-footer__inner {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.25rem;
    text-align: center;
}
.cemti-footer__logo {
    display: flex;
    align-items: center;
    gap: .5rem;
    font-family: 'Orbitron', sans-serif;
    font-size: 1rem;
    font-weight: 700;
    color: var(--cyan);
    text-shadow: 0 0 10px rgba(0,212,255,0.5);
}
.cemti-footer__logo img { height: 32px; width: auto; }
.cemti-footer__links { display: flex; gap: 1.5rem; flex-wrap: wrap; justify-content: center; }
.cemti-footer__links a { color: var(--dim); font-size: .9rem; transition: color .2s, text-shadow .2s; }
.cemti-footer__links a:hover { color: var(--cyan); text-shadow: 0 0 8px rgba(0,212,255,0.5); }
.cemti-footer__copy { color: rgba(136,146,176,.4); font-size: .78rem; }

/* --- RESPONSIVO ------------------------------------------- */
@media (max-width: 768px) {
    .cemti-nav__toggle { display: flex; }

    .cemti-nav__list {
        display: none;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        position: fixed;
        top: var(--nav-h);
        left: 0; right: 0;
        background: rgba(2,9,18,.98);
        border-bottom: 1px solid rgba(0,212,255,0.2);
        padding: 1rem 0;
        max-height: calc(100vh - var(--nav-h));
        overflow-y: auto;
        z-index: 999;
    }
    .cemti-nav__list.open { display: flex; }
    .cemti-nav__link { padding: .75rem 1.5rem; justify-content: space-between; }

    .cemti-nav__dropdown {
        position: static;
        transform: none;
        box-shadow: none;
        border: none;
        border-radius: 0;
        background: rgba(0,0,0,.25);
        padding: 0;
        display: none;
        animation: none;
    }
    .cemti-nav__dropdown.open { display: block; }
    .cemti-nav__dropdown li a { padding-left: 2.5rem; }

    .hero { padding: 4rem 1rem 2rem; min-height: auto; }
    .hero__title { font-size: clamp(2.2rem, 10vw, 4rem); }
    .section { padding: 3rem 1rem; }
    .sports-grid { grid-template-columns: 1fr; }
    .content-grid { grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); }
}

/* ============================================================
   BLOG — layout, cards, sidebar, paginação
   ============================================================ */

.blog-layout {
    display: grid;
    grid-template-columns: 1fr 260px;
    gap: 2.5rem;
    align-items: start;
    max-width: 1200px;
    margin: 0 auto;
    padding: 3rem 1.5rem 5rem;
}

.blog-feed { min-width: 0; }

/* Grid de cards */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

/* Card individual */
.blog-card {
    background: rgba(13,31,53,.7);
    border: 1px solid rgba(0,212,255,.12);
    border-radius: 12px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform .2s, box-shadow .2s;
}
.blog-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 32px rgba(0,212,255,.12);
}

.blog-card__thumb {
    display: block;
    aspect-ratio: 16/9;
    overflow: hidden;
    background: #0A1628;
}
.blog-card__thumb img {
    width: 100%; height: 100%;
    object-fit: cover;
    display: block;
    transition: transform .35s;
}
.blog-card:hover .blog-card__thumb img { transform: scale(1.04); }
.blog-card__thumb--placeholder {
    width: 100%; height: 100%;
    background: linear-gradient(135deg, #0A1628, #0D1F35);
}

.blog-card__body {
    flex: 1;
    padding: 1.2rem 1.35rem 1.35rem;
    display: flex;
    flex-direction: column;
    gap: .6rem;
}

.blog-card__cat {
    display: inline-block;
    font-size: .72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .08em;
    color: #00D4FF;
    text-decoration: none;
    background: rgba(0,212,255,.08);
    border: 1px solid rgba(0,212,255,.2);
    border-radius: 99px;
    padding: .15rem .7rem;
    align-self: flex-start;
}
.blog-card__cat:hover { background: rgba(0,212,255,.16); }

.blog-card__title {
    font-size: 1rem;
    font-weight: 700;
    line-height: 1.4;
    margin: 0;
}
.blog-card__title a {
    color: #F0F4FF;
    text-decoration: none;
    transition: color .15s;
}
.blog-card__title a:hover { color: #00D4FF; }

.blog-card__excerpt {
    font-size: .88rem;
    color: #8892B0;
    line-height: 1.6;
    flex: 1;
}

.blog-card__footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .5rem;
    margin-top: auto;
    padding-top: .6rem;
    border-top: 1px solid rgba(255,255,255,.06);
}
.blog-card__meta {
    font-size: .78rem;
    color: #8892B0;
}
.blog-card__more {
    font-size: .82rem;
    font-weight: 600;
    color: #00D4FF;
    text-decoration: none;
    white-space: nowrap;
    transition: opacity .15s;
}
.blog-card__more:hover { opacity: .75; }

/* Paginação */
.blog-pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin-top: 3rem;
    flex-wrap: wrap;
}
.blog-pagination__info {
    font-size: .85rem;
    color: #8892B0;
}

/* Sidebar do blog */
.blog-sidebar { position: sticky; top: 6rem; }

.blog-sidebar__widget {
    background: rgba(13,31,53,.7);
    border: 1px solid rgba(0,212,255,.12);
    border-radius: 12px;
    padding: 1.35rem;
    margin-bottom: 1.25rem;
}
.blog-sidebar__title {
    font-size: .75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .1em;
    color: #8892B0;
    margin-bottom: 1rem;
}
.blog-sidebar__cats {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: .25rem;
}
.blog-sidebar__cats a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: .45rem .65rem;
    border-radius: 6px;
    color: #8892B0;
    text-decoration: none;
    font-size: .88rem;
    transition: background .15s, color .15s;
}
.blog-sidebar__cats a:hover,
.blog-sidebar__cats a.active {
    background: rgba(0,212,255,.08);
    color: #00D4FF;
}
.blog-sidebar__count {
    font-size: .75rem;
    background: rgba(255,255,255,.07);
    border-radius: 99px;
    padding: .1rem .5rem;
    color: #8892B0;
}

/* ============================================================
   POST — artigo completo
   ============================================================ */

.post-layout {
    display: grid;
    grid-template-columns: 1fr 260px;
    gap: 2.5rem;
    align-items: start;
    max-width: 1200px;
    margin: 0 auto;
    padding: 3rem 1.5rem 5rem;
}

.post-article { min-width: 0; }

.post-cover {
    border-radius: 14px;
    overflow: hidden;
    margin-bottom: 2rem;
    aspect-ratio: 16/7;
    border: 1px solid rgba(0,212,255,.1);
}
.post-cover img {
    width: 100%; height: 100%;
    object-fit: cover;
    display: block;
}

.post-article__body { padding: 0; }

.post-title {
    font-size: clamp(1.6rem, 4vw, 2.5rem);
    font-weight: 800;
    line-height: 1.25;
    color: #F0F4FF;
    margin: .75rem 0 1rem;
}

.post-meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: .4rem;
    font-size: .88rem;
    color: #8892B0;
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid rgba(255,255,255,.07);
}
.post-meta__sep { opacity: .4; }

/* Conteúdo do post */
.post-content {
    font-size: 1.05rem;
    line-height: 1.85;
    color: #C8D0E0;
}
.post-content h2 { color: #F0F4FF; font-size: 1.5rem; margin: 2.5rem 0 1rem; }
.post-content h3 { color: #F0F4FF; font-size: 1.2rem; margin: 2rem 0 .75rem; }
.post-content p  { margin: 0 0 1.25rem; }
.post-content a  { color: #00D4FF; text-decoration: underline; text-underline-offset: 3px; }
.post-content a:hover { opacity: .8; }
.post-content img {
    max-width: 100%;
    border-radius: 10px;
    margin: 1.5rem 0;
    border: 1px solid rgba(0,212,255,.12);
}
.post-content ul,
.post-content ol  { margin: 0 0 1.25rem 1.5rem; }
.post-content li  { margin-bottom: .4rem; }
.post-content blockquote {
    border-left: 3px solid #00D4FF;
    margin: 1.5rem 0;
    padding: .75rem 1.25rem;
    background: rgba(0,212,255,.06);
    border-radius: 0 8px 8px 0;
    color: #8892B0;
    font-style: italic;
}
.post-content pre {
    background: #0A1628;
    border: 1px solid rgba(0,212,255,.12);
    border-radius: 8px;
    padding: 1.25rem;
    overflow-x: auto;
    margin: 1.5rem 0;
    font-size: .9rem;
}
.post-content code {
    font-family: 'Courier New', monospace;
    background: rgba(0,212,255,.08);
    padding: .15rem .4rem;
    border-radius: 4px;
    font-size: .9em;
    color: #00D4FF;
}
.post-content pre code {
    background: none;
    padding: 0;
    color: #C8D0E0;
}

.post-footer {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    margin-top: 3rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255,255,255,.07);
}

/* Posts relacionados na sidebar */
.post-related { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: .9rem; }
.post-related__item { display: flex; gap: .75rem; align-items: flex-start; }
.post-related__thumb {
    flex-shrink: 0;
    width: 64px; height: 48px;
    border-radius: 6px;
    overflow: hidden;
    display: block;
    background: #0A1628;
}
.post-related__thumb img { width: 100%; height: 100%; object-fit: cover; }
.post-related__info { display: flex; flex-direction: column; gap: .25rem; }
.post-related__title {
    font-size: .85rem;
    font-weight: 600;
    color: #F0F4FF;
    text-decoration: none;
    line-height: 1.35;
    transition: color .15s;
}
.post-related__title:hover { color: #00D4FF; }
.post-related__date { font-size: .75rem; color: #8892B0; }

/* ── Responsivo blog/post ─────────────────────────────── */
@media (max-width: 900px) {
    .blog-layout,
    .post-layout {
        grid-template-columns: 1fr;
        padding: 2rem 1rem 4rem;
    }
    .blog-sidebar { position: static; }
    .blog-grid { grid-template-columns: 1fr; }
}
