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

html {
    scroll-behavior: smooth;
}

body {
    min-height: 100vh;
    font-family: Arial, Helvetica, sans-serif;
    color: #1f2937;
    background: linear-gradient(180deg, #dbeafe, #f8fafc 45%, #ffffff);
    overflow-x: hidden;
}

.bg {
    position: fixed;
    inset: 0;
    z-index: -4;
    background:
        radial-gradient(circle at 12% 16%, rgba(255,255,255,.9), transparent 8%),
        radial-gradient(circle at 88% 12%, rgba(253,224,71,.7), transparent 10%),
        linear-gradient(135deg, #bfdbfe, #f8fafc, #ffffff);
}

.float {
    position: fixed;
    z-index: -1;
    font-size: clamp(2rem, 5vw, 4.6rem);
    animation: float 6s infinite ease-in-out;
    opacity: .68;
}

.f1 { top: 18%; left: 4%; }
.f2 { top: 28%; right: 5%; animation-delay: 1s; }
.f3 { bottom: 18%; left: 6%; animation-delay: 2s; }
.f4 { bottom: 15%; right: 6%; animation-delay: 3s; }

@keyframes float {
    0%, 100% { transform: translateY(0) rotate(-6deg); }
    50% { transform: translateY(-25px) rotate(8deg); }
}

.navbar {
    position: fixed;
    top: 16px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 100;
    width: min(1160px, calc(100% - 30px));
    padding: 14px 20px;
    border-radius: 999px;
    background: rgba(255,255,255,.72);
    border: 1px solid rgba(255,255,255,.92);
    backdrop-filter: blur(14px);
    box-shadow: 0 18px 38px rgba(30,64,175,.16);
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
}

.logo {
    font-weight: 900;
    color: #1d4ed8;
    font-size: 1.1rem;
}

.nav-links {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.nav-links a {
    text-decoration: none;
    color: #1d4ed8;
    font-weight: 900;
    padding: 8px 12px;
    border-radius: 999px;
}

.nav-links a:hover {
    background: #1d4ed8;
    color: white;
}

.hero {
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: 120px 20px 70px;
    text-align: center;
}

.hero-card {
    width: min(1050px, 100%);
    padding: clamp(32px, 6vw, 70px);
    border-radius: 42px;
    background: rgba(255,255,255,.72);
    border: 3px solid rgba(255,255,255,.94);
    backdrop-filter: blur(14px);
    box-shadow: 0 30px 70px rgba(30,64,175,.18);
}

.badge {
    display: inline-block;
    margin-bottom: 20px;
    padding: 12px 22px;
    border-radius: 999px;
    background: #eff6ff;
    color: #1d4ed8;
    font-weight: 900;
    border: 2px dashed #3b82f6;
}

.hero h1 {
    font-size: clamp(3rem, 9vw, 7.8rem);
    line-height: .95;
    color: #1d4ed8;
    text-shadow: 4px 4px 0 #ffffff;
    margin-bottom: 22px;
}

.subtitle {
    max-width: 860px;
    margin: 0 auto 30px;
    font-size: clamp(1.15rem, 2.6vw, 1.55rem);
    line-height: 1.6;
    font-weight: 800;
    color: #334155;
}

.hero-buttons {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 14px;
}

.btn {
    display: inline-block;
    text-decoration: none;
    padding: 15px 24px;
    border-radius: 999px;
    font-weight: 900;
    transition: .25s;
    box-shadow: 0 12px 25px rgba(30,64,175,.16);
}

.btn:hover {
    transform: translateY(-5px) scale(1.03);
}

.primary {
    background: linear-gradient(135deg, #1d4ed8, #06b6d4);
    color: white;
}

.secondary {
    background: white;
    color: #1d4ed8;
}

main {
    width: min(1200px, calc(100% - 32px));
    margin: auto;
}

.author-card,
.overview,
.lesson,
.final-quiz,
.signature {
    margin: 38px auto;
    padding: clamp(26px, 4vw, 46px);
    border-radius: 36px;
    background: rgba(255,255,255,.82);
    border: 3px solid rgba(255,255,255,.95);
    box-shadow: 0 22px 50px rgba(30,64,175,.13);
    backdrop-filter: blur(12px);
}

.author-card {
    display: grid;
    grid-template-columns: 90px 1fr;
    gap: 22px;
    align-items: center;
}

.symbol {
    width: 90px;
    height: 90px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: linear-gradient(135deg, #1d4ed8, #06b6d4);
    font-size: 3rem;
    box-shadow: 0 12px 25px rgba(30,64,175,.18);
}

.author-card h2,
.overview h2,
.final-quiz h2,
.signature h2 {
    color: #1d4ed8;
    margin-bottom: 10px;
    font-size: clamp(1.8rem, 4vw, 3rem);
}

.overview-grid,
.cards-grid,
.powers-grid,
.forms-grid,
.vote-grid,
.participation-grid,
.rights-grid,
.responsibility-grid {
    display: grid;
    gap: 18px;
    margin-top: 20px;
}

.overview-grid,
.cards-grid,
.powers-grid,
.forms-grid,
.rights-grid {
    grid-template-columns: repeat(3, 1fr);
}

.vote-grid,
.participation-grid,
.responsibility-grid {
    grid-template-columns: repeat(4, 1fr);
}

.overview-grid div,
.cards-grid article,
.powers-grid div,
.forms-grid article,
.vote-grid div,
.participation-grid div,
.rights-grid article,
.responsibility-grid div {
    padding: 24px;
    border-radius: 26px;
    background: linear-gradient(135deg, #ffffff, #eff6ff);
    border: 2px solid #dbeafe;
    text-align: center;
    transition: .25s;
}

.overview-grid div:hover,
.cards-grid article:hover,
.powers-grid div:hover,
.forms-grid article:hover,
.vote-grid div:hover,
.participation-grid div:hover,
.rights-grid article:hover,
.responsibility-grid div:hover {
    transform: translateY(-7px);
    box-shadow: 0 18px 32px rgba(30,64,175,.13);
}

.overview-grid span,
.cards-grid span,
.powers-grid span,
.forms-grid span,
.participation-grid span,
.rights-grid span {
    display: block;
    font-size: 3rem;
    margin-bottom: 10px;
}

.overview-grid h3,
.cards-grid h3,
.powers-grid h4,
.forms-grid h4,
.participation-grid h4,
.rights-grid h3 {
    color: #1d4ed8;
    margin-bottom: 8px;
}

.lesson-title {
    display: flex;
    align-items: center;
    gap: 18px;
    margin-bottom: 25px;
}

.lesson-title span {
    min-width: 70px;
    height: 70px;
    display: grid;
    place-items: center;
    border-radius: 22px;
    background: linear-gradient(135deg, #1d4ed8, #06b6d4);
    color: white;
    font-size: 2.2rem;
    font-weight: 900;
}

.lesson-title p {
    color: #1d4ed8;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.lesson-title h2 {
    font-size: clamp(2rem, 5vw, 4rem);
    color: #1d4ed8;
}

.info-box,
.powers,
.forms,
.vote-box,
.participation,
.media-box,
.child-rights,
.responsibility {
    padding: 24px;
    border-radius: 26px;
    background: #ffffff;
    border-left: 8px solid #1d4ed8;
    margin-bottom: 24px;
}

.info-box h3,
.powers h3,
.forms h3,
.vote-box h3,
.participation h3,
.media-box h3,
.child-rights h3,
.responsibility h3,
.remember h3,
.quiz-card h3 {
    color: #1d4ed8;
    margin-bottom: 12px;
}

.info-box p,
.cards-grid p,
.powers p,
.powers-grid p,
.forms-grid p,
.vote-box p,
.vote-grid span,
.participation-grid p,
.media-box p,
.rights-grid p,
.child-rights p,
.responsibility p,
.responsibility-grid em,
.remember li {
    line-height: 1.72;
    font-weight: 700;
    color: #334155;
}

.vote-grid div strong,
.responsibility-grid div strong {
    display: block;
    color: #1d4ed8;
    font-size: 1.25rem;
    margin-bottom: 6px;
}

.responsibility-grid div span {
    display: block;
    font-weight: 900;
    margin-bottom: 10px;
}

.responsibility-grid div em {
    display: block;
    font-style: normal;
}

.remember,
.quiz-card {
    margin-top: 24px;
    padding: 26px;
    border-radius: 30px;
    background: rgba(255,255,255,.9);
    border: 2px solid rgba(59,130,246,.16);
}

.remember ul {
    padding-left: 20px;
}

.remember li {
    margin: 8px 0;
}

.quiz-card {
    background: #fbfdff;
}

.question {
    margin: 20px 0;
    padding: 20px;
    border-radius: 22px;
    background: white;
    border: 2px solid #dbeafe;
}

.question p {
    font-weight: 900;
    color: #334155;
    margin-bottom: 12px;
}

.question button {
    margin: 6px;
    padding: 12px 16px;
    border: none;
    border-radius: 999px;
    background: #eff6ff;
    color: #1d4ed8;
    font-weight: 900;
    cursor: pointer;
    transition: .2s;
}

.question button:hover {
    transform: translateY(-3px);
    background: #dbeafe;
}

.question button.correct {
    background: #22c55e;
    color: white;
}

.question button.wrong {
    background: #ef4444;
    color: white;
}

.quiz-result,
#totalScore {
    margin-top: 14px;
    font-size: 1.25rem;
    font-weight: 900;
    color: #1d4ed8;
}

#totalScoreBtn {
    margin-top: 16px;
    padding: 15px 24px;
    border: none;
    border-radius: 999px;
    background: linear-gradient(135deg, #1d4ed8, #06b6d4);
    color: white;
    font-weight: 900;
    cursor: pointer;
    font-size: 1rem;
}

.signature {
    text-align: center;
}

.signature p {
    font-size: 1.2rem;
    margin: 8px 0;
    color: #334155;
}

footer {
    text-align: center;
    padding: 35px 20px 50px;
    color: #1d4ed8;
    font-weight: 900;
}

@media (max-width: 1050px) {
    .overview-grid,
    .cards-grid,
    .powers-grid,
    .forms-grid,
    .vote-grid,
    .participation-grid,
    .rights-grid,
    .responsibility-grid {
        grid-template-columns: 1fr;
    }

    .author-card {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .symbol {
        margin: auto;
    }

    .navbar {
        border-radius: 26px;
        flex-direction: column;
    }
}
