:root {
    /* --primary: #6C63FF; */
    --primary: #009dff;
    --primary-dark: #524ae3;
    --secondary: #03dac6;
    --bg-dark: #121212;
    --bg-card: #1E1E2E;
    --text-main: #EAEAEA;
    /* #3B23A5   #482DB1 #8A61F5  #361E9F */
    /* #00F7F7 */
    /* --text-muted: #A0A0A0; */
    --gradient: linear-gradient(135deg, #6C63FF 0%, #03dac6 100%);
    --shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    --font-heading: 'Outfit', sans-serif;
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Outfit', sans-serif;
}

/* Original Price (Slash) */
.original-price {
    text-decoration: line-through;
    color: #888;
    font-size: 0.9em;
    margin-right: 8px;
}

/* Preloader */
#preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--bg-dark);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.5s ease;
}

.loader {
    width: 50px;
    height: 50px;
    border: 5px solid rgba(255, 255, 255, 0.1);
    border-top: 5px solid var(--primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}


/* body {
    font-family: var(--font-body) !important;
    Bootstrap handles bg and color
    overflow-x: hidden;
} */

h1,
h2,
h3,
h4,
.h1,
.h2,
.h3,
.h4,
.display-1,
.display-2,
.display-3,
.display-4 {
    font-family: var(--font-heading) !important;
}

.h5 {
    color: white;
}

/* Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body {
    background-color: var(--bg-dark) !important;
    color: var(--text-main) !important;
    font-family: var(--font-body) !important;
    line-height: 1.7;
    overflow-x: hidden;
}


/* Styling for the Pop-up Content Box */
.modal-content {
    /* This ensures the image doesn't overflow the box */
    max-width: 500px;
    /* Example size for the entire pop-up box */
    margin: 15% auto;
    padding: 0;
    color: #000;
    /* Remove padding if you want the image to stretch edge-to-edge */
    /* background-color: #000000; */
    /* background-image: url('./image/alert.png');
    background-size: cover;
    background-position: center; */
    /* overlay: rgba(232, 227, 227, 0.21); */
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    position: relative;
    text-align: center;
    /* Center the text content below the image */
}



#popupAd {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.6);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.popup-content {
    position: relative;
    background: transparent;
    padding: 0;
    border-radius: 10px;
    max-width: 90%;
    width: 556px;
    text-align: center;
}

.popup-content img {
    width: 100%;
    border-radius: 10px;
    cursor: pointer;
}

.close-btn {
    position: absolute;
    top: 4px;
    right: 5px;
    background: #ff0000;
    color: #fff;
    border: none;
    border-radius: 50%;
    width: 27px;
    height: 27px;
    font-weight: bold;
    font-size: 16px;
    cursor: pointer;
    z-index: 10000;
}

.countdown {
    margin-top: 8px;
    font-size: 16px;
    color: #fff;
    background: rgba(0, 0, 0, 0.6);
    display: inline-block;
    padding: 6px 12px;
    border-radius: 6px;
}

@media (max-width: 500px) {
    .popup-content {
        width: 90%;
    }
}





/* Styling for the Poster Image */
.offer-poster-img {
    width: 700px;
    /* Make the image take up the full width of the content box */
    height: auto;
    position: relative;
    /* Maintain the image's aspect ratio */
    /* background-image: url('./image/alert.png');
    background-size: cover;
    background-position: center; */
    /* If you removed padding from modal-content, this is crucial for the top corners */
    border-top-left-radius: 8px;
    border-top-right-radius: 8px;

    /* Ensure the image is a block element for better layout control */
    display: block;
}



/* Enforce Theme on Bootstrap Utility Classes */
.bg-dark {
    background-color: var(--bg-dark) !important;
}

.text-light {
    color: var(--text-main) !important;
}

.bg-card {
    background-color: var(--bg-card) !important;
}

/* Ensure headings use the correct font and color */
h1,
h2,
h3,
h4,
h5,
h6,
.h1,
.h2,
.h3,
.h4,
.h5,
.h6,
.display-1,
.display-2,
.display-3,
.display-4 {
    font-family: var(--font-heading) !important;
    color: #fff;
    /* or var(--text-main) if preferred, but headings usually pop with white */
}

