

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

body{
    font-family:'Noto Sans Thai',sans-serif;
    background:#f5f5f5;
    overflow-x:hidden;
}

/* =========================
TOPBAR TYPEWRITER
========================= */

.topbar{
    background:linear-gradient(90deg,#7a0000,#c40000,#7a0000);
    color:#fff;
    padding:12px 20px;
    text-align:center;
    font-size:18px;
    font-weight:500;
    letter-spacing:.5px;
    overflow:hidden;
}

.topbar-text{
    display:inline-block;
    border-right:3px solid #fff;
    white-space:nowrap;
    overflow:hidden;
    animation:blink .7s infinite;
}

@keyframes blink{
    50%{
        border-color:transparent;
    }
}

/* =========================
MENU
========================= */

nav{
    background:rgba(90,0,0,.95);
    backdrop-filter:blur(8px);
    position:sticky;
    top:0;
    z-index:999;
    box-shadow:0 5px 20px rgba(0,0,0,.2);
}

nav ul{
    list-style:none;
    display:flex;
    justify-content:center;
    align-items:center;
    flex-wrap:wrap;
}

nav ul li{
    position:relative;
}

nav ul li a{
    display:block;
    padding:18px 24px;
    color:#fff;
    text-decoration:none;
    font-size:16px;
    font-weight:600;
    transition:.3s;
}

nav ul li a:hover{
    background:#d10000;
}

/* =========================
DROPDOWN
========================= */

nav ul li ul{
    position:absolute;
    top:100%;
    left:0;
    background:#fff;
    min-width:270px;
    display:none;
    flex-direction:column;
    box-shadow:0 10px 30px rgba(0,0,0,.15);
    border-radius:0 0 12px 12px;
    overflow:hidden;
}

nav ul li:hover > ul{
    display:flex;
}

nav ul li ul li{
    width:100%;
}

nav ul li ul li a{
    color:#333;
    padding:14px 18px;
    background:#fff;
    border-bottom:1px solid #eee;
    font-size:15px;
}

nav ul li ul li a:hover{
    background:#f8f8f8;
    color:#b30000;
    padding-left:25px;
}

.banner{
    position:relative;
    width:100%;
    height:475px;
    overflow:hidden;

    background:
        radial-gradient(circle at center,
        #ff3b3b 0%,
        #b30000 45%,
        #1a0000 100%);
}

.banner-image{
    position:absolute;
    left:50%;
    bottom:0;
    transform:translateX(-50%);
    height:100%;
    width:auto;
    max-width:100%;
    object-fit:contain;
    z-index:2;
}

.glow{
    z-index:1;
}
/* =========================
GRID EFFECT
========================= */

.banner::before{
    content:'';
    position:absolute;
    width:100%;
    height:100%;

    background:
    linear-gradient(rgba(255,255,255,.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.03) 1px, transparent 1px);

    background-size:40px 40px;

    animation:moveGrid 10s linear infinite;
}

@keyframes moveGrid{
    from{
        transform:translateY(0);
    }
    to{
        transform:translateY(40px);
    }
}

/* =========================
GLOW EFFECT
========================= */

.glow{
    position:absolute;
    border-radius:50%;
    filter:blur(120px);
    opacity:.35;
}

.glow1{
    width:400px;
    height:400px;
    background:#ff0000;
    top:-100px;
    left:-100px;
}

.glow2{
    width:300px;
    height:300px;
    background:#ffcc00;
    bottom:-80px;
    right:-50px;
}

/* =========================
MAIN LAYOUT
========================= */

.main-layout{
    max-width:1400px;
    margin:auto;
    display:flex;
    gap:30px;
    padding:60px 20px;
    align-items:flex-start;
}

.content{
    flex:3;
}

.sidebar{
    flex:1;
}

/* =========================
CARD
========================= */

.card{
    background:#fff;
    border-radius:25px;
    padding:35px;
    box-shadow:0 10px 30px rgba(0,0,0,.08);
    margin-bottom:35px;
}

.card h2{
    color:#990000;
    margin-bottom:20px;
    font-size:34px;
}

/* =========================
NEWS SLIDER
========================= */

.news-slider{
    position:relative;
    width:100%;
    overflow:hidden;
    border-radius:25px;
    box-shadow:0 10px 30px rgba(0,0,0,.12);
}

.news-slides{
    display:flex;
    transition:transform .5s ease;
}

.news-slide{
    min-width:100%;
}

.news-slide img{
    width:100%;
    height:500px;
    object-fit:cover;
    display:block;
}

.news-btn{
    position:absolute;
    top:50%;
    transform:translateY(-50%);
    background:rgba(0,0,0,.55);
    color:#fff;
    border:none;
    width:55px;
    height:55px;
    border-radius:50%;
    cursor:pointer;
    font-size:26px;
    z-index:10;
    transition:.3s;
}

.news-btn:hover{
    background:#b30000;
}

.news-prev{
    left:15px;
}

.news-next{
    right:15px;
}

.news-dots{
    position:absolute;
    bottom:18px;
    width:100%;
    text-align:center;
}

.news-dots span{
    display:inline-block;
    width:14px;
    height:14px;
    margin:0 5px;
    background:rgba(255,255,255,.6);
    border-radius:50%;
    cursor:pointer;
}

.news-dots .active{
    background:#fff;
}

/* =========================
ANNOUNCEMENT
========================= */

.announcement-box{
    margin-top:20px;
}

.announcement-item{
    padding:18px 20px;
    border-bottom:1px solid #eee;
    transition:.3s;
}

.announcement-item:hover{
    background:#fafafa;
    padding-left:28px;
}

.announcement-item a{
    text-decoration:none;
    color:#333;
    font-size:18px;
    font-weight:600;
    display:block;
    margin-bottom:8px;
}

.announcement-item a:hover{
    color:#b30000;
}

.announcement-item span{
    color:#999;
    font-size:14px;
}

/* =========================
FACEBOOK
========================= */

.facebook-box{
    overflow:hidden;
    border-radius:15px;
    box-shadow:0 8px 20px rgba(0,0,0,.08);
}

.sidebar-facebook{
    padding:20px;
}

.sidebar-facebook h2{
    font-size:22px;
    text-align:center;
    margin-bottom:15px;
}

.sidebar-facebook iframe{
    width:100%;
    height:380px;
    border:none;
}
/* =========================
EXECUTIVE
========================= */

.sidebar-title{
    font-size:26px;
    color:#990000;
    margin-bottom:25px;
    text-align:center;
    font-weight:800;
}

.executive-card{
    background:#fff;
    border-radius:25px;
    padding:25px;
    text-align:center;
    margin-bottom:25px;
    box-shadow:0 10px 25px rgba(0,0,0,.08);
    transition:.3s;
}

.executive-card:hover{
    transform:translateY(-5px);
}

.executive-card img{
    width:180px;
    height:220px;
    object-fit:cover;
    border-radius:20px;
    border:5px solid #b30000;
    margin-bottom:18px;
}

.executive-card h3{
    font-size:22px;
    color:#990000;
    margin-bottom:10px;
}

.executive-card p{
    font-size:16px;
    color:#555;
    line-height:1.8;
    font-weight:500;
}

/* =========================
FOOTER
========================= */

footer{
    background:#410000;
    color:#fff;
    padding:50px 20px;
}

.footer-container{
    max-width:100%;
    margin:auto;
    text-align:center;
}

.footer-container h3{
    font-size:30px;
    margin-bottom:15px;
}

.footer-container p{
    color:#ddd;
    line-height:2;
}

.copy{
    margin-top:25px;
    padding-top:20px;
    border-top:1px solid rgba(255,255,255,.1);
    color:#aaa;
}

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

.menu-toggle{
    display:none;
    background:#7a0000;
    color:#fff;
    padding:15px;
    cursor:pointer;
    text-align:center;
    font-size:18px;
    font-weight:700;
}

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

@media(max-width:1200px){

.main-layout{
    flex-direction:column;
}


.banner{
    height:600px;
    background-size:contain;
}

.mega-menu{
    width:100%;
    left:0;
    flex-wrap:wrap;
}

}

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

@media(max-width:991px){

/* MENU */

.menu-toggle{
    display:block;
}

nav{
    display:none;
    width:100%;
}

nav.active{
    display:block;
}

nav ul{
    flex-direction:column;
    align-items:stretch;
}

nav ul li{
    width:100%;
}

nav ul li a{
    border-bottom:1px solid rgba(255,255,255,.08);
    font-size:15px;
    padding:15px 18px;
}

/* DROPDOWN */

nav ul li ul,
.mega-menu{

    position:static;

    width:100%;

    display:none;

    box-shadow:none;

    border-radius:0;

    padding:0;

    background:#fff;

}

nav ul li:hover > ul,
nav ul li:hover .mega-menu{
    display:block;
}

.mega-column{
    width:100%;
    padding:10px 18px;
}

.mega-column h3{
    font-size:16px;
}

/* TOPBAR */

.topbar{
    font-size:13px;
    line-height:1.6;
    padding:12px 15px;
}

/* BANNER */

.banner{

    height:340px;

    background:
    linear-gradient(rgba(0,0,0,.55),rgba(0,0,0,.70)),
    <img src="index/boss.jpg"> center bottom/contain no-repeat,
    radial-gradient(circle at center,#8a0000 0%,#3b0000 45%,#000 100%);

}

/* MAIN LAYOUT */

.main-layout{
    max-width:1400px;
    margin:auto;
    display:flex;
    flex-direction:row;
    gap:30px;
    padding:60px 20px;
    align-items:flex-start;
}

.content{
    width:75%;
}

.sidebar{
    width:25%;
}
/* CARD */

.card{
    padding:20px;
    border-radius:20px;
}

.card h2{
    font-size:24px;
    line-height:1.4;
}

/* NEWS */

.news-slide img{
    height:auto;
    max-height:220px;
    object-fit:cover;
}

.news-btn{
    width:42px;
    height:42px;
    font-size:20px;
}

.news-prev{
    left:8px;
}

.news-next{
    right:8px;
}

/* ANNOUNCEMENT */

.announcement-item{
    padding:14px 10px;
}

.announcement-item a{
    font-size:15px;
    line-height:1.7;
}

.announcement-item span{
    font-size:12px;
}

/* FACEBOOK */

.facebook-box iframe{
    height:350px;
}

/* EXECUTIVE */

.sidebar-title{
    font-size:24px;
    margin-bottom:18px;
}

.executive-card{
    padding:20px 15px;
    border-radius:20px;
}

.executive-card img{
    width:140px;
    height:180px;
    border-radius:18px;
}

.executive-card h3{
    font-size:20px;
}

.executive-card p{
    font-size:14px;
    line-height:1.7;
}

/* FOOTER */

footer{
    padding:35px 15px;
}

.footer-container h3{
    font-size:24px;
}

.footer-container p{
    font-size:14px;
    line-height:1.8;
}

.copy{
    font-size:12px;
}

/* POPUP */

.popup-box{
    max-width:95%;
}

.popup-close{

    width:42px;
    height:42px;

    font-size:18px;

    top:-10px;
    right:-10px;

}

/* MESSENGER */

.messenger-popup{
    left:12px;
    bottom:12px;
}

.messenger-popup a{
    padding:10px 14px;
    border-radius:50px;
}

.messenger-popup img{
    width:30px;
    height:30px;
}

}

/* =========================
SMALL MOBILE
========================= */

@media(max-width:480px){

.topbar{
    font-size:12px;
}

.banner{
    height:260px;
}

.card{
    padding:16px;
}

.card h2{
    font-size:21px;
}

.news-slide img{
    max-height:180px;
}

.executive-card img{
    width:120px;
    height:155px;
}

.executive-card h3{
    font-size:18px;
}

.executive-card p{
    font-size:13px;
}

.footer-container h3{
    font-size:20px;
}

.footer-container p{
    font-size:13px;
}

.facebook-box iframe{
    height:300px;
}

}

/* =========================
ปุ่มร้องเรียนการทุจริต
========================= */

.corruption-btn{
    margin-top:25px;
}

.corruption-btn a{
    display:block;
    text-align:center;
    background:linear-gradient(135deg,#d10000,#7a0000);
    color:#fff;
    text-decoration:none;
    padding:18px;
    border-radius:18px;
    font-size:20px;
    font-weight:700;
    box-shadow:0 10px 25px rgba(209,0,0,.30);
    transition:.3s;
}

.corruption-btn a:hover{
    transform:translateY(-5px);
    background:linear-gradient(135deg,#ff0000,#990000);
    box-shadow:0 15px 30px rgba(209,0,0,.40);
}


/* =========================
MESSENGER POPUP
========================= */

.messenger-popup{
    position:fixed;
    left:25px;
    bottom:25px;
    z-index:99999;
    animation:floatMessenger 2.5s ease-in-out infinite;
}

.messenger-popup a{
    display:flex;
    align-items:center;
    gap:12px;
    background:linear-gradient(135deg,#ffffff,#006eff);
    color:#fff;
    text-decoration:none;
    padding:14px 22px;
    border-radius:60px;
    box-shadow:0 10px 30px rgba(0,132,255,.35);
    transition:.3s;
    font-size:17px;
    font-weight:700;
}

.messenger-popup a:hover{
    transform:scale(1.05);
    box-shadow:0 15px 35px rgba(0,132,255,.45);
}

.messenger-popup img{
    width:38px;
    height:38px;
}

@keyframes floatMessenger{

    0%{
        transform:translateY(0);
    }

    50%{
        transform:translateY(-8px);
    }

    100%{
        transform:translateY(0);
    }

}

/* MOBILE */

@media(max-width:768px){

.messenger-popup{
    left:15px;
    bottom:15px;
}

.messenger-popup a{
    padding:12px 18px;
    font-size:15px;
}

.messenger-popup img{
    width:32px;
    height:32px;
}

}





/* =========================
POPUP OVERLAY
========================= */

#popup-overlay{

    position:fixed;
    top:0;
    left:0;

    width:100%;
    height:100%;

    background:rgba(0,0,0,.78);

    display:none;

    justify-content:center;
    align-items:center;

    z-index:999999;

    padding:20px;

    animation:fadeIn .4s ease;

}

/* =========================
POPUP BOX
========================= */

.popup-box{

    position:relative;

    width:100%;
    max-width:900px;

    animation:popupZoom .35s ease;

}

/* =========================
IMAGE
========================= */

.popup-box img{

    width:100%;
    display:block;

    border-radius:25px;

    box-shadow:
    0 10px 40px rgba(0,0,0,.5),
    0 0 30px rgba(255,0,0,.35);

}

/* =========================
CLOSE BUTTON
========================= */

.popup-close{

    position:absolute;

    top:-18px;
    right:-18px;

    width:52px;
    height:52px;

    border:none;
    border-radius:50%;

    background:linear-gradient(135deg,#ff0000,#8a0000);

    color:#fff;

    font-size:24px;
    font-weight:bold;

    cursor:pointer;

    transition:.3s;

    z-index:10;

    box-shadow:0 8px 25px rgba(0,0,0,.35);

}

.popup-close:hover{

    transform:scale(1.1) rotate(90deg);

    background:linear-gradient(135deg,#ff2b2b,#c40000);

}

/* =========================
ANIMATION
========================= */

@keyframes popupZoom{

    from{
        transform:scale(.7);
        opacity:0;
    }

    to{
        transform:scale(1);
        opacity:1;
    }

}

@keyframes fadeIn{

    from{
        opacity:0;
    }

    to{
        opacity:1;
    }

}

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

@media(max-width:768px){

    .popup-box{
        max-width:95%;
    }

    .popup-close{

        width:45px;
        height:45px;

        font-size:20px;

        top:-12px;
        right:-12px;

    }

}


#scrollTopBtn{position:fixed;right:20px;bottom:20px;display:none;padding:12px 16px;border:none;border-radius:50%;background:#990000;color:#fff;cursor:pointer;z-index:9999}
#scrollTopBtn:hover{transform:scale(1.08)}
img{max-width:100%}
