/*
Theme Name: Tebyan Law Blog
Theme URI: https://blog.tebyan-law.com
Author: Wihdan
Author URI: https://wihdan.com
Description: قالب مدونة احترافي لشركة تبيان التميز للمحاماة والاستشارات القانونية
Version: 1.0.0
Requires at least: 5.8
Requires PHP: 7.4
License: Private
Text Domain: tebyan-law-blog
*/

/* ============================================
   IMPORTS & VARIABLES
============================================ */
@import url('https://fonts.googleapis.com/css2?family=Tajawal:wght@300;400;500;700;800;900&display=swap');

:root {
  --primary:       #1a3a5c;
  --primary-dark:  #102540;
  --primary-light: #2a5080;
  --accent:        #c9a84c;
  --accent-light:  #e0c070;
  --text-dark:     #1a1a2e;
  --text-body:     #3a3a4a;
  --text-muted:    #777;
  --bg-white:      #ffffff;
  --bg-light:      #f5f7fa;
  --bg-section:    #f0f4f8;
  --border:        #e0e6ef;
  --shadow-sm:     0 2px 8px rgba(26,58,92,0.08);
  --shadow-md:     0 4px 20px rgba(26,58,92,0.12);
  --shadow-lg:     0 8px 40px rgba(26,58,92,0.16);
  --radius:        8px;
  --radius-lg:     16px;
  --font:          'Tajawal', sans-serif;
  --transition:    all 0.3s ease;
}

/* ============================================
   RESET & BASE
============================================ */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  direction: rtl;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.8;
  color: var(--text-body);
  background: var(--bg-white);
  direction: rtl;
  text-align: right;
  -webkit-font-smoothing: antialiased;
}

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

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

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

ul, ol { list-style: none; }

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font);
  color: var(--text-dark);
  line-height: 1.4;
  font-weight: 700;
}

p { margin-bottom: 1em; }
p:last-child { margin-bottom: 0; }

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ============================================
   HEADER
============================================ */
#site-header {
  background: var(--primary-dark);
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: var(--shadow-md);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  max-width: 1200px;
  margin: 0 auto;
}

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

.site-logo img {
  height: 50px;
  width: auto;
}

.site-logo-text {
  display: flex;
  flex-direction: column;
}

.logo-title {
  font-size: 16px;
  font-weight: 800;
  color: #ffffff;
  line-height: 1.2;
}

.logo-subtitle {
  font-size: 11px;
  color: var(--accent-light);
  font-weight: 400;
}

/* Search Bar - Fixed in header, not sticky separately */
.header-search {
  flex: 1;
  max-width: 420px;
  margin: 0 30px;
  position: relative;
}

.header-search form {
  display: flex;
  align-items: center;
  background: rgba(255,255,255,0.1);
  border: 1.5px solid rgba(255,255,255,0.2);
  border-radius: 30px;
  overflow: hidden;
  transition: var(--transition);
}

.header-search form:focus-within {
  background: rgba(255,255,255,0.15);
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(201,168,76,0.2);
}

.header-search input[type="search"] {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  padding: 10px 18px;
  font-family: var(--font);
  font-size: 14px;
  color: #fff;
  direction: rtl;
  text-align: right;
}

.header-search input[type="search"]::placeholder {
  color: rgba(255,255,255,0.5);
}

.header-search button {
  background: transparent;
  border: none;
  padding: 10px 16px;
  cursor: pointer;
  color: rgba(255,255,255,0.7);
  font-size: 16px;
  transition: var(--transition);
}

.header-search button:hover { color: var(--accent); }

/* Main Navigation */
.main-nav ul {
  display: flex;
  align-items: center;
  gap: 8px;
}

.main-nav ul li a {
  color: rgba(255,255,255,0.85);
  font-size: 14px;
  font-weight: 500;
  padding: 8px 14px;
  border-radius: 6px;
  transition: var(--transition);
}

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

.nav-btn-primary {
  background: var(--accent) !important;
  color: var(--primary-dark) !important;
  font-weight: 700 !important;
  padding: 9px 20px !important;
  border-radius: 6px !important;
}

.nav-btn-primary:hover {
  background: var(--accent-light) !important;
  transform: translateY(-1px);
}

.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  color: #fff;
  font-size: 22px;
  cursor: pointer;
  padding: 5px;
}

/* ============================================
   BLOG HERO BANNER
============================================ */
.blog-hero-banner {
  position: relative;
  height: 220px;
  overflow: hidden;
  background: var(--primary-dark);
}

.blog-hero-banner .hero-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.35;
}

.blog-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(16,37,64,0.85) 0%, rgba(26,58,92,0.75) 100%);
}

