* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: Arial, sans-serif;
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    /* background: linear-gradient(to right, #000c67, #000c67); */
    background: linear-gradient(to right, #001f5b, #004aad);

    padding: 15px 90px;
    color: white;
    position: relative;
}

.logo img {
    height: 90px;
    width: auto;
    transition: transform 0.3s;
}

.logo img:hover {
    transform: scale(1.1);
}

/* Nav Links */
.nav-links {
    display: flex;
    align-items: center;
    gap: 20px;
}

.nav-links a {
    color: white;
    text-decoration: none;
    font-size: 16px;
    font-weight: 700;
    transition: color 0.3s, transform 0.2s;
}

.nav-links a:hover {
    color: #fff200;
    transform: translateY(-2px);
}

.user-icon {
    position: relative;
    cursor: pointer;
}

.user-icon i {
    font-size: 20px;
    color: white;
    transition: color 0.3s, transform 0.2s;
}

.user-icon:hover i {
    color: #f39c12;
    transform: scale(1.1);
}

.dropdown {
    display: none;
    position: absolute;
    right: 0;
    background: white;
    color: black;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    overflow: hidden;
    width: 180px;
    top: 50px;
    z-index: 1000;
    animation: slideDown 0.4s ease;
    transform-origin: top;
}

.dropdown a {
    display: block;
    padding: 12px 16px;
    color: black;
    text-decoration: none;
    transition: all 0.3s;
    font-weight: 500;
}

.dropdown a:hover {
    background: #040085;
    color: white;
    box-shadow: inset 5px 0 0 #127bf3;
    transform: translateX(5px);
}

@media (max-width: 1024px) {
    .dropdown {
        width: 220px;
        top: 60px;
        right: 10px;
    }
}

@media (max-width: 768px) {
    .dropdown {
        width: 150px;
        top: 60px;
        background-color: #0d6efd;
        right: -60px;
        border-radius: 0;
    }

    .dropdown a {
        padding: 14px 20px;
        font-size: 16px;
        text-align: left;
    }
}

@keyframes slideDown {
    0% {
        opacity: 0;
        transform: scaleY(0);
    }

    100% {
        opacity: 1;
        transform: scaleY(1);
    }
}

.menu-icon {
    display: none;
    font-size: 28px;
    cursor: pointer;
    color: white;
    transition: transform 0.3s, color 0.3s;
}

.menu-icon:hover {
    transform: scale(1.1);
    color: #007bff;
}

@media (max-width: 1024px) {
    .navbar {
        padding: 15px 40px;
    }

    .nav-links {
        gap: 15px;
    }

    .logo img {
        height: 60px;
    }
}

@media (max-width: 768px) {
    .navbar {
        padding: 15px 30px;
        display: flex;
        justify-content: space-between;
        align-items: center;
    }

    .nav-links {
        display: none;
        flex-direction: column;
        position: fixed;
        top: 0;
        left: 0;
        width: 250px;
        height: 100vh;
        background: #000c67;
        text-align: left;
        padding-top: 20px;
        box-shadow: 2px 0 6px rgba(0, 0, 0, 0.1);
        animation: slideIn 0.4s ease forwards;
        overflow-y: auto;
        z-index: 1000;
    }

    .nav-links a {
        display: block;
        padding: 15px 20px;
        color: white;
        font-size: 1.1rem;
        text-decoration: none;
        transition: color 0.3s;
    }

    .nav-links a:hover {
        background-color: #007bff;
        color: white;
    }

    .menu-icon {
        display: block;
    }

    .nav-links.show {
        display: flex;
    }
}

@media (max-width: 576px) {
    .navbar {
        padding: 12px 20px;
    }

    .logo img {
        height: 50px;
    }

    .menu-icon {
        font-size: 24px;
    }
}

@keyframes slideIn {
    from {
        transform: translateX(-100%);
    }

    to {
        transform: translateX(0);
    }
}

/*  User Hero Section */
.hero-section {
    padding: 40px 8% 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    background: linear-gradient(to right, #001f5b, #004aad);
    /* background: linear-gradient(to right, #000c67, #000c67); */
    color: white;
}

.hero-text {
    max-width: 50%;
    flex: 1;
    text-align: left;
}

.hero-text h1 {
    font-weight: bold;
    font-size: 3.2rem;
    line-height: 1.2;
    word-break: break-word;
    margin-bottom: 15px;
}

.hero-text p {
    font-size: 1.1rem;
    color: #f0f0f0;
    margin-bottom: 20px;
    max-width: 90%;
}

.cta-buttons {
    padding-top: 20px;
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
}

.cta-buttons a {
    width: 250px;
    text-align: center;
    border-radius: 30px;
    font-size: 18px;
    padding: 14px 0;
    border: 2px dashed rgba(255, 255, 255, 0.8);
    /* background: #024bf4; */
    color: white;
    text-decoration: none;
    font-weight: 600;
    transition: background 0.3s, transform 0.2s;
}

.cta-buttons a:hover {
    background: #024bf4;
    transform: scale(1.05);
}

.hero-image {
    flex: 1;
    max-width: 42%;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    margin-top: 38px;
}

.hero-image img {
    max-width: 100%;
    height: 550px;
    border-radius: 10px;
}

.floating-info {
    position: absolute;
    width: 80px;
    height: 80px;
    /* background: rgba(255, 255, 255, 0.2); */
    /* backdrop-filter: blur(8px); */
    color: white;
    border-radius: 50%;
    padding: 10px;
    text-align: center;
    font-size: 10px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    animation: floating 3s ease-in-out infinite;
    transition: transform 0.3s;
    border: 2px dashed rgba(255, 255, 255, 0.8);
    /* box-shadow: 0 0 10px rgba(255, 255, 255, 0.3); */
}

.floating-info i {
    font-size: 20px;
    margin-bottom: 5px;
}

@keyframes floating {
    0% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-12px);
    }

    100% {
        transform: translateY(0);
    }
}

