@import url('https://fonts.googleapis.com/css2?family=Sarabun:wght@300;400;500;700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Prompt:wght@300;400;500;700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+Thai:wght@300;400;500;700&display=swap');

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

body {
    background-color: #f4f4f4;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
}

/* Header Styles */
.header {
    background-color: #004466;
    color: white;
    padding: 20px 0;
}

.header-content {
    display: flex;
    align-items: center;
    padding: 0 20px;
}

.logo {
    width: 80px;
    height: 80px;
    margin-right: 20px;
}

.site-title {
    font-size: 24px;
    font-weight: bold;
    font-family: 'Sarabun', 'Noto Sans Thai', sans-serif;
}

.site-subtitle {
    font-size: 18px;
    margin-top: 5px;
    font-family: 'Sarabun', 'Noto Sans Thai', sans-serif;
}

/* Navigation Bar Styles */
.navbar {
    background-color: #004466;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    padding: 10px 0;
}

.nav-list {
    display: flex;
    list-style: none;
    padding: 0 20px;
}

.nav-item {
    margin-right: 20px;
    position: relative;
}

.nav-link {
    color: white;
    text-decoration: none;
    font-size: 16px;
    padding: 5px 0;
    display: block;
    font-family: 'Sarabun', 'Noto Sans Thai', sans-serif;
}

.nav-link:hover {
    color: #ffcc00;
}

.dropdown-icon {
    margin-left: 5px;
}

/* Breadcrumb Styles */
.breadcrumb {
    background-color: #f8f9fa;
    padding: 10px 20px;
    border-bottom: 1px solid #e9ecef;
}

.breadcrumb a {
    color: #004466;
    text-decoration: none;
}

.breadcrumb a:hover {
    text-decoration: underline;
}

/* Main Content Styles */
.main-content {
    background-color: white;
    padding: 20px;
    margin: 20px;
    border-radius: 5px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.content-header {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
    border-bottom: 1px solid #e9ecef;
    padding-bottom: 10px;
}

.content-icon {
    margin-right: 10px;
    font-size: 24px;
}

.content-title {
    color: #17a2b8;
    font-size: 22px;
    font-weight: bold;
    font-family: 'Sarabun', 'Noto Sans Thai', sans-serif;
}

/* Section Styles */
.section {
    background-color: rgba(14, 119, 232, 0.61);
    color: white;
    padding: 10px 20px;
    margin-bottom: 20px;
    border-radius: 5px;
}

.section-title {
    font-size: 18px;
    font-weight: bold;
    font-family: 'Sarabun', 'Noto Sans Thai', sans-serif;
}

/* Year Tab Styles */
.year-tabs {
    display: flex;
    margin-bottom: 20px;
}

.year-tab {
    background-color: #17a2b8;
    color: white;
    padding: 8px 20px;
    margin-right: 10px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
}

.year-tab:hover {
    background-color: #138496;
}

/* Menu List Styles */
.menu-list {
    list-style: none;
}

.menu-item {
    margin-bottom: 15px;
    border-bottom: 1px solid #e9ecef;
    padding-bottom: 15px;
}

.menu-link {
    text-decoration: none;
    color: #333;
    font-size: 16px;
    display: block;
    padding: 5px 0;
    line-height: 1.5;
    font-family: 'Sarabun', 'Noto Sans Thai', sans-serif;
}

.menu-link:hover {
    color: #004466;
}

/* Footer Styles */
.footer {
    background-color: #003366;
    color: white;
    padding: 30px 0;
    margin-top: 20px;
}

.footer-content {
    display: flex;
    justify-content: space-between;
}

.footer-info {
    flex: 2;
    text-align: left;
}

.footer-title {
    font-size: 24px;
    margin-bottom: 10px;
    font-weight: bold;
    font-family: 'Sarabun', 'Noto Sans Thai', sans-serif;
}

.footer-divider {
    height: 1px;
    background-color: rgba(255, 255, 255, 0.2);
    margin: 15px 0;
}

.footer-links {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.footer-menu {
    list-style-type: none;
    padding-left: 20px;
}

.footer-menu li {
    margin-bottom: 10px;
    position: relative;
}

.footer-menu li:before {
    content: "•";
    position: absolute;
    left: -20px;
    color: white;
}

.footer-link {
    color: white;
    text-decoration: none;
}

.footer-link:hover {
    text-decoration: underline;
}

.yearly-data {
    margin-top: 10px;
}

.yearly-data p {
    margin-bottom: 5px;
}

.social-icons {
    display: flex;
    gap: 15px;
    margin-top: 20px;
    justify-content: flex-end;
}

.social-icon {
    background-color: transparent;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s;
}

.social-icon:hover {
    transform: scale(1.1);
}

.social-icon img {
    filter: invert(1);
}

/* Back to Top Button Styles */
.back-to-top {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
    background-color: #004466;
    color: white;
    border-radius: 50%;
    border: none;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s, visibility 0.3s;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
    z-index: 1000;
    font-size: 18px;
}

.back-to-top.show {
    opacity: 0.8;
    visibility: visible;
}

.back-to-top:hover {
    opacity: 1;
    background-color: #00324d;
}

/* ระวังอย่าให้ CSS อื่นมา override */
#back-to-top {
    width: 40px !important;
    height: 40px !important;
    max-width: 40px !important;
    max-height: 40px !important;
    margin: 0 !important;
    padding: 0 !important;
}

/* Responsive Styles */
@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
        text-align: center;
    }
    
    .logo {
        margin-right: 0;
        margin-bottom: 10px;
    }
    
    .nav-list {
        flex-direction: column;
    }
    
    .nav-item {
        margin-right: 0;
        margin-bottom: 10px;
    }
    
    .footer-content {
        flex-direction: column;
    }
    
    .footer-info, .footer-links {
        margin-bottom: 20px;
    }
    
    .social-icons {
        justify-content: flex-start;
        margin-top: 20px;
    }
    
    .back-to-top {
        bottom: 15px;
        right: 15px;
    }
    /* Banner Styles - เพิ่มในไฟล์ styles.css */
