/* Modern Course Card Styles */

.course-card-modern {
    border: none;
    border-radius: 20px;
    overflow: hidden;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    background: #ffffff;
    position: relative;
}

.course-card-modern::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 20px;
    padding: 2px;
    background: linear-gradient(135deg, #0D5FF9, #00d4ff, #0D5FF9);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.course-card-modern:hover::before {
    opacity: 1;
}

.course-card-modern:hover {
    transform: translateY(-15px) scale(1.02);
    box-shadow: 0 25px 50px rgba(13, 95, 249, 0.25);
}

.course-img-wrapper {
    position: relative;
    overflow: hidden;
    height: 280px;
}

.course-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.course-card-modern:hover .course-img {
    transform: scale(1.15) rotate(2deg);
    filter: brightness(0.85);
}

.course-overlay-modern {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(13, 95, 249, 0.95) 0%, rgba(0, 212, 255, 0.85) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.course-card-modern:hover .course-overlay-modern {
    opacity: 1;
}

.overlay-content {
    text-align: center;
    transform: translateY(30px);
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.course-card-modern:hover .overlay-content {
    transform: translateY(0);
}

.course-overlay-modern i {
    font-size: 72px;
    color: #ffffff;
    margin-bottom: 15px;
    display: block;
    animation: pulse 2s ease-in-out infinite;
}

.overlay-text {
    display: block;
    color: #ffffff;
    font-size: 18px;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

.course-badge {
    position: absolute;
    top: 20px;
    right: 20px;
    background: linear-gradient(135deg, #ff6b6b, #ff4757);
    color: #ffffff;
    padding: 8px 20px;
    border-radius: 25px;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    z-index: 10;
    box-shadow: 0 5px 15px rgba(255, 71, 87, 0.4);
    animation: bounceIn 1s ease;
}

@keyframes bounceIn {
    0% { transform: scale(0); opacity: 0; }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); opacity: 1; }
}

.course-card-modern .badge {
    padding: 6px 14px;
    font-size: 12px;
    font-weight: 600;
    border-radius: 20px;
    letter-spacing: 0.3px;
}

.course-card-modern small {
    font-size: 13px;
    display: flex;
    align-items: center;
    gap: 5px;
}

.course-card-modern .h4 {
    color: #1a1a1a;
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 15px;
    transition: all 0.3s ease;
    position: relative;
    display: inline-block;
}

.course-card-modern:hover .h4 {
    color: #0D5FF9;
    transform: translateX(5px);
}

.course-card-modern .text-muted {
    font-size: 15px;
    line-height: 1.8;
    color: #666;
}

.course-features {
    margin-top: 20px;
}

.course-features li {
    padding: 10px 0;
    font-size: 15px;
    color: #555;
    display: flex;
    align-items: center;
    transition: all 0.3s ease;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.course-features li:last-child {
    border-bottom: none;
}

.course-features li i {
    margin-right: 12px;
    font-size: 20px;
    transition: all 0.3s ease;
}

.course-card-modern:hover .course-features li {
    padding-left: 10px;
    color: #333;
}

.course-card-modern:hover .course-features li i {
    transform: scale(1.2);
}

/* Legacy Course Card Styles - Kept for backward compatibility */
.course-card {
    border: none;
    border-radius: 15px;
    overflow: hidden;
    transition: all 0.4s ease;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
}

.course-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(13, 95, 249, 0.2);
}

.course-card:hover .course-img {
    transform: scale(1.1);
}

.course-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(13, 95, 249, 0.85) 0%, rgba(10, 75, 199, 0.85) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: all 0.4s ease;
}

.course-card:hover .course-overlay {
    opacity: 1;
}

.course-overlay i {
    font-size: 64px;
    color: #ffffff;
    transform: scale(0.5) rotate(-45deg);
    transition: all 0.4s ease;
}

.course-card:hover .course-overlay i {
    transform: scale(1) rotate(0deg);
}

.course-card .card-body {
    padding: 25px;
}

.course-card .h4 {
    color: #222;
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 15px;
    transition: color 0.3s ease;
}

.course-card:hover .h4 {
    color: #0D5FF9;
}

.course-card .text-muted {
    font-size: 15px;
    line-height: 1.7;
    margin-bottom: 15px;
}

.course-card ul {
    margin-bottom: 0;
}

.course-card ul li {
    padding: 5px 0;
    font-size: 15px;
    color: #555;
    transition: all 0.3s ease;
}

.course-card ul li i {
    margin-right: 8px;
    font-size: 18px;
}

.course-card:hover ul li {
    padding-left: 5px;
}

/* Feature Items Enhancement */
.feature-item {
    padding: 30px;
    background: #ffffff;
    border-radius: 15px;
    transition: all 0.4s ease;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.06);
    height: 100%;
}

