/* DT New Theme Custom CSS */

/* Preloader positioning and styling */
#preloader,
.preloader {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    background: #fff !important;
    z-index: 9999 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    opacity: 1;
    transition: opacity 0.3s ease-out;
}

/* Logo Size Fix - Increase navbar logo size */
.navbar-brand .navbar-brand-item {
    height: 60px !important;
    max-height: 60px !important;
    width: auto !important;
    max-width: 250px !important;
    object-fit: contain !important;
}

/* Reduce navbar brand padding to match original theme */
.navbar-brand {
    padding-top: 5px !important;
    padding-bottom: 5px !important;
}

/* Notification badge blinking animation */
.animation-blink {
    -webkit-animation: blink 2s infinite;
    animation: blink 2s infinite;
}

@-webkit-keyframes blink {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.3;
    }
}

@keyframes blink {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.3;
    }
}

/* Learning Dashboard Section Background */
.learning-dashboard-section {
    background-color: #f8f9fa;
    border-top: 1px solid rgba(0, 0, 0, 0.08);
    margin-top: 15px;
}

[data-bs-theme="dark"] .learning-dashboard-section {
    background-color: #1e2125;
    border-top: 2px solid rgba(255, 255, 255, 0.15);
}

[data-bs-theme="light"] .learning-dashboard-section {
    background-color: #f8f9fa;
    border-top: 1px solid rgba(0, 0, 0, 0.08);
}

/* ==========================================
   GRADIENT TEXT EFFECTS (Dark/Light Mode)
   ========================================== */

