* {
    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;
}

.courses-cols {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 10px;
    column-gap: 40px;
    row-gap: 50px;
    justify-content: center;
    padding: 30px;
}

.courses-cols div {
    border: 2px solid black;
    border-radius: 10px;
    text-align: left;
    padding: 10px;
    background-color: #ecf0f2;
}

.courses-cols div img {
    width: 100%;
}

.courses-cols div h2 {
    margin: 10px;

}

.courses-cols div p {
    /* margin: 0 30px; */
    margin: 0 10px;
    font-size: larger;
}

.courses-cols div button {
    margin: 10px;
    padding: 10px 20px;
    border-radius: 50px;
    background-color: black;
    color: white;
    font-weight: bolder;
    cursor: pointer;
}

.courses-cols div button:hover {
    background-color: white;
    color: black;
    border: 2px solid black;
    /* border-radius: 30px; */
}

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

    .courses-cols {
        grid-template-columns: 1fr;
        padding: 20px;
    }
    .courses-cols div {
        padding: 10px;
    }
    .courses-cols div h2 {
        font-size: 1.2rem;
    }
    .courses-cols div p {
        font-size: 0.9rem;
    }
    .courses-cols div button {
        width: 100%;
        margin: 10px  0;
    }

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

    .courses-cols {
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
        padding: 20px;
    }
    .courses-cols div h2 {
        font-size: 1.3rem;
    }
    .courses-cols div p {
        font-size: 1rem;
    }

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