/* DT New Theme Custom CSS */

/* Preloader — Vidhya Mandir */
#preloader,
.preloader {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    z-index: 9999 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    opacity: 1;
    transition: opacity 0.35s ease-out;
}

.vidhya-preloader {
    background: linear-gradient(160deg, #f5f2ff 0%, #ffffff 42%, #fff8f0 100%) !important;
}

[data-bs-theme="dark"] .vidhya-preloader {
    background: radial-gradient(ellipse 120% 80% at 50% 20%, rgba(84, 23, 205, 0.22) 0%, #0f0d14 55%) !important;
}

.vidhya-preloader-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.25rem;
    padding: clamp(1.25rem, 4vw, 2rem) clamp(1.5rem, 5vw, 2.25rem);
    border-radius: 16px;
    background: #ffffff;
    box-shadow: 0 18px 50px rgba(84, 23, 205, 0.12), 0 4px 14px rgba(0, 0, 0, 0.06);
    border: 1px solid rgba(84, 23, 205, 0.1);
}

[data-bs-theme="dark"] .vidhya-preloader-card {
    box-shadow: 0 22px 55px rgba(0, 0, 0, 0.45), 0 0 0 1px rgba(247, 148, 28, 0.15);
    border-color: rgba(196, 181, 253, 0.25);
}

.vidhya-preloader-logo {
    width: min(220px, 72vw);
    height: auto;
    display: block;
    object-fit: contain;
    transform-origin: 50% 55%;
}

@media (prefers-reduced-motion: no-preference) {
    .vidhya-preloader-logo {
        animation: vidhyaPreloaderLogo 1.35s ease-in-out infinite;
    }

    .vidhya-preloader-bar-fill {
        animation: vidhyaPreloaderBar 1.1s ease-in-out infinite;
    }
}

@keyframes vidhyaPreloaderLogo {

    0%,
    100% {
        transform: scale(1);
        opacity: 1;
        filter: drop-shadow(0 0 0 transparent);
    }

    45% {
        transform: scale(1.045);
        opacity: 0.96;
        filter: drop-shadow(0 6px 14px rgba(84, 23, 205, 0.18));
    }
}

.vidhya-preloader-bar {
    width: min(200px, 55vw);
    height: 4px;
    border-radius: 999px;
    background: rgba(84, 23, 205, 0.12);
    overflow: hidden;
}

.vidhya-preloader-bar-fill {
    display: block;
    height: 100%;
    width: 42%;
    border-radius: inherit;
    background: linear-gradient(90deg, #5417cd, #7c3aed 45%, #f7941c);
    transform-origin: left center;
}

@keyframes vidhyaPreloaderBar {

    0%,
    100% {
        transform: translateX(-30%) scaleX(0.85);
        opacity: 0.85;
    }

    50% {
        transform: translateX(120%) scaleX(1.05);
        opacity: 1;
    }
}

@media (prefers-reduced-motion: reduce) {
    .vidhya-preloader-logo,
    .vidhya-preloader-bar-fill {
        animation: none !important;
    }
}

/* 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;
}

/* Footer is always dark — same logo files as header, but always show the dark-background variant */
footer.bg-dark .vidhya-footer-brand .light-mode-item {
    display: none !important;
}
footer.bg-dark .vidhya-footer-brand .dark-mode-item {
    display: inline-block !important;
}

/* Footer: Vidhya Mandir brand orange (#F7941C) on link hover */
footer.bg-dark a:hover,
footer.bg-dark .nav-link:hover,
footer.bg-dark .nav-link:focus-visible {
    color: #F7941C !important;
}

footer.bg-dark .text-primary-hover a:hover,
footer.bg-dark a.text-primary-hover:hover,
footer.bg-dark .text-primary-hover li:hover {
    color: #F7941C !important;
}

footer.bg-dark .dropdown-menu .dropdown-item:hover,
footer.bg-dark .dropdown-menu .dropdown-item:focus {
    color: #F7941C !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 — Vidhya Mandir brand */
.gradient-text {
	background: linear-gradient(135deg, #5417cd 0%, #7c3aed 46%, #f7941c 100%);
	-webkit-background-clip: text;
	-webkit-text-fill-color: transparent;
	background-clip: text;
	font-weight: 700;
	display: inline-block;
}

/* Dark Mode Gradient */
[data-bs-theme="dark"] .gradient-text {
	background: linear-gradient(135deg, #c4b5fd 0%, #a78bfa 40%, #fdba74 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, #5417cd 0%, #7c3aed 46%, #f7941c 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, #c4b5fd 0%, #a78bfa 40%, #fdba74 100%);
	-webkit-background-clip: text;
	-webkit-text-fill-color: transparent;
	background-clip: text;
}

/* ==========================================
   HOME (light mode): readable body / muted text on pale backgrounds
   ========================================== */
[data-bs-theme="light"] main .text-muted {
	color: #5c636a !important;
}

[data-bs-theme="light"] main .text-secondary {
	color: #495057 !important;
}

[data-bs-theme="light"] main .text-secondary-emphasis {
	color: #343a40 !important;
}

[data-bs-theme="light"] main .text-body-secondary {
	color: #495057 !important;
}

[data-bs-theme="light"] main .lead.text-muted,
[data-bs-theme="light"] main p.lead.text-secondary-emphasis {
	color: #424951 !important;
}

[data-bs-theme="light"] main .fw-light.text-muted {
	font-weight: 500 !important;
	color: #5c636a !important;
}

[data-bs-theme="light"] main section.bg-dark .text-muted {
	color: rgba(255, 255, 255, 0.7) !important;
}

/* Hero typing line + glass cards: stronger contrast on white/light hero surface */
[data-bs-theme="light"] #home-hero.dt-new-hero-dm {
	--dm-hero-sub: rgba(33, 37, 41, 0.88);
	--dm-hero-stat-quiet: rgba(33, 37, 41, 0.72);
	--dm-hero-card-lbl: rgba(33, 37, 41, 0.78);
	--dm-hero-card-note: rgba(33, 37, 41, 0.68);
	--dm-hero-caption: rgba(33, 37, 41, 0.72);
}

/* Package cards (learning selection): subtitle readability */
[data-bs-theme="light"] main .learning-selection-section .pkg-subtitle {
	color: #495057 !important;
}

[data-bs-theme="light"] main .bundle-showcase-section .bundle-tab-desc,
[data-bs-theme="light"] main .bundle-showcase-section .bundle-section-subtitle {
	color: #495057 !important;
}

[data-bs-theme="light"] main .bundle-showcase-section .list-group-item {
	color: #343a40 !important;
}

/* 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;
    }

    /* Sections after old sticky banner — exclude #home-hero (DT New hero keeps its own gradient/bg) */
    main>section:not(.banner-mobile-sticky):not(#home-hero) {
        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):not(#home-hero) {
        background-color: #1a1d21 !important;
        background-image: none !important;
    }

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

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

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

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

    [data-bs-theme="dark"] main>section:not(.banner-mobile-sticky):not(#home-hero) .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;
}