/* Courses Page Styles */
:root {
    --color-white: #ffffff;
    --color-blue: #020085;
    --color-blue-hover: #0603a9;
    --color-light-blue: #008bfc;
    --color-orange: #fcac00;
    --color-dark-orange: #fc6900;
    --color-yellow: #e3fc00;
    --color-green: #26C440;
    --color-dark-green: #006e12;
    --color-pink: #E93FB6;
    --color-dark-pink: #ac067a;
    --color-ligth-green: #82df90;
    --color-blue-faq: #007DFE;
    --color-ligth-green2: rgb(188, 255, 198);
    --color-black: #2E2E2E;
    --color-black-heavy: #000000;
    --color-text: #4f4f4f;
    --color-icones: #00012D;
    --color-gray: #f9f9f9;
    --color-gray-black: #e3e3e3;
    --color-gray-caixa: #c7c7c7;
    --color-red: #e63946;
    --color-faq: #007DFE;
}

/* Hero Section */
.courses-hero {
    background: linear-gradient(135deg, rgba(2, 0, 133, 0.9) 0%, rgba(0, 139, 252, 0.9) 100%);
    color: white;
    padding-top: 230px ;
    padding-bottom: 80px ;
    text-align: center;
    position: relative;
}

.courses-hero .hero-content {
    max-width: 900px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.courses-hero .hero-title {
    font-size: 2.5rem;
    margin-bottom: 20px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.courses-hero .hero-subtitle {
    font-size: 1.2rem;
    margin-bottom: 30px;
    opacity: 0.9;
}

.search-box {
    max-width: 600px;
    margin: 0 auto;
    position: relative;
    display: flex;
}

.search-box input {
    width: 100%;
    padding: 15px 25px;
    border-radius: 50px;
    border: none;
    font-size: 1rem;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.search-box button {
    position: absolute;
    right: 2px;
    top: 2px;
    background: var(--color-blue);
    color: white;
    border: none;
    border-radius: 50px;
    width: 45px;
    height: 45px;
    cursor: pointer;
    transition: all 0.3s;
}

.search-box button:hover {
    background: var(--color-blue-hover);
}

/* Categories Navigation */
.categories-nav {
    background: white;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 85px;
    z-index: 100;
}

.categories-nav ul {
    display: flex;
    justify-content: center;
    list-style: none;
    padding: 0;
    margin: 0;
    overflow-x: auto;
    white-space: nowrap;
}

.categories-nav li {
    margin: 0;
}

.categories-nav a {
    display: block;
    padding: 20px 25px;
    color: var(--color-text);
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s;
    border-bottom: 3px solid transparent;
}

.categories-nav a:hover,
.categories-nav a.active {
    color: var(--color-blue);
    border-bottom: 3px solid var(--color-blue);
}

/* Destaque premium na navegação de categorias (categoria id 5) — fundo dourado com texto preto, paleta igual à seção de cursos */
.categories-nav a.premium-nav-link,
.categories-nav a.premium-nav-link:hover,
.categories-nav a.premium-nav-link.active {
    color: #000 !important;
    background: linear-gradient(135deg, #d4af37, #ffd700, #d4af37);
    border-bottom: 3px solid #d4af37;
    text-shadow: none;
    box-shadow: 0 0 12px rgba(255, 215, 0, 0.55);
}

/* Categoria premium ocupa 100% da largura da página — conteúdo full-width, as demais mantêm container normal */
.course-category.premium-category .container {
    max-width: 100%;
    width: 100%;
    padding: 0 20px;
}

/* Seção da categoria premium com cor de fundo e efeito */
.course-category.premium-category {
    background: linear-gradient(165deg, #0b0a02 0%, #2b1f02 35%, #55400a 65%, #0b0a02 100%) !important;
    position: relative;
    overflow: hidden;
    border-top: 4px solid #ffd700;
    border-bottom: 4px solid #ffd700;
    box-shadow: inset 0 0 80px rgba(255, 215, 0, 0.08);
}

/* Brilho sutil varrendo a seção premium */
.course-category.premium-category::before {
    content: "";
    position: absolute;
    top: 0;
    left: -60%;
    width: 60%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 215, 0, 0.10), rgba(255, 230, 102, 0.18), transparent);
    transform: skewX(-20deg);
    animation: premiumSectionShine 4.5s ease-in-out infinite;
    pointer-events: none;
    z-index: 1;
}

@keyframes premiumSectionShine {
    0% { left: -60%; }
    60%, 100% { left: 120%; }
}

.course-category.premium-category .category-title {
    color: #ffd700 !important;
    text-shadow: 0 0 14px rgba(255, 215, 0, 0.55), 0 2px 6px rgba(0, 0, 0, 0.65);
}

.course-category.premium-category .category-title i {
    color: #ffe066;
    text-shadow: 0 0 12px rgba(255, 215, 0, 0.7);
}

.course-category.premium-category .premium-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 18px;
    font-size: 0.9rem;
    font-weight: 800;
    letter-spacing: 2px;
    color: #3d2f00;
    background: linear-gradient(135deg, #d4af37, #ffe066, #d4af37);
    border: 2px solid #fff3b0;
    border-radius: 50px;
    box-shadow: 0 0 15px rgba(255, 215, 0, 0.6), 0 4px 12px rgba(0, 0, 0, 0.3);
    animation: premiumBadgePulse 1.8s ease-in-out infinite;
}

@keyframes premiumBadgePulse {
    0%, 100% { transform: scale(1); box-shadow: 0 0 12px rgba(255, 215, 0, 0.5), 0 4px 12px rgba(0, 0, 0, 0.3); }
    50% { transform: scale(1.08); box-shadow: 0 0 26px rgba(255, 215, 0, 0.95), 0 4px 16px rgba(0, 0, 0, 0.3); }
}

.course-category.premium-category .category-description {
    color: #f3e5ab;
}

.course-category.premium-category .course-card {
    border: 2px solid rgba(255, 215, 0, 0.25);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
}

.course-category.premium-category .course-card:hover {
    border-color: rgba(255, 215, 0, 0.75);
    box-shadow: 0 0 24px rgba(255, 215, 0, 0.35), 0 15px 30px rgba(0, 0, 0, 0.4);
}

/* Course Categories */
.course-category {
    padding: 60px 0;
}

.course-category:nth-child(odd) {
    background: var(--color-gray);
}

.category-header {
    text-align: center;
    margin-bottom: 40px;
}

.category-title {
    font-size: 2rem;
    color: var(--color-blue);
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
}

.category-title i {
    font-size: 1.5rem;
}

.category-description {
    color: var(--color-text);
    max-width: 700px;
    margin: 0 auto;
    font-size: 1.1rem;
}

.empty-category {
    text-align: center;
    padding: 60px 20px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.empty-category p {
    color: var(--color-text);
    font-size: 1.1rem;
    margin: 0;
}

/* Courses Grid */
.courses-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.course-card {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    position: relative;
}

.course-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.course-badge {
    position: absolute;
    top: 0px!important;
    left: 0px!important;
    z-index: 2;
    background: transparent!important;
}

.course-image-container {
    position: relative;
    overflow: hidden;
    height: 200px;
}

.course-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.course-hover {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(2, 0, 133, 0.8);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: white;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.course-card:hover .course-hover {
    opacity: 1;
}

.course-card:hover .course-image {
    transform: scale(1.05);
}

.course-info {
    padding: 20px;
}

.course-title {
    font-size: 1rem!important;
    color: var(--color-blue);
    padding: 0px!important ;
}

.course-subtitle {
    font-size: 0.7rem;
    margin-bottom: 10px;
    color: var(--color-black);
}

.course-meta {
    display: flex;
    justify-content: space-between;
    margin-bottom: 15px;
    font-size: 0.9rem;
    color: var(--color-text);
}

.course-meta i {
    margin-right: 5px;
    color: var(--color-blue);
}

.course-price {
    display: flex;
    align-items: center;
    gap: 10px;
}

.original-price {
    color: var(--color-text);
    font-size: 0.9rem;
}

.current-price {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--color-blue);
}

.category-footer {
    text-align: center;
}

.img-selo{
    width: 50px;
}

/* CTA Section */
.courses-cta {
    background: linear-gradient(135deg, var(--color-blue) 0%, var(--color-light-blue) 100%);
    color: white;
    padding: 80px 0;
    text-align: center;
}

.cta-content {
    max-width: 800px;
    margin: 0 auto;
}

.cta-title {
    font-size: 2rem!important;
    margin-bottom: 20px;
}

.cta-text {
    font-size: 1.2rem;
    margin-bottom: 30px;
    opacity: 0.9;
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate {
    opacity: 0;
    animation: fadeIn 0.8s ease forwards;
}

.delay-1 {
    animation-delay: 0.2s;
}

.delay-2 {
    animation-delay: 0.4s;
}

.delay-3 {
    animation-delay: 0.6s;
}

.delay-4 {
    animation-delay: 0.8s;
}

/* Responsive Styles */
@media (max-width: 992px) {
    .courses-hero {
        padding: 80px 0;
    }
    
    .courses-hero .hero-title {
        font-size: 2rem;
    }
    
    .courses-hero .hero-subtitle {
        font-size: 1rem;
    }
    
    .categories-nav ul {
        justify-content: flex-start;
    }
    
    .course-category {
        padding: 40px 0;
    }
    
    .category-title {
        font-size: 1.6rem;
    }
}

@media (max-width: 768px) {
    .cta-title {
        font-size: 1.5rem!important;
        margin-bottom: 20px;
    }
    .courses-hero {
        padding-top: 120px;
    }
    
    .courses-grid {
        grid-template-columns: 1fr;
    }
    
    .categories-nav a {
        padding: 10px;
        font-size: 0.8rem;
    }
    
    .course-image-container {
        height: 180px;
    }
}

@media (max-width: 480px) {
    .courses-hero .hero-title {
        font-size: 1.8rem;
    }
    
    .search-box input {
        padding: 12px 20px;
    }
    
    .category-title {
        font-size: 1.4rem;
        flex-direction: column;
        gap: 5px;
    }
    
    .category-title i {
        font-size: 1.2rem;
    }
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.85);
    animation: fadeIn 0.3s ease;
    backdrop-filter: blur(5px);
}

.modal.active {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.modal-content {
    max-width: 600px;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    animation: zoomIn 0.3s ease;
}

.modal-content img {
    max-width: 100%;
    max-height: 85vh;
    width: auto;
    height: auto;
    border-radius: 12px;
    display: block;
    margin: 0 auto;
}

.modal-close {
    position: fixed;
    top: 20px;
    right: 30px;
    color: red;
    background: white;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    z-index: 99999;
    line-height: 1;
}

.modal-close:hover {
    background: rgb(243, 243, 243);
    transform: rotate(90deg) scale(1.1);
}

@keyframes zoomIn {
    from {
        opacity: 0;
        transform: scale(0.8);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}