.text-primary {
    --bs-text-opacity: 1;
    color: #78afff !important;
}

a {
    color: #78afff;
}


#nav {
    width: 40px;
    height: 30px;
    position: relative;
    margin: 0;
    -webkit-transform: rotate(0deg);
    -moz-transform: rotate(0deg);
    -o-transform: rotate(0deg);
    transform: rotate(0deg);
    -webkit-transition: .5s ease-in-out;
    -moz-transition: .5s ease-in-out;
    -o-transition: .5s ease-in-out;
    transition: .5s ease-in-out;
    cursor: pointer;
    background: transparent;
    border: none;
    padding: 0;
}

#nav span {
    display: block;
    position: absolute;
    height: 4px;
    width: 100%;
    background: rgb(0, 0, 0);
    border-radius: 4px;
    opacity: 1;
    left: 0;
    -webkit-transform: rotate(0deg);
    -moz-transform: rotate(0deg);
    -o-transform: rotate(0deg);
    transform: rotate(0deg);
    -webkit-transition: .25s ease-in-out;
    -moz-transition: .25s ease-in-out;
    -o-transition: .25s ease-in-out;
    transition: .25s ease-in-out;
}

#nav span:nth-child(1) {
    top: 0px;
}

#nav span:nth-child(2),
#nav span:nth-child(3) {
    top: 13px;
}

#nav span:nth-child(4) {
    top: 26px;
}

#nav.open span:nth-child(1) {
    top: 13px;
    width: 0%;
    left: 50%;
}

#nav.open span:nth-child(2) {
    -webkit-transform: rotate(45deg);
    -moz-transform: rotate(45deg);
    -o-transform: rotate(45deg);
    transform: rotate(45deg);
}

#nav.open span:nth-child(3) {
    -webkit-transform: rotate(-45deg);
    -moz-transform: rotate(-45deg);
    -o-transform: rotate(-45deg);
    transform: rotate(-45deg);
}

#nav.open span:nth-child(4) {
    top: 13px;
    width: 0%;
    left: 50%;
}


.navbar-brand img {
    /* Logo size for small screens (e.g., mobile) */
    width: 100%;
    height: 55px;
    transition: width 0.3s ease, height 0.3s ease;
}

