/* Estilos para o Plugin de Cursos Pilates */

/* Reset e base */
.curso-hero,
.curso-banner,
.curso-objetivos,
.curso-info,
.curso-lista {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #5B5B5F;
}

/* Banner do Curso - Novo Layout com Gradiente */
.curso-hero {
    position: relative;
    width: 100%;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    color: #fff;
}

/* Container principal com layout de duas colunas */
.curso-hero-container {
    display: flex;
    width: 100%;
    height: 100%;
}

/* Lado esquerdo - Texto */
.curso-text-section {
    width: 68%;
    height: 100%;
    background: #F1F1F1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 6% 0 8%;
    position: relative;
}

/* Lado direito - Imagem */
.curso-image-section {
    width: 62%;
    height: 100%;
    position: relative;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

/* Gradiente suave na transição entre as seções */
.curso-gradient-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 15%;
    height: 100%;
    background: linear-gradient(to right, #F1F1F1 0%, rgba(241, 241, 241, 0.3) 40%, transparent 100%);
    z-index: 1;
}

/* Gradiente embaixo de toda a imagem */
.curso-gradient-bottom {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 30%;
    background: linear-gradient(to top, #F1F1F1 0%, rgba(241, 241, 241, 0.4) 30%, transparent 100%);
    z-index: 1;
}

.curso-content {
    position: relative;
    z-index: 2;
    max-width: 100%;
    text-align: left;
    display: flex;
    flex-direction: column;
    justify-content: center;
    height: 100%;
}

.curso-tag {
    display: inline-flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid #e0e0e0;
    border-radius: 20px;
    padding: 8px 16px;
    margin-bottom: 20px;
    font-size: 14px;
    color: #5B5B5F;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    margin-left: 150px;
}

.curso-tag-icon {
    margin-right: 8px;
    font-size: 16px;
}

.curso-tag-text {
    font-weight: 500;
}

.curso-content h1 {
    font-size: 4.25rem; /* 68px */
    font-weight: bold;
    color: #712621;
    line-height: 1.1;
    margin-bottom: 40px;
    margin-left: 150px;
    font-family: Arial;
    margin-top: 0;
}

.curso-content p {
    font-size: 1.56rem; /* 25px */
    color: #333;
    line-height: 1.4;
    max-width: 100%;
    margin-left: 150px;
    margin-bottom: 30px;
}

.curso-button {
    display: inline-block;
    background: #712621;
    color: white;
    padding: 16px 32px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(113, 38, 33, 0.3);
    margin-left: 150px;
    align-self: flex-start;
}

.curso-button:hover {
    background: #5a1f1a;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(113, 38, 33, 0.4);
    color: white;
    text-decoration: none;
}

/* Objetivos do Curso */
.curso-objetivos {
    background: #f8f9fa;
    padding: 60px 0;
    margin: 40px 0;
    border-radius: 12px;
}

.curso-objetivos-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: #712621;
    margin: 0 0 40px 0;
    text-align: center;
}

.curso-objetivos-list {
    list-style: none;
    padding: 0;
    margin: 0;
    max-width: 800px;
    margin: 0 auto;
    padding: 0 20px;
}

.curso-objetivo-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 20px;
    padding: 15px 0;
}

.curso-objetivo-check {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    background: #712621;
    color: white;
    border-radius: 4px;
    margin-right: 16px;
    font-weight: bold;
    font-size: 14px;
    flex-shrink: 0;
    margin-top: 2px;
}

.curso-objetivo-text {
    font-size: 1.1rem;
    color: #5B5B5F;
    line-height: 1.6;
}

