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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Roboto', sans-serif;
    background-color: var(--background-color);
    --color1: #AFD7E0;
    --color2: #9FBCC7;
    --color3: #6594B0;
    --color4: #155B86;
    --color5: #ffffff;
    --background-color: #002B4F;
}
/* active button */
#active {
    color: var(--color2);
}
/* Navigation Bar */
.nav-bar {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    list-style: none;
    position: fixed;
    background-color: rgba(21, 91, 134, 0.75);
    padding: 12px 20px;
    animation-name: header;
    animation-duration: 2s;
    animation-fill-mode: both;
    animation-delay: 500ms;
    z-index: 10;
}

@keyframes header {
    0% {
        transform: translateY(-60px);
    }

    100% {
        transform: translateY(0);
    }
}

.nav-bar>ul {
    list-style: none;
}

.logo img {
    width: 40px;
}

.menu {
    display: flex;
    list-style: none;
}

.menu li {
    padding-left: 30px;
}

.menu li a {
    display: inline-block;
    text-decoration: none;
    color: #ffffff;
    text-align: center;
    transition: 0.15s ease-in-out;
    position: relative;
    text-transform: capitalize;
    font-weight: bold;
}

.menu li a::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 1px;
    background-color: var(--color1);
    transition: 0.15s ease-in-out;
}

.menu li a:hover {
    color: var(--color1);
}

.menu li a:hover:after {
    width: 100%;
}

.open-menu,
.close-menu {
    position: absolute;
    color: var(--color1);
    cursor: pointer;
    font-size: 1.5rem;
    display: none;
}

.open-menu {
    top: 50%;
    right: 20px;
    transform: translateY(-50%);
}

.close-menu {
    top: 20px;
    right: 5%;
}

#check {
    display: none;
}

/* Hero Section */
.hero {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    padding: 6rem 0;
    height: 60vh;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url("img/e8f53b6c-c756-4c12-ad43-747a6165e00e.jpeg");
    background-attachment: fixed;
    background-size: cover;
    background-position: center;
    background-color: rgba(0, 43, 79, 0.575);
    background-blend-mode: multiply;
    z-index: 1;
}

.hero-content {
    z-index: 2;
    width: 50%;
    max-width: 1200px;
    padding: 2rem;
    padding-left: 4rem;
}

.btn-hero {
    width: 50%;
    height: 45vh;
    margin-right: 150px;
    display: flex;
    justify-content: flex-end;
    align-items: flex-end;
    z-index: 2;
}

.btn-hero a {
    background-color: var(--color1);
    color: var(--background-color);
    padding: 1rem 2rem;
    font-weight: bold;
    text-transform: uppercase;
    text-decoration: none;
    border-radius: 4px;
    transition: all 0.3s ease-in-out;
}

.btn-hero a:hover {
    background-color: var(--background-color);
    color: var(--color1);
}

.btn-hero a i {
    font-size: 22px;
}

.hero-content h1 {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    color: #AFD7E0;
    animation: fadeIn 1.5s ease-in-out;
}

.hero-content p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    color: #ffffff;
    line-height: 1.6;
    animation: fadeIn 2s ease-in-out;
    max-width: 800px;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Bank Accounts Section */
.bank-accounts {
    padding: 4rem 2rem;
    background-color: #003366;
    overflow: hidden;
}

.bank-accounts h2 {
    text-align: center;
    font-size: 2.5rem;
    color: #AFD7E0;
    margin-bottom: 3rem;
}

.bank-accounts-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    max-width: 1200px;
    margin: 0 auto;
    gap: 2rem;
}

.bank-info {
    flex: 1;
    min-width: 300px;
    background-color: rgba(175, 215, 224, 0.1);
    padding: 2rem;
    border-radius: 8px;
}

.bank-info h3 {
    color: #AFD7E0;
    font-size: 1.3rem;
    margin-bottom: 1.5rem;
    line-height: 1.5;
}

.bank-info h4 {
    color: #AFD7E0;
    font-size: 1.2rem;
    margin-bottom: 1rem;
}

.bank-info ul {
    list-style-type: none;
}

.bank-info li {
    color: #ffffff;
    margin-bottom: 1rem;
    padding-left: 1.5rem;
    position: relative;
}

.bank-info li::before {
    content: "•";
    position: absolute;
    left: 0;
    color: #AFD7E0;
}

.bank-logos {
    flex: 1;
    min-width: 300px;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    justify-content: center;
}

.bank-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(175, 215, 224, 0.1);
    padding: 1.5rem;
    border-radius: 8px;
    transition: transform 0.3s ease;
}

.bank-logo:hover {
    transform: translateX(10px);
}

.bank-logo img {
    width: 200px;
    height: auto;
    object-fit: contain;
}

/* Student Financing Section */
.student-financing {
    padding: 4rem 2rem;
    background-color: #002B4F;
}

