/*
Theme Name: Dien Ha Portal
Theme URI: https://dienha.hungyen.gov.vn/
Author: Bach Khoa Tech
Author URI: https://bachkhoatech.vn/
Description: Giao diện chuẩn Cổng Thông tin điện tử xã Diên Hà, tỉnh Hưng Yên. Thiết kế bám sát nhận diện cơ quan nhà nước Việt Nam, Responsive, Mobile First, tối ưu hiệu năng và khả năng tiếp cận.
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: lequydon-portal
Tags: government, responsive-layout, custom-menu, featured-images, full-width-template
*/

/* Reset & CSS Variables */
:root {
  --primary-color: #981b1e;
  --primary-hover: #8f0e0e;
  --primary-dark: #6e0808;
  --footer-bg: #7a0909;
  --footer-bottom: #5a0404;
  --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;
}

/* =========================================================================
   Tự động chèn ảnh ở bài viết căn chính giữa, kích thước ảnh Lớn
   ========================================================================= */
.single-post-featured-image {
  text-align: center !important;
  margin: 22px auto 26px !important;
  width: 100% !important;
}

.single-featured-large-img {
  display: block !important;
  margin-left: auto !important;
  margin-right: auto !important;
  max-width: 100% !important;
  width: auto !important;
  height: auto !important;
  border-radius: 6px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.08);
}

.entry-content img,
.lqd-article-detail .entry-content img,
.entry-content .aligncenter,
.entry-content p.post-img-centered img {
  display: block !important;
  margin-left: auto !important;
  margin-right: auto !important;
  max-width: 100% !important;
  height: auto !important;
  border-radius: 4px;
}

.entry-content figure,
.entry-content .wp-block-image,
.entry-content .wp-caption,
.entry-content p.post-img-centered {
  margin: 22px auto !important;
  text-align: center !important;
  max-width: 100% !important;
}

.entry-content figcaption,
.entry-content .wp-caption-text {
  text-align: center !important;
  font-size: 13.5px !important;
  font-style: italic !important;
  color: #64748b !important;
  margin-top: 8px !important;
  line-height: 1.5 !important;
}

