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

/* BODY */

body{
    background:#d9d9d9;
    display:flex;
    flex-direction:column;
    min-height:100vh;
    padding-top:90px;
}

main{
    flex:1;
    padding-top:80px;
}

.container{
    max-width:1200px;
    margin:0 auto;
    padding:0 20px;
}

/* NAVBAR */

.navbar{
    display:flex;
    justify-content:space-between;
    align-items:center;
    background:#F9A848;
    padding:10px 40px;
    height:80px;
    box-shadow:0 2px 5px rgba(0,0,0,0.1);

    position:fixed;
    top:0;
    width:100%;
    z-index:1000;
}

.logo img{
    height:50px;
    object-fit:contain;
}

/* MENU */

.nav-links{
    list-style:none;
    display:flex;
    align-items:center;
    gap:5px;
}

.nav-links li a{
    text-decoration:none;
    color:#000;
    font-weight:600;
    font-size:16px;
    display:block;
    padding:20px 12px;
    border-radius:8px;
    transition:0.3s;
}

.nav-links li a:hover,
.nav-links li a.active{
    color:#fff;
    background:rgba(255,123,0,0.65);
}

.arrow{
    font-size:10px;
    margin-left:5px;
}

/* DROPDOWN */

.dropdown{
    position:relative;
}

.dropdown-menu{
    display:none;
    position:absolute;
    top:120%;
    left:0;

    background:#fff;
    box-shadow:0 8px 16px rgba(0,0,0,0.2);
    min-width:250px;

    list-style:none;
    padding:10px 0;
    border-radius:10px;
}

.dropdown:hover .dropdown-menu{
    display:block;
}

.dropdown-menu li a{
    padding:10px 20px;
    display:block;
    color:#333;
    font-size:14px;
}

.dropdown-menu li a:hover{
    background:#f1f1f1;
    color:#F9A848;
}

.dropdown-right .dropdown-menu{
    left:auto;
    right:0;
}

/* LOGIN BUTTON */

.login-box a{
    border:2px solid #1f3444;
    padding:6px 16px;
    border-radius:8px;
    display:inline-flex;
    align-items:center;
    gap:6px;
}

/* HAMBURGER */

.menu-icon{
    display:none;
    flex-direction:column;
    cursor:pointer;
    gap:5px;
}

.menu-icon span{
    width:25px;
    height:3px;
    background:#000;
}

/* TOP SECTION */

.top-section{
    width:85%;
    max-width:1100px;
    margin:0 auto 60px auto;
    display:flex;
    align-items:center;
    gap:40px;
}

.top-image{
    flex:1;
    border-radius:20px;
    overflow:hidden;
    border:3px solid #000;
    box-shadow:0 10px 25px rgba(0,0,0,0.15);
}

.top-image img{
    width:100%;
    display:block;
}

.top-text{
    flex:1;
}

.top-text h2{
    margin-bottom:15px;
    font-size:22px;
    font-weight:700;
}

.top-text p{
    line-height:1.6;
}

/* CARD */

.card-section{
    width:85%;
    max-width:1100px;
    margin:0 auto;
    display:grid;
    grid-template-columns:repeat(3,1fr);
    gap:35px;
}

.card{
    background:#fff;
    border-radius:20px;
    border:2px solid #000;
    padding:20px;
    text-align:center;
    text-decoration:none;
    color:#000;
    box-shadow:0 8px 20px rgba(0,0,0,0.1);
    transition:0.3s;
}

.card img{
    width:100%;
    border-radius:15px;
    margin-bottom:15px;
}

.card h3{
    font-size:16px;
    margin-bottom:8px;
}

.card p{
    font-size:13px;
    color:#555;
}

.card:hover{
    transform:translateY(-8px);
    box-shadow:0 15px 30px rgba(0,0,0,0.15);
}

/* DETAIL PAGE */

.page-header{
    position:relative;
    text-align:center;
    margin:40px auto;
    width:85%;
    max-width:1100px;
}

.page-header h1{
    font-size:40px;
    font-weight:700;
}

/* ปุ่มย้อนกลับ */
.fa-solid.fa-arrow-turn-up{
    position:absolute;
    left:0;
    top:50%;
    transform:translateY(-50%) rotate(-90deg);
    font-size:40px;
    color:#213443;
}

/* DETAIL CARD */

.detail-container{
    width:85%;
    max-width:1100px;
    margin:0 auto 80px auto;
}

.detail-card{
    background:#fff;
    border-radius:15px;
    box-shadow:0 10px 25px rgba(0,0,0,0.2);
    overflow:hidden;
}

.detail-title{
    background:linear-gradient(90deg,#1f3444,#0f1f2c);
    color:#fff;
    padding:18px 25px;
    font-size:18px;
    font-weight:600;
}

.detail-content{
    padding:30px;
    line-height:1.9;
    font-size:16px;
}

/* COMMENT */

.comment-section{
    width:85%;
    max-width:1100px;
    margin:60px auto 100px auto;
}

.comment-section h2{
    margin-bottom:20px;
}

.comment-list{
    background:#cfcfcf;
    padding:60px;
    border-radius:30px;
    height:420px;
    overflow-y:auto;
    box-shadow:0 15px 35px rgba(0,0,0,0.2);
}

.comment{
    display:flex;
    gap:15px;
    margin-bottom:25px;
}

.avatar{
    width:50px;
    height:50px;
    border-radius:50%;
    background:#b5b5b5;
}

.comment-content{
    flex:1;
}

.comment-header{
    font-weight:600;
    margin-bottom:5px;
}

.comment-header .time{
    font-size:12px;
    margin-left:10px;
    color:#555;
}

.comment-text{
    font-size:14px;
}

.comment-input-box{
    margin-top:20px;
    display:flex;
    gap:15px;
}

.comment-input-box input{
    flex:1;
    padding:15px;
    border-radius:30px;
    border:none;
    background:#ffffff;
}

.comment-input-box button{
    width:120px;
    border:none;
    border-radius:20px;
    background:#F9B151;
    color:#213443;
    font-size:30px;
    cursor:pointer;
}

/* FOOTER */

footer{
    background:#F9A848;
    padding:30px 0;
    color:#000;
    font-size:14px;
    margin-top:80px;
}

.footer-top{
    display:flex;
    justify-content:space-between;
    align-items:center;
    margin-bottom:15px;
}

.social-icons a{
    color:#fff;
    font-size:16px;
    margin-left:10px;
    width:35px;
    height:35px;
    display:inline-flex;
    justify-content:center;
    align-items:center;
    border-radius:50%;
}

.social-icons a:nth-child(1){background:#1877F2;}
.social-icons a:nth-child(2){background:#E4405F;}
.social-icons a:nth-child(3){background:rgb(20,217,49);}

.footer-line{
    border-top:1px solid rgba(0,0,0,0.2);
    margin-bottom:20px;
}

.footer-bottom{
    display:flex;
    justify-content:space-between;
    gap:30px;
}

/* RESPONSIVE */

@media (max-width:900px){

    .top-section{
        flex-direction:column;
        width:90%;
        text-align:center;
    }

    .fa-solid.fa-arrow-turn-up{
        position:static;
        display:inline-block;
        transform:rotate(-90deg);
        font-size:32px;
        margin-bottom:20px;
    }
}

@media (max-width:768px){

    .card-section{
        grid-template-columns:1fr;
    }

    .card{
        width:100%;
        max-width:350px;
        margin:auto;
    }

    .comment-list{
        padding:30px;
    }
}