.blog-hero-content {
  position: relative;
  z-index: 2;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  text-align: center;
  padding: 20px;
}

.blog-hero-content h1 {
  font-size: 42px;
  font-weight: 900;
  color: #ffffff;
  text-shadow: 0 2px 12px rgba(0,0,0,0.3);
  margin-bottom: 10px;
  letter-spacing: -0.5px;
}

.blog-hero-content .hero-breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  color: rgba(255,255,255,0.7);
  font-size: 14px;
}

.blog-hero-content .hero-breadcrumb a {
  color: var(--accent-light);
}

.blog-hero-content .hero-breadcrumb span { color: rgba(255,255,255,0.4); }

/* ============================================
   BLOG ARCHIVE - MAIN LAYOUT
============================================ */
.blog-main-wrapper {
  padding: 50px 0 70px;
  background: var(--bg-light);
}

.blog-content-grid {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 35px;
  align-items: start;
}

/* ============================================
   POST CARDS
============================================ */
.posts-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.post-card {
  background: var(--bg-white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  border: 1px solid var(--border);
}

.post-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: rgba(26,58,92,0.15);
}

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

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

.post-card:hover .post-card-thumb img {
  transform: scale(1.05);
}

.post-card-thumb .no-thumb {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
}

.post-card-thumb .no-thumb svg {
  width: 50px;
  height: 50px;
  opacity: 0.3;
  fill: #fff;
}

.post-card-category {
  position: absolute;
  top: 14px;
  right: 14px;
  background: var(--accent);
  color: var(--primary-dark);
  font-size: 12px;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 20px;
}

.post-card-body {
  padding: 20px;
}

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

.post-card-meta span {
  display: flex;
  align-items: center;
  gap: 5px;
}

.post-card-meta svg {
  width: 13px;
  height: 13px;
  fill: var(--accent);
  flex-shrink: 0;
}

.post-card-title {
  font-size: 17px;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 10px;
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.post-card-title a { color: inherit; }
.post-card-title a:hover { color: var(--primary); }

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

.post-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 14px;
  border-top: 1px solid var(--border);
}

.read-more-link {
  font-size: 13px;
  font-weight: 600;
  color: var(--primary);
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  background: var(--bg-section);
  border-radius: 20px;
  transition: var(--transition);
}

.read-more-link:hover {
  background: var(--primary);
  color: #fff;
}

.read-more-link svg {
  width: 14px;
  height: 14px;
  fill: currentColor;
  transform: scaleX(-1);
}

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

.blog-pagination .nav-links {
  display: flex;
  gap: 8px;
  align-items: center;
}

.blog-pagination .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 600;
  background: var(--bg-white);
  color: var(--text-dark);
  border: 1.5px solid var(--border);
  transition: var(--transition);
}

.blog-pagination .page-numbers:hover,
.blog-pagination .page-numbers.current {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}

/* ============================================
   SIDEBAR
============================================ */
.blog-sidebar {
  position: sticky;
  top: 90px;
}

.sidebar-widget {
  background: var(--bg-white);
  border-radius: var(--radius-lg);
  padding: 24px;
  margin-bottom: 24px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
}

.widget-title {
  font-size: 17px;
  font-weight: 800;
  color: var(--primary-dark);
  margin-bottom: 18px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--primary);
  position: relative;
  display: flex;
  align-items: center;
  gap: 8px;
}

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

.widget-title svg {
  width: 18px;
  height: 18px;
  fill: var(--accent);
  flex-shrink: 0;
}

/* Recent Posts Widget */
.recent-posts-list { display: flex; flex-direction: column; gap: 0; }

.recent-post-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
  transition: var(--transition);
}

.recent-post-item:last-child { border-bottom: none; padding-bottom: 0; }
.recent-post-item:first-child { padding-top: 0; }

.recent-post-item:hover .recent-post-title { color: var(--primary); }

.recent-post-number {
  width: 28px;
  height: 28px;
  background: var(--bg-section);
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
  color: var(--primary);
  flex-shrink: 0;
  margin-top: 2px;
}

.recent-post-info { flex: 1; }

.recent-post-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-dark);
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  transition: var(--transition);
}

.recent-post-date {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 4px;
}

