/*
Theme Name: MMAR NAQEL Blog (عربي)
Theme URI: https://mmarnaqel.com
Author: MMAR NAQEL
Author URI: https://mmarnaqel.com
Description: النسخة العربية من ثيم مدونة ممر ناقل — حلول لوجستية متميزة. يتطابق تصميم الموقع الرئيسي بنظام الألوان الذهبي والداكن مع دعم كامل للغة العربية والاتجاه من اليمين إلى اليسار.
Version: 1.0.0
Text Domain: mmar-naqel-ar
*/

/* ============================
   CSS VARIABLES
   ============================ */
:root {
    --gold: #C9A227;
    --gold-light: #DEBB3F;
    --gold-lighter: #FDF5DC;
    --gold-dark: #A8871B;
    --gold-gradient: linear-gradient(135deg, #C9A227, #DEBB3F);
    --white: #FFFFFF;
    --off-white: #FAFAFA;
    --light-grey: #F5F5F5;
    --mid-grey: #E0E0E0;
    --dark: #1A1A1A;
    --dark-grey: #333333;
    --text: #2D2D2D;
    --text-light: #666666;
    --text-lighter: #999999;
    --shadow-sm: 0 2px 8px rgba(0,0,0,0.06);
    --shadow-md: 0 4px 20px rgba(0,0,0,0.08);
    --shadow-lg: 0 8px 40px rgba(0,0,0,0.12);
    --shadow-gold: 0 4px 20px rgba(201,162,39,0.25);
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --radius-xl: 30px;
    --transition: 0.3s cubic-bezier(0.4,0,0.2,1);
    --font-primary: 'Noto Kufi Arabic', 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-heading: 'Noto Kufi Arabic', 'Montserrat', 'Inter', sans-serif;
}

/* ============================
   RESET & BASE
   ============================ */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; direction: rtl; }
body {
    font-family: var(--font-primary);
    color: var(--text);
    background: var(--white);
    line-height: 1.8;
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
    direction: rtl;
}
a { text-decoration: none; color: inherit; transition: var(--transition); }
img { max-width: 100%; display: block; }
ul { list-style: none; }
.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.gold { color: var(--gold); }

/* ============================
   TYPOGRAPHY
   ============================ */
h1, h2, h3, h4, h5 {
    font-family: var(--font-heading);
    color: var(--dark);
    line-height: 1.35;
    font-weight: 700;
}
h1 { font-size: clamp(2.2rem, 4vw, 3.5rem); }
h2 { font-size: clamp(1.8rem, 3.5vw, 2.8rem); }
h3 { font-size: clamp(1.2rem, 2.5vw, 1.6rem); }
h4 { font-size: 1.1rem; }

.section-tag {
    display: inline-block;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 1px;
    color: var(--gold);
    background: var(--gold-lighter);
    padding: 6px 16px;
    border-radius: 50px;
    margin-bottom: 16px;
    font-family: var(--font-primary);
}
.section-desc { color: var(--text-light); font-size: 1.05rem; margin-top: 12px; line-height: 1.8; }

/* ============================
   BUTTONS
   ============================ */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-primary);
    font-weight: 600;
    font-size: 0.95rem;
    padding: 12px 28px;
    border-radius: var(--radius-xl);
    border: 2px solid transparent;
    cursor: pointer;
    transition: var(--transition);
    white-space: nowrap;
}
.btn i { font-size: 0.85rem; transition: transform var(--transition); }
.btn:hover i { transform: translateX(-3px); }
.btn-primary { background: var(--gold-gradient); color: var(--white); border-color: var(--gold); box-shadow: var(--shadow-gold); }
.btn-primary:hover { background: var(--gold-dark); border-color: var(--gold-dark); transform: translateY(-2px); box-shadow: 0 6px 25px rgba(201,162,39,0.35); }
.btn-outline { background: transparent; color: var(--dark); border-color: var(--dark); }
.btn-outline:hover { background: var(--dark); color: var(--white); transform: translateY(-2px); }
.btn-lg { padding: 16px 36px; font-size: 1rem; }

