
:root {
    --branco: #ffffff;
    --fundo: #f4f7f9;
    --azul-header: #007bff;
    --azul-primario: #0056b3;
    --azul-escuro: #004494;
    --roxo-acento: #6f42c1;
    --texto-escuro: #333333;
    --texto-claro: #ffffff;
    --sombra: 0 4px 15px rgba(0,0,0,0.08);
    --sombra-header: 0 2px 5px rgba(0,0,0,0.05);
    --border-radius: 8px;
    --transition-suave: 0.3s ease-in-out;
}


* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background-color: var(--fundo);
    color: var(--texto-escuro);
    line-height: 1.6;
    overflow-x: hidden; 
}

a {
    text-decoration: none;
    transition: color var(--transition-suave);
}


.text-purple {
    color: var(--roxo-acento) !important;
}


.sidebar {
    position: fixed;
    top: 0;
    right: -320px; 
    width: 300px;
    height: 100%;
    background-color: var(--branco);
    color: var(--texto-escuro);
    transition: right var(--transition-suave);
    padding: 2rem;
    z-index: 1000;
    box-shadow: -5px 0 15px rgba(0,0,0,0.1);
    display: flex;
    flex-direction: column;
}

.sidebar.active {
    right: 0;
}

.close-btn {
    background: none;
    border: none;
    color: var(--azul-header);
    font-size: 2.5rem;
    cursor: pointer;
    position: absolute;
    top: 10px;
    right: 20px;
}

.sidebar-header {
    margin-bottom: 2rem;
    text-align: center;
}

.sidebar-logo {
    max-width: 150px;
    height: auto;
}

.sidebar ul {
    list-style: none;
}

.sidebar ul li {
    margin: 1.2rem 0;
}

.sidebar ul li a {
    color: var(--texto-escuro);
    font-size: 1.1rem;
    display: flex;
    align-items: center;
}

.sidebar ul li a i {
    margin-right: 10px;
    color: var(--roxo-acento);
}

.sidebar ul li a:hover {
    color: var(--azul-header);
    font-weight: 600;
}

header {
    background-color: var(--branco);
    box-shadow: var(--sombra-header);
    position: sticky;
    top: 0;
    z-index: 900px;
    height: 110px;
    transition: all var(--transition-suave); 
}

.header-container {
  height: 100%;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 5%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: padding var(--transition-suave);
}

.logo img {
  width: 280px;
  height: 75px;
  object-fit: contain;
  transition: all var(--transition-suave);
}


header.encolhido {
    height: 85px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1); 
}
header.encolhido .logo img {
    width: 210px; 
    height: 55px;
}

.main-nav ul {
    list-style: none;
    display: flex;
    gap: 1.5rem;
}

.main-nav ul li a {
    color: #555;
    font-weight: 600;
    font-size: 0.9rem;
    padding-bottom: 5px;
    border-bottom: 2px solid transparent;
}

.main-nav ul li a:hover,
.main-nav ul li.active a {
    color: var(--azul-header);
    border-bottom-color: var(--roxo-acento);
}

.user-controls {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.user-profile {
    display: flex;
    align-items: center;
    gap: 10px;
}

.avatar {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--branco);
    box-shadow: 0 0 5px rgba(0,0,0,0.1);
}


.avatar:not([src]) {
    background-color: #ccc;
}

.user-info {
    display: flex;
    flex-direction: column;
}

.user-name {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--azul-header);
}

.my-account {
    font-size: 0.8rem;
    color: #666;
}

.menu-btn {
    background: none;
    border: none;
    font-size: 2.2rem;
    color: var(--roxo-acento);
    cursor: pointer;
    font-weight: bold;
    padding: 0 10px;
}

.header-border {
    height: 4px;
    background: linear-gradient(90deg, var(--azul-header) 0%, var(--roxo-acento) 100%);
}


main {
    max-width: 1400px;
    margin: 0 auto;
    padding: 2rem 5%;
}

