/*** Header carousel ***/
:root {
    --primary:  #57B33E;
    --light: #FFF;
    --dark:  #232323;
    --default-color: #ffc107;
    --primary-dark: #3d8a29;
    --light: #FFF;
    --dark: #232323;
    --primary-light: rgba(87, 179, 62, 0.1);
    --gray: #F8F9FA;
    --text: #000000;
    --yellow: #f7ba03;
    --dark-blue: #002347;
}
/*--------------------------------------------------------------
*--------------------------------------------------------------
# Header Carousel
--------------------------------------------------------------*/
.bg-orange-500 {
    background-color: var(--default-color) !important;
}

/*--------------------------------------------------------------
*--------------------------------------------------------------
# Header Carousel
--------------------------------------------------------------*/
.header-carousel {
    position: relative;
    width: 100%;
    height: 50vh;
    overflow: hidden;
}

.header-carousel .owl-carousel-item {
    position: relative;
    min-height: 100vh;
}

.header-carousel .owl-carousel-item img {
    position: absolute;
    width: 100%;
    height: 50%;
    object-fit: cover;
}

@media (max-width: 768px) {
    .header-carousel .owl-carousel-item {
        position: relative;
        min-height: 100vh;
    }

    .header-carousel .owl-carousel-item img {
        position: absolute;
        width: 100%;
        height: 50%;
        object-fit: cover;
    }

    .header-carousel .owl-dots {
        position: absolute;
        width: 50px;
        height: 0px;
        top: 350px;
        right: 10px;
        display: flex;
        flex-direction: row;
        align-items: center;
        justify-content: center;
    }
}

/* iPhone SE specific styles */
@media (max-width: 375px) {
    .header-carousel .owl-carousel-item {
        width: 100%;
        height: 100%;
    }

    .header-carousel .owl-carousel-item img {
        height: 100%;
    }

    .header-carousel .owl-dots {
        top: 250px;
        right: 5px;
        width: 40px;
    }
}

.header-carousel .owl-nav {
    position: absolute;
    top: 50%;
    right: 8%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
}

.header-carousel .owl-nav .owl-prev,
.header-carousel .owl-nav .owl-next {
    margin: 7px 0;
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #FFFFFF;
    background: transparent;
    border: 1px solid #FFFFFF;
    font-size: 22px;
    transition: .5s;
}

.header-carousel .owl-nav .owl-prev:hover,
.header-carousel .owl-nav .owl-next:hover {
    background: var(--primary);
    border-color: var(--primary);
}

/*** Service ***/
.service-item {
    background: var(--light);
    transition: .5s;
}

.service-item:hover {
    margin-top: -10px;
    background: var(--primary);
}

.service-item * {
    transition: .5s;
}

.service-item:hover * {
    color: var(--light) !important;
}

/*** Feature Start ***/
.feature-t .feature-item {
    position: relative;
    display: flex;
    border: 1px solid var(--primary);
    border-radius: 10px;
    background: var(--bs-light);
    transition: 0.5s;

}

.feature-t .feature-item::before {
    width: 0;
    height: 100%;
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    border-radius: 10px;
    transition: 0.5s;
}

.feature-t .feature-item:hover::before {
    width: 100%;
    background: var(--primary);
}

.feature-t .feature-item .feature-icon {
    display: inline-flex;
    border-radius: 10px;
    transition: 0.5s;
}

.feature-t .feature-item:hover .feature-icon {
    position: relative;
    z-index: 2;
}

.feature-t .feature-item:hover .feature-content {
    position: relative;
    color: var(--bs-white);
    z-index: 2;
}

.feature-t .feature-item:hover .feature-content h5 {
    color: var(--bs-dark);
}
/*** Feature End ***/
/*--------------------------------------------------------------
*--------------------------------------------------------------
# Featured Services Section
--------------------------------------------------------------*/

.featured-services .service-item {
  padding: 50px 30px;
  transition: all ease-in-out 0.4s;
  height: 100%;
}

