.home-carousel {
    width: 100%;
    height: 100vh;
    position: relative;
    overflow: hidden;
    touch-action: pan-y;
}

/* Slides */
.home-slide {
    width: 100%;
    height: 100vh;
    background-size: cover;
    background-position: bottom;
    position: absolute;
    inset: 0;
    display: flex;
    align-items: flex-end;
    opacity: 0;
    transition: opacity 0.8s ease-in-out;
    z-index: 1;
}

/* Active slide */
.home-slide.active {
    opacity: 1;
    z-index: 2;
}

/* Previous slide */
.home-slide.prev {
    left: -100%;
    z-index: 1;
}

/* Button */
.home-slide button {
    padding: 10px 18px;
    border: none;
    background-color: #0c717a;
    color: white;
    border-radius: 12px;
    margin-left: 200px;
    margin-bottom: 130px;
    font-size: 16px;
    cursor: pointer;
}

.home-slide button:hover {
    background-color: #a55626;
    /* Secondary brand */
}

/* Navigation buttons */
.nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.4);
    color: #fff;
    border: none;
    padding: 12px;
    cursor: pointer;
    font-size: 20px;
    border-radius: 50%;
    z-index: 3;
}

.nav.prev {
    left: 20px;
}

.nav.next {
    right: 20px;
}

.dots-container {
    position: absolute;
    bottom: 30px;
    width: 100%;
    display: flex;
    justify-content: center;
    gap: 10px;
    z-index: 5;
}

.dot {
    width: 10px;
    height: 10px;
    background: #a55626;
    border-radius: 50%;
    cursor: pointer;
    transition: background 0.3s;
}

.dot.active {
    background: #0c717a; /* brand primary */
    transform: scale(1.2);
}



/* Mobile */
@media (max-width: 768px) {
    .home-slide {
        justify-content: center;
    }

    .home-slide button {
        margin: 0 0 80px 0;
        font-size: 15px;
    }
}

/* ------------------------------------------------ placement ---------------------------------------- */

.home-placement {
    width: 100%;
    height: auto;
    background: url(./assets/img/home/second-img.jpg);
    background-repeat: no-repeat;
    background-size: cover;
    background-position: bottom;
    display: flex;
    flex-direction: column;
    /* justify-content: center; */
    align-items: center;
    padding: 30px 0;
}

.home-placement-head {
    width: 100%;
    /* padding: 30px 0; */
    display: flex;
    align-items: center;
    justify-content: center;
}

.home-placement-head h2 {
    font-size: 3rem;
    font-weight: 400;
    color: white;
}

.home-placement-card-main {
    width: 100%;
    display: flex;
    overflow: hidden;
    /* background-color: yellow; */
    padding: 20px 0;
}

.home-placement-card-main-track {
    width: max-content;
    display: flex;
    gap: 30px;
    animation: placement-scroll-left linear infinite;
}

.home-placement-card-box {
    width: auto;
    height: auto;
    /* background-color: wheat; */
    display: flex;
    align-items: center;
    flex-direction: column;
    justify-content: center;
    gap: 15px;
}

.home-placement-card-box img {
    width: 14rem;
}

