/********** Template CSS **********/
:root {
    --primary: #f89e03;
    --light: #f0fbfc;
    --dark: #181d38;
}

.text-primary {
    color: var(--primary) !important;
}

.btn-primary {
    background: #181d38;
    border-color: #181d38;
}

.fw-medium {
    font-weight: 600 !important;
}

.fw-semi-bold {
    font-weight: 700 !important;
}

.back-to-top {
    position: fixed;
    display: none;
    right: 45px;
    bottom: 45px;
    z-index: 99;
}

/*** Spinner ***/
#spinner {
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.5s ease-out, visibility 0s linear 0.5s;
    z-index: 99999;
}

#spinner.show {
    transition: opacity 0.5s ease-out, visibility 0s linear 0s;
    visibility: visible;
    opacity: 1;
}

/*** Button ***/
.btn {
    font-family: "Nunito", sans-serif;
    font-weight: 600;
    transition: 0.5s;
}

.btn.btn-primary,
.btn.btn-secondary {
    color: #ffffff;
}

.btn-square {
    width: 38px;
    height: 38px;
}

.btn-sm-square {
    width: 32px;
    height: 32px;
}

.btn-lg-square {
    width: 48px;
    height: 48px;
}

.btn-square,
.btn-sm-square,
.btn-lg-square {
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: normal;
    border-radius: 0px;
}

/*** Navbar Redesign ***/
.navbar {
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.navbar.sticky-top {
    top: 0;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1) !important;
}

.navbar-light .navbar-nav .nav-link {
    position: relative;
    padding: 25px 0;
    margin: 0 15px;
        color: var(--dark);
        font-weight: 600;
    font-size: 15px;
    text-transform: capitalize;
        transition: 0.3s;
}

.navbar-light .navbar-nav .nav-link i {
    font-size: 14px;
    margin-right: 5px;
    color: var(--primary);
    transition: 0.3s;
}

.navbar-light .navbar-nav .nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 20px;
    left: 0;
    background-color: var(--primary);
    transition: width 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.navbar-light .navbar-nav .nav-link:hover::after,
.navbar-light .navbar-nav .nav-link.active::after {
    width: 100%;
}

.navbar-light .navbar-nav .nav-link:hover,
.navbar-light .navbar-nav .nav-link.active {
    color: var(--primary) !important;
}

.navbar .dropdown-toggle::after {
    border: none;
    content: "\f107";
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    vertical-align: middle;
    margin-left: 5px;
    font-size: 12px;
}

/* Dropdown Menu Styles */
.navbar .dropdown-menu {
    border: none;
    border-radius: 15px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    padding: 15px;
    min-width: 220px;
    background: rgba(255, 255, 255, 0.98);
}

@media (min-width: 992px) {
    .navbar .dropdown-menu.fade-down {
            top: 100%;
        opacity: 0;
        visibility: hidden;
        transform: translateY(15px);
            transition: all 0.3s ease;
            display: block;
    }
    .navbar .dropdown-menu.fade-down.show {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }
}

.navbar .dropdown-item {
    padding: 10px 15px;
    border-radius: 8px;
    font-weight: 500;
    color: var(--dark);
    transition: background 0.3s, color 0.3s;
    display: flex;
    align-items: center;
}

.navbar .dropdown-item i {
    width: 20px;
    margin-right: 10px;
    color: var(--primary);
    opacity: 0.7;
}

.navbar .dropdown-item:hover {
    background-color: var(--light);
    color: var(--primary);
}
.navbar .dropdown-submenu {
    position: relative;
}

.navbar .dropdown-submenu .nested-menu {
    position: absolute;
    left: 100%;
    top: 0;
    display: none;
    margin-left: 10px;
}

.navbar .dropdown-submenu:hover>.nested-menu {
    display: block;
}

/* Navbar Brand & Buttons */
.navbar-brand h1 {
    letter-spacing: -1px;
    }

.navbar .btn-primary {
    border-radius: 50px;
    padding: 12px 30px;
    font-weight: 700;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 15px rgba(24, 29, 56, 0.2);
}