.feature-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 35px rgba(13, 95, 249, 0.15);
}

.feature-item .fea-icon {
    margin-bottom: 20px;
}

.feature-item h3 {
    font-size: 20px;
    margin-bottom: 15px;
    color: #222;
}

.feature-item p {
    margin-bottom: 0;
    color: #666;
    line-height: 1.8;
}

/* Counter Items Enhancement */
.counter-item {
    padding: 35px 25px;
    background: #ffffff;
    border-radius: 15px;
    text-align: center;
    transition: all 0.4s ease;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.06);
    height: 100%;
}

.counter-item:hover {
    transform: translateY(-8px);
    background: linear-gradient(135deg, #0D5FF9 0%, #0a4bc7 100%);
    box-shadow: 0 15px 35px rgba(13, 95, 249, 0.25);
}

.counter-item:hover h4,
.counter-item:hover p,
.counter-item:hover .cicon i {
    color: #ffffff !important;
}

.counter-item .cicon {
    margin-bottom: 20px;
}

.counter-item h4 {
    font-size: 32px;
    font-weight: 700;
    color: #0D5FF9;
    margin-bottom: 10px;
    transition: color 0.3s ease;
}

.counter-item p {
    margin-bottom: 0;
    color: #555;
    font-weight: 500;
    transition: color 0.3s ease;
}

/* Smooth Scrolling */
html {
    scroll-behavior: smooth;
}

/* Loading Animation for Images */
.course-img {
    opacity: 0;
    transition: opacity 0.5s ease-in;
}

.course-img.loaded {
    opacity: 1;
}

/* Section Padding Enhancement */
.section-padding {
    padding: 80px 0;
}

/* Enhanced Section Titles */
.section-title {
    margin-bottom: 50px;
}

.section-title span {
    display: inline-block;
    padding: 8px 24px;
    background: linear-gradient(135deg, #0D5FF9, #00d4ff);
    color: #ffffff;
    border-radius: 30px;
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 15px;
}

.section-title h2 {
    font-size: 42px;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 15px;
    position: relative;
    display: inline-block;
}

.section-title h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, #0D5FF9, #00d4ff);
    border-radius: 2px;
}

.section-title .lead {
    font-size: 18px;
    color: #666;
    max-width: 800px;
    margin: 0 auto;
}

/* Background Animations */
@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
}

.book_icon {
    animation: float 3s ease-in-out infinite;
}

/* Enhanced Button Styles */
.bg_btn, .wborder_btn {
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.bg_btn::before, .wborder_btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
    z-index: -1;
}

.bg_btn:hover::before, .wborder_btn:hover::before {
    width: 300px;
    height: 300px;
}

/* Card Shadow Enhancement */
.card {
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Responsive adjustments */
@media (max-width: 1200px) {
    .section-title h2 {
        font-size: 36px;
    }
}

@media (max-width: 992px) {
    .section-padding {
        padding: 60px 0;
    }

    .section-title h2 {
        font-size: 32px;
    }

    .course-img-wrapper {
        height: 250px;
    }
}

@media (max-width: 768px) {
    .section-padding {
        padding: 50px 0;
    }

    .section-title h2 {
        font-size: 28px;
    }

    .course-img-wrapper {
        height: 220px;
    }

    .course-overlay-modern i {
        font-size: 56px;
    }

    .overlay-text {
        font-size: 16px;
    }

    .course-badge {
        top: 15px;
        right: 15px;
        padding: 6px 16px;
        font-size: 11px;
    }

    .course-card-modern:hover {
        transform: translateY(-10px) scale(1.01);
    }
}

@media (max-width: 576px) {
    .section-title h2 {
        font-size: 24px;
    }

    .section-title .lead {
        font-size: 16px;
    }

    .course-img-wrapper {
        height: 200px;
    }

    .course-card-modern .h4 {
        font-size: 20px;
    }

    .course-features li {
        font-size: 14px;
    }
}

/* Why Choose Section Styles */
.why-card {
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 15px;
    position: relative;
    overflow: hidden;
}

.why-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 5px;
    height: 100%;
    background: linear-gradient(135deg, #0D5FF9, #00d4ff);
    transform: scaleY(0);
    transform-origin: bottom;
    transition: transform 0.4s ease;
}

.why-card:hover::before {
    transform: scaleY(1);
    transform-origin: top;
}

.why-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(13, 95, 249, 0.15) !important;
}

