body {
    font-family: "Libre Baskerville", serif;
    margin: 0;
    padding: 0;
    background-color: #f4f4f4;
    color: #333;
    line-height: 1.6;
}

header {
    background-color: #002147;
    color: white;
    padding: 30px 20px;
    text-align: center;
}

header h1 {
    margin-bottom: 10px;
    font-size: 2.5em;
}

nav {
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #004080;
    padding: 12px 20px;
    gap: 15px;
}

.logo {
    width: 40px;
    height: auto;
    margin-right: 15px;
}

nav a {
    color: white;
    text-decoration: none;
    padding: 10px 15px;
    border-radius: 5px;
    transition: background-color 0.3s;
}

nav a:hover {
    background-color: #0056b3;
}

.video-banner {
    position: relative;
    width: 100%;
    padding-top: 56.25%;
    overflow: hidden;
    background-color: black;
}

.video-banner video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.main-wrapper {
    max-width: 1200px;
    margin: auto;
    background-color: white;
    box-shadow: 0 0 10px rgba(0,0,0,0.1);
}

.container {
    width: 90%;
    margin: 0 auto;
    padding: 40px 0;
}

#overview {
    text-align: center;
    margin-bottom: 40px;
}

.read-more-btn,
.discover-more-btn {
    display: inline-block;
    margin-top: 10px;
    padding: 10px 15px;
    background-color: #007bff;
    color: white;
    text-decoration: none;
    border-radius: 5px;
    font-size: 1em;
    transition: background-color 0.3s;
}

.read-more-btn:hover,
.discover-more-btn:hover {
    background-color: #0056b3;
}

.info-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 20px;
}

.info-box {
    background: #f8f8f8;
    padding: 20px;
    border-radius: 10px;
    text-align: center;
    flex: 1;
    min-width: 280px;
    box-shadow: 2px 2px 10px rgba(0, 0, 0, 0.05);
}

.dropdown {
    position: relative;
    display: inline-block;
}

.dropdown-content {
    display: none;
    position: absolute;
    background-color: #ffffff;
    min-width: 200px;
    box-shadow: 0px 8px 16px rgba(0,0,0,0.15);
    z-index: 1;
    border-radius: 4px;
    overflow: hidden;
    top: 100%;
    left: 0;
}

.dropdown-content a {
    color: #333;
    padding: 10px 16px;
    text-decoration: none;
    display: block;
    transition: background-color 0.2s;
}

.dropdown-content a:hover {
    background-color: #f0f0f0;
}

.dropdown:hover .dropdown-content {
    display: block;
}

#articles {
    padding: 60px 20px;
    text-align: center;
    background-color: #f9f9f9;
}

.articles-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    margin-top: 20px;
}

article {
    background: #ffffff;
    padding: 20px;
    border-radius: 10px;
    width: 30%;
    min-width: 280px;
    text-align: center;
    box-shadow: 2px 2px 10px rgba(0, 0, 0, 0.1);
}

article img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-radius: 10px;
    margin-bottom: 10px;
}

.contact-icon {
    width: 40px;        /* ปรับให้เล็กกว่าหลักนิดหน่อย */
    height: auto;
    margin-left: 8px;   /* เว้นช่องว่างจากคำว่า Contact */
    vertical-align: middle;
}


.info-img {
    width: 100%;
    height: 160px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 15px;
}

#overview img {
    width: 100%;             /* ให้ภาพเต็มความกว้างของ container */
    max-width: 600px;        /* จำกัดความกว้างสูงสุดที่ 600px */
    height: auto;            /* ปรับความสูงอัตโนมัติตามอัตราส่วน */
    object-fit: cover;       /* ปรับให้ภาพคงอัตราส่วนและครอบคลุมพื้นที่ */
    border-radius: 8px;      /* ขอบมน */
    margin-top: 20px;        /* ระยะห่างจากข้อความด้านบน */
}

.quote {
    font-style: italic;
    font-size: 1.5em;
    color: #333;
    text-align: center;
    margin-bottom: 40px;
    padding: 20px;
    background-color: #f9f9f9;
    border-left: 5px solid #007bff;
    border-radius: 8px;
    box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1);
    position: relative;
}