/* Navbar Blur */
.blur-nav {
    background: rgba(255, 255, 255, 0.334) !important;
    /* Transparent for blur */
    backdrop-filter: blur(15px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    transition: all 0.3s ease;
}


.navbar-toggler:focus {
    box-shadow: none;
}


.navbar-brand {
    transition: transform 0.3s ease;
}

.navbar-brand:hover {
    transform: scale(1.05);
}

.nav-link {
    color: var(--text-main);
    transition: all 0.3s ease;
    position: relative;
    padding: 0.5rem 1rem !important;
}

.nav-link.active {
    background: var(--gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 600;
}

.nav-link:hover {
    background: var(--gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 50%;
    background: var(--gradient);
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 70%;
}

/* Gradient Text */
.gradient-text {
    background: var(--gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Hero Animations */
#hero {
    padding-top: 100px;
    /* Space for fixed navbar */
}

@media (max-width: 991px) {
    .hero-visual {
        margin-top: 3rem;
        /* Space between buttons and card on mobile */
    }

    .hero-text {
        text-align: center;
    }

    .hero-text .d-flex {
        justify-content: center;
    }
}

.animate-left {
    opacity: 0;
    transform: translateX(-50px);
    animation: slideInLeft 1s ease forwards;
    animation-delay: 0.2s;
}

.animate-right {
    opacity: 0;
    transform: translateX(50px);
    animation: slideInRight 1s ease forwards;
    animation-delay: 0.4s;
}

@keyframes slideInLeft {
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Hero Image Custom Styles */
.hero-img {
    max-height: 450px;
    width: auto;
    object-fit: contain;
    /* Soft shadow to lift it off the background */
    filter: drop-shadow(0 20px 30px rgba(0, 0, 0, 0.4));
    border-radius: 24px;
    /* transition: transform 0.3s ease; */
}

/* Mobile responsive adjustments for Hero Image and Card */
@media (max-width: 991px) {
    .hero-img {
        max-height: 350px;
        margin-bottom: 2rem;
    }

    .hero-card {
        position: relative !important;
        bottom: auto !important;
        right: auto !important;
        margin-top: -60px !important;
        /* Overlap slightly */
        margin-bottom: 20px !important;
        margin-right: auto !important;
        margin-left: auto !important;
        transform: rotate(0deg) !important;
        width: 100%;
        max-width: 300px !important;
    }
}

/* 1. Define the Shake Animation */
@keyframes shake-card {
    0% {
        transform: rotate(0deg);
    }

    25% {
        transform: rotate(1deg);
    }

    50% {
        transform: rotate(0deg);
    }

    75% {
        transform: rotate(-1deg);
    }

    100% {
        transform: rotate(0deg);
    }
}

/* 2. Apply it to the card on hover */
.hero-card:hover {
    /* Run the animation 'shake-card' for 0.4 seconds */
    animation: shake-card 0.4s ease-in-out infinite;

    /* Optional: Add a slight shadow lift for better effect */
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
    z-index: 10;
    /* Ensures it stays on top while shaking */
}


/* Course Animations */
/* Base reveal class for scroll observer */
.reveal {
    opacity: 0;
    transition: all 0.8s ease;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* filter  */
.form-select {
    --bs-form-select-bg-img: url(https://img.icons8.com/?size=96&id=pfuW6dHMyTUI&format=png) !important;
}

/* Specific Course Card Animations triggered by class */
.course-card {
    transition: transform 0.3s, box-shadow 0.3s;
    background: var(--bg-card);
    border: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    flex-direction: column;
    border-radius: 1rem;
    overflow: hidden;
}

/* Default state before animation */
.course-card.animate-up {
    transform: translateY(100px);
    opacity: 0;
}

.course-card.animate-down {
    transform: translateY(-100px);
    opacity: 0;
}

/* Active state after animation */
.course-card.active-up {
    animation: slideUp 0.8s ease forwards;
}

.course-card.active-down {
    animation: slideDown 0.8s ease forwards;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(100px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-100px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Glassmorphism */
.glass-card {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 1rem;
    box-shadow: var(--shadow);
    top: 2px;
    height: 136px;
}

.bg-card {
    background: var(--bg-card);
}

/* Image Zoom */
.badge-custom {
    position: absolute;
    top: 15px;
    right: 15px;
    padding: 6px 14px;
    border-radius: 30px;
    font-size: 0.75rem;
    font-weight: 700;
    z-index: 10;
    text-transform: uppercase;
    color: #fff;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    letter-spacing: 0.5px;
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    animation: fadeInBadge 0.5s ease-out forwards;
}

@keyframes fadeInBadge {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.badge-bestseller {
    background: linear-gradient(135deg, #1DD1A1 0%, #10AC84 100%);
}

.badge-comming-soon {
    background: linear-gradient(135deg, #FF6B6B 0%, #EE5253 100%);
}

.badge-free {
    background: linear-gradient(135deg, #48dbfb 0%, #2980b9 100%);
}

.badge-beginner {
    background: linear-gradient(135deg, #feca57 0%, #ff9f43 100%);
    color: #333;
    /* Darker text for better contrast on yellow/orange */
}

.badge-advanced {
    background: linear-gradient(135deg, #cc3df4 0%, #9412b8 100%);
    /* color: #333; */
    /* Darker text for better contrast on yellow/orange */
}


.course-img-wrapper {
    overflow: hidden;
    position: relative;
    height: 200px;
}

.course-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.course-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow);
    border-color: var(--primary);
}

.course-card:hover .course-img {
    transform: scale(1.1);
}

/* Blob Animation */
.blob {
    width: 400px;
    height: 400px;
    background: var(--gradient);
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.4;
    animation: float 6s ease-in-out infinite;
    z-index: -1;
}

@keyframes float {
    0% {
        transform: translate(0, 0);
    }

    50% {
        transform: translate(20px, -20px);
    }

    100% {
        transform: translate(0, 0);
    }
}

/* Custom Overrides for Bootstrap Components */
.btn-primary {
    background: var(--gradient) !important;
    border: none !important;
}

.btn-primary:hover {
    box-shadow: 0 5px 15px rgba(108, 99, 255, 0.4);
}

.btn-outline-primary {
    color: var(--primary) !important;
    border-color: var(--primary) !important;
}

.btn-outline-primary:hover {
    background: var(--gradient) !important;
    border-color: transparent !important;
    color: #fff !important;
}

/* Exception for Hero Section 'Get In Touch' button */
#hero .btn-outline-primary:hover {
    background: var(--primary) !important;
    border-color: var(--primary) !important;
}

.section-title {
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background: var(--gradient);
    margin: 0.5rem auto 0;
    border-radius: 2px;
}

/* Form Styles */

/* Consultant Box Styles */
/* Hidden by default */
.consultant-box {
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, opacity 0.4s ease;
}

/* When visible */
.consultant-box.showC {
    max-height: 500px;
    /* transition: max-height 0.4s ease, opacity 0.4s ease; */
    /* must be larger than actual content */
    opacity: 1;
}


/* .contact-form input,
.contact-form textarea {
    background-color: var(--bg-card) !important;
    border: 1px solid #333;
    color: #fff !important;
}

.contact-form input:focus,
.contact-form textarea:focus {
    border-color: var(--primary) !important;
    box-shadow: 0 0 0 0.25rem rgba(108, 99, 255, 0.25) !important;
} */


/* FormPlaceholder Color Styles */
.contact-form input::placeholder,
.contact-form textarea::placeholder {
    /* Set your desired color here. */
    /* Example: Using a muted version of your --text-main variable */
    color: var(--primary) !important;
    /* Optional: Some browsers (like Firefox) use a default opacity. 
       Set to 1 to ensure full color consistency. */
    opacity: 1 !important;
}

/* Carousel Overrides */
.carousel-control-prev-icon,
.carousel-control-next-icon {
    background-color: var(--primary);
    border-radius: 50%;
    padding: 1rem;
}


/* partner with us  */
.partner-btn {
    padding-top: 1rem !important;
    padding-bottom: 1rem !important;
    padding-right: 3rem !important;
    padding-left: 3rem !important;
}

.review-card {
    padding: 2rem;
    background: var(--bg-card);
    border-radius: 1rem;
    margin: 1rem 3rem;
    /* Space for arrows */
}


/* About us */
.img-wrapper {
    overflow: hidden;
    position: relative;
    height: auto;
    border-radius: 12px;
}

.img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.img-wrapper:hover img {
    transform: scale(1.1);
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}

/* about us */
.about-image-box {
    background: rgba(255, 255, 255, 0.02);
}


/* Footer Socials */
.socials {
    transition: transform ease all 0.1 s;
}

.socials a:hover {
    background: var(--gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    transform: translateY(-3px) scale(1.2);
    display: inline-block;
}

/* Continuous Horizontal Float */
.float-horizontal {
    animation: floatHorizontal 6s ease-in-out infinite;
}

@keyframes floatHorizontal {

    0%,
    100% {
        transform: translateX(0);
    }

    50% {
        transform: translateX(-20px);
    }
}

/* whatsapp and scroll top button  */
/* whatsapp and scroll top button  */
.whatsapp-float {
    position: fixed;
    width: 60px;
    height: 60px;
    bottom: 20px;
    right: 20px;
    background-color: #25d366;
    color: #FFF;
    border-radius: 50%;
    text-align: center;
    font-size: 30px;
    box-shadow: 2px 2px 3px #999;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: all 0.3s ease;
}

.whatsapp-float:hover {
    background-color: #128C7E;
    color: #fff;
    transform: scale(1.1);
}

.scroll-top-btn {
    position: fixed;
    bottom: 100px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: var(--gradient);
    color: #FFF;
    border: none;
    border-radius: 50%;
    font-size: 24px;
    cursor: pointer;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

.scroll-top-btn.show {
    opacity: 1;
    visibility: visible;
}

.scroll-top-btn:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 15px rgba(108, 99, 255, 0.5);
}

.animate-float {
    animation: float 3s ease-in-out infinite;
}

/* common animation right and left  */
/* default hidden state */
.scroll-animate {
    opacity: 0;
    transition: 0.8s ease-out;
}

/* left side */
.from-left {
    transform: translateX(-100px);
}

/* right side */
.from-right {
    transform: translateX(100px);
}

/* bottom side */
.from-bottom {
    transform: translateY(100px);
}

/* show animation */
.scroll-animate.show {
    opacity: 1;
    transform: translate(0, 0);
}

/* 2. Desktop/Normal Screen Size (When the navbar is NOT wrapped as a menu) */
/* Apply this size when the screen width is large enough (e.g., 992px and above for Bootstrap's 'lg' breakpoint) */
@media (min-width: 992px) {
    .navbar-brand img {
        /* Logo size for normal/desktop screen */
        width: 100%;
        height: 63px;
    }
}

/* Why Choose Us & Utilities */
.bg-card-dark {
    /* Using a slightly lighter/different dark from the palette or simply the card color */
    /* Since user wants strict theme, let's use the card background */
    background-color: var(--bg-card) !important;
    /* Or if it needs contrast, we can use a slightly manipulated version, 
       but for strict adherence, --bg-card is safer. */
}

.hover-up {
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.hover-up:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
}

.transition-all {
    transition: all 0.3s ease !important;
}

/* Why Choose Us Custom Styles */
#why-choose-us .card {
    border: 1px solid transparent !important;
    /* Override border-0 if present, or just set base */
}

#why-choose-us .card:hover {
    border-color: var(--primary) !important;
}

/* Custom Blue Button */
.btn-blue {
    background: var(--gradient) !important;
    border: none !important;
    color: #fff !important;
}

.btn-blue:hover {
    background: linear-gradient(135deg, #5a52d5 0%, #02b3a3 100%) !important;
    /* Slightly darker gradient or same */
    box-shadow: 0 0 15px rgba(108, 99, 255, 0.5);
    transform: translateY(-2px);
}

/* Styles applied to screens 575.98px and smaller (Mobile-first styles) */
@media screen and (max-width: 576px) {

    .hero-mobile {
        flex-direction: column-reverse;
    }

    /* Example from your previous questions: Centering the Image */
    .Conslt-img {
        /* Override desktop centering if needed, or refine padding */
        /* padding-top: 40px; */
        max-width: 100%;
        /* Use less space for a smaller navbar height */
    }

    /* Example: Make the Consultant Card stack vertically */
    .consultant-card {
        display: flex;
        justify-content: center;
        /* Center items horizontally when stacked */
    }

    .partner-btn {
        padding-top: 1rem !important;
        padding-bottom: 1rem !important;
        padding-right: 1rem !important;
        padding-left: 1rem !important;
    }

}

/* Course Detail Image Fix */
.course-detail-wrapper {
    height: 400px;
    /* /* Fixed height for consistency on desktop  */
}

@media (max-width: 991px) {
    .course-detail-wrapper {
        min-height: 250px;
        height: auto;
    }
}

/* Hover Scale Utility */
.hover-scale {
    transition: transform 0.3s ease;
}

.hover-scale:hover {
    transform: scale(1.05);
}

/* FAQ Section Styles */
.accordion-item {
    background-color: transparent !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    border-radius: 0.5rem !important;
}

.accordion-button {
    background-color: var(--bg-card) !important;
    color: var(--text-main) !important;
}

.accordion-button:not(.collapsed) {
    background-color: var(--bg-card) !important;
    color: var(--primary) !important;
    box-shadow: none !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.accordion-button:focus {
    box-shadow: none !important;
    border-color: rgba(255, 255, 255, 0.1);
}

.accordion-body {
    background-color: var(--bg-card) !important;
    color: rgba(255, 255, 255, 0.75);
    border-bottom-left-radius: 0.5rem;
    border-bottom-right-radius: 0.5rem;
}

/* Override default accordion icon color */
.accordion-button::after {
    filter: invert(1);
}

.accordion-button:not(.collapsed)::after {
    filter: invert(1) drop-shadow(0 0 2px var(--primary));
    transform: rotate(180deg);
}