/*
Theme Name: Rimla Developers KSA
Theme URI: https://ksa.rimladev.com
Author: RimlaDev
Author URI: https://rimladev.com
Description: Premium dark glassmorphism magazine theme for KSA Business Hub
Version: 3.0
License: GNU General Public License v2 or later
Text Domain: ksa-premium
*/

/* ============================================================
   CSS VARIABLES — DARK THEME
   ============================================================ */
:root {
  --bg:           #0A0A0F;
  --bg2:          #111118;
  --glass:        rgba(255,255,255,0.05);
  --glass-hover:  rgba(255,255,255,0.09);
  --glass-border: rgba(167,139,250,0.15);
  --glass-shadow: 0 8px 32px rgba(0,0,0,0.4);
  --glass-shadow-hover: 0 20px 60px rgba(124,58,237,0.25);
  --accent:       #7C3AED;
  --accent-light: #A78BFA;
  --accent-pale:  rgba(167,139,250,0.15);
  --accent-faint: rgba(124,58,237,0.08);
  --text:         #EDE9FE;
  --text-muted:   rgba(237,233,254,0.65);
  --text-light:   rgba(237,233,254,0.4);
  --white:        #FFFFFF;
  --radius-sm:    10px;
  --radius:       16px;
  --radius-lg:    24px;
  --transition:   0.25s cubic-bezier(.4,0,.2,1);
}

/* ============================================================
   RESET & BASE
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Inter', 'Segoe UI', system-ui, -apple-system, sans-serif;
  line-height: 1.7;
  overflow-x: hidden;
  min-height: 100vh;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent-light); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--white); }
ul { list-style: none; }

/* ============================================================
   BACKGROUND BLOBS
   ============================================================ */
.bg-blobs { position: fixed; inset: 0; pointer-events: none; z-index: 0; overflow: hidden; }
.blob { position: absolute; border-radius: 50%; filter: blur(90px); }
.blob-1 { width: 500px; height: 500px; background: #7C3AED; opacity: 0.15; top: -150px; left: -150px; }
.blob-2 { width: 400px; height: 400px; background: #A78BFA; opacity: 0.08; top: 45%; right: -120px; }
.blob-3 { width: 300px; height: 300px; background: #6D28D9; opacity: 0.1; bottom: 10%; left: 30%; }

/* ============================================================
   WRAPPER
   ============================================================ */
#page { position: relative; z-index: 1; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }

/* ============================================================
   NAVBAR
   ============================================================ */
#site-header {
  position: sticky; top: 0; z-index: 200;
  background: rgba(10,10,15,0.8);
  border-bottom: 1px solid var(--glass-border);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  box-shadow: 0 2px 30px rgba(0,0,0,0.5);
}
.navbar-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 20px; padding: 15px 24px;
  max-width: 1200px; margin: 0 auto;
}
.site-logo { font-size: 20px; font-weight: 800; color: var(--text); letter-spacing: -0.3px; white-space: nowrap; }
.site-logo span { color: var(--accent-light); }

#site-navigation ul { display: flex; gap: 4px; align-items: center; }
#site-navigation a {
  color: var(--text-muted); font-size: 14px; font-weight: 500;
  padding: 7px 14px; border-radius: var(--radius-sm);
  transition: all var(--transition);
}
#site-navigation a:hover { color: var(--text); background: var(--accent-faint); }

.nav-search-btn {
  width: 38px; height: 38px; border-radius: 50%;
  background: var(--accent-faint); border: 1px solid var(--glass-border);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; color: var(--accent-light); font-size: 16px;
  transition: background var(--transition); text-decoration: none;
}
.nav-search-btn:hover { background: var(--accent-pale); color: var(--white); }

