.page-link-custom {
    color: #9e9e9e !important;
}

.page-link-custom:hover {
    cursor: pointer;
    color: #009EF7 !important;
}

.form-control~label.input-group-text {
    transition: border-color .15s ease-in-out, box-shadow .15s ease-in-out;
}

.form-control.is-invalid~label.input-group-text {
    border-color: var(--bs-danger);
}

.select2-container--bootstrap5.select2-container--disabled .form-select {
    cursor: default;
}

.select2-container--bootstrap5.select2-container--disabled .form-select .select2-selection__choice button {
    display: none !important;
}

.select2-container--bootstrap5.select2-container--disabled .form-select .select2-selection__choice .select2-selection__choice__display {
    margin-left: 0 !important;
}

.form-control:disabled~label {
    cursor: default;
}

.form-select.is-invalid~.select2-container .select2-selection--single:first-child {
    border-color: var(--bs-danger);
}

.select2-container--bootstrap5.select2-container--disabled .form-select .select2-selection__placeholder {
    visibility: hidden;
}

input:disabled::placeholder {
    visibility: hidden;
}

.daterangepicker .ranges ul {
    width: 190px;
}

.card-toolbar button.btn {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
}

.card-toolbar button.btn>i {
    transition: all 0.15s ease-in-out;
}



::-webkit-scrollbar {
    scrollbar-color: #c5c5c5 #f1f1f1 !important;
    scrollbar-width: auto !important;
    scrollbar-face-color: #c5c5c5 !important;
    /* Color of the scrollbar thumb */
    scrollbar-base-color: #f1f1f1 !important;
    /* Color of the scrollbar track */
    width: 10px !important;
    height: 10px !important;
    /* Width of the entire scrollbar */
}

::-webkit-scrollbar-track {
    scrollbar-color: #c5c5c5 #f1f1f1 !important;
    scrollbar-width: auto !important;
    scrollbar-face-color: #c5c5c5 !important;
    /* Color of the scrollbar thumb */
    scrollbar-base-color: #f1f1f1 !important;
    /* Color of the scrollbar track */
    background: #f1f1f1;
    /* Color of the scrollbar track */
}

::-webkit-scrollbar-thumb {
    scrollbar-color: #c5c5c5 #f1f1f1 !important;
    scrollbar-width: auto !important;
    scrollbar-face-color: #c5c5c5 !important;
    /* Color of the scrollbar thumb */
    scrollbar-base-color: #f1f1f1 !important;
    /* Color of the scrollbar track */
    background-color: #c5c5c5 !important;
    border-radius: 10px;
    /* Rounded corners */
}


::-webkit-scrollbar-thumb:hover {
    scrollbar-color: #c5c5c5 #f1f1f1 !important;
    scrollbar-width: auto !important;
    scrollbar-face-color: #c5c5c5 !important;
    /* Color of the scrollbar thumb */
    scrollbar-base-color: #f1f1f1 !important;
    /* Color of the scrollbar track */
    background: #c5c5c5 !important;
}

.table-responsive {
    scrollbar-color: #c5c5c5 #f1f1f1 !important;
    scrollbar-width: auto !important;
}

.table-responsive:hover {
    scrollbar-color: #c5c5c5 #f1f1f1 !important;
    scrollbar-width: auto !important;
}

html,
body {
    scrollbar-width: auto !important;
    scrollbar-base-color: #f1f1f1 !important;
    /* Color of the scrollbar track */
        font-size: 14px !important;

}

