/*
Theme Name: OAE THEME
Theme URI: https://oae.go.th
Author: Athiwat-Poaek
Author URI: https://www.facebook.com/atiwat.poaek
Description: OAE theme WordPress v1.
Version: 1.0.0
Requires at least: 5.8
Tested up to: 6.5
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: oae_theme
*/

/* ✅ กล่องรวม Widget */
.widget-box {
  background-color: #fff;
  padding: 16px 20px;
  margin-bottom: 24px;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

/* ✅ หัวข้อของ Widget (เช่น "หมวดหมู่", "โพสต์ล่าสุด") */
.widget-box h2,
.widget-box h3,
.sidebar-widget-title {
  position: relative;
  padding-left: 24px;
  font-weight: 700;
  font-size: 18px;
  margin-bottom: 12px;
  border-bottom: 1px solid #e5e7eb;
  padding-bottom: 6px;
  color: #111827;
}

.widget-box h2::before,
.widget-box h3::before,
.sidebar-widget-title::before {
  content: "›";
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  color: #3b82f6;
  font-weight: bold;
  font-size: 1.25rem;
}

/* ✅ หมวดหมู่ (Categories) */
.widget-box ul li.cat-item {
  position: relative;
  padding-left: 1.25rem;
  margin-bottom: 8px;
  font-size: 15px;
  color: #1f2937;
}

.widget-box ul li.cat-item::before {
  content: "📁";
  position: absolute;
  left: 0;
  top: 0;
  color: #3b82f6;
  font-size: 0.9rem;
}

/* ✅ รายการโพสต์ล่าสุด */
.wp-block-latest-posts__list,
.widget_recent_entries ul {
  list-style: none;
  padding-left: 0;
  margin: 0;
}

.wp-block-latest-posts__list li,
.widget_recent_entries li {
  position: relative;
  padding-left: 1.25rem;
  margin-bottom: 10px;
  font-size: 15px;
  color: #1f2937;
}

.wp-block-latest-posts__list li::before,
.widget_recent_entries li::before {
  content: "📰";
  position: absolute;
  left: 0;
  top: 0;
  color: #3b82f6;
  font-size: 0.85rem;
}

/* ✅ ลิงก์ในรายการ */
.wp-block-latest-posts__list li a,
.widget_recent_entries li a {
  color: #1d4ed8;
  text-decoration: none;
  transition: color 0.2s ease;
}

.wp-block-latest-posts__list li a:hover,
.widget_recent_entries li a:hover {
  text-decoration: underline;
  color: #1e40af;
}

/* ✅ ย่อหน้าใน Widget */
.widget-box p {
  font-style: italic;
  color: #555;
  margin-bottom: 12px;
}

.container2 {
  width: 100%;
  padding: 0;
  margin: 0 auto;
}
.tab-menu {
  width: 100%;
  border-radius: 0;
}

  body {
      font-family: 'Kanit', sans-serif;
      background: #f0f2f5;
      margin: 0;
      padding: 0;
    }
.container2 {
  display: flex;
  justify-content: center; /* แนวนอน */
  align-items: center;     /* แนวตั้ง */
  height: 10vh;           /* เต็มหน้าจอ */
}

.tab-menu {
  display: flex;
  justify-content: center;     /* จัดเนื้อหาแนวนอนให้อยู่ตรงกลาง */
  align-items: flex-start;
  width: 100%;                 /* กำหนดให้กว้างเต็มพื้นที่ */
  background: linear-gradient(to right, #0c2b66, #2f4da0);
  padding: 10px 20px;
  border-radius: 5px 5px 0 0;
}

    .main-tab {
      background-color: #2a4ea0;
      color: white;
      font-weight: bold;
      padding: 10px 20px;
      border: none;
      border-radius: 20px;
      margin-right: 20px;
      cursor: pointer;
      box-shadow: inset 0 0 5px rgba(0,0,0,0.2);
    }

    .tabs {
      display: flex;
      gap: 15px;
      flex-wrap: wrap;
    }

    .tab a {
      color: white;
      text-decoration: none;
      font-weight: bold;
      padding: 10px;
      display: block;
      border-radius: 5px;
      transition: 0.3s;
    }

    .tab a:hover {
      background-color: rgba(255, 255, 255, 0.1);
    }

    .tab.active a {
      background-color: #7fa7ff;
      color: #002b6b;
    }

    .tab.active a::after {
      content: '';
      display: block;
      height: 4px;
      margin-top: 4px;
      background-color: white;
      border-radius: 2px;
    }

    footer {
    font-family: 'Noto Sans Thai', sans-serif;
    }

    .before-footer  {
  min-height: 300px; /* หรือความสูงที่ต้องการ */
  }

.pagination ul {
    @apply flex justify-center space-x-2;
}
.pagination li {
    @apply px-3 py-1 bg-blue-100 text-blue-700 rounded hover:bg-blue-300;
}
.pagination .current {
    @apply bg-blue-700 text-white font-bold;
}