/* Informações do Curso - Novo Layout com Abas */
.curso-info-container {
    display: flex;
    gap: 40px;
    margin: 40px 0;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

.curso-info-main {
    flex: 2;
    background: transparent;
    display: flex;
    flex-direction: column;
}

.curso-info-nav {
    display: flex;
    background: #F8F5F2;
    border-radius: 25px;
    padding: 8px;
    margin-bottom: 30px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    gap: 0;
}

.curso-info-nav-btn {
    background: transparent;
    border: none;
    padding: 12px 20px;
    font-size: 1rem;
    font-weight: 500;
    color: #888888;
    cursor: pointer;
    transition: all 0.3s ease;
    border-radius: 20px;
    margin-right: 0;
    flex: 1;
}

.curso-info-nav-btn:hover {
    color: #712621;
}

.curso-info-nav-btn.active {
    background: #E8E0D8;
    color: #712621;
    font-weight: 600;
    font-size: 1.05rem;
}

.curso-info-content {
    padding: 0;
    flex: 1;
}

.curso-info-tab {
    display: none;
}

.curso-info-tab.active {
    display: block;
}

.curso-info-tab h2 {
    font-size: 2rem;
    font-weight: 700;
    color: #712621;
    margin: 0 0 30px 0;
    font-family: Arial, sans-serif;
}

.curso-info-tab p {
    font-size: 1.1rem;
    color: #5B5B5F;
    line-height: 1.6;
    margin: 0;
}

.curso-info-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.curso-info-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 20px;
    padding: 15px 0;
}

.curso-info-check {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    background: #712621;
    color: white;
    border-radius: 4px;
    margin-right: 16px;
    font-weight: bold;
    font-size: 14px;
    flex-shrink: 0;
    margin-top: 2px;
}

.curso-info-text {
    font-size: 1.1rem;
    color: #5B5B5F;
    line-height: 1.6;
}

/* Sidebar com preço e benefícios */
.curso-info-sidebar {
    flex: 1;
    max-width: 400px;
    display: flex;
    align-items: flex-start;
}

.curso-info-box {
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    padding: 30px;
    position: sticky;
    top: 0;
    width: 100%;
}

.curso-info-box-header {
    margin-bottom: 25px;
}

.curso-info-box-type {
    font-size: 0.9rem;
    color: #5B5B5F;
    display: block;
    margin-bottom: 8px;
}

.curso-info-box-title {
    font-size: 1.4rem;
    font-weight: 700;
    color: #333;
    margin: 0;
    line-height: 1.3;
}

.curso-info-box-price {
    margin-bottom: 25px;
    text-align: center;
}

.curso-info-box-access {
    font-size: 0.9rem;
    color: #5B5B5F;
    display: block;
    margin-bottom: 10px;
}

.curso-info-box-price-value {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 8px;
}

.curso-info-box-installments {
    font-size: 1.2rem;
    font-weight: 600;
    color: #333;
}

.curso-info-box-amount {
    font-size: 2.5rem;
    font-weight: 700;
    color: #333;
    line-height: 1;
}

.curso-info-box-benefits {
    margin-bottom: 25px;
}

.curso-info-box-benefits .curso-info-list {
    margin: 0;
}

.curso-info-box-benefits .curso-info-item {
    margin-bottom: 15px;
    padding: 0;
}

.curso-info-box-benefits .curso-info-check {
    width: 20px;
    height: 20px;
    font-size: 12px;
    margin-right: 12px;
}

.curso-info-box-benefits .curso-info-text {
    font-size: 1rem;
}

.curso-info-box-button {
    display: block;
    width: 100%;
    background: #712621;
    color: white;
    padding: 16px 24px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    text-align: center;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(113, 38, 33, 0.3);
}

.curso-info-box-button:hover {
    background: #5a1f1a;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(113, 38, 33, 0.4);
    color: white;
    text-decoration: none;
}

/* Lista de Cursos - Layout Simplificado */
.curso-lista {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(360px, 1fr));
    gap: 32px;
    margin: 40px 0;
    justify-content: center;
}

/* Card do Curso - Layout Exato */
.curso-card {
    background: #fff;
    border-radius: 16px;
    overflow: visible;
    font-family: Arial, sans-serif;
    max-width: 340px;
    margin: 0 auto;
    position: relative;
    box-sizing: border-box;
}

/* Container da imagem com tags sobrepostas */
.curso-card-image-container {
    position: relative;
    border-top-left-radius: 16px;
    border-top-right-radius: 16px;
    overflow: hidden;
    width: 100%;
    height: 220px;
    margin-bottom: 0;
}