/* WhatsApp Widget */
.whatsapp-widget {
  background: linear-gradient(135deg, #0a5e3f 0%, #128c5e 100%);
  border: none;
}

.whatsapp-widget .widget-title {
  color: #fff;
  border-bottom-color: rgba(255,255,255,0.2);
}

.whatsapp-widget .widget-title::after { background: #fff; }
.whatsapp-widget .widget-title svg { fill: #fff; }

.whatsapp-widget p {
  color: rgba(255,255,255,0.85);
  font-size: 14px;
  margin-bottom: 16px;
  line-height: 1.7;
}

.whatsapp-cta-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  padding: 13px 20px;
  background: #25d366;
  color: #fff;
  font-family: var(--font);
  font-size: 15px;
  font-weight: 700;
  border-radius: 10px;
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: var(--transition);
  box-shadow: 0 4px 15px rgba(37,211,102,0.3);
}

.whatsapp-cta-btn:hover {
  background: #1ebe5d;
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(37,211,102,0.4);
}

.whatsapp-cta-btn svg {
  width: 22px;
  height: 22px;
  fill: #fff;
  flex-shrink: 0;
}

/* ============================================
   SINGLE POST
============================================ */
.single-post-wrapper {
  padding: 50px 0 70px;
  background: var(--bg-light);
}

.single-post-content {
  background: var(--bg-white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
}

.single-post-thumbnail {
  width: 100%;
  height: 420px;
  object-fit: cover;
}

.single-post-body {
  padding: 40px;
}

.single-post-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 24px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border);
  font-size: 14px;
  color: var(--text-muted);
}

.single-post-meta span {
  display: flex;
  align-items: center;
  gap: 6px;
}

.single-post-meta svg {
  width: 14px;
  height: 14px;
  fill: var(--accent);
}

.single-post-meta .post-category a {
  background: var(--primary);
  color: #fff;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
}

.single-post-title {
  font-size: 30px;
  font-weight: 900;
  color: var(--text-dark);
  line-height: 1.4;
  margin-bottom: 28px;
}

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

.post-entry-content h2 {
  font-size: 22px;
  font-weight: 800;
  color: var(--primary-dark);
  margin: 32px 0 16px;
  padding-right: 16px;
  border-right: 4px solid var(--accent);
}

.post-entry-content h3 {
  font-size: 19px;
  font-weight: 700;
  color: var(--text-dark);
  margin: 24px 0 12px;
}

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

.post-entry-content ul,
.post-entry-content ol {
  margin: 16px 0 20px 0;
  padding-right: 24px;
}

.post-entry-content ul { list-style: disc; }
.post-entry-content ol { list-style: decimal; }

.post-entry-content li { margin-bottom: 8px; }

.post-entry-content blockquote {
  background: var(--bg-section);
  border-right: 4px solid var(--primary);
  padding: 20px 24px;
  margin: 24px 0;
  border-radius: 0 var(--radius) var(--radius) 0;
  font-style: italic;
  color: var(--primary-dark);
  font-size: 17px;
}

.post-entry-content a {
  color: var(--primary);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.post-entry-content img {
  border-radius: var(--radius);
  margin: 20px 0;
}

/* Post Tags */
.post-tags {
  margin-top: 30px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.post-tags-label {
  font-weight: 700;
  color: var(--text-dark);
  font-size: 14px;
}

.post-tag {
  background: var(--bg-section);
  color: var(--primary);
  padding: 5px 14px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 500;
  border: 1px solid var(--border);
  transition: var(--transition);
}

.post-tag:hover {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}

/* Share Buttons */
.post-share {
  margin-top: 24px;
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.post-share-label {
  font-weight: 700;
  color: var(--text-dark);
  font-size: 14px;
}

.share-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  font-family: var(--font);
  color: #fff;
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: var(--transition);
}

.share-btn:hover { transform: translateY(-2px); color: #fff; }
.share-btn.whatsapp { background: #25d366; }
.share-btn.twitter  { background: #1da1f2; }
.share-btn.facebook { background: #1877f2; }
.share-btn svg { width: 16px; height: 16px; fill: #fff; }

/* ============================================
   STATIC PAGES (Privacy, Terms)
============================================ */
.page-wrapper {
  padding: 50px 0 70px;
  background: var(--bg-light);
}

.page-content-box {
  background: var(--bg-white);
  border-radius: var(--radius-lg);
  padding: 50px 60px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
  max-width: 860px;
  margin: 0 auto;
}

.page-content-box h1 {
  font-size: 28px;
  font-weight: 900;
  color: var(--primary-dark);
  margin-bottom: 10px;
}

.page-content-box .page-date {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 32px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 6px;
}

.page-content-box .entry-content h2 {
  font-size: 20px;
  font-weight: 800;
  color: var(--primary-dark);
  margin: 30px 0 14px;
  padding-right: 14px;
  border-right: 3px solid var(--accent);
}

.page-content-box .entry-content p {
  font-size: 15px;
  line-height: 1.9;
  color: var(--text-body);
  margin-bottom: 16px;
}

.page-content-box .entry-content ul {
  list-style: none;
  padding: 0;
  margin: 14px 0 20px;
}

.page-content-box .entry-content ul li {
  position: relative;
  padding-right: 22px;
  font-size: 15px;
  line-height: 1.8;
  margin-bottom: 8px;
  color: var(--text-body);
}

.page-content-box .entry-content ul li::before {
  content: '';
  position: absolute;
  right: 6px;
  top: 10px;
  width: 6px;
  height: 6px;
  background: var(--accent);
  border-radius: 50%;
}

/* ============================================
   FOOTER
============================================ */
#site-footer {
  background: var(--primary-dark);
  color: rgba(255,255,255,0.75);
}

.footer-top {
  padding: 50px 0 40px;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 40px;
}

.footer-col-title {
  font-size: 16px;
  font-weight: 800;
  color: #fff;
  margin-bottom: 20px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
  position: relative;
}

.footer-col-title::after {
  content: '';
  position: absolute;
  bottom: -1px;
  right: 0;
  width: 30px;
  height: 2px;
  background: var(--accent);
}

.footer-about p {
  font-size: 14px;
  line-height: 1.8;
  margin-bottom: 18px;
}

.footer-links ul { display: flex; flex-direction: column; gap: 10px; }

.footer-links ul li a {
  color: rgba(255,255,255,0.7);
  font-size: 14px;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: var(--transition);
}

.footer-links ul li a:hover { color: var(--accent-light); padding-right: 5px; }

.footer-links ul li a::before {
  content: '←';
  font-size: 12px;
  color: var(--accent);
}

.footer-contact-info { display: flex; flex-direction: column; gap: 12px; }

.footer-contact-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  color: rgba(255,255,255,0.7);
}

.footer-contact-icon {
  width: 32px;
  height: 32px;
  background: rgba(255,255,255,0.08);
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.footer-contact-icon svg { width: 14px; height: 14px; fill: var(--accent); }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding: 20px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 13px;
  color: rgba(255,255,255,0.5);
}

.footer-bottom a { color: var(--accent-light); }

/* ============================================
   FLOATING WHATSAPP BUTTON
============================================ */
.floating-whatsapp {
  position: fixed;
  bottom: 30px;
  left: 30px;
  z-index: 9999;
  width: 58px;
  height: 58px;
  background: #25d366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(37,211,102,0.4);
  transition: var(--transition);
  text-decoration: none;
}

.floating-whatsapp:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 28px rgba(37,211,102,0.55);
  background: #1ebe5d;
}

.floating-whatsapp svg {
  width: 30px;
  height: 30px;
  fill: #fff;
}

.floating-whatsapp .pulse-ring {
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  border: 2px solid rgba(37,211,102,0.4);
  animation: pulse-ring 2s ease-out infinite;
}

@keyframes pulse-ring {
  0%   { transform: scale(0.9); opacity: 1; }
  100% { transform: scale(1.3); opacity: 0; }
}

/* ============================================
   SEARCH RESULTS PAGE
============================================ */
.search-results-header {
  background: var(--bg-white);
  border-radius: var(--radius-lg);
  padding: 20px 24px;
  margin-bottom: 24px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
  font-size: 15px;
  color: var(--text-muted);
}

.search-results-header strong { color: var(--primary); }

/* No results */
.no-results-box {
  background: var(--bg-white);
  border-radius: var(--radius-lg);
  padding: 60px 40px;
  text-align: center;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
}

.no-results-box svg {
  width: 70px;
  height: 70px;
  fill: var(--border);
  margin: 0 auto 20px;
}

.no-results-box h2 {
  font-size: 22px;
  color: var(--text-dark);
  margin-bottom: 10px;
}

.no-results-box p { color: var(--text-muted); }

/* ============================================
   RESPONSIVE
============================================ */
@media (max-width: 1024px) {
  .blog-content-grid {
    grid-template-columns: 1fr 280px;
    gap: 24px;
  }
}

@media (max-width: 900px) {
  .blog-content-grid {
    grid-template-columns: 1fr;
  }

  .blog-sidebar {
    position: static;
  }

  .posts-grid {
    grid-template-columns: 1fr;
  }

  .footer-top {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .blog-hero-content h1 { font-size: 30px; }
}

@media (max-width: 768px) {
  .header-inner { flex-wrap: wrap; gap: 10px; }
  .header-search { max-width: 100%; margin: 0; order: 3; width: 100%; }
  .main-nav { display: none; }
  .main-nav.open { display: block; width: 100%; order: 4; }
  .main-nav.open ul { flex-direction: column; padding: 10px 0; }
  .mobile-menu-toggle { display: block; }

  .single-post-body { padding: 24px; }
  .single-post-title { font-size: 22px; }
  .page-content-box { padding: 30px 20px; }
  .footer-bottom { flex-direction: column; gap: 10px; text-align: center; }
}