.content-box {
    background-color: var(--branco);
    padding: 2rem;
    border-radius: var(--border-radius);
    margin-bottom: 2rem;
    box-shadow: var(--sombra);
}


.attention-title {
    font-size: 2.2rem;
    color: var(--azul-primario);
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.hero p {
    color: #555;
    margin-bottom: 1rem;
    max-width: 1000px;
}


.services-seal {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    align-items: center;
}

.services-list ul {
    list-style: none;
}

.services-list ul li {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--azul-primario);
    margin: 1.2rem 0;
    display: flex;
    align-items: center;
}

.services-list ul li i {
    font-size: 1.4rem;
    margin-right: 15px;
}


.quality-seal {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 1.5rem;
    border: 2px dashed #e1e8f0;
    border-radius: var(--border-radius);
    background-color: #fafbfc;
}

.seal-img {
    max-height: 120px;
    width: auto;
}


.attention-element {
    animation: pulse var(--transition-suave) infinite alternate;
}

@keyframes pulse {
    from { transform: scale(1); }
    to { transform: scale(1.05); }
}

.seal-text h3 {
    font-size: 1.1rem;
    color: #777;
    margin-bottom: 0.8rem;
    letter-spacing: 1px;
}

.seal-text blockquote {
    font-size: 1.3rem;
    color: var(--azul-escuro);
    font-style: italic;
    font-weight: 600;
    line-height: 1.3;
    margin-bottom: 0.5rem;
}

.seal-text cite {
    font-size: 0.95rem;
    color: #666;
}


.modules h2 {
    font-size: 1.8rem;
    color: var(--azul-primario);
    margin-bottom: 1.5rem;
    text-align: center;
}

.modules-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
}

.module-card {
    border: 1px solid #e1e8f0;
    border-radius: var(--border-radius);
    padding: 1.5rem;
    text-align: center;
    transition: transform var(--transition-suave), box-shadow var(--transition-suave);
    position: relative;
    background-color: var(--branco);
}

.module-card:hover:not(.locked) {
    transform: translateY(-5px);
    box-shadow: var(--sombra);
}

.card-icon {
    font-size: 2.2rem;
    color: var(--roxo-acento);
    margin-bottom: 1rem;
}

.module-card h4 {
    font-size: 0.85rem;
    color: #777;
    margin-bottom: 0.3rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.module-card h3 {
    font-size: 1.3rem;
    color: var(--azul-primario);
    margin-bottom: 0.5rem;
    line-height: 1.2;
}

.module-card p {
    font-size: 0.95rem;
    color: #666;
    margin-bottom: 1.2rem;
    height: 2.4rem; 
}

.progress-bar {
    background-color: #e9ecef;
    border-radius: 20px;
    height: 8px;
    position: relative;
    margin-bottom: 1.2rem;
}

.progress {
    background-color: var(--azul-header);
    height: 100%;
    border-radius: 20px;
    position: absolute;
    top: 0;
    left: 0;
}

.progress-label {
    position: absolute;
    top: -20px;
    right: 0;
    font-size: 0.8rem;
    color: #777;
}

.btn {
    display: inline-block;
    padding: 0.7rem 1.5rem;
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.9rem;
    transition: background-color var(--transition-suave);
    cursor: pointer;
    border: none;
}

.btn-primary {
    background-color: var(--roxo-acento);
    color: var(--texto-claro);
}

.btn-primary:hover {
    background-color: #5a32a3;
}

.btn-secondary {
    background-color: #e9ecef;
    color: var(--texto-escuro);
}

.btn-secondary:hover {
    background-color: #dae0e5;
}


.module-card.locked {
    opacity: 0.6;
}

.locked-bar {
    background-color: #d6d9dc;
}

.locked-icon {
    position: absolute;
    bottom: 1.5rem;
    right: 1.5rem;
    font-size: 1.5rem;
    color: #999;
}

footer {
    background-color: var(--azul-escuro);
    color: var(--texto-claro);
    width: 100%;
    margin-top: 3rem;
    padding: 2rem 5% 0 5%; 
}

.footer-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 1.5rem;
    max-width: 1200px;
    margin: 0 auto;
}

