.modal-open .model{
  overflow-x: hidden;
  overflow-y: auto;
}

.model{
  height: 100%;
  position: fixed !important;
  z-index: 1050 !important;
}

.main {
    -webkit-animation: toast-in 0.25s; /* Safari, Chrome and Opera > 12.1 */
       -moz-animation: toast-in 0.25s; /* Firefox < 16 */
        -ms-animation: toast-in 0.25s; /* Internet Explorer */
         -o-animation: toast-in 0.25s; /* Opera < 12.1 */
            animation: toast-in 0.25s;
}

@keyframes toast-in {
    from { opacity: 0; }
    to   { opacity: 1; }
}

/* Firefox < 16 */
@-moz-keyframes toast-in {
    from { opacity: 0; }
    to   { opacity: 1; }
}

/* Safari, Chrome and Opera > 12.1 */
@-webkit-keyframes toast-in {
    from { opacity: 0; }
    to   { opacity: 1; }
}

/* Internet Explorer */
@-ms-keyframes toast-in {
    from { opacity: 0; }
    to   { opacity: 1; }
}

/* Opera < 12.1 */
@-o-keyframes toast-in {
    from { opacity: 0; }
    to   { opacity: 1; }
}

.main > div.container{
    background-color: white;
}

/* SET FOR WEBSITE */
.btn{height: auto;}

.controls .notification{
    font-weight: bold;
}
.active-menu{background-color: #292865;border-radius: 0.3rem;}
.active-submenu{background-color: #feffb1;}
.uiPopover .btn-box{background-color:#fff}
.alert-messages{
    top:100px;
}

a:hover{
    text-decoration: none !important;
}

.has-error .form-control, .has-error .select2-selection {
    border-color: #a94442 !important;
    -webkit-box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075) !important;
    box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075) !important;
}

.has-error .form-control:focus, .has-error .select2-selection:focus {
    border-color: #843534 !important;
    -webkit-box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075), 0 0 6px #ce8483 !important;
    box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075), 0 0 6px #ce8483 !important;
}

/* ตัวหลัก Select2 */
.select2-container .select2-selection--single {
    height: calc(2.25rem + 2px);
    padding: .375rem .75rem;
    border: 1px solid #ced4da;
    border-radius: .25rem;
}

/* text ด้านใน */
.select2-container .select2-selection__rendered {
    line-height: 1.5 !important;
    padding-left: 0 !important;
}

/* ลูกศร dropdown */
.select2-container .select2-selection__arrow {
    height: calc(2.25rem + 2px);
    right: 10px;
}

/* focus state ให้เหมือน bootstrap */
.select2-container--default.select2-container--focus .select2-selection--single {
    border-color: #80bdff;
    outline: 0;
    box-shadow: 0 0 0 .2rem rgba(0,123,255,.25);
}

/* disabled */
.select2-container--disabled .select2-selection {
    background-color: #e9ecef;
    opacity: 1;
}

/* fix width ให้เต็ม */
.select2-container {
    width: 100% !important;
}

.select2-dropdown {
    border: 1px solid #ced4da;
    border-radius: .25rem;
}

.select2-results__option--highlighted {
    background-color: #007bff;
}

.control-label{
    font-weight: bold !important;
    color:#000000 !important;
}

/* ==========================================================================
   GE LPRU - Custom Scoped Styles
   ========================================================================== */

/* --- Hero Banner / Slider --- */
.ge-hero-slider .carousel-item {
  height: 380px;
  background-color: #212529;
  border-radius: 12px;
  overflow: hidden;
}
.ge-hero-slider .img-slide {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.ge-hero-slider .carousel-caption {
  background: linear-gradient(180deg, transparent 0%, rgba(0,0,0,0.85) 100%);
  left: 0; right: 0; bottom: 0;
  padding: 20px 30px;
  text-align: left;
}

/* --- News Section (หน้าแรก & รายการข่าวสาร) --- */
.ge-news-card {
  transition: all 0.2s ease-in-out;
}
.ge-news-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.08) !important;
}
.ge-news-img-holder {
  width: 100%;
  height: 100px;
  overflow: hidden;
  background-color: #f8f9fa;
}
.ge-news-img-holder img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* --- News List Item (หน้ารายการข่าวสาร) --- */
.ge-news-item {
  transition: all 0.2s ease;
  border-radius: 6px;
}
.ge-news-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 0.25rem 0.5rem rgba(0, 0, 0, 0.06) !important;
}
.ge-news-item-img {
  width: 100%;
  height: 120px;
  object-fit: cover;
  border-radius: 4px;
  background-color: #f8f9fa;
}

/* --- News Detail Page (หน้าอ่านข่าว) --- */
.ge-news-detail-header {
  border-bottom: 1px solid #e9ecef;
  padding-bottom: 1rem;
  margin-bottom: 1.5rem;
}
.ge-related-card {
  transition: transform 0.2s ease;
  border-radius: 8px;
  overflow: hidden;
}
.ge-related-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.1) !important;
}
.ge-related-img {
  height: 140px;
  width: 100%;
  object-fit: cover;
}

/* --- Manage Categories / Sortable (ระบบจัดการหลังบ้าน) --- */
.ge-drag-handle {
  cursor: grab;
  font-size: 1.2rem;
}
.ge-drag-handle:active {
  cursor: grabbing;
}
.ge-status-badge {
  font-size: 0.875rem;
  padding: 6px 12px;
  border-radius: 4px;
}
/* --- GE Empty State Container --- */
.ge-empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 3rem 1.5rem;
  text-align: center;
}

.ge-empty-state i {
  font-size: 3.5rem;
  line-height: 1;
  margin-bottom: 1rem;
  color: #6c757d;
  display: inline-block;
}

/* --- บังคับให้ Emoji และข้อความในเนื้อหาข่าวเรียงแถวเดียวกัน ไม่แตกบรรทัด --- */
.ge-news-content p,
.post-content p {
    margin-bottom: 0.75rem;
    line-height: 1.7;
}

/* ป้องกันไม่ให้ span / font / img ในเนื้อหาข่าวแยกบรรทัด */
.ge-news-content p > *,
.post-content p > * {
    display: inline !important;
    vertical-align: middle;
}

/* ลบระยะเว้นวรรคล่องหนและควบคุมระยะ Emoji */
.ge-news-content,
.post-content {
    word-break: break-word;
}