[data-bs-theme=light] {
    --bs-menu-link-color-active: #ffffff;
    --bs-menu-link-bg-color-active: #009EF7;
    --bs-menu-link-color: #ffffff;
    --bs-menu-link-bg-color: #009EF7;
    --bs-app-toolbar-bg: linear-gradient(180deg, #009EF7 0%, #217AFF 100%);
    --bs-text-primary: #009EF7;
    --bs-menu-link-bg-light-color: #F1F4FF;
    --bs-primary: #009EF7 !important;
    --bs-menu-link-color-hover: #009EF7;
    /* NEW THEME */
    --bs-component-hover-color: #009EF7;
    --bs-component-active-bg: #009EF7;
    --bs-component-checked-bg: #009EF7;
    --bs-component-hover-bg: #eff3ff;
    --bs-primary-active: #009EF7;
}

.link-primary {
    color: #009EF7 !important;
}

.link-primary:hover {
    color: #3b6df5 !important;
}


.menu-link-top {
    background-color: var(--bs-menu-link-bg-light-color) !important;
}

.menu-link-top .menu-title {
    color: #009EF7 !important;
}

.menu-link-top:hover {
    background-color: #009EF7 !important;
}

.menu-link-top:hover .menu-title {
    color: #ffffff !important;
}

.menu-link-top:hover .menu-arrow:after {
    background-color: #ffffff !important;
}

.menu-link-top.active {
    background-color: #009EF7 !important;
}

.menu-link-top.active .menu-title {
    color: #ffffff !important;
}


.menu-link-top {
    cursor: pointer !important;
    display: flex !important;
    align-items: center !important;
    padding: 0 !important;
    flex: 0 0 100% !important;
    padding: .65rem 1rem !important;
    transition: none !important;
    outline: 0 !important;
}

.menu-link-top.active .menu-arrow:after {
    background-color: #ffffff !important;
}

.menu-sub .menu-item .menu-link:hover {
    background-color: #eff3ff !important;
}


.container-xxl {
    width: 100% !important;
    max-width: 100% !important;
}

.navbar-custom {
    background-color: #000;
    /* black background */
    padding-left: 24px;
    padding-right: 24px;
    position: relative;
    z-index: 10;
}

.navbar-brand img {
    height: 40px;
}

.nav-link.active {
    color: #00ff00 !important;
    /* green for active link */
}

.nav-link {
    color: #ffffff !important;
}

/* white curved background behind logo */
nav .container-fluid::before {
    background-color: #ffffff !important;
    content: "";
    position: absolute;
    top: 0;
    height: 90%;
    bottom: 0;
    left: 0;
    width: 590px;
    z-index: 0;
    border-radius: 0px 0px 85px 0px;
}

a.navbar-brand {
    z-index: 1;
    position: relative;
}

a.navbar-brand img {
    height: 40px !important;
}

@media (max-width: 1272px) {
    nav .container-fluid::before {
        background-color: #ffffff !important;
        content: "";
        position: absolute;
        top: 0;
        height: 90%;
        bottom: 0;
        left: 0;
        width: 320px;
        z-index: 0;
        border-radius: 0 0 85px 0;
    }

    a.navbar-brand img {
        height: 18px !important;
    }
}

@media (max-width: 991px) {

    .navbar-custom {
        padding-left: 12px !important;
        padding-right: 12px !important;
    }

    .navbar-expand-lg .navbar-collapse {
        margin-top: 26px;
        margin-bottom: 26px;
    }

    nav .container-fluid::before {
        width: 280px;
        height: 36px;
    }

    a.navbar-brand img {
        height: 17px !important;
    }
}

@media (max-width: 700px) {
    nav .container-fluid::before {
        width: 260px;
        height: 35px;
    }

    a.navbar-brand img {
        height: 16px !important;
    }
}

.bg-rmutk {
    background-color: rgb(103, 176, 69);
}

body {
    font-family: "Prompt", sans-serif !important;
    font-weight: 400 !important;
    font-style: normal !important;
}

.card-sdg {
    width: 275px;
    height: 300px;
    border-radius: 0px 0px 16px 16px;
    margin-left: 20px;
    margin-top: 20px;
}

.card-sdg-pr {
    width: 450px;
    height: 780px;
    margin-top: 64px;
    flex-shrink: 0;
    overflow: hidden;
    /* ซ่อนภาพที่เกิน */
    position: relative;
}

.card-sdg-pr img {
    width: 100%;
    /* ปรับให้พอดีกับ card */
    height: 350px;
    object-fit: cover;
    transition: transform 0.3s ease;
    transform-origin: center center;
}

.card-sdg-pr:hover img {
    transform: scale(1.1);
    /* ซูมในกรอบ */
}


.sdg_goal_number:hover {
    position: relative !important;
    top: -2.5px !important;
    transition: 20s ease !important;
    cursor: pointer;
}

.sticky-sidebar {
    position: sticky;
    top: 20px;
    z-index: 10;
}

/* จัดกึ่งกลางในจอมือถือ */
@media (max-width: 991.98px) {

    /* Bootstrap breakpoint < xl */
    .sticky-sidebar {
        margin-left: auto;
        margin-right: auto;
        max-width: 90%;
        /* หรือ 100% แล้วแต่ดีไซน์ */
    }
}

.clamp-2-lines {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    min-height: calc(1.2em * 2);
    /* ให้สูงเท่ากับ 3 บรรทัด */
}

.clamp-6-lines {
    display: -webkit-box;
    -webkit-line-clamp: 6;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    min-height: calc(1.2em * 6);
    /* ให้สูงเท่ากับ 6 บรรทัด */
}



.is-invalid~.invalid-feedback,
.is-invalid~.invalid-tooltip {
    display: block;
}

.is-invalid {
    border-color: #f1416c !important;
    /* padding-right: calc(1.5em + 1.55rem) !important;
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12' width='12' height='12' fill='none' stroke='%23f1416c'%3e%3ccircle cx='6' cy='6' r='4.5'/%3e%3cpath stroke-linejoin='round' d='M5.8 3.6h.4L6 6.5z'/%3e%3ccircle cx='6' cy='8.2' r='.6' fill='%23f1416c' stroke='none'/%3e%3c/svg%3e") !important;
  background-repeat: no-repeat !important;
  background-position: right calc(0.375em + 0.3875rem) center !important;
  background-size: calc(0.75em + 0.775rem) calc(0.75em + 0.775rem) !important; */
}

.was-validated .form-select:invalid:not([multiple]):not([size]),
.was-validated .form-select:invalid:not([multiple])[size="1"],
.form-select.is-invalid:not([multiple]):not([size]),
.form-select.is-invalid:not([multiple])[size="1"] {
    padding-right: 5.5rem !important;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%237E8299' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m2 5 6 6 6-6'/%3e%3c/svg%3e"), url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12' width='12' height='12' fill='none' stroke='%23f1416c'%3e%3ccircle cx='6' cy='6' r='4.5'/%3e%3cpath stroke-linejoin='round' d='M5.8 3.6h.4L6 6.5z'/%3e%3ccircle cx='6' cy='8.2' r='.6' fill='%23f1416c' stroke='none'/%3e%3c/svg%3e") !important;
    background-position: right 1rem center, center right 3rem !important;
    background-size: 16px 12px, calc(0.75em + 0.775rem) calc(0.75em + 0.775rem) !important;
    border: 1px solid #f1416c !important;
}