.footer-logo-minimal {
    height: 70px; 
    width: auto;
    
    background-color: #ffffff; /* Fundo branco pra destacar a logo */
    padding: 10px 15px; /* Espaço em volta do ícone */
    border-radius: 16px; /* Cantos arredondados estilo aplicativo */
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2); 
    object-fit: contain;
    transition: transform 0.3s ease; 
}

.footer-logo-minimal:hover {
    transform: translateY(-3px);
}

.back-to-top {
    color: var(--texto-claro);
    text-decoration: none;
    font-size: 0.9rem;
    border: 1px solid var(--texto-claro);
    padding: 8px 18px;
    border-radius: 25px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.back-to-top:hover {
    background-color: var(--texto-claro);
    color: var(--azul-escuro);
}


.footer-divider {
    max-width: 1200px;
    margin: 0 auto;
    height: 1px;
    background-color: rgba(255, 255, 255, 0.2); 
}

.footer-main {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    padding: 3rem 0;
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.footer-mascot {
    flex: 1;
    min-width: 150px;
    max-width: 250px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.mascot-img {
    width: 100%;
    max-height: 180px; 
    object-fit: contain;
}

.footer-col {
    flex: 1;
    min-width: 200px;
}

.footer-col h4 {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 1.5rem;
    color: #aebfd4; 
}

.footer-col ul {
    list-style: none;
    padding: 0;
}

.footer-col ul li {
    margin-bottom: 1rem;
}

.footer-col ul li a {
    color: var(--texto-claro);
    text-decoration: none;
    font-size: 0.95rem;
    transition: color 0.3s ease;
    display: flex;
    align-items: center;
    gap: 10px;
    
    word-break: break-word; 
}

.footer-col ul li a:hover {
    color: #80c1ff; 
    text-decoration: underline; 
}

.social-col .social-icons {
    display: flex;
    gap: 1rem;
}

.social-col .social-icons a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    border: 1px solid var(--texto-claro);
    border-radius: 50%;
    color: var(--texto-claro);
    font-size: 1.2rem;
    transition: all 0.3s ease;
}

.social-col .social-icons a:hover {
    background-color: var(--texto-claro);
    color: var(--azul-escuro);
    transform: scale(1.1);
}

.footer-bottom {
    text-align: right; 
    padding: 1.5rem 0;
    font-size: 0.85rem;
    color: #aebfd4;
    max-width: 1200px;
    margin: 0 auto;
}

@media (max-width: 768px) {
    .footer-main {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    .footer-col ul li a {
        justify-content: center;
    }
    .social-col .social-icons {
        justify-content: center;
    }
    .footer-bottom {
        text-align: center;
    }
    .footer-mascot {
        margin-bottom: 1.5rem;
    }
}

.theme-btn {
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--azul-header);
    cursor: pointer;
    transition: color var(--transition-suave), transform var(--transition-suave);
    padding: 0 10px;
}

.theme-btn:hover {
    color: var(--roxo-acento);
    transform: scale(1.1);
}

body.dark-mode {
    --branco: #1a1e23;
    --fundo: #0f1215;
    --azul-header: #66b2ff;
    --azul-primario: #80c1ff;
    --texto-escuro: #e1e8f0;
    
    --roxo-acento: #b285ff; 
    
    --sombra: none; 
    --sombra-header: none;
}


body.dark-mode .quality-seal {
    background-color: #242930;
    border-color: #3a424d;
}

body.dark-mode .module-card {
    background-color: var(--branco);
    border-color: #2d333b;
}

body.dark-mode .progress-bar {
    background-color: #2d333b;
}

body.dark-mode .btn-secondary {
    background-color: #2d333b;
    color: #e1e8f0;
}


@media (max-width: 768px) {
    
    .main-nav, 
    .auth-buttons {
        display: none; 
    }
    
    .logo img {
        width: 160px; 
    }
    
    .attention-title {
        font-size: 1.6rem;
    }
    
    .services-seal {
        grid-template-columns: 1fr; 
        gap: 1.5rem;
    }
    
    .quality-seal {
        flex-direction: column;
        text-align: center;
        padding: 1rem;
    }
    
    .quality-seal .seal-img {
        margin-bottom: 1rem;
        max-height: 90px;
    }
    
    .content-box {
        padding: 1.5rem; 
    }
}

.logo {
    min-width: 250px;
    display: flex;
    align-items: center;
}

.logo img.logo-light,
.logo img.logo-dark {
    width: 250px;
    height: auto;
    object-fit: contain;
}

.logo-dark {
    display: none;
}

body.dark-mode .logo-light {
    display: none;
}

body.dark-mode .logo-dark {
    display: inline-block;
    mix-blend-mode: screen; 
}

.logo-light, 
.logo-dark {
    height: 100px !important; 
    width: auto !important; 
    object-fit: contain;
    vertical-align: middle; 
    margin: 0;
    padding: 0;
}

.logo {
    min-height: 100px; 
    display: flex;
    align-items: center;
}

.section-title {
    font-size: 2rem;
    color: var(--azul-escuro);
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

body.dark-mode .section-title { color: var(--texto-claro); }

.hero-modern {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 3rem;
    padding: 4rem 3rem !important;
    background: linear-gradient(135deg, var(--branco) 0%, #f0f4ff 100%);
    border: none;
}

body.dark-mode .hero-modern { background: linear-gradient(135deg, var(--branco) 0%, #171b22 100%); }

.badge-tech {
    display: inline-block;
    background-color: rgba(111, 66, 193, 0.1);
    color: var(--roxo-acento);
    padding: 6px 15px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 700;
    margin-bottom: 1rem;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.hero-title {
    font-size: 3rem;
    color: var(--azul-escuro);
    line-height: 1.1;
    margin-bottom: 1.5rem;
}

body.dark-mode .hero-title { color: var(--texto-claro); }

.hero-text p {
    font-size: 1.1rem;
    color: #555;
    margin-bottom: 2rem;
    max-width: 550px;
}

body.dark-mode .hero-text p { color: #aaa; }

.hero-buttons {
    display: flex;
    gap: 1rem;
}

.btn-secondary-outline {
    background: transparent;
    border: 2px solid var(--azul-header);
    color: var(--azul-header);
    padding: 0.7rem 1.5rem;
    border-radius: 20px;
    font-weight: 600;
    transition: all var(--transition-suave);
}

.btn-secondary-outline:hover {
    background: var(--azul-header);
    color: white;
}

.hero-image {
    flex: 1;
    display: flex;
    justify-content: center;
}

.mascot-float {
    max-width: 350px;
    width: 100%;
    filter: drop-shadow(0 20px 30px rgba(0,0,0,0.15));
    animation: float 4s ease-in-out infinite;
}

@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-15px); }
    100% { transform: translateY(0px); }
}

.about-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 3rem;
    align-items: center;
}

.features-list {
    list-style: none;
    margin-top: 1.5rem;
}

.features-list li {
    font-size: 1.05rem;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 10px;
    color: #444;
}

body.dark-mode .features-list li { color: #ccc; }

.about-stats {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.stat-card {
    background-color: var(--fundo);
    padding: 1.5rem;
    border-radius: var(--border-radius);
    border-left: 4px solid var(--roxo-acento);
    box-shadow: 0 4px 10px rgba(0,0,0,0.03);
}

body.dark-mode .stat-card { background-color: #242930; }

.stat-card i {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.stat-card h3 {
    color: var(--azul-primario);
    font-size: 1.2rem;
}

body.dark-mode .stat-card h3 { color: var(--texto-claro); }

.bncc-header {
    text-align: center;
    margin-bottom: 3rem;
}

.bncc-header .subtitle {
    font-size: 1.1rem;
    color: #666;
    max-width: 700px;
    margin: 0 auto;
}

body.dark-mode .bncc-header .subtitle { color: #aaa; }

.bncc-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.bncc-card {
    background: var(--fundo);
    padding: 2rem;
    border-radius: 16px;
    text-align: center;
    transition: transform var(--transition-suave);
}

body.dark-mode .bncc-card { background: #242930; }

.bncc-card:hover {
    transform: translateY(-10px);
}

.icon-wrapper {
    width: 70px;
    height: 70px;
    background: rgba(111, 66, 193, 0.1);
    color: var(--roxo-acento);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    margin: 0 auto 1.5rem auto;
}

.bncc-card h3 {
    color: var(--azul-escuro);
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

body.dark-mode .bncc-card h3 { color: var(--texto-claro); }

.bncc-card p {
    color: #555;
    font-size: 0.95rem;
}

body.dark-mode .bncc-card p { color: #aaa; }

@media (max-width: 900px) {
    .hero-modern {
        flex-direction: column;
        text-align: center;
        padding: 3rem 1.5rem !important;
    }
    .hero-text p { margin: 1.5rem auto; }
    .hero-buttons { justify-content: center; flex-wrap: wrap; }
    .about-grid { grid-template-columns: 1fr; }
}
.cidades .section-title {
    text-align: center;
}

.carrossel {
    max-width: 100%; 
    overflow: hidden;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.25);
    border-radius: 10px;
    position: relative;
    margin-top: 0;
    margin-right: 0;
    height: auto;
    flex: 1; 
}

.cidade-card {
    display: flex;
    justify-content: flex-start; 
    align-items: flex-start;
    gap: 5px; 
}

.info {
    padding: 0 15px; 
    max-width: 100%; 
    text-align: center;
    flex: 1; 
}

.slides {
    display: flex;
    transition: transform 1s cubic-bezier(0.25, 0.1, 0.25, 1);
}

.slides img {
    display: block;
    max-width: 100%;
}

.carrossel button {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 25px;
    height: 25px;
    border-radius: 50%;
    border: none;
    background-color: rgba(0, 0, 0, 0.486);
    box-shadow: 0 0 5px rgba(0, 0, 0, 0.5);
    color: white;
    cursor: pointer;
    transition: background-color 200ms ease;
}

.carrossel button:hover {
    background-color: black;
}

.carrossel .esquerda {
    left: 10px;
}

.carrossel .direita {
    right: 10px;
}


@media (max-width: 768px) {
    .cidade-card {
        flex-direction: column; 
        align-items: center; 
        gap: 15px; 
    }

    .info i {
        width: 100%; 
        text-align: center; 
    }

    .carrossel {
        width: 100%; 
        margin: 0 auto; 
    }
}

.btn-register {
    color: var(--roxo-acento);
    font-weight: 700;
    padding: 6px 20px;
    border: 2px solid var(--roxo-acento);
    border-radius: 20px;
    transition: all var(--transition-suave);
    display: inline-block;
}

.btn-register:hover {
    background-color: var(--roxo-acento);
    color: var(--branco); 
}

body.dark-mode .btn-register {
    color: #b285ff; 
    border-color: #b285ff;
}

body.dark-mode .btn-register:hover {
    background-color: #b285ff;
    color: #1a1e23; 
}

.menu-btn {
    display: none; 
}

@media (max-width: 768px) {
    .menu-btn {
        display: block; 
    }
}

.content-box {
    background: transparent !important;
    box-shadow: none !important;
    border-radius: 0 !important;
    margin-bottom: 0 !important;
    padding: 5rem 0 !important; 
}

.hero-modern, 
body.dark-mode .hero-modern {
    background: transparent !important;
}

section:not(#inicio) {
    border-top: 1px solid rgba(0, 0, 0, 0.08); 
}


body.dark-mode section:not(#inicio) {
    border-top: 1px solid rgba(255, 255, 255, 0.05); 
}

.header-container {
    padding: 2rem 5% !important; 
}

.logo-light, 
.logo-dark {
    height: 140px !important; 
    width: auto !important; 
    max-width: 400px !important; 
}

header.encolhido .header-container {
    padding: 1rem 5% !important; 
}

header.encolhido .logo-light,
header.encolhido .logo-dark {
    height: 90px !important; 
}

.header-container,
.logo-light, 
.logo-dark {
    transition: all 0.3s ease-in-out !important; 
}

.module-card.unlocked {
    cursor: pointer;
    border-color: var(--roxo-acento);
}


.modal-overlay {
    display: none; 
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.85);
    z-index: 9999;
    justify-content: center;
    align-items: center;
    backdrop-filter: blur(5px);
    opacity: 0;
    transition: opacity var(--transition-suave);
}

.modal-overlay.show {
    display: flex;
    opacity: 1;
}


.cnh-container {
    background-color: #f2f7f4; 
    width: 90%;
    max-width: 650px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 15px 40px rgba(0,0,0,0.5);
    border: 1px solid #1b4332;
    position: relative;
    color: #111;
    transform: translateY(-20px);
    transition: transform var(--transition-suave);
}

.modal-overlay.show .cnh-container {
    transform: translateY(0);
}


.close-modal-btn {
    position: absolute;
    top: 10px;
    right: 15px;
    color: #fff;
    font-size: 28px;
    cursor: pointer;
    font-weight: bold;
    z-index: 10;
    transition: color 0.2s;
}
.close-modal-btn:hover { color: #ffca3a; }


.cnh-header {
    background-color: #1b4332;
    color: white;
    text-align: center;
    padding: 15px 30px;
    border-bottom: 6px solid #ffca3a; 
    font-family: Arial, sans-serif;
}
.cnh-header h2 {
    margin: 0;
    font-size: 1.1rem;
    letter-spacing: 1px;
}
.cnh-header p {
    margin: 5px 0 0 0;
    font-size: 0.75rem;
    color: #d8f3dc;
}

.cnh-body {
    padding: 25px;
    font-family: 'Courier New', Courier, monospace; 
}

.cnh-audio-section {
    margin-bottom: 25px;
    background: #e0e8e3;
    padding: 15px;
    border-radius: 6px;
    border: 1px dashed #74a57f;
}
.cnh-audio-section label {
    display: block;
    font-size: 0.85rem;
    font-weight: bold;
    color: #2d6a4f;
    margin-bottom: 10px;
    font-family: Arial, sans-serif;
}
audio { width: 100%; height: 40px; outline: none; }


.cnh-info-section {
    display: flex;
    gap: 20px;
    margin-bottom: 25px;
    border-bottom: 2px solid #b7c9be;
    padding-bottom: 25px;
}
.cnh-photo {
    width: 110px;
    height: 140px;
    background-color: #d1ddd5;
    border: 2px solid #1b4332;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 50px;
    color: #1b4332;
    flex-shrink: 0;
}
.cnh-text { flex: 1; }
.cnh-label {
    font-size: 0.7rem;
    color: #52796f;
    text-transform: uppercase;
    font-weight: bold;
    margin-bottom: 2px;
    font-family: Arial, sans-serif;
}
.cnh-value {
    font-size: 1.1rem;
    font-weight: bold;
    margin-bottom: 15px;
    color: #081c15;
}
.cnh-desc {
    font-size: 0.95rem;
    line-height: 1.5;
    color: #111;
}


.cnh-video-section {
    border: 1px solid #b7c9be;
    padding: 15px;
    background: #fff;
    border-radius: 6px;
}
.cnh-video-section label {
    display: block;
    font-size: 0.85rem;
    font-weight: bold;
    color: #2d6a4f;
    margin-bottom: 10px;
    font-family: Arial, sans-serif;
}
.video-placeholder {
    width: 100%;
    height: 220px;
    background-color: #1a1a1a;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #888;
    font-family: Arial, sans-serif;
    border-radius: 4px;
}

@media (max-width: 600px) {
    .cnh-info-section {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    .cnh-photo { margin-bottom: 15px; }
}

.aula-page-container {
    max-width: 800px;
    margin: 0 auto 3rem auto;
    background-color: var(--branco);
    border-radius: 12px;
    box-shadow: var(--sombra);
    border: 1px solid rgba(111, 66, 193, 0.2); 
    overflow: hidden;
    transition: all var(--transition-suave);
}

body.dark-mode .aula-page-container {
    background-color: #1a1e23;
    border-color: #3a424d;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}


.aula-header {
    background: linear-gradient(135deg, var(--azul-escuro) 0%, var(--roxo-acento) 100%);
    color: #ffffff;
    text-align: center;
    padding: 20px 30px;
    border-bottom: 4px solid var(--azul-header);
}

.aula-header h2 {
    margin: 0;
    font-size: 1.2rem;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.aula-header p {
    margin: 5px 0 0 0;
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.8);
    letter-spacing: 2px;
}


.aula-body {
    padding: 30px;
}


.aula-audio-section {
    margin-bottom: 25px;
    background-color: var(--fundo);
    padding: 15px 20px;
    border-radius: 8px;
    border: 1px dashed var(--roxo-acento);
}

body.dark-mode .aula-audio-section {
    background-color: rgba(111, 66, 193, 0.05);
}

.aula-audio-section label {
    display: block;
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--azul-primario);
    margin-bottom: 12px;
    text-transform: uppercase;
}

body.dark-mode .aula-audio-section label {
    color: var(--texto-claro);
}

audio {
    width: 100%;
    height: 40px;
    outline: none;
    border-radius: 20px;
}


.aula-info-section {
    display: flex;
    gap: 25px;
    margin-bottom: 25px;
    border-bottom: 1px solid rgba(0,0,0,0.1);
    padding-bottom: 25px;
}

body.dark-mode .aula-info-section {
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.aula-photo {
    width: 120px;
    height: 150px;
    background-color: var(--fundo);
    border: 2px solid var(--roxo-acento);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 50px;
    color: var(--roxo-acento);
    flex-shrink: 0;
}

body.dark-mode .aula-photo { background-color: #0f1215; }

.aula-text { flex: 1; }

.aula-label {
    font-size: 0.75rem;
    color: var(--azul-header);
    text-transform: uppercase;
    font-weight: 700;
    margin-bottom: 4px;
    letter-spacing: 1px;
}

.aula-value {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 15px;
    color: var(--azul-escuro);
}

body.dark-mode .aula-value { color: var(--texto-claro); }

.aula-desc {
    font-size: 1rem;
    line-height: 1.6;
    color: var(--texto-escuro);
}


.aula-video-section {
    background-color: var(--fundo);
    padding: 20px;
    border-radius: 8px;
    border: 1px solid rgba(0,0,0,0.05);
}

body.dark-mode .aula-video-section {
    background-color: #0f1215;
    border-color: rgba(255,255,255,0.05);
}

.aula-video-section label {
    display: block;
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--azul-primario);
    margin-bottom: 15px;
    text-transform: uppercase;
}

body.dark-mode .aula-video-section label { color: var(--texto-claro); }

.video-placeholder {
    width: 100%;
    height: 350px;
    background-color: #111;
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #666;
    box-shadow: inset 0 0 20px rgba(0,0,0,0.5);
}


@media (max-width: 600px) {
    .aula-info-section {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    .aula-photo {
        margin-bottom: 10px;
    }
    .video-placeholder {
        height: 200px;
    }
}