/* Light Mode Gradient - Exact Logo Colors */
.gradient-text {
    background: linear-gradient(135deg, #00AEEF 0%, #1C6CB5 50%, #4555A5 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 700;
    display: inline-block;
}

/* Dark Mode Gradient - Lighter Brighter Version */
[data-bs-theme="dark"] .gradient-text {
    background: linear-gradient(135deg, #4DC4FF 0%, #5D9EDB 50%, #7B8DFF 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Mobile Gradient Text - Light Mode */
.gradient-text-mobile {
    background: linear-gradient(135deg, #00AEEF 0%, #1C6CB5 50%, #4555A5 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 700;
    display: inline-block;
}

/* Mobile Gradient Text - Dark Mode */
[data-bs-theme="dark"] .gradient-text-mobile {
    background: linear-gradient(135deg, #4DC4FF 0%, #5D9EDB 50%, #7B8DFF 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Hover Lift Animation */
.hover-lift {
    transition: all 0.3s ease;
}

.hover-lift:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15) !important;
}

/* Dark Mode Hover Enhancement */
[data-bs-theme="dark"] .hover-lift:hover {
    box-shadow: 0 10px 30px rgba(255, 255, 255, 0.1) !important;
}

/* Paragraph Text Colors for Light/Dark Mode */
.paragraph-text {
    color: #495057;
}

[data-bs-theme="dark"] .paragraph-text {
    color: #d1d5db;
}

/* Gradient Button - Logic from Heading Gradient */
.btn-gradient {
    background: linear-gradient(135deg, #00AEEF 0%, #1C6CB5 50%, #4555A5 100%);
    border: none;
    color: #fff;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    z-index: 1;
    overflow: hidden;
    border-radius: 50px;
    /* Full pill shape */
    font-weight: 600;
    letter-spacing: 0.5px;
    padding: 12px 30px !important;
    /* Larger padding */
    box-shadow: 0 4px 15px rgba(28, 108, 181, 0.3);
    /* Soft shadow */
}

/* Shine Effect */
.btn-gradient::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: none;
    z-index: -1;
}

.btn-gradient:hover::before {
    left: 100%;
    transition: left 0.5s ease;
}

.btn-gradient:hover {
    color: #fff;
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(28, 108, 181, 0.5);
    /* Stronger shadow on hover */
}

/* Dark Mode Gradient Button */
[data-bs-theme="dark"] .btn-gradient {
    background: linear-gradient(135deg, #4DC4FF 0%, #5D9EDB 50%, #7B8DFF 100%);
    box-shadow: 0 4px 15px rgba(77, 196, 255, 0.2);
}

[data-bs-theme="dark"] .btn-gradient:hover {
    box-shadow: 0 8px 25px rgba(77, 196, 255, 0.4);
}

/* ==========================================
   SPLIT BUTTON DESIGN (Professional & Modern)
   ========================================== */
.btn-split-wrapper {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(0, 0, 0, 0.05);
    border-radius: 60px;
    padding: 6px;
    display: inline-flex;
    align-items: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
}

[data-bs-theme="dark"] .btn-split-wrapper {
    background: rgba(40, 44, 52, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.btn-split-primary {
    background: linear-gradient(135deg, #00AEEF 0%, #1C6CB5 100%);
    color: #fff;
    border-radius: 50px;
    padding: 12px 28px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 4px 15px rgba(28, 108, 181, 0.2);
    white-space: nowrap;
}

.btn-split-primary:hover {
    color: #fff;
    transform: scale(1.02);
    box-shadow: 0 6px 20px rgba(28, 108, 181, 0.4);
}

[data-bs-theme="dark"] .btn-split-primary {
    background: linear-gradient(135deg, #4DC4FF 0%, #5D9EDB 100%);
}

.btn-split-secondary {
    padding: 12px 28px;
    font-weight: 600;
    color: #495057;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
    border-radius: 50px;
    white-space: nowrap;
}

.btn-split-secondary i {
    color: #1C6CB5;
    background: rgba(28, 108, 181, 0.1);
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    padding-left: 2px;
    /* Center play icon optically */
}

[data-bs-theme="dark"] .btn-split-secondary {
    color: #e9ecef;
}

[data-bs-theme="dark"] .btn-split-secondary i {
    color: #5D9EDB;
    background: rgba(93, 158, 219, 0.15);
}

.btn-split-secondary:hover {
    color: #1C6CB5;
    background: rgba(0, 0, 0, 0.03);
}

[data-bs-theme="dark"] .btn-split-secondary:hover {
    color: #5D9EDB;
    background: rgba(255, 255, 255, 0.05);
}

.btn-split-secondary:hover i {
    background: #1C6CB5;
    color: #fff;
    transform: scale(1.1);
}

[data-bs-theme="dark"] .btn-split-secondary:hover i {
    background: #5D9EDB;
}

/* About Section Background for separation */
.about-section {
    background-color: #ffffff;
    /* White for light mode */
    padding-top: 3rem !important;
    padding-bottom: 3rem !important;
    /* margin-top: 15px; */
}

[data-bs-theme="dark"] .about-section {
    background-color: #1a1d21;
    /* Dark background for dark mode */
    border-top: 2px solid rgba(255, 255, 255, 0.1);
    border-bottom: 2px solid rgba(255, 255, 255, 0.1);
}

[data-bs-theme="light"] .about-section {
    background-color: #ffffff;
    border-top: 1px solid rgba(0, 0, 0, 0.08);
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

/* How It Works Section Hover Effects */
.hover-scale {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hover-scale:hover {
    transform: translateY(-10px);
}

.hover-lift {
    transition: all 0.3s ease;
}

.hover-lift:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1) !important;
}

.transition-all {
    transition: all 0.3s ease;
}

/* Vertical Tabs Active State */
#howItWorksVerticalTabs .nav-link {
    background-color: #ffffff;
    transition: all 0.3s ease;
}

[data-bs-theme="dark"] #howItWorksVerticalTabs .nav-link {
    background-color: #1e2125;
    color: #ffffff;
}

[data-bs-theme="dark"] #howItWorksVerticalTabs .nav-link .text-muted {
    color: #adb5bd !important;
}

#howItWorksVerticalTabs .nav-link.active {
    background: linear-gradient(135deg, rgba(13, 110, 253, 0.1) 0%, rgba(13, 110, 253, 0.05) 100%);
    border-left: 4px solid var(--bs-primary) !important;
    transform: translateX(5px);
}

/* Step 1 - Primary Color */
#howItWorksVerticalTabs .step-tab-1.active {
    background: linear-gradient(135deg, rgba(13, 110, 253, 0.1) 0%, rgba(13, 110, 253, 0.05) 100%);
    border-left: 4px solid var(--bs-primary) !important;
}

[data-bs-theme="dark"] #howItWorksVerticalTabs .step-tab-1.active {
    background: linear-gradient(135deg, rgba(13, 110, 253, 0.2) 0%, rgba(13, 110, 253, 0.1) 100%);
    border-left: 4px solid var(--bs-primary) !important;
}

/* Step 2 - Success Color */
#howItWorksVerticalTabs .step-tab-2.active {
    background: linear-gradient(135deg, rgba(25, 135, 84, 0.1) 0%, rgba(25, 135, 84, 0.05) 100%);
    border-left: 4px solid var(--bs-success) !important;
}

[data-bs-theme="dark"] #howItWorksVerticalTabs .step-tab-2.active {
    background: linear-gradient(135deg, rgba(25, 135, 84, 0.2) 0%, rgba(25, 135, 84, 0.1) 100%);
    border-left: 4px solid var(--bs-success) !important;
}

/* Step 3 - Warning Color */
#howItWorksVerticalTabs .step-tab-3.active {
    background: linear-gradient(135deg, rgba(255, 193, 7, 0.1) 0%, rgba(255, 193, 7, 0.05) 100%);
    border-left: 4px solid var(--bs-warning) !important;
}

[data-bs-theme="dark"] #howItWorksVerticalTabs .step-tab-3.active {
    background: linear-gradient(135deg, rgba(255, 193, 7, 0.2) 0%, rgba(255, 193, 7, 0.1) 100%);
    border-left: 4px solid var(--bs-warning) !important;
}