.is-invalid:focus {
    border-color: #f1416c !important;
    box-shadow: 0 0 0 0.25rem rgba(241, 65, 108, 0.25) !important;
}

.fv-row.fv-plugins-bootstrap5-row-invalid:not(.fv-table) .select2-container .select2-selection {
    border: 1px solid #f1416c !important;
}

.form-control.is-invalid {
    border-color: #f1416c !important;
    border: 1px solid #f1416c !important;
}

.form-control.is-invalid:focus {
    border-color: #f1416c !important;
    box-shadow: 0 0 0 0.25rem rgba(241, 65, 108, 0.25) !important;
}

.form-control.is-invalid {
    border-color: #f1416c !important;
}

.is-invalid:checked {
    background-color: #f1416c !important;
}

is-invalid:focus {
    box-shadow: 0 0 0 0.25rem rgba(241, 65, 108, 0.25) !important;
}

.is-invalid~.form-check-label {
    color: #f1416c !important;
}



.is-invalid {
    /* z-index: 2!important; */
}

.is-invalid:focus {
    /* z-index: 3!important; */
}

.select2-container--bootstrap5 .select2-selection--single[aria-disabled="true"] {
    background-color: #dee3e7 !important;
    border: 0px solid red !important;
    /* box-shadow: inherit !important; */
    cursor: default;
}

.select2-container--bootstrap5 .select2-selection--multiple[aria-disabled="true"] {
    background-color: #dee3e7 !important;
    border: 0px solid red !important;
}

