
@media screen and (min-width: 280px) and (max-width: 768px) {
  .screen-student-main {
    background-image: url('../../images/screen_student_main2.jpg') ;
    background-position: left;
    background-repeat: no-repeat;
  }
  .box-register-status {
    padding:5px;
  }
}
@media screen and (min-width: 768px) and (max-width: 2560px) {
  .screen-student-main {
    background-image: url('../../images/screen_student_main1.jpg') ;
    background-position: left;
    background-repeat: no-repeat;
  }
  .box-register-status {
    padding:5px;
  }
}
@media screen and (min-width: 375px) and (max-width: 1080px) and (orientation: landscape) {
  .screen-student-main {
    background-image: url('../../images/screen_student_main3.jpg') ;
    background-position: left;
    background-repeat: no-repeat;
  }
  .box-register-status {
    padding:5px;
  }
}

.clock-body {
	background-image: url("../../images/icon/bg_clock.png");
  background-position: left;
  background-repeat: no-repeat;
	height: 75px;
  width: 100%;
	margin: 0 auto;
}
.clock-content {
  width: 100%;
  position: relative;
}
.clock-time {
	padding: 5px 10px 5px 10px;
  /* margin-left: 50px; */
  margin-top: -5px;
	font-size: 32px;
	text-align: center;
	font-weight: bold;
}
.clock-day {
	float: left;
  width: 100%;
  text-align: center;
}
.clock-dmy {
  float: left;
  width: 100%;
  margin-top: -8px;
  /* margin-left: 20px; */
	text-align: center;
}

.widget-user-image2 {
    left: 49%;
    margin-left: -45px;
    position: absolute;
    top: 80px;

    .img {
      border: 3px solid white;
      height: auto;
      width: auto;
    }
  }
/* ------------------------------------------------------------
   [NEW 22-11-2569] Popup Modal : ป๊อปอัปประชาสัมพันธ์
   ------------------------------------------------------------ */
.site-popup-modal .modal-content {
    border: none;
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 24px 80px rgba(0,0,0,.4);
}
.site-popup-modal .modal-dialog {
    max-width: 780px;
    width: calc(100% - 2rem);
}

/* ปุ่มปิดวงกลม */
.site-popup-modal .popup-close-btn {
    position: absolute;
    top: .75rem;
    right: .75rem;
    z-index: 10;
    width: 36px;
    height: 36px;
    background-color: rgba(255,255,255,.9);
    border-radius: 50%;
    padding: 0;
    opacity: 1;
    filter: none;
    box-shadow: 0 2px 8px rgba(0,0,0,.25);
    display: flex;
    align-items: center;
    justify-content: center;
    border: 0;
    cursor: pointer;
}
.site-popup-modal .popup-close-btn span {
    font-size: 1.4rem;
    line-height: 1;
    font-weight: 300;
    color: #333;
}

/* Footer (แถบชื่อ) */
.site-popup-modal .popup-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: .5rem .75rem;
    background: #c0392b;
    border: none;
}
.site-popup-modal .popup-footer span {
    color: #fff;
    font-weight: 600;
    font-size: 1rem;
}
.site-popup-modal .popup-footer .btn-close-popup {
    background: #fff;
    border: 0;
    color: #333;
    font-size: 1rem;
    padding: .25rem .75rem;
    border-radius: 12px;
    cursor: pointer;
}
.site-popup-modal .popup-footer .btn-close-popup:hover {
    background: #f0f0f0;
}

/* รูปภาพ */
.site-popup-modal .popup-img-wrap {
    display: block;
    width: 100%;
}
.site-popup-modal .popup-img-wrap img {
    width: 100%;
    display: block;
}

/* เนื้อหา (text_image) */
.site-popup-modal .popup-content {
    padding: 1rem;
    max-height: 300px;
    overflow-y: auto;
    background: #f8f9fa;
    border-top: 1px solid #eee;
}
/* ------------------------------------------------------------
   [FIX 22-11-2569] เพิ่มเติมสำหรับ Popup หน้าเว็บ
   - จัดการเนื้อหา CKEditor (<p>, รูปภาพ, ตาราง)
   - จัดการปุ่มปิด (fa-x)
   ------------------------------------------------------------ */