.featured-services .service-item .icon {
  margin-bottom: 10px;
}

.featured-services .service-item .icon i {
  color: var(--accent-color);
  font-size: 36px;
  transition: 0.3s;
}

.featured-services .service-item h4 {
  font-weight: 700;
  margin-bottom: 15px;
  font-size: 20px;
}

.featured-services .service-item h4 a {
  color: var(--heading-color);
  transition: ease-in-out 0.3s;
}

.featured-services .service-item p {
  line-height: 24px;
  font-size: 14px;
  margin-bottom: 0;
}

.featured-services .service-item:hover {
  transform: translateY(-10px);
  background-color: var(--surface-color);
  box-shadow: 0px 5px 90px 0px rgba(0, 0, 0, 0.1);
}

.featured-services .service-item:hover h4 a {
  color: var(--accent-color);
}
/*** Team ***/
.training-team-item img {
    transition: .5s;
}

.training-team-item:hover img {
    transform: scale(1.1);
}


/*** Testimonial ***/
.testimonial-carousel::before {
    position: absolute;
    content: "";
    top: 0;
    left: 0;
    height: 100%;
    width: 0;
    background: linear-gradient(to right, rgba(255, 255, 255, 1) 0%, rgba(255, 255, 255, 0) 100%);
    z-index: 1;
}

.testimonial-carousel::after {
    position: absolute;
    content: "";
    top: 0;
    right: 0;
    height: 100%;
    width: 0;
    background: linear-gradient(to left, rgba(255, 255, 255, 1) 0%, rgba(255, 255, 255, 0) 100%);
    z-index: 1;
}

@media (min-width: 768px) {
    .testimonial-carousel::before,
    .testimonial-carousel::after {
        width: 200px;
    }
}

@media (min-width: 992px) {
    .testimonial-carousel::before,
    .testimonial-carousel::after {
        width: 300px;
    }
}

.testimonial-carousel .owl-item .testimonial-text,
.testimonial-carousel .owl-item.center .testimonial-text * {
    transition: .5s;
}

.testimonial-carousel .owl-item.center .testimonial-text {
    background: var(--primary) !important;
}

.testimonial-carousel .owl-item.center .testimonial-text * {
    color: #FFFFFF !important;
}

.testimonial-carousel .owl-dots {
    margin-top: 24px;
    display: flex;
    align-items: flex-end;
    justify-content: center;
}

.testimonial-carousel .owl-dot {
    position: relative;
    display: inline-block;
    margin: 0 5px;
    width: 15px;
    height: 15px;
    border: 1px solid #CCCCCC;
    transition: .5s;
}

.testimonial-carousel .owl-dot.active {
    background: var(--primary);
    border-color: var(--primary);
}
/*Course Tabs*/

/* Course Section */
#courses {
    padding: 4rem 1rem;
    background-color: #f9fafb;
}

/* Course Header */
.course-header {
    max-width: 48rem;
    margin: 0 auto 3rem;
    text-align: center;
}

.course-header h2 {
    font-size: 1.875rem;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 0.5rem;
}

.course-header p {
    font-size: 1.125rem;
    color: #4b5563;
}

/* Course Tabs Container */
.course-tabs-container {
    margin-bottom: 0.5rem;
}

/* Tabs Wrapper */
.course-tabs-wrapper {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    margin-bottom: 1rem;
}

/* Tab Buttons */
.tab-btn {
    padding: 0.75rem 1.5rem;
    margin: 0.5rem;
    font-weight: 500;
    border-radius: 0.5rem;
    cursor: pointer;
    transition: all 0.3s ease-in-out;
    border: 2px solid var(--default-color);
    background-color: var(--light);
    color: var(--dark);
}

/* Active Tab */
.tab-btn.active {
    background-color: var(--default-color);
    color: var(--light);
    border: 2px solid var(--default-color);
}

/* Inactive Tab */
.tab-btn.inactive {
    background-color: var(--light);
    color: var(--dark);
    border: 2px solid var(--default-color);
}

