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

.image-container {
    position: relative;
    width: 100%;
    margin: 0 auto;
}

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

.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); */
    border-radius: 30px;
    /* Scales the link to 1.2x its size */
}

.nav-bar ul li a.active {
    color: white;
    background-color: black;
}

.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;
}

.small-devices-menu i {
    /* text-align: center; */
    margin: 0px 8px;
}

.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 {
    position: absolute;
    top: 200px;
    right: 50px;
    text-align: right;
    font-size: 18px;
}

.tech-image h1 {
    font-size: 36px;
}

.description {
    font-size: 25px;
    padding: 50px;
}
.new-batches-section {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 20px;
    justify-content: center;
    font-size: 20px;
    font-weight: bolder;
    padding: 20px;
    column-gap: 40px;
    row-gap: 50px;
}

.main-container {
    display: flex;
    flex-direction: column;
    border: 2px solid black;
    border-radius: 20px;
    overflow: hidden;
}

.main-container img {
    width: 100%;
    border-radius: 20px 20px 0 0;
    
}

.main-container:hover {
    transform: scale(1.05);
    transition: transform 0.3s ease-in-out;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 1);
}

.sub-container {
    display: flex;
    flex-direction: row;
    margin: 10px 20px;
    align-items: center;
    gap: 10px;
    /* column-gap: 40px;
    row-gap: 50px; */
}

.sub-container i {
    margin-right: 10px;
}

.child-container table tr td {
    padding: 5px;
}

.sub-container.link {
    justify-content: center;
}

.sub-container.link a {
    text-decoration: none;
    color: #0170B9;
    font-size: 18px;
}

.sub-container.link a:hover {
    color: red;
}

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: 36px;
    margin-bottom: 15px;
}

.footer-pages {
    list-style: none;
    padding: 0;
}

.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;
}


/* Mobile Devices */
@media (max-width: 480px) {   
    .background-image {
        height: 350px;
    }

    .nav-bar h1 {
        font-size: 28px;
        margin: 25px 0px 0px 25px;
    }

    .nav-bar ul {
        display: none;
    }

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

    .tech-image {
        top: 140px;
        left: 50px;
        text-align: right;
    }

    .tech-image h1 {
        font-size: 28px;
    }

    .description {
        font-size: 18px;
    }

    .new-batches-section {
        grid-template-columns: 1fr;
        font-size: 16px;
    }

    .sub-container {
        flex-direction: column;
        gap: 5px;
    }

    .sub-container.link a {
        font-size: 16px;
    }

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

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

    footer h2 {
        font-size: 28px;
    }

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

    .social-media-icons a {
        font-size: 18px;
    }

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

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

    .tech-image {
        top: 180px;
    }

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

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

    .description {
        font-size: 22px;
    }

    .new-batches-section {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
        font-size: 18px;
    }

    .sub-container {
        flex-direction: column;
        gap: 5px;
    }

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

    footer div {
        width: 100%;
    }

    footer h2 {
        font-size: 32px;
    }

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

    .social-media-icons a {
        font-size: 22px;
    }
    
}