/* @import url('https://fonts.googleapis.com/css2?family=Phetsarath:wght@400;700&family=Siemreap&display=swap'); */

body {
    font-family: "Phetsarath_OT", sans-serif;
}

.top-bar {
    background: #f8f9fa;
    font-size: 14px;
    padding: 5px 0;
}
.navbar {
    background: #e0df69;
}
.navbar-nav .nav-link {
    color: #000;
    font-weight: 500;
}
.carousel img {
    height: 500px;
    object-fit: cover;
}
.hero-section {
    background: url("https://upload.wikimedia.org/wikipedia/commons/thumb/3/3b/That_Luang_Vientiane.jpg/1200px-That_Luang_Vientiane.jpg") no-repeat center;
    background-size: cover;
    color: #fff;
    text-align: center;
    padding: 100px 20px;
    font-weight: bold;
}
.stats-section {
    padding: 40px 0;
    background-color: #f8f9fa;
    text-align: center;
}
.stats-section i {
    font-size: 40px;
    margin-bottom: 10px;
    color: #386f47;
}
.footer {
    background: #e0df69;
    padding: 20px 0;
    text-align: center;
}
.carousel-item {
    position: relative;
}
.banner {
    color: #e0df69;
}
.top-bar-overlay {
    position: absolute;
    top: 0;
    height: 500px;
    background-color: rgba(45, 103, 60, 0.8);
}

.carousel-caption {
    top: 60%;
    bottom: auto;
    transform: translateY(-25%);
    z-index: 3;
}

.bg-overlay {
    /* background-color: rgba(0, 0, 0, 0.6); */
    border-radius: 10px;
}
.btn-info a {
    color: white !important;
    text-decoration: none;
}

.bod {
    text-align: center;
}
.bod img {
    width: 50%;
}
.logo-img {
    height: 50px; /* Adjust as needed */
    width: auto;
}
.lg img {
    border-radius: 12px;
    height: 24px;
}

.animated-logo {
    animation: zoomIn 1.5s ease-in-out;
    transition: transform 0.3s;
}

.animated-logo:hover {
    transform: scale(1.1);
}
.section-title {
    font-weight: bold;
    /* text-align: center; */
    margin-bottom: 10px;
}
.section-line {
    width: 60px;
    height: 4px;
    background-color: #4caf50; /* green */
    margin: 0 auto;
    border-radius: 2px;
}

@keyframes zoomIn {
    0% {
        opacity: 0;
        transform: scale(0.5);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

/* Scroll to Top Button Styles */
.scroll-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #2d673c 0%, #4a7c59 100%);
    color: white;
    border: none;
    border-radius: 50%;
    font-size: 1.8rem;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 1000;
    box-shadow: 0 4px 15px rgba(45, 103, 60, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
}

.scroll-to-top:hover {
    background: linear-gradient(135deg, #4a7c59 0%, #2d673c 100%);
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(45, 103, 60, 0.6);
}

.scroll-to-top.show {
    opacity: 1;
    visibility: visible;
}

.scroll-to-top:active {
    transform: translateY(-2px);
}

/* Pulse animation for the button */
.scroll-to-top {
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        box-shadow: 0 4px 15px rgba(45, 103, 60, 0.4);
    }
    50% {
        box-shadow: 0 4px 20px rgba(45, 103, 60, 0.7);
    }
    100% {
        box-shadow: 0 4px 15px rgba(45, 103, 60, 0.4);
    }
}

/* Arrow bounce animation */
.scroll-to-top i {
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%,
    20%,
    50%,
    80%,
    100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-4px);
    }
    60% {
        transform: translateY(-2px);
    }
}

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* Additional hover effects for interactive elements */
.navbar-nav .nav-link:hover {
    background-color: rgba(45, 103, 60, 0.1);
    border-radius: 5px;
    transition: all 0.3s ease;
}

.dropdown-item:hover {
    background-color: #e0df69;
    color: #000;
}

/* Stats section hover effects */
.stats-section .col-md-3:hover {
    transform: translateY(-5px);
    transition: transform 0.3s ease;
}

.stats-section .col-md-3:hover i {
    transform: scale(1.1);
    transition: transform 0.3s ease;
}
.section-title {
    font-weight: bold;
    /* text-align: center; */
    margin-bottom: 10px;
}