/* 1. ปรับปุ่มปิดให้รองรับ Font Awesome (fa-x) */
.site-popup-modal .popup-close-btn i {
    font-size: 22px;
    color: #333;
    font-weight: 800;
    line-height: 1;
}
.site-popup-modal .popup-close-btn:hover i {
    color: #000;
}

/* 2. จัดการเนื้อหาใน .popup-content (CKEditor) */
.site-popup-modal .popup-content p {
    margin: 0 0 0.5em 0;
    line-height: 1.6;
    color: #333;
}
.site-popup-modal .popup-content p:last-child {
    margin-bottom: 0;
}
.site-popup-modal .popup-content h1,
.site-popup-modal .popup-content h2,
.site-popup-modal .popup-content h3,
.site-popup-modal .popup-content h4,
.site-popup-modal .popup-content h5,
.site-popup-modal .popup-content h6 {
    margin: 10px 0 6px 0;
    line-height: 1.4;
    color: #222;
}
.site-popup-modal .popup-content ul,
.site-popup-modal .popup-content ol {
    padding-left: 1.5em;
    margin: 0 0 8px 0;
}
.site-popup-modal .popup-content li {
    margin: 2px 0;
    line-height: 1.5;
}
.site-popup-modal .popup-content img {
    max-width: 100%;
    height: auto;
    border-radius: 6px;
    margin: 8px 0;
}
.site-popup-modal .popup-content table {
    width: 100%;
    margin: 8px 0;
    border-collapse: collapse;
}
.site-popup-modal .popup-content table th,
.site-popup-modal .popup-content table td {
    border: 1px solid #dee2e6;
    padding: 6px 10px;
}
.site-popup-modal .popup-content a {
    color: #007bff;
    text-decoration: underline;
}

/* 3. จัดการรูปภาพ CKEditor (figure.image) ที่อาจล้น */
.site-popup-modal .popup-content figure.image {
    margin: 8px 0;
    max-width: 100%;
}
.site-popup-modal .popup-content figure.image img {
    max-width: 100%;
    height: auto;
}

/* 4. Responsive : จอเล็ก */
@media (max-width: 576px) {
    .site-popup-modal .modal-dialog {
        max-width: 95%;
        margin: 0.5rem auto;
    }
    .site-popup-modal .popup-footer span {
        font-size: 0.85rem;
    }
    .site-popup-modal .popup-footer .btn-close-popup {
        font-size: 0.85rem;
        padding: 4px 8px;
    }
    .site-popup-modal .popup-content {
        max-height: 200px;
        padding: 0.75rem;
    }
}
/* ------------------------------------------------------------
   [FIX 22-11-2569] ปรับ CSS Popup หน้าเว็บ (Frontend)
   ให้แสดงผลเหมือนกับหน้า Admin (register_information_popup.php)
   ------------------------------------------------------------ */

/* 1. จัดการพื้นหลังของ Modal (ให้เป็นสีขาว ไม่ใช่โปร่งใส) */
.site-popup-modal .modal-content {
    background-color: #fff;
}

/* 2. ปรับแต่งรูปภาพใน CKEditor ให้เหมือนหน้า Admin (ชิดซ้าย/กึ่งกลางตามที่ตั้งไว้) */
.site-popup-modal .popup-content {
    text-align: left;
}
.site-popup-modal .popup-content p {
    margin: 0 0 0.25em 0 !important;
    line-height: 1.5 !important;
}
.site-popup-modal .popup-content p:last-child {
    margin-bottom: 0 !important;
}
.site-popup-modal .popup-content figure.image {
    display: table !important;
    margin: 1em auto !important;
    clear: both;
}
.site-popup-modal .popup-content figure.image img {
    display: block;
    max-width: 100% !important;
    height: auto !important;
    margin: 0 auto !important;
}
/* จัดตำแหน่งรูปภาพของ CKEditor */
.site-popup-modal .popup-content .image-style-block-align-center {
    margin-left: auto !important;
    margin-right: auto !important;
    text-align: center !important;
}
.site-popup-modal .popup-content .image-style-block-align-left {
    margin-left: 0 !important;
    margin-right: auto !important;
    text-align: left !important;
}
.site-popup-modal .popup-content .image-style-block-align-right {
    margin-left: auto !important;
    margin-right: 0 !important;
    text-align: right !important;
}