/* Step 4 - Danger Color */
#howItWorksVerticalTabs .step-tab-4.active {
    background: linear-gradient(135deg, rgba(220, 53, 69, 0.1) 0%, rgba(220, 53, 69, 0.05) 100%);
    border-left: 4px solid var(--bs-danger) !important;
}

[data-bs-theme="dark"] #howItWorksVerticalTabs .step-tab-4.active {
    background: linear-gradient(135deg, rgba(220, 53, 69, 0.2) 0%, rgba(220, 53, 69, 0.1) 100%);
    border-left: 4px solid var(--bs-danger) !important;
}

[data-bs-theme="dark"] #howItWorksVerticalTabs .nav-link.active {
    color: #ffffff;
}

#howItWorksVerticalTabs .nav-link.active .bi-chevron-right {
    color: var(--bs-primary) !important;
}

/* Card background for dark mode */
[data-bs-theme="dark"] .tab-content .card {
    background-color: #1e2125;
    color: #ffffff;
}

[data-bs-theme="dark"] .tab-content .card .text-muted {
    color: #adb5bd !important;
}

[data-bs-theme="dark"] .tab-content .card .text-dark-emphasis {
    color: #ffffff !important;
}

[data-bs-theme="dark"] .tab-content .card h3 {
    color: #ffffff !important;
}

/* ==========================================
   RESPONSIVE TYPOGRAPHY & LAYOUT FIXES
   ========================================== */

/* Laptop View (992px - 1199px) */
@media (min-width: 992px) and (max-width: 1199.98px) {
    .banner-heading-responsive {
        font-size: 2.8vw !important;
        /* Slightly larger for readability on smaller laptops */
        line-height: 2.8vw !important;
    }

    .banner-paragraph-responsive {
        font-size: 1.1rem !important;
        /* Fixed readable size for laptops */
        line-height: 1.4 !important;
        padding-left: 1rem !important;
        padding-right: 1rem !important;
    }

    section.d-lg-block {
        min-height: 50vh !important;
    }
}

/* Desktop View Fix (1200px - 1400px) - The "Gadbad" Zone Fix */
@media (min-width: 1200px) and (max-width: 1399.98px) {
    .banner-heading-responsive {
        font-size: 2.5vw !important;
        /* Perfect scaling for this specific range */
        line-height: 2.5vw !important;
    }

    .banner-paragraph-responsive {
        font-size: 1.1rem !important;
        line-height: 1.5 !important;
        /* Proper breathing room */
        padding-left: 3rem !important;
        padding-right: 3rem !important;
    }

    section.d-lg-block {
        min-height: 75vh !important;
        /* Standard height for this range */
        background-position: center bottom !important;
        /* Fix potential image cutoff */
    }
}

/* Mobile Banner Section - Sticky below Header */
@media (max-width: 991.98px) {

    /* Make header sticky on mobile - Force sticky immediately - HIGHEST Z-INDEX */
    header.navbar-sticky,
    header.navbar-sticky.navbar-sticky-on {
        position: sticky !important;
        top: 0 !important;
        z-index: 1050 !important;
        /* Highest - navbar should always be on top */
        background: var(--bs-body-bg) !important;
        width: 100% !important;
    }

    /* Override JavaScript behavior - make sticky immediately on mobile */
    header.navbar-sticky {
        position: sticky !important;
    }

    .banner-mobile-sticky {
        margin-top: 0 !important;
        padding-top: 0 !important;
        position: sticky;
        top: 0;
        /* Sticks at top - will be below header due to DOM order */
        z-index: 1040;
        /* Below header (1050) but above scrolling content */
        background: #fff;
        will-change: transform;
    }

    [data-bs-theme="dark"] .banner-mobile-sticky {
        background: #1a1d21;
    }

    .banner-mobile-sticky .container {
        padding: 0 !important;
        margin: 0 !important;
        max-width: 100%;
    }

    .banner-mobile-sticky .row {
        margin: 0 !important;
    }

    .banner-mobile-image {
        width: 100%;
        height: auto;
        display: block;
        margin: 0;
        padding: 0;
        position: relative;
        top: 0;
        left: 0;
        transform: translateY(0) !important;
        /* Prevent any shifting on scroll */
        will-change: auto;
    }

    /* Content sections scroll over the sticky banner image - SOLID BACKGROUNDS - ABOVE BANNER, BELOW NAVBAR */
    .category-mobile-scroll-section {
        position: relative;
        z-index: 1045;
        /* Above banner (1040) so sections scroll over it, but below navbar (1050) */
        background: #fff !important;
        /* Force solid - no transparency */
        margin-top: 0;
    }

    [data-bs-theme="dark"] .category-mobile-scroll-section {
        background: #1a1d21 !important;
    }

    /* All sections after banner should scroll OVER the banner - ABOVE BANNER, BELOW NAVBAR */
    main>section:not(.banner-mobile-sticky) {
        position: relative;
        z-index: 1045;
        /* Above banner (1040) so sections scroll over it, but below navbar (1050) */
        background-color: #fff !important;
        /* Force solid background */
        background-image: none !important;
        /* Remove any transparent backgrounds */
    }

    [data-bs-theme="dark"] main>section:not(.banner-mobile-sticky) {
        background-color: #1a1d21 !important;
        background-image: none !important;
    }

    /* Fix containers and inner elements with transparent backgrounds */
    main>section:not(.banner-mobile-sticky)>.container,
    main>section:not(.banner-mobile-sticky)>.container-fluid {
        background-color: inherit !important;
    }

    /* Remove transparent backgrounds from common classes */
    main>section:not(.banner-mobile-sticky) .bg-transparent {
        background-color: #fff !important;
    }

    [data-bs-theme="dark"] main>section:not(.banner-mobile-sticky) .bg-transparent {
        background-color: #1a1d21 !important;
    }

    /* Ensure bg-light and similar classes also have solid backgrounds */
    main>section:not(.banner-mobile-sticky) .bg-light {
        background-color: #f8f9fa !important;
    }

    [data-bs-theme="dark"] main>section:not(.banner-mobile-sticky) .bg-light {
        background-color: #1e2125 !important;
    }
}