@media (max-width: 1200px) {
    .navbar-light .navbar-nav .nav-link {
        margin: 0 8px;
        font-size: 14px;
    }
}
@media (max-width: 991.98px) {
    .navbar-collapse {
        padding: 20px;
        background: white;
        border-radius: 20px;
        margin-top: 10px;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    }

    .navbar-light .navbar-nav .nav-link {
        padding: 12px 0;
        margin: 0;
        border-bottom: 1px solid #f8f9fa;
    

        .navbar-light .navbar-nav .nav-link::after {
            display: none;
         }
    }
}
/*** Header carousel ***/
.header-carousel .owl-carousel-item {
    position: relative;
    height: 75vh;
    min-height: 400px;
}

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

@media (max-width: 991.98px) {
    .header-carousel .owl-carousel-item {
        height: 60vh;
        min-height: 350px;
    }
}

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

@media (max-width: 576px) {
    .header-carousel .owl-carousel-item {
        height: 30vh;
        min-height: 250px;
    }
}

.header-carousel .owl-nav {
    position: absolute;
    top: 50%;
    width: 100%;
    transform: translateY(-50%);
    display: flex;
    justify-content: space-between;
        left: 0;
        pointer-events: none;
}

.header-carousel .owl-nav .owl-prev,
.header-carousel .owl-nav .owl-next {
    pointer-events: auto;
        width: 50px;
        height: 50px;
        background: rgba(0, 0, 0, 0.5) !important;
        color: #ffffff !important;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
        border-radius: 4px;
        margin: 0 50px;
        transition: all 0.3s ease;
        border: none;
}

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

.page-header {
    background-position: center center;
    background-repeat: no-repeat;
    background-size: cover;
}

.page-header-inner {
    background: rgba(15, 23, 43, 0.7);
}

.breadcrumb-item+.breadcrumb-item::before {
    color: var(--light);
}

/*** Section Title ***/
.section-title {
    position: relative;
    display: inline-block;
    text-transform: uppercase;
}

.section-title::before {
    position: absolute;
    content: "";
    width: calc(100% + 80px);
    height: 2px;
    top: 4px;
    left: -40px;
    background: var(--primary);
    z-index: -1;
}

.section-title::after {
    position: absolute;
    content: "";
    width: calc(100% + 120px);
    height: 2px;
    bottom: 5px;
    left: -60px;
    background: var(--primary);
    z-index: -1;
}

.section-title.text-start::before {
    width: calc(100% + 40px);
    left: 0;
}

.section-title.text-start::after {
    width: calc(100% + 60px);
    left: 0;
}

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

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

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

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

/*** Categories & Courses ***/
.category img,
.course-item img {
    transition: 0.5s;
}

.category a:hover img,
.course-item:hover img {
    transform: scale(1.1);
}

/*** Team ***/
.team-item img {
    transition: 0.5s;
}

.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: 0.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: 0.5s;
}

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

/*** Footer ***/
.footer .btn.btn-social {
    margin-right: 10px;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--light);
    font-weight: normal;
    border: 1px solid #ffffff;
    border-radius: 35px;
    transition: 0.3s;
}

.footer .btn.btn-social:hover {
    color: red;
}

.footer .btn.btn-link {
    display: block;
    margin-bottom: 5px;
    padding: 0;
    text-align: left;
    color: #ffffff;
    font-size: 15px;
    font-weight: normal;
    text-transform: capitalize;
    transition: 0.3s;
}

.footer .btn.btn-link::before {
    position: relative;
    content: "\f105";
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    margin-right: 10px;
}

.footer .btn.btn-link:hover {
    letter-spacing: 1px;
    box-shadow: none;
}

