:root {
    --main-color: #2A734D;
    --text-color: #333;
  }

* {
    box-sizing: border-box;
    font-family: "Noto Sans Lao", sans-serif;
}

html, body {
    margin: 0;
    padding: 0;
    height: 100%;
}

.header {
    background-color: var(--main-color);
    padding: 10px;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 20000;
}

.logo {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    overflow: hidden;
}

.logo a {
    cursor: pointer;
}

.logo img {
    width: 100%;
}

.container {
    width: 95%;
    margin: 0 auto;
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.menu a, .dropdown-parent {
    color: #fff;
    text-decoration: none;
    text-transform: capitalize;
    cursor: pointer;
    display: inline-block;
    padding: 8px 9px;
    border-radius: 5px;
    font-size: 13px;
    cursor: pointer;
    opacity: 0.9;
}

.menu a:hover, .dropdown-parent:hover {
    color: var(--main-color)!important;
    background-color: #fff;
    border-radius: 5px;
}

.dropdown-parent:hover .dropdown-content {
    display: block;
}

.menu-active {
    color: var(--main-color)!important;
    background-color: #fff;
}

.flags {
    display: flex;
}

.flags a {
    text-decoration: none;
    cursor: pointer;
    display: flex;
    margin: 0 5px;
    width: 25px;
    height: 25px;
}

.flags a img {
    width: 100%;
    height: 100%;
    filter: grayscale(1);
}

.menu-container {
    display: flex;
    align-items: end;
    flex-direction: column;
}

.flag-active {
    filter: grayscale(0)!important;
}

.flags a:hover img {
    filter: grayscale(0)!important;
}

/* User dropdown menu styles */
.user-menu-container {
    margin-left: 0px;
    position: relative;
    align-items: start;
}

.user-dropdown {
    position: relative;
    display: inline-block;
}

.user-dropdown-btn {
    background-color: transparent;
    color: white;
    padding: 5px 10px;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    border-radius: 4px;
}

.user-dropdown-btn:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.username-text {
    max-width: 100px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.user-dropdown-content {
    display: none;
    position: absolute;
    right: 0;
    background-color: #fff;
    min-width: 200px;
    box-shadow: 0 8px 16px rgba(0,0,0,0.2);
    z-index: 1000;
    border-radius: 4px;
    overflow: hidden;
}

.user-dropdown-content a {
    color: #333;
    padding: 12px 16px;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    font-size: 12px;
}

.user-dropdown-content a:hover {
    background-color: #f1f1f1;
    color: var(--main-color);
}

.user-dropdown:hover .user-dropdown-content {
    display: block;
}

.notification-badge {
    background-color: red;
    color: white;
    border-radius: 50%;
    padding: 1px 6px;
    font-size: 12px;
    margin-left: 5px;
}

.user-avatar-container {
    display: inline-block;
    align-items: center;
}

.navbar-notification-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    background-color: red;
    color: white;
    border-radius: 50%;
    padding: 1px 6px;
    font-size: 10px;
    box-shadow: 0 0 0 2px white;
    animation: pulse-animation 1.5s infinite;
}

@keyframes pulse-animation {
    0% {
        box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.8);
    }
    50% {
        box-shadow: 0 0 0 5px rgba(255, 255, 255, 0.1);
    }
    100% {
        box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.8);
    }
}

.user-dropdown-btn .fa-user-circle {
    font-size: 18px;
}

/* User avatar styling */
.user-avatar-small {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    object-fit: cover;
    border: 1px solid rgba(255, 255, 255, 0.5);
    align-items: center;
}

/* Responsive styles for user dropdown */
@media screen and (max-width: 768px) {
    .user-dropdown-btn .username-text {
        display: none;
    }
    
    .user-dropdown-btn .fa-angle-down {
        display: none;
    }
    
    .user-dropdown-content {
        right: -10px;
    }
}

.sp-buttons {
    margin-top: -36px!important;
}

.sp-button {
    background-color: #fff;
    border-color: var(--main-color)!important;
}

.sp-selected-button {
    background-color: var(--main-color)!important;
}

