    :root {
       --krph-font:'K2D',sans-serif;
      --krph-blue:      #0077b6;
      --krph-sky:       #00b4d8;
      --krph-light:     #e8f4fd;
      --krph-dark:      #023e8a;
      --krph-white:     #ffffff;
      --krph-gray-bg:   #f4f8fc;
      --krph-text:      #1a2f4a;
    }

    * { box-sizing: border-box; }
    body{
/*      padding-top: 110px;*/
     font-family: 'K2D', sans-serif !important;
      -webkit-font-smoothing:antialiased;
      min-height:100vh;

      background:
      radial-gradient(circle at 15% 20%,rgba(0,123,255,.08) 0,transparent 18%),
      radial-gradient(circle at 85% 80%,rgba(0,180,216,.08) 0,transparent 20%),
      linear-gradient(180deg,#ffffff,#eef7ff,#dcefff);

      background-attachment:fixed;
    }

    /* ─── TOP BAR ─── */
    .topbar {
      background: var(--krph-dark);
      color: #cce7ff;
      font-size: .82rem;
      padding: 6px 0;
    }
    .topbar a { color: #cce7ff; text-decoration: none; }
    .topbar a:hover { color: #fff; }

    /* ─── NAVBAR ─── */
    .navbar-brand { 
      font-weight: 700; 
      color: var(--krph-dark) !important; 
      font-size: .95rem; 
    }
    .navbar-brand span { 
      color: var(--krph-sky); 
    }
    .navbar .nav-link{
      color:var(--krph-blue)!important;
      font-weight:600;
      font-size:.85rem;
      padding:6px 10px!important;
      border-radius:6px;
      transition:.2s;
      white-space:nowrap;
    }

    .navbar .nav-link:hover,
    .navbar .nav-link.active{
      background:var(--krph-light);
      color:var(--krph-dark)!important;
    }

    /* ── ล็อก navbar ไม่ให้ได้รับผลจากปุ่ม A+/A- ── */
    nav.navbar,
    nav.navbar * {
      font-size: 16px !important;   /* ค่าคงที่ px ไม่ยืดหยุ่นตาม body */
    }
    nav.navbar {
      background: #ffffff;
      border-bottom: 3px solid #00b4d8;
      box-shadow: 0 2px 10px rgba(0,119,182,.12);
    }
    .navbar .nav-link {
      color: #0077b6 !important;
      font-weight: 600;
      padding: 6px 10px !important;
      border-radius: 6px;
      transition: background .2s, color .2s;
      white-space: nowrap;
    }
    .navbar .nav-link:hover,
    .navbar .nav-link.active {
      background: #e8f4fd;
      color: #023e8a !important;
    }
    .navbar .dropdown-item {
      font-size: 13.5px !important;
      padding: 7px 16px;
    }
    .navbar .dropdown-item:hover {
      background: #e8f4fd;
      color: #023e8a;
    }
    .navbar .dropdown-menu {
      min-width: 210px;
      border: none;
      box-shadow: 0 4px 16px rgba(0,0,0,.12);
      border-radius: 10px;
    }
    /* ปุ่ม A+/A- */
    .font-ctrl .btn {
      font-size: 12px !important;
      padding: 3px 8px !important;
      line-height: 1.4;
    }

    /* ─── HERO BANNER (placeholder) ─── */
    .hero-banner {
      background: linear-gradient(135deg, var(--krph-dark) 0%, var(--krph-sky) 100%);
      color: #fff;
      padding: 20px 0 20px;
      position: relative;
      overflow: hidden;
    }
    .hero-banner::after {
      content: '';
      position: absolute; inset: 0;
      background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    }
    .hero-badge {
      display: inline-block;
      background: rgba(255,255,255,.18);
      border: 1px solid rgba(255,255,255,.4);
      border-radius: 30px;
      padding: 4px 16px;
      font-size: .85rem;
      margin-bottom: 14px;
    }
    .hero-banner h1 { font-weight: 700; font-size: clamp(1.5rem, 3vw, 2.4rem); }
    .hero-banner p  { font-size: 1.05rem; opacity: .9; }

    /* ─── SECTION LABEL ─── */
    .section-label {
      display: inline-block;
      background: var(--krph-light);
      color: var(--krph-sky);
      font-size: .78rem;
      font-weight: 700;
      letter-spacing: .08em;
      text-transform: uppercase;
      padding: 4px 14px;
      border-radius: 30px;
      margin-bottom: 8px;
    }
    .section-title {
      font-size: 1.5rem;
      font-weight: 700;
      color: var(--krph-dark);
      margin-bottom: 4px;
    }
    .section-underline {
      width: 50px; height: 4px;
      background: linear-gradient(90deg, var(--krph-sky), var(--krph-blue));
      border-radius: 2px;
      margin-bottom: 28px;
    }

    /* ─── DIRECTOR CARD ─── */
    .director-card {
      background: linear-gradient(145deg, var(--krph-dark), var(--krph-sky));
      border-radius: 20px;
      padding: 32px 24px;
      color: #fff;
      text-align: center;
      box-shadow: 0 8px 28px rgba(0,119,182,.25);
      height: 100%;
    }
    .director-card img {
      width: 160px; height: 160px;
      object-fit: cover;
      border-radius: 50%;
      border: 5px solid rgba(255,255,255,.5);
      margin-bottom: 16px;
    }
    .director-card h5 { font-weight: 700; margin-bottom: 4px; }
    .director-card p  { font-size: .9rem; opacity: .88; margin-bottom: 0; }

    /* ─── KPI CARD ─── */
    .kpi-card {
      background: #fff;
      border-radius: 16px;
      padding: 24px;
      box-shadow: 0 4px 18px rgba(0,119,182,.08);
      height: 100%;
    }

    /* ─── STAT CARD ─── */
    .stat-card {
      border-radius: 16px;
      padding: 28px 16px;
      color: #fff;
      text-align: center;
      transition: transform .3s, box-shadow .3s;
      cursor: default;
    }
    .stat-card:hover { transform: translateY(-8px); box-shadow: 0 14px 32px rgba(0,0,0,.22); }
    .stat-card .icon-wrap {
      width: 64px; height: 64px; line-height: 64px;
      border-radius: 50%;
      background: rgba(255,255,255,.2);
      margin: 0 auto 14px;
      font-size: 1.6rem;
    }
    .stat-card h3 { font-size: 2rem; font-weight: 700; margin-bottom: 6px; }
    .stat-card p  { font-size: .92rem; margin: 0; opacity: .9; }

    /* ─── NEWS SIDEBAR TABS ─── */
    .news-tabs .nav-link {
      color: var(--krph-blue) !important;
      font-size: .88rem;
      font-weight: 600;
      border-radius: 8px !important;
      border: none !important;
      display: flex;
      align-items: center;
      gap: 8px;
      padding: 9px 12px !important;
      transition: .2s;
    }
    .news-tabs .nav-link:hover,
    .news-tabs .nav-link.active {
      background: var(--krph-blue) !important;
      color: #fff !important;
    }

    /* ─── SERVICE CARD ─── */
    .service-card{
      border-radius:16px;
      transition:.35s;
      overflow:hidden;
      height:100%;
    }

    .service-card:hover{
      transform:translateY(-8px);
      box-shadow:0 20px 35px rgba(0,0,0,.18);
    }

    .service-card .card-body{
      padding:2rem 1rem;
    }

    .service-card i{
      font-size:3rem;
      margin-bottom:1rem;
    }

    .service-card img{
      max-height:90px;
      object-fit:contain;
    }

    .service-card h5{
      color:#fff;
      font-weight:600;
      margin-top:15px;
      margin-bottom:0;
    }

    .service-card a{
      color:#fff;
      text-decoration:none;
    }
    .service-card{
      border-radius:16px;
      transition:.35s ease;
    }

    .service-card:hover{
      transform:translateY(-8px);
      box-shadow:0 18px 35px rgba(0,0,0,.25)!important;
    }

    .service-card .card-body{
      min-height:180px;
      display:flex;
      flex-direction:column;
      justify-content:center;
      align-items:center;
    }

    .service-card i{
      transition:.3s;
    }

    .service-card:hover i{
      transform:scale(1.15);
    }
    /* ─── DB CARD ─── */
    .db-card {
      background: #fff;
      border-left: 5px solid var(--krph-sky);
      border-radius: 12px;
      padding: 18px 20px;
      display: flex;
      align-items: center;
      gap: 16px;
      box-shadow: 0 2px 10px rgba(0,0,0,.06);
      transition: .25s;
      text-decoration: none !important;
      color: var(--krph-text);
    }
    .db-card:hover { background: var(--krph-light); transform: translateX(4px); }
    .db-card .db-icon { font-size: 1.6rem; color: var(--krph-blue); flex-shrink: 0; }
    .db-card strong   { font-size: .95rem; font-weight: 700; }
    .db-card small    { color: #6b7c93; }

    /* ─── NEWS CARD ─── */
    .news-card {
      background: #fff;
      border-radius: 14px;
      overflow: hidden;
      box-shadow: 0 2px 10px rgba(0,0,0,.07);
      transition: .3s;
      height: 100%;
    }
    .news-card:hover { transform: translateY(-5px); box-shadow: 0 10px 24px rgba(0,0,0,.12); }
    .news-card img   { width: 100%; height: 180px; object-fit: cover; }
    .news-card-body  { padding: 16px; }
    .news-card-body .badge-tag {
      background: var(--krph-light);
      color: var(--krph-blue);
      font-size: .75rem;
      border-radius: 30px;
      padding: 3px 10px;
      font-weight: 700;
    }

    /* ─── FOOTER ─── */
    footer {
      background: var(--krph-dark);
      color: #cce7ff;
      padding: 40px 0 20px;
    }
    footer h6 { color: #fff; font-weight: 700; margin-bottom: 14px; }
    footer a  { color: #cce7ff; text-decoration: none; font-size: .9rem; display: block; margin-bottom: 6px; }
    footer a:hover { color: var(--krph-sky); }
    .footer-divider { border-color: rgba(255,255,255,.15); margin: 28px 0 16px; }
    .footer-bottom   { font-size: .82rem; opacity: .65; }

    /* ─── COOKIE BANNER ─── */
    #cookie-consent {
      position: fixed; bottom: 0; left: 0; right: 0; z-index: 9999;
      background: #1a2f4a;
      color: #e0f0ff;
      padding: 14px 20px;
      display: flex;
      flex-wrap: wrap;
      gap: 10px;
      align-items: center;
      justify-content: space-between;
      border-top: 3px solid var(--krph-sky);
      box-shadow: 0 -4px 20px rgba(0,0,0,.2);
    }
    #cookie-consent a { color: var(--krph-sky); }

    /* ─── UTIL ─── */
    .btn-primary-krph {
      background: var(--krph-blue);
      border: none;
      color: #fff;
      border-radius: 30px;
      padding: 8px 24px;
      font-weight: 700;
      transition: .25s;
    }
    .btn-primary-krph:hover { background: var(--krph-dark); color: #fff; }

    .gradient-1 { background: linear-gradient(135deg, #0096c7, #023e8a); }
    .gradient-2 { background: linear-gradient(135deg, #2d6a4f, #52b788); }
    .gradient-3 { background: linear-gradient(135deg, #7b2d8b, #c77dff); }
    .gradient-4 { background: linear-gradient(135deg, #d62828, #f77f00); }

    @media (max-width: 768px) {
      .hero-banner { padding: 40px 0; }
      .stat-card h3 { font-size: 1.6rem; }
    }
    /* เพิ่มในส่วน ข้อมูลการให้บริการ */
    .stat-card{
      min-height:230px;
      display:flex;
      flex-direction:column;
      justify-content:center;
      align-items:center;
      transition:.3s;
    }

    .stat-card i{
      margin-bottom:15px;
    }

    .stat-card h2{
      font-size:2.4rem;
      font-weight:700;
      margin-bottom:10px;
    }

    .stat-card p{
      font-size:1.05rem;
      font-weight:500;
      margin-bottom:0;
    }

    .stat-card:hover{
      transform:translateY(-8px);
      box-shadow:0 15px 35px rgba(0,0,0,.25);
    }
    .stat-card i{
      width:80px;
      height:80px;
      line-height:80px;
      border-radius:50%;
      background:rgba(255,255,255,.18);
      margin-bottom:18px;
    }
    /* End ในส่วน ข้อมูลการให้บริการ */

    .stat-card{
      border-radius:18px;
      transition:all .35s cubic-bezier(.175,.885,.32,1.275);
      cursor:pointer;
      overflow:hidden;
      position:relative;
      animation:fadeUp .8s ease both;
    }

    .stat-card:hover{
      transform:translateY(-12px) scale(1.04);
      box-shadow:0 20px 45px rgba(0,0,0,.25);
    }

    .stat-card:hover i{
      transform:scale(1.2) rotate(10deg);
    }

    .stat-card i{
      transition:.4s;
    }

    .stat-card::before{
      content:"";
      position:absolute;
      top:0;
      left:-120%;
      width:80%;
      height:100%;
      background:rgba(255,255,255,.25);
      transform:skewX(-25deg);
    }

    .stat-card:hover::before{
      animation:shine .8s;
    }

    @keyframes fadeUp{
      from{
        opacity:0;
        transform:translateY(50px);
      }
      to{
        opacity:1;
        transform:translateY(0);
      }
    }

    @keyframes shine{
      100%{
        left:160%;
      }
    }
    /* ให้ Card เด้งทีละใบ*/
    .col-lg-3:nth-child(1) .stat-card{
      animation-delay:.15s;
    }

    .col-lg-3:nth-child(2) .stat-card{
      animation-delay:.35s;
    }

    .col-lg-3:nth-child(3) .stat-card{
      animation-delay:.55s;
    }

    .col-lg-3:nth-child(4) .stat-card{
      animation-delay:.75s;
    }

    /* ถ้าต้องการให้เต็มกรอบทั้งแนวนอนและแนวตั้ง */
    .director-photo{
      height:auto;
      border-radius:16px;
      overflow:hidden;
    }

    .director-photo img{
      width:100%;
      height:100%;
      object-fit:cover;
      object-position:center top;
    }
    /* ลิงก์ทั้งหมด */
    a,
    a:link,
    a:visited,
    a:hover,
    a:active,
    a:focus {
      text-decoration: none !important;
      outline: none;
    }
    /* *** แสดงภาพ 4 ภาพต่อ 1 แถว One page***/
    /* ===== News Card ===== */
    .news-card{
      border:0;
      border-radius:5px;
      overflow:hidden;
      background:#fff;
      transition:.35s ease;
      box-shadow:0 8px 20px rgba(0,0,0,.12);
      height:100%;
    }

    .news-card:hover{
      transform:translateY(-8px);
      box-shadow:0 18px 35px rgba(0,0,0,.18);
    }

    /* ===== รูปภาพ ===== */
    .news-thumb{
      width:100%;
      height:420px;          /* ความสูงของภาพ */
      overflow:hidden;
      background:#f5f5f5;
    }

    .news-thumb img{
      width:100%;
      height:100%;
      object-fit:cover;      /* เต็มกรอบ */
      object-position:top;   /* เริ่มจากด้านบน */
      transition:.5s;
    }

    .news-card:hover .news-thumb img{
      transform:scale(1.05);
    }

    /* ===== เนื้อหา ===== */
    .news-card .card-body{
      padding:1rem;
    }

    .news-title{
      font-size:1rem;
      font-weight:600;
      line-height:1.5;
      height:48px;
      overflow:hidden;

      display:-webkit-box;
      -webkit-line-clamp:2;
      -webkit-box-orient:vertical;
    }

    .news-meta{
      font-size:.85rem;
      color:#ff6600;
      line-height:1.6;
    }

    /* Responsive */
    @media (max-width:992px){

      .news-thumb{
        height:350px;
      }

    }

    @media (max-width:768px){

      .news-thumb{
        height:300px;
      }

    }
    /*  ตัดข้อความ 2 บรรทัด*/
    .cut-text-multi{
      display: -webkit-box;
      -webkit-box-orient: vertical;
      -webkit-line-clamp: 2; /* จำนวนบรรทัด */
      overflow: hidden;

      font-size: 1rem;
      font-weight: 600;
      line-height: 1.5;
      color: #0d6efd;
      text-decoration: none;

      min-height: 3rem;      /* 2 × 1.5rem */
    }

    .cut-text-multi:hover{
      color: #0a58ca;
    }
/* ===========================
   หน้าข่าวประชาสัมพันธ์
   =========================== */
   .news-card{
    background:#fff;
    border:1px solid #e9ecef;
    border-radius:12px;
    overflow:hidden;
    height:100%;
    transition:all .35s ease;
    box-shadow:
    0 2px 8px rgba(0,0,0,.05),
    0 8px 24px rgba(0,0,0,.06);
  }

  .news-card:hover{
    transform:translateY(-8px);
    border-color:#0d6efd;
    box-shadow:
    0 12px 30px rgba(0,0,0,.12),
    0 20px 45px rgba(13,110,253,.12);
  }

/* ==========================
   รูปภาพ
   ========================== */

   .news-thumb{
    width:100%;
    height:180px;
    overflow:hidden;
    background:#f8f9fa;
    border-bottom:1px solid #edf0f2;
  }

  .news-thumb img{
    width:100%;
    height:100%;
    object-fit:cover;
    object-position:center;
    transition:transform .45s ease;
  }

  .news-card:hover .news-thumb img{
    transform:scale(1.08);
  }

/* ==========================
   เนื้อหา
   ========================== */

   .news-card .card-body{
    padding:18px;
  }

  .news-title{
    font-size:1rem;
    font-weight:600;
    line-height:1.6;
    min-height:52px;
    margin-bottom:12px;
  }

  .news-title a{
    color:#222;
    text-decoration:none;
    transition:.3s;
  }

  .news-title a:hover{
    color:#0d6efd;
  }

/* ==========================
   Meta
   ========================== */

   .news-meta{
    font-size:.87rem;
    color:#6c757d;
    border-top:1px solid #f1f3f5;
    padding-top:10px;
    display:flex;
    justify-content:space-between;
    align-items:center;
  }

  .news-meta i{
    color:#0d6efd;
    margin-right:4px;
  }

/* ==========================
   Responsive
   ========================== */

   @media (max-width:992px){

    .news-thumb{
      height:220px;
    }

  }

  @media (max-width:768px){

    .news-thumb{
      height:180px;
    }

  }

  @media (max-width:576px){

    .news-thumb{
      height:200px;
    }

    .news-title{
      font-size:.95rem;
    }

  }
/* ==========================
   Back To Top
   ========================== */

   .back-to-top{
    position:fixed;
    right:25px;
    bottom:25px;
    width:52px;
    height:52px;

    display:flex;
    align-items:center;
    justify-content:center;

    border:none;
    border-radius:50%;

    background:linear-gradient(135deg,#0d6efd,#0dcaf0);
    color:#fff;
    font-size:22px;

    box-shadow:0 10px 25px rgba(13,110,253,.35);

    cursor:pointer;
    opacity:0;
    visibility:hidden;

    transition:.35s;
    z-index:9999;
  }

  .back-to-top.show{
    opacity:1;
    visibility:visible;
  }

  .back-to-top:hover{
    transform:translateY(-5px);
    background:linear-gradient(135deg,#0b5ed7,#0096c7);
    box-shadow:0 15px 35px rgba(13,110,253,.45);
  }

  .back-to-top:active{
    transform:scale(.95);
  }

  html{
    scroll-behavior:smooth;
  }


  /* ── ความสูง carousel ── */
  .hero-slide-img {
    height: 320px;        /* ปรับได้ เช่น 480px, 500px */
    object-fit: cover;
    cursor: zoom-in;
    transition: transform .3s;
  }
  .hero-slide-img:hover { transform: scale(1.015); }

  /* mobile */
  @media (max-width: 768px) {
    .hero-slide-img { height: 220px; }
  }
  /* กรอบพื้นเท่า Slide บน*/
  .hero-caption{
    left:0;
    right:0;
    bottom:0;
    width:100%;
    margin:0;
    padding:18px 30px;
    background:linear-gradient(
      to top,
      rgba(0,0,0,.75),
      rgba(0,0,0,.35)
      );
    border-radius:0;
    text-align:left;
  }

  .hero-caption h3{
    font-weight:700;
    margin-bottom:6px;
  }

  .hero-caption p{
    margin-bottom:0;
    opacity:.95;
  }

  /*   ****** กล่องบริการแบบวิ้งๆ***********   */
  .service-item{
    position: relative;
    overflow: hidden;
    border-radius:16px !important;
    box-shadow:0 10px 25px rgba(0,0,0,.15) !important;

    transition:
    transform .45s ease,
    box-shadow .45s ease,
    filter .45s ease;
  }

  /* ให้คลิกได้เต็มกล่อง */
  .service-item a{
    display:block;
    color:#fff;
    text-decoration:none;
  }

  /* Animation เมื่อเอาเมาส์ชี้ */
  .service-item:hover{
    transform:translateY(-12px) scale(1.04);
    box-shadow:0 22px 45px rgba(0,0,0,.28) !important;
  }

  /* ไอคอนขยาย */
  .service-item i,
  .service-item img{
    transition:transform .45s ease;
  }

  .service-item:hover i,
  .service-item:hover img{
    transform:scale(1.18) rotate(5deg);
  }

  /* ตัวหนังสือ */
  .service-item h5{
    transition:.35s;
  }

  .service-item:hover h5{
    letter-spacing:.5px;
  }

  /* เอฟเฟกต์แสงวิ่ง */
  .service-item::before{
    content:"";
    position:absolute;
    top:0;
    left:-130%;
    width:60%;
    height:100%;
    background:rgba(255,255,255,.25);
    transform:skewX(-25deg);
  }

  .service-item:hover::before{
    animation:shine .8s ease;
  }

  @keyframes shine{
    100%{
      left:180%;
    }
  }

  /* เวลากดคลิก */
  .service-item:active{
    transform:scale(.96);
  }

  /* Google Translate */
  #google_translate_element {
    min-width: 150px;
  }

  .goog-te-gadget {
    font-size: 0 !important;
  }

  .goog-te-gadget select {
    border: 1px solid #0d6efd;
    border-radius: .5rem;
    padding: .25rem .75rem;
    font-size: .875rem;
    background: #fff;
    color: #333;
  }

  .goog-te-banner-frame.skiptranslate {
    display: none !important;
  }

  body {
    top: 0 !important;
  }

  .goog-logo-link,
  .goog-te-gadget span {
    display: none !important;
  }
  @media (max-width:991px){

    #google_translate_element{
      width:100%;
      margin:10px 0;
    }

    .goog-te-gadget select{
      width:100%;
    }

  }
  /* เอกสาร Suicide*/

  .tree, .tree ul {
    margin:0;
    padding:0;
    list-style:none
  }
  .tree ul {
    margin-left:1em;
    position:relative
  }
  .tree ul ul {
    margin-left:.5em
  }
  .tree ul:before {
    content:"";
    display:block;
    width:0;
    position:absolute;
    top:0;
    bottom:0;
    left:0;
    border-left:1px solid
  }
  .tree li {
    margin:0;
    padding:0 1em;
    line-height:2em;
    color:#369;
    font-weight:700;
    position:relative
  }
  .tree ul li:before {
    content:"";
    display:block;
    width:10px;
    height:0;
    border-top:1px solid;
    margin-top:-1px;
    position:absolute;
    top:1em;
    left:0
  }
  .tree ul li:last-child:before {
    background:#fff;
    height:auto;
    top:1em;
    bottom:0
  }
  .indicator {
    margin-right:5px;
  }
  .tree li a {
    text-decoration: none;
    color:#369;
  }
  .tree li button, .tree li button:active, .tree li button:focus {
    text-decoration: none;
    color:#369;
    border:none;
    background:transparent;
    margin:0px 0px 0px 0px;
    padding:0px 0px 0px 0px;
    outline: 0;
  }

/*==========================
 Modern Footer KRPH
 ===========================*/

 footer.modern-footer{
  position:relative;
  width:100vw;
  left:50%;
  right:50%;
  margin-left:-50vw;
  margin-right:-50vw;

  background:linear-gradient(135deg,#003973,#005AA7,#0077b6);
  overflow:hidden;
}
footer.modern-footer::before{
  content:"";
  position:absolute;
  width:350px;
  height:350px;
  background:rgba(255,255,255,.08);
  border-radius:50%;
  top:-120px;
  right:-120px;
}

footer.modern-footer::after{
  content:"";
  position:absolute;
  width:250px;
  height:250px;
  background:rgba(255,255,255,.05);
  border-radius:50%;
  bottom:-80px;
  left:-80px;
}

.footer-card{
  background:rgba(255,255,255,.10);
  backdrop-filter:blur(8px);
  border-radius:18px;
  padding:25px;
  height:100%;
  transition:.35s;
  border:1px solid rgba(255,255,255,.15);
}

.footer-card:hover{
  transform:translateY(-8px);
  box-shadow:0 20px 45px rgba(0,0,0,.30);
}

.footer-title{
  font-size:1.3rem;
  font-weight:700;
  margin-bottom:20px;
  border-left:5px solid #ffc107;
  padding-left:12px;
}

.footer-link{
    display:block;
    color:#fff;
    text-decoration:none;
    padding:8px 0;
    transition:.3s;
}

.footer-link i{
    width:28px;
    text-align:center;
    margin-right:8px;
    font-size:18px;
    transition:.3s;
}

.footer-link:hover{
    color:#FFD54F;
    transform:translateX(6px);
}

.footer-link:hover i{
    transform:scale(1.2) rotate(-8deg);
}

.icon-circle{

  width:50px;
  height:50px;
  line-height:50px;
  border-radius:50%;
  display:inline-block;
  text-align:center;
  background:#fff;
  color:#005AA7;
  font-size:22px;
  margin-right:10px;
}

.social-btn{

  width:45px;
  height:45px;
  line-height:45px;
  border-radius:50%;
  display:inline-block;
  text-align:center;
  background:#fff;
  color:#005AA7;
  margin:5px;
  transition:.3s;
}

.social-btn:hover{

  background:#FFD54F;
  color:#000;
  transform:scale(1.15);
}

.footer-bottom{

  border-top:1px solid rgba(255,255,255,.2);
  margin-top:40px;
  padding-top:20px;
  text-align:center;
  font-size:.95rem;
}

/* Mobile */
@media (max-width: 768px) {

  .dataTables_wrapper .dataTables_paginate {
    overflow-x: auto;
    overflow-y: hidden;
    white-space: nowrap;
    width: 100%;
    text-align: left !important;
    padding-bottom: 8px;
  }

  .dataTables_wrapper .pagination {
    flex-wrap: nowrap !important;
  }
}



/*2เว็บขาวดำ-ติดริบบิ้น*/
/*2เว็บขาวดำ-ติดริบบิ้น*/
.black-ribbon {
  position: fixed;
  z-index: 9999;
  width: 10px;
}

@media only all and (min-width: 768px) {
  .black-ribbon {
    width: auto;
  }
}

.stick-left { left: 0; }
.stick-right { right: 0; }
.stick-top { top: 0; }
.stick-bottom { bottom: 0; }
/*2เว็บขาวดำ-ติดริบบิ้น*/



css/* Ribbon - มุมซ้ายบน อยู่ตำแหน่งเดิมเสมอ */
.ribbon {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 1001;   /* สูงกว่า navbar เพื่อให้ ribbon ทับอยู่บนสุดเสมอ */
}

/* Navbar - ติดบนสุด ใต้ ribbon */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;    /* ต่ำกว่า ribbon นิดหน่อย */
}

/* แถวบนของ DataTables */
.dataTables_wrapper .dataTables_length,
.dataTables_wrapper .dataTables_filter{
    margin-bottom:15px;
}

/*==========================
 DataTables Bootstrap 5
===========================*/

.dataTables_wrapper{
    width:100%;
}

/* แถวบน */
.dataTables_wrapper .row:first-child{
    align-items:center;
    margin-bottom:18px;
}

/* ซ้าย */
.dataTables_length{
    display:flex;
    align-items:center;
}

.dataTables_length label{

    display:flex;
    align-items:center;
    gap:10px;
    margin:0;
    font-weight:600;
    color:#222;
}

.dataTables_length select{

    width:80px;
    height:42px;

    border-radius:12px;
    border:1px solid #cfd8e3;

    padding-left:10px;

    background:#fff;
}

/* ขวา */

.dataTables_filter{

    display:flex;
    justify-content:flex-end;
}

.dataTables_filter label{

    display:flex;
    align-items:center;
    gap:12px;

    margin:0;

    font-weight:600;
    color:#222;
}

/* ช่องค้นหา */

.dataTables_filter input{

    width:260px !important;
    height:42px;

    border-radius:12px !important;

    border:1px solid #cfd8e3 !important;

    background:#fff;

    margin-left:0 !important;

    padding:0 15px;

    transition:.3s;
}

.dataTables_filter input:focus{

    border-color:#3b82f6 !important;

    box-shadow:0 0 0 .2rem rgba(59,130,246,.15);
}

/* Responsive */

@media(max-width:768px){

.dataTables_length,
.dataTables_filter{

    justify-content:center;
    margin-bottom:12px;
}

.dataTables_filter input{

    width:100% !important;
}

.dataTables_filter label{

    width:100%;
}
}

