/*--------------------------------------------------------------
# General
--------------------------------------------------------------*/

@font-face {
    font-family: "Phetsarath OT";
    src: url(../font/PhetsarathOT.eot);
    src: local("Phetsarath OT"), url('../font/PhetsarathOT.ttf') format('truetype');
    /*non IE */
}

:root {
    scroll-behavior: smooth;
}

body {
    font-family: "Phetsarath OT", "Nunito", "Open Sans", sans-serif;
    color: #444444;
}

a {
    color: #4154f1;
    text-decoration: none;
}

a:hover {
    color: #717ff5;
    text-decoration: none;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: "Phetsarath OT", "Nunito", sans-serif;
}


/*--------------------------------------------------------------
# Sections
--------------------------------------------------------------*/

section {
    padding: 20px 0;
    overflow: hidden;
}

.section-header {
    text-align: center;
    padding-bottom: 20px;
}

.section-header h2 {
    font-size: 15px;
    letter-spacing: 1px;
    font-weight: 700;
    margin: 0;
    color: #4154f1;
    text-transform: uppercase;
}

.section-header p {
    margin: 10px 0 0 0;
    padding: 0;
    font-size: 30px;
    line-height: 42px;
    font-weight: 700;
    color: #012970;
}

@media (max-width: 768px) {
    .section-header p {
        font-size: 28px;
        line-height: 32px;
    }


}


/*--------------------------------------------------------------
# Breadcrumbs
--------------------------------------------------------------*/

.breadcrumbs {
    padding: 10px 0;
    background: #0072B5;
    min-height: 30px;
    margin-top: 80px;
    color: #fff;
}

@media (max-width: 992px) {
    .breadcrumbs {
        margin-top: 65px;
    }
}

.breadcrumbs h2 {
    font-size: 28px;
    font-weight: 500;
}

.breadcrumbs ol {
    display: flex;
    flex-wrap: wrap;
    list-style: none;
    padding: 0 0 0px 0;
    margin: 0;
    font-size: 14px;
}

.breadcrumbs ol a {
    color: #fff;
    transition: 0.3s;
}

.breadcrumbs ol a:hover {
    text-decoration: underline;
}

.breadcrumbs ol li+li {
    padding-left: 10px;
}

.breadcrumbs ol li+li::before {
    display: inline-block;
    padding-right: 10px;
    color: #8894f6;
    content: "/";
}


/*--------------------------------------------------------------
# Preloader
--------------------------------------------------------------*/
#preloader {
  position: fixed;
  background: var(--color-white);
  inset: 0;
  z-index: 999999;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.5s ease-out;
}

