/* ==========================================
   TOPICS GENERAL
   ========================================== */

.topics-section {
    padding: 0;
    background: var(--white);
    margin-top: 5rem;
    margin-bottom: 5rem;
}


/* ==========================================
   TOPICS FEATURE LAYOUT
   ========================================== */

.topics-feature-layout {
    display: flex;
    align-items: center;
    gap: 2.5rem;
    margin-top: 2rem;
}


/* ==========================================
   FEATURE BOX - LEFT SIDE
   ========================================== */

.topics-feature-box {
    flex: 3;
    margin: 0;
    padding: 1.75rem 2rem;
    background: linear-gradient(
        180deg,
        #ffffff,
        #f8fbfa
    );
    border: 1px solid var(--border);
    border-radius: 18px;
    box-shadow: 0 12px 30px rgba(15, 47, 36, 0.08);
    text-align: left;
}

.topics-feature-title {
    margin: 0 0 0.75rem;
    font-size: 1.25rem;
    color: var(--primary);
    font-weight: 700;
}

.topics-feature-text {
    margin-bottom: 1rem;
    color: var(--gray);
    line-height: 1.6;
}

.topics-feature-list {
    list-style: none;
    padding: 0;
    margin: 0 0 1.25rem;
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.75rem;
}

.topics-feature-list li {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--dark);
    font-weight: 500;
    line-height: 1.5;
}

.topics-feature-list li::before {
    content: "✓";
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: rgba(46, 125, 50, 0.12);
    color: var(--primary);
    font-weight: 700;
    flex-shrink: 0;
}

.topics-feature-footer {
    margin: 0;
    color: var(--gray);
    line-height: 1.7;
    border-top: 1px solid var(--border);
    padding-top: 1rem;
}


/* ==========================================
   BLACK BOX - RIGHT SIDE
   ========================================== */

.topics-black-box {
    flex: 7;
    height: 600px;
    background: #000000;
    flex-shrink: 0;
    border-radius: 18px;
}

/* ==========================================
   TOPICS IMAGE SLIDER - RIGHT SIDE
   ========================================== */

.topics-image-slider {
    position: relative;
    flex: 7;
    height: 600px;
    flex-shrink: 0;
    overflow: hidden;
    border-radius: 18px;
    background: #000000;
}

.topics-slider-track {
    position: relative;
    width: 100%;
    height: 100%;
}

.topics-slide {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.5s ease;
}

.topics-slide.active {
    opacity: 1;
    visibility: visible;
}

.topics-slide img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    object-position: center;
}


/* ==========================================
   SLIDER ARROWS
   ========================================== */

.topics-slider-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 5;

    width: 42px;
    height: 42px;

    border: none;
    border-radius: 50%;

    background: rgba(0, 0, 0, 0.55);
    color: #ffffff;

    font-size: 1.4rem;
    line-height: 1;

    display: flex;
    align-items: center;
    justify-content: center;

    cursor: pointer;

    transition:
        background 0.2s ease,
        transform 0.2s ease;
}

.topics-slider-arrow:hover {
    background: rgba(0, 0, 0, 0.8);
}

.topics-slider-prev {
    left: 18px;
}

.topics-slider-next {
    right: 18px;
}


/* ==========================================
   SLIDER DOTS
   ========================================== */

.topics-slider-dots {
    position: absolute;
    bottom: 18px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 5;

    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 10px;

    padding: 8px 12px;
    border-radius: 999px;

    background: rgba(0, 0, 0, 0.45);
}

.topics-slider-dot {
    display: block;
    width: 9px;
    min-width: 9px;
    height: 9px;
    min-height: 9px;

    margin: 0;
    padding: 0;

    border: 0;
    border-radius: 50%;

    background: rgba(255, 255, 255, 0.5);

    cursor: pointer;

    appearance: none;
    -webkit-appearance: none;

    transition:
        background 0.25s ease,
        transform 0.25s ease;
}

.topics-slider-dot.active {
    background: #ffffff;
    transform: scale(1.25);
}




/* ==========================================
   RESPONSIVE
   ========================================== */

@media (max-width: 991px) {

    .topics-image-slider {
        flex: none;
        width: 100%;
        height: 500px;
    }

}


@media (max-width: 767px) {

    .topics-image-slider {
        height: 350px;
        border-radius: 14px;
    }

    .topics-slider-arrow {
        width: 36px;
        height: 36px;
        font-size: 1.1rem;
    }

    .topics-slider-prev {
        left: 12px;
    }

    .topics-slider-next {
        right: 12px;
    }

    .topics-slider-dots {
        bottom: 12px;
    }

}












/* ==========================================
   TOPICS 2 - MIRRORED LAYOUT
   ========================================== */

/*
   Topics 2 uses the same .topics-feature-layout,
   but the HTML places the black box first:

   <div class="topics-feature-layout">
       <div class="topics-black-box"></div>
       <div class="topics-feature-box"></div>
   </div>

   No additional CSS is required.
*/


.topics-2-section {
    padding: 0;
    background: var(--white);
    margin-bottom: 5rem;
}


/* ==========================================
   TOPICS 3
   ========================================== */

.topics-3-section {
    padding: 0;
    background: var(--white);
    margin-bottom: 5rem;
}


/* ==========================================
   SECTION HEADER
   ========================================== */

.topics-subtitle-header {
    text-align: center;
    max-width: 1000px;
    margin: 0 auto 2.5rem;
    padding: 0 1rem;
}

.topics-subtitle-title {
    font-size: 2rem;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 0.5rem;
    letter-spacing: -0.02em;
}

.topics-subtitle-subtitle {
    font-size: 1.05rem;
    line-height: 1.6;
    color: var(--gray);
    opacity: 0.95;
}

.topics-subtitle-header::after {
    content: "";
    display: block;
    width: 60px;
    height: 3px;
    background: var(--primary);
    margin: 14px auto 0;
    border-radius: 99px;
}


/* ==========================================
   RESPONSIVE
   ========================================== */

@media (max-width: 991px) {

    .topics-feature-layout {
        flex-direction: column;
        align-items: stretch;
    }

    .topics-feature-box {
        flex: none;
        width: 100%;
    }

    .topics-black-box {
        flex: none;
        width: 100%;
        height: 500px;
    }

}


@media (max-width: 768px) {

    .topics-section,
    .topics-2-section,
    .topics-3-section {
        margin-top: 3rem;
        margin-bottom: 3rem;
    }

    .topics-feature-box {
        padding: 1.25rem;
    }

    .topics-feature-list {
        grid-template-columns: 1fr;
    }

    .topics-subtitle-title {
        font-size: 1.7rem;
    }

    .topics-subtitle-subtitle {
        font-size: 1rem;
    }

}


@media (max-width: 767px) {

    .topics-feature-layout {
        gap: 1.5rem;
    }

    .topics-black-box {
        height: 350px;
        border-radius: 14px;
    }

    .topics-feature-box {
        border-radius: 14px;
    }

}