/* Mobile/Tablet Slider Styling - Modern Tilted Scroll Effect */
.how-it-works-slider {
    padding-bottom: 3rem;
    perspective: 1200px;
    overflow: visible;
}

.how-it-works-slider .tns-outer {
    perspective: 1200px;
}

.how-it-works-slider .tns-inner {
    transform-style: preserve-3d;
}

.how-it-works-slider .tns-item {
    transition: transform 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.how-it-works-slide-card {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    border-radius: 20px;
    border: 0;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1), 0 0 0 1px rgba(0, 0, 0, 0.05);
    transform: rotateY(0deg) scale(1);
    transition: all 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
    position: relative;
    overflow: hidden;
    backface-visibility: hidden;
    transform-style: preserve-3d;
}

/* Tilted scroll effect - cards tilt during slide animation */
.how-it-works-slider .tns-item:not(.tns-slide-active) .how-it-works-slide-card {
    transform: rotateY(15deg) rotateZ(-3deg) scale(0.9);
    opacity: 0.7;
}

/* Add smooth tilted effect during transition */
.how-it-works-slider.tns-slider .tns-item {
    transition: transform 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* During slide transition, apply tilted effect */
.how-it-works-slider .tns-moving .tns-item:not(.tns-slide-active) .how-it-works-slide-card {
    transform: rotateY(20deg) rotateZ(-4deg) scale(0.88);
}

.how-it-works-slider .tns-item.tns-slide-active .how-it-works-slide-card {
    transform: rotateY(0deg) rotateZ(0deg) scale(1);
    z-index: 2;
    opacity: 1;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15), 0 0 0 1px rgba(0, 0, 0, 0.08);
}

.how-it-works-slide-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--bs-primary), var(--bs-success), var(--bs-warning), var(--bs-danger));
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 1;
}

.how-it-works-slider .tns-item.tns-slide-active .how-it-works-slide-card::before {
    opacity: 1;
}

/* Step-specific colors */
.how-it-works-slider .tns-item.tns-slide-active .step-slide-1::before {
    background: var(--bs-primary);
}

.how-it-works-slider .tns-item.tns-slide-active .step-slide-2::before {
    background: var(--bs-success);
}

.how-it-works-slider .tns-item.tns-slide-active .step-slide-3::before {
    background: var(--bs-warning);
}

.how-it-works-slider .tns-item.tns-slide-active .step-slide-4::before {
    background: var(--bs-danger);
}

/* Step Icon Wrapper */
.step-icon-wrapper {
    width: 80px;
    height: 80px;
    margin: 0 auto;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    transition: all 0.3s ease;
}

.step-icon-wrapper::after {
    content: '';
    position: absolute;
    inset: -5px;
    border-radius: 25px;
    background: linear-gradient(135deg, transparent, rgba(255, 255, 255, 0.5));
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: -1;
}

.how-it-works-slider .tns-item.tns-slide-active .step-icon-wrapper::after {
    opacity: 1;
}

.step-icon-primary {
    background: linear-gradient(135deg, rgba(13, 110, 253, 0.15), rgba(13, 110, 253, 0.05));
}

.step-icon-success {
    background: linear-gradient(135deg, rgba(25, 135, 84, 0.15), rgba(25, 135, 84, 0.05));
}

.step-icon-warning {
    background: linear-gradient(135deg, rgba(255, 193, 7, 0.15), rgba(255, 193, 7, 0.05));
}

.step-icon-danger {
    background: linear-gradient(135deg, rgba(220, 53, 69, 0.15), rgba(220, 53, 69, 0.05));
}

.step-icon-img {
    width: 50px;
    height: auto;
    filter: drop-shadow(0 5px 15px rgba(0, 0, 0, 0.1));
    transition: transform 0.3s ease;
}

.how-it-works-slider .tns-item.tns-slide-active .step-icon-img {
    transform: scale(1.1) rotate(5deg);
}

