*{
    line-height: 1.5em;
}

h1,h2,h3,h4,h5,h6{
    margin-top: 0.5em;
    margin-bottom: 0.5em;
}

pre{
    padding: 2em;
    margin: 1em;
}

code{
     line-height: 1em;
}

pre, code{
    background: #DEE4ED;
    border-radius: 5px;
}

ul, ol{
    margin: 2em;
}

p{
    margin: 1em 0;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* --- ESTRUTURA PRINCIPAL (PADRÃO = 1 COLUNA PARA CELULAR) --- */
.event-layout-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* Coluna da Imagem */
.event-image-column img {
    width: 100%;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    margin-bottom: 1.5rem;
}

/* Coluna de Detalhes */
.event-details-column h2 {
    font-size: 2.5rem;
    font-weight: 700;
    line-height: 1.2;
    margin-top: 0;
    margin-bottom: 1rem;
}

.event-key-info {
    display: flex;
    flex-wrap: wrap;
    gap: 15px 25px; /* Espaçamento vertical e horizontal */
    padding: 15px;
    background-color: #f8f9fa;
    border-radius: 12px;
    margin-bottom: 2rem;
}

.info-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.95rem;
}

.info-item i {
    color: #007bff;
}

/* --- ESTILOS DA SEÇÃO DE INGRESSOS --- */
.tickets-section {
    background-color: #f8f9fa;
    padding: 25px;
    border-radius: 12px;
    height: 100%;
}

.tickets-title {
    font-size: 1.5rem;
    padding-bottom: 10px;
    margin-top: 0;
    margin-bottom: 15px;
    border-bottom: 1px solid #ddd;
}

.tickets-list .ticket-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
    border-bottom: 1px solid #ddd;
}

.tickets-list .ticket-row:last-child {
    border-bottom: none; /* Remove a borda do último item */
}

.ticket-info .ticket-name {
    font-size: 1.1rem;
    font-weight: 600;
    margin: 0;
}

.ticket-info .ticket-price {
    font-size: 1rem;
    color: #6c757d;
    margin: 0;
}

.ticket-action form {
    display: flex;
    align-items: center;
    gap: 15px;
}

.ticket-action .quantity-selector input {
    width: 60px;
    padding: 8px;
    border: 1px solid #ced4da;
    border-radius: 5px;
    text-align: center;
}

.ticket-action .btn--primary {
    width: auto;
    padding: 8px 20px;
    white-space: nowrap;
}