.banner-container {
    width: 100%;
    overflow: hidden;
    margin: 0;
    padding: 0;
    line-height: 0; /* ป้องกันช่องว่างด้านล่างของรูปภาพ */  
    align-items: center;
}

.full-width-banner {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover; /* ทำให้รูปภาพครอบคลุมพื้นที่โดยไม่บิดเบี้ยว */
    max-height: 300px; /* กำหนดความสูงสูงสุด - ปรับตามความเหมาะสม */
    align-items: center;
}

/* เพิ่ม CSS สำหรับเมนูย่อยในไฟล์ styles.css */

/* รูปแบบพื้นฐานสำหรับเมนูหลัก */
.menu-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.menu-item {
    border-bottom: 1px solid #e0e0e0;
    position: relative;
}

.menu-link {
    display: block;
    padding: 12px 15px;
    color: #333;
    text-decoration: none;
    transition: all 0.3s ease;
}

.menu-link:hover {
    background-color: #f5f5f5;
}

/* สไตล์สำหรับไอคอนดรอปดาวน์ */
.dropdown-icon {
    float: right;
    transition: transform 0.3s ease;
}

.has-submenu.active .dropdown-icon {
    transform: rotate(180deg);
}

/* รูปแบบสำหรับเมนูย่อย */
.submenu {
    display: none;
    list-style: none;
    padding: 0;
    margin: 0;
    background-color: #f9f9f9;
}

.has-submenu.active .submenu {
    display: block;
}

.submenu-item {
    border-top: 1px solid #e0e0e0;
}

.submenu-link {
    display: block;
    padding: 10px 15px 10px 30px;
    color: #555;
    text-decoration: none;
    transition: all 0.3s ease;
}

.submenu-link:hover {
    background-color: #eaeaea;
}

/* สำหรับการแสดงผลบนหน้าจอขนาดเล็ก */
@media (max-width: 768px) {
    .full-width-banner {
        max-height: 200px; /* ปรับความสูงลงเมื่อแสดงบนอุปกรณ์มือถือ */
        width: 100%;
    }
}
}