/* ======================================
   SLIDE CONTAINER
====================================== */

.intro-slide {
    position: relative;
    width: 100%;
    height: 600px;                     /* Desktop */
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    overflow: hidden;
}

/* Dark overlay for readability */
.intro-slide::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to right,
        rgba(0, 0, 0, 0.45),
        rgba(0, 0, 0, 0.1)
    );
    z-index: 1;
}

/* ======================================
   CONTENT BOX (ALWAYS LEFT)
====================================== */

.intro-content {
    position: absolute;
    top: 60%;
    left: 30px;
    transform: translateY(-50%);
    max-width: 60%;                    /* REQUIRED */
    padding: 24px;
    background: rgba(0, 0, 0, 0.25);
    color: #fff;
    z-index: 2;
    text-align: left;
}

/* Text styles */
.intro-subtitle {
    font-size: 22px;
    line-height: 1.4;
    margin-bottom: 10px;
}

.intro-title {
    font-size: 16px;
    line-height: 1.6;
    margin-bottom: 18px;
}

/* Button */
.intro-content .btn {
    padding: 10px 22px;
    font-size: 14px;
}

/* ======================================
   ANIMATION
====================================== */

.slide-fade-up {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.8s ease;
}

.owl-item.active .slide-fade-up {
    opacity: 1;
    transform: translateY(0);
}

/* ======================================
   TABLET (≤ 1024px)
====================================== */

@media (max-width: 1024px) {
    .intro-slide {
        height: 480px;
    }

    .intro-content {
        max-width: 60%;
        left: 20px;
        padding: 18px;
    }

    .intro-subtitle {
        font-size: 18px;
    }

    .intro-title {
        font-size: 14px;
    }
}

/* ======================================
   MOBILE (≤ 767px)
====================================== */

@media (max-width: 767px) {
    .intro-slide {
        height: 360px;
    }

    .intro-slide::after {
        background: rgba(0, 0, 0, 0.45);
    }

    .intro-content {
        top: auto;
        bottom: 20px;
        left: 15px;
        transform: none;
        max-width: 60%;
        padding: 14px;
        text-align: left;
    }

    .intro-subtitle {
        font-size: 14px;
    }

    .intro-title {
        font-size: 12px;
    }

    .intro-content .btn {
        padding: 6px 14px;
        font-size: 12px;
    }
}

/* ======================================
   SMALL PHONES (≤ 480px)
====================================== */

@media (max-width: 480px) {
    .intro-slide {
        height: 300px;
    }

    .intro-content {
        bottom: 10px;
        left: 10px;
        max-width: 60%;
        padding: 12px;
        text-align: left;
    }

    .intro-subtitle {
        font-size: 13px;
    }

    .intro-title {
        font-size: 11px;
    }
}

/* All tabs (active + inactive) */
.nav.nav-pills .nav-link {
    font-size: 18px;
    text-transform: capitalize;
}

/* Active tab only */
.nav.nav-pills .nav-item.show .nav-link,
.nav.nav-pills .nav-item .nav-link.active {
    color: #333;
    border-bottom-color: #333;
    text-transform: capitalize;
}

/* Mobile screen */
@media (max-width: 767px) {
    .nav.nav-pills .nav-link {
        font-size: 14px;   /* smaller font for mobile */
    }
}