/* Card Link */
.card-link { font-size: 0.85rem; font-weight: 600; color: var(--gold); display: inline-flex; align-items: center; gap: 6px; }
.card-link i { font-size: 0.75rem; transition: transform var(--transition); }
.card-link:hover { color: var(--gold-dark); }
.card-link:hover i { transform: translateX(-4px); }

/* ============================
   NAVIGATION
   ============================ */
.navbar {
    position: fixed;
    top: 0; left: 0;
    width: 100%;
    z-index: 1000;
    padding: 16px 0;
    transition: var(--transition);
    background: transparent;
}
.navbar.scrolled,
body.no-hero .navbar {
    background: rgba(255,255,255,0.97);
    backdrop-filter: blur(12px);
    box-shadow: var(--shadow-sm);
    padding: 10px 0;
}
.nav-container { display: flex; align-items: center; justify-content: space-between; }
.logo { display: flex; align-items: center; gap: 12px; font-family: var(--font-heading); font-size: 1.6rem; font-weight: 700; color: var(--white); }
.navbar.scrolled .logo, body.no-hero .logo { color: var(--dark); }
.logo-svg { width: 44px; height: 48px; flex-shrink: 0; }
.logo-brand { display: flex; flex-direction: column; line-height: 1.1; }
.logo-brand .logo-en { font-family: 'Montserrat', sans-serif; font-size: 1.25rem; font-weight: 700; letter-spacing: 2px; text-transform: uppercase; }
.logo-brand .logo-ar { font-size: 0.85rem; font-weight: 600; color: var(--gold); letter-spacing: 0; font-family: 'Noto Kufi Arabic', sans-serif; }
.nav-links { display: flex; align-items: center; gap: 32px; }
.nav-links a { font-size: 0.9rem; font-weight: 500; color: rgba(255,255,255,0.85); position: relative; padding: 4px 0; }
.navbar.scrolled .nav-links a, body.no-hero .nav-links a { color: var(--text); }
.nav-links a::after { content: ''; position: absolute; bottom: -2px; right: 0; width: 0; height: 2px; background: var(--gold); border-radius: 2px; transition: var(--transition); }
.nav-links a:hover::after, .nav-links a.active::after { width: 100%; }
.nav-links a:hover, .nav-links a.active { color: var(--gold); }
.nav-cta { padding: 10px 24px; font-size: 0.85rem; }
.hamburger { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 4px; }
.hamburger span { width: 26px; height: 2.5px; background: var(--white); border-radius: 2px; transition: var(--transition); }
.navbar.scrolled .hamburger span, body.no-hero .hamburger span { background: var(--dark); }
.hamburger.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* Language Switcher */
.lang-switch { display: flex; align-items: center; background: rgba(255,255,255,0.15); border: 1px solid rgba(255,255,255,0.25); border-radius: 50px; padding: 3px; transition: 0.3s ease; margin-right: 12px; }
.navbar.scrolled .lang-switch, body.no-hero .lang-switch { background: var(--light-grey); border-color: var(--mid-grey); }
.lang-switch a { display: flex; align-items: center; gap: 6px; padding: 5px 12px; font-size: 0.8rem; font-weight: 600; border-radius: 50px; color: rgba(255,255,255,0.7); transition: 0.3s ease; }
.navbar.scrolled .lang-switch a, body.no-hero .lang-switch a { color: var(--text-light); }
.lang-switch a.active { background: var(--gold); color: var(--white); }
.lang-switch a:hover:not(.active) { color: var(--gold); }

/* ============================
   BLOG BANNER
   ============================ */
.blog-banner {
    background: linear-gradient(135deg, #1a1a2e 0%, #2d3561 50%, #162032 100%);
    padding: 160px 0 80px;
    text-align: center;
    position: relative;
    overflow: hidden;
}
.blog-banner::before {
    content: '';
    position: absolute; top: -40%; left: -10%;
    width: 600px; height: 600px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(201,162,39,0.15) 0%, transparent 70%);
    pointer-events: none;
}
.blog-banner::after {
    content: '';
    position: absolute; bottom: -30%; right: -10%;
    width: 400px; height: 400px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(201,162,39,0.08) 0%, transparent 70%);
    pointer-events: none;
}
.blog-banner .container { position: relative; z-index: 1; }
.blog-banner h1 { color: var(--white); margin-bottom: 16px; }
.blog-banner p { color: rgba(255,255,255,0.65); font-size: 1.05rem; max-width: 540px; margin: 0 auto 32px; }