.nav-cta {
  background: var(--accent) !important; color: var(--white) !important;
  padding: 8px 20px !important; border-radius: 24px !important;
  font-weight: 600 !important; font-size: 13px !important;
  box-shadow: 0 4px 18px rgba(124,58,237,0.4);
  transition: all var(--transition) !important;
  display: inline-block;
}
.nav-cta:hover { background: #6D28D9 !important; transform: translateY(-1px); box-shadow: 0 6px 24px rgba(124,58,237,0.5) !important; }

.nav-toggle { display: none; background: none; border: none; cursor: pointer; font-size: 22px; color: var(--accent-light); padding: 4px; }

/* ============================================================
   SEARCH PAGE
   ============================================================ */
.search-page-wrap { padding: 48px 0; }
.search-page-wrap h1 { font-size: 26px; font-weight: 800; margin-bottom: 24px; color: var(--text); }
.search-results-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 20px; margin-top: 32px; }

/* ============================================================
   CONTACT PAGE
   ============================================================ */
.contact-page { padding: 48px 0; }
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; align-items: start; }
.contact-info h1 { font-size: 32px; font-weight: 800; color: var(--text); margin-bottom: 16px; }
.contact-info p { color: var(--text-muted); font-size: 15px; line-height: 1.7; margin-bottom: 28px; }
.contact-links { display: flex; flex-direction: column; gap: 14px; }
.contact-link-item {
  display: flex; align-items: center; gap: 14px;
  background: var(--glass); border: 1px solid var(--glass-border);
  backdrop-filter: blur(16px); border-radius: var(--radius);
  padding: 16px 20px; transition: all var(--transition);
  text-decoration: none;
}
.contact-link-item:hover { background: var(--glass-hover); transform: translateX(4px); border-color: var(--accent-light); }
.contact-icon {
  width: 44px; height: 44px; border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  font-size: 20px; flex-shrink: 0;
}
.icon-wa { background: rgba(37,211,102,0.15); }
.icon-fb { background: rgba(24,119,242,0.15); }
.icon-tt { background: rgba(255,255,255,0.08); }
.contact-link-text strong { color: var(--text); font-size: 14px; font-weight: 600; display: block; }
.contact-link-text span { color: var(--text-muted); font-size: 13px; }