.section-line {
    width: 150px;
    height: 4px;
    background-color: #4caf50; /* green */
    margin: 0 auto;
    border-radius: 2px;
}
.member {
    margin-top: 20px;
}
.container{
 max-width: 1490px;
}
.image-chart img {
    width: 100%;
}
.table-striped tbody tr:nth-of-type(odd) {
    background-color: #f2f2f2;
}
.buybid{
    background-color: #1e88e5 !important;
}
.pay {
    background-color: #43a047 !important;
    border-color: #2e7d32;
}
.btn-db{
    margin-top: 10px;
    font-size: 14px;
    padding: 3px;
    width: 99px;
    border-radius: 4px;

}
.submit_bid_doc{
    background-color: #16a34a !important;
    color: white;
    border: none;
}
.btn_clearification{
    background-color: #f59e0b !important;
    color: white;
    border: none;
}
.btn-download-sbd{
     background-color: #2563eb !important;
    color: white;
    border: none;
}
.btn-pending{
    margin-top: 9px !important;
    font-size: 14px;
    padding: 3px;
    width: 99px;
    border-radius: 4px;
}
.btn-status{
    margin-top: 9px;
    font-size: 14px;
    padding: 3px;
    width: 99px;
    border-radius: 4px;
    background-color: #22c55e;
    color: white;
    border: none;
}
.btn-db-sv{
    margin-top: 10px;
    font-size: 14px;
    padding: 3px;
    width: 99px;
    border-radius: 4px;
}
.btn-approval{
    margin-top: 9px;
    font-size: 14px;
    padding: 3px;
    width: 99px;
    border-radius: 4px;
}

.btn-download {
    background-color: #d9534f;
    color: white;
    margin-bottom: 3px;
    border: none;
    /* font-size: 7px; */
    width: 111px;
    /* padding: 2px 0px 3px 0px; */
}
.btn-download:hover {
    background-color: #c9302c;
}
.filter-form {
    margin-bottom: 20px;
}
.download {
    text-align: center;
}
.annual {
    margin-bottom: 100px;
}
.head th {
    background-color: #386f47;
    color: white;
    font-size: 15px;
}
.btn-success {
    background-color: #386f47;
}
.dropdown-submenu {
    position: relative;
}

.dropdown-submenu .dropdown-menu {
    top: 0;
    left: 100%;
    margin-left: 0;
    display: none;
    position: absolute;
}

.dropdown-submenu:hover .dropdown-menu {
    display: block;
}

.dropdown-submenu > a::after {
    /* content: "▶"; */
    float: right;
    margin-top: 5px;
    font-size: 0.7rem;
}
.fw-bold {
    font-size: 30px;
}
.section-line {
    height: 3px;
    width: 80px;
    background-color: #2d673c;
    margin: 0 auto 1rem;
}
.pagination .page-link {
    color: #2d673c;
    border: 1px solid #dee2e6;
}

.pagination .page-item.active .page-link {
    background-color: #2d673c;
    border-color: #2d673c;
    color: #fff;
}

.pagination .page-link:hover {
    background-color: #2d673c10;
}

.card-img-top {
    /* height: 270px; */
    width: 100%;
    object-fit: cover; /* crops and centers image */
    border-top-left-radius: 0.5rem;
    border-top-right-radius: 0.5rem;
}

.card-title {
    font-size: 1.4rem;
    font-weight: bold;
    margin-bottom: 10px;
    height: 29px;
    overflow: hidden;
    text-overflow: ellipsis;
}

.card-text {
    font-size: 0.95rem;
    line-height: 1.4rem;
    height: 90px;
    overflow: hidden;
    text-overflow: ellipsis;
}
.detail {
    text-align: center;
}
.section-line {
    transition: width 0.1s ease;
}

.detail-event {
    background: white;
    border-radius: 11px;
    padding: 0px;
    border: 2px solid #eee;
    margin-top: 2px;
}

.custom-scrollbar::-webkit-scrollbar {
    width: 2px;
}
.img-ev img {
    border-top-right-radius: 5px;
    border-top-left-radius: 5px;
}
.img-detail {
    box-shadow: rgba(99, 99, 99, 0.2) 0px 2px 8px 0px;
    border-radius: 5px;
}
.month {
    text-align: end;
}
.event {
    font-weight: 800;
}
.event-gallery-img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 6px;
}
.event-thumb {
    width: 119px;
    height: 80px;
    object-fit: cover;
    border-radius: 8px;
}