.footer .copyright {
    padding: 25px 0;
    font-size: 15px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer .copyright a {
    color: var(--light);
}

.footer .footer-menu a {
    margin-right: 15px;
    padding-right: 15px;
    border-right: 1px solid rgba(255, 255, 255, 0.1);
}

.footer .footer-menu a:last-child {
    margin-right: 0;
    padding-right: 0;
    border-right: none;
}

.fab {
    font-size: 1rem !important;
}

.status-dropdown option {
    color: #abaaaa;
    font-weight: 500;
    padding: 5px;
}

/* Individual status colors */
.status-new {
    background-color: #f0ad4e;
}

/* Orange */
.status-contacted {
    background-color: #5bc0de;
}

/* Light Blue */
.status-called {
    background-color: #0275d8;
}

/* Blue */
.status-not-interested {
    background-color: #d9534f;
}

/* Red */
.status-qualified {
    background-color: #5cb85c;
}

/* Light Green */
.status-converted {
    background-color: #4CAF50;
}

/* Green */
.status-unqualified {
    background-color: #6c757d;
}

/* Gray */


.calendar-card {
    border-left: 6px solid #333;
    border-radius: 8px;
    transition: transform 0.2s ease;
}

.calendar-card:hover {
    transform: scale(1.02);
}

.badge-type.holiday {
    background-color: #f44336;
    color: #fff;
}

.badge-type.event {
    background-color: #2196F3;
    color: #fff;
}

.badge-type.exam {
    background-color: #9C27B0;
    color: #fff;
}

.badge-type.test {
    background-color: #FF9800;
    color: #fff;
}

.badge-type.task {
    background-color: #4CAF50;
    color: #fff;
}

.card-title {
    font-weight: bold;
    font-size: 1.2rem;
}

.card-dates {
    font-size: 0.9rem;
    color: #666;
}

#calendar {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    border-radius: 8px;
    background: #fff;
    padding: 8px;
}

.fc-event {
    cursor: pointer;
}


/* Course Tab Styling */
.course-tabs-container {
    overflow-x: auto;
    white-space: nowrap;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 10px;
    margin-bottom: 20px;
}

.course-tabs-container::-webkit-scrollbar {
    height: 4px;
}

.course-tabs-container::-webkit-scrollbar-thumb {
    background: #ccc;
    border-radius: 4px;
}

.nav-pills .nav-link {
    border-radius: 50px;
    padding: 10px 25px;
    color: var(--dark);
    font-weight: 600;
    font-size: 15px;
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    margin: 0 5px;
    transition: all 0.3s ease;
}

.nav-pills .nav-link:hover {
    background: #e9ecef;
    color: var(--primary);
}

.nav-pills .nav-link.active {
    background: var(--primary);
    color: #fff;
    box-shadow: 0 4px 10px rgba(248, 158, 3, 0.4);
    border-color: var(--primary);
}

.bi {
    font-size: 2rem;
    margin: 5px;
}

.icon-spaced {
    margin-left: 2rem;
    /* or any value like 20px */
}


table {
    border-collapse: collapse;
    width: 100%;
    margin-top: 10px;
}

th,
td {
    border: 1px solid #ddd;
    padding: 8px;
    text-align: left;
}

th {
    background-color: #f2f2f2;
}

/* Modal styles */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.4);
}

.modal-content {
    background-color: #fff;
    margin: 10% auto;
    padding: 20px;
    border: 1px solid #888;
    width:100%;
    border-radius: 5px;
}

.modal-header {
    font-size: 18px;
    margin-bottom: 10px;
}

.modal-footer {
    margin-top: 15px;
    text-align: right;
}

.modal-footer button {
    margin-left: 10px;
}

.dropdown-submenu {
    position: relative;
}

.dropdown-submenu .nested-menu {
    top: 0;
    left: 100%;
    margin-top: -1px;
    position: absolute;
    min-width: 200px;
    z-index: 1000;
}

.nested-menu {
    display: none;
    min-width: 10rem;
    padding: 0.5rem 0;
    margin: 0;
    font-size: 1rem;
    color: #52565b;
    text-align: left;
    list-style: none;
    background-color: #fff;
    background-clip: padding-box;
    border: 1px solid rgba(0, 0, 0, 0.15);

}

.dropdown-submenu:hover .nested-menu {
    display: block;
}