#preloader::before {
  content: "";
  width: 50px;
  aspect-ratio: 1;
  border-radius: 50%;
  background:
    radial-gradient(farthest-side, #28a745 94%, #0000) top/8px 8px no-repeat,
    conic-gradient(#0000 30%, #28a745);
  -webkit-mask: radial-gradient(farthest-side, #0000 calc(100% - 8px), #000 0);
  animation: l13 1s infinite linear;
}

@keyframes l13 {
  100% {
    transform: rotate(1turn);
  }
}

/*--------------------------------------------------------------
# Back to top button
--------------------------------------------------------------*/

.back-to-top {
  position: fixed;
  visibility: hidden;
  opacity: 0;
  right: 15px;
  bottom: 15px;
  z-index: 996;
  background: #01b;
  width: 40px;
  height: 40px;
  border-radius: 4px;
  transition: all 0.4s;
  display: flex;
  align-items: center;
  justify-content: center;
}

.back-to-top i {
  font-size: 28px;
  color: #fff;
}

.back-to-top:hover {
  background: #03d1fe;
  color: #fff;
}

.back-to-top.active {
  visibility: visible;
  opacity: 1;
}


/*--------------------------------------------------------------
# Disable aos animation delay on mobile devices
--------------------------------------------------------------*/

@media screen and (max-width: 768px) {
    [data-aos-delay] {
        transition-delay: 0 !important;
    }
}


/*--------------------------------------------------------------
# Header
--------------------------------------------------------------*/

.header {
    transition: all 0.5s;
    z-index: 997;
    padding: 20px 0;
}

.header.header-scrolled {
    background: #fff;
    padding: 15px 0;
    box-shadow: 0px 2px 20px rgba(1, 41, 112, 0.1);
}

.header .logo {
    line-height: 0;
}

.header .logo img {
    max-height: 60px;
    margin-right: 6px;
}

.header .logo span {
    font-size: 20px;
    font-weight: 700;
    letter-spacing: 1px;
    color: #012970;
    font-family: "Phetsarath OT", "Nunito", sans-serif;
    margin-top: 3px;
}


/*--------------------------------------------------------------
# Navigation Menu
--------------------------------------------------------------*/


/**
* Desktop Navigation
*/

.navbar {
    padding: 0;
}

.navbar ul {
    margin: 0;
    padding: 0;
    display: flex;
    list-style: none;
    align-items: center;
}

.navbar li {
    position: relative;
}

.navbar a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 0 10px 50px;
    font-family: "Phetsarath OT", "Nunito", sans-serif;
    font-size: 16px;
    font-weight: 700;
    color: #013289;
    white-space: nowrap;
    transition: 0.3s;
}

.navbar a i {
    font-size: 12px;
    line-height: 0;
    margin-left: 5px;
}

.navbar a:hover,
.navbar .active,
.navbar li:hover>a {
    color: #4154f1;
}

.navbar .getstarted {
    background: #2690D7;
    padding: 8px 20px;
    margin-left: 30px;
    border-radius: 4px;
    color: #fff;
}

.navbar .getstarted:hover {
    color: #4154f1;
    background: #63BCE5;
}

.navbar .dropdown ul {
    display: block;
    position: absolute;
    left: 14px;
    top: calc(100% + 30px);
    margin: 0;
    padding: 10px 0;
    z-index: 99;
    opacity: 0;
    visibility: hidden;
    background: #fff;
    box-shadow: 0px 0px 30px rgba(127, 137, 161, 0.25);
    transition: 0.3s;
    border-radius: 4px;
}

.navbar .dropdown ul li {
    min-width: 200px;
}

.selected {
    color: #4154f1;
}

.navbar .dropdown ul a {
    padding: 10px 20px;
    font-size: 15px;
    text-transform: none;
    font-weight: 600;
}

.navbar .dropdown ul a i {
    font-size: 12px;
}

.navbar .dropdown ul a:hover,
.navbar .dropdown ul .active:hover,
.navbar .dropdown ul li:hover>a {
    background-color: #0072B5;
    color: #FFFAFA;
}

.navbar .dropdown:hover>ul {
    opacity: 1;
    top: 100%;
    visibility: visible;
}

.navbar .dropdown .dropdown ul {
    top: 0;
    left: calc(100% - 30px);
    visibility: hidden;
}

.navbar .dropdown .dropdown:hover>ul {
    opacity: 1;
    top: 0;
    left: 100%;
    visibility: visible;
}

@media (max-width: 1366px) {
    .navbar .dropdown .dropdown ul {
        left: -90%;
    }
    .navbar .dropdown .dropdown:hover>ul {
        left: -100%;
    }
}


/**
* Mobile Navigation
*/

.mobile-nav-toggle {
    color: #012970;
    font-size: 28px;
    cursor: pointer;
    display: none;
    line-height: 0;
    transition: 0.5s;
}

.mobile-nav-toggle.bi-x {
    color: #fff;
}

@media (max-width: 991px) {
    .mobile-nav-toggle {
        display: block;
    }
    .navbar ul {
        display: none;
    }
}

.navbar-mobile {
    position: fixed;
    overflow: hidden;
    top: 0;
    right: 0;
    left: 0;
    bottom: 0;
    background: rgba(1, 22, 61, 0.9);
    transition: 0.3s;
}

.navbar-mobile .mobile-nav-toggle {
    position: absolute;
    top: 15px;
    right: 15px;
}

.navbar-mobile ul {
    display: block;
    position: absolute;
    top: 55px;
    right: 15px;
    bottom: 15px;
    left: 15px;
    padding: 10px 0;
    border-radius: 10px;
    background-color: #fff;
    overflow-y: auto;
    transition: 0.3s;
}

.navbar-mobile a {
    padding: 10px 20px;
    font-size: 15px;
    color: #012970;
}

.navbar-mobile a:hover,
.navbar-mobile .active,
.navbar-mobile li:hover>a {
    color: #4154f1;
}

.navbar-mobile .getstarted {
    margin: 15px;
}

.navbar-mobile .dropdown ul {
    position: static;
    display: none;
    margin: 10px 20px;
    padding: 10px 0;
    z-index: 99;
    opacity: 1;
    visibility: visible;
    background: #fff;
    box-shadow: 0px 0px 30px rgba(127, 137, 161, 0.25);
}

.navbar-mobile .dropdown ul li {
    min-width: 200px;
}

.navbar-mobile .dropdown ul a {
    padding: 10px 20px;
}

.navbar-mobile .dropdown ul a i {
    font-size: 12px;
}

.navbar-mobile .dropdown ul a:hover,
.navbar-mobile .dropdown ul .active:hover,
.navbar-mobile .dropdown ul li:hover>a {
    background-color: #0072B5;
    color: #FFFAFA;
}

.navbar-mobile .dropdown>.dropdown-active {
    display: block;
}


































/* --- LAYOUT --- */
.hero-layout{ display:flex; gap:1rem; align-items:stretch; }
.hero-main{ flex:3 1 0; min-width:0; }       /* ~75% */
.hero-side{ flex:1 1 0; min-width:240px; max-width:420px;
  background:#fff; border:1px solid #eee; border-radius:0px; padding:12px;
  box-shadow:0 2px 8px rgba(32, 9, 206, 0.04);
}
@media (max-width: 768px){
  .hero-layout{ flex-direction:column; }
  .hero-side{ order:2; }
  .hero-main{ order:1; }
}

/* --- SWIPER SIZING --- */
.hero-swiper{
  position: relative;      /* anchor arrows to slider */
  width:100%; height:100%;
  min-height:360px;
  border-radius:0px;
  overflow:hidden;         /* keep arrows inside */
  z-index:1;

  /* optional fine-tuning for Swiper */
  --swiper-navigation-sides-offset: 12px;
  --swiper-navigation-size: 24px;
}
.swiper-slide{ position: relative; } /* for the overlay */
.sliderimage{ width:100%; height:56vh; object-fit:cover; display:block; }
@media (max-width: 992px){ .sliderimage{ height:40vh; } }
@media (max-width: 768px){ .sliderimage{ height:34vh; } }

/* --- OVERLAY --- */
.hero-detail{
  position:absolute; left:0; right:0; bottom:0;
  padding:16px 20px;
  background:linear-gradient(180deg, transparent, rgba(255, 255, 255, 0.369));
  color:#1900ff;
}
.hero-title{ font-size:1.25rem; font-weight:700; line-height:1.2; }
.hero-title small{ font-weight:500; opacity:.9; }

/* --- ARROWS (INSIDE SLIDER) --- */
.hero .swiper-button-prev,
.hero .swiper-button-next{
  position:absolute; top:50%; transform:translateY(-50%);
  z-index:5;
  width:60px; height:60px; border-radius:50%;
  background-color:rgba(255,255,255,.2);
  display:flex; align-items:center; justify-content:center;
  transition: background-color .3s ease, transform .3s ease;
  color:#fff; text-shadow:0 2px 6px rgba(0,0,0,.4);
}
.hero .swiper-button-prev{ left:12px; right:auto; }
.hero .swiper-button-next{ right:12px; left:auto; }
.hero .swiper-button-prev::after,
.hero .swiper-button-next::after{ font-size:24px; font-weight:bold; color:#fff; }
.hero .swiper-button-prev:hover,
.hero .swiper-button-next:hover{ background-color:rgba(255,255,255,.6); transform:translateY(-50%) scale(1.1); }

@media (max-width: 991px){
  .hero .swiper-button-prev, .hero .swiper-button-next{ width:40px; height:40px; }
  .hero .swiper-button-prev::after, .hero .swiper-button-next::after{ font-size:18px; }
}

/* --- PAGINATION --- */
.hero-swiper .swiper-pagination-bullet{ opacity:.6; }
.hero-swiper .swiper-pagination-bullet-active{ opacity:1; }

/* --- NOTIFICATIONS --- */
.side-header{ display:flex; justify-content:space-between; align-items:center; margin-bottom:.25rem; }
.side-title{ font-weight:700; }
.side-list{ list-style:none; margin:0; padding:8px 0 0; }
.side-item + .side-item{ margin-top:6px; }
.side-link{
  display:flex; justify-content:space-between; align-items:center; gap:.5rem;
  padding:10px 12px; border-radius:2px; text-decoration:none; color:#111;
  background:#fafafa; border:1px solid #eee;
}
.side-link:hover{ background:#f3f4f6; }
.side-text{ font-size:.95rem; line-height:1.3; }
.side-badge{ font-size:.75rem; background:#eef2ff; color:#3730a3; border-radius:999px; padding:2px 8px; }
.side-empty{ color:#777; padding:10px; text-align:center; }

/*--------------------------------------------------------------
# Custom Card
--------------------------------------------------------------*/


.custom-card .card {
  border: none;
  border-radius: 12px;
  transition: box-shadow 0.3s ease, transform 0.5s ease;
  will-change: transform;
}

.custom-card .card:hover {
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
  transform: scale(1.015); /* เล็กน้อยมาก */
}

.custom-card .card-img-top {
  height: 180px;
  object-fit: cover;
  border-radius: 12px 12px 0 0;
}

.custom-card .card-title {
  font-size: 1rem;
  font-weight: 600;
}

.custom-card .card-type {
  font-size: 0.875rem;
  color: #888;
  margin-bottom: 0.5rem;
  font-weight: 500;
}

.custom-card .card-description {
  font-size: 0.875rem;
  color: #555;
  line-height: 1.4;
  margin-bottom: 1rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;        /* limit to 2 lines */
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
}



/*--------------------------------------------------------------
# Footer
--------------------------------------------------------------*/

.footer {
    background: #0072B5;
    padding: 0 0 30px 0;
    font-size: 14px;
}

.footer .footer-featuresletter {
    padding: 50px 0;
    background: #f6f9ff;
    border-top: 1px solid #e1ecff;
}

.footer .footer-featuresletter h4 {
    font-size: 24px;
    margin: 0 0 10px 0;
    padding: 0;
    line-height: 1;
    font-weight: 700;
    color: #012970;
}

.footer .footer-featuresletter form {
    margin-top: 20px;
    background: #fff;
    padding: 6px 10px;
    position: relative;
    border-radius: 4px;
    border: 1px solid #e1ecff;
}

.footer .footer-featuresletter form input[type="email"] {
    border: 0;
    padding: 8px;
    width: calc(100% - 140px);
}

.footer .footer-featuresletter form input[type="submit"] {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    border: 0;
    background: none;
    font-size: 16px;
    padding: 0 30px;
    margin: 3px;
    background: #4154f1;
    color: #fff;
    transition: 0.3s;
    border-radius: 4px;
}

.footer .footer-featuresletter form input[type="submit"]:hover {
    background: #5969f3;
}

.footer .footer-top {
    background: #FFFAFA;
    background-size: contain;
    border-top: 1px solid #e1ecff;
    border-bottom: 1px solid #e1ecff;
    padding: 60px 0 30px 0;
}

@media (max-width: 992px) {
    .footer .footer-top {
        background-position: center bottom;
    }

}

.footer .footer-top .footer-info {
    margin-bottom: 30px;
}

.footer .footer-top .footer-info .logo {
    line-height: 0;
    margin-bottom: 15px;
}

.footer .footer-top .footer-info .logo img {
    max-height: 40px;
    margin-right: 6px;
}

.footer .footer-top .footer-info .logo span {
    font-size: 30px;
    font-weight: 700;
    letter-spacing: 1px;
    color: #012970;
    font-family: "Phetsarath OT", "Nunito", sans-serif;
    margin-top: 3px;
}

.footer .footer-top .footer-info p {
    font-size: 14px;
    line-height: 24px;
    margin-bottom: 0;
    font-family: "Phetsarath OT", "Nunito", sans-serif;
}

.footer .footer-top .social-links a {
    font-size: 20px;
    display: inline-block;
    color: #0072B5;
    line-height: 0;
    margin-right: 10px;
    transition: 0.3s;
}

.footer .footer-top .social-links a:hover {
    color: #4154f1;
}

.footer .footer-top .social-links span {
    font-size: 0.6em;
    vertical-align: middle;
}

.footer .footer-top h4 {
    font-size: 16px;
    font-weight: bold;
    color: #012970;
    text-transform: uppercase;
    position: relative;
    padding-bottom: 12px;
}

.footer .footer-top .footer-links {
    margin-bottom: 30px;
}

.footer .footer-top .footer-links ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer .footer-top .footer-links ul i {
    padding-right: 2px;
    color: #d0d4fc;
    font-size: 12px;
    line-height: 0;
}

.footer .footer-top .footer-links ul li {
    padding: 10px 0;
    display: flex;
    align-items: center;
}

.footer .footer-top .footer-links ul li:first-child {
    padding-top: 0;
}

.footer .footer-top .footer-links ul a {
    color: #013289;
    transition: 0.3s;
    display: inline-block;
    line-height: 1;
}

.footer .footer-top .footer-links ul a:hover {
    color: #4154f1;
    font-weight: 900;
}

.footer .footer-top .footer-contact p {
    line-height: 26px;
}

.footer .copyright {
    text-align: center;
    padding-top: 30px;
    color: #FFFAFA;
}

.footer .credits {
    padding-top: 10px;
    text-align: center;
    font-size: 13px;
    color: #012970;
}



.detail-image {
  max-width: 100%;
}

@media (min-width: 992px) { /* Bootstrap lg breakpoint */
  .detail-image {
    max-width: 80%;
  }
}


@media (max-width: 768px) {
    /* Example: Targeting the ID of a parent element if it exists */
    .hero-swiper {
        min-height: 270px !important; /* Use !important only as a last resort for testing */
    }
}