.contact-form-wrap {
  background: var(--glass); border: 1px solid var(--glass-border);
  backdrop-filter: blur(20px); border-radius: var(--radius-lg);
  padding: 32px; box-shadow: var(--glass-shadow);
}
.contact-form-wrap h2 { font-size: 20px; font-weight: 700; color: var(--text); margin-bottom: 24px; }
.form-group { margin-bottom: 16px; }
.form-group label { display: block; color: var(--text-muted); font-size: 13px; font-weight: 600; margin-bottom: 6px; }
.form-group input,
.form-group textarea,
.form-group select {
  width: 100%; background: rgba(255,255,255,0.06);
  border: 1px solid var(--glass-border); color: var(--text);
  padding: 12px 16px; border-radius: var(--radius-sm);
  font-size: 14px; outline: none; font-family: inherit;
  transition: border-color var(--transition), box-shadow var(--transition);
}
.form-group input::placeholder,
.form-group textarea::placeholder { color: var(--text-light); }
.form-group input:focus,
.form-group textarea:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(124,58,237,0.15); }
.form-group textarea { min-height: 120px; resize: vertical; }
.form-submit {
  width: 100%; background: var(--accent); color: var(--white);
  border: none; padding: 14px; border-radius: var(--radius-sm);
  font-size: 15px; font-weight: 700; cursor: pointer;
  font-family: inherit; box-shadow: 0 4px 18px rgba(124,58,237,0.4);
  transition: all var(--transition);
}
.form-submit:hover { background: #6D28D9; transform: translateY(-1px); box-shadow: 0 6px 24px rgba(124,58,237,0.5); }

/* ============================================================
   HERO SECTION
   ============================================================ */
.hero-section { padding: 48px 0 32px; }
.hero-card {
  background: var(--glass); border: 1px solid var(--glass-border);
  backdrop-filter: blur(24px); -webkit-backdrop-filter: blur(24px);
  border-radius: var(--radius-lg); box-shadow: var(--glass-shadow);
  overflow: hidden; display: grid; grid-template-columns: 1fr 1fr;
  min-height: 420px; transition: box-shadow var(--transition);
}
.hero-card:hover { box-shadow: var(--glass-shadow-hover); }
.hero-image { position: relative; overflow: hidden; background: linear-gradient(135deg, #1a0a2e, #2d1a4e); }
.hero-image img { width:100%; height:100%; object-fit:cover; opacity:0.75; transition: transform 0.6s ease; }
.hero-card:hover .hero-image img { transform: scale(1.04); }
.hero-image-placeholder {
  width:100%; height:100%; display:flex; align-items:center; justify-content:center;
  background: linear-gradient(135deg, #1a0a2e, #2d1a4e, #4a1a7e); font-size: 80px; color: rgba(167,139,250,0.2);
}
.hero-content { padding: 40px 44px; display:flex; flex-direction:column; justify-content:center; gap:16px; }

.post-badge {
  display: inline-flex; align-items: center; gap: 6px;
  background: rgba(124,58,237,0.25); color: var(--accent-light);
  font-size: 11px; font-weight: 700; padding: 5px 14px;
  border-radius: 20px; text-transform: uppercase; letter-spacing: 0.6px;
  width: fit-content; border: 1px solid rgba(167,139,250,0.3);
}
.hero-content h2 { font-size: 28px; font-weight: 800; line-height: 1.3; color: var(--text); letter-spacing: -0.3px; }
.hero-content h2 a { color: inherit; }
.hero-content h2 a:hover { color: var(--accent-light); }
.hero-excerpt { color: var(--text-muted); font-size: 15px; line-height: 1.7; }
.post-meta { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.post-meta span { color: var(--text-light); font-size: 13px; display:flex; align-items:center; gap:5px; }
.meta-cat { color: var(--accent-light) !important; font-weight: 600; }

.btn-primary {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--accent); color: var(--white);
  padding: 12px 28px; border-radius: 24px; font-size: 14px; font-weight: 600;
  width: fit-content; box-shadow: 0 4px 18px rgba(124,58,237,0.4);
  transition: all var(--transition);
}
.btn-primary:hover { background: #6D28D9; color: var(--white); transform: translateY(-2px); box-shadow: 0 8px 28px rgba(124,58,237,0.5); }
.btn-primary .arrow { transition: transform var(--transition); }
.btn-primary:hover .arrow { transform: translateX(4px); }

/* ============================================================
   SECTION TITLES
   ============================================================ */
.section-header { display:flex; align-items:center; justify-content:space-between; margin-bottom:24px; padding-bottom:12px; border-bottom:1px solid var(--glass-border); }
.section-title { font-size:20px; font-weight:800; color:var(--text); display:flex; align-items:center; gap:10px; }
.section-title::before { content:''; display:block; width:4px; height:22px; background:linear-gradient(180deg,var(--accent),var(--accent-light)); border-radius:4px; }
.section-link { color:var(--accent-light); font-size:13px; font-weight:600; display:flex; align-items:center; gap:4px; }
.section-link:hover { color:var(--white); }

/* ============================================================
   MAIN LAYOUT
   ============================================================ */
.content-area { padding: 40px 0 60px; }
.main-sidebar-wrap { display:grid; grid-template-columns:1fr 320px; gap:32px; align-items:start; }

/* ============================================================
   POST CARDS
   ============================================================ */
.posts-grid { display:grid; grid-template-columns:repeat(3,1fr); gap:20px; margin-bottom:40px; }
.post-card {
  background: var(--glass); border: 1px solid var(--glass-border);
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  border-radius: var(--radius); box-shadow: var(--glass-shadow);
  overflow: hidden; display:flex; flex-direction:column;
  transition: all var(--transition);
}
.post-card:hover { transform:translateY(-6px); box-shadow:var(--glass-shadow-hover); background:var(--glass-hover); }
.card-thumb { height:180px; overflow:hidden; background:linear-gradient(135deg,#1a0a2e,#2d1a4e); position:relative; }
.card-thumb img { width:100%; height:100%; object-fit:cover; opacity:0.8; transition:transform 0.5s ease; }
.post-card:hover .card-thumb img { transform:scale(1.07); }
.card-thumb-placeholder { width:100%; height:100%; display:flex; align-items:center; justify-content:center; font-size:40px; color:rgba(167,139,250,0.2); background:linear-gradient(135deg,#1a0a2e,#2d1a4e); }
.card-category-tag { position:absolute; top:12px; left:12px; background:var(--accent); color:var(--white); font-size:10px; font-weight:700; padding:4px 12px; border-radius:20px; text-transform:uppercase; letter-spacing:0.5px; }
.card-body { padding:20px; flex:1; display:flex; flex-direction:column; gap:10px; }
.card-body h3 { font-size:15px; font-weight:700; line-height:1.4; color:var(--text); flex:1; }
.card-body h3 a { color:inherit; }
.card-body h3 a:hover { color:var(--accent-light); }
.card-excerpt { color:var(--text-muted); font-size:13px; line-height:1.6; }
.card-footer { padding:14px 20px; border-top:1px solid rgba(167,139,250,0.08); display:flex; justify-content:space-between; align-items:center; }
.card-footer .read-time { color:var(--text-light); font-size:12px; }
.card-footer .card-link { color:var(--accent-light); font-size:12px; font-weight:600; display:flex; align-items:center; gap:4px; transition:gap var(--transition); }
.post-card:hover .card-link { gap:8px; }

/* ============================================================
   CATEGORY SECTIONS
   ============================================================ */
.category-section { margin-bottom:48px; }
.cat-scroll-wrap { display:grid; grid-template-columns:repeat(2,1fr); gap:16px; }
.cat-post-card {
  background:var(--glass); border:1px solid var(--glass-border); backdrop-filter:blur(12px);
  border-radius:var(--radius); box-shadow:0 4px 16px rgba(0,0,0,0.3);
  display:flex; gap:16px; padding:16px; align-items:flex-start; transition:all var(--transition);
}
.cat-post-card:hover { transform:translateY(-3px); box-shadow:0 8px 30px rgba(124,58,237,0.2); background:var(--glass-hover); }
.cat-thumb { width:80px; height:80px; border-radius:var(--radius-sm); overflow:hidden; flex-shrink:0; background:linear-gradient(135deg,#1a0a2e,#2d1a4e); }
.cat-thumb img { width:100%; height:100%; object-fit:cover; }
.cat-thumb-placeholder { width:100%; height:100%; display:flex; align-items:center; justify-content:center; font-size:24px; color:rgba(167,139,250,0.25); }
.cat-info .cat-label { color:var(--accent-light); font-size:10px; font-weight:700; text-transform:uppercase; letter-spacing:0.5px; margin-bottom:6px; }
.cat-info h4 { font-size:14px; font-weight:600; line-height:1.4; color:var(--text); margin-bottom:6px; }
.cat-info h4 a { color:inherit; }
.cat-info h4 a:hover { color:var(--accent-light); }
.cat-info .cat-meta { color:var(--text-light); font-size:12px; }

/* ============================================================
   SIDEBAR
   ============================================================ */
.post-sidebar { display:flex; flex-direction:column; gap:0; }
.sidebar-widget {
  background:var(--glass); border:1px solid var(--glass-border);
  backdrop-filter:blur(16px); -webkit-backdrop-filter:blur(16px);
  border-radius:var(--radius); box-shadow:var(--glass-shadow);
  padding:24px; margin-bottom:24px;
}
.widget-title { font-size:12px; font-weight:700; text-transform:uppercase; letter-spacing:0.9px; color:var(--accent-light); margin-bottom:18px; display:flex; align-items:center; gap:8px; }
.widget-title::after { content:''; flex:1; height:1px; background:var(--glass-border); }
.trending-item { display:flex; gap:12px; padding:10px 0; border-bottom:1px solid rgba(167,139,250,0.06); align-items:flex-start; }
.trending-item:last-child { border:none; padding-bottom:0; }
.trend-num { font-size:20px; font-weight:800; color:rgba(167,139,250,0.2); line-height:1; min-width:28px; padding-top:2px; }
.trend-info h5 { font-size:13px; font-weight:600; line-height:1.4; color:var(--text); margin-bottom:4px; }
.trend-info h5 a { color:inherit; }
.trend-info h5 a:hover { color:var(--accent-light); }
.trend-info span { color:var(--text-light); font-size:12px; }
.cat-list li { display:flex; justify-content:space-between; align-items:center; padding:9px 0; border-bottom:1px solid rgba(167,139,250,0.06); }
.cat-list li:last-child { border:none; }
.cat-list a { color:var(--text-muted); font-size:14px; font-weight:500; transition:color var(--transition); display:flex; align-items:center; gap:8px; }
.cat-list a::before { content:''; width:6px; height:6px; border-radius:50%; background:var(--accent-light); flex-shrink:0; opacity:0.5; }
.cat-list a:hover { color:var(--accent-light); }
.cat-count { background:var(--accent-faint); color:var(--accent-light); font-size:11px; font-weight:700; padding:2px 9px; border-radius:20px; }

/* Newsletter */
.newsletter-widget { background:linear-gradient(135deg,#4C1D95 0%,#5B21B6 50%,#6D28D9 100%); border:1px solid rgba(167,139,250,0.2); }
.newsletter-widget .widget-title { color:rgba(237,233,254,0.6); }
.newsletter-widget .widget-title::after { background:rgba(255,255,255,0.15); }
.newsletter-widget h3 { font-size:18px; font-weight:800; margin-bottom:8px; line-height:1.3; color:var(--white); }
.newsletter-widget p { font-size:13px; color:rgba(255,255,255,0.7); margin-bottom:16px; line-height:1.6; }
.newsletter-form { display:flex; flex-direction:column; gap:10px; }
.newsletter-form input { background:rgba(255,255,255,0.12); border:1px solid rgba(255,255,255,0.25); color:var(--white); padding:11px 16px; border-radius:var(--radius-sm); font-size:13px; outline:none; font-family:inherit; transition:background var(--transition); }
.newsletter-form input::placeholder { color:rgba(255,255,255,0.5); }
.newsletter-form input:focus { background:rgba(255,255,255,0.18); }
.newsletter-form button { background:rgba(255,255,255,0.95); color:var(--accent); border:none; padding:11px; border-radius:var(--radius-sm); font-size:14px; font-weight:700; cursor:pointer; transition:all var(--transition); font-family:inherit; }
.newsletter-form button:hover { background:var(--white); transform:translateY(-1px); }

/* Social widget */
.social-widget-links { display:flex; flex-direction:column; gap:10px; }
.social-widget-item {
  display:flex; align-items:center; gap:12px; padding:12px 14px;
  background:rgba(255,255,255,0.04); border:1px solid var(--glass-border);
  border-radius:var(--radius-sm); text-decoration:none;
  transition:all var(--transition);
}
.social-widget-item:hover { background:rgba(255,255,255,0.08); transform:translateX(4px); border-color:var(--accent-light); }
.sw-icon { width:36px; height:36px; border-radius:10px; display:flex; align-items:center; justify-content:center; font-size:16px; flex-shrink:0; }
.sw-fb { background:rgba(24,119,242,0.2); }
.sw-tt { background:rgba(255,255,255,0.08); }
.sw-wa { background:rgba(37,211,102,0.2); }
.sw-label strong { color:var(--text); font-size:13px; font-weight:600; display:block; }
.sw-label span { color:var(--text-light); font-size:12px; }

/* Tags */
.tag-cloud-wrap { display:flex; flex-wrap:wrap; gap:8px; }
.tag-cloud-wrap a { background:var(--accent-faint); color:var(--accent-light); font-size:12px; font-weight:500; padding:5px 14px; border-radius:20px; border:1px solid rgba(167,139,250,0.2); transition:all var(--transition); }
.tag-cloud-wrap a:hover { background:var(--accent); color:var(--white); }

/* ============================================================
   SINGLE POST
   ============================================================ */
.single-layout { display:grid; grid-template-columns:1fr 320px; gap:32px; align-items:start; }
.entry-wrap { background:var(--glass); border:1px solid var(--glass-border); backdrop-filter:blur(16px); border-radius:var(--radius-lg); box-shadow:var(--glass-shadow); overflow:hidden; }
.entry-featured-img { width:100%; max-height:420px; object-fit:cover; }
.entry-body { padding:40px; }
.entry-header { margin-bottom:32px; }
.entry-header h1 { font-size:30px; font-weight:800; line-height:1.3; color:var(--text); margin:14px 0 16px; }
.entry-content { color:var(--text-muted); font-size:16px; line-height:1.85; }
.entry-content h2 { color:var(--text); font-size:22px; font-weight:700; margin:36px 0 14px; }
.entry-content h3 { color:var(--text); font-size:18px; font-weight:700; margin:28px 0 12px; }
.entry-content p { margin-bottom:20px; }
.entry-content a { color:var(--accent-light); text-decoration:underline; text-decoration-color:rgba(167,139,250,0.3); }
.entry-content ul,.entry-content ol { padding-left:24px; margin-bottom:20px; }
.entry-content li { margin-bottom:8px; }
.entry-content img { border-radius:var(--radius); margin:24px 0; box-shadow:var(--glass-shadow); }
.entry-content blockquote { background:rgba(124,58,237,0.1); border-left:4px solid var(--accent); border-radius:0 var(--radius-sm) var(--radius-sm) 0; padding:20px 24px; margin:28px 0; color:var(--text-muted); font-style:italic; }
.entry-content code { background:rgba(124,58,237,0.2); color:var(--accent-light); padding:2px 8px; border-radius:5px; font-size:14px; }
.entry-content table { width:100%; border-collapse:collapse; margin:24px 0; font-size:14px; }
.entry-content th { background:rgba(124,58,237,0.15); color:var(--accent-light); padding:12px 16px; text-align:left; font-weight:700; }
.entry-content td { padding:12px 16px; border-bottom:1px solid var(--glass-border); color:var(--text-muted); }
.post-tags { margin-top:32px; padding-top:24px; border-top:1px solid var(--glass-border); }

/* ============================================================
   COMMENTS
   ============================================================ */
.comments-wrap { background:var(--glass); border:1px solid var(--glass-border); backdrop-filter:blur(16px); border-radius:var(--radius-lg); padding:36px; margin-top:24px; box-shadow:var(--glass-shadow); }
.comments-title { font-size:20px; font-weight:800; color:var(--text); margin-bottom:24px; }
.comment-item { padding:18px; background:rgba(124,58,237,0.06); border:1px solid rgba(167,139,250,0.1); border-radius:var(--radius-sm); margin-bottom:14px; }
.comment-author-name { color:var(--accent-light); font-size:14px; font-weight:700; }
.comment-date { color:var(--text-light); font-size:12px; margin-left:10px; }
.comment-text { color:var(--text-muted); font-size:14px; margin-top:8px; line-height:1.6; }
.comment-form-title { font-size:18px; font-weight:700; color:var(--text); margin:28px 0 18px; }
.comment-form input,.comment-form textarea { width:100%; background:rgba(255,255,255,0.05); border:1px solid var(--glass-border); color:var(--text); padding:12px 16px; border-radius:var(--radius-sm); font-size:14px; outline:none; margin-bottom:14px; font-family:inherit; transition:border-color var(--transition),box-shadow var(--transition); }
.comment-form input:focus,.comment-form textarea:focus { border-color:var(--accent); box-shadow:0 0 0 3px rgba(124,58,237,0.15); }
.comment-form textarea { min-height:130px; resize:vertical; }
.comment-form .submit { background:var(--accent); color:var(--white); border:none; padding:12px 32px; border-radius:24px; font-size:14px; font-weight:700; cursor:pointer; font-family:inherit; box-shadow:0 4px 18px rgba(124,58,237,0.4); transition:all var(--transition); }
.comment-form .submit:hover { background:#6D28D9; transform:translateY(-1px); }

/* ============================================================
   PAGINATION
   ============================================================ */
.posts-pagination { display:flex; justify-content:center; gap:8px; margin:48px 0 20px; }
.posts-pagination a,.posts-pagination span { background:var(--glass); border:1px solid var(--glass-border); color:var(--text-muted); padding:10px 18px; border-radius:var(--radius-sm); font-size:14px; font-weight:500; transition:all var(--transition); backdrop-filter:blur(8px); }
.posts-pagination .current,.posts-pagination a:hover { background:var(--accent); color:var(--white); border-color:var(--accent); box-shadow:0 4px 14px rgba(124,58,237,0.4); }

/* ============================================================
   SEARCH FORM
   ============================================================ */
.search-form { display:flex; gap:8px; }
.search-field { flex:1; background:rgba(255,255,255,0.06); border:1px solid var(--glass-border); color:var(--text); padding:10px 16px; border-radius:var(--radius-sm); font-size:14px; outline:none; font-family:inherit; transition:border-color var(--transition); }
.search-field:focus { border-color:var(--accent); }
.search-field::placeholder { color:var(--text-light); }
.search-submit { background:var(--accent); color:var(--white); border:none; padding:10px 18px; border-radius:var(--radius-sm); cursor:pointer; font-size:14px; font-weight:600; transition:background var(--transition); }
.search-submit:hover { background:#6D28D9; }

/* ============================================================
   FOOTER
   ============================================================ */
#site-footer { background:rgba(5,5,10,0.98); border-top:1px solid rgba(124,58,237,0.2); position:relative; z-index:1; margin-top:60px; }
.footer-top { max-width:1200px; margin:0 auto; padding:48px 24px 32px; display:grid; grid-template-columns:2fr 1fr 1fr 1fr; gap:40px; }
.footer-brand .footer-logo { font-size:20px; font-weight:800; color:var(--text); margin-bottom:12px; display:block; }
.footer-brand .footer-logo span { color:var(--accent-light); }
.footer-brand p { color:rgba(255,255,255,0.4); font-size:14px; line-height:1.7; margin-bottom:20px; }
.social-links { display:flex; gap:10px; }
.social-link { width:38px; height:38px; border-radius:50%; background:rgba(255,255,255,0.06); border:1px solid rgba(255,255,255,0.1); display:flex; align-items:center; justify-content:center; color:rgba(255,255,255,0.5); font-size:14px; text-decoration:none; transition:all var(--transition); font-style:normal; }
.social-link:hover { background:var(--accent); border-color:var(--accent); color:var(--white); transform:translateY(-2px); }
.footer-col h5 { color:var(--text); font-size:12px; font-weight:700; text-transform:uppercase; letter-spacing:0.8px; margin-bottom:16px; }
.footer-col ul li { margin-bottom:10px; }
.footer-col ul a { color:rgba(255,255,255,0.4); font-size:14px; transition:color var(--transition); }
.footer-col ul a:hover { color:var(--accent-light); }
.footer-bottom { border-top:1px solid rgba(255,255,255,0.06); max-width:1200px; margin:0 auto; padding:20px 24px; display:flex; justify-content:space-between; align-items:center; flex-wrap:wrap; gap:12px; }
.footer-bottom p { color:rgba(255,255,255,0.3); font-size:13px; }
.footer-bottom a { color:var(--accent-light); }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media(max-width:1024px){ .footer-top{grid-template-columns:1fr 1fr;} }
@media(max-width:900px){
  .hero-card{grid-template-columns:1fr;}
  .hero-image{height:240px;}
  .posts-grid{grid-template-columns:repeat(2,1fr);}
  .main-sidebar-wrap,.single-layout{grid-template-columns:1fr;}
  .contact-grid{grid-template-columns:1fr;}
}
@media(max-width:640px){
  #site-navigation{display:none;width:100%;order:3;}
  #site-navigation.open{display:block;}
  #site-navigation ul{flex-direction:column;gap:2px;padding:8px 0;}
  .nav-toggle{display:block;}
  .posts-grid,.cat-scroll-wrap,.search-results-grid{grid-template-columns:1fr;}
  .hero-content{padding:28px 24px;}
  .hero-content h2{font-size:22px;}
  .footer-top{grid-template-columns:1fr;gap:28px;}
  .entry-body{padding:24px;}
}

/* ============================================================
   MOBILE FRIENDLY — COMPLETE RESPONSIVE FIX
   ============================================================ */

/* Navbar mobile */
@media(max-width:768px){
  .navbar-inner{
    flex-wrap:wrap;
    padding:12px 16px;
    gap:12px;
  }
  .site-logo{font-size:16px;}

  #site-navigation{
    display:none;
    width:100%;
    order:4;
    background:rgba(10,10,15,0.95);
    border-top:1px solid rgba(167,139,250,0.1);
    border-radius:0 0 16px 16px;
    padding:8px 0;
  }
  #site-navigation.open{display:block;}
  #site-navigation ul{flex-direction:column;gap:0;}
  #site-navigation a{
    display:block;
    padding:10px 20px;
    border-radius:0;
    font-size:15px;
  }
  .nav-toggle{display:flex;}

  /* Hide search bar text on mobile, keep button */
  .navbar-inner form input[type="search"]{
    width:100px;
    font-size:12px;
    padding:6px 10px;
  }
  .nav-cta{
    padding:7px 14px !important;
    font-size:12px !important;
  }
}

/* Hero mobile */
@media(max-width:768px){
  .hero-section{padding:20px 0 16px;}
  .hero-card{
    grid-template-columns:1fr;
    min-height:auto;
    border-radius:16px;
  }
  .hero-image{
    height:200px;
    border-radius:16px 16px 0 0;
  }
  .hero-image img{
    width:100%;height:100%;
    object-fit:cover;
    border-radius:16px 16px 0 0;
  }
  .hero-content{
    padding:20px;
    gap:12px;
  }
  .hero-content h2{font-size:18px;line-height:1.35;}
  .hero-excerpt{font-size:13px;}
  .post-meta{gap:10px;}
  .post-meta span{font-size:12px;}
  .btn-primary{padding:10px 20px;font-size:13px;}
}

/* Posts grid mobile */
@media(max-width:768px){
  .posts-grid{
    grid-template-columns:1fr;
    gap:14px;
    margin-bottom:24px;
  }
  .post-card{border-radius:14px;}
  .card-thumb{height:160px;}
  .card-body{padding:14px;}
  .card-body h3{font-size:14px;}
  .card-footer{padding:10px 14px;}
}

/* Category sections mobile */
@media(max-width:768px){
  .cat-scroll-wrap{grid-template-columns:1fr;}
  .cat-post-card{padding:12px;}
  .cat-thumb{width:64px;height:64px;}
  .cat-info h4{font-size:13px;}
}

/* Main layout mobile — sidebar goes below */
@media(max-width:768px){
  .main-sidebar-wrap{
    grid-template-columns:1fr;
    gap:20px;
  }
  .single-layout{
    grid-template-columns:1fr;
    gap:20px;
  }
  .content-area{padding:20px 0 40px;}
  .container{padding:0 14px;}
}

/* Sidebar mobile */
@media(max-width:768px){
  .sidebar-widget{padding:18px;}
  .post-sidebar{gap:0;}
}

/* Single post mobile */
@media(max-width:768px){
  .entry-body{padding:18px;}
  .entry-header h1{font-size:20px;}
  .entry-content{font-size:14px;}
  .entry-content h2{font-size:18px;}
  .entry-featured-img{max-height:220px;}
}

/* Contact page mobile */
@media(max-width:768px){
  .contact-grid{grid-template-columns:1fr;}
  .contact-info h1{font-size:24px;}
  .contact-form-wrap{padding:20px;}
}

/* Footer mobile */
@media(max-width:768px){
  .footer-top{
    grid-template-columns:1fr;
    padding:28px 16px 20px;
    gap:24px;
  }
  .footer-bottom{
    flex-direction:column;
    text-align:center;
    padding:16px;
    gap:6px;
  }
  .social-links{justify-content:flex-start;}
}

/* Section header mobile */
@media(max-width:768px){
  .section-title{font-size:16px;}
  .section-header{margin-bottom:16px;}
}

/* Pagination mobile */
@media(max-width:768px){
  .posts-pagination{flex-wrap:wrap;gap:6px;margin:24px 0 10px;}
  .posts-pagination a,.posts-pagination span{padding:8px 12px;font-size:13px;}
}