/* Blog Search (banner) */
.blog-search { max-width: 480px; margin: 0 auto; }
.blog-search .search-form { display: flex; gap: 0; background: rgba(255,255,255,0.1); border: 1px solid rgba(255,255,255,0.25); border-radius: 50px; padding: 6px; backdrop-filter: blur(8px); }
.blog-search input[type="search"] { flex: 1; padding: 10px 20px; background: transparent; border: none; color: var(--white); font-size: 0.95rem; font-family: var(--font-primary); outline: none; text-align: right; }
.blog-search input[type="search"]::placeholder { color: rgba(255,255,255,0.45); }
.blog-search button { background: var(--gold-gradient); border: none; padding: 10px 20px; border-radius: 50px; color: var(--white); cursor: pointer; font-size: 0.9rem; transition: var(--transition); white-space: nowrap; }
.blog-search button:hover { background: var(--gold-dark); }

/* ============================
   BLOG LISTING SECTION
   ============================ */
.blog-section { padding: 72px 0 80px; background: var(--off-white); }
.blog-layout { display: grid; grid-template-columns: 320px 1fr; gap: 40px; align-items: start; }

/* Blog Grid */
.blog-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 28px; }
.blog-card { background: var(--white); border: 1px solid var(--mid-grey); border-radius: var(--radius-md); overflow: hidden; transition: var(--transition); }
.blog-card:hover { box-shadow: var(--shadow-md); transform: translateY(-4px); border-color: var(--gold); }
.blog-img-link { display: block; }
.blog-img { position: relative; aspect-ratio: 16/9; overflow: hidden; }
.blog-img img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.4s ease; }
.blog-card:hover .blog-img img { transform: scale(1.04); }
.blog-img-placeholder { width: 100%; height: 100%; background: linear-gradient(135deg, #3a3a54 0%, #2e4468 100%); display: flex; align-items: center; justify-content: center; font-size: 2.5rem; color: rgba(201,162,39,0.3); }
.blog-date { position: absolute; top: 14px; left: 14px; background: var(--gold); color: var(--white); font-size: 0.72rem; font-weight: 600; padding: 4px 12px; border-radius: 50px; }
.blog-content { padding: 22px; }
.blog-tag { display: inline-block; font-size: 0.72rem; font-weight: 600; color: var(--gold); background: var(--gold-lighter); padding: 3px 10px; border-radius: 50px; margin-bottom: 10px; transition: var(--transition); }
.blog-tag:hover { background: var(--gold); color: var(--white); }
.blog-content h4 { font-family: var(--font-primary); font-weight: 600; margin-bottom: 8px; line-height: 1.45; font-size: 1.05rem; }
.blog-content h4 a { color: var(--dark); transition: var(--transition); }
.blog-content h4 a:hover { color: var(--gold); }
.blog-content p { font-size: 0.88rem; color: var(--text-light); line-height: 1.7; margin-bottom: 14px; }

/* No posts */
.no-posts { text-align: center; padding: 80px 24px; background: var(--white); border-radius: var(--radius-md); border: 1px solid var(--mid-grey); }
.no-posts i { font-size: 3rem; color: var(--mid-grey); margin-bottom: 16px; display: block; }
.no-posts h3 { margin-bottom: 8px; }
.no-posts p { color: var(--text-light); }
.no-posts a { color: var(--gold); }

/* ============================
   PAGINATION
   ============================ */
.blog-pagination { display: flex; justify-content: center; align-items: center; gap: 8px; margin-top: 48px; flex-wrap: wrap; }
.blog-pagination .page-numbers { display: inline-flex; align-items: center; justify-content: center; min-width: 44px; height: 44px; padding: 0 10px; border-radius: var(--radius-sm); font-weight: 600; font-size: 0.9rem; background: var(--white); border: 1px solid var(--mid-grey); color: var(--text); transition: var(--transition); gap: 6px; }
.blog-pagination .page-numbers:hover, .blog-pagination .page-numbers.current { background: var(--gold); border-color: var(--gold); color: var(--white); transform: translateY(-2px); }
.blog-pagination .page-numbers.dots { background: none; border: none; cursor: default; transform: none; }

/* ============================
   SIDEBAR
   ============================ */
.blog-sidebar { display: flex; flex-direction: column; gap: 24px; position: sticky; top: 100px; }
.sidebar-widget { background: var(--white); border: 1px solid var(--mid-grey); border-radius: var(--radius-md); padding: 22px; }
.widget-title { font-family: var(--font-primary); font-weight: 700; font-size: 0.95rem; color: var(--dark); margin-bottom: 18px; padding-bottom: 12px; border-bottom: 2px solid var(--gold); text-transform: none; letter-spacing: 0; }
.sidebar-widget ul li { margin-bottom: 12px; padding-bottom: 12px; border-bottom: 1px solid var(--light-grey); list-style: none; }
.sidebar-widget ul li:last-child { margin-bottom: 0; padding-bottom: 0; border-bottom: none; }
.sidebar-widget ul li a { font-size: 0.88rem; font-weight: 500; color: var(--text); line-height: 1.4; display: block; transition: var(--transition); }
.sidebar-widget ul li a:hover { color: var(--gold); }
.widget_categories ul li a { display: flex; justify-content: space-between; align-items: center; }
.widget_search .search-form { display: flex; gap: 8px; }
.widget_search input[type="search"] { flex: 1; padding: 10px 14px; border: 1px solid var(--mid-grey); border-radius: var(--radius-sm); font-family: var(--font-primary); font-size: 0.88rem; outline: none; transition: var(--transition); background: var(--light-grey); text-align: right; }
.widget_search input[type="search"]:focus { border-color: var(--gold); background: var(--white); }
.widget_search button { background: var(--gold); border: none; padding: 10px 14px; border-radius: var(--radius-sm); color: var(--white); cursor: pointer; transition: var(--transition); }
.widget_search button:hover { background: var(--gold-dark); }

/* ============================
   POST HERO (Single)
   ============================ */
.post-hero { position: relative; height: 520px; overflow: hidden; background: #1a1a2e; }
.post-hero-img { width: 100%; height: 100%; object-fit: cover; opacity: 0.45; }
.post-hero-no-img { width: 100%; height: 100%; background: linear-gradient(135deg, #1a1a2e 0%, #2d3561 50%, #162032 100%); }
.post-hero-overlay { position: absolute; inset: 0; background: linear-gradient(to top, rgba(10,10,30,0.92) 0%, rgba(10,10,30,0.4) 60%, transparent 100%); }
.post-hero-content { position: absolute; bottom: 0; left: 0; right: 0; padding: 48px 0; }
.post-hero-content .container { max-width: 900px; }
.post-breadcrumb { display: flex; align-items: center; gap: 8px; font-size: 0.8rem; color: rgba(255,255,255,0.5); margin-bottom: 18px; flex-wrap: wrap; flex-direction: row-reverse; justify-content: flex-end; }
.post-breadcrumb a { color: rgba(255,255,255,0.7); }
.post-breadcrumb a:hover { color: var(--gold); }
.post-breadcrumb i { font-size: 0.6rem; transform: scaleX(-1); }
.post-hero-meta { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; margin-bottom: 16px; }
.post-cat-badge { background: var(--gold); color: var(--white); padding: 4px 14px; border-radius: 50px; font-size: 0.72rem; font-weight: 600; }
.post-hero-meta-item { color: rgba(255,255,255,0.6); font-size: 0.8rem; display: flex; align-items: center; gap: 5px; }
.post-hero-title { color: var(--white); font-size: clamp(1.6rem, 3.5vw, 2.6rem); line-height: 1.3; max-width: 760px; }

/* ============================
   SINGLE POST LAYOUT
   ============================ */
.single-post-layout { padding: 60px 0 80px; }
.single-post-container { display: grid; grid-template-columns: 300px 1fr; gap: 48px; align-items: start; max-width: 1200px; margin: 0 auto; padding: 0 24px; }

/* Post content typography */
.post-content { font-size: 1.05rem; line-height: 1.9; color: var(--text); }
.post-content h2 { font-size: 1.65rem; margin: 40px 0 16px; }
.post-content h3 { font-size: 1.3rem; margin: 32px 0 12px; }
.post-content h4 { font-size: 1.1rem; margin: 24px 0 10px; }
.post-content p { margin-bottom: 20px; }
.post-content ul, .post-content ol { margin: 16px 0 20px 0; padding-right: 24px; padding-left: 0; }
.post-content li { margin-bottom: 8px; list-style: disc; }
.post-content ol li { list-style: decimal; }
.post-content blockquote { border-right: 4px solid var(--gold); border-left: none; background: var(--gold-lighter); margin: 28px 0; padding: 20px 24px; border-radius: var(--radius-sm) 0 0 var(--radius-sm); font-style: normal; color: var(--dark-grey); }
.post-content blockquote p { margin-bottom: 0; }
.post-content a { color: var(--gold); text-decoration: underline; text-underline-offset: 3px; }
.post-content a:hover { color: var(--gold-dark); }
.post-content img { width: 100%; border-radius: var(--radius-md); margin: 24px 0; }
.post-content code { background: var(--light-grey); padding: 2px 6px; border-radius: 4px; font-family: monospace; font-size: 0.9em; color: var(--dark-grey); direction: ltr; }
.post-content pre { background: #1a1a2e; color: #e2e8f0; padding: 20px; border-radius: var(--radius-sm); overflow-x: auto; margin: 20px 0; font-size: 0.9rem; line-height: 1.6; direction: ltr; text-align: left; }
.post-content pre code { background: none; padding: 0; color: inherit; }
.post-content hr { border: none; border-top: 2px solid var(--mid-grey); margin: 40px 0; }
.post-content table { width: 100%; border-collapse: collapse; margin: 24px 0; font-size: 0.95rem; }
.post-content th { background: var(--gold-lighter); color: var(--dark); font-weight: 700; padding: 12px 16px; text-align: right; border: 1px solid var(--mid-grey); }
.post-content td { padding: 10px 16px; border: 1px solid var(--mid-grey); vertical-align: top; text-align: right; }
.post-content figure { margin: 24px 0; }
.post-content figcaption { font-size: 0.85rem; color: var(--text-lighter); text-align: center; margin-top: 8px; }

/* WordPress alignment classes */
.alignleft { float: right; margin: 0 0 16px 24px; }
.alignright { float: left; margin: 0 24px 16px 0; }
.aligncenter { display: block; margin: 0 auto; }

/* Post Tags */
.post-tags { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 36px; padding-top: 28px; border-top: 1px solid var(--mid-grey); }
.post-tags-label { font-weight: 600; color: var(--dark-grey); font-size: 0.9rem; display: flex; align-items: center; gap: 6px; }
.post-tag-item { padding: 4px 14px; background: var(--light-grey); border: 1px solid var(--mid-grey); border-radius: 50px; font-size: 0.8rem; color: var(--text-light); transition: var(--transition); }
.post-tag-item:hover { background: var(--gold-lighter); border-color: var(--gold); color: var(--gold); }

/* Share Buttons */
.post-share { margin-top: 28px; padding: 18px 22px; background: var(--off-white); border-radius: var(--radius-md); border: 1px solid var(--mid-grey); display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.post-share-label { font-weight: 600; font-size: 0.9rem; color: var(--dark); display: flex; align-items: center; gap: 6px; }
.share-btns { display: flex; gap: 8px; flex-wrap: wrap; }
.share-btn { display: inline-flex; align-items: center; gap: 6px; padding: 7px 14px; border-radius: 50px; font-size: 0.78rem; font-weight: 600; transition: var(--transition); cursor: pointer; border: none; }
.share-btn-linkedin { background: #0077b5; color: var(--white); }
.share-btn-twitter { background: #000; color: var(--white); }
.share-btn-facebook { background: #1877f2; color: var(--white); }
.share-btn-copy { background: var(--light-grey); color: var(--text); border: 1px solid var(--mid-grey); }
.share-btn:hover { transform: translateY(-2px); opacity: 0.88; }

/* Author Box */
.author-box { display: flex; gap: 20px; align-items: flex-start; padding: 24px; background: var(--off-white); border: 1px solid var(--mid-grey); border-radius: var(--radius-md); margin-top: 40px; }
.author-avatar { width: 64px; height: 64px; border-radius: 50%; flex-shrink: 0; overflow: hidden; border: 3px solid var(--gold); }
.author-avatar img { width: 100%; height: 100%; object-fit: cover; }
.author-name { font-weight: 700; font-size: 1rem; color: var(--dark); margin-bottom: 4px; }
.author-desc { font-size: 0.85rem; color: var(--text-light); line-height: 1.7; }

/* Post Navigation */
.post-navigation { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 40px; padding-top: 32px; border-top: 1px solid var(--mid-grey); }
.post-nav-item { padding: 20px; background: var(--off-white); border: 1px solid var(--mid-grey); border-radius: var(--radius-md); transition: var(--transition); display: block; }
.post-nav-item:hover { border-color: var(--gold); box-shadow: var(--shadow-sm); }
.post-nav-label { font-size: 0.72rem; font-weight: 600; color: var(--text-lighter); text-transform: none; letter-spacing: 0; margin-bottom: 6px; display: flex; align-items: center; gap: 5px; }
.post-nav-title { font-weight: 600; font-size: 0.88rem; color: var(--dark); line-height: 1.4; }
.post-nav-item.nav-next { text-align: left; }
.post-nav-item.nav-next .post-nav-label { justify-content: flex-start; }

/* ============================
   RELATED POSTS
   ============================ */
.related-posts-section { padding: 60px 0 80px; background: var(--off-white); }
.related-posts-section .container { max-width: 1200px; }
.related-posts-header { margin-bottom: 32px; }
.related-posts-header h3 { font-size: 1.4rem; color: var(--dark); }
.related-posts-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }

/* ============================
   SEARCH PAGE
   ============================ */
.search-header { padding: 130px 0 48px; background: var(--light-grey); border-bottom: 1px solid var(--mid-grey); }
.search-header .container { max-width: 860px; }
.search-header h1 { margin-bottom: 8px; font-size: 1.8rem; }
.search-header p { color: var(--text-light); }
.search-header .search-form { display: flex; gap: 8px; margin-top: 24px; max-width: 480px; }
.search-header input[type="search"] { flex: 1; padding: 12px 20px; border: 1px solid var(--mid-grey); border-radius: var(--radius-xl); font-family: var(--font-primary); font-size: 0.95rem; outline: none; transition: var(--transition); text-align: right; }
.search-header input[type="search"]:focus { border-color: var(--gold); }
.search-header button { background: var(--gold); border: none; padding: 12px 22px; border-radius: var(--radius-xl); color: var(--white); cursor: pointer; font-size: 0.9rem; transition: var(--transition); }
.search-header button:hover { background: var(--gold-dark); }

/* ============================
   404 PAGE
   ============================ */
.error-404-wrap { min-height: 80vh; display: flex; align-items: center; justify-content: center; text-align: center; padding: 120px 24px 80px; }
.error-404-wrap .error-code { font-size: clamp(6rem, 15vw, 10rem); font-family: var(--font-heading); font-weight: 800; background: var(--gold-gradient); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; line-height: 1; margin-bottom: 16px; }
.error-404-wrap h2 { margin-bottom: 12px; }
.error-404-wrap p { color: var(--text-light); max-width: 420px; margin: 0 auto 32px; }
.error-404-wrap .error-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* ============================
   PAGE TEMPLATE
   ============================ */
.page-banner { background: linear-gradient(135deg, #1a1a2e 0%, #2d3561 100%); padding: 140px 0 60px; text-align: center; }
.page-banner h1 { color: var(--white); }
.page-breadcrumb { display: flex; align-items: center; justify-content: center; gap: 8px; color: rgba(255,255,255,0.5); font-size: 0.85rem; margin-top: 16px; flex-direction: row-reverse; }
.page-breadcrumb a { color: rgba(255,255,255,0.7); }
.page-breadcrumb a:hover { color: var(--gold); }
.page-breadcrumb i { transform: scaleX(-1); }
.page-body { padding: 64px 0 80px; }
.page-body .container { max-width: 860px; }

/* ============================
   FOOTER
   ============================ */
.footer { background: #222233; padding: 80px 0 0; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.5fr; gap: 40px; padding-bottom: 48px; border-bottom: 1px solid rgba(255,255,255,0.08); }
.footer-brand .logo { margin-bottom: 16px; }
.footer-brand .logo { color: var(--white) !important; }
.footer-brand p { color: rgba(255,255,255,0.5); font-size: 0.9rem; line-height: 1.8; margin-bottom: 20px; }
.footer-socials { display: flex; gap: 10px; flex-wrap: wrap; }
.footer-socials a { width: 40px; height: 40px; background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.1); border-radius: 50%; display: flex; align-items: center; justify-content: center; color: rgba(255,255,255,0.5); font-size: 0.9rem; transition: var(--transition); }
.footer-socials a:hover { background: var(--gold); border-color: var(--gold); color: var(--white); }
.footer-links h4 { color: var(--white); font-family: var(--font-primary); font-weight: 600; font-size: 1rem; margin-bottom: 20px; }
.footer-links li { margin-bottom: 10px; }
.footer-links a { color: rgba(255,255,255,0.5); font-size: 0.9rem; transition: var(--transition); }
.footer-links a:hover { color: var(--gold); padding-right: 4px; }
.footer-map h4 { color: #f4a62a; margin-bottom: 15px; }
.map-container iframe { border-radius: 8px; }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; padding: 24px 0; }
.footer-bottom p { color: rgba(255,255,255,0.35); font-size: 0.85rem; }
.footer-bottom-links { display: flex; gap: 24px; }
.footer-bottom-links a { color: rgba(255,255,255,0.35); font-size: 0.85rem; }
.footer-bottom-links a:hover { color: var(--gold); }

/* ============================
   BACK TO TOP
   ============================ */
.back-to-top { position: fixed; bottom: 30px; left: 30px; width: 48px; height: 48px; background: var(--gold-gradient); color: var(--white); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 1rem; box-shadow: var(--shadow-gold); opacity: 0; visibility: hidden; transform: translateY(20px); transition: var(--transition); z-index: 999; }
.back-to-top.visible { opacity: 1; visibility: visible; transform: translateY(0); }
.back-to-top:hover { background: var(--gold-dark); transform: translateY(-4px); }

/* Scroll Reveal */
.reveal { opacity: 0; transform: translateY(30px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.revealed { opacity: 1; transform: translateY(0); }

/* ============================
   RESPONSIVE
   ============================ */
@media (max-width: 1024px) {
    .blog-layout { grid-template-columns: 1fr; }
    .blog-sidebar { display: none; }
    .single-post-container { grid-template-columns: 1fr; }
    .related-posts-grid { grid-template-columns: repeat(2, 1fr); }
    .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
    .post-hero { height: 420px; }
}

@media (max-width: 768px) {
    .nav-links, .nav-cta { display: none; }
    .nav-links.active {
        display: flex; flex-direction: column;
        position: absolute; top: 100%; left: 0; right: 0;
        background: var(--white); padding: 24px; gap: 16px;
        box-shadow: var(--shadow-md);
        border-radius: 0 0 var(--radius-md) var(--radius-md);
    }
    .nav-links.active a { color: var(--text) !important; font-size: 1rem; }
    .hamburger { display: flex; }
    .blog-grid { grid-template-columns: 1fr; }
    .post-navigation { grid-template-columns: 1fr; }
    .related-posts-grid { grid-template-columns: 1fr; }
    .post-hero { height: 380px; }
    .post-share { flex-direction: column; align-items: flex-start; gap: 10px; }
    .author-box { flex-direction: column; }
    .footer-grid { grid-template-columns: 1fr; }
    .footer-bottom { flex-direction: column; gap: 12px; text-align: center; }
    .blog-banner { padding: 120px 0 60px; }
    .post-hero-title { font-size: 1.5rem; }
}

@media (max-width: 480px) {
    .container { padding: 0 16px; }
    .post-hero { height: 320px; }
    .blog-pagination { gap: 6px; }
    .share-btns { gap: 6px; }
    .error-404-wrap { padding: 100px 16px 60px; }
}
