/*
Theme Name: Hội Nghị Nhà Chung Cư
Theme URI: http://localhost:8080
Author: BVote Team
Author URI: http://localhost:8080
Description: Theme giới thiệu Giải pháp Hội nghị Nhà Chung Cư - Giao diện hiện đại, chuyên nghiệp
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: hoinghi-theme
Tags: one-column, custom-menu, featured-images, translation-ready
*/

/* ===== CSS Reset & Variables ===== */
:root {
  --primary: #1a3a5c;
  --primary-light: #2563a8;
  --primary-dark: #0f2440;
  --accent: #e8a838;
  --accent-light: #f0c060;
  --accent-dark: #d49520;
  --success: #10b981;
  --bg-light: #f0f4f8;
  --bg-white: #ffffff;
  --text-dark: #1e293b;
  --text-body: #475569;
  --text-muted: #94a3b8;
  --border: #e2e8f0;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.08);
  --shadow-md: 0 4px 12px rgba(0,0,0,0.1);
  --shadow-lg: 0 8px 30px rgba(0,0,0,0.12);
  --shadow-xl: 0 20px 60px rgba(0,0,0,0.15);
  --radius: 12px;
  --radius-lg: 20px;
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --font-main: 'Inter', 'Segoe UI', system-ui, -apple-system, sans-serif;
  --max-width: 1200px;
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-main);
  color: var(--text-body);
  line-height: 1.7;
  background: var(--bg-light);
  -webkit-font-smoothing: antialiased;
}

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

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

ul, ol {
  list-style: none;
}

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

/* ===== HEADER ===== */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(26, 58, 92, 0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255,255,255,0.08);
  transition: all var(--transition);
}

.site-header.scrolled {
  background: rgba(15, 36, 64, 0.98);
  box-shadow: 0 4px 20px rgba(0,0,0,0.3);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

.site-logo {
  display: flex;
  align-items: center;
  gap: 12px;
}

.site-logo .logo-icon {
  width: 42px;
  height: 42px;
  background: linear-gradient(135deg, var(--accent), var(--accent-light));
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  color: white;
  font-weight: 800;
  box-shadow: 0 4px 14px rgba(232, 168, 56, 0.4);
}

.site-logo .logo-text {
  font-size: 18px;
  font-weight: 700;
  color: white;
  letter-spacing: -0.3px;
}

.site-logo .logo-text span {
  color: var(--accent-light);
}

/* Navigation */
.main-nav ul {
  display: flex;
  gap: 4px;
}

.main-nav a {
  display: block;
  padding: 8px 18px;
  color: rgba(255,255,255,0.8);
  font-size: 14px;
  font-weight: 500;
  border-radius: 8px;
  transition: all var(--transition);
}

.main-nav a:hover,
.main-nav .current-menu-item a {
  color: white;
  background: rgba(255,255,255,0.1);
}

.main-nav .current-menu-item a {
  color: var(--accent-light);
}

/* Mobile Menu Button */
.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  color: white;
}

.mobile-menu-btn span {
  display: block;
  width: 24px;
  height: 2px;
  background: white;
  margin: 5px 0;
  transition: all var(--transition);
  border-radius: 2px;
}

.mobile-menu-btn.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}
.mobile-menu-btn.active span:nth-child(2) {
  opacity: 0;
}
.mobile-menu-btn.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* ===== HERO SECTION ===== */
.hero-section {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 40%, var(--primary-light) 100%);
  overflow: hidden;
  padding-top: 72px;
}

.hero-section::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 800px;
  height: 800px;
  background: radial-gradient(circle, rgba(232, 168, 56, 0.15) 0%, transparent 70%);
  border-radius: 50%;
  animation: heroGlow 8s ease-in-out infinite alternate;
}

.hero-section::after {
  content: '';
  position: absolute;
  bottom: -30%;
  left: -10%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(37, 99, 168, 0.2) 0%, transparent 70%);
  border-radius: 50%;
  animation: heroGlow 10s ease-in-out infinite alternate-reverse;
}

@keyframes heroGlow {
  0% { transform: scale(1) translate(0, 0); }
  100% { transform: scale(1.2) translate(30px, -20px); }
}

/* Floating geometric shapes */
.hero-shapes {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}

.hero-shapes .shape {
  position: absolute;
  border: 2px solid rgba(255,255,255,0.06);
  border-radius: 12px;
  animation: floatShape 20s ease-in-out infinite;
}

.hero-shapes .shape:nth-child(1) {
  width: 80px; height: 80px;
  top: 15%; right: 10%;
  animation-delay: -2s;
  animation-duration: 18s;
}

