:root {
    --color-Header: #3A2754;
    --color-Text-Blue: #1EB5D9;
    --color-Pink: #F2597F;
    --color-Yellow: #F9C92B;
    --color-Main: #F9F3E8;
    --color-break-yellow: #FFF8E5;
    --color-break-blue: #E8f6ff;
}

*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    background-color: #fff;
    font-family: "Nunito", sans-serif;
    font-weight: 500;
    font-size: 1rem;
    color: #333333;
}

h1 {
    font-family: "Baloo 2", sans-serif;
    color: var(--color-Header);
}

li {
    list-style: none;
}

a {
    text-decoration: none;
    color: #333333;
}

button {
    background-color: var(--color-Text-Blue);
    border-radius: 20px;
    border: 0;
    padding: 15px 30px;
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.4);
    cursor: pointer;
}

button:active {
    transform: scale(0.95);
}

a button {
    font-size: 1.5rem;
    font-weight: 800;
    color: #fff;
}

.button-container {
    align-self: center;
}

.secondary {
    background-color: var(--color-Yellow);
    color: #333333;
}

.container {
    max-width: 80%;
    margin: 0 auto;
}

h2.big-heading {
    font-size: 3rem;
    font-family: "Baloo 2", sans-serif;
    color: var(--color-Header);
}

header,
footer,
main {
    width: 100%;
}

/* Header */
header {
    background-color: var(--color-Main);
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.2);
}

.main-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header-logo img {
    max-width: 150px;
}

nav .nav-links {
    display: flex;
    font-size: 1.2rem;
    font-weight: 800;
    color: var(--color-Header);
    white-space: nowrap;
}

.nav-link {
    padding: 200px 1.3rem 2rem;
}

.nav-link.active {
    background-color: var(--color-Text-Blue);
    border-radius: 10px;
    color: #fff;
}

.nav-link[class="nav-link"]:hover {
    border-bottom: 5px solid var(--color-Header);
}

.nav-link.noborder {
    border-bottom: 0;
}

.nav-links .resources-sub {
    position: absolute;
    background-color: #ffffff75;
    font-weight: 800;
    color: var(--color-Header);
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(10px);
    padding: 0.5rem 1.2rem 1rem;
    margin-top: 1.5rem;
    border-radius: 10px;
    display: none;
}

.nav-links .resources-sub.active {
    display: block;
}

.nav-links .resources-sub a {
    padding: 0;
    font-size: 1.1rem;
}

.nav-links .resources-sub a:hover {
    border-bottom: 5px solid var(--color-Header)
}

.sidebar {
    position: fixed;
    top: 0;
    right: 0;
    display: none;
    flex-direction: column;
    align-items: start;
    gap: 2em;
    height: 100vh;
    width: 250px;
    z-index: 999;
    background-color: #f9f3e850;
    padding-top: 4em;
    font-size: 1.2em;
    font-weight: 800;
    color: var(--color-Header);
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(10px);
}

.sidebar.active {
    display: flex;
}

.sidebar li,
.sidebar a {
    width: 100%;
}

.sidelink.active {
    background-color: #1eb4d978;
    backdrop-filter: blur(10px);
    border-radius: 0 10px 10px 0;
    color: #fff;
}


.sidebar a {
    padding: 1rem 4rem 1rem 2rem;
}

.sidelink[class="sidelink"]:hover {
    border-left: 5px solid var(--color-Header);
}

.sublinks {
    margin-top: 1rem;
    font-size: 1rem;
    font-weight: 700;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.sublinks a {
    padding: 0.5rem 4rem 0.5rem 2rem;
}


.open-icon-ul {
    display: none;
}

/* HOME PAGE */

/* Hero Section */
.hero-section .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 2rem;
    padding: 3rem 0 7rem;
}

.hero-text-container {
    display: flex;
    flex-direction: column;
    gap: 3rem;
}

.hero-text-container h1 {
    font-size: 3rem;
    line-height: 50px;
}

.hero-text-container p {
    font-size: 2rem;
}

.hero-image-container {
    width: 100%;
    display: flex;
    justify-content: right;
}

.hero-image-container img {
    width: 100%;
    max-width: 600px;
    border-radius: 20px;
}

@media only screen and (max-width: 1400px) {
    html {
        font-size: 80%;
    }

    p {
        font-size: 130%;
    }
    
    .welcome-section .container {
        flex-direction: column;
    }

    .hero-section .container {
        flex-direction: column;
    }

    .hero-image-container {
        display: flex;
        justify-content: center;
    }

    .program.active {
        flex-direction: column;
    }
}

@media only screen and (max-width: 1070px) {
    html {
        font-size: 80%;
    }

    p {
        font-size: 130%;
    }

    .sidebar {
        font-size: 180%;
    }
    
    .sublinks {
        font-size: 80%;
    }

    nav .nav-links {
        display: none;
    }

    .open-icon-ul {
        display: inline-block
    }
}

@media only screen and (max-width: 500px) {
    h1 {
        text-align: center;
    }

    h2 {
        text-align: center;
    }

    p {
        text-align: center;
    }
}

@media only screen and (max-width: 400px) {
    .container {
        max-width: 90%;
        margin: 0 auto;
    }
}