.home-placement-card-box-deails {
    line-height: 18px;
    color: white;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.home-placement-card-box h5 {
    font-size: 1rem;
    font-weight: 600;
}

.home-placement-card-box p {
    font-size: 0.8rem;
    font-weight: 300;
}

.home-placement-card-box span {
    font-size: 0.8rem;
    font-weight: 300;
}

.home-placement-count-container {
    width: 80%;
    height: auto;
    /* background-color: yellowgreen; */
    padding-top: 70px;
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    align-items: center;
    gap: 20px;
}

.home-placement-count-card {
    width: 220px;
    display: flex;
    flex-direction: column;
    text-align: center;
    color: #c3a387;
    line-height: 40px;
    /* background-color: yellow; */
}

.home-placement-count-card h1 {
    font-size: 55px;
    font-weight: 800;
}

.home-placement-count-card p {
    font-size: 22px;
    /* line-height: 25px; */
}

@keyframes placement-scroll-left {
    from {
        transform: translateX(0);
    }

    to {
        transform: translateX(-50%);
    }
}

@media (max-width: 1175px) {
    .home-placement-count-container {
        width: 90%;
        justify-content: center;
        gap: 50px;
    }
}

@media (max-width: 650px) {
    .home-placement-count-card h1 {
        font-size: 45px;
    }

    .home-placement-count-card p {
        font-size: 18px;
    }

    .home-placement-count-container {
        padding-top: 40PX;
    }

}

@media (max-width: 550px) {
    .home-placement-head h2 {
        font-size: 2.5rem;
    }

    .home-placement-card-box img {
        width: 12rem;
    }
}

@media (max-width: 410px) {
    .home-placement-head h2 {
        font-size: 2.3rem;
    }
}

/* ------------------------------------------------ about ---------------------------------------- */

.about-container {
    width: 100%;
    height: auto;
    background-color: #fff7ed;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    padding-bottom: 50px;
    gap: 40px;
}

.about-content-main {
    width: 80%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    /* background-color: yellowgreen; */
}


.about-content-text {
    width: 45%;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.about-content-text h2 {
    font-size: 40px;
    font-weight: 300;
    color: #a55626;
}

.about-content-text p {
    font-size: 18px;
    font-weight: 300;
    line-height: 25px;
}

.about-content-main img {
    width: 30rem;
}

.about-card-main {
    width: 80%;
    height: auto;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 20px;
}

.about-card-box {
    flex: 1;
    min-width: 230px;
    height: auto;
    /* background-color: #a55626; */
    padding: 40px;
    border-radius: 60px;
    display: flex;
    flex-direction: column;
    gap: 15px;
    transition: all 0.4s ease;
    cursor: pointer;
}

.about-card-box:hover {
    flex: 4;
    transform: scale(1.02);
}

.about-card-main:hover .about-card-box:not(:hover) {
    flex: 1;
    /* opacity: 0.7; */
    filter: blur(1px);
}


.about-card-box-head {
    display: flex;
    align-items: end;
    justify-content: space-between;
    font-size: 20px;
    color: white;
}

.about-card-box-head img {
    width: 25px;
}

.about-card-box p {
    font-size: 14px;
    color: white;
    font-weight: 200;
    max-height: 45px;
    overflow: hidden;
    transition: max-height 0.5s ease;
    display: -webkit-box;
    /* -webkit-line-clamp: 2; */
    /* show only 2 lines */
    -webkit-box-orient: vertical;
}

.about-card-box:hover p {
    max-height: 500px;
    -webkit-line-clamp: unset;
}

@media (max-width: 1150px) {
    .about-content-main img {
        width: 25rem;
    }
}

@media (max-width: 1000px) {
    .about-content-main {
        flex-direction: column;
        gap: 35px;
    }

    .about-content-text {
        width: 100%;
    }
}

@media (max-width: 450px) {
    .about-content-main img {
        width: 20rem;
    }
}

/* ------------------------------------------------ team ---------------------------------------- */

.home-team-container {
    width: 100%;
    padding-top: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.home-team-content-main {
    width: 80%;
    padding-bottom: 30px;
}

.home-team-content-main h2 {
    font-size: 3rem;
    font-weight: 400;
    line-height: 55px;
    color: #0c717a;
}

.home-team-content-main p {
    font-size: 1.2rem;
    margin-top: 15px;
    color: gray;
    font-weight: 300;
}

.team-more-btn {
    width: 100%;
    display: flex;
    justify-content: end;
}

.team-more-btn a {
    text-decoration: none;
}

.team-more-btn button {
    padding: 10px 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background-color: transparent;
    border: none;
    font-size: 1rem;
    color: #616060;
    font-weight: 500;
    font-style: italic;
    cursor: pointer;
}

.team-more-btn button img {
    width: 1rem;
}

@media (max-width: 600px) {
    .home-team-content-main h2 {
        font-size: 2.5rem;
    }

    .home-team-content-main p {
        font-size: 1rem;
    }
}

@media (max-width: 490px) {
    .home-team-content-main h2 {
        font-size: 2.1rem;
    }
}

/* ------------------------------------------------ why choose us ---------------------------------------- */

.why-choose-us-container {
    width: 100%;
    padding: 50px 0;
    /* background-color: yellow; */
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
}

/* Heading */
.why-choose-us-head {
    width: 80%;
}

.why-choose-us-head h2 {
    font-size: 3rem;
    font-weight: 400;
    color: #0c717a;
}


/* LEFT WHITE SPACE / IMAGE HOLDER
.why-choose-us-empty {
    width: 25%;
    background-color: white;
} */


/* RIGHT CONTENT */
.why-choose-us-content {
    width: 80%;
    display: flex;
    align-items: center;
    gap: 40px;
    margin-top: 40px;
    /* background-color: white; */
}

/* Image */
.why-choose-us-content-img {
    width: 45%;
}

.why-choose-us-content-img img {
    width: 100%;
}

/* Text */
.why-choose-us-content-text {
    width: 55%;
}

.why-choose-us-content-text h4 {
    font-size: 2rem;
    color: #666;
    margin-bottom: 20px;
    font-weight: 500;
}

.why-choose-us-content-text p {
    font-size: 1rem;
    line-height: 28px;
    color: #969494;
    text-align: justify;
    font-weight: 300;
}

@media (max-width: 992px) {

    .why-choose-us-content {
        width: 80%;
        flex-direction: column;
        /* background-color: #6d3434; */
    }

    .why-choose-us-content-img {
        width: 100%;
    }

    .why-choose-us-content-text {
        width: 100%;
    }
}

@media (max-width:600px) {
    .why-choose-us-content {
        gap: 20px;
        margin-top: 30px;
    }

    .why-choose-us-head h2 {
        font-size: 2.5rem;
    }

    .why-choose-us-content-text h4 {
        font-size: 1.8rem;
    }
}

@media (max-width: 490px) {
    .why-choose-us-head h2 {
        font-size: 2.1rem;
    }

    .why-choose-us-content-text h4 {
        font-size: 1.3rem;
    }

    .why-choose-us-content-text h4 {
        margin-bottom: 15px;
    }

    .why-choose-us-content-text p {
        font-size: 0.9rem;
        line-height: 24px;
    }
}

/* ------------------------------------------------ Courses ---------------------------------------- */
/* ===== SECTION ===== */
.our-courses-section {
    padding: 60px 0;
    text-align: center;
}

.our-courses-section h2 {
    font-size: 3rem;
    margin-bottom: 40px;
    color: #555;
    font-weight: 400;
}

/* ===== CAROUSEL LAYOUT ===== */
.carousel-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    width: 100%;
}

/* ===== CAROUSEL WINDOW ===== */
.carousel {
    width: 60%;
    overflow: hidden;
    touch-action: pan-y;
}

/* ===== TRACK ===== */
.carousel-track {
    display: flex;
    transition: transform 0.4s ease;
    will-change: transform;
}

/* ===== SLIDE ===== */
.course-card {
    width: 100%;
    min-width: 100%;
    flex-shrink: 0;

    display: flex;
    align-items: center;
    gap: 30px;

    background: #0c717a;
    color: #fff;
    border-radius: 120px;

    padding: 0 40px 0 0;
}

/* ===== IMAGE ===== */
.course-image {
    width: 240px;
    height: 100%;
    border-radius: 120px;
    overflow: hidden;
    flex-shrink: 0;
}

.course-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* ===== CONTENT ===== */
.course-content {
    text-align: left;
    padding: 50px 0;
}

.course-content h3 {
    font-size: 1.6rem;
    margin-bottom: 15px;
}

.course-content p {
    font-size: 1rem;
    line-height: 26px;
}

/* ===== NAV BUTTONS ===== */
.nav-btn {
    background: none;
    border: none;
    font-size: 2.2rem;
    cursor: pointer;
    color: #777;
}

/* ===================================================
   RESPONSIVE
=================================================== */

/* ===== LARGE TABLET ===== */
@media (max-width: 1200px) {
    .carousel {
        width: 75%;
    }

    /* .course-card {
        border-radius: 50px;
    } */
}

/* ===== TABLET ===== */
@media (max-width: 900px) {
    .carousel {
        width: 90%;
    }

    .course-card {
        gap: 20px;
        border-radius: 100px;
    }

    .course-image {
        width: 200px;
        border-radius: 100px;
    }
}

/* ===== MOBILE ===== */
@media (max-width: 768px) {

    .carousel-wrapper {
        gap: 0;
    }

    .nav-btn {
        display: none;
    }

    .carousel {
        width: 100%;
    }

    .course-card {
        flex-direction: column;
        padding: 0;
        /* border-radius: 24px; */
        text-align: center;
    }

    .course-image {
        width: 100%;
        height: 220px;
        /* border-radius: 24px; */
    }

    .course-content {
        padding: 25px;
        text-align: center;
    }

    .course-content h3 {
        font-size: 1.4rem;
    }

    .course-content p {
        font-size: 0.95rem;
        line-height: 24px;
    }
}

/* ===== SMALL MOBILE ===== */
@media (max-width: 480px) {
    .our-courses-section {
        padding: 30px 0;
    }

    .our-courses-section h2 {
        font-size: 2.2rem;
    }

    .course-content h3 {
        font-size: 1.25rem;
    }

    .course-content p {
        font-size: 0.85rem;
    }
}