/* Estilos para as abas de categoria na seção "Compre aqui seu Kit" */
.category-tab {
    transition: all 0.3s ease;
    min-width: 120px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    background-color: #ffffff;
    color: #333;
    white-space: nowrap;
    position: relative;
    touch-action: manipulation;
    border: 1px solid #ec4899;
}

.category-tab:hover {
    background-color: #f3f4f6;
    color: #333;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.category-tab.active {
    background-color: #ec4899;
    color: white;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    border-color: #ec4899;
}

/* ALTERAÇÃO: Estilo de toque (:active) mais sutil para evitar confusão visual no mobile */
.category-tab:active {
    background-color: #fde8f1;
    /* Rosa bem claro */
    color: #be185d;
    /* Tom de rosa mais escuro para o texto */
    transform: scale(0.95);
}

#courses .grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    padding: 0 10px;
}

@media (max-width: 1024px) {
    #courses .grid {
        flex-direction: row;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        padding: 0 5px;
    }

    .category-tab {
        flex: 0 0 auto;
        min-width: 100px;
        padding: 8px 12px;
        font-size: 0.9rem;
        margin: 0 4px;
    }

    .category-tab:hover {
        background-color: #f3f4f6;
        color: #333;
    }

    .category-tab.active {
        background-color: #ec4899;
        color: white;
    }
}

#courses .grid::-webkit-scrollbar {
    display: none;
}

#courses .grid {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.coupon-info {
    background-color: #f9e6f0;
    padding: 8px;
    border-radius: 4px;
}

.coupon-highlight {
    color: #ec4899;
    font-weight: 700;
    display: block;
}

.coupon-info .coupon-value {
    font-weight: 700;
    color: #c026d3;
    background-color: rgba(236, 72, 153, 0.1);
    padding: 2px 6px;
    border-radius: 3px;
}

.coupon-info.highlight-coupon {
    background-color: #ffe6f0;
    border-left: 4px solid #ec4899;
    font-weight: 600;
    color: #333;
}

#courses-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    padding: 20px 10px;
    max-width: 1200px;
    margin: 0 auto;
}

.link-card {
    background-color: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    min-height: 400px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.link-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    aspect-ratio: 4/3;
    background-color: #f3f4f6;
}

.link-card img[src=""] {
    background-image: url('image/fallback.jpg');
    background-size: cover;
    background-position: center;
}

.link-card h3 {
    padding: 10px;
    text-align: center;
    font-size: 1.25rem;
    flex-grow: 0;
}

.link-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.link-card a {
    border-radius: 8px;
    width: auto;
    margin-left: auto;
    margin-right: auto;
    text-align: center;
}

@media (max-width: 1024px) {
    #courses-container {
        grid-template-columns: repeat(2, 1fr);
    }

    .link-card img {
        height: 180px;
    }
}

@media (max-width: 767px) {
    #courses-container {
        grid-template-columns: 1fr;
    }

    .link-card img {
        height: 150px;
    }
}

body {
    font-family: 'Lora', serif;
}

h1,
h2,
h3 {
    font-family: 'Playfair Display', serif;
}

#image-modal {
    display: none;
    align-items: center;
    justify-content: center;
    padding: 16px;
}

#modal-image {
    max-height: 80vh;
}

@media (max-width: 767px) {
    #modal-image {
        max-height: 60vh;
    }
}

.hero {
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    height: 100vh;
    position: relative;
    overflow: hidden;
}

/*Desktop*/
#home.hero {
    background-image: url('image/Foto_de_fundo02.png');
    background-color: #f3f4f6;
}

@media (max-width: 1024px) {
    #home.hero {
        background-image: url('image/Foto_de_fundo_mobile.png');
    }
}

#home .hero-overlay {
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.3));
    position: absolute;
    inset: 0;
}

#home .container {
    position: relative;
    z-index: 10;
    padding-bottom: 100px;
}

#home .container h1 {
    opacity: 0.8;
    /* Transparência leve para o título */
}

@media (max-width: 767px) {
    #home .container {
        padding-bottom: 50px;
    }
}

#about,
#event-info,
#courses,
#social {
    background: linear-gradient(to bottom, #fef1f5, #ffffff, #faf5ff);
    padding-top: 5rem;
    padding-bottom: 2rem;
}

#social {
    background: linear-gradient(to bottom, #faf5ff, #ffffff, #faf5ff);
}

footer {
    background: linear-gradient(to bottom, #fff1f8, #ffffff);
    padding-top: 2rem;
    padding-bottom: 2rem;
}

@media (max-width: 767px) {
    #mobile-menu {
        max-width: 300px;
        margin: 0 auto;
        background-color: rgba(255, 255, 255, 0.95);
        padding: 1.5rem;
        border-radius: 12px;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    }

    #mobile-menu a {
        display: block;
        text-align: center;
        padding: 1rem 0;
        font-size: 1.1rem;
        color: #374151;
        transition: color 0.3s ease, background-color 0.3s ease;
        outline: none;
    }

    #mobile-menu a:hover,
    #mobile-menu a:focus {
        color: #ec4899;
        background-color: rgba(236, 72, 153, 0.1);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.animate-fadeIn {
    animation: fadeIn 1s ease-in-out;
}

.fade-in.visible {
    opacity: 1;
    transition: opacity 0.5s ease-in-out;
}

.fade-in {
    opacity: 0;
}