.hero-shapes .shape:nth-child(2) {
  width: 120px; height: 120px;
  top: 60%; right: 25%;
  animation-delay: -5s;
  animation-duration: 22s;
  border-radius: 50%;
}

.hero-shapes .shape:nth-child(3) {
  width: 60px; height: 60px;
  top: 30%; left: 5%;
  animation-delay: -8s;
  animation-duration: 16s;
}

.hero-shapes .shape:nth-child(4) {
  width: 100px; height: 100px;
  bottom: 20%; left: 15%;
  animation-delay: -3s;
  border-radius: 50%;
}

@keyframes floatShape {
  0%, 100% { transform: translate(0, 0) rotate(0deg); }
  25% { transform: translate(20px, -30px) rotate(90deg); }
  50% { transform: translate(-10px, 20px) rotate(180deg); }
  75% { transform: translate(30px, 10px) rotate(270deg); }
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 680px;
  padding: 60px 0;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 20px;
  background: rgba(232, 168, 56, 0.15);
  border: 1px solid rgba(232, 168, 56, 0.3);
  border-radius: 50px;
  color: var(--accent-light);
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 28px;
  letter-spacing: 0.5px;
  animation: fadeInUp 0.8s ease both;
}

.hero-badge::before {
  content: '✦';
  font-size: 10px;
}

.hero-title {
  font-size: clamp(36px, 5vw, 56px);
  font-weight: 800;
  color: white;
  line-height: 1.15;
  margin-bottom: 24px;
  letter-spacing: -1px;
  animation: fadeInUp 0.8s ease 0.15s both;
}

.hero-title .highlight {
  background: linear-gradient(135deg, var(--accent), var(--accent-light));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-desc {
  font-size: 18px;
  color: rgba(255,255,255,0.75);
  line-height: 1.7;
  margin-bottom: 40px;
  animation: fadeInUp 0.8s ease 0.3s both;
}

.hero-buttons {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  animation: fadeInUp 0.8s ease 0.45s both;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 32px;
  font-size: 15px;
  font-weight: 600;
  border-radius: 10px;
  border: none;
  cursor: pointer;
  transition: all var(--transition);
  font-family: var(--font-main);
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent), var(--accent-dark));
  color: white;
  box-shadow: 0 4px 20px rgba(232, 168, 56, 0.35);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(232, 168, 56, 0.5);
}

.btn-outline {
  background: transparent;
  color: white;
  border: 2px solid rgba(255,255,255,0.25);
}

.btn-outline:hover {
  background: rgba(255,255,255,0.1);
  border-color: rgba(255,255,255,0.5);
  transform: translateY(-2px);
}

.btn-sm {
  padding: 10px 22px;
  font-size: 14px;
}

/* ===== SECTION COMMON ===== */
.section {
  padding: 100px 0;
}

.section-header {
  text-align: center;
  max-width: 650px;
  margin: 0 auto 60px;
}

.section-label {
  display: inline-block;
  padding: 6px 18px;
  background: linear-gradient(135deg, rgba(37, 99, 168, 0.1), rgba(232, 168, 56, 0.1));
  border: 1px solid rgba(37, 99, 168, 0.15);
  border-radius: 50px;
  color: var(--primary-light);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 16px;
}

.section-title {
  font-size: clamp(28px, 3.5vw, 40px);
  font-weight: 800;
  color: var(--text-dark);
  line-height: 1.2;
  margin-bottom: 16px;
  letter-spacing: -0.5px;
}

.section-desc {
  font-size: 16px;
  color: var(--text-muted);
  line-height: 1.7;
}

/* ===== ABOUT / INTRO SECTION ===== */
.about-section {
  background: white;
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.about-image {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-xl);
}

.about-image img {
  width: 100%;
  height: 400px;
  object-fit: cover;
}

.about-image::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(26, 58, 92, 0.1), transparent);
}

.about-content h2 {
  font-size: 32px;
  font-weight: 800;
  color: var(--text-dark);
  margin-bottom: 20px;
  line-height: 1.3;
}

.about-content p {
  font-size: 16px;
  color: var(--text-body);
  margin-bottom: 18px;
}

.about-highlights {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 30px;
}

.about-highlight-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 18px;
  background: var(--bg-light);
  border-radius: var(--radius);
  transition: all var(--transition);
}

.about-highlight-item:hover {
  background: #e8f4fd;
  transform: translateX(4px);
}

