/*
Theme Name: BK Portal Theme
Theme URI: https://bkportal.vn/
Author: Antigravity AI
Author URI: https://bkportal.vn/
Description: Giao diện chuẩn Cổng Thông tin điện tử BK Portal Framework dành cho các xã, phường, thị trấn, quận, huyện. Đạt chuẩn Thông tư 22/2023/TT-BTTTT & WCAG 2.0, Responsive, Mobile First.
Version: 2.0.0
Tested up to: 7.2
Requires at least: 6.0
Requires PHP: 8.0
License: GNU General Public License v2 or later
Text Domain: bk-portal
Tags: government, responsive-layout, custom-menu, featured-images, full-width-template
*/

/* Reset & CSS Variables */
:root {
  --primary-color: #033a7e;
  --primary-hover: #022c61;
  --primary-dark: #022147;
  --footer-bg: #022147;
  --footer-bottom: #011329;
  --accent-gold: #d4a017;
  --accent-gold-dark: #b8860b;
  --bg-body: #f4f6f9;
  --card-bg: #ffffff;
  --text-main: #2d3748;
  --text-heading: #1a202c;
  --text-muted: #718096;
  --text-light: #ffffff;
  --border-color: #e2e8f0;
  --border-light: #edf2f7;
  --container-max-width: 1240px;
  --font-serif: "Merriweather", "Times New Roman", Times, serif;
  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --transition: all 0.25s ease-in-out;
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.08);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font-sans);
  font-size: 14px;
  line-height: 1.6;
  color: var(--text-main);
  background-color: var(--bg-body);
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration: none;
  transition: var(--transition);
}

a:hover {
  color: var(--primary-color);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

ul, ol {
  list-style: none;
}

/* Layout Utilities */
.lqd-container {
  width: 100%;
  max-width: var(--container-max-width);
  margin-left: auto;
  margin-right: auto;
  padding-left: 15px;
  padding-right: 15px;
}

.lqd-card {
  background: var(--card-bg);
  border-radius: 4px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-color);
  padding: 16px;
  margin-bottom: 20px;
}

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 2px solid var(--border-color);
  padding-bottom: 8px;
  margin-bottom: 14px;
}

.section-title {
  font-size: 15px;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--primary-color);
  position: relative;
  padding-left: 12px;
  display: flex;
  align-items: center;
}

.section-title::before {
  content: "";
  position: absolute;
  left: 0;
  top: 2px;
  bottom: 2px;
  width: 4px;
  background-color: var(--primary-color);
  border-radius: 2px;
}

.view-all-link {
  font-size: 12px;
  font-weight: 600;
  color: var(--primary-color);
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.view-all-link:hover {
  text-decoration: underline;
}

/* Section Filter Tabs */
.section-tabs {
  display: flex;
  gap: 6px;
  flex-wrap: nowrap;
  overflow-x: auto;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
  padding-bottom: 2px;
}

.section-tabs::-webkit-scrollbar {
  display: none;
}

.tab-btn {
  padding: 4px 12px;
  font-size: 12px;
  font-weight: 600;
  border-radius: 12px;
  background: #f1f3f5;
  color: #495057;
  border: none;
  cursor: pointer;
  white-space: nowrap;
  flex-shrink: 0;
  transition: var(--transition);
}

.tab-btn:hover,
.tab-btn.active {
  background: var(--primary-color);
  color: #ffffff;
}

/* Accessibility Skip Link */
.skip-link {
  position: absolute;
  top: -999px;
  left: 0;
  background: var(--primary-color);
  color: white;
  padding: 8px 15px;
  z-index: 99999;
}

.skip-link:focus {
  top: 0;
}
