* {
    margin: 0;
    padding: 0;
    color: black;
    font-family: 'Times New Roman', Times, serif;
    box-sizing: border-box;
}

/* Navigation bar section */
.image-container {
    position: relative;
    width: 100%;
    margin: 0 auto;
}

::-webkit-scrollbar {
	display:none;
}

.background-image {
    width: 100%;
    height: 450px;
    object-fit: cover;
}

.nav-bar {
    position: absolute;
    display: flex;
    flex-direction: row;
    top: 0;
    width: 100%;
    color: #fff;
    padding: 10px 0;
    text-align: center;
    justify-content: space-between;
}

.nav-bar ul {
    display: flex;
    list-style: none;
    gap: 20px;
    margin: 30px 50px 0px 0px;
}

.nav-bar h1 {
    font-size: 36px;
    margin: 20px 0px 0px 50px;
}

.nav-bar ul li a {
    text-decoration: none;
    color: black;
    font-size: 18px;
    /* Base font size */
    padding: 5px 10px;
    transition: background 0.5s, color 0.5s, transform 0.5s;
    display: inline-block;
    text-align: center;
    border-radius: 30px;
}

.nav-bar ul li a:hover {
    background-color: black;
    color: white;
    /* transform: scale(1.2); */
    /* Scales the link to 1.2x its size */
    border-radius: 30px;
}

.nav-bar ul li a.active {
    color: white;
    background-color: black;
    /* font-size: 22px; */
}

.small-devices-menu {
    background-color: #9f2dcc;
    display: none;
    flex-direction: row;
    align-items: center;
    padding: 5px;
    border-radius: 10px;
    font-weight: bolder;
    font-size: 20px;
    margin: 15px;
    height: 50px;
    width: 100px;
    cursor: pointer;
    /* position: absolute; */
    /* align-items: right; */
}

.small-devices-menu i {
    /* text-align: center; */
    margin: 0px 8px;
}
.tech-image {
    position: absolute;
    top: 200px;
    right: 50px;
    text-align: right;
    font-size: 18px;
}

.small-devices-nav-menu {
    display: none;
    flex-direction: column;
    list-style: none;
    background-color: #9f2dcc;
    padding: 10px;
    border-radius: 10px;
    position: absolute;
    top: 80px; /* Position just below the menu icon */
    right: 15px;
    width: 150px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
    z-index: 10;
}

.small-devices-nav-menu li {
    margin: 10px 0;
}

.small-devices-nav-menu a {
    color: white;
    text-decoration: none;
    font-size: 18px;
    padding: 5px;
    display: block;
}

/* Show menu when toggled */
.small-devices-nav-menu.show {
    display: flex;
}

/* Hover effect: smooth color change */
.small-devices-nav-menu a:hover {
    background-color: #490a63; /* Green hover */
    color: #fff;
    border-radius: 5px;
}

/* Active link style */
.small-devices-nav-menu a.nav-active {
    background-color: #490a63; /* Orange active link */
    color: #fff;
    font-weight: bold;
    border-radius: 5px;
}

/* Add a bit of hover interaction for active link */
.small-devices-nav-menu a.nav-active:hover {
    background-color: #490a63; /* Darker orange hover on active */
}

.tech-image button,
.our-courses a button {
    padding: 10px 30px;
    margin: 30px;
    border-radius: 50px;
    border: 2px solid black;
    color: white;
    background-color: black;
    font-weight: bolder;
    font-size: 16px;
    cursor: pointer;
    transition: color 0.3s, border-radius 0.3s, background-color 0.3s;
}

.tech-image button:hover,
.our-courses a button:hover {
    color: black;
    border: 2px solid black;
    background-color: white;
}

.second-div { 
    display: flex;
    flex-direction: column; /* Stack title on top */
    align-items: center;
    text-align: center;
    padding: 30px;
}

.second-div h1 {
    margin-bottom: 20px;
}

.second-div div {
    display: flex;
    flex-wrap: wrap; /* Allow wrapping on small screens */
    justify-content: center;
    gap: 15px; /* Spacing between items */
}

.second-div div div {
    height: auto;
    width: auto;
    max-width: 120px; /* Allow flexibility */
    display: flex;
    justify-content: center;
    align-items: center;
}

.second-div div div img {
    height: 90px;
    width: 90px;
    max-width: 100%; /* Ensures it doesn't overflow */
    object-fit: contain;
}

.third-div {
    position: relative;
    width: 100%;
    min-height: 60vh; /* Ensure it's tall enough */
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.box-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 20px;
    width:100%;
    padding: 40px;
    border-radius: 10px; /* Smooth rounded edges */
}