/* --- SEÇÕES ADICIONAIS (ABAIXO DAS COLUNAS) --- */
.event-additional-info {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.event-additional-info .section {
    margin-top: 2rem;
}

/* --- LAYOUT PARA TELAS GRANDES (DESKTOP) --- */
@media (min-width: 992px) {
    /* Ativa o layout de 2 colunas */
    .event-layout-container {
        display: grid;
        grid-template-columns: 40% 1fr; /* Coluna da imagem com 40%, o resto flexível */
        gap: 40px; /* Espaço entre as colunas */
        align-items: flex-start;
    }
    
    /* Efeito "grudento" para a imagem não sumir com a rolagem */
    .event-image-column {
        position: sticky;
        top: 20px;
    }
    
    /* Ajuste de fonte para o título em telas maiores */
    .event-details-column h2 {
        font-size: 3rem;
    }
}

/* Seção de Calendário */
.calendar-section {
    padding: 60px 0;
    background-color: #f8f9fa;
}

.section-header {
    text-align: center;
    margin-bottom: 40px;
}

.section-header h2 {
    font-size: 2.5rem;
    color: #333;
    margin-bottom: 10px;
}

.section-header p {
    font-size: 1.1rem;
    color: #666;
}

/* Barra de pesquisa */
.search-container {
    max-width: 600px;
    margin: 0 auto 40px;
}

.search-form {
    width: 100%;
}

.search-input-wrapper {
    display: flex;
    border-radius: 50px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.search-input-wrapper input {
    flex: 1;
    padding: 15px 25px;
    border: none;
    font-size: 1rem;
}

.search-button {
    background: #007bff;
    color: white;
    border: none;
    padding: 0 25px;
    cursor: pointer;
    transition: background 0.3s;
}

.search-button:hover {
    background: #0056b3;
}

/* Grade de eventos */
.events-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.event-card {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s, box-shadow 0.3s;
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
}

.event-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

.event-card-image {
    width: 100%;
    height: 180px; /* Altura fixa para a imagem */
    object-fit: cover; /* Garante que a imagem cubra a área sem distorcer */
    border-top-left-radius: 10px;
    border-top-right-radius: 10px;
}

.event-card-header {
    padding: 20px;
    border-bottom: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.event-card-header h3 {
    font-size: 1.2rem;
    color: #333;
    margin: 0;
}

.event-status {
    display: flex;
    align-items: center;
}

.status-badge {
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
}

.status-active {
    background-color: #e3f7e8;
    color: #0d923f;
}

.status-closed {
    background-color: #f8e3e3;
    color: #d03333;
}

.event-card-body, .event-card-footer {
    flex-grow: 1;
}

.event-card-body {
    padding: 20px;
}

.event-description {
    color: #666;
    margin-bottom: 15px;
    line-height: 1.5;
}

.event-stats {
    display: flex;
    gap: 15px;
}

.event-stat {
    display: flex;
    align-items: center;
    gap: 5px;
    color: #777;
    font-size: 0.9rem;
}

.event-card-footer {
    padding: 15px 20px;
    background-color: #f9f9f9;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid #eee;
}

.event-date {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.date-item {
    display: flex;
    flex-direction: column;
}

.date-label {
    font-size: 0.75rem;
    color: #888;
}

.date-value {
    font-size: 0.9rem;
    color: #333;
    font-weight: 500;
}

.event-action {
    display: flex;
    align-items: center;
}

.btn-details {
    padding: 8px 15px;
    background-color: #007bff;
    color: white;
    border-radius: 5px;
    font-size: 0.9rem;
    transition: background 0.3s;
}

.btn-details:hover {
    background-color: #0056b3;
}

/* Paginação */
.pagination {
    display: flex;
    justify-content: center;
    gap: 10px;
}

.pagination-item {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: white;
    color: #333;
    text-decoration: none;
    font-weight: 500;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    transition: all 0.3s;
}

.pagination-item:hover {
    background-color: #f0f0f0;
}

.pagination-item.active {
    background-color: #007bff;
    color: white;
}

/* Seção destacada */
.featured-section {
    background: linear-gradient(135deg, #007bff, #00d2ff);
    color: white;
    padding: 80px 0;
    text-align: center;
}

.featured-content {
    max-width: 800px;
    margin: 0 auto;
}

.featured-content h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.featured-content p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    opacity: 0.9;
}

.btn-featured {
    display: inline-block;
    background-color: white;
    color: #007bff;
    padding: 12px 25px;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s;
}

.btn-featured:hover {
    background-color: rgba(255, 255, 255, 0.9);
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

/* --- AJUSTES PARA CELULAR --- */
@media (max-width: 768px) {
    /* Grade de eventos em coluna única */
    .events-grid {
        grid-template-columns: 1fr;
    }
    
    .event-card-footer {
        flex-direction: column;
        gap: 15px;
        align-items: flex-start;
    }
    
    /* Títulos menores */
    .section-header h2 {
        font-size: 2rem;
    }
    
    .featured-content h2 {
        font-size: 2rem;
    }

    /* Ajustes para a lista de ingressos */
    /* Em telas muito pequenas, coloca o botão embaixo */
    .tickets-list .ticket-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .ticket-action {
        width: 100%;
    }
    
    .ticket-action form {
        width: 100%;
        justify-content: space-between;
    }
    
    .ticket-action .btn--primary {
        flex-grow: 1; /* Faz o botão crescer e ocupar o espaço */
    }
    
    /* Container com padding adequado para mobile */
    .container {
        padding: 0 15px;
    }
    
    /* Ajustes na barra de pesquisa */
    .search-input-wrapper {
        border-radius: 25px;
    }
    
    .search-input-wrapper input {
        padding: 12px 20px;
        font-size: 0.9rem;
    }
    
    .search-button {
        padding: 0 20px;
    }
    
    /* Ajustes no spacing das seções */
    .calendar-section {
        padding: 40px 0;
    }
    
    .featured-section {
        padding: 60px 0;
    }
}