html, body {
    overflow-x: hidden !important; /* Prevents horizontal scrolling */
}

html {
    scroll-behavior: smooth;
}

/* Define the animation for card entrance */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Apply the animation to the cards */
.animate-card {
    opacity: 0; /* Start with cards invisible */
    animation: fadeInUp 0.5s ease-out forwards;
}

/* Delay the animation for each card */
.animate-card:nth-child(1) { animation-delay: 0.1s; }
.animate-card:nth-child(2) { animation-delay: 0.2s; }
.animate-card:nth-child(3) { animation-delay: 0.3s; }
.animate-card:nth-child(4) { animation-delay: 0.4s; }
.animate-card:nth-child(5) { animation-delay: 0.5s; }
.animate-card:nth-child(6) { animation-delay: 0.6s; }

/* Add hover effect */
.animate-card:hover {
    transform: scale(1.05);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* Ensure the flag images are responsive */
.flag-img {
    max-width: 100px;
    height: auto;
}

/* General Button Styling */
.course-buttons {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.btn-enroll,
.btn-wishlist {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 12px;
    font-size: 16px;
    font-weight: bold;
    color: #fff;
    border: none;
    border-radius: 8px;
    text-transform: uppercase;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.btn-enroll {
    background-color: #FDA31B;
}

/* Hover effect: Enroll Now */
.btn-enroll:hover {
    background-color: #d68517;
    box-shadow: 0 8px 20px rgba(253, 163, 27, 0.5);
}

/* Add to Wishlist Button - Black color */
.btn-wishlist {
    background-color: #000;
}

/* Hover effect: Add to Wishlist */
.btn-wishlist:hover {
    background-color: #333;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.5);
}

/* Icon styles to ensure spacing */
.btn-enroll i,
.btn-wishlist i {
    margin-right: 10px;
    font-size: 18px;
}

/* Free Badge Styling */
.free-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background-color: #FDA31B;
    color: #fff;
    font-size: 14px;
    font-weight: bold;
    padding: 5px 10px;
    border-radius: 5px;
    text-transform: uppercase;
    z-index: 10;
}

.course-img {
    position: relative;
}

/* Price text color when the course is free */
.course-price {
    color: white;
    font-weight: bold;
}

/* Animation for Buttons */
.btn-enroll,
.btn-wishlist {
    opacity: 0;
    transform: translateY(10px);
    animation: fadeInUp 0.6s ease forwards;
}

/* Delay for staggered animation */
.btn-wishlist {
    animation-delay: 0.2s;
}

/* Keyframes for animation */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Language Switcher */

/* Language Switcher */
.language-switcher {
    position: relative;
    display: inline-block;
}

/* Toggle Button */
.language-switcher button {
    background: white;
    border: 1px solid #ccc;
    cursor: pointer;
    padding: 0.5rem 1rem;
    font-size: 1rem;
    border-radius: 4px;
    color: black;
    transition: background 0.3s, color 0.3s;
}

.language-switcher button:hover {
    background: #f8f9fa;
    color: black;
    border-color: #bbb;
}

/* Dropdown Menu */
.language-dropdown {
    display: none;
    position: absolute;
    background: white;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    z-index: 1;
    border-radius: 4px;
    overflow: hidden;
}

.language-switcher:hover .language-dropdown {
    display: block;
}

/* Dropdown Items */
.language-dropdown a {
    display: block;
    padding: 0.5rem 1rem;
    text-decoration: none;
    color: black;
    transition: background 0.3s, color 0.3s;
}

/* Improve active item (English) */
.language-dropdown a.active {
    background: #007bff;
    color: white;
    font-weight: bold;
}

/* Hover Effect */
.language-dropdown a:hover {
    background: #0056b3;
    color: white;
}

/* Make the toggler remain white when active */
.language-switcher .dropdown-toggle.show {
    background: white !important;
    color: black !important;
    border: 1px solid #bbb;
}

/* Mobile Styles */
@media (max-width: 768px) {
    .language-switcher {
        display: block !important;
        text-align: center;
        width: 100%;
        margin-top: 10px;
    }

    .language-switcher button {
        width: 100%;
        text-align: center;
        background: white;
        color: black;
        border: 1px solid #ddd;
    }

    .language-dropdown {
        position: static;
        width: 100%;
        text-align: center;
    }

    .language-dropdown a {
        display: block;
        padding: 10px;
        text-align: center;
    }
}

@media (max-width: 992px) {
    .nav-right {
        display: flex;
        flex-direction: column;
        align-items: center;
        width: 100%;
        margin-top: 10px;
    }

    .language-switcher {
        width: 100%;
        text-align: center;
        margin-top: 10px;
    }

    .language-switcher button {
        width: 100%;
        text-align: center;
        background: white;
    }

    .language-dropdown {
        position: static;
        width: 100%;
        text-align: center;
        box-shadow: none;
    }

    .language-dropdown a {
        padding: 10px;
    }
}

@media (max-width: 992px) {
    .nav-right {
        display: flex;
        flex-direction: column;
        align-items: center;
        width: 100%;
        padding-top: 10px;
    }

    .nav-right-btn {
        width: 100%;
        text-align: center;
        margin-top: 10px;
    }

    .nav-right-btn a {
        width: 80%;
        display: block;
    }
}

/* Slider */

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.hero-content h6 {
    opacity: 0;
    animation: fadeInLeft 1s ease-out forwards;
}

.hero-content h1 {
    opacity: 0;
    animation: fadeInUp 1.2s ease-out 0.3s forwards;
}

.hero-content p {
    opacity: 0;
    animation: fadeInRight 1.5s ease-out 0.6s forwards;
}

.hero-btn {
    opacity: 0;
    animation: fadeInUp 1.8s ease-out 0.9s forwards;
}

.login-btn {
    border-radius: 4px !important;
    padding: 10px 20px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    height: auto !important;
    width: auto !important;
    white-space: nowrap !important;
}

.login-btn span {
    display: inline-block !important;
    margin-right: 8px !important;
}

/**************************************************************************/

.feature-item {
    opacity: 0;
    transform: translateX(-50px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.feature-item.reveal {
    opacity: 1;
    transform: translateX(0);
}

/* globe */

.globe{
    position: relative;
    height: 200px;
    width: 200px;

}
.go{
    position: absolute;
    height: inherit;
    width: inherit;
    background: url("https://maprepublic.com/wp-content/uploads/2017/05/kanawa-world-map-large.jpg");
    border-radius: 50%;
    box-shadow: inset 25px 0px 35px 3px black;
    background-size: 350px;
    animation-name: rotate;
    animation-duration: 5s;
    animation-iteration-count: infinite;
    animation-timing-function: linear;
    transform: rotate(-10deg);
}

.hand{
    position: absolute;
    height: 10px;
    width: 120px;
    background: black;
    border-top-right-radius: 50%;
    border-top-left-radius: 50%;
    transform: translatex(41px) translatey(205px)
}
.hand1{
    position: absolute;
    height: 5px;
    width: 10px;
    background: black;
    transform: translatex(95px) translatey(200px)
}

/* Corrected infinite rotation for the globe */
.globe-icon {
    display: inline-block;
}

/* Card styling */
.animate-card {
    border-radius: 10px;
    transition: all 0.3s ease-in-out;
    background: #fff;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    cursor: pointer;
}

/* Hover effect */
.animate-card:hover {
    background: #f8f9fa;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
    transform: translateY(-3px);
}

/* Active card effect */
.animate-card:active {
    background: #007bff;
    color: white;
    transform: scale(0.98);
}

/* Flag animation on hover */
.flag-img {
    width: 60px;
    transition: transform 0.3s ease-in-out;
}

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