/* Hover Effects */
.tab-btn:hover {
    transform: translateY(-2px);
    background-color:var(--default-color);
}

/* Tab Content */
#courses .tab-content {
    display: none !important;
}

#courses .tab-content.active {
    display: block !important;
}

/* Course Card */
.course-card {
    background-color: var(--light);
    padding: 2rem;
    border-radius: 0.5rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 4px 8px -1px rgba(0, 0, 0, 0.06);
}

.course-card h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 1rem;
}

.course-card .info {
    display: flex;
    flex-wrap: wrap;
    margin-bottom: 1rem;
}

.course-card .info-item {
    display: flex;
    align-items: center;
    margin-right: 1.5rem;
    margin-bottom: 0.5rem;
}

.course-card .info-item svg {
    width: 1.25rem;
    height: 1.25rem;
    color: var(--default-color);
    margin-right: 0.5rem;
}

.course-card .info-item span {
    color: #4b5563;
}

.course-card p {
    color: #4b5563;
    margin-bottom: 1rem;
}

.course-card h4 {
    font-size: 1.125rem;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 0.5rem;
}

.course-card ul {
    list-style: disc;
    padding-left: 1.25rem;
    margin-bottom: 1.5rem;
    color: #4b5563;
}

/* Buttons Container */
.buttons-container {
    display: flex;
    flex-wrap: wrap;
}

/* Button Base Styles */
.custom-btn {
    padding: 0.5rem 1.5rem;
    margin-right: 1rem;
    margin-bottom: 0.5rem;
    font-weight: 500;
    border-radius: 0.5rem;
    text-decoration: none;
    display: inline-block;
    transition: all 0.3s ease-in-out;
}

/* Enroll Now Button */
.custom-btn.enroll-btn {
    background-color: var(--default-color);
    color: var(--light);
    border: 2px solid transparent;
}

.custom-btn.enroll-btn:hover {
    background-color: var(--primary); /* Darker shade of #ffc107 */
    transform: translateY(-0.25rem);
}

/* Download Brochure Button */
.custom-btn.brochure-btn {
    background-color: var(--default-color);
    color: var(--light);
}

.custom-btn.brochure-btn:hover {
    background-color: var(--primary);
    color: var(--light);
    transform: translateY(-0.25rem);
}

/* Highlights Card */
.highlights-card {
    background-color: #fff7ed;
    padding: 1.5rem;
    border-radius: 0.5rem;
}

.highlights-card h4 {
    font-size: 1.125rem;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 1rem;
}

.highlights-card .highlight-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 0.75rem;
}

.highlights-card .highlight-item svg {
    width: 1.25rem;
    height: 1.25rem;
    color: var(--primary);
    margin-right: 0.5rem;
    margin-top: 0.25rem;
}

.highlights-card .highlight-item span {
    color: #4b5563;
}

.highlights-card .price-info {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid #e5e7eb;
}

.highlights-card .price-item {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.5rem;
}

.highlights-card .price-item span:first-child {
    color: #4b5563;
}

.highlights-card .price-item span:last-child {
    font-weight: 600;
    color: #1f2937;
}

/* Suryamitra Specific */
.suryamitra-badge {
    background-color: #dbeafe;
    color: #1e40af;
    font-size: 0.75rem;
    font-weight: 500;
    width: 150px;
    height: 30px;
    padding: 0.25rem 0.75rem;
    border-radius: 0.25rem;
    margin-left: 0.75rem;
}

.suryamitra-info {
    background-color: #eff6ff;
    border-left: 4px solid #3b82f6;
    padding: 1rem;
    margin-bottom: 1.5rem;
}

.suryamitra-info .info-content {
    display: flex;
    align-items: center;
}

.suryamitra-info svg {
    width: 1.25rem;
    height: 1.25rem;
    color: #3b82f6;
    margin-right: 0.75rem;
}

.suryamitra-info p {
    color: #1e40af;
    font-size: 0.875rem;
}