.box {
    width: calc(25% - 20px);
    min-width: 250px;
    padding: 30px;
    background-color: white;
    text-align: center;
    border: 3px solid rgb(159 45 204);
    border-radius: 10%;
    transition: transform 0.3s ease-in-out;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
}

.box h2 {
    margin-bottom: 20px;
}

.box p {
    font-size: 18px;
    margin-bottom: 20px;
}

/* Button styling */
.box button {
    padding: 10px 15px;
    font-size: 16px;
    font-weight: bold;
    background-color: black;
    color: white;
    border-radius: 50px;
    cursor: pointer;
    border: 2px solid white;
    /* transition: all 0.3s ease; */
    width: 130px;

    
}

.box button:hover {
    background-color: white;
    color: black;
    border: 2px solid black;
}

.our-courses {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 50px 40px;
}

.our-courses h1 {
    font-size: 42px;
    text-align: center;
    margin-bottom: 30px;
}

/* Course images container */
.our-courses-images {
    display: flex;
    flex-wrap: wrap; /* Allows  to wrap in smaller screens */
    justify-content: center;
    gap: 20px; /* Space between images */
    max-width: 100%;
}

.our-courses-images img {
    width: 100%; /* Full width for mobile */
    max-width: 300px; /* Prevents images from being too large */
    height: auto;
    border: 2px solid black;
    border-radius: 10px;
    transition: transform 0.3s ease-in-out;
}

/* Hover effect */
.our-courses-images img:hover {
    transform: scale(1.05);
}

.new-batches {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 40px 20px;
    background-color: #ECF0F2;
    /* border: 2px solid green; */
}

.new-batches h1 {
    font-size: 42px;
    margin-bottom: 20px;
}

/* Batches container */
.new-batches-main-div {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    width: 75%;
    /* border: 2px solid green; */
}

/* Individual batch cards */
.new-batches-sub-div {
    border: 2px solid black;
    border-radius: 10px;
    width: 30%;
    padding: 20px;
    background-color: white;
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease-in-out;
}

.new-batches-sub-div:hover {
    transform: scale(1.05);
}

.new-batches-sub-div h2 {
    font-size: 28px;
    margin-bottom: 10px;
}

.new-batches-course-div {
    display: flex;
    flex-direction: column;
    align-items: left;
}

.new-batches-course-div p {
    font-size: 18px;
    font-weight: bold;
}

/* Icons and Details */
.new-batches-details,
.new-batches-timings,
.new-batches-date {
    display: flex;
    align-items: center;
    margin: 10px 0;
}

.new-batches-details i,
.new-batches-timings i,
.new-batches-date i {
    font-size: 24px;
    margin-right: 10px;
}

.trainer-details {
    text-align: left;
}

/* Button styles */
.more-batches-button {
    padding: 12px 20px;
    font-size: 18px;
    font-weight: bold;
    background-color: black;
    color: white;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    margin-top: 20px;
    border: 2px solid black;
    transition: background-color 0.5s ease-in-out;
}

.more-batches-button:hover {
    background-color: white;
    color: black;
    border: 2px solid black;
}

footer {
    margin-top: auto; /* Push footer to the bottom */
    display: flex;
    justify-content: space-evenly;
    align-items: center;
    background-color: white;
    padding: 40px;
    flex-wrap: wrap; /* Ensures proper wrapping on smaller screens */
    text-align: center;
}

footer div {
    width: 30%;
    min-width: 250px;
    padding: 20px;
    /* border: 2px solid black; */
    display: flex; 
    flex-direction: column;
    align-items: center;
}

footer h2 {
    font-size: 28px;
    margin-bottom: 15px;
    /* border: 2px solid black; */
}

.footer-pages {
    list-style: none;
    padding: 0;
    /* display: flex;
    flex-direction: column;
    justify-content: left;
    align-items: left; */
}

.footer-pages li {
    margin: 5px 0;
}

.footer-pages a {
    text-decoration: none;
    color: black;
    font-size: 18px;
    transition: color 0.3s;
    /* display: flex;
    flex-direction: column;
    text-align: left; */
}

.footer-pages a:hover {
    color: blue;
}

.social-media-icons {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    /* border: 2px solid black; */
    gap: 20px;
}

.social-media-icons a {
    font-size: 25px;
    text-decoration: none;
    color: black;
    transition: color 0.3s;
}

.social-media-icons a:hover {
    color: red;
}