.floating-1 {
    top: 10%;
    left: 15%;
}

.floating-2 {
    top: 10%;
    right: 15%;
}

.floating-3 {
    bottom: 95%;
    left: 55%;
}

.floating-4 {
    bottom: 95%;
    right: 53%;
}

@media (min-width: 1920px) {
    .hero-text h1 {
        font-size: 3.8rem;
    }

    .hero-text p {
        font-size: 1.3rem;
    }

    .cta-buttons a {
        font-size: 20px;
        padding: 18px 0;
        width: 280px;
    }
}

@media (max-width: 1440px) {
    .hero-text h1 {
        font-size: 2.8rem;
    }

    .hero-text p {
        font-size: 1rem;
    }

    .hero-image {
        max-width: 45%;
    }

    .floating-1 {
        top: -5%;
        left: 58%;
    }

    .floating-2 {
        top: 18%;
        right: 18%;
    }

    .floating-3 {
        bottom: 70%;
        left: 20%;
    }

    .floating-4 {
        bottom: 93%;
        right: 59%;
    }
}

@media (max-width: 1024px) {
    .hero-section {
        flex-direction: column;
        text-align: center;
        padding: 40px 5%;
    }

    .hero-text {
        max-width: 100%;
        text-align: center;
    }

    .hero-text h1 {
        font-size: 2.5rem;
    }

    .hero-text p {
        font-size: 1rem;
    }

    .hero-image {
        max-width: 60%;
    }

    .floating-info {
        display: none;
    }

    .cta-buttons {
        justify-content: center;
        gap: 10px;
    }
}

@media (max-width: 768px) {
    .hero-section {
        padding-bottom: 0;
    }
    .hero-text h1 {
        font-size: 2rem;
    }

    .hero-text p {
        font-size: 1rem;
    }

    .cta-buttons a {
        width: 90%;
        font-size: 16px;
    }

    .hero-image {
        max-width: 90%;
    }
}

@media (max-width: 480px) {
    .hero-section {
        padding-bottom:  0;
    }
    .hero-text h1 {
        font-size: 1.8rem;
    }

    .hero-text p {
        font-size: 0.9rem;
    }
.cta-buttons{

    display: flex;
    flex-direction:row;
}
    .cta-buttons a {
        /* width: 100%; */
        font-size: 14px;
        width: 160px;
        background-color: #d87c00;
    }

    .hero-image img {
        max-width: 100%;
height:392px;
    }
}

@media (max-width: 375px) {
    .hero-section {
        padding-bottom: 0;
    }
    .hero-text h1 {
        font-size: 1.6rem;
    }

    .hero-text p {
        font-size: 0.85rem;
    }
    .cta-buttons{
        display: flex;
        flex-direction:row;
    }

    .cta-buttons a {
        width: 100px;
        font-size: 12px;
        padding: 10px 0;
    }

    .hero-image img {
        max-width: 100%;
    }
}