.about-highlight-item .icon {
  width: 36px;
  height: 36px;
  background: linear-gradient(135deg, var(--primary-light), var(--primary));
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 16px;
  flex-shrink: 0;
}

.about-highlight-item span {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-dark);
}

/* ===== FEATURES SECTION ===== */
.features-section {
  background: var(--bg-light);
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.feature-card {
  background: white;
  padding: 36px 28px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  transition: all var(--transition);
  position: relative;
  overflow: hidden;
}

.feature-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--primary-light), var(--accent));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--transition);
}

.feature-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: transparent;
}

.feature-card:hover::before {
  transform: scaleX(1);
}

.feature-icon {
  width: 56px;
  height: 56px;
  background: linear-gradient(135deg, rgba(37, 99, 168, 0.1), rgba(232, 168, 56, 0.08));
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  margin-bottom: 20px;
  transition: all var(--transition);
}

.feature-card:hover .feature-icon {
  background: linear-gradient(135deg, var(--primary-light), var(--primary));
  transform: scale(1.05);
}

.feature-card:hover .feature-icon span {
  filter: brightness(10);
}

.feature-card h3 {
  font-size: 18px;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 12px;
}

.feature-card p {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.7;
}

/* ===== STATS SECTION ===== */
.stats-section {
  background: linear-gradient(135deg, var(--primary-dark), var(--primary), var(--primary-light));
  position: relative;
  overflow: hidden;
}

.stats-section::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(232, 168, 56, 0.1), transparent);
  border-radius: 50%;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
  position: relative;
  z-index: 2;
}

.stat-item {
  text-align: center;
  padding: 30px;
}

.stat-number {
  font-size: 48px;
  font-weight: 800;
  color: var(--accent-light);
  line-height: 1;
  margin-bottom: 8px;
  letter-spacing: -1px;
}

.stat-label {
  font-size: 15px;
  color: rgba(255,255,255,0.7);
  font-weight: 500;
}

/* ===== NEWS SECTION ===== */
.news-section {
  background: white;
}

.news-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.news-card {
  background: white;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  transition: all var(--transition);
}

.news-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: transparent;
}

.news-thumb {
  position: relative;
  height: 200px;
  overflow: hidden;
}

.news-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.news-card:hover .news-thumb img {
  transform: scale(1.08);
}

.news-category {
  position: absolute;
  top: 14px;
  left: 14px;
  padding: 5px 14px;
  background: rgba(26, 58, 92, 0.85);
  backdrop-filter: blur(8px);
  color: white;
  font-size: 11px;
  font-weight: 600;
  border-radius: 6px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.news-body {
  padding: 24px;
}

.news-meta {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 12px;
}

.news-meta .meta-item {
  display: flex;
  align-items: center;
  gap: 5px;
}

.news-body h3 {
  font-size: 17px;
  font-weight: 700;
  color: var(--text-dark);
  line-height: 1.4;
  margin-bottom: 10px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  transition: color var(--transition);
}

.news-card:hover .news-body h3 {
  color: var(--primary-light);
}

.news-body .excerpt {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: 16px;
}

.read-more {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  font-weight: 600;
  color: var(--primary-light);
  transition: gap var(--transition);
}

.read-more:hover {
  gap: 10px;
  color: var(--accent-dark);
}

/* View all link */
.section-footer {
  text-align: center;
  margin-top: 48px;
}

/* ===== CONTACT SECTION ===== */
.contact-section {
  background: var(--bg-light);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  align-items: start;
}

.contact-info h3 {
  font-size: 24px;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 16px;
}

.contact-info > p {
  color: var(--text-muted);
  font-size: 15px;
  margin-bottom: 32px;
}

.contact-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}

.contact-item .ci-icon {
  width: 44px;
  height: 44px;
  background: linear-gradient(135deg, var(--primary-light), var(--primary));
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 18px;
  flex-shrink: 0;
}

.contact-item .ci-text strong {
  display: block;
  font-size: 14px;
  color: var(--text-dark);
  margin-bottom: 4px;
}

.contact-item .ci-text span {
  font-size: 14px;
  color: var(--text-muted);
}

/* Contact Form */
.contact-form {
  background: white;
  padding: 36px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 8px;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 12px 16px;
  border: 2px solid var(--border);
  border-radius: 10px;
  font-size: 14px;
  font-family: var(--font-main);
  color: var(--text-dark);
  transition: all var(--transition);
  background: var(--bg-light);
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary-light);
  background: white;
  box-shadow: 0 0 0 4px rgba(37, 99, 168, 0.1);
}