.why-card .card-body {
    position: relative;
    z-index: 1;
}

.icon-circle {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(13, 95, 249, 0.1), rgba(0, 212, 255, 0.1));
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.icon-circle::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: linear-gradient(135deg, #0D5FF9, #00d4ff);
    transform: translate(-50%, -50%);
    transition: all 0.4s ease;
}

.why-card:hover .icon-circle::before {
    width: 100%;
    height: 100%;
}

.why-card:hover .icon-circle {
    transform: scale(1.1) rotate(360deg);
    box-shadow: 0 8px 20px rgba(13, 95, 249, 0.3);
}

.why-card:hover .icon-circle i {
    color: #ffffff !important;
    position: relative;
    z-index: 1;
}

.why-card h4 {
    font-size: 20px;
    font-weight: 700;
    color: #1a1a1a;
    transition: all 0.3s ease;
}

.why-card:hover h4 {
    color: #0D5FF9;
    transform: translateX(5px);
}

.why-card .text-muted {
    font-size: 15px;
    line-height: 1.8;
    transition: color 0.3s ease;
}

.why-card:hover .text-muted {
    color: #555 !important;
}

/* Icon wrapper animation */
.icon-wrapper {
    position: relative;
}

.icon-wrapper::after {
    content: '';
    position: absolute;
    top: -5px;
    left: -5px;
    right: -5px;
    bottom: -5px;
    border-radius: 50%;
    border: 2px solid transparent;
    transition: all 0.4s ease;
}

.why-card:hover .icon-wrapper::after {
    border-color: rgba(13, 95, 249, 0.2);
    animation: rotate 3s linear infinite;
}

@keyframes rotate {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Responsive adjustments for why-choose section */
@media (max-width: 992px) {
    .why-card h4 {
        font-size: 18px;
    }

    .icon-circle {
        width: 60px;
        height: 60px;
    }

    .icon-circle i {
        font-size: 28px !important;
    }
}

@media (max-width: 576px) {
    .why-card h4 {
        font-size: 17px;
    }

    .why-card .text-muted {
        font-size: 14px;
    }

    .icon-circle {
        width: 55px;
        height: 55px;
    }

    .icon-circle i {
        font-size: 24px !important;
    }

    .why-card:hover {
        transform: translateY(-5px);
    }
}

/* Startup Program Section Styles */
.startup-program .card {
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.startup-program .card:hover {
    transform: translateY(-10px) scale(1.05);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3) !important;
}

.startup-program .card:hover i {
    transform: scale(1.2) rotate(10deg);
    transition: all 0.4s ease;
}

.startup-program .btn:hover {
    transform: scale(1.05);
    box-shadow: 0 15px 40px rgba(255, 255, 255, 0.4) !important;
}

/* Startup program responsive */
@media (max-width: 768px) {
    .startup-program .card-body {
        padding: 20px !important;
    }

    .startup-program h4 {
        font-size: 24px !important;
    }

    .startup-program .card:hover {
        transform: translateY(-5px) scale(1.02);
    }
}

/* Course Modal Styles */
.modal-content {
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.course-category-box {
    transition: all 0.3s ease;
    height: 100%;
}

.course-category-box:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(13, 95, 249, 0.15);
}

.course-list li {
    padding: 8px 0;
    font-size: 15px;
    color: #555;
    transition: all 0.3s ease;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.course-list li:last-child {
    border-bottom: none;
}

.course-list li:hover {
    padding-left: 10px;
    color: #0D5FF9;
}

.course-list li i {
    transition: all 0.3s ease;
}

.course-list li:hover i {
    transform: scale(1.2);
}

/* Make course cards clickable with pointer */
.course-card-modern[data-bs-toggle="modal"] {
    cursor: pointer;
}

/* Modal animation */
.modal.fade .modal-dialog {
    transition: transform 0.3s ease-out;
}

.modal.show .modal-dialog {
    transform: none;
}

/* Responsive modal */
@media (max-width: 768px) {
    .modal-body {
        padding: 20px !important;
    }

    .course-category-box {
        margin-bottom: 15px;
    }
}