.quote::before {
    content: "“";
    font-size: 3em;
    color: #007bff;
    position: absolute;
    top: -10px;
    left: -10px;
}

.quote::after {
    content: "”";
    font-size: 3em;
    color: #007bff;
    position: absolute;
    bottom: -10px;
    right: -10px;
}

.quote-author {
    font-size: 16px;
    color: #666;
    text-align: right;
    margin-top: 10px;
    font-style: italic;
}


/* เปลี่ยนสีของปุ่ม "About Us" */
.nav-links .dropdown .dropdown-btn {
    background-color: #333;  /* เปลี่ยนสีพื้นหลังของปุ่ม */
    color: white;            /* เปลี่ยนสีตัวอักษร */
    border-radius: 5px;
}

/* เพิ่มการเปลี่ยนสีเมื่อ hover */
.nav-links .dropdown .dropdown-btn:hover {
    background-color: #555; /* สีเมื่อ hover */
}

/* สไตล์ของ dropdown เมนู */
.dropdown-content {
    display: none;
    position: absolute;
    background-color: #ffffff;
    min-width: 200px;
    box-shadow: 0px 8px 16px rgba(0, 0, 0, 0.15);
    z-index: 1;
    border-radius: 5px;
    overflow: hidden;
}

/* เปลี่ยนสีของลิงก์ใน dropdown */
.dropdown-content a {
    color: #333;
    padding: 10px 16px;
    text-decoration: none;
    display: block;
    transition: background-color 0.2s ease;
}

/* เพิ่มการเปลี่ยนสีเมื่อ hover ใน dropdown */
.dropdown-content a:hover {
    background-color: #f0f0f0;
}

/* ให้แสดง dropdown เมนูเมื่อ hover */
.dropdown:hover .dropdown-content {
    display: block;
}


.logo-description {
    font-size: 0.9rem;
    color: #444;
    text-align: center;
    margin: 10px auto 20px;
    max-width: 700px;
    line-height: 1.6;
}

.navbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    padding: 10px 20px;
    background-color: #f5f5f5;
}

.logo {
    height: 50px;
}

.menu-toggle {
    display: none;
    font-size: 28px;
    background: none;
    border: none;
    cursor: pointer;
}

.nav-links {
    display: flex;
    gap: 20px;
    align-items: center;
}

.nav-links a {
    text-decoration: none;
    color: #333;
    font-weight: 600;
}

.search-box {
    display: flex;
    align-items: center;
    gap: 5px;
}

.search-box input {
    padding: 5px 10px;
    border-radius: 5px;
    border: 1px solid #ccc;
}

.search-box button {
    padding: 5px 10px;
    background-color: #004080;
    color: white;
    border: none;
    border-radius: 5px;
}

/* Responsive */
@media (max-width: 768px) {
    .navbar {
        flex-direction: column;
        align-items: flex-start;
    }

    .menu-toggle {
        display: block;
    }

    .nav-links {
        display: none;
        flex-direction: column;
        width: 100%;
        background-color: #004080;
        margin-top: 10px;
        border-radius: 5px;
    }

    .nav-links.active {
        display: flex;
    }

    .nav-links a,
    .nav-links .dropdown-btn {
        color: white;
        padding: 10px 15px;
        width: 100%;
        text-align: left;
    }

    .dropdown-content {
        position: static; /* Important for stacking vertically on mobile */
        box-shadow: none;
        width: 100%;
    }

    .dropdown:hover .dropdown-content {
        display: none; /* Disable hover dropdown on mobile */
    }

    .dropdown-btn:after {
        content: "▼";
        float: right;
        margin-left: 5px;
    }

    .dropdown.open .dropdown-content {
        display: block;
    }
}


.read-more-btn:hover,
.discover-more-btn:hover {
    background-color: #0056b3;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
    transform: scale(1.02);
}

.nav-logo {
    height: 36px;
    width: auto;
    margin-right: 10px;
    vertical-align: middle;
}


footer {
    background-color: #002147;
    color: white;
    text-align: center;
    padding: 15px;
    font-size: 0.9em;
    margin-top: 40px;
}