.copyright {
    width: 100%;
    /* border: 2px solid black; */
    padding: 10px;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    font-weight: bolder;
}

/* Mobile Devices */
@media (max-width: 480px) {
    .tech-image h1 {
        font-size: 20px;
    }

    .tech-image button {
        margin: 15px;
        padding: 8px 20px;
        font-size: 12px;
    }
    
    .background-image {
        height: 350px;
    }

    .tech-image {
        top: 140px;
        left: 50px;
        text-align: left;
    }
    
    .nav-bar h1 {
        font-size: 28px;
        margin: 25px 0px 0px 25px;
    }

    .nav-bar ul {
        display: none;
    }

    .small-devices-menu {
        display: flex;
    }

    .second-div {
        padding: 20px;
    }

    .second-div div div {
        max-width: 80px;
    }

    .second-div div div img {
        height: 70px;
        width: 70px;
    }

    .box-container {
        flex-direction: column;
        width: 100%;
    }
    .box {
        width: 100%; /* Full width for mobile screens */
    }
    .our-courses h1 {
        font-size: 32px;
    }
    .our-courses-images img {
        max-width: 100%; /* Each image takes full width */
    }
    .new-batches {
        padding: 15px;
    }

    .new-batches h1 {
        font-size: 28px;
    }

    .new-batches-main-div {
        flex-direction: column;
        align-items: center;
    }

    .new-batches-sub-div {
        width: 100%; /* Full width for better readability */
        /* margin: 10px 0px; */
        padding: 15px;
        /* align-items: right; */
    }

    .new-batches-sub-div h2 {
        font-size: 24px;
    }

    .new-batches-course-div p {
        font-size: 16px;
    }

    .new-batches-details, 
    .new-batches-timings, 
    .new-batches-date {
        flex-direction: column;
        align-items: center;
    }

    .new-batches-details i,
    .new-batches-date i,
    .new-batches-timings i {
        font-size: 24px;
        margin-bottom: 5px;
    }

    .more-batches-button {
        font-size: 16px;
        padding: 10px 20px;
    }

    footer {
        /* flex-direction: row; */
        padding: 20px;
    }

    footer div {
        width: 100%;
        padding: 10px;
    }

    .social-media-icons {
        font-size: 20px;
        gap: 10px;
    }

    .footer-pages a {
        font-size: 16px;
    }
}

/* Tablets (Portrait) */
@media (min-width:481px) and (max-width: 920px) {
    .tech-image h1 {
        font-size: 30px;
    }
    .background-image {
        height: 380px;
    }

    .tech-image button {
        margin: 20px;
        padding: 10px 25px;
        font-size: 14px;
    }
    .tech-image {
        top: 150px;
    }

    .nav-bar h1 {
        font-size: 32px;
        margin: 20px 0px 0px 30px;
    }
    
    .nav-bar ul {
        display: none;
    }

    .small-devices-menu {
        display: flex;
    }

    .second-div {
        padding: 20px;
    }

    .second-div div {
        flex-direction: row; /* Stack images in one column */
        align-items: wrap;
    }

    .second-div div div {
        max-width: 80px;
    }

    .second-div div div img {
        height: 70px;
        width: 70px;
    }
    .box-container {
        width: 90%; /* Adjust box container width */
    }
    .box {
        width: calc(50% - 20px); /* 2 boxes per row for screens <= 920px */
    }
    .our-courses h1 {
        font-size: 36px;
    }
    .our-courses-images img {
        max-width: 50%; /* Images take up more space on smaller screens */
    }

    .new-batches {
        padding: 20px;
    }

    .new-batches h1 {
        font-size: 32px;
    }

    .new-batches-main-div {
        flex-wrap: wrap;
        justify-content: center;
        row-gap: 20px;
    }

    .new-batches-sub-div {
        width: 45%; /* 2 batches per row for tablets */
        padding: 15px;
    }

    .new-batches-sub-div h2 {
        font-size: 28px;
    }

    .new-batches-course-div p {
        font-size: 18px;
    }

    .new-batches-details, 
    .new-batches-timings, 
    .new-batches-date {
        flex-direction: row;
        justify-content: left;
        align-items: center;
    }

    .new-batches-details i,
    .new-batches-date i,
    .new-batches-timings i {
        font-size: 26px;
    }

    .more-batches-button {
        font-size: 18px;
        padding: 12px 24px;
    }

    footer {
        flex-direction: column;
        text-align: center;
        align-items: center;
    }

    footer div {
        width: 100%;
    }

    .social-media-icons {
        justify-content: center;
    }
    
}