@import url('https://fonts.googleapis.com/css2?family=Roboto+Slab:wght@100..900&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    scroll-behavior: smooth;
}

.navbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background-color: #FFFFFF;
    width: 100%;
    padding: 10px 15%;
    transition: all .3s ease;
    z-index: 1;
}

.nav-logo img {
    height: 100px;
    cursor: pointer;
}

.links {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 30px;
}

.nav-links {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 30px;
    list-style-type: none;
    transition: all .3s ease;
}

.nav-links a {
    text-decoration: none;
    color: #c90404;
    padding: 20px;
    font-size: 18px;
    position: relative;
}
.nav-links a::after {
    content: "";
    position: absolute;
    height: 2px;
    width: 100%;
    bottom: 0;
    left: 0;
    background-color: #c90404;
    transform: scaleX(0);
    transition: all .2s ease-in-out;
}
.nav-links a:hover::after,
.nav-links a.active::after {
    transform: scaleX(1);
}
.nav-links a.active {
    font-weight: 700;
}

/* Dropdown Navigation */
.nav-links li {
    position: relative;
    list-style: none !important;
    list-style-type: none !important;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background-color: #ffffff;
    min-width: 240px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
    border-radius: 8px;
    padding: 8px 0;
    list-style: none !important;
    list-style-type: none !important;
    margin: 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s ease;
    z-index: 1000;
    border: 1px solid #feecec;
}

.dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-menu li {
    width: 100%;
    display: block;
    margin: 0 !important;
    padding: 0 !important;
    list-style: none !important;
    list-style-type: none !important;
}

.dropdown-menu a {
    display: block;
    padding: 12px 20px !important;
    font-size: 15px !important;
    color: #333 !important;
    text-decoration: none;
    white-space: nowrap;
    transition: all 0.2s ease;
}

.dropdown-menu a:hover,
.dropdown-menu a.active {
    background-color: #feecec;
    color: #c90404 !important;
    font-weight: 600;
}

.dropdown-menu a::after {
    display: none !important;
}

.sub-link {
    font-size: 15px !important;
    opacity: 0.9;
    padding-left: 10px !important;
}
.links .btn {
    padding: 12px 20px;
    background-color: #fff;
    color: #c90404;
    border: 1px solid #c90404;
    font-size: 16px;
    border-radius: 60px;
    transition: all .3s ease-in-out;
}
.links .btn:hover {
    background-color: #c90404;
    color: #fff;
    border: 1px solid #fff;
    box-shadow: inset 0 4px 10px rgba(32, 16, 16, 0.8);
}
.checkBtn {
    font-size: 30px;
    color: #c90404;
    cursor: pointer;
    display: none;
}

#check {
    display: none;
}

/* Sidebar styles */
.sidebar {
    position: fixed;
    top: 0;
    right: -100%;
    width: 150px;
    height: 100%;
    background-color: #c90404;
    display: flex;
    flex-direction: column;
    gap: 20px;
    padding: 20px;
    transition: 0.3s ease;
    text-align: center;
    z-index: 1;
}

.sidebar.active {
    right: 0;
}

.sidebar a {
    color: #fff;
    text-decoration: none;
    font-size: 18px;
    padding: 10px 0;
}

/* Close button styles */
.sidebar .close-btn {
    font-size: 36px;
    color: #fff;
    background: none;
    border: none;
    align-self: flex-end;
    cursor: pointer;
    margin-bottom: 20px;
    transition: 0.3s ease;
}

.sidebar .close-btn:hover {
    color: #FF5555;
}

/* banner section  */
.banner-container {
    transition: all .3s ease;
}
.banner-img {
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all .3s ease;
}
.banner-img img {
    margin-top: 20px;
    height: 700px;
    width: 100%;
    border-radius: 8px;
    max-width: fit-content;
    object-fit: cover;
}

.hero-container {
    margin-top: 30px;
    min-height: 80vh;
    width: 100%;
    display: flex;
    align-items:center;
    justify-content: center;
    padding: 10px 3.8%;
}
.content-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 50px;
}
.content-img {
    flex-basis: 50%;
    height: 350px;
}
.content-img img {
    height: 100%;
    width: 100%;
    transition: all .3s ease-in-out;
    border-top-left-radius: 100px;
    border-bottom-right-radius: 100px;
}
.content-text {
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 20px;
    flex-basis: 50%;
    padding: 10px 5%;
}
.content-text h1 {
    font-size: 4.5rem;
    color: #c90404;
    font-weight: 400;
}
.content-text p {
    font-size: 1.2rem;
    letter-spacing: 1px;
}
.services {
    padding: 20px;
}
.services h1{
    margin-top: 20px;
    text-align: center;
    font-size: 4.5rem;
    font-weight: 500;
    color: #c90404;
}
.card {
    min-height: 100vh;
    width: 100%;
    background-color: #feecec;
    display: flex;
    align-items: center;
    justify-content: space-evenly;
    flex-wrap: wrap;
    gap: 30px;
    padding: 20px 0;
    border-radius: 10px;
}
.main {
    margin-top: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 30px;
}
/* Styles for the course cards */
.cards {
    position: relative;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    border-radius: 10px;
    gap: 30px;
    width: 400px;
    height: 480px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    text-align: center;
    transition: transform 0.3s ease-in-out;
}