.section {
    padding: 20px 0;
}

.section-heading {
    font-size: 35px;
    margin-bottom: 10px;
    color: var(--main-color);
    text-decoration: none;
    margin-top: 0;
}

.section-short-description {
    color: var(--text-color);
    font-size: 14px;
}

.card-view-row {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
}

.card-view-box {
    width: calc(95% / 3);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: rgba(99, 99, 99, 0.2) 0px 2px 8px 0px;
}

.card-view-image-box {
    overflow: hidden;
    position: relative;
    height: 250px;
}

.card-view-image-box img {
    width: 100%;
    transition: .3s;
    overflow: hidden;
    height: 250px;
    object-fit: cover
}

.card-view-image-box::before {
    position: absolute;
    content: '';
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #0000002d;
    transition: .3s;
}

.card-view-title {
    color: var(--main-color);
    margin-top: 0;
}

.card-view-text {
    color: var(--text-color);
}

.card-view-body-box {
    padding: 20px;
}

.card-view-box a {
    display: block;
    text-decoration: none;
}

.card-view-box:hover .card-view-image-box > img {
    transform: scale(1.1);
}

.card-view-box:hover .card-view-image-box::before {
    background-color: #2a734da0!important;
    z-index: 2;
}

.section-nap-report .card-view-box {
    background-color: #fff;
    padding: 20px;
    margin-bottom: 30px;
    transition: .3s;
}

.section-nap-report .card-view-body-box {
    padding-bottom: 0;
}

.section-nap-report {
    background-color: #E6F8EE;
}

.section-nap-report-heading {
    color: #333;
}

.section-nap-report-short-description {
    color: var(--text-color);
}

.section-nap-report .card-view-title {
    color: var(--main-color);
}

.section-nap-report .card-view-text {
    color: var(--text-color);
}

.card-view-image-icon {
    color: var(--main-color);
    border-radius: 10px;
    font-size: 30px;
    display: inline-block;
}

.section-nap-report .card-view-body-box {
    padding-left: 0;
    padding-right: 0;
    padding-top: 0!important;
}

.section-nap-report-file {
    color: var(--main-color);
    margin-bottom: 0;
}

.section-nap-report-file i {
    margin-left: 10px;
}

.section-nap-report .card-view-box:hover {
    background-color: #2a734d54;
}

.section-information-links .card-view-box {
    box-shadow: none;
    display: flex;
    justify-content: center;
    margin-bottom: 40px;
}

.section-information-links .card-view-image-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: var(--main-color);
    color: #fff;
    box-shadow: rgba(99, 99, 99, 0.2) 0px 2px 8px 0px;
}

.section-information-links .card-view-title {
    color: #333;
}

.section-information-links .card-view-box > a {
    display: flex;
    align-items: center;
}

.section-information-links .card-view-title {
    margin-bottom: 0;
    margin-right: 10px;
}

.section-information-links .section-nap-report-file {
    margin-top: 0;
    font-size: 20px;
}