.custom-scrollbar {
    max-height: 400px;
    overflow-y: auto;
}
.event-thumb {
    width: 100%;
    height: auto;
    object-fit: cover;
    border-radius: 5px;
}
.number {
    width: 50px;
    text-align: center;
}
a {
    text-decoration: auto !important;
    color: #2d673c;
    font-weight: 700;
}
/* Style submenu */
.dropdown-submenu {
    position: relative;
}

.dropdown-submenu > .dropdown-menu {
    top: 0;
    left: 100%;
    margin-top: -1px;
    display: none;
    position: absolute;
}

.dropdown-submenu:hover > .dropdown-menu {
    display: block;
}

/* Adjust spacing */
.nav-link {
    padding: 0.5rem 0.75rem;
    font-size: 16.4px;
}

.dropdown-menu .dropdown-item {
    font-size: 14px;
    padding: 5px 16px;
}
.line-clamp-2 {
    display: -webkit-box;
    -webkit-line-clamp: 10; /* Limit to 3 lines */
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}
.line-clamp-3 {
    display: -webkit-box;
    -webkit-line-clamp: 1; /* Limit to 3 lines */
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 29px;
}
.table tbody tr:hover {
    background-color: #f0f8ff; /* light blue background */
    cursor: pointer;
}
.table tbody tr td a:hover {
    color: #e0df69; /* bootstrap primary blue */
    text-decoration: underline;
}
.pagination {
    display: flex;
    padding-left: 0;
    list-style: none;
    border-radius: 0.25rem;
    justify-content: center;
    gap: 0.25rem;
}
.pagination li {
    display: inline;
}
.pagination li a,
.pagination li span {
    color: #007bff;
    padding: 0.375rem 0.75rem;
    border: 1px solid #dee2e6;
    border-radius: 0.25rem;
    text-decoration: none;
}
.pagination li.active span {
    background-color: #007bff;
    color: white;
    border-color: #007bff;
}
.pagination li.disabled span {
    color: #6c757d;
    pointer-events: none;
    background-color: #fff;
    border-color: #dee2e6;
}
.multipal {
    padding: 4px;
    border: 1px solid #eee;
    border-radius: 5px;
    box-shadow: rgba(0, 0, 0, 0.02) 0px 1px 3px 0px, rgba(27, 31, 35, 0.15) 0px 0px 0px 1px;
}
.fw-bold1 {
    font-size: 30px;
    font-weight: 600;
    text-align: center;
    margin-top: 10px;
    color: #2d673c;
}
.eventdt {
    font-weight: 600;
    margin-top: 10px;
    color: #2d673c;
}
.bi-envelope-fill::before {
    color: #1fc64c;
}
.bi-phone-fill::before {
    content: "\f4e2";
    color: #1fc64c;
}
.card-img-top {
    height: 300px;
    object-fit: cover;
    width: 100%;
}

.profile-container {
    background: #fff;
    border-radius: 4px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    padding: 0;
}

.top-bar {
    background: #f0f0f0;
    padding: 10px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #ddd;
}

.top-bar .actions button {
    border: none;
    background: transparent;
    font-weight: 600;
    color: #007bff;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 4px;
}

.tabs {
    display: flex;
    border-bottom: 2px solid #ccc;
    background: #fff;
}

.tab-btn {
    flex: 1;
    padding: 12px 20px;
    text-align: center;
    cursor: pointer;
    font-weight: 600;
    color: #555;
    border-bottom: 2px solid transparent;
    transition: all 0.2s ease-in-out;
}

.tab-btn.active {
    color: #28a745;
    border-bottom: 3px solid #28a745;
    background: #f9f9f9;
}

.tab-content {
    display: none;
    padding: 30px 40px;
}

.tab-content.active {
    display: block;
}

h5.section-title {
    font-size: 15px;
    font-weight: 600;
    color: #28a745;
    border-bottom: 1px solid #ddd;
    padding-bottom: 6px;
    margin-top: 25px;
}