.head-ban {
    text-align: center;
    padding: 50px 10%;
    background: linear-gradient(to right, #004aad, #007bff);
    color: white;
    /* border-radius: 10px; */
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.head-ban h1 {
    font-size: 2.5rem;
    font-weight: bold;
    margin-bottom: 10px;
}

.head-ban p {
    font-size: 1.2rem;
    margin-bottom: 20px;
}

.search-container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    max-width: 500px;
    margin: 0 auto;
}

.search-container input {
    width: 100%;
    max-width: 300px;
    padding: 12px 15px;
    font-size: 1rem;
    border: 2px solid transparent;
    border-radius: 25px;
    outline: none;
    transition: 0.3s ease-in-out;
}

.search-container input:focus {
    border-color: #f39c12;
    box-shadow: 0 0 10px rgba(243, 156, 18, 0.5);
}

.search-container button {
    padding: 12px 20px;
    font-size: 1rem;
    font-weight: 600;
    background: #f39c12;
    color: white;
    border: none;
    border-radius: 25px;
    cursor: pointer;
    transition: 0.3s ease-in-out;
}

.search-container button:hover {
    background: #d87c00;
    transform: scale(1.05);
}

@media (max-width: 768px) {
    .head-ban h1 {
        font-size: 2rem;
    }

    .head-ban p {
        font-size: 1rem;
    }

    .search-container {
        flex-direction: column;
        gap: 10px;
    }

    .search-container input,
    .search-container button {
        width: 100%;
        max-width: 100%;
    }
}

@media (max-width: 480px) {
    .head-ban {
        padding: 40px 5%;
    }

    .head-ban h1 {
        font-size: 1.8rem;
    }

    .head-ban p {
        font-size: 0.9rem;
    }

    .search-container input {
        font-size: 0.9rem;
        padding: 10px;
    }

    .search-container button {
        font-size: 0.9rem;
        padding: 10px 15px;
    }
}

.container {
    text-align: center;
    padding: 40px;
}

.carousel-container {
    position: relative;
    max-width: 1150px;
    margin: auto;
    overflow: hidden;
}

.carousel {
    display: flex;
    gap: 20px;
    overflow-x: hidden;
    scroll-behavior: smooth;
    padding: 10px 0;
    white-space: nowrap;
}

.course-card {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    padding: 15px;
    width: 280px;
    flex: 0 0 auto;
    text-align: left;
    display: inline-block;
}

.course-card img {
    width: 100%;
    border-radius: 8px;
    height: 150px;
}

.course-card h3 {
    font-size: 18px;
    margin: 10px 0;
}

.instructor {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
}

.instructor img {
    width: 30px;
    height: 30px;
    border-radius: 50%;
}

.price {
    font-weight: bold;
    color: #e67e22;
    margin: 5px 0;
}

.enroll-btn {
    display: block;
    background: #007bff;
    color: white;
    text-align: center;
    padding: 10px;
    border-radius: 5px;
    text-decoration: none;
    margin-top: 10px;
    transition: background 0.3s;
}

.enroll-btn:hover {
    background: #0056b3;
}

.carousel-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.6);
    color: white;
    padding: 10px;
    cursor: pointer;
    border-radius: 50%;
    user-select: none;
    z-index: 10;
}

.left-nav {
    left: 10px;
}

.right-nav {
    right: 10px;
}

.carousel-nav:hover {
    background: rgba(0, 0, 0, 0.8);
}

.banner {
    background: linear-gradient(to right, #007bff, #00c6ff);
    color: white;
    text-align: center;
    padding: 50px 20px;
    border-radius: 10px;
    justify-content: center;
    margin: auto;
    margin-bottom: 30px;
    position: relative;
    overflow: hidden;
    animation: fadeIn 1s ease-in-out;
    max-width: 700px;
}

.banner h2 {
    font-size: 28px;
    font-weight: bold;
    margin-bottom: 15px;
    animation: slideIn 1s ease-in-out;
}

.banner p {
    font-size: 18px;
    margin-bottom: 20px;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 1s ease-in-out forwards 0.3s;
}

.banner button {
    background: #ff9800;
    color: white;
    padding: 12px 25px;
    border: none;
    border-radius: 5px;
    font-size: 18px;
    cursor: pointer;
    transition: background 0.3s, transform 0.2s;
}

.banner button:hover {
    background: #e68900;
    transform: scale(1.05);
}

.floating-element {
    position: absolute;
    width: 50px;
    height: 50px;
    opacity: 0.6;
    animation: float 6s infinite ease-in-out alternate;
}

.float-1 {
    top: 10%;
    left: 5%;
}

.float-2 {
    top: 50%;
    right: 10%;
}

.float-3 {
    bottom: 10%;
    left: 50%;
}


@media (max-width: 1024px) {
    .container {
        padding: 30px;
    }

    .carousel-container {
        max-width: 92%;
    }

    .course-card {
        width: 260px;
    }

    .banner {
        max-width: 90%;
    }
}

@media (max-width: 768px) {
    .container {
        padding: 20px;
    }

    .carousel {
        gap: 15px;
    }

    .course-card {
        width: 300px;
        padding: 12px;
    }

    .instructor img {
        width: 25px;
        height: 25px;
    }

    .price {
        font-size: 14px;
    }

    .enroll-btn {
        font-size: 13px;
        padding: 7px;
    }

    .carousel-nav {
        padding: 8px;
        font-size: 14px;
    }

    .banner {
        padding: 30px 15px;
        max-width: 90%;
    }
}

@media (max-width: 576px) {
    .carousel {
        gap: 10px;
        padding: 5px 0;
    }

    .course-card {
        width: 350px;
        padding: 10px;
    }

    .instructor img {
        width: 22px;
        height: 22px;
    }

    .price {
        font-size: 13px;
    }

    .carousel-nav {
        padding: 6px;
        font-size: 12px;
    }

    .banner {
        width: 95%;
        padding: 30px 15px;
    }
}

@media (max-width: 375px) {
    .head-ban h1 {
        font-size: 24px;
    }

    .banner h2 {
        font-size: 20px;
    }

    .banner button {
        font-size: 14px;
        padding: 8px;
    }
}