/* Step Badge */
.step-badge {
    font-size: 0.7rem;
    padding: 0.25rem 0.75rem;
    border-radius: 50px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.step-badge-primary {
    background-color: rgba(13, 110, 253, 0.1);
    color: var(--bs-primary);
}

.step-badge-success {
    background-color: rgba(25, 135, 84, 0.1);
    color: var(--bs-success);
}

.step-badge-warning {
    background-color: rgba(255, 193, 7, 0.1);
    color: var(--bs-warning);
}

.step-badge-danger {
    background-color: rgba(220, 53, 69, 0.1);
    color: var(--bs-danger);
}

/* Step Title */
.step-title {
    font-size: 1.25rem;
    line-height: 1.3;
    margin-bottom: 0.5rem;
}

/* Step Features */
.step-features {
    text-align: left;
}

.step-features li {
    font-size: 0.875rem;
    line-height: 1.5;
}

.step-features .bi-check-circle-fill {
    font-size: 1rem;
}

/* Dark Mode Support */
[data-bs-theme="dark"] .how-it-works-slide-card {
    background: linear-gradient(135deg, #1e2125 0%, #1a1d21 100%);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3), 0 0 0 1px rgba(255, 255, 255, 0.1);
}

[data-bs-theme="dark"] .how-it-works-slider .tns-item.tns-slide-active .how-it-works-slide-card {
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(255, 255, 255, 0.15);
}

[data-bs-theme="dark"] .step-title {
    color: #ffffff;
}

[data-bs-theme="dark"] .step-features li {
    color: #e9ecef;
}

/* Slider Dots Styling */
.how-it-works-slider .tns-nav {
    text-align: center;
    margin-top: 1.5rem;
}

.how-it-works-slider .tns-nav button {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    border: 0;
    background-color: rgba(0, 0, 0, 0.2);
    margin: 0 4px;
    transition: all 0.3s ease;
    cursor: pointer;
}

[data-bs-theme="dark"] .how-it-works-slider .tns-nav button {
    background-color: rgba(255, 255, 255, 0.3);
}

.how-it-works-slider .tns-nav button.tns-nav-active {
    width: 30px;
    border-radius: 5px;
    background-color: var(--bs-primary);
}

/* Responsive adjustments */
@media (max-width: 575.98px) {
    .how-it-works-slider .tns-item:not(.tns-slide-active) .how-it-works-slide-card {
        transform: rotateY(20deg) rotateZ(-3deg) scale(0.88);
    }

    .step-icon-wrapper {
        width: 70px;
        height: 70px;
    }

    .step-icon-img {
        width: 45px;
    }

    .step-title {
        font-size: 1.1rem;
    }

    .how-it-works-slide-card .card-body {
        padding: 1rem !important;
    }
}

/* Gradient backgrounds for step badges */
.bg-gradient-primary {
    background: linear-gradient(135deg, #0d6efd 0%, #0a58ca 100%) !important;
}

.bg-gradient-success {
    background: linear-gradient(135deg, #198754 0%, #146c43 100%) !important;
}

.bg-gradient-warning {
    background: linear-gradient(135deg, #ffc107 0%, #ffcd39 100%) !important;
}

.bg-gradient-danger {
    background: linear-gradient(135deg, #dc3545 0%, #b02a37 100%) !important;
}

/* ==========================================
   MOBILE HAMBURGER MENU — SCROLLABLE PANEL
   ========================================== */
@media (max-width: 1199.98px) {
    header.navbar-sticky {
        overflow: visible !important;
    }

    header.navbar-sticky > .navbar.navbar-expand-xl {
        overflow: visible !important;
    }

    .navbar-expand-xl #navbarCollapse.navbar-collapse {
        max-height: calc(100dvh - 4.5rem);
        max-height: calc(100svh - 4.5rem);
        overflow-x: hidden;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
        overscroll-behavior: contain;
        touch-action: pan-y;
        padding-bottom: 1.25rem;
        z-index: 1049;
    }

    .navbar-expand-xl #navbarCollapse.navbar-collapse.show,
    .navbar-expand-xl #navbarCollapse.navbar-collapse.collapsing {
        overflow-y: auto;
    }

    .navbar-expand-xl #navbarCollapse .header-search-container {
        flex-shrink: 0;
        width: 100%;
        max-width: 100%;
        margin: 0.75rem 0 0.5rem !important;
        padding: 0 1.25rem;
    }

    .navbar-expand-xl #navbarCollapse .navbar-nav {
        width: 100%;
    }

    .navbar-expand-xl #navbarCollapse .navbar-nav .nav-item > .dropdown-menu {
        position: static !important;
        float: none;
        width: 100%;
        margin-top: 0;
        border: 0;
        border-radius: 0;
        box-shadow: none;
        max-height: none;
    }

    .navbar-expand-xl #navbarCollapse .navbar-nav .dropdown-menu.show {
        display: block;
    }

    .navbar-expand-xl #navbarCollapse::-webkit-scrollbar {
        width: 6px;
    }

    .navbar-expand-xl #navbarCollapse::-webkit-scrollbar-thumb {
        background: rgba(var(--bs-primary-rgb), 0.35);
        border-radius: 999px;
    }

    [data-bs-theme="dark"] .navbar-expand-xl #navbarCollapse::-webkit-scrollbar-thumb {
        background: rgba(129, 140, 248, 0.45);
    }
}