.form-group textarea {
  resize: vertical;
  min-height: 120px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

/* ===== FOOTER ===== */
.site-footer {
  background: var(--primary-dark);
  color: rgba(255,255,255,0.7);
  padding: 60px 0 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.footer-brand .logo-text {
  font-size: 20px;
  font-weight: 700;
  color: white;
  margin-bottom: 16px;
}

.footer-brand .logo-text span {
  color: var(--accent-light);
}

.footer-brand p {
  font-size: 14px;
  line-height: 1.7;
  margin-bottom: 20px;
}

.footer-heading {
  font-size: 15px;
  font-weight: 700;
  color: white;
  margin-bottom: 20px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.footer-links a {
  display: block;
  padding: 6px 0;
  font-size: 14px;
  color: rgba(255,255,255,0.6);
  transition: all var(--transition);
}

.footer-links a:hover {
  color: var(--accent-light);
  transform: translateX(4px);
}

.footer-contact-item {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
  font-size: 14px;
}

.footer-contact-item .fci-icon {
  color: var(--accent-light);
}

.footer-bottom {
  padding: 24px 0;
  text-align: center;
  font-size: 13px;
  color: rgba(255,255,255,0.4);
}

/* ===== BLOG / NEWS LIST PAGE ===== */
.page-banner {
  padding: 140px 0 60px;
  background: linear-gradient(135deg, var(--primary-dark), var(--primary));
  text-align: center;
  position: relative;
}

.page-banner h1 {
  font-size: 36px;
  font-weight: 800;
  color: white;
  margin-bottom: 12px;
}

.page-banner .breadcrumb {
  font-size: 14px;
  color: rgba(255,255,255,0.6);
}

.page-banner .breadcrumb a {
  color: var(--accent-light);
}

.blog-layout {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 40px;
  padding: 60px 0;
}

.blog-posts {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.blog-card {
  display: grid;
  grid-template-columns: 280px 1fr;
  background: white;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  transition: all var(--transition);
}

.blog-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
  border-color: transparent;
}

.blog-card .card-thumb {
  height: 100%;
  min-height: 200px;
}

.blog-card .card-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.blog-card .card-body {
  padding: 28px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.blog-card .card-body .cat-badge {
  display: inline-block;
  padding: 4px 12px;
  background: rgba(37, 99, 168, 0.08);
  color: var(--primary-light);
  font-size: 12px;
  font-weight: 600;
  border-radius: 6px;
  margin-bottom: 10px;
  align-self: flex-start;
}

.blog-card .card-body h2 {
  font-size: 19px;
  font-weight: 700;
  color: var(--text-dark);
  line-height: 1.4;
  margin-bottom: 10px;
}

.blog-card .card-body h2 a:hover {
  color: var(--primary-light);
}

.blog-card .card-body .excerpt {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 14px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Sidebar */
.sidebar .widget {
  background: white;
  padding: 28px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  margin-bottom: 24px;
}

.sidebar .widget-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 18px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--bg-light);
  position: relative;
}

.sidebar .widget-title::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 40px;
  height: 2px;
  background: var(--accent);
}

.sidebar .cat-list li {
  border-bottom: 1px solid var(--bg-light);
}

.sidebar .cat-list li:last-child {
  border-bottom: none;
}

.sidebar .cat-list a {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 0;
  font-size: 14px;
  color: var(--text-body);
  transition: all var(--transition);
}

.sidebar .cat-list a:hover {
  color: var(--primary-light);
  padding-left: 8px;
}

.sidebar .cat-list .count {
  background: var(--bg-light);
  padding: 2px 10px;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-muted);
}

.sidebar .recent-posts li {
  display: flex;
  gap: 14px;
  padding: 12px 0;
  border-bottom: 1px solid var(--bg-light);
}

.sidebar .recent-posts li:last-child {
  border-bottom: none;
}

.sidebar .recent-thumb {
  width: 70px;
  height: 60px;
  border-radius: 8px;
  overflow: hidden;
  flex-shrink: 0;
}

.sidebar .recent-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.sidebar .recent-info h4 {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-dark);
  line-height: 1.4;
  margin-bottom: 4px;
}

.sidebar .recent-info h4 a:hover {
  color: var(--primary-light);
}

.sidebar .recent-date {
  font-size: 12px;
  color: var(--text-muted);
}

/* ===== SINGLE POST ===== */
.single-layout {
  max-width: 800px;
  margin: 0 auto;
  padding: 60px 24px;
}

.single-layout .post-header {
  margin-bottom: 36px;
}