body {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.content, .container-fluid, .container {
    flex: 1 0 auto;
}

.footer {
    background-color: var(--main-color);
    padding: 20px 0;
    flex-shrink: 0;
    width: 100%;
    margin-top: auto;
    box-shadow: 0 -2px 12px -6px rgba(46,125,50,0.08);
}

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

.footer-logo-nap {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    overflow: hidden;
}
.footer-logo-nap img {
    width: 100%;
}

.footer-logo {
    width: 140px;
    height: 150px;
    border-radius: 50%;
    overflow: hidden;
}
.footer-logo img {
    width: 100%;
}

.footer-social {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    margin-top: 50px;
}

.footer-social a {
    color: var(--main-color);
    display: flex;
    width: 20px;
    height: 20px;
    border-radius: 5px;
    justify-content: center;
    align-items: center;
    margin: 5px;
    background-color: #fff;
    text-decoration: none;
    transition: .3s;
}

.footer-social a:hover {
    transform: scale(1.2);
}

.footer-menu {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-menu a {
    list-style: none;
    padding: 0;
    margin: 0;
    text-decoration: none;
    color: #fff;
    font-weight: bold;
    font-size: 14px;
    margin-bottom: 10px;
    display: inline-block;
    transition: .3s;
}

.footer-menu a:hover {
    color: #4ec687;
}

.copy-right {
    font-size: 12px;
    color: #fff;
}

.line {
    width: 100%;
    height: 1px;
    background-color: #fff;
}

.section-vision {
    background-color: #E6F8EE;
}

.province {
    padding: 8px 20px;
    border: 2px solid var(--main-color);
    border-radius: 50px;
    width: 190px;
    background-color: #fff;
    cursor: pointer;
    transition: .3s;
    text-align: center;
}

.province:hover {
    background-color: var(--main-color);
    color: #fff
}

.province-active {
    background-color: var(--main-color);
    color: #fff
}

.map-container {
    display: flex;
    margin-top: 30px;
    justify-content: space-evenly;
}

.map-img {
    display: block;
    height: 500px;
    overflow: hidden;
    background: #989898;
    position: relative;
}

.big-map {
    width: 20%;
    margin: 5px;
    cursor: pointer;
}

.big-map .map-img::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background-color: #000;
    opacity: .2;
    top: 0;
    left: 0;
    transition: .3s;
}

.big-map:hover .map-img::after {
    opacity: .4;
}

.big-map:hover img {
    transform: scale(1.2);
}

.big-map img {
    width: 100%;
    height: 500px;
    object-fit: cover;
    transition: .3s;
}

.small-map-container {
    width: 49.7%;
    height: 500px;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-around;
    align-items: stretch;
}

.small-map {
    width: 20%;
    margin: 5px;
}

.small-map img {
    width: 100%;
    height: 500px;
    object-fit: cover;
    transition: .3s;
}

.small-map .map-img::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background-color: #000;
    opacity: .2;
    top: 0;
    left: 0;
    transition: .3s;
}

.small-map:hover .map-img::after {
    opacity: .4;
}

.small-map:hover img {
    transform: scale(1.2);
}

/* Dropdown styles for navigation */
.dropdown {
    position: relative;
    display: inline-block;
}

.dropdown-toggle {
    color: #fff;
    text-decoration: none;
    text-transform: capitalize;
    cursor: pointer;
    display: inline-block;
    padding: 8px 9px;
    border-radius: 25px;
    font-size: 14px;
}

.dropdown-toggle:hover, .dropdown-toggle:focus {
    color: var(--main-color)!important;
    background-color: #fff;
    border-radius: 25px;
}

.dropdown-content {
    display: none;
    position: absolute;
    background-color: #fff;
    min-width: 200px;
    box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
    z-index: 10;
    border-radius: 10px;
    margin-top: 5px;
}

.dropdown-content a {
    color: var(--main-color);
    padding: 10px 15px;
    text-decoration: none;
    display: block;
    text-align: left;
    border-radius: 0;
    font-size: 14px;
}

.dropdown-content a:hover {
    background-color: rgba(42, 115, 77, 0.1);
    color: var(--main-color)!important;
    border-radius: 0;
}

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

.dropdown:hover .dropdown-toggle {
    color: var(--main-color)!important;
    background-color: #fff;
    border-radius: 25px;
}

.tab-header {
    display: flex;
    justify-content: center;
}

.tab-header a {
    padding: 10px 20px;
    border: none;
    background: #f7f9fb;
    cursor: pointer;
    transition: background 0.3s;
    border-bottom: 1px solid #ddd;
    text-decoration: none;
    color: #000;
    font-size: 14px;
    text-align: center;
}

.tab-header a:hover {
    background: #2A734D;
    color: #fff;
}

.tab-header a.active {
    background: #2A734D;
    color: #fff;
}

.row-content {
    display: flex;
    justify-content: space-between;
    margin-top: 70px;
}

.left-content {
    width: 85%;
    border-right: 1px solid #e5e0e0;
}

.right-content {
    width: 20%;
    margin-top: 70px;
    padding-left: 30px;
}