.curso-card-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Container para as tags sobrepostas */
.curso-card-tags-overlay {
    position: absolute;
    top: 12px;
    left: 12px;
    right: 12px;
    display: flex;
    justify-content: space-between;
    z-index: 2;
}

.curso-card-tag-overlay {
    font-size: 14px;
    font-weight: bold;
    padding: 5px 12px;
    border-radius: 8px;
    z-index: 2;
    font-family: Arial, sans-serif;
}

.curso-card-tag-left {
    background: #712622;
    color: white;
}

.curso-card-tag-right {
    background: white;
    color: #333;
    border: 1px solid rgba(0, 0, 0, 0.1);
}

/* Conteúdo do Card */
.curso-card-content {
    background: #fff;
    border-bottom-left-radius: 16px;
    border-bottom-right-radius: 16px;
    padding: 20px;
    box-sizing: border-box;
    margin-top: 8px;
    display: flex;
    flex-direction: column;
    gap: 0;
}

/* Título do Curso */
.curso-card-title {
    margin: 0 0 10px 0;
    font-size: 20px;
    font-weight: bold;
    color: #712622;
    font-family: Arial, sans-serif;
}

/* Descrição do Curso */
.curso-card-description {
    margin: 0 0 15px 0;
    font-size: 15px;
    color: #555;
    line-height: 1.5;
    font-family: Arial, sans-serif;
}

.curso-card-price {
    font-weight: bold;
    font-size: 16px;
    color: #000;
    margin-bottom: 20px;
    font-family: Arial, sans-serif;
}

/* Botão do Curso */
.curso-card-button {
    display: block;
    width: 100%;
    text-align: center;
    background: #712622;
    color: #fff;
    padding: 12px;
    border-radius: 30px;
    font-weight: bold;
    text-decoration: none;
    transition: background 0.3s;
    border: none;
    cursor: pointer;
    font-family: Arial, sans-serif;
    font-size: 16px;
}

.curso-card-button:hover {
    background: #5a1d1b;
    color: white;
    text-decoration: none;
}

/* Filtros de Cursos */
.curso-filtros-container {
    margin: 40px 0 20px 0;
    display: flex;
    justify-content: center;
}

/* Desktop: botões em linha única */
.curso-filtros-desktop {
    background: #fff;
    border-radius: 25px;
    padding: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    display: flex;
    gap: 4px;
    max-width: 700px;
    width: 100%;
    justify-content: center;
    white-space: nowrap;
    overflow: hidden;
}

.curso-filtros-bar {
    background: #fff;
    border-radius: 25px;
    padding: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    display: flex;
    gap: 4px;
    max-width: 700px;
    width: 100%;
    justify-content: center;
    white-space: nowrap;
    overflow: hidden;
}

.curso-filtro-btn {
    background: transparent;
    border: none;
    padding: 12px 20px;
    border-radius: 20px;
    font-size: 0.95rem;
    font-weight: 500;
    color: #888888;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
    min-width: 100px;
    text-align: center;
    font-family: Arial, sans-serif;
}

.curso-filtro-btn:hover {
    background: rgba(113, 38, 33, 0.1);
    color: #712621;
}

.curso-filtro-btn.active {
    background: #F8F5F2;
    color: #712621;
    font-weight: 600;
}

/* Mobile: select dropdown */
.curso-filtros-mobile {
    display: none;
    width: 100%;
    max-width: 300px;
    margin: 0 auto;
}

.curso-filtro-select {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e0e0e0;
    border-radius: 25px;
    background: #fff;
    color: #712621;
    font-size: 1rem;
    font-weight: 500;
    font-family: Arial, sans-serif;
    cursor: pointer;
    transition: border-color 0.3s ease;
    appearance: none;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%23712621' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='m6 8 4 4 4-4'/%3e%3c/svg%3e");
    background-position: right 12px center;
    background-repeat: no-repeat;
    background-size: 16px;
    padding-right: 40px;
}

.curso-filtro-select:focus {
    outline: none;
    border-color: #712621;
}