.single-layout .post-category {
  display: inline-block;
  padding: 5px 14px;
  background: rgba(37, 99, 168, 0.08);
  color: var(--primary-light);
  font-size: 12px;
  font-weight: 600;
  border-radius: 6px;
  margin-bottom: 14px;
}

.single-layout .post-title {
  font-size: 32px;
  font-weight: 800;
  color: var(--text-dark);
  line-height: 1.3;
  margin-bottom: 16px;
  letter-spacing: -0.5px;
}

.single-layout .post-meta {
  display: flex;
  gap: 20px;
  font-size: 14px;
  color: var(--text-muted);
}

.single-layout .featured-image {
  width: 100%;
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-bottom: 36px;
  box-shadow: var(--shadow-md);
}

.single-layout .featured-image img {
  width: 100%;
  height: auto;
}

.single-layout .post-content {
  font-size: 16px;
  line-height: 1.9;
  color: var(--text-body);
}

.single-layout .post-content h2 {
  font-size: 24px;
  font-weight: 700;
  color: var(--text-dark);
  margin: 36px 0 16px;
}

.single-layout .post-content h3 {
  font-size: 20px;
  font-weight: 700;
  color: var(--text-dark);
  margin: 28px 0 12px;
}

.single-layout .post-content p {
  margin-bottom: 18px;
}

.single-layout .post-content ul,
.single-layout .post-content ol {
  padding-left: 24px;
  margin-bottom: 18px;
}

.single-layout .post-content ul li {
  list-style: disc;
  margin-bottom: 8px;
}

.single-layout .post-content ol li {
  list-style: decimal;
  margin-bottom: 8px;
}

.single-layout .post-content blockquote {
  border-left: 4px solid var(--accent);
  padding: 16px 24px;
  background: var(--bg-light);
  border-radius: 0 var(--radius) var(--radius) 0;
  margin: 24px 0;
  font-style: italic;
  color: var(--text-dark);
}

.single-layout .post-content img {
  border-radius: var(--radius);
  margin: 24px 0;
}

/* Post Tags */
.post-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 36px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
}

.post-tags a {
  padding: 6px 14px;
  background: var(--bg-light);
  border-radius: 6px;
  font-size: 13px;
  color: var(--text-body);
  transition: all var(--transition);
}

.post-tags a:hover {
  background: var(--primary-light);
  color: white;
}

/* Pagination */
.pagination {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 40px;
}

.pagination a,
.pagination span {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 600;
  border: 1px solid var(--border);
  color: var(--text-body);
  transition: all var(--transition);
}

.pagination a:hover {
  background: var(--primary-light);
  color: white;
  border-color: var(--primary-light);
}

.pagination .current {
  background: var(--primary);
  color: white;
  border-color: var(--primary);
}

/* ===== ANIMATIONS ===== */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.6s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
  .features-grid,
  .news-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .blog-layout {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .mobile-menu-btn {
    display: block;
  }
  .main-nav {
    position: fixed;
    top: 72px;
    left: 0;
    right: 0;
    background: rgba(15, 36, 64, 0.98);
    backdrop-filter: blur(20px);
    padding: 20px;
    transform: translateY(-120%);
    transition: transform var(--transition);
    box-shadow: var(--shadow-lg);
  }
  .main-nav.active {
    transform: translateY(0);
  }
  .main-nav ul {
    flex-direction: column;
    gap: 0;
  }
  .main-nav a {
    padding: 12px 16px;
    border-radius: 8px;
  }
  .hero-content {
    padding: 40px 0;
  }
  .about-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  .features-grid,
  .news-grid {
    grid-template-columns: 1fr;
  }
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }
  .stat-number {
    font-size: 36px;
  }
  .contact-grid {
    grid-template-columns: 1fr;
  }
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  .blog-card {
    grid-template-columns: 1fr;
  }
  .form-row {
    grid-template-columns: 1fr;
  }
  .section {
    padding: 60px 0;
  }
  .about-highlights {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .hero-buttons {
    flex-direction: column;
  }
  .hero-title {
    font-size: 28px;
  }
  .stat-number {
    font-size: 30px;
  }
  .single-layout .post-title {
    font-size: 24px;
  }
}

/* ===== WP ADMIN BAR FIX ===== */
body.admin-bar .site-header {
  top: 32px;
}

@media (max-width: 782px) {
  body.admin-bar .site-header {
    top: 46px;
  }
}

/* No thumbnail placeholder */
.no-thumb {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, var(--primary-light), var(--primary));
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.3);
  font-size: 48px;
}
