body {
    margin: 0;
    font-family: 'Noto Sans Lao', 'Phetsarth OT', sans-serif;
    font-weight: normal;
}

/* Header styles */
header {
    
    width: 100%;
    height: 130px;
    color: #008000;
   
    text-align: left;
    position: relative;
}

header img {
    float: left;
    margin-left: 60px;
    height: 100px;
}

header-h1 {
    margin-left: 110px;
    font-size: 18px;
    
}

/* Topnav styles */
.topnav {
    overflow: hidden;
    background-color: #008000;
}

.topnav a {
    float: left;
    display: block;
    color: #f2f2f2;
    text-align: center;
    padding: 8px 16px;
    text-decoration: none;
    font-size: 13px;
}

.topnav a:hover, .dropdown:hover .dropbtn {
    background-color: #555;
    color: white;
}

.topnav a.active {
    background-color: #04AA6D;
    color: white;
}

.topnav .icon {
    display: none;
}

.dropdown {
    float: left;
    overflow: hidden;
}

.dropdown .dropbtn {
    font-size: 13px;
    border: none;
    outline: none;
    color: white;
    padding: 8px 16px;
    background-color: inherit;
    font-family: inherit;
    margin: 0;
}

.dropdown-content {
    display: none;
    position: absolute;
    background-color: #f9f9f9;
    min-width: 160px;
    box-shadow: none;
    z-index: 1;
}

.dropdown-content a {
    float: none;
    color: black;
    padding: 5px 16px;
    text-decoration: none;
    display: block;
    text-align: left;
}

.dropdown-content a:hover {
    background-color: #ddd;
    color: black;
}

.dropdown:hover .dropdown-content {
    display: block;
}

a {
    text-decoration: none;
}


/* Media Queries for Responsiveness */
@media screen and (max-width: 600px) {
    .topnav a:not(:first-child), .dropdown .dropbtn {
        display: none;
    }
    .topnav a.icon {
        float: right;
        display: block;
    }
    .topnav.responsive {
        position: relative;
    }
    .topnav.responsive .icon {
        position: absolute;
        right: 0;
        top: 0;
    }
    .topnav.responsive a {
        float: none;
        display: block;
        text-align: left;
    }
    .topnav.responsive .dropdown {
        float: none;
    }
    .topnav.responsive .dropdown-content {
        position: relative;
    }
    .topnav.responsive .dropdown .dropbtn {
        display: block;
        width: 100%;
        text-align: left;
    }
}

/* Container styles */
.container {
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
}

.left-section {
    flex: 1;
    background-color: #f2f2f2;
    padding: 16px;
    margin-right: 16px;
    max-height: calc(100vh - 60px);
    overflow-y: auto;
}

.right-section {
    flex: 3;
    background-color: #ffffff;
    padding: 16px;
    max-height: calc(100vh - 60px);
    overflow-y: auto;
}

/* iFrame styles */
iframe {
    width: 100%;
    height: 500px;
    border: none;
}

/* File list styles */
table {
    width: 100%;
    margin: 5px 0;
    border-collapse: collapse; /* Ensures no gaps between table cells */
}

table, th, td {
    border: 1px solid #ddd;
}

th, td {
    padding: 3px;
    text-align: left;
}

th {
    background-color: white;
}

tr:nth-child(even) {
    background-color: white;
}

tr:hover {
    background-color: none;
}

ul {
    list-style-type: none;
    padding: 0;
}

ul li {
    margin: 8px 0;
}

ul li a {
    color: #04AA6D;
    text-decoration: none;
}

ul li a:hover {
    text-decoration: underline;
}

/* Form styles */
form {
    margin-bottom: 16px;
}

form label {
    display: block;
    margin-top: 8px;
}

form input[type="text"], form input[type="submit"] {
    width: 100%;
    padding: 8px;
    margin-top: 4px;
    box-sizing: border-box;
}

form input[type="submit"] {
    background-color: #4CAF50;
    color: white;
    border: none;
    cursor: pointer;
}

form input[type="submit"]:hover {
    background-color: #45a049;
}

/* Footer styles */
footer {
    background-color: #333;
    color: white;
    text-align: center;
    padding: 10px 0;
    position: relative;
    width: 100%;
    bottom: 0;
    left: 0;
}

footer p {
    margin: 0;
}

/* News Section Container */
.news-section {
    width: 100%;
    margin: 20px 0;
}

.news-table {
    width: 100%;
    border-collapse: collapse;
}

.news-article {
    border-bottom: 1px solid #ddd;
    padding: 10px 0;
}

.news-picture img {
    width: 150px;
    height: auto;
    margin-right: 20px;
}

.news-content {
    vertical-align: top;
}

.news-content h4 {
    margin: 0;
    font-size: 18px;
}

.news-content p {
    margin: 5px 0 10px;
}

.read-more {
    color: #007BFF;
    text-decoration: none;
}

.read-more:hover {
    text-decoration: underline;
}

.pagination {
    text-align: center;
    margin: 20px 0;
}

.pagination a {
    margin: 0 5px;
    text-decoration: none;
    padding: 5px 10px;
    border: 1px solid #ddd;
}

.pagination a.active {
    background-color: #007BFF;
    color: #fff;
}


/* Article container for news detail page */
.article-container {
    display: flex;
    align-items: flex-start;
    padding: 20px; /* Adds space between the image and the content */
}

.news-image {
    width: 45%;
    height: auto;
    flex-shrink: 0;
}

.article-content {
    margin-left: 10px;
    flex: 1;
}

/* Post styles */
.post {
    border: 1px solid #ddd;
    padding: 10px;
    margin-bottom: 10px;
}

/* Back to Home styles */
.back-to-home {
    text-align: center;
    margin-top: 20px;
}

.back-to-home a {
    display: inline-block;
    padding: 10px 20px;
    background-color: #04AA6D;
    color: white;
    text-decoration: none;
    border-radius: 5px;
}

.back-to-home a:hover {
    background-color: #028a5e;
}

.youtube-video-container {
    position: relative;
    width: 70%;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
    height: 0;
    overflow: hidden;
    max-width: 40%;
}

.youtube-video iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.facebook-page {
    margin-top: 20px; /* Adds space above the Facebook plugin */
    text-align: center; /* Centers the plugin */
}

.fb-page {
    width: 100%;
    max-width: 500px; /* Set a maximum width */
    height: auto;
}

.slideshow {
    position: relative;
    width: 100%;
    max-width: 600px; /* Adjust this to fit your needs */
    margin: auto;
}

