/* ==========================================
INTEGRATED CAROUSEL STYLES
========================================== */
.hero-carousel-section {
    width: 100%;
    max-width: 1200px;
    margin: 0px auto 0px auto; 
    position: relative;
    overflow: hidden;
    border-radius: 12px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.15);
}

.carousel-container {
    position: relative;
    width: 100%;
    background: #000;
    height: 680px; 
    min-height: 650px;
}

/* FIXED: Stacks your animations on top of each other safely in the normal document flow */
.carousel-track {
    width: 100%;
    height: 100%;
    position: relative;
    display: grid;
    grid-template-columns: 1fr;
    grid-template-rows: 1fr;
}

/* FIXED: Replaces absolute flow breakage with modern grid layout area definitions */
.carousel-slide {
    grid-area: 1 / 1 / 2 / 2;
    width: 100%;
    height: 100%;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.8s ease-in-out, visibility 0.8s ease-in-out;
    z-index: 1;
    position: relative;
}

.carousel-slide.active {
    opacity: 1;
    visibility: visible;
    z-index: 2;
}

.slide-bg {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    position: absolute;
    top: 0;
    left: 0;
    display: block;
}

.carousel-slide::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(0,0,0,0.95) 20%, rgba(0,0,0,0.4) 60%, rgba(0,0,0,0.1) 100%);
    z-index: 2;
}

.slide-content {
    position: absolute;
    bottom: 60px;
    left: 50px;
    right: 50px;
    z-index: 3;
    color: #ffffff;
    max-width: 850px;
    text-align: left;
}

.category-tag {
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 2px;
    padding: 5px 12px;
    border-radius: 4px;
    display: inline-block;
    margin-bottom: 18px;
    text-transform: uppercase;
}

.tag-cover { background-color: #e50914; }
.tag-blog { background-color: #0076ff; }

.slide-content h2 {
    font-size: 38px; 
    line-height: 1.25;
    margin: 0 0 15px 0;
    font-weight: 700;
    color: #ffffff !important;
}

.slide-content p {
    font-size: 16px;
    color: #e0e0e0;
    margin: 0 0 25px 0;
    line-height: 1.6;
}

.read-more-btn {
    color: #ffffff;
    text-decoration: none;
    font-weight: 600;
    font-size: 16px;
    display: inline-flex;
    align-items: center;
    transition: color 0.3s ease;
}

.read-more-btn .arrow {
    margin-left: 8px;
    font-size: 18px;
    transition: transform 0.3s ease;
}

.read-more-btn:hover {
    color: #ffc107;
}

.read-more-btn:hover .arrow {
    transform: translateX(6px);
}

.carousel-dots {
    position: absolute;
    bottom: 25px;
    right: 50px;
    z-index: 4;
    display: flex;
    gap: 12px;
}

.dot {
    width: 10px;
    height: 10px;
    background-color: rgba(255, 255, 255, 0.35);
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
}

.dot.active {
    background-color: #ffffff;
    transform: scale(1.3);
    box-shadow: 0 0 8px rgba(255,255,255,0.6);
}