@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+TC:wght@100..900&family=Ubuntu:ital,wght@0,300;0,400;0,500;0,700;1,300;1,400;1,500;1,700&display=swap');

*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Ubuntu', sans-serif;
}

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

img{
    object-fit: cover;
}

body{
    background-color: #f1f1f1;
}

nav{
    padding: 0 80px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 80px;
}

nav a.logo{
    font-size: 33px;
    color: #0f2182;
    font-weight: 600;
}

nav .links a:not(:last-child){
    margin-right: 20px;
}

nav .social a{
    padding: 8px 14px;
    border: none;
    cursor: pointer;
    background-color: transparent;
    font-size: 30px;
}

header{
    padding: 0 80px;
    height: calc(100vh - 80px);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

header .left{
    width: 700px;
}

header .left h1{
    font-size: 80px;
}

header .left h1 span{
    color: #0f2182;
}

header .left p{
    font-size: 40px 0;
    color: #777;
    padding: 20px;
}

header .left a{
    display: flex;
    align-items: center;
    background: #000;
    width: 180px;
    padding: 8px;
    border-radius: 60px;
}

header .left a i{
    background-color: #fff;
    font-size: 24px;
    border-radius: 50%;
    padding: 8px;
    margin-left: 17px;
}

header .left a span{
    color: #fff;
    margin-left: 10px;
    font-size: 20px;
}

header img{
    width: 600px;
}

h2.separator{
    padding: 0 80px;
    font-size: 40px;
    margin-top: 40px;
}

.learn-chosen{
    padding: 0 80px;
    margin: 50px 0 80px;
    display: flex;
    justify-content: space-between;
    gap: 30px;
    flex-wrap: wrap;
}

.learn-chosen .item{
    padding: 20px;
    background-color: #fff;
    border-radius: 18px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 220px;
}

.learn-chosen .item:hover{
    box-shadow: none;
}

.learn-chosen .item .header{
    display: flex;
    align-items: center;
    gap: 10px;
}

.learn-chosen .item .header i{
    font-size: 40px;
}

.learn-chosen .item .header h5{
    font-size: 17px;
    font-family: 'Noto Sans TC', sans-serif;
}

.learn-chosen .item p{
    margin-top: 10px;
    padding: 0 4px;
    flex-grow: 1;
}

footer{
    background-color: #000;
    color: #fff;
    padding: 100px 80px;
    
    display: flex;
    align-items: center;
    justify-content: space-between;
}

footer h3{
    font-size: 48px;
}

footer .right{
    width: 80%;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 26px;   
}

footer .right links{
    display: flex;
    gap: 40px;
}

footer .right .links a{
    color: #989898;
    transition: color 0.3 ease;
    margin-right: 5px;
}

footer .right .links a:hover{
    color: #fff;
}

footer .right p{
    font-size: 15px;
    color: #777;
}

@media (min-width: 765px) and (max-width: 1200px) {
    header .left h1 {
        font-size: 40px;
    }
    
    header .left p {
        position: relative;
        font-size: 30px;
        right: 19px;
 
    }
    header .left span{
        display: block;
        font-size:40px;
    }

    header .left a{
        display: flex;
        align-items: center;
        background: #000;
        width: 180px;
        padding: 8px;
        border-radius: 60px;
    }
    
    header img {
        width: 500px;
    }
    
    nav {
        position: relative;
        padding: 0 20px;
        flex-direction: column;
        align-items: flex-start;
        height: auto;
    }

    nav .logo{
        position: relative;
        top: 5px;
    }

    nav .social{
        position: relative;
        left: 800px;
        bottom: 45px;
    }

    nav .social .bx-list-ul{
        display: none;
    }

    nav .links{
        position: relative;
        left: 260px;
        bottom: 20px;
    }
    
    h2.separator {
        padding: 0 40px;
    }
    
    .learn-chosen {
        padding: 0 40px;
        flex-direction: column;
    }
    
    .learn-chosen .item {
        margin-bottom: 20px;
    }
}

@media (max-width: 768px) {
    header {
        flex-direction: column;
        padding: 0 20px;
        text-align: center;
    }
    
    header .left {
        width: 100%;
        order: 2;
    }

    header .left h1 {
        font-size: 40px;
        position: relative;
        top: 250px;
    }
    
    header .left p {
        font-size: 30px;
        position: relative;
        top: 250px;
    }
    header .left span{
        display: block;
        font-size:40px;
    }

    header .left a{
        position: relative;
        display: flex;
        align-items: center;
        background: #000;
        width: 180px;
        padding: 8px;
        border-radius: 60px;
        top: 250px;
    }
    
    
    header img {
        width: 80%;
        margin: 20px 0;
    }
    
    nav {
        padding: 0 20px;
    }

    nav .links {
        display: none; /* Hide navigation links on mobile */
    }

    
    h2.separator {
        padding: 0 20px;
    }
    
    .learn-chosen {
        padding: 0 20px;
        flex-direction: column;
    }
    
    .learn-chosen .item {
        margin-bottom: 20px;
    }
    
    footer {
        padding: 50px 20px;
        flex-direction: column;
        align-items: center;
    }
    
    footer .right {
        width: 100%;
        align-items: center;
    }
}

@media (max-width: 480px) {
    header .left h1 {
        font-size: 40px;
    }
    
    header .left p {
        font-size: 18px;
    }
    
    header .left a {
        width: 150px;
        padding: 6px;
    }
    
    header img {
        width: 100%;
    }
    
    footer h3 {
        font-size: 32px;
    }
}