label {
    font-weight: 500;
    font-size: 18px;
}
.bi-box-seam-fill::before {
    content: "\f7d3";
    font-size: 40px;
    color: #386f47;
    padding-bottom: 8px;
}
.bi-file-earmark-text-fill::before {
    content: "\f38a";
    
    font-size: 40px;
    color: #386f47;
    padding-bottom: 8px;
}
.bi-people-fill::before {
    content: "\f4cf";
   
    font-size: 40px;
    color: #386f47;
    padding-bottom: 8px;
}
input.form-control,
select.form-select {
    font-size: 14px;
    height: 36px;
}

.form-section {
    margin-top: 15px;
}

.btn-save {
    background: #28a745;
    color: #fff;
    font-weight: 600;
    border: none;
    padding: 8px 20px;
    border-radius: 3px;
}

.btn-save:hover {
    background: #218838;
}

.btn-back {
    background: transparent;
    color: #555;
    font-weight: 600;
    border: none;
}
.header-pf {
    background: #218838; /* light gray background */
    border-bottom: 1px solid #ccc; /* subtle bottom border */
    padding: 10px 25px; /* space around text */
    display: flex;
    justify-content: flex-end; /* text on right side */
    align-items: center;
    font-family: "Segoe UI", Tahoma, sans-serif;
}

.header-pf p {
    margin: 0;
    font-size: 18px;
    font-weight: 700;
    color: #fff;
}
.header-pf {
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.form-container {
    border-radius: 5px;
    padding: 20px;
    background-color: #f9f9f9;
    max-width: 100%;
    overflow-x: auto;
}

/* Action Buttons */
.action-buttons {
    margin-bottom: 15px;
}
.action-buttons .btn {
    margin-right: 10px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-weight: bold;
    transition: 0.3s;
}
.btn-new {
    background-color: #28a745;
    color: #fff;
}
.btn-new:hover {
    background-color: #218838;
}
.btn-update {
    background-color: #ffc107;
    color: #212529;
}
.btn-update:hover {
    background-color: #e0a800;
}
.btn-cancel {
    background-color: #dc3545;
    color: #fff;
}
.btn-cancel:hover {
    background-color: #c82333;
}
.btn-browse {
    background-color: #007bff;
    color: #fff;
    border: none;
    border-radius: 5px;
    padding: 5px 10px;
    cursor: pointer;
}
.btn-browse:hover {
    background-color: #0069d9;
}

/* Table */
.form-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 10px;
}
.form-table th,
.form-table td {
    border: 1px solid #ccc;
    padding: 10px;
    text-align: left;
    vertical-align: middle;
}
.form-table th {
    background-color: #e9ecef;
}
.form-table tr:nth-child(even) {
    background-color: #f2f2f2;
}

/* Inputs and Select */
input[type="text"],
input[type="date"],
select {
    width: 100%;
    padding: 6px 8px;
    border: 1px solid #ccc;
    border-radius: 5px;
    box-sizing: border-box;
}

/* File Input */
.file-input-wrapper {
    display: flex;
    align-items: center;
}
.file-name {
    margin-left: 10px;
    font-size: 0.9em;
}

/*=========================Responsive*/
@media (max-width: 576px) {
    .detail-event h5 {
        font-size: 1rem;
    }
    .detail-event p {
        font-size: 0.875rem;
    }
    .custom-scrollbar {
        max-height: 300px;
        overflow-y: auto;
    }
}
@media (max-width: 576px) {
    .btn-download {
        width: 100%;
        padding: 6px 0;
        font-size: 14px;
    }
    .table td {
        vertical-align: middle;
    }
}
@media (max-width: 768px) {
    .card-img-top {
        height: auto;
    }

    .card-title {
        font-size: 1rem;
        height: auto;
    }

    .card-text {
        font-size: 0.9rem;
        height: auto;
    }
}
@media (max-width: 576px) {
    .carousel-caption .bg-overlay {
        padding: 0.5rem 1rem;
    }
    .carousel-caption h1 {
        font-size: 1.25rem;
    }
}
@media (max-width: 991px) {
    .navbar-nav {
        flex-wrap: nowrap;
        overflow-x: auto;
    }
    .navbar-nav .nav-item {
        white-space: nowrap;
    }
}