/* ==========================================
   NAV SEARCH SUGGESTIONS PANEL
   ========================================== */
.header-search-container {
    max-width: 650px;
    transition: max-width 0.3s ease;
}

.header-search-container form {
    position: relative;
}

.nav-search-panel {
    --nav-search-bg: #ffffff;
    --nav-search-border: rgba(15, 23, 42, 0.08);
    --nav-search-shadow: 0 18px 40px rgba(15, 23, 42, 0.12), 0 2px 8px rgba(15, 23, 42, 0.06);
    --nav-search-item-hover: rgba(99, 102, 241, 0.06);
    position: absolute;
    top: calc(100% + 0.5rem);
    left: 0;
    right: 0;
    z-index: 1060;
    max-height: min(26rem, calc(100dvh - 8rem));
    overflow: hidden;
    display: none;
    border-radius: 1rem;
    border: 1px solid var(--nav-search-border);
    background: var(--nav-search-bg);
    box-shadow: var(--nav-search-shadow);
    opacity: 0;
    transform: translateY(8px) scale(0.98);
    transition: opacity 0.18s ease, transform 0.22s cubic-bezier(0.22, 1, 0.36, 1);
    pointer-events: none;
}

.nav-search-panel.is-visible {
    opacity: 1;
    transform: translateY(0) scale(1);
    pointer-events: auto;
}

[data-bs-theme="dark"] .nav-search-panel {
    --nav-search-bg: #1c1c1f;
    --nav-search-border: rgba(255, 255, 255, 0.08);
    --nav-search-shadow: 0 20px 48px rgba(0, 0, 0, 0.45), 0 0 0 1px rgba(255, 255, 255, 0.04);
    --nav-search-item-hover: rgba(129, 140, 248, 0.1);
}

.nav-search-panel__header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--bs-primary);
    border-bottom: 1px solid var(--nav-search-border);
    background: linear-gradient(180deg, rgba(var(--bs-primary-rgb), 0.06) 0%, transparent 100%);
}

.nav-search-panel__header i {
    font-size: 0.85rem;
}

.nav-search-panel__count {
    margin-left: auto;
    min-width: 1.35rem;
    height: 1.35rem;
    padding: 0 0.35rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    font-size: 0.65rem;
    font-weight: 800;
    color: #fff;
    background: var(--bs-primary);
}

.nav-search-panel__body {
    max-height: min(18.5rem, calc(100dvh - 12rem));
    overflow-y: auto;
    padding: 0.5rem;
    -webkit-overflow-scrolling: touch;
}

.nav-search-panel__body::-webkit-scrollbar {
    width: 5px;
}

.nav-search-panel__body::-webkit-scrollbar-thumb {
    background: rgba(var(--bs-primary-rgb), 0.25);
    border-radius: 999px;
}

.nav-search-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.65rem 0.7rem;
    margin-bottom: 0.35rem;
    border-radius: 0.75rem;
    text-decoration: none;
    color: inherit;
    border: 1px solid transparent;
    opacity: 0;
    transform: translateY(4px);
    animation: navSearchItemIn 0.35s ease forwards;
    animation-delay: var(--item-delay, 0s);
}

.nav-search-item:last-child {
    margin-bottom: 0;
}

@keyframes navSearchItemIn {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.nav-search-item:hover,
.nav-search-item:focus-visible {
    background: var(--nav-search-item-hover);
    border-color: rgba(var(--bs-primary-rgb), 0.12);
    color: inherit;
}

.nav-search-item__thumb {
    flex-shrink: 0;
    width: 4.5rem;
    height: 3rem;
    border-radius: 0.5rem;
    overflow: hidden;
    background: linear-gradient(135deg, rgba(var(--bs-primary-rgb), 0.12), rgba(var(--bs-primary-rgb), 0.04));
    border: 1px solid var(--nav-search-border);
}

.nav-search-item__thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.25s ease;
}

.nav-search-item:hover .nav-search-item__thumb img {
    transform: scale(1.04);
}

.nav-search-item__content {
    flex: 1 1 auto;
    min-width: 0;
}

.nav-search-item__title {
    font-size: 0.8125rem;
    font-weight: 600;
    line-height: 1.35;
    color: var(--bs-emphasis-color);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.nav-search-item__meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.35rem 0.5rem;
    margin-top: 0.25rem;
}

.nav-search-item__badge {
    font-size: 0.6rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    padding: 0.1rem 0.4rem;
    border-radius: 999px;
    color: #fff;
    background: linear-gradient(135deg, #16a34a, #22c55e);
}

.nav-search-item__price {
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--bs-primary);
}