/* Tooltip box */
.tooltip {
    position: absolute;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    bottom: -1px;
    left: 50%;
    transform: translateX(-50%);
    background: #c90404;
    color: #fff;
    padding: 10px;
    border-radius: 10px;
    width: 400px;
    height: 95%;
    font-size: 15px;
    opacity: 0;
    visibility: hidden;
    padding: 50px 20px;
    transition: opacity 0.3s ease-in-out;
}

.cards:hover .tooltip {
    opacity: 1;
    visibility: visible;
}
.cards:hover .card-text {
    visibility: hidden;
}
.card-img {
    height: 225px;
    width: 350px;
    padding: 5px;
    border-radius: 10px;
    transition: all .2s ease-in-out;
}
.card-img img {
    height: 100%;
    width: 100%;
    border-radius: 8px;
    object-fit: cover;
}
.card-text {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    text-align: center;
    gap: 5px;
    height: 180px;
    width: 350px;
    background-color: #eee;
    border-radius: 8px;
    transition: all .2s ease-in-out;
}
.card-text h3 {
    margin-bottom: 10px;
    font-size: 1.2rem;
    font-weight: 700;
    color: #c90404;
}
.card-text p {
    letter-spacing: 1px;
    margin-top: -10px;
    margin-bottom: 10px;
    line-height: 20px;
}
.cards:hover {
    border: 1px solid #c90404;
    background-color: #c90404;
    box-shadow: inset 0 8px 10px rgba(0,0,0,0.5);
    transform: translateZ(8px);
    cursor: pointer;
}
.cards:hover .card-img {
    background-color: transparent;
}
.button .btn {
    margin-top: 10px;
    border: none;
    background-color: transparent;
    padding: 15px 25px;
    border: 1px solid #c90404;
    border-radius: 50px;
    transition: all .2s ease-in-out;
    width: 200px;
    margin-bottom: 10px;
}
.button .btn a {
    color: #000;
    text-decoration: none;
    font-size: 17px;
    text-transform: uppercase;
    transition: all .2s ease-in-out;
}
.button .btn:hover {
    background-color: #c90404;
    box-shadow: inset 0 4px 10px rgba(32, 16, 16, 0.8);
    width: 300px;
    cursor: pointer;
}
.button .btn:hover a{
    color: #fff;
}

.hero-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 30px;
}

.content1-container {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 10px;
    gap: 50px;
    border: 1px solid transparent;
    border-radius: 8px;
    transition: all .2s ease-in-out;
}
.content1-container:hover {
    border: 1px solid #c90404;
}
.content1-container:hover .content1-text {
    color: #333;
}

.new {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    padding: 20px;
}

.content1-img padding: 10px;
.content1-img img {
    height: 30vh;
    width: 300px;
}
.content1-text {
    width: 900px;
}
.content2-text {
    display: inline-flex;
    padding: 45px 10px;
}
.content2-text p {
    font-size: 1.4rem;
    color: #c90404;
}
.content2-text img {
    margin-top: -38px;
    height: 170px;
}
.content2-text h1 {
    font-size: 1.4rem;
    font-weight: 900;
    margin-top: 40px;
    color: #c90404;
}
.content2-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
}
.content2-logo h1 {
    margin-top: -50px;
}
.content2-text p {
    margin-top: 38px;
}
.content3-text {
    width: 80%;
}
.content3-text p{
    margin-top: -100px;
    text-align: center;
    font-family: "Roboto Slab", serif;
    text-transform: capitalize;
    color: #000;
    font-weight: 600;
    width: 100%;
}

.form-container {
    margin-top: 40px;
    background-color: aliceblue;
    height: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    padding: 30px 0;
}
.form-container h1 {
    font-size: 4.5rem;
    font-weight: 400;
    color: #c90404;
}
.form {
    width: 70%;
    height: auto;
    border: 2px solid #c90404;
    margin-top: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 30px;
    padding: 50px;
    border-radius: 8px;
    transition: all .2s ease-in-out;
}
.form input,textarea {
    width: 60%;
    padding: 15px 20px;
    border: none;
    border-radius: 8px;
    color: #000;
    font-size: 16px;
    border: 1px solid #c90404;
}
.form input:hover,
.form textarea:hover {
    background-color: #fff;
    color: #000;
}

.form input::placeholder,
.form textarea::placeholder {
    color: #000;
    font-size: 18px;
    font-weight: 300;
}
.form .btn {
    width: 60%;
    padding: 13px 25px;
    border: none;
    border-radius: 8px;
    font-size: 18px;
    border: 1px solid #c90404;
    background-color: #c90404;
    color: #fff;
    cursor: pointer;
}
.form:hover .btn {
    background-color: #fff;
    color: #c90404;
    box-shadow: inset 0 4px 10px rgba(32, 16, 16, 0.8);
}
.form:hover {
    background-color: #c90404;
}
.footer-container {
    background-color: #c90404;
    color: #ffff;
    padding: 10px 30px;
    transition: all .2s ease-in-out;
}
.footer p {
    font-size: 24px;
    font-weight: 300;
    text-align: center;
}
.footer-container:hover {
    background-color: #630202;
}

@media (max-width: 1024px) {
    .sidebar {
        width: 70%;
    }
    .links {
        display: none;
    }
    .checkBtn {
        display: block;
    }
    .services h1 {
        font-size: 3rem;
    }
    .cards {
        width: 320px;
        height: auto;
        padding: 20px;
    }
    .tooltip {
        width: 320px;
    }
    .card-img, .card-text {
        width: 280px;
    }
}
