/* ============================================
   Featured Section Styles - Modern Design
   ============================================ */

.featured {
    position: relative;
    overflow-x: hidden;
    overflow-y: visible;
    background: linear-gradient(180deg, var(--bg-primary) 0%, var(--bg-secondary) 100%);
    width: 100%;
}

.featured-carousel-wrapper {
    position: relative;
    max-width: 1600px;
    margin: 0 auto;
    padding: 0 1.5rem 3rem;
}

.featured-carousel {
    position: relative;
    overflow: hidden;
    padding: 2rem 0;
    margin: 0 -0.5rem;
}

.featured-track {
    display: flex;
    gap: 1.5rem;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    padding: 0.5rem;
}

/* Card Design */
.featured-card {
    flex: 0 0 500px;
    background: var(--bg-card);
    border-radius: var(--radius-2xl);
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    border: 1px solid var(--border-color);
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    position: relative;
}

.featured-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--primary-light));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.featured-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 60px rgba(95, 216, 107, 0.3), 0 0 40px rgba(95, 216, 107, 0.1);
    border-color: var(--primary-color);
}

.featured-card:hover::before {
    transform: scaleX(1);
}

/* Image Section */
.featured-card-image {
    position: relative;
    width: 100%;
    height: 200px;
    background: linear-gradient(135deg, #1a1a1a 0%, #2a2a2a 100%);
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.featured-card-image::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
        135deg,
        rgba(95, 216, 107, 0.1) 0%,
        transparent 50%,
        rgba(95, 216, 107, 0.05) 100%
    );
    z-index: 1;
}

.featured-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.featured-card:hover .featured-card-image img {
    transform: scale(1.1);
    filter: brightness(1.1);
}

/* Placeholder Icon for Missing Images */
.featured-card-image:not(:has(img))::after {
    content: '\f1c0';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    font-size: 4rem;
    color: var(--primary-color);
    opacity: 0.3;
    z-index: 2;
}

/* Gradient Overlay */
.featured-card-image::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 50%;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
    z-index: 2;
}

/* Type Badge */
.featured-type-badge {
    position: absolute;
    top: 1.25rem;
    right: 1.25rem;
    padding: 0.625rem 1.25rem;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    color: var(--primary-color);
    font-size: 0.75rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    border-radius: var(--radius-full);
    border: 2px solid var(--primary-color);
    box-shadow: 0 4px 12px rgba(95, 216, 107, 0.3);
    z-index: 3;
}

/* Content Section */
.featured-card-content {
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.featured-card-date {
    font-size: 0.875rem;
    color: var(--primary-color);
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.featured-card-date i {
    font-size: 0.875rem;
}

.featured-card-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.featured-card-description {
    font-size: 0.875rem;
    line-height: 1.6;
    color: var(--text-secondary);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.featured-card-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    padding-top: 0.75rem;
    border-top: 1px solid var(--border-color);
}

.featured-tag {
    padding: 0.5rem 1rem;
    background: var(--bg-secondary);
    color: var(--text-primary);
    font-size: 0.75rem;
    font-weight: 600;
    border-radius: var(--radius-full);
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

.featured-tag:hover {
    background: var(--primary-color);
    color: #000;
    border-color: var(--primary-color);
    transform: translateY(-2px);
}

.featured-card-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.625rem;
    padding: 0.75rem 1.25rem;
    margin-top: 0.5rem;
    background: var(--primary-color);
    color: #000;
    font-size: 0.875rem;
    font-weight: 700;
    text-decoration: none;
    border-radius: var(--radius-lg);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 12px rgba(95, 216, 107, 0.3);
}

.featured-card-link:hover {
    background: var(--primary-light);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(95, 216, 107, 0.4);
    gap: 0.875rem;
}

.featured-card-link i {
    font-size: 0.875rem;
    transition: transform 0.3s ease;
}

.featured-card-link:hover i {
    transform: translateX(3px);
}

/* Carousel Controls */
.carousel-controls {
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    transform: translateY(-50%);
    display: flex;
    justify-content: space-between;
    pointer-events: none;
    z-index: 10;
    padding: 0;
}

.carousel-controls .carousel-btn:first-child {
    margin-left: -2rem;
}

.carousel-controls .carousel-btn:last-child {
    margin-right: -2rem;
}

.carousel-btn {
    width: 64px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
    border-radius: 50%;
    font-size: 1.5rem;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
    pointer-events: auto;
}

.carousel-btn:hover:not(:disabled) {
    background: var(--primary-color);
    color: #000;
    transform: scale(1.1);
    box-shadow: 0 8px 32px rgba(95, 216, 107, 0.5);
}

.carousel-btn:active:not(:disabled) {
    transform: scale(0.95);
}

.carousel-btn:disabled {
    opacity: 0.3;
    cursor: not-allowed;
    border-color: var(--border-color);
    color: var(--text-secondary);
}

/* Carousel Dots */
.carousel-dots {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.75rem;
    margin-top: 2rem;
}

.carousel-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--bg-secondary);
    border: 2px solid var(--border-color);
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.carousel-dot:hover {
    background: var(--primary-color);
    border-color: var(--primary-color);
    transform: scale(1.3);
}

.carousel-dot.active {
    background: var(--primary-color);
    border-color: var(--primary-color);
    width: 40px;
    border-radius: 5px;
    box-shadow: 0 0 20px rgba(95, 216, 107, 0.5);
}

/* Responsive */
@media (max-width: 1024px) {
    .featured-carousel-wrapper {
        padding: 0 1.5rem 2.5rem;
    }

    .featured-card {
        flex: 0 0 420px;
    }

    .carousel-btn {
        width: 56px;
        height: 56px;
        font-size: 1.25rem;
    }
}

@media (max-width: 768px) {
    .featured-carousel-wrapper {
        padding: 0 1.5rem 2rem;
    }

    .featured-card {
        flex: 0 0 380px;
    }

    .featured-card-image {
        height: 200px;
    }

    .featured-card-content {
        padding: 1.25rem;
    }

    .featured-card-title {
        font-size: 1.25rem;
    }

    .carousel-btn {
        width: 48px;
        height: 48px;
        font-size: 1.125rem;
    }
}

@media (max-width: 480px) {
    .featured-carousel-wrapper {
        padding: 0 1.5rem 1.5rem;
    }

    .featured-card {
        flex: 0 0 calc(100vw - 5rem);
    }

    .featured-card-image {
        height: 200px;
    }

    .featured-card-content {
        padding: 1rem;
    }

    .featured-card-title {
        font-size: 1.125rem;
    }

    .carousel-btn {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }

    .carousel-controls {
        padding: 0 0.5rem;
    }
}