.student-financing h2 {
    text-align: center;
    font-size: 2.5rem;
    color: #AFD7E0;
    margin-bottom: 3rem;
}

.financing-options {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.financing-card {
    flex: 1;
    min-width: 300px;
    max-width: 500px;
    background-color: rgba(175, 215, 224, 0.1);
    padding: 2rem;
    border-radius: 8px;
    transition: transform 0.3s ease;
    text-align: center;
}

.financing-card:hover {
    transform: translateY(-10px);
}

.financing-card img {
    width: 120px;
    height: 120px;
    object-fit: contain;
    margin-bottom: 1.5rem;
}

.financing-card h3 {
    color: #AFD7E0;
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.financing-card p {
    color: #ffffff;
    margin-bottom: 1rem;
    text-align: left;
}

.financing-card ul {
    list-style-type: none;
    margin-bottom: 1.5rem;
    text-align: left;
}

.financing-card li {
    color: #ffffff;
    margin-bottom: 0.5rem;
    padding-left: 1.5rem;
    position: relative;
}

.financing-card li::before {
    content: "•";
    position: absolute;
    left: 0;
    color: #AFD7E0;
}

.financing-card .btn {
    display: inline-block;
    background-color: var(--color1);
    color: #002B4F;
    padding: 0.8rem 1rem;
    font-weight: bold;
    text-transform: uppercase;
    text-decoration: none;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.financing-card .btn:hover {
    background-color: var(--background-color);
    color: #ffffff;
}

/* Budgeting Tips Section */
.budgeting-tips {
    padding: 4rem 2rem;
    background-color: #003366;
    overflow: hidden;
}

.budgeting-tips h2 {
    text-align: center;
    font-size: 2.5rem;
    color: #AFD7E0;
    margin-bottom: 3rem;
}

.tips-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.tip-card {
    flex: 1;
    min-width: 300px;
    background-color: rgba(175, 215, 224, 0.1);
    padding: 2rem;
    border-radius: 8px;
}

.tip-card h3 {
    color: #AFD7E0;
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    text-align: center;
}

.expense-table {
    overflow-x: auto;
}

.expense-table table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 1rem;
}

.expense-table th, .expense-table td {
    padding: 0.75rem;
    text-align: left;
    border-bottom: 1px solid rgba(175, 215, 224, 0.3);
    color: #ffffff;
}

.expense-table th {
    background-color: rgba(175, 215, 224, 0.2);
    color: #AFD7E0;
}

.tip-card ul {
    list-style-type: none;
}

.tip-card li {
    color: #ffffff;
    margin-bottom: 0.75rem;
    padding-left: 1.5rem;
    position: relative;
}

.tip-card li::before {
    content: "•";
    position: absolute;
    left: 0;
    color: #AFD7E0;
}

/* Cost of Living Section */
.cost-of-living {
    padding: 4rem 2rem;
    background-color: #002B4F;
    overflow: hidden;
}

.cost-of-living h2 {
    text-align: center;
    font-size: 2.5rem;
    color: #AFD7E0;
    margin-bottom: 3rem;
}

.cost-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    max-width: 1200px;
    margin: 0 auto;
    gap: 2rem;
}

.cost-image {
    flex: 1;
    min-width: 300px;
    max-width: 500px;
    border-radius: 8px;
    overflow: hidden;
}

.cost-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.cost-table {
    flex: 1;
    min-width: 300px;
    background-color: rgba(175, 215, 224, 0.1);
    padding: 2rem;
    border-radius: 8px;
}

.cost-table table {
    width: 100%;
    border-collapse: collapse;
}

.cost-table th, .cost-table td {
    padding: 0.75rem;
    text-align: left;
    border-bottom: 1px solid rgba(175, 215, 224, 0.3);
    color: #ffffff;
}

.cost-table th {
    background-color: rgba(175, 215, 224, 0.2);
    color: #AFD7E0;
}

/* Scholarships and Grants Section */
.scholarships-grants {
    padding: 4rem 2rem;
    background-color: #003366;
}

.scholarships-grants h2 {
    text-align: center;
    font-size: 2.5rem;
    color: #AFD7E0;
    margin-bottom: 3rem;
}

.scholarships-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.scholarship-item {
    flex: 1;
    min-width: 300px;
    max-width: 350px;
    background-color: rgba(175, 215, 224, 0.1);
    padding: 2rem;
    border-radius: 8px;
    text-align: center;
    transition: transform 0.3s ease;
}

.scholarship-item:hover {
    transform: translateY(-10px);
}

.scholarship-item h3 {
    color: #AFD7E0;
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.scholarship-item p {
    color: #ffffff;
    margin-bottom: 0.5rem;
}

.scholarship-item .btn {
    display: inline-block;
    background-color: transparent;
    color: #AFD7E0;
    padding: 0.7rem 1rem;
    margin-top: 1rem;
    font-weight: bold;
    text-transform: uppercase;
    text-decoration: none;
    border: 2px solid #AFD7E0;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.scholarship-item .btn:hover {
    background-color: #AFD7E0;
    color: #002B4F;
}

/* Footer */
.footer {
    background-color: #AFD7E0;
    padding: 1.8rem 1rem;
    text-align: center;
    overflow: hidden;
}

.footer-top {
    display: flex;
    flex-direction: row;
    color: #002B4F;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    margin-left: 1.5rem;
    margin-right: 1.5rem;
}

.footer-top h1 {
    text-align: left;
    font-size: 35px;
}

.btn-footer {
    display: inline-block;
    padding: 0.8rem 1.5rem;
    border: 3px solid #002B4F;
    color: #002B4F;
    font-weight: bold;
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 26px;
}

.btn-footer:hover {
    transform: translateX(10px);
    background-color: #002B4F;
    color: #ffffff;
}

.footer-bottom {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    padding: 1rem 0;
    margin-left: 1.5rem;
}

.footer-links {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    padding: 0;
    margin: 0;
}

.footer-links li a {
    color: #003366;
    font-weight: bold;
    text-decoration: none;
    font-size: 1rem;
    transition: 0.3s ease;
}

.footer-links li a:hover {
    color: #6594B0;
}

.footer-social {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-right: 1.6rem;
}

.footer-social a img {
    width: 24px;
    height: 24px;
    transition: transform 0.3s ease;
}

.footer-social a img:hover {
    transform: scale(1.1);
}

/* scroll to top */
.scroll-up {
    position: fixed;
    right: 4%;
    bottom: 3%;
    z-index: 99;
}
.scroll-up button {
    width: 50px;
    height: 50px;
    border: none;
    background-color: var(--color3);
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.5);
    color: var(--background-color);
    font-size: 22px;
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease-in-out;
    display: none;
}
.scroll-up button:hover {
    background-color: transparent;
    color: var(--color1);
    transform: translateY(-5px);
}
.scroll-up button img {
    width: 20px;
    height: 20px;
    filter: brightness(0) invert(1);
}

/* Media Query for Mobile Devices */
@media(max-width: 600px) {
    .menu {
        flex-direction: column;
        align-items: center;
        justify-content: center;
        width: 80%;
        height: 100vh;
        position: fixed;
        top: 0;
        right: -100%;
        z-index: 100;
        background-color: var(--color4);
        transition: all 0.5s ease;
    }

    .menu li {
        margin-top: 40px;
    }

    .menu li a {
        padding: 10px;
    }

    .open-menu,
    .close-menu {
        display: block;
    }

    #check:checked~.menu {
        right: 0;
    }

    .hero-content {
        width: 100%;
        padding: 0 20px;
        height: 60%;
        display: flex;
        flex-direction: column;
        justify-content: center;
        overflow: hidden;
    }

    .hero {
        flex-direction: column;
        width: auto;
        height: 100vh;
    }

    .btn-hero {
        width: 100%;
        margin-right: 50px;
        height: 25%;
    }

    .btn-hero a {
        padding: 12px 15px;
        font-size: 14px;
    }

    .hero-content h1 {
        font-size: 2rem;
    }

    .hero-content p {
        font-size: 1rem;
    }

    .bank-accounts-container,
    .financing-options,
    .tips-container,
    .cost-container,
    .scholarships-container {
        flex-direction: column;
    }
    
    .expense-table {
        overflow-x: auto;
        max-width: 100%;
    }
    
    .cost-table {
        overflow-x: auto;
    }
    
    .cost-table table {
        min-width: 300px;
    }

    .footer-top {
        flex-direction: column;
        margin-right: 0;
        margin-left: 0;
        align-items: flex-start;
        gap: 10px;
    }

    .footer-top h1 {
        font-size: 25px;
    }

    .btn-footer {
        font-size: 20px;
        padding: 0.5rem 0.6rem;
        align-self: flex-end;
    }

    .footer-bottom {
        flex-direction: column;
        margin-left: 0;
        gap: 25px;
    }

    .footer-social {
        align-self: flex-end;
    }

    .footer-links {
        align-self: center;
    }
}

/* Media Query for Tablet Devices */
@media (min-width: 601px) and (max-width: 900px) {
    .menu {
        flex-direction: column;
        align-items: center;
        justify-content: center;
        width: 80%;
        height: 100vh;
        position: fixed;
        top: 0;
        right: -100%;
        z-index: 100;
        background-color: var(--color4);
        transition: all 0.5s ease;
    }

    .menu li {
        margin-top: 40px;
    }

    .menu li a {
        padding: 10px;
    }

    .open-menu,
    .close-menu {
        display: block;
    }

    #check:checked~.menu {
        right: 0;
    }

    .hero-content h1 {
        font-size: 2.5rem;
    }

    .footer-top h1 {
        font-size: 30px;
        width: 60%;
    }

    .btn-footer {
        font-size: 22px;
        padding: 0.5rem 1rem;
    }
}