.select2-container--bootstrap5 .select2-selection--multiple[aria-disabled="true"] .select2-selection__choice__remove {
    display: none !important;
}

.select2-container--bootstrap5 .select2-selection--multiple[aria-disabled="true"] .select2-selection__choice__display {
    margin-left: 0 !important;
}

.select2-container .select2-selection--multiple[aria-disabled="true"] {
    cursor: default;
}


.page-loader {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    background: rgba(255, 255, 255, 0.8) !important;
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    z-index: 9999 !important;
}

.page-loaded .page-loader {
    display: none !important;
}


.bt-header {
    border-top: 3px solid #28a745 !important;
}


.clamp-2-lines {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    min-height: calc(1.2em * 2);
    /* ให้สูงเท่ากับ 3 บรรทัด */
}

.clamp-4-lines {
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    min-height: calc(1.2em * 4);
    /* ให้สูงเท่ากับ 6 บรรทัด */
}

.clamp-6-lines {
    display: -webkit-box;
    -webkit-line-clamp: 6;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    min-height: calc(1.2em * 6);
    /* ให้สูงเท่ากับ 6 บรรทัด */
}

/*  */

.site-header-section-right {
    display: flex;
}

@media (min-width: 1400px) {
    .site-header-section-right {
        -webkit-flex-direction: row-reverse;
        flex-direction: row-reverse !important;
        -webkit-justify-content: flex-start;
        justify-content: flex-start;
        -webkit-align-items: center;
        align-items: center;
    }

   
}




/* Header Section */
@media (min-width: 992px) {
    .site-header-section-right {
        -webkit-flex-direction: column;
        flex-direction: column;
        -webkit-justify-content: center;
        justify-content: center;
        -webkit-align-items: flex-end;
        align-items: flex-end;
    }

}

@media (max-width: 992px) {

    .site-header-section-right {

        display: flex;
        flex-direction: column;
    }


}


/*  */

.navbar-collapse {
    justify-content: flex-end;
}