[data-bs-theme="dark"] .nav-search-item__price {
    color: #a5b4fc;
}

.nav-search-item__price-old {
    font-size: 0.68rem;
    color: var(--bs-secondary-color);
    text-decoration: line-through;
}

.nav-search-item__arrow {
    flex-shrink: 0;
    font-size: 0.85rem;
    color: var(--bs-secondary-color);
    opacity: 0.45;
    transition: transform 0.2s ease, opacity 0.2s ease, color 0.2s ease;
}

.nav-search-item:hover .nav-search-item__arrow {
    opacity: 1;
    color: var(--bs-primary);
    transform: translate(2px, -2px);
}

.nav-search-panel__footer {
    border-top: 1px solid var(--nav-search-border);
    padding: 0.65rem 0.85rem;
    background: rgba(var(--bs-primary-rgb), 0.03);
}

[data-bs-theme="dark"] .nav-search-panel__footer {
    background: rgba(255, 255, 255, 0.02);
}

.nav-search-panel__view-all {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.25rem;
    width: 100%;
    padding: 0.55rem 0.75rem;
    border-radius: 0.65rem;
    font-size: 0.8rem;
    font-weight: 600;
    text-decoration: none;
    color: var(--bs-primary);
    background: rgba(var(--bs-primary-rgb), 0.08);
    transition: background 0.2s ease, color 0.2s ease;
}

.nav-search-panel__view-all:hover {
    background: rgba(var(--bs-primary-rgb), 0.14);
    color: var(--bs-primary);
}

[data-bs-theme="dark"] .nav-search-panel__view-all {
    color: #c7d2fe;
}

.nav-search-panel__empty {
    padding: 2rem 1.25rem;
    text-align: center;
}

.nav-search-panel__empty-icon {
    width: 3rem;
    height: 3rem;
    margin: 0 auto 0.75rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    color: var(--bs-primary);
    background: rgba(var(--bs-primary-rgb), 0.1);
}

.nav-search-panel__empty h6 {
    margin-bottom: 0.35rem;
    font-weight: 700;
    color: var(--bs-emphasis-color);
}

.nav-search-panel__empty p {
    margin-bottom: 1rem;
    font-size: 0.8125rem;
    color: var(--bs-secondary-color);
}

.nav-search-skeleton {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.65rem 0.7rem;
    margin-bottom: 0.35rem;
}

.nav-search-skeleton__thumb,
.nav-search-skeleton__line {
    background: linear-gradient(90deg, rgba(var(--bs-primary-rgb), 0.06) 25%, rgba(var(--bs-primary-rgb), 0.14) 50%, rgba(var(--bs-primary-rgb), 0.06) 75%);
    background-size: 200% 100%;
    animation: navSearchShimmer 1.2s ease-in-out infinite;
    border-radius: 0.5rem;
}

.nav-search-skeleton__thumb {
    width: 4.5rem;
    height: 3rem;
    flex-shrink: 0;
}

.nav-search-skeleton__lines {
    flex: 1;
}

.nav-search-skeleton__line {
    height: 0.65rem;
    margin-bottom: 0.45rem;
}

.nav-search-skeleton__line--short {
    width: 45%;
    margin-bottom: 0;
}

@keyframes navSearchShimmer {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

@media (max-width: 1199.98px) {
    .navbar-expand-xl #navbarCollapse .nav-search-panel {
        position: static;
        max-height: none;
        margin-top: 0.5rem;
        box-shadow: none;
        border-color: var(--bs-border-color);
    }

    .navbar-expand-xl #navbarCollapse .nav-search-panel__body {
        max-height: 14rem;
    }
}

/* Courses listing cards — equal height, aligned rows */
#course-grid-container.row {
    align-items: stretch;
}

.ddt-course-card {
    display: flex;
    flex-direction: column;
    color: var(--bs-gray-700);
}

[data-bs-theme="light"] .ddt-course-card {
    background-color: #fff;
    color: #404448;
    border: 1px solid #dde0e3;
}

[data-bs-theme="dark"] .ddt-course-card {
    color: var(--bs-body-color);
}

.ddt-course-card__media {
    display: block;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: var(--bs-tertiary-bg, #e9ecef);
}

.ddt-course-card__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.ddt-course-card__body {
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
    padding-bottom: 0.85rem;
}

.ddt-course-card__top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    min-height: 1.5rem;
    margin-bottom: 0.75rem;
}

.ddt-course-card__top .badge {
    max-width: calc(100% - 2rem);
}

.ddt-course-card__wish {
    flex-shrink: 0;
    width: 1.25rem;
    height: 1.25rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    color: var(--bs-gray-700);
}

[data-bs-theme="light"] .ddt-course-card__wish {
    color: #404448;
}

[data-bs-theme="dark"] .ddt-course-card__wish {
    color: var(--bs-gray-500);
}