/* Responsividade */
@media (max-width: 768px) {
    .curso-hero-container {
        flex-direction: column;
    }

    .curso-text-section {
        width: 100%;
        height: 45%;
        padding: 30px 20px;
        text-align: center;
    }

    .curso-image-section {
        width: 100%;
        height: 55%;
    }

    .curso-content h1 {
        font-size: 2.8rem; /* Ajustado para mobile */
        margin-bottom: 25px;
        margin-left: 0;
    }

    .curso-content p {
        font-size: 1.25rem; /* Ajustado para mobile */
        max-width: 100%;
        margin-left: 0;
    }

    .curso-tag {
        margin-left: 0;
    }

    .curso-button {
        margin-left: 0;
    }

      .curso-gradient-overlay {
        background: linear-gradient(to top, rgba(241, 241, 241, 0.8) 0%, rgba(241, 241, 241, 0.2) 40%, transparent 100%);
        width: 100%;
        height: 35%;
        top: auto;
        bottom: 0;
      }

      .curso-gradient-bottom {
        height: 45%;
        background: linear-gradient(to top, #F1F1F1 0%, rgba(241, 241, 241, 0.3) 25%, transparent 100%);
      }

    .curso-content {
        text-align: center;
        height: auto;
    }
    
    .curso-objetivos-title {
        font-size: 2rem;
    }
    
    .curso-info-container {
        flex-direction: column;
        gap: 30px;
        padding: 0 20px;
    }
    
    .curso-info-sidebar {
        max-width: 100%;
        order: -1;
        align-items: stretch;
    }
    
    .curso-info-nav {
        flex-wrap: wrap;
        margin-bottom: 20px;
        padding: 6px;
    }
    
    .curso-info-nav-btn {
        flex: 1;
        min-width: 120px;
        padding: 10px 16px;
        font-size: 0.9rem;
        margin-right: 0;
    }
    
    .curso-info-content {
        padding: 0;
    }
    
    .curso-info-tab h2 {
        font-size: 1.8rem;
    }
    
    .curso-lista {
        grid-template-columns: 1fr;
        gap: 24px;
        padding: 0 16px;
    }
    
    .curso-card {
        max-width: 100%;
    }
    
    .curso-card-content {
        padding: 16px 20px 20px 20px;
    }
    
    .curso-card-title {
        font-size: 1.2rem;
    }
    
    .curso-card-description {
        font-size: 0.95rem;
    }
    
    /* Filtros responsivos */
    .curso-filtros-desktop,
    .curso-filtros-bar {
        display: none;
    }
    
    .curso-filtros-mobile {
        display: block;
    }
    
    .curso-filtro-select {
        padding: 10px 14px;
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .curso-hero {
        height: 100vh;
    }
    
    .curso-text-section {
        height: 50%;
        padding: 20px 15px;
    }
    
    .curso-image-section {
        height: 50%;
    }
    
    .curso-content h1 {
        font-size: 2rem;
        margin-bottom: 20px;
    }
    
    .curso-content p {
        font-size: 1rem;
        margin-bottom: 20px;
    }
    
    .curso-button {
        padding: 12px 24px;
        font-size: 1rem;
    }
    
    .curso-objetivos {
        padding: 40px 0;
    }
    
    .curso-objetivos-title {
        font-size: 1.8rem;
    }
    
    .curso-info-container {
        padding: 0 15px;
        gap: 20px;
    }
    
    .curso-info-box {
        padding: 20px;
    }
    
    .curso-info-nav {
        margin-bottom: 15px;
        padding: 4px;
    }
    
    .curso-info-nav-btn {
        padding: 8px 12px;
        font-size: 0.85rem;
        min-width: 90px;
        margin-right: 0;
    }
    
    .curso-info-content {
        padding: 0;
    }
    
    .curso-info-tab h2 {
        font-size: 1.5rem;
        margin-bottom: 20px;
    }
    
    .curso-info-box-title {
        font-size: 1.2rem;
    }
    
    .curso-info-box-amount {
        font-size: 2rem;
    }
    
    .curso-lista {
        padding: 0 12px;
        gap: 20px;
    }
    
    .curso-card-image {
        height: 180px;
    }
    
    .curso-card-content {
        padding: 16px 18px 18px 18px;
        gap: 12px;
    }
    
    .curso-card-title {
        font-size: 1.1rem;
    }
    
    .curso-card-description {
        font-size: 0.9rem;
    }
    
    .curso-card-button {
        font-size: 0.9rem;
    }
    
    .curso-filtros-bar {
        padding: 4px;
        gap: 1px;
        flex-direction: column;
        align-items: center;
    }
    
    .curso-filtro-btn {
        padding: 8px 12px;
        font-size: 0.85rem;
        min-width: 120px;
        width: 100%;
        max-width: 200px;
    }
}

/* Cursos Relacionados */
.cursos-relacionados-container {
    margin: 60px 0;
    font-family: Arial, sans-serif;
}

.cursos-relacionados-title {
    font-size: 2.5rem;
    font-weight: bold;
    color: #712621;
    text-align: center;
    margin-bottom: 40px;
    font-family: Arial, sans-serif;
}

.cursos-relacionados-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.curso-relacionado-card {
    background: #fff;
    border-radius: 16px;
    overflow: visible;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    max-width: 340px;
    margin: 0 auto;
    font-family: Arial, sans-serif;
}

.curso-relacionado-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.curso-relacionado-image-container {
    position: relative;
    height: 220px;
    border-top-left-radius: 16px;
    border-top-right-radius: 16px;
    overflow: hidden;
    margin-bottom: 0;
}

.curso-relacionado-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.curso-relacionado-tags-overlay {
    position: absolute;
    top: 12px;
    left: 12px;
    right: 12px;
    display: flex;
    justify-content: space-between;
    z-index: 2;
}

.curso-relacionado-tag-overlay {
    font-size: 14px;
    font-weight: bold;
    padding: 5px 12px;
    border-radius: 8px;
    font-family: Arial, sans-serif;
}

.curso-relacionado-tag-left {
    background: #712622;
    color: white;
}

.curso-relacionado-tag-right {
    background: white;
    color: #333;
    border: 1px solid rgba(0, 0, 0, 0.1);
}

.curso-relacionado-content {
    padding: 20px;
    margin-top: 8px;
    display: flex;
    flex-direction: column;
    gap: 0;
}

.curso-relacionado-title {
    font-size: 20px;
    font-weight: bold;
    color: #712622;
    margin-bottom: 10px;
    font-family: Arial, sans-serif;
    line-height: 1.2;
}

.curso-relacionado-description {
    font-size: 15px;
    color: #555;
    margin-bottom: 15px;
    line-height: 1.4;
    font-family: Arial, sans-serif;
}

.curso-relacionado-price {
    font-weight: bold;
    font-size: 16px;
    color: #000;
    margin-bottom: 20px;
    font-family: Arial, sans-serif;
}

.curso-relacionado-button {
    width: 100%;
    padding: 12px;
    border-radius: 30px;
    background: #712622;
    color: #fff;
    text-decoration: none;
    text-align: center;
    font-size: 16px;
    font-weight: bold;
    transition: background 0.3s ease;
    font-family: Arial, sans-serif;
}

.curso-relacionado-button:hover {
    background: #5a1d1b;
    color: #fff;
    text-decoration: none;
}

/* Responsividade para Cursos Relacionados */
@media (max-width: 768px) {
    .cursos-relacionados-title {
        font-size: 2rem;
        margin-bottom: 30px;
    }
    
    .cursos-relacionados-grid {
        grid-template-columns: 1fr;
        gap: 20px;
        padding: 0 15px;
    }
    
    .curso-relacionado-card {
        max-width: 100%;
    }
    
    .curso-relacionado-title {
        font-size: 18px;
    }
    
    .curso-relacionado-description {
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    .cursos-relacionados-title {
        font-size: 1.8rem;
    }
    
    .cursos-relacionados-grid {
        padding: 0 10px;
    }
    
    .curso-relacionado-content {
        padding: 15px;
    }
    
    .curso-relacionado-title {
        font-size: 16px;
    }
    
    .curso-relacionado-description {
        font-size: 13px;
    }
    
    .curso-relacionado-button {
        font-size: 14px;
        padding: 10px;
    }
}
