/* --- Estilos Específicos da Página de E-books --- */

.section-padding {
    padding: 60px 0;
}

.section-heading h2 {
    text-align: center;
    color: var(--secondary-color);
    font-size: 2.5rem;
    margin-bottom: 40px;
    text-transform: uppercase;
}

/* --- Grid de Ebooks --- */
.ebooks-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-bottom: 60px;
}

.ebook-card {
    background: var(--text-color-light);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease;
    border: 1px solid #eee;
}

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

.ebook-image {
    width: 100%;
    height: 350px; /* Altura fixa para alinhar todos os cards */
    overflow: hidden;
    background-color: #f9f9f9;
}

.ebook-image img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Faz a imagem preencher o espaço sem distorcer */
}

.ebook-info {
    padding: 20px;
    flex-grow: 1;
    text-align: center;
}

.ebook-info h3 {
    font-size: 1.2rem;
    color: var(--secondary-color);
    margin-bottom: 15px;
    min-height: 50px; /* Garante que títulos curtos não desalinhem o card */
}

.ebook-info p {
    font-size: 0.95rem;
    color: #666;
    line-height: 1.5;
}

.ebook-cta {
    padding: 20px;
    text-align: center;
    background: #fdfdfd;
    border-top: 1px solid #eee;
}

.ebook-cta .price {
    display: block;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.ebook-cta .price-info {
    font-size: 0.9rem;
    color: #5cb85c;
    font-weight: bold;
    margin-bottom: 15px;
}

/* --- Seção Sobre os Cursos --- */
.course-features {
    background: #fff;
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.course-features h3 {
    color: var(--primary-color);
    margin-bottom: 20px;
}

.intro-text {
    text-align: center;
    max-width: 900px;
    margin: 0 auto 40px;
    font-size: 1.1rem;
    color: #444;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.feature-item {
    background: #f8f8f8;
    padding: 20px;
    border-radius: 8px;
    border-top: 4px solid var(--primary-color);
}

.feature-item h4 {
    margin-bottom: 10px;
    color: var(--secondary-color);
}

/* --- Responsividade --- */
@media (max-width: 992px) {
    .ebooks-grid { grid-template-columns: repeat(2, 1fr); }
    .features-grid { grid-template-columns: 1fr; }
}

@media (max-width: 600px) {
    .ebooks-grid { grid-template-columns: 1fr; }
    .ebook-image { height: 300px; }
}