.ddt-course-card__wish.text-danger,
[data-bs-theme="light"] .ddt-course-card__wish.text-danger,
[data-bs-theme="dark"] .ddt-course-card__wish.text-danger {
    color: var(--bs-danger) !important;
}

.ddt-course-card__title {
    min-height: 2.6em;
    margin-bottom: 0.5rem;
    line-height: 1.3;
    color: var(--bs-heading-color);
}

.ddt-course-card__title a {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    color: var(--bs-heading-color);
    text-decoration: none;
}

[data-bs-theme="light"] .ddt-course-card__title,
[data-bs-theme="light"] .ddt-course-card__title a {
    color: #24292d;
}

[data-bs-theme="dark"] .ddt-course-card__title,
[data-bs-theme="dark"] .ddt-course-card__title a {
    color: #fff;
}

.ddt-course-card__title a:hover,
[data-bs-theme="light"] .ddt-course-card__title a:hover,
[data-bs-theme="dark"] .ddt-course-card__title a:hover {
    color: var(--bs-primary);
}

.ddt-course-card__stats {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    margin-top: auto;
    padding-top: 0.85rem;
}

.ddt-course-card__stat {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    min-width: 0;
    font-size: 0.875rem;
    line-height: 1;
    color: var(--bs-gray-700);
}

[data-bs-theme="light"] .ddt-course-card__stat {
    color: #404448;
}

[data-bs-theme="dark"] .ddt-course-card__stat {
    color: var(--bs-gray-500);
}

.ddt-course-card__stat i {
    flex-shrink: 0;
    width: 1em;
    text-align: center;
}

.ddt-course-card__footer {
    margin-top: 0;
    padding-top: 0.85rem;
    padding-bottom: 1rem;
    background: transparent;
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
}

.ddt-course-card__price-row {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 0.5rem;
    min-height: 1.5rem;
}

.ddt-course-card__price-row.is-deal {
    justify-content: space-between;
    flex-wrap: wrap;
}

.ddt-price-deal {
    --deal-old: #9f1239;
    --deal-old-strike: #e11d48;
    --deal-now: #047857;
    --deal-arrow: #64748b;
    --deal-now-bg: #ecfdf5;
    --deal-now-border: #6ee7b7;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.3rem 0.4rem;
    min-width: 0;
    width: 100%;
}

[data-bs-theme="dark"] .ddt-price-deal {
    --deal-old: #fecdd3;
    --deal-old-strike: #fb7185;
    --deal-now: #6ee7b7;
    --deal-arrow: #e2e8f0;
    --deal-now-bg: #064e3b;
    --deal-now-border: #10b981;
}

.ddt-price-deal__old {
    font-size: 0.85rem;
    font-weight: 700;
    line-height: 1.2;
    color: var(--deal-old);
    text-decoration: line-through;
    text-decoration-color: var(--deal-old-strike);
    text-decoration-thickness: 1px;
    white-space: nowrap;
}

.ddt-price-deal__arrow {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--deal-arrow);
    font-size: 0.75rem;
    flex-shrink: 0;
}

.ddt-price-deal__now {
    font-size: 1.08rem;
    font-weight: 800;
    line-height: 1.2;
    color: var(--deal-now);
    white-space: nowrap;
    letter-spacing: -0.02em;
}

.ddt-price-deal--lg {
    gap: 0.4rem 0.55rem;
}

.ddt-price-deal--lg .ddt-price-deal__now {
    font-size: 1.45rem;
}

.ddt-price-deal--lg .ddt-price-deal__old {
    font-size: 1rem;
}

.ddt-price-deal__now.is-plain {
    color: inherit;
}

.ddt-price-deal__off {
    font-size: 0.65rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--deal-now, #047857);
    background: var(--deal-now-bg, #ecfdf5);
    border: 1px solid var(--deal-now-border, #6ee7b7);
    border-radius: 999px;
    padding: 0.12rem 0.4rem;
    white-space: nowrap;
}

.ddt-course-card__price-old {
    margin-right: auto;
    font-size: 0.8rem;
    line-height: 1.2;
    text-decoration: line-through;
    color: var(--bs-gray-600);
    white-space: nowrap;
}

[data-bs-theme="light"] .ddt-course-card__price-old {
    color: #747579;
}

[data-bs-theme="dark"] .ddt-course-card__price-old {
    color: var(--bs-gray-500);
}

.ddt-course-card__price-now {
    font-size: 1.05rem;
    font-weight: 700;
    line-height: 1.2;
    white-space: nowrap;
    color: var(--bs-heading-color);
}

[data-bs-theme="light"] .ddt-course-card__price-now {
    color: #24292d;
}

[data-bs-theme="dark"] .ddt-course-card__price-now {
    color: #fff;
}

[data-bs-theme="light"] .ddt-course-card__price-now.text-success,
[data-bs-theme="dark"] .ddt-course-card__price-now.text-success {
    color: var(--bs-success) !important;
}

.ddt-course-card__action .btn {
    white-space: nowrap;
}