/* Override Bootstrap and Tailwind Conflicts */
#courses,
#courses .course-tabs-container,
#courses .tab-btn,
#courses .custom-btn,
#courses .course-card,
#courses .highlights-card,
#courses .suryamitra-info {
    box-shadow: none !important;
    outline: none !important;
    border: none !important;
}

/* Responsive Adjustments */
@media (min-width: 768px) {
    .course-card .flex {
        display: flex;
        flex-direction: row;
    }

    .course-card .content {
        width: 66.666667%;
        padding-right: 2rem;
    }

    .course-card .sidebar {
        width: 33.333333%;
    }
}

@media (max-width: 767px) {
    .course-card .flex {
        flex-direction: column;
    }

    .course-card .content,
    .course-card .sidebar {
        width: 100%;
    }

    .course-card .sidebar {
        margin-top: 1.5rem;
    }
}
/*why choose us*/

     .animate-fade-in {
            animation: fadeIn 0.6s ease-out forwards;
        }

        /* Ensure group-hover works for parent card */
        .why-card {
            position: relative;
            transition: all 0.3s ease-in-out;
        }

        .why-card:hover {
            background-color: #f8fafc; /* Subtle background change on hover */
        }

        /* Focus state for accessibility */
        .why-card:focus-within {
            outline: 2px solid #57B33E;
            outline-offset: 2px;
            box-shadow: 0 0 0 4px rgba(87, 179, 62, 0.3);
        }

/*image with button*/

 /* Style the nav container */
   /* Main nav container for category tabs */
        .nav.nav-pills.team-tabs {
            display: flex;
            justify-content: center;
            gap: 20px;
            flex-wrap: wrap;
            margin-bottom: 30px;
        }

        /* Style each nav-item as a card with a background image */
        .team-tabs .nav-item {
            position: relative;
            width: 300px;
            height: 250px;
            background-size: cover;
            background-position: center;
            border-radius: 8px;
            overflow: hidden;
            box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
            transition: transform 0.2s;
        }

        .team-tabs .nav-item:hover {
            transform: scale(1.05);
        }

        /* Specific background images for each nav-item */
        .team-tabs .nav-item:has(#students-tab) {
            background-image: url('/img/Students-A.jpg'); /* Replace with actual image path */
        }

        .team-tabs .nav-item:has(#professionals-tab) {
            background-image: url('/img/Professionals-B.jpg'); /* Replace with actual image path */
        }

        .team-tabs .nav-item:has(#corporates-tab) {
            background-image: url('/img/Corporate-C.jpg'); /* Replace with actual image path */
        }

        /* Style only main category buttons with card-button class */
        .team-tabs .nav-item .card-button {
            position: absolute;
            bottom: 15px;
            left: 50%;
            transform: translateX(-50%);
            width: 80%;
            padding: 10px;
            background-color: var(--primary); /* Semi-transparent Bootstrap primary */
            color: white;
            border: none;
            border-radius: 5px;
            text-align: center;
            font-size: 1rem;
            transition: background-color 0.3s;
        }

        .team-tabs .nav-item .card-button:hover {
            background-color: var(--primary-dark);
        }

        .team-tabs .nav-item .card-button.active {
            background-color: var(--bs-warning);
            color:var(--dark);
        }

        /* Ensure nested tab buttons are unaffected */
        .nav-pills:not(.team-tabs) .nav-link {
            /* Reset any inherited styles to default Bootstrap */
            position: static;
            transform: none;
            width: auto;
            background-color: transparent;
            color: var(--primary);
            border-radius: 0.25rem;
        }

        .nav-pills:not(.team-tabs) .nav-link.active {
            background-color: var(--primary);
            color: white;
        }

        /* Responsive adjustments */
        @media (max-width: 576px) {
            .team-tabs .nav-item {
                width: 100%;
                max-width: 280px;
                height: 200px;
            }
            .team-tabs .nav-item .card-button {
                font-size: 0.9rem;
                padding: 8px;
            }
        }