@import url('https://fonts.googleapis.com/css2?family=Kanit:wght@300;400;500;600;700&display=swap');
:root {
  --color-primary: #004e92;
  --color-secondary: #00c6ff;
  --gradient-main: linear-gradient(135deg, var(--color-primary) 0%, var(--color-secondary) 100%);
  --bg-body: #f4f7fa;
  --bg-card: #ffffff;
  --bg-input: #ffffff;
  --text-main: #1e293b;
  --text-muted: #64748b;
  --border-color: #e2e8f0;
  --shadow-card: 0 15px 35px rgba(0, 51, 153, 0.1);
  --radius-xl: 24px;
  --radius-lg: 16px;
  --radius-md: 12px;
}
[data-theme="dark"] {
  --bg-body: #0f172a;
  --bg-card: #1e293b;
  --bg-input: #1e293b;
  --text-main: #e2e8f0;
  --text-muted: #94a3b8;
  --border-color: #334155;
  --shadow-card: 0 15px 35px rgba(0, 0, 0, 0.4);
}
body {
  font-family: 'Kanit', sans-serif !important;
  background-color: var(--bg-body);
  color: var(--text-main);
  transition: background-color 0.3s ease;
}
a {
  text-decoration: none;
}
.news-hero-header {
  position: relative;
  background: var(--gradient-main);
  padding: 8rem 0 20rem 0;
  overflow: hidden;
}
.hero-badge {
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(4px);
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: white;
}
.breadcrumb-custom .breadcrumb-item a {
  color: rgba(255, 255, 255, 0.7);
}
.breadcrumb-custom .breadcrumb-item.active {
  color: #fff;
}
.news-container {
  position: relative;
  z-index: 2;
}
.search-floating-card {
  margin-top: -6.5rem;
  background: var(--bg-card);
  padding: 1rem;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-card);
  border: 1px solid var(--border-color);
}
[data-theme="dark"] .search-floating-card {
  background: #1e293b;
}
.search-field-wrapper {
  background: var(--bg-input);
  border: 1px solid var(--border-color);
  border-radius: 50rem;
  padding: 0.3rem;
  transition: 0.3s;
}
.search-field-wrapper:focus-within {
  border-color: var(--color-secondary);
  box-shadow: 0 0 0 4px rgba(0, 198, 255, 0.2);
}
.search-input {
  color: var(--text-main);
}
[data-theme="dark"] .search-input {
  color: #e2e8f0;
}
.search-icon-box {
  color: var(--text-muted);
}
.btn-search-action {
  background: var(--gradient-main);
  color: white;
  border: none;
  font-weight: 500;
  transition: 0.3s;
}
.btn-search-action:hover {
  transform: translateY(-1px);
  box-shadow: 0 5px 15px rgba(0, 78, 146, 0.3);
  color: white;
}
.news-list-wrapper {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.news-card-item {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  padding: 1.25rem;
  position: relative;
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-card);
  transition: all 0.2s ease-in-out;
}
.news-card-item:hover {
  transform: translateY(-3px);
  border-color: var(--color-secondary);
}
.card-link-overlay {
  z-index: 1;
  width: 100%;
  height: 100%;
  position: absolute;
  top: 0;
  left: 0;
}
.date-box-inner {
  width: 70px;
  height: 75px;
  background: var(--bg-input);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: var(--color-primary);
  line-height: 1;
}
.date-box-inner .day {
  font-size: 1.6rem;
  font-weight: 700;
}
.date-box-inner .month {
  font-size: 0.85rem;
  font-weight: 500;
  margin: 2px 0;
  color: var(--text-muted);
}
.date-box-inner .year {
  font-size: 0.7rem;
  color: var(--text-muted);
  opacity: 0.7;
}
.news-title {
  font-size: 1.05rem;
  font-weight: 500;
  color: var(--text-main);
  line-height: 1.5;
  margin-bottom: 0;
}
.news-card-item:hover .news-title {
  color: var(--color-primary);
}
.meta-tag {
  font-size: 0.75rem;
  padding: 2px 8px;
  border-radius: 4px;
  background: var(--border-color);
  color: var(--text-muted);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  vertical-align: middle;
}
.action-area {
  z-index: 5;
  position: relative;
}
.action-btn {
  transition: all 0.2s;
  border-width: 1px;
  font-size: 0.85rem;
  white-space: nowrap;
}
.action-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}
.count-badge-info {
  background-color: var(--bg-card);
  color: var(--color-primary);
  border: 1px solid var(--border-color);
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}
.news-pagination-wrapper {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  margin-top: 3rem;
  padding: 10px;
  flex-wrap: wrap;
}
.news-pagination-wrapper a {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 45px;
  height: 45px;
  border-radius: 50%;
  font-family: 'Kanit', sans-serif;
  font-size: 1rem;
  font-weight: 500;
  text-decoration: none !important;
  line-height: 1;
  cursor: pointer;
  transition: all 0.2s ease-in-out;
  background-color: #ffffff;
  border: 1px solid #e2e8f0;
  color: #64748b;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.03);
}
.news-pagination-wrapper span:not(.pagination-dots), .news-pagination-wrapper b, .news-pagination-wrapper strong, .news-pagination-wrapper .active, .news-pagination-wrapper .current {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 45px;
  height: 45px;
  border-radius: 50%;
  font-family: 'Kanit', sans-serif;
  font-size: 1.1rem;
  font-weight: 600;
  line-height: 1;
  background: var(--gradient-main) !important;
  color: #ffffff !important;
  border: 1px solid transparent !important;
  box-shadow: 0 4px 12px rgba(0, 78, 146, 0.3);
  z-index: 2;
  transform: scale(1.1);
  cursor: default;
}
.news-pagination-wrapper a:first-child, .news-pagination-wrapper a:last-child {
  width: auto;
  min-width: 45px;
  padding: 0 20px;
  border-radius: 50px;
  font-size: 0.9rem;
}
.news-pagination-wrapper a:hover {
  border-color: var(--color-secondary) !important;
  color: var(--color-primary) !important;
  background-color: #f0f9ff !important;
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(0, 198, 255, 0.15);
}
.pagination-dots {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 45px;
  height: 45px;
  border-radius: 50%;
  font-family: 'Kanit', sans-serif;
  font-size: 1rem;
  font-weight: bold;
  color: #64748b;
  background-color: #ffffff !important;
  border: 1px solid #e2e8f0 !important;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.03) !important;
  cursor: default;
  transform: none !important;
}
[data-theme="dark"] .news-pagination-wrapper a {
  background-color: #1e293b;
  border-color: #334155;
  color: #94a3b8;
}
[data-theme="dark"] .news-pagination-wrapper a:hover {
  background-color: #334155 !important;
  color: var(--color-secondary) !important;
}
[data-theme="dark"] .news-pagination-wrapper span:not(.pagination-dots), [data-theme="dark"] .news-pagination-wrapper b, [data-theme="dark"] .news-pagination-wrapper strong, [data-theme="dark"] .news-pagination-wrapper .active, [data-theme="dark"] .news-pagination-wrapper .current {
  color: #fff !important;
  background: var(--gradient-main) !important;
  border-color: transparent;
}