.img-box {
    width: 50%;
    border-radius: 10px;
    overflow: hidden;
    transition: transform 0.3s ease;
    margin-bottom: 20px;
    display: flex;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

    .img-box:hover {
        transform: translateY(-3px); 
        box-shadow: 0 6px 18px rgba(0, 0, 0, 0.16);
    }

.img-box img {
    width: 100%;
    object-fit: fill;
    transition: transform 0.3s;
}

.img-box:hover img {
    transform: scale(1.04);
}

.content-box {
    width: 50%;
    padding: 0 50px
}

.txt-upper {
    text-transform: uppercase;
}

.txt-align-justify {
    text-align: justify;
}

.more-detail {
    background: #fff;
    color: var(--main-color);
    font-size: 14px;
    padding: 2px 30px;
    border-radius: 100px;
    border: 1px solid var(--main-color);
    -webkit-transition-duration: 0.4s;
    transition-duration: 0.4s;
    -webkit-transition-timing-function: ease-out;
    transition-timing-function: ease-out;
    text-decoration: none;
    display: inline-block;
    margin-top: 20px;
}

.more-detail:hover {
    background: var(--main-color);
    color: #fff;
}

.txt-center {
    text-align: center;
}

.news-box {
    display: block;
    width: 100%;
    cursor: pointer;
}

.news-list {
    display: flex;
    flex-wrap: wrap;
    gap: 20px; /* Adjust space between boxes */
}

.news-list a {
    text-decoration: none;
}

.news-box img {
    width: 100%;
    height: 250px;
    object-fit: cover;
}

.news-heading {
    color: #000;
    font-weight: bold;
    overflow: hidden;
    margin-top: 10px;
}

.owl-carousel .owl-nav {
    position: absolute;
    top: 30%;
    transform: translateY(-50%);
    width: 100%;
    pointer-events: none;
}

.owl-carousel .owl-nav button {
    position: absolute;
    pointer-events: all;
    background: rgba(0,0,0,0.5) !important;
    color: white !important;
    border: none !important;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    font-size: 18px;
}

.owl-carousel .owl-nav .owl-prev {
    left: -20px; /* Adjust position */
}

.owl-carousel .owl-nav .owl-next {
    right: -20px; /* Adjust position */
}

/* Make carousel container relative for absolute positioning */
.owl-carousel {
    position: relative;
}

.my-sidebar {
    background-color: #fff;
    border-radius: 10px;
    overflow: hidden;
    min-height: 300px;
}

.my-sidebar ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.my-sidebar a {
    text-decoration: none;
    color: #333;
    font-size: 14px;
    display: block;
    padding: 10px;
    border-bottom: 1px solid #dedede73;
    transition: .3s;
}

.my-sidebar li:last-child a {
    border-bottom: none;
}

.my-sidebar a:hover, .my-sidebar a.active {
    color: var(--main-color);
    background-color: rgba(42, 115, 77, 0.1)
}

.my-sidebar h1 {
    color: #fff;
    background-color: var(--main-color);
    text-align: center;
    padding: 10px;
    margin-bottom: 0;
    font-size: 17px!important;
}

.dropdown-parent {
    display: inline-block!important;
    position: relative;
}

.nap-sector-active {
    color: var(--main-color)!important;
}

.box-pagination {
    display: flex;
    justify-content: center;
    gap: 5px;
    margin-top: 0px;
}

.pagination-link {
    background: #fff;
    color: var(--main-color);
    font-size: 14px;
    border-radius: 100px;
    border: 1px solid var(--main-color);
    -webkit-transition-duration: 0.4s;
    transition-duration: 0.4s;
    -webkit-transition-timing-function: ease-out;
    transition-timing-function: ease-out;
    text-decoration: none;
    display: flex;
    width: 35px;
    height: 35px;
    align-items: center;
    justify-content: center;
}

.pagination-link:hover {
    background-color: var(--main-color);
    color: #fff;
}

.forum-container {
    margin-top: 100px!important
}

.box-shadow {
    box-shadow: rgba(99, 99, 99, 0.2) 0px 2px 8px 0px;
    border-radius: 5px;
    margin-bottom: 5px;
}

.gender-box {
    box-shadow: rgba(99, 99, 99, 0.2) 0px 2px 8px 0px;
    border-radius: 5px;
    margin-bottom: 5px;
    height: 100px;
}

.forum-card {
    margin-top: 150px!important;
}

/* Language switcher segmented control */
.lang-btn {
  display: flex;
  align-items: center;
  padding: 4px 4px 4px 4px;
  background: none;
  border: none;
  outline: none;
  color: #333;
  font-weight: 500;
  font-size: 14px;
  text-decoration: none;
  transition: background 0.18s, color 0.18s;
  cursor: pointer;
  position: relative;
  min-width: 30px;
}
.lang-btn .flag-icon {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  box-shadow: 0 1px 3px rgba(0,0,0,0.07);
  margin-right: 0px;
}
.lang-btn .lang-label {
  font-size: 14px;
  letter-spacing: 0.5px;
}
.lang-btn.active, .lang-btn:focus {
  background: var(--main-color, #2A734D);
  color: #fff;
  font-weight: 700;
  z-index: 1;
}
.lang-btn.active .lang-label, .lang-btn:focus .lang-label {
  color: #fff;
}
.lang-btn.active .flag-icon, .lang-btn:focus .flag-icon {
  box-shadow: 0 2px 8px rgba(42,115,77,0.18);
  outline: 2px solid #fff;
}
.lang-btn:not(.active):hover {
  background: #e6f8ee;
  color: var(--main-color, #2A734D);
}
.lang-btn:not(.active):hover .lang-label {
  color: var(--main-color, #2A734D);
}
.lang-btn:not(.active):hover .flag-icon {
  filter: grayscale(0.2);
}

/* Single language toggle button style */
.lang-btn.single-toggle {
  background: #f3f3f3;
  border: 1.5px solid #e0e0e0;
  border-radius: 999px;
  color: #333;
  font-weight: 600;
  transition: background 0.18s, color 0.18s;
  min-width: 30px;
  box-shadow: 0 1px 4px rgba(0,0,0,0.04);
}
.lang-btn.single-toggle:hover, .lang-btn.single-toggle:focus {
  background: var(--main-color, #2A734D);
  color: #fff;
}
.lang-btn.single-toggle .flag-icon {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  margin-right: 4px;
}
.lang-btn.single-toggle .lang-label {
  font-size: 14px;
  letter-spacing: 0.5px;
}

.sp-layer h2, .sp-layer p {
    color: var(--main-color);
    margin: 0;
}

.sp-layer h2 {
    font-size: 40px;
    display: inline-block;
    white-space: nowrap;
    animation: marquee 15s linear infinite;
}

.sp-layer p {
    display: inline-block;
    white-space: nowrap;
    animation: marquee 20s linear infinite;
    animation-delay: 0.5s;
}

.sp-layer {
  width: 70%;
  box-sizing: border-box;
  overflow: hidden;
  white-space: nowrap;
  background-color: #fffffff0;
  padding: 10px;
  border-radius: 10px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

/* Marquee scrolling animation */
@keyframes marquee {
    0% {
        transform: translateX(100%);
    }
    100% {
        transform: translateX(-100%);
    }
}

.footer-contact-heading {
    color: #fff;
    margin-bottom: 10px;
    margin-top: 0;
    font-size: 15px;
}

.footer-contact-info a {
    color: #fff;
    text-decoration: none;
    font-size: 14px;
}

.footer-contact-info a:hover {
    color: #18ee7e;
}

.footer-contact-info p {
    margin: 5px 0;
}

.partner {
    display: flex;
    gap: 5px;
    flex-wrap: wrap;
    padding: 5px;
}

.partner a:hover img {
 transform: scale(1.1);
}

.partner img {
    width: 100px;
    height: 100px;
    object-fit: cover;
    transition: .3s;
}

.img-box-v2 {
    width: 50%;
    text-align: center
}

.img-box-v2 img {
    max-width: 100%;
    box-shadow: rgba(0, 0, 0, 0.24) 0px 3px 8px;
}