/* 3. ปรับขนาดฟอนต์และสีของหัวข้อ/ท้าย (ให้เหมือนหน้า Admin) */
.site-popup-modal .popup-footer span {
    font-size: 1rem; /* ขนาดฟอนต์ในหน้า Admin ใช้ 14px */
    font-weight: bold;
    color: #fff;
}
.site-popup-modal .popup-footer .btn-close-popup {
    background: #fff;
    color: #333;
    border: none;
    padding: 5px 12px;
    border-radius: 5px;
    font-size: 13px;
    font-weight: 600;
}
.site-popup-modal .popup-footer .btn-close-popup:hover {
    background: #e9ecef;
}

/* 4. ปุ่มปิดวงกลม (X) ให้ขนาดเท่ากับหน้า Admin */
.site-popup-modal .popup-close-btn {
    width: 36px;
    height: 36px;
    top: 15px;
    right: 15px;
    background-color: rgba(255,255,255,.9);
    border-radius: 50%;
    box-shadow: 0 2px 8px rgba(0,0,0,.25);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #333;
    font-size: 18px;
}
.site-popup-modal .popup-close-btn:hover {
    background-color: #fff;
    transform: scale(1.05);
}

/* 5. [สำคัญ] ขนาดความกว้างของ Modal ให้เท่ากับหน้า Admin */
.site-popup-modal .modal-dialog {
    max-width: 780px;
    width: calc(100% - 2rem);
}

/* 6. จัดการเนื้อหาใน CKEditor */
.site-popup-modal .popup-content {
    padding: 1rem;
    max-height: 75vh; /* ปรับให้สูงได้ถึง 65% ของหน้าจอ */
    overflow-y: auto; /* ให้เลื่อนได้เมื่อเนื้อหายาวเกิน */
    background: #f8f9fa;
    border-top: 1px solid #eee;
    /* เพิ่ม Scrollbar แบบโปร่งใส */
    scrollbar-width: thin;
    scrollbar-color: rgba(0,0,0,0.2) transparent;
}
/* ------------------------------------------------------------
   [FIX 22-11-2569] บังคับการแสดงผลตัวหนา/เอียง/ขีดเส้นใต้
   ------------------------------------------------------------ */
.site-popup-modal .popup-content strong,
.site-popup-modal .popup-content b {
    font-weight: bold !important;
}

.site-popup-modal .popup-content em,
.site-popup-modal .popup-content i {
    font-style: italic !important;
}

.site-popup-modal .popup-content u {
    text-decoration: underline !important;
}
/* ------------------------------------------------------------
   [FIX 22-11-2569] ปรับแต่ง Scrollbar ให้โปร่งใส (สำหรับ Webkit)
   ------------------------------------------------------------ */
.site-popup-modal .popup-content::-webkit-scrollbar {
    width: 6px; /* ความกว้างของ Scrollbar */
}
.site-popup-modal .popup-content::-webkit-scrollbar-track {
    background: transparent; /* พื้นหลังโปร่งใส */
}
.site-popup-modal .popup-content::-webkit-scrollbar-thumb {
    background-color: rgba(0, 0, 0, 0.2); /* สีเทาโปร่งแสง */
    border-radius: 10px; /* มนโค้ง */
}
.site-popup-modal .popup-content::-webkit-scrollbar-thumb:hover {
    background-color: rgba(0, 0, 0, 0.4); /* เข้มขึ้นเมื่อเอาเมาส์วาง */
}