/* =========================
   MODERN LUXURY FOOTER
========================= */
.footer-modern{
  background:
    radial-gradient(1000px 520px at 12% 15%, rgba(33, 197, 142, .14), transparent 60%),
    radial-gradient(1000px 520px at 88% 8%, rgba(59, 130, 246, .12), transparent 58%),
    linear-gradient(180deg, #f8fbfd, #eef4f9 58%, #eaf0f6);
  color:#102033;
  padding:48px 0 32px;
  position:relative;
  overflow:hidden;
}

.footer-modern::before{
  content:"";
  position:absolute;
  inset:0;
  background:
    linear-gradient(135deg, rgba(255,255,255,.52), rgba(255,255,255,.1)),
    radial-gradient(circle at top right, rgba(15, 23, 42, .05), transparent 34%);
  pointer-events:none;
}

.footer-modern .container{
  position:relative;
  z-index:2;
}

.footer-shell{
  background:rgba(255,255,255,.74);
  border:1px solid rgba(148, 163, 184, .22);
  border-radius:32px;
  box-shadow:0 24px 60px rgba(15, 23, 42, .10);
  padding:32px;
  backdrop-filter:blur(14px);
}

.footer-modern-grid{
  margin-top:-1px;
}

.footer-panel{
  height:100%;
  background:linear-gradient(180deg, rgba(255,255,255,.82), rgba(255,255,255,.62));
  border:1px solid rgba(148, 163, 184, .20);
  border-radius:26px;
  padding:24px;
  box-shadow:0 14px 34px rgba(15, 23, 42, .06);
}

.footer-brand-panel{
  background:
    radial-gradient(circle at top left, rgba(33, 197, 142, .14), transparent 42%),
    linear-gradient(180deg, rgba(255,255,255,.88), rgba(255,255,255,.68));
}

.footer-kicker{
  display:inline-flex;
  align-items:center;
  gap:8px;
  font-size:.78rem;
  font-weight:800;
  letter-spacing:.14em;
  text-transform:uppercase;
  color:#0f766e;
  margin-bottom:18px;
}

.footer-brand-head{
  display:flex;
  align-items:center;
  gap:18px;
}

.footer-logo{
  width:90px;
  max-width:100%;
  flex-shrink:0;
  filter:drop-shadow(0 16px 24px rgba(15, 23, 42, .14));
}

.footer-brand-title{
  margin:0;
  font-size:clamp(1.4rem, 1vw + 1.05rem, 2rem);
  line-height:1.15;
  font-weight:900;
  color:#0f172a;
}

.footer-brand-subtitle{
  margin:8px 0 0;
  color:#2563eb;
  font-size:.96rem;
  font-weight:700;
}

.footer-title{
  display:flex;
  align-items:center;
  gap:10px;
  flex-wrap:wrap;
  font-size:1.1rem;
  font-weight:800;
  margin-bottom:8px;
  color:#0f172a;
}

.footer-text{
  color:#425466;
  line-height:1.75;
  font-size:.96rem;
  margin:0;
}

.footer-text-muted{
  color:#64748b;
}

.footer-lead{
  margin-top:20px;
}

.footer-contact-grid{
  display:grid;
  grid-template-columns:repeat(2, minmax(0, 1fr));
  gap:14px;
  margin-top:22px;
}

.footer-info-card{
  background:rgba(248, 250, 252, .92);
  border:1px solid rgba(148, 163, 184, .20);
  border-radius:20px;
  padding:16px 18px;
}

.footer-info-label{
  font-size:.76rem;
  font-weight:800;
  letter-spacing:.12em;
  text-transform:uppercase;
  color:#0f766e;
  margin-bottom:8px;
}

.footer-info-value{
  color:#0f172a;
  font-size:1rem;
  font-weight:800;
  margin-bottom:6px;
}

.footer-info-text{
  color:#64748b;
  font-size:.92rem;
  line-height:1.7;
}

.footer-section-head{
  margin-bottom:18px;
}

.footer-links{
  display:flex;
  flex-direction:column;
  gap:12px;
}

.footer-links a{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
  color:#0f172a;
  text-decoration:none;
  padding:14px 16px;
  border-radius:18px;
  border:1px solid rgba(148, 163, 184, .18);
  background:rgba(248, 250, 252, .85);
  transition:transform .2s ease, box-shadow .2s ease, border-color .2s ease, color .2s ease;
  font-weight:700;
}

.footer-links a:hover{
  color:#0f766e;
  transform:translateY(-2px);
  border-color:rgba(15, 118, 110, .26);
  box-shadow:0 14px 28px rgba(15, 23, 42, .08);
}

.footer-link-arrow{
  color:#2563eb;
  font-weight:900;
}

.footer-mini-note{
  margin-top:16px;
  padding:14px 16px;
  border-radius:18px;
  background:rgba(255,255,255,.68);
  color:#64748b;
  font-size:.92rem;
  line-height:1.7;
}

.footer-map-frame{
  overflow:hidden;
  border-radius:22px;
  box-shadow:0 18px 36px rgba(15, 23, 42, .12);
}

.footer-map iframe{
  display:block;
  width:100%;
  border:0;
}

.footer-divider{
  border-top:1px solid rgba(148, 163, 184, .20);
  margin:28px 0 0;
}

.footer-bottom{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px 24px;
  flex-wrap:wrap;
  padding-top:20px;
}

.footer-bottom-copy{
  color:#0f172a;
  font-size:.92rem;
  font-weight:700;
}

.footer-bottom-meta{
  color:#64748b;
  font-size:.9rem;
}

.footer-badge{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  background:linear-gradient(135deg, #16a34a, #0f766e);
  color:#fff;
  padding:5px 12px;
  border-radius:999px;
  font-size:.72rem;
  font-weight:800;
  letter-spacing:.04em;
}

@media (max-width: 991.98px){
  .footer-shell{
    padding:22px;
    border-radius:24px;
  }

  .footer-contact-grid{
    grid-template-columns:1fr;
  }

  .footer-brand-head{
    align-items:flex-start;
    flex-direction:column;
  }
}

@media (max-width: 575.98px){
  .footer-modern{
    padding:28px 0 20px;
  }

  .footer-panel{
    padding:18px;
    border-radius:20px;
  }

  .footer-bottom{
    align-items:flex-start;
    flex-direction:column;
  }
}