/* Hover highlight */
.dropdown-item:hover {
    background-color: #f0f0f0;
    color: #0d6efd;
    /* Bootstrap primary blue */
    transition: 0.2s;
}

.dropdown-item {
    transition: 0.2s;
}

.badge {
    color: red !important;
}

.floating-icon {
    position: fixed;
    right: 20px;
    z-index: 9999;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 2px 2px 10px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
        text-decoration: none;
        overflow: hidden;
        color: white !important;
    }
        .floating-icon i {
            font-size: 28px;
            flex-shrink: 0;
            transition: margin 0.3s ease;
        }
        /* Text inside the pill */
        .floating-icon span {
            max-width: 0;
            opacity: 0;
            white-space: nowrap;
            margin-left: 0;
            transition: all 0.3s ease;
            font-weight: 600;
            font-size: 1rem;
            color: white;
        }
    /* CRM Dashboard Utilities */
    .cursor-pointer {
        cursor: pointer;
    }
    
    .bg-soft-primary {
        background-color: rgba(248, 158, 3, 0.1) !important;
        color: var(--primary) !important;
    }

    /* Modern Lead Form Styles */
    #lead-form-section {
        background: linear-gradient(135deg, #fdfbfb 0%, #ebedee 100%);
        position: relative;
        overflow: hidden;
    }

    #lead-form-section::before {
        content: '';
        position: absolute;
        top: -50px;
        right: -50px;
        width: 300px;
        height: 300px;
        background: rgba(248, 158, 3, 0.1);
        border-radius: 50%;
        z-index: 0;
    }

    .lead-form-container {
        background: rgba(255, 255, 255, 0.95);
        backdrop-filter: blur(10px);
        border-radius: 20px;
        box-shadow: 0 15px 35px rgba(0,0,0,0.1);
        border: 1px solid rgba(255,255,255,0.8);
        position: relative;
        z-index: 1;
        overflow: hidden;
    }

    .lead-form-header h2 {
        font-weight: 800;
        background: linear-gradient(45deg, var(--primary), #ff6b6b);
        -webkit-background-clip: text;
    background-clip: text;
        -webkit-text-fill-color: transparent;
        margin-bottom: 0.5rem;
    }

    /* Progress Bar */
    .progress {
        background-color: #e9ecef;
        border-radius: 10px;
        height: 8px !important;
        overflow: hidden;
    }
    
    .progress-bar {
        background: linear-gradient(90deg, var(--primary), #ff6b6b);
        border-radius: 10px;
    }

    /* Goal Cards */
    .goal-card {
        background: #fff;
        border-radius: 15px;
        border: 2px solid transparent;
        transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
        box-shadow: 0 5px 15px rgba(0,0,0,0.05);
        height: 100%;
        position: relative;
        overflow: hidden;
    }

    .goal-card:hover {
        transform: translateY(-8px);
        border-color: var(--primary);
        box-shadow: 0 15px 30px rgba(248, 158, 3, 0.15);
    }

    .goal-card .icon-box {
        width: 70px;
        height: 70px;
        line-height: 70px;
        border-radius: 50%;
        background: rgba(248, 158, 3, 0.1);
        color: var(--primary);
        margin: 0 auto 15px;
        transition: all 0.3s ease;
        font-size: 1.8rem;
    }

    .goal-card:hover .icon-box {
        background: var(--primary);
        color: #fff;
        transform: rotateY(180deg);
    }

    .goal-card h5 {
        font-weight: 700;
        margin-bottom: 0;
        color: #333;
    }

    /* Form Inputs */
    .form-floating > .form-control {
        border-radius: 10px;
        border: 2px solid #eee;
        padding-top: 1.625rem;
        padding-bottom: 0.625rem;
    }

    .form-floating > .form-control:focus {
        border-color: var(--primary);
        box-shadow: 0 0 0 0.25rem rgba(248, 158, 3, 0.15);
    }

    .form-floating > label {
        color: #888;
    }

    /* Buttons */
    .btn-primary-gradient {
        background: linear-gradient(45deg, var(--primary), #ff6b6b);
        border: none;
        color: white;
        padding: 12px 30px;
        border-radius: 50px;
        font-weight: 600;
        letter-spacing: 0.5px;
        box-shadow: 0 5px 15px rgba(248, 158, 3, 0.3);
        transition: all 0.3s ease;
    }

    .btn-primary-gradient:hover {
        transform: translateY(-2px);
        box-shadow: 0 8px 20px rgba(248, 158, 3, 0.4);
        color: white;
    }
    
    .btn-secondary {
        border-radius: 50px;
        padding: 12px 30px;
        font-weight: 600;
    }

    /* Class Options */
    .class-option-btn {
        background: white;
        border: 2px solid #eee;
        color: #555;
        border-radius: 12px;
        font-weight: 600;
        transition: all 0.2s ease;
        padding: 15px 10px;
    }
    
    .class-option-btn:hover {
        border-color: var(--primary);
        color: var(--primary);
        background: rgba(248, 158, 3, 0.05);
        transform: translateY(-2px);
    }

    /* OTP Input */
    .otp-input {
        font-size: 1.8rem;
        font-weight: 800;
        color: var(--primary);
        letter-spacing: 8px;
        border: 2px solid #eee;
        border-radius: 12px;
        padding: 15px;
        background: #fdfdfd;
    }

    .otp-input:focus {
        border-color: var(--primary);
        box-shadow: 0 0 0 4px rgba(248, 158, 3, 0.1);
        outline: none;
    }

    /* Animations */
    @keyframes fadeInUp {
        from {
            opacity: 0;
            transform: translate3d(0, 20px, 0);
        }
        to {
            opacity: 1;
            transform: translate3d(0, 0, 0);
        }
    }

    .step {
        animation: fadeInUp 0.5s ease;
    }
    
    .bg-soft-success {
        background-color: rgba(25, 135, 84, 0.1) !important;
        color: #198754 !important;
    }
    
    .bg-soft-warning {
        background-color: rgba(255, 193, 7, 0.1) !important;
        color: #ffc107 !important;
    }
    
    .bg-soft-danger {
        background-color: rgba(220, 53, 69, 0.1) !important;
        color: #dc3545 !important;
    }
    
    .bg-soft-info {
        background-color: rgba(13, 202, 240, 0.1) !important;
        color: #0dcaf0 !important;
}

.avatar-initial {
    font-size: 14px;
    font-weight: 600;
}

.floating-icon:hover {
    width: auto;
    min-width: 180px;
    border-radius: 30px;
    justify-content: flex-start;
    padding-left: 15px;
    padding-right: 15px;
}

.floating-icon:hover span {
    max-width: 200px;
    opacity: 1;
    margin-left: 10px;
}

/* Vertically Centered Right Side Icons */
.whatsapp-icon {
    bottom: auto;
    top: 50%;
    right: 20px;
        transform: translateY(-60px);
        background-color: #25D366;
    }

.whatsapp-icon:hover {
    background-color: #1ebc57;
}

.phone-icon {
    bottom: auto;
    top: 50%;
    right: 20px;
    transform: translateY(10px);
    /* Move down slightly */
    background-color: #004976;

}
.phone-icon:hover {
    background-color: #003a5e;
}

/* Features Section Styles - Matching Goal Card */
.feature-item {
    background: #fff;
    border-radius: 15px;
    padding: 40px 30px;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    border: 2px solid transparent;
    height: 100%;
    position: relative;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

.feature-item:hover {
    transform: translateY(-8px);
    border-color: var(--primary);
    box-shadow: 0 15px 30px rgba(248, 158, 3, 0.15);
}

.feature-item .feature-icon-box {
    width: 80px;
    height: 80px;
    line-height: 80px;
    border-radius: 50%;
    background: rgba(248, 158, 3, 0.1);
    color: var(--primary);
    margin: 0 auto 25px;
    transition: all 0.3s ease;
    font-size: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.feature-item:hover .feature-icon-box {
    background: var(--primary);
    color: #fff;
    transform: rotateY(180deg);
}

.feature-title {
    font-weight: 700;
    margin-bottom: 20px;
    color: #333;
    transition: color 0.3s;
}

.feature-item:hover .feature-title {
    color: var(--primary);
}

.feature-text {
    color: #666;
    line-height: 1.7;
    margin-bottom: 0;
    font-size: 0.95rem;
}

/* Courses Section Styles */
.course-item {
    background: #fff;
    border-radius: 20px;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    border: 1px solid rgba(0,0,0,0.05);
    height: 100%;
}

.course-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.1);
}

.course-img {
    height: 200px; /* Fixed height for images */
    width: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.course-item:hover .course-img {
    transform: scale(1.05);
}

.course-content {
    padding: 25px;
}

.course-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 15px;
    color: #333;
}

.course-meta {
    font-size: 0.9rem;
    color: #777;
    margin-bottom: 20px;
}

.course-actions {
    display: flex;
    gap: 10px;
}

.btn-read-more {
    flex: 1;
    background: #f8f9fa;
    color: #333;
    border: 1px solid #ddd;
    border-radius: 50px;
    padding: 10px;
    font-weight: 600;
    transition: all 0.3s;
    text-align: center;
    text-decoration: none;
    display: inline-block;
}

.btn-read-more:hover {
    background: #e9ecef;
    color: var(--primary);
    border-color: var(--primary);
}

.btn-join-now {
    flex: 1;
    background: linear-gradient(45deg, var(--primary), #ff6b6b);
    color: #fff;
    border: none;
    border-radius: 50px;
    padding: 10px;
    font-weight: 600;
    transition: all 0.3s;
    text-align: center;
    box-shadow: 0 4px 15px rgba(248, 158, 3, 0.3);
    text-decoration: none;
    display: inline-block;
}

.btn-join-now:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(248, 158, 3, 0.4);
    color: #fff;
}

/* Categories Section Styles */
.category-item {
    background: #fff;
    border-radius: 15px;
    padding: 30px;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    border: 2px solid transparent;
    height: 100%;
    position: relative;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    display: block;
    text-decoration: none;
}

.category-item:hover {
    transform: translateY(-8px);
    border-color: var(--primary);
    box-shadow: 0 15px 30px rgba(248, 158, 3, 0.15);
}

.category-icon-box {
    width: 100px;
    height: 100px;
    line-height: 100px;
    border-radius: 50%;
    background: #fff; /* Changed to white to show image clearly */
    color: var(--primary);
    margin: 0 auto 20px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden; /* Ensure image stays in circle */
    border: 3px solid rgba(248, 158, 3, 0.1); /* Add subtle border */
}

.category-icon-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.category-item:hover .category-icon-box {
    background: var(--primary);
    color: #fff;
    transform: rotateY(180deg);
}

.category-title {
    font-weight: 700;
    margin-bottom: 5px;
    color: #333;
    transition: color 0.3s;
}

.category-item:hover .category-title {
    color: var(--primary);
}

.category-count {
    color: #777;
    font-size: 0.9rem;
    background: #f8f9fa;
    padding: 5px 15px;
    border-radius: 20px;
    display: inline-block;
    margin-top: 10px;
}

  /* Inherit styles from course-item but ensure team specific tweaks */
    .team-item.course-item {
        background: #fff;
        border-radius: 15px;
        box-shadow: 0 0 30px rgba(0, 0, 0, 0.08);
        transition: .5s;
        border: 1px solid rgba(0,0,0,0.03);
        overflow: hidden;
    }

    .team-item.course-item:hover {
        margin-top: -10px;
        box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    }

    .team-item .course-img {
        transition: 0.5s;
        width: 100%;
    }

    .team-item:hover .course-img {
        transform: scale(1.05); /* Softer zoom */
    }

    .team-item .course-content {
        padding: 25px;
    }

    .team-item .course-title {
        color: #181d38; 
        font-weight: 700;
        font-size: 1.25rem;
    }