:root {
    --primary-color: #f1d06a;
    --primary-dark: #e6c45a;
    --secondary-color: #000000;
    --light-color: #ffffff;
    --text-color: #333333;
    --light-gray: #f5f5f5;
    --dark-gray: #444444;
    
    --box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
}

/* Aulas Page Styles */
.aulas-page {
    padding-top: 80px;
}

.aulas-hero {
    background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)), url('../img/aulas-bg.jpg') no-repeat center center/cover;
    color: var(--light-color);
    text-align: center;
    padding: 100px 0;
}

.aulas-hero h2 {
    font-size: 2.8rem;
    margin-bottom: 20px;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.3);
}

.aulas-hero h2 span {
    color: var(--primary-color);
}

.aulas-hero p {
    font-size: 1.3rem;
    max-width: 700px;
    margin: 0 auto;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

/* Blog Section */
.blog-section {
    padding: 80px 0;
    background-color: var(--light-gray);
}

.blog-section .section-title {
    display: flex;
    gap: 0.5rem;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

.section-title {
    font-size: 2.2rem;
    margin-bottom: 20px;
    position: relative;
    display: inline-block;
}

.section-title span {
    color: var(--primary-color);
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 60px;
    height: 3px;
    background-color: var(--primary-color);
}

.section-subtitle {
    font-size: 1.1rem;
    margin-bottom: 40px;
    color: var(--dark-gray);
}

.blog-single-column {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
}

.blog-card {
    background-color: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--box-shadow);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}

.blog-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
}

/* Estilos para container de vídeos */
.video-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 350px), 1fr));
    gap: 30px;
    width: 100%;
}

/* Player de vídeo responsivo */
.video-player {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%; /* Proporção 16:9 (ajuste conforme necessidade) */
    background-color: #000;
    border-radius: 8px;
    overflow: hidden;
}

.video-player video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: contain; /* Mantém a proporção sem cortar */
    background-color: #000; /* Fundo preto para barras laterais */
}

/* Para vídeos verticais (como shorts) */
.video-player.vertical {
    padding-bottom: 177.78%; /* Proporção 9:16 */
}

/* Controles customizados (opcional) */
.video-controls {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.7), transparent);
    padding: 10px;
    display: flex;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.video-player:hover .video-controls {
    opacity: 1;
}

/* Botão de play centralizado */
.play-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0,0,0,0.3);
    transition: all 0.3s ease;
    cursor: pointer;
}

.play-overlay i {
    font-size: 3rem;
    color: rgba(255,255,255,0.8);
    transition: all 0.3s ease;
}

.video-player:hover .play-overlay i {
    color: var(--primary-color);
    transform: scale(1.1);
}

/* Adaptação para diferentes proporções */
.aspect-ratio-16-9 { padding-bottom: 56.25%; }
.aspect-ratio-4-3 { padding-bottom: 75%; }
.aspect-ratio-1-1 { padding-bottom: 100%; }
.aspect-ratio-9-16 { padding-bottom: 177.78%; }

.video-player::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.2);
    transition: var(--transition);
}

.blog-card:hover .video-player::before {
    background: rgba(0, 0, 0, 0);
}

.play-button {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60px;
    height: 60px;
    background-color: rgba(241, 208, 106, 0.8);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
}

.play-button i {
    color: white;
    font-size: 1.5rem;
    margin-left: 5px;
}

.blog-card:hover .play-button {
    background-color: var(--primary-color);
    transform: translate(-50%, -50%) scale(1.1);
}

.blog-content {
    padding: 20px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.blog-content h3 {
    font-size: 1.3rem;
    margin-bottom: 10px;
    color: var(--secondary-color);
}

.blog-content p {
    color: var(--dark-gray);
    margin-bottom: 15px;
    flex-grow: 1;
}

.video-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 15px;
    font-size: 0.9rem;
    color: var(--dark-gray);
}

.video-meta span {
    display: flex;
    align-items: center;
    gap: 5px;
}

/* Skeleton Loading */
.skeleton {
    animation: skeleton-loading 1s linear infinite alternate;
}

.skeleton .video-player {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
}

.skeleton-text {
    height: 15px;
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
    border-radius: 4px;
    margin-bottom: 10px;
}

.skeleton-text:last-child {
    width: 60%;
}

@keyframes shimmer {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* CNH Form Section */
.cnh-form-section {
    padding: 80px 0;
    background-color: white;
}

.cnh-form-container {
    display: flex;
    gap: 40px;
    align-items: center;
}

.cnh-card {
    flex: 1;
    background-color: #f9f9f9;
    border-radius: 15px;
    padding: 30px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    border: 2px solid #e0e0e0;
    max-width: 500px;
    position: relative;
    overflow: hidden;
}

.cnh-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    position: relative;
}

.brasil-flag {
    display: grid;
    grid-template-columns: repeat(2, 15px);
    grid-template-rows: repeat(2, 15px);
    gap: 2px;
}

.blue { background-color: #002776; }
.yellow { background-color: #FEDF00; }
.green { background-color: #009B3A; }
.white { background-color: white; }

.cnh-header h3 {
    font-size: 1.1rem;
    text-align: center;
    flex-grow: 1;
    margin: 0 15px;
}

.cnh-logo img {
    width: 50px;
    height: auto;
}

.cnh-form {
    display: grid;
    gap: 15px;
}

.form-row {
    display: flex;
    flex-direction: column;
}

.form-row label {
    font-size: 0.9rem;
    margin-bottom: 5px;
    color: var(--dark-gray);
    font-weight: 500;
}

.form-row input,
.form-row select {
    padding: 10px 15px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-family: 'Roboto', sans-serif;
    font-size: 0.95rem;
}

.cnh-submit {
    margin-top: 20px;
    width: 100%;
    border: 0;
}

.form-info {
    flex: 1;
    max-width: 500px;
}

.form-info h3 {
    font-size: 1.8rem;
    margin-bottom: 20px;
    color: var(--secondary-color);
}

.form-info p {
    margin-bottom: 25px;
    line-height: 1.6;
}

.info-features {
    display: grid;
    gap: 15px;
}

.feature {
    display: flex;
    align-items: center;
    gap: 10px;
}

.feature i {
    color: var(--primary-color);
    font-size: 1.2rem;
}

/* Responsive Styles */
@media (max-width: 992px) {
    .cnh-form-container {
        flex-direction: column-reverse;
    }
    
    .cnh-card {
        max-width: 100%;
    }
    
    .form-info {
        max-width: 100%;
        text-align: center;
    }
    
    .info-features {
        justify-content: center;
    }
}

@media (max-width: 768px) {
    .blog-single-column {
        grid-template-columns: 1fr;
    }

    .aulas-hero h2 {
        font-size: 2.2rem;
    }
    
    .aulas-hero p {
        font-size: 1.1rem;
    }
    
    .section-title {
        font-size: 1.8rem;
    }
}

@media (max-width: 576px) {
    .aulas-hero {
        padding: 80px 0;
    }
    
    .aulas-hero h2 {
        font-size: 1.8rem;
    }
    
    .section-title {
        font-size: 1.6rem;
    }
    
    .blog-content h3 {
        font-size: 1.1rem;
    }
    
    .blog-content p {
        font-size: 0.9rem;
    }
    
    .video-meta {
        font-size: 0.8rem;
    }
}