html,
body{
    margin:0;
    padding:0;
    width:100%;
    min-height:100%;
    overflow-x:hidden;
    font-family:Arial,sans-serif;
    color:white;
    background-color:black;
}

body{
    background:
    linear-gradient(
    rgba(0,0,0,0.5),
    rgba(0,0,0,0.7)
    ),
    url("Image/back2-1.png");

    background-size:cover;
    background-position:center;
    background-repeat:no-repeat;
    background-attachment:fixed;
}

/* LOGO */

.logo{
    position:fixed;
    top:30px;
    left:40px;
    z-index:1000;
    transition:top 0.4s ease;
}

.logo img{
    width:80px;
    height:auto;
}

/* NAVBAR */

.navbar{
    position:fixed;
    top:40px;
    right:40px;
    display:flex;
    align-items:center;
    padding:6px 10px;
    background:rgba(255,255,255,0.12);
    backdrop-filter:blur(20px);
    -webkit-backdrop-filter:blur(20px);
    border-radius:40px;
    border:1px solid rgba(255,255,255,0.2);
    box-shadow:0 8px 30px rgba(0,0,0,0.3);
    z-index:1000;
    transition:top 0.4s ease;
}

.menu{
    display:flex;
    gap:10px;
}

.menu a{
    text-decoration:none;
    color:white;
    font-size:15px;
    padding:10px 18px;
    border-radius:40px;
    position:relative;
    overflow:hidden;
    transition:all 0.3s ease;
    white-space:nowrap;
}

.menu a::before{
    content:'';
    position:absolute;
    top:0;
    left:0;
    width:100%;
    height:100%;
    background:rgba(255,255,255,0.2);
    backdrop-filter:blur(10px);
    -webkit-backdrop-filter:blur(10px);
    opacity:0;
    transition:opacity 0.3s ease;
    border-radius:40px;
}

.menu a:hover::before{
    opacity:0.7;
    background:rgba(255,255,255,0.12);
    backdrop-filter:blur(15px);
    -webkit-backdrop-filter:blur(18px);
    border-radius:40px;
    border:1px solid rgba(255,255,255,0.2);
    box-shadow:
    0 10px 40px rgba(0,0,0,0.6),
    inset 0 0 10px rgba(255,255,255,0.1);
}

.menu .active{
    background:#B0B0B0;
    color:black;
    transform:scale(1.17);
    box-shadow:inset 0 0 0 1px rgba(0,0,0,0.1);
}

/* KNOWLEDGE SECTION */

.knowledge-section{
    width:100%;
    padding:130px 20px 90px;
    box-sizing:border-box;
}

.knowledge-box{
    width:760px;
    margin:60px auto 120px auto;
    padding:30px;
    border-radius:32px;

    background:rgba(255,255,255,0.12);

    backdrop-filter:blur(18px);
    -webkit-backdrop-filter:blur(18px);

    border:1px solid rgba(255,255,255,0.14);

    box-shadow:
    0 16px 40px rgba(0,0,0,0.35);
}

.knowledge-title{
    font-size:26px;
    font-weight:550;
    margin-top:-4px;
    margin-bottom:20px;
    line-height:1.1;
}

.line{
    width:100%;
    height:1px;
    background:rgba(255,255,255,0.45);
    margin-bottom:28px;
}

.link-box{
    display:flex;
    gap:25px;
    align-items:flex-start;

    background:#f2f2f2;

    padding:8px;
    border-radius:14px;
    text-decoration:none;

    margin-bottom:25px;

    transition:0.35s ease;
}

.link-box:hover{
    transform:translateY(-3px);
}

.link-icon{
    font-size:24px;
    color:#555;
    margin-top:15px;
    margin-left:12px;
}

.link-content{
    flex:1;
}

.link-content h3{
    font-size:19px;
    font-weight:600;
    color:black;
    margin-bottom:8px;
    transition:0.3s ease;
}

.link-box:hover .link-content h3{
    color:#2d7dff;
}

.link-content p{
    font-size:14px;
    line-height:1.6;
    color:#777;
}

.video-grid{
    display:grid;
    grid-template-columns:1fr 1fr;
    gap:22px;
    margin-top:10px;
}

.video-card iframe{
    width:100%;
    height:180px;
    border:none;
    border-radius:10px;
}

.video-card p{
    margin-top:12px;
    font-size:15px;
    color:white;
    line-height:1.5;
}

/* BACK TO TOP */

#backToTop{
    position:fixed;
    bottom:40px;
    right:40px;

    width:50px;
    height:50px;

    border:none;
    border-radius:50%;

    font-size:20px;
    color:white;

    background:rgba(255,255,255,0.15);

    backdrop-filter:blur(15px);
    -webkit-backdrop-filter:blur(15px);

    border:1px solid rgba(255,255,255,0.2);

    cursor:pointer;

    opacity:0;
    visibility:hidden;

    transition:0.3s;
    z-index:999;
}

#backToTop.show{
    opacity:1;
    visibility:visible;
}

#backToTop:hover{
    transform:scale(1.1);
    background:rgba(255,255,255,0.25);
}

/* FOOTER */

.footer{
    padding:60px 40px 20px;
    background:black;
    z-index:5;
}

.footer-container{
    display:flex;
    justify-content:space-between;
    align-items:flex-start;
}

.footer-section{
    padding:0 30px;
    display:flex;
    flex-direction:column;
    align-items:center;
    text-align:center;
}

.footer-logo{ width:19%; }
.footer-location{ width:30%; }
.footer-contact{ width:20%; }
.footer-social{ width:17%; }

.footer-logo img{
    width:200px;
    cursor:pointer;
}

.footer-location h3,
.footer-contact h3,
.footer-social h3{
    margin-bottom:8px;
    font-size:15px;
}

.footer-location p{
    line-height:1.3;
    font-size:13px;
}

.map-links a{
    color:#ccc;
    text-decoration:none;
}

.map-links a:hover{
    color:red;
}

.footer-contact p{
    margin:5px 0;
    font-size:13px;
}

.social-icons{
    display:flex;
    flex-direction:column;
    gap:15px;
    align-items:flex-start;
}

.social-icons a{
    display:flex;
    align-items:center;
    gap:12px;
    text-decoration:none;
    color:white;
    font-size:14px;
    cursor:pointer;
    transition:0.3s;
}

.social-icons img{
    width:28px;
    filter:grayscale(100%);
    transition:0.3s;
}

.social-icons a:hover img{
    filter:grayscale(0%);
}

.social-icons a:hover{
    color:#00ffcc;
}

.social-icons a{
    position:relative;
    z-index:10;
}

.footer-location,
.footer-contact{
    position:relative;
}

.footer-location::after,
.footer-contact::after{
    content:"";
    position:absolute;
    top:15%;
    right:0;
    width:1px;
    height:70%;

    background:
    linear-gradient(
    to bottom,
    transparent,
    rgba(255,255,255,0.5),
    transparent
    );
}

.footer-bottom{
    text-align:center;
    margin-top:40px;
}

.footer-bottom hr{
    border:0;
    border-top:1px solid #444;
    margin-bottom:20px;
}

.footer-bottom p{
    font-size:13px;
    color:#aaa;
}

/* =========================
TABLET VERSION
========================= */

@media (max-width:1024px){

    body{
        background-attachment:scroll;
    }

    .logo{
        top:22px;
        left:24px;
    }

    .logo img{
        width:68px;
    }

    .navbar{
        top:22px;
        left:110px;
        right:24px;

        overflow-x:auto;
        overflow-y:hidden;

        padding:8px 10px;

        scrollbar-width:none;
    }

    .navbar::-webkit-scrollbar{
        display:none;
    }

    .menu{
        flex-wrap:nowrap;
        white-space:nowrap;
    }

    .menu a{
        flex-shrink:0;
        font-size:13px;
        padding:9px 14px;
    }

    .menu .active{
        transform:scale(1.06);
    }

    .knowledge-section{
        padding:120px 20px 70px;
    }

    .knowledge-box{
        width:100%;
        max-width:760px;
        margin:40px auto 90px;
    }

    .video-grid{
        gap:18px;
    }

    .video-card iframe{
        height:210px;
    }

    .footer{
        padding:60px 30px 20px;
    }

    .footer-container{
        flex-wrap:wrap;
        justify-content:center;
        gap:40px;
    }

    .footer-section{
        width:40% !important;
        padding:0;
    }

    .footer-location::after,
    .footer-contact::after{
        display:none;
    }

    .social-icons{
        align-items:center;
    }
}

/* =========================
MOBILE VERSION
========================= */

@media (max-width:768px){

    body{
        background-attachment:scroll;
        background-position:center top;
        background-size:cover;
    }

    .logo{
        top:16px;
        left:16px;
    }

    .logo img{
        width:54px;
    }

    .navbar{
        top:14px;
        left:82px;
        right:12px;

        overflow-x:auto;
        overflow-y:hidden;

        padding:7px 9px;

        scrollbar-width:none;
    }

    .navbar::-webkit-scrollbar{
        display:none;
    }

    .menu{
        flex-wrap:nowrap;
        white-space:nowrap;
        gap:7px;
    }

    .menu a{
        flex-shrink:0;
        font-size:11px;
        padding:8px 12px;
    }

    .menu .active{
        transform:scale(1.03);
    }

    .knowledge-section{
        padding:105px 14px 60px;
    }

    .knowledge-box{
        width:100%;
        margin:30px auto 70px;
        padding:20px;
        border-radius:24px;
        box-sizing:border-box;
    }

    .knowledge-title{
        font-size:22px;
        line-height:1.3;
    }

    .line{
        margin-bottom:20px;
    }

    .link-box{
        gap:16px;
        padding:12px;
        border-radius:14px;
        margin-bottom:18px;
    }

    .link-icon{
        margin:0;
        font-size:20px;
        margin-top:10px;
    }

    .link-content h3{
        font-size:16px;
        line-height:1.4;
    }

    .link-content p{
        font-size:13px;
        line-height:1.6;
    }

    .video-grid{
        grid-template-columns:1fr;
        gap:20px;
    }

    .video-card iframe{
        height:200px;
        border-radius:14px;
    }

    .video-card p{
        font-size:13px;
        line-height:1.6;
    }

    #backToTop{
        width:44px;
        height:44px;
        right:18px;
        bottom:20px;
        font-size:18px;
    }

    .footer{
        padding:50px 22px 20px;
    }

    .footer-container{
        flex-direction:column;
        align-items:center;
        gap:35px;
    }

    .footer-section{
        width:100% !important;
        padding:0;
    }

    .footer-logo img{
        width:140px;
    }

    .footer-location::after,
    .footer-contact::after{
        display:none;
    }

    .footer-location h3,
    .footer-contact h3,
    .footer-social h3{
        font-size:14px;
    }

    .footer-location p,
    .footer-contact p{
        font-size:12px;
        line-height:1.6;
    }

    .social-icons{
        align-items:center;
    }

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

    .social-icons img{
        width:24px;
    }

    .footer-bottom{
        margin-top:30px;
    }

    .footer-bottom p{
        font-size:12px;
    }
}