
.course-box {
    background: rgb(0, 34, 255);
    position: relative;
    transition: all 0.3s ease;
    border-radius: 20px;
    overflow: hidden;
    max-width: 95%;
    margin: 0 auto;
}

/* Remove the rotating border animations */
.course-box::before,
.course-box::after {
    content: none;
}

.course-card-modern {
    position: relative;
    z-index: 1;
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
    width: 100%;
    margin: 0 auto;
    border: 1px solid rgba(0,0,0,0.05);
}

.course-card-modern:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 25px rgba(0,0,0,0.1);
    background-color: #e6f7ff; /* Light sky blue background on hover */
}

.card-image {
    position: relative;
    height: 180px;
    overflow: hidden;
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.card-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: var(--primary-color);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
}

.card-content {
    padding: 1.5rem;
}

.card-features {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    margin: 1.5rem 0;
}

.card-features span {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #666;
    font-size: 0.85rem;
}

.card-features i {
    color: var(--primary-color);
}

@media (max-width: 768px) {
    .course-card-modern {
        max-width: 100%;
    }
    
    .card-image {
        height: 160px;
    }
    
    .card-content {
        padding: 1.25rem;
    }
}

.login-required-card {
    background: rgba(255, 255, 255, 0.95);
    border: none;
    border-radius: 20px;
    overflow: hidden;
}

.login-required-header {
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    border: none;
    padding: 2rem 1rem;
}

.icon-circle {
    width: 70px;
    height: 70px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    font-size: 1.8rem;
    color: white;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.4);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(255, 255, 255, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(255, 255, 255, 0);
    }
}

.btn-outline-primary {
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    background: transparent;
    transition: all 0.3s ease;
}

.btn-outline-primary:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-2px);
}

/* Animation for the modal */
.modal.fade .modal-dialog {
    transform: scale(0.8);
    transition: transform 0.3s ease;
}

.modal.show .modal-dialog {
    transform: scale(1);
}

/* Add these new minimalist styles */
.minimalist-card {
    border: none;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    background: white;
    overflow: hidden;
}

.minimalist-icon {
    width: 50px;
    height: 50px;
    background: var(--primary-soft);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    color: var(--primary-color);
    font-size: 1.2rem;
}

.minimalist-card .btn {
    border-radius: 8px;
    padding: 0.6rem 1.5rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.minimalist-card .btn:hover {
    transform: translateY(-2px);
}

.minimalist-card .btn-light {
    background: #f8f9fa;
    border: 1px solid #dee2e6;
}

.minimalist-card .btn-light:hover {
    background: #e9ecef;
}

/* Modal animation */
.modal.fade .modal-dialog {
    transform: translateY(-10px);
    transition: transform 0.2s ease-out;
}

.modal.show .modal-dialog {
    transform: translateY(0);
}

.hero-image-wrapper {
    position: relative;
    max-width: 80%;
    margin: 0 auto;
}

.hero-image-wrapper img {
    width: 100% ;
    height: auto;
    max-height: 400px;
    object-fit: cover;
    border-radius: 50px;
    box-shadow: 0 15px 30px rgba(0,0,0,0.1);
}

.shape-blob {
    position: absolute;
    top: -20px;
    right: -20px;
    width: 60%;
    height: 60%;
    background: var(--primary-color);
    opacity: 0.1;
    border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
    z-index: -1;
}

.shape-blob-2 {
    position: absolute;
    bottom: -20px;
    left: -20px;
    width: 60%;
    height: 60%;
    background: var(--secondary-color);
    opacity: 0.1;
    border-radius: 70% 30% 30% 70% / 70% 70% 30% 30%;
    z-index: -1;
}

@media (max-width: 768px) {
    .hero-image-wrapper {
        max-width: 90%;
        margin-top: 2rem;
    }
    
    .hero-image-wrapper img {
        max-height: 300px;
    }
}

.small-brand {
    display: flex;
    align-items: center;
    font-size: 1.1rem;
    font-weight: 500;
}

.navbar-logo {
    width: 28px !important;
    height: 28px !important;
}

@media (max-width: 768px) {
    .small-brand {
        font-size: 1rem;
    }
    
    .navbar-logo {
        width: 24px !important;
        height: 24px !important;
    }
}

.loading-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #fff;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.road {
    width: 200px;
    height: 4px;
    background: #eee;
    border-radius: 2px;
    position: relative;
    overflow: hidden;
}

.car-container {
    position: absolute;
    font-size: 24px;
    color: var(--primary-color);
    animation: driveCar 2s linear infinite;
}

.loading-text {
    margin-top: 20px;
    font-size: 1.1rem;
    color: var(--primary-color);
    font-weight: 500;
}

@keyframes driveCar {
    0% {
        transform: translateX(-100px);
    }
    100% {
        transform: translateX(100px);
    }
}

/* Add this to hide the loader once the page is loaded */
.loading-container.hidden {
    display: none;
}

/* Feature Cards - Enhanced Interactive Design */
.features-section {
    position: relative;
    padding: 6rem 0;
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
}

.features-container {
    position: relative;
}

.feature-card {
    padding: 2.5rem;
    border-radius: 20px;
    text-align: left;
    transition: all 0.5s cubic-bezier(0.165, 0.84, 0.44, 1);
    background: white;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    border: 1px solid rgba(0,0,0,0.03);
    position: relative;
    z-index: 1;
    overflow: hidden;
    height: 100%;
    display: flex;
    flex-direction: column;
    cursor: pointer;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: var(--primary-color);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.5s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.feature-card::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 0;
    background: linear-gradient(180deg, rgba(var(--primary-rgb), 0.03) 0%, rgba(var(--primary-rgb), 0.07) 100%);
    z-index: -1;
    transition: height 0.5s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.feature-card:hover {
    transform: translateY(-15px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
}

.feature-card:hover::before {
    transform: scaleX(1);
}

.feature-card:hover::after {
    height: 100%;
}

.feature-icon-wrapper {
    width: 80px;
    height: 80px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.8rem;
    transition: all 0.5s cubic-bezier(0.165, 0.84, 0.44, 1);
    position: relative;
    background: var(--primary-soft);
}

.feature-icon-wrapper::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background: var(--primary-color);
    border-radius: 20px;
    opacity: 0;
    transform: scale(0.8);
    transition: all 0.5s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.feature-card:hover .feature-icon-wrapper::before {
    opacity: 1;
    transform: scale(1);
}

.feature-icon-wrapper i {
    font-size: 2.2rem;
    color: var(--primary-color);
    transition: all 0.5s cubic-bezier(0.165, 0.84, 0.44, 1);
    position: relative;
    z-index: 2;
}

.feature-card:hover .feature-icon-wrapper i {
    color: white;
    transform: scale(1.1);
}

.feature-card h4 {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 1rem;
    transition: all 0.3s ease;
    position: relative;
    display: inline-block;
}

.feature-card:hover h4 {
    color: var(--primary-color);
    transform: translateX(5px);
}

.feature-card p {
    color: #555;
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
    transition: all 0.3s ease;
}

.feature-card:hover p {
    transform: translateX(5px);
}

.feature-card .learn-more {
    margin-top: auto;
    color: var(--primary-color);
    font-weight: 600;
    display: flex;
    align-items: center;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.5s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.feature-card:hover .learn-more {
    opacity: 1;
    transform: translateY(0);
}

.feature-card .learn-more i {
    margin-left: 8px;
    transition: transform 0.3s ease;
}

.feature-card:hover .learn-more i {
    transform: translateX(5px);
}

.feature-1 .feature-icon-wrapper { background: rgba(var(--primary-rgb), 0.1); }
.feature-2 .feature-icon-wrapper { background: rgba(25, 135, 84, 0.1); }
.feature-3 .feature-icon-wrapper { background: rgba(13, 110, 253, 0.1); }
.feature-4 .feature-icon-wrapper { background: rgba(255, 193, 7, 0.1); }

.feature-1:hover .feature-icon-wrapper::before { background: var(--primary-color); }
.feature-2:hover .feature-icon-wrapper::before { background: #198754; }
.feature-3:hover .feature-icon-wrapper::before { background: #0d6efd; }
.feature-4:hover .feature-icon-wrapper::before { background: #ffc107; }

.feature-1 .feature-icon-wrapper i { color: var(--primary-color); }
.feature-2 .feature-icon-wrapper i { color: #198754; }
.feature-3 .feature-icon-wrapper i { color: #0d6efd; }
.feature-4 .feature-icon-wrapper i { color: #ffc107; }

/* Pop-up effect on click */
.feature-card.pop {
    animation: cardPop 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

@keyframes cardPop {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

/* Feature card animations on scroll */
.feature-card {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.feature-card.animate {
    opacity: 1;
    transform: translateY(0);
}

/* Staggered animation for feature cards */
.feature-1.animate { transition-delay: 0.1s; }
.feature-2.animate { transition-delay: 0.2s; }
.feature-3.animate { transition-delay: 0.3s; }
.feature-4.animate { transition-delay: 0.4s; }
