/* ── BLOG PREMIUM STYLES (MATCHING ABOUT PAGE) ── */
:root {
    --primary: #D97706;
    --primary-dim: rgba(217, 119, 6, 0.1);
    --bg-dark: #080810;
    --text-white: #ffffff;
    --text-muted: rgba(255, 255, 255, 0.6);
    --blog-card-bg: rgba(255, 255, 255, 0.03);
    --blog-border: rgba(255, 255, 255, 0.08);
    --gold-glow: 0 0 20px rgba(217, 119, 6, 0.2);
}

body {
    background-color: var(--bg-dark);
    color: var(--text-white);
    font-family: 'Cairo', 'Tajawal', sans-serif;
    overflow-x: hidden;
}

/* ── CUSTOM CURSOR ── */
.custom-cursor {
    width: 8px; height: 8px; background: var(--primary);
    border-radius: 50%; position: fixed; pointer-events: none;
    z-index: 9999; transform: translate(-50%,-50%); transition: transform 0.1s;
}
.cursor-follower {
    width: 30px; height: 30px; border: 2px solid var(--primary-dim);
    border-radius: 50%; position: fixed; pointer-events: none;
    z-index: 9998; transform: translate(-50%,-50%); transition: transform 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    background: rgba(217,119,6,0.05); backdrop-filter: blur(2px);
}

/* ── PARTICLES ── */
.particles-canvas {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    z-index: 0; pointer-events: none;
}
.particle {
    position: absolute; background: white; border-radius: 50%;
    animation: float linear infinite;
}
@keyframes float {
    0% { transform: translateY(0) scale(1); opacity: 0; }
    50% { opacity: 1; }
    100% { transform: translateY(-100vh) scale(0.5); opacity: 0; }
}

/* ── HERO SECTION ── */
.hero-section {
    position: relative; padding: 180px 0 120px;
    background: var(--bg-dark); overflow: hidden;
}
.hero-orb {
    position: absolute; filter: blur(120px); border-radius: 50%; z-index: 1;
}
.hero-orb-1 { width: 400px; height: 400px; background: rgba(217,119,6,0.15); top: -100px; right: -50px; }
.hero-orb-2 { width: 300px; height: 300px; background: rgba(99,102,241,0.1); bottom: -50px; left: -50px; }
.hero-grid-lines {
    position: absolute; inset: 0;
    background-image: linear-gradient(rgba(255,255,255,0.02) 1px, transparent 1px),
                      linear-gradient(90deg, rgba(255,255,255,0.02) 1px, transparent 1px);
    background-size: 50px 50px; z-index: 2;
}

/* ── BREADCRUMB ── */
.breadcrumb-bar {
    display: flex; align-items: center; gap: 10px;
    color: var(--text-muted); font-size: 0.9rem; margin-bottom: 30px;
    position: relative; z-index: 3;
}
.breadcrumb-bar a { color: var(--text-muted); text-decoration: none; transition: 0.3s; }
.breadcrumb-bar a:hover { color: var(--primary); }
.breadcrumb-bar .sep { font-size: 0.7rem; opacity: 0.5; }

.hero-title {
    font-size: 4.5rem; font-weight: 900; line-height: 1.1; margin-bottom: 25px;
    position: relative; z-index: 3;
}
.hero-title .line-white { color: #fff; display: block; }
.hero-title .line-gold { color: var(--primary); display: block; text-shadow: var(--gold-glow); }

.hero-desc {
    font-size: 1.25rem; color: var(--text-muted); max-width: 600px;
    line-height: 1.8; margin-bottom: 40px; position: relative; z-index: 3;
}

/* ── BLOG CARDS ── */
.blog-grid-section { padding: 100px 0; position: relative; z-index: 3; }

.category-filters {
    display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 60px;
}
.category-filter-btn {
    padding: 10px 24px; border-radius: 100px; border: 1px solid var(--blog-border);
    background: rgba(255,255,255,0.02); color: var(--text-muted);
    font-weight: 600; transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.category-filter-btn:hover { background: rgba(255,255,255,0.05); color: #fff; transform: translateY(-3px); }
.category-filter-btn.active { background: var(--primary); color: #000; border-color: var(--primary); box-shadow: var(--gold-glow); }

/* ── FEATURED POST ── */
.featured-section {
    margin-top: -60px; position: relative; z-index: 5; margin-bottom: 80px;
}
.featured-card {
    background: rgba(255, 255, 255, 0.04);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(217, 119, 6, 0.2);
    border-radius: 40px;
    overflow: hidden;
    display: flex;
    min-height: 450px;
    transition: 0.4s;
}
.featured-card:hover {
    border-color: var(--primary);
    box-shadow: 0 40px 80px rgba(0,0,0,0.6);
}
.featured-img-wrap {
    width: 55%; position: relative; overflow: hidden;
}
.featured-img-wrap img {
    width: 100%; height: 100%; object-fit: cover; transition: 1s;
}
.featured-card:hover .featured-img-wrap img { transform: scale(1.05); }

.featured-content {
    width: 45%; padding: 60px; display: flex; flex-direction: column; justify-content: center;
}
.featured-badge {
    display: inline-flex; align-items: center; gap: 8px;
    background: var(--primary-dim); color: var(--primary);
    padding: 8px 16px; border-radius: 12px; font-weight: 800;
    font-size: 0.8rem; margin-bottom: 25px; width: fit-content;
}

.featured-title { font-size: 2.5rem; font-weight: 900; color: #fff; line-height: 1.2; margin-bottom: 20px; }
.featured-excerpt { color: var(--text-muted); font-size: 1.1rem; line-height: 1.7; margin-bottom: 35px; }

.author-meta {
    display: flex; align-items: center; gap: 12px; margin-top: auto;
}
.author-avatar {
    width: 45px; height: 45px; border-radius: 50%; border: 2px solid var(--primary);
}
.author-details h6 { color: #fff; margin: 0; font-weight: 700; font-size: 0.9rem; }
.author-details span { color: var(--text-muted); font-size: 0.75rem; }

/* ── SEARCH BAR ── */
.search-wrapper {
    max-width: 500px; margin: 0 auto 50px; position: relative;
}
.search-input {
    width: 100%; background: rgba(255,255,255,0.03);
    border: 1px solid var(--blog-border); border-radius: 100px;
    padding: 18px 60px 18px 30px; color: #fff; outline: none;
    transition: 0.3s;
}
.search-input:focus { border-color: var(--primary); background: rgba(255,255,255,0.06); box-shadow: var(--gold-glow); }
.search-icon { position: absolute; right: 25px; top: 50%; transform: translateY(-50%); color: var(--primary); font-size: 1.2rem; }

/* ── BLOG CARDS ENHANCEMENT ── */
.blog-card {
    background: var(--blog-card-bg); border: 1px solid var(--blog-border);
    border-radius: 30px; overflow: hidden; height: 100%;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1); position: relative;
    backdrop-filter: blur(10px); display: flex; flex-direction: column;
}
.blog-card-img-wrap { height: 260px; overflow: hidden; position: relative; }

.blog-card-img-wrap img { width: 100%; height: 100%; object-fit: cover; transition: 0.8s; }
.blog-card:hover .blog-card-img-wrap img { transform: scale(1.15); }

.blog-cat-tag {
    position: absolute; top: 20px; right: 20px;
    background: var(--primary); color: #000; padding: 6px 16px;
    border-radius: 12px; font-size: 0.8rem; font-weight: 800;
    box-shadow: 0 8px 16px rgba(0,0,0,0.3); z-index: 5;
}

.blog-card-content { padding: 30px; }
.blog-card-title { font-size: 1.4rem; font-weight: 800; margin-bottom: 15px; color: #fff; line-height: 1.4; }
.blog-card-excerpt { color: var(--text-muted); font-size: 0.95rem; line-height: 1.6; margin-bottom: 25px; }

.blog-card-footer {
    display: flex; justify-content: space-between; align-items: center;
    padding-top: 20px; border-top: 1px solid rgba(255,255,255,0.05);
    font-size: 0.85rem; color: var(--text-muted);
}
.read-more-link { color: var(--primary); font-weight: 700; text-decoration: none; display: flex; align-items: center; gap: 8px; transition: 0.3s; }
.blog-card:hover .read-more-link { gap: 12px; }

/* ── REVEAL ANIMATIONS ── */
.reveal-up { opacity: 0; transform: translateY(40px); transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1); }
.reveal-up.visible { opacity: 1; transform: translateY(0); }

/* ── CTA SECTION ── */
.cta-section {
    padding: 100px 0; position: relative; overflow: hidden; text-align: center;
}
.cta-content {
    background: linear-gradient(135deg, rgba(217, 119, 6, 0.1) 0%, rgba(8, 8, 16, 0) 100%);
    border: 1px solid rgba(217, 119, 6, 0.2); border-radius: 40px;
    padding: 80px 40px; backdrop-filter: blur(10px); position: relative; z-index: 3;
}
.cta-icon { font-size: 4rem; color: var(--primary); margin-bottom: 30px; animation: bounce 2s infinite; }
@keyframes bounce { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-15px); } }

.cta-btn {
    display: inline-flex; align-items: center; gap: 12px;
    background: var(--primary); color: #000; padding: 16px 40px;
    border-radius: 100px; font-weight: 800; text-decoration: none;
    transition: 0.3s; box-shadow: var(--gold-glow); margin-top: 30px;
}
.cta-btn:hover { transform: scale(1.05); box-shadow: 0 0 40px rgba(217, 119, 6, 0.4); color: #000; }

@media (max-width: 991px) {
    .hero-title { font-size: 3rem; }
    .featured-card { flex-direction: column; }
    .featured-img-wrap, .featured-content { width: 100%; }
    .featured-content { padding: 40px; }
    .featured-title { font-size: 1.8rem; }
}

/* ── SINGLE POST VIEW ENHANCEMENTS ── */
.post-header-premium {
    position: relative;
    padding: 220px 0 120px;
    background: radial-gradient(circle at 50% -20%, rgba(217, 119, 6, 0.15), transparent 60%),
                linear-gradient(to bottom, #080810 0%, #0c0c16 100%);
    text-align: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
}

.post-category-badge {
    display: inline-block;
    padding: 10px 24px;
    background: linear-gradient(135deg, rgba(217, 119, 6, 0.2), rgba(217, 119, 6, 0.05));
    color: var(--primary);
    border-radius: 100px;
    font-weight: 800;
    font-size: 0.85rem;
    margin-bottom: 30px;
    border: 1px solid rgba(217, 119, 6, 0.3);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.post-main-title {
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    font-weight: 950;
    line-height: 1.1;
    max-width: 1000px;
    margin: 0 auto 35px;
    color: #fff;
    letter-spacing: -1.5px;
    filter: drop-shadow(0 10px 30px rgba(0,0,0,0.5));
}

.post-meta-top {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 30px;
    flex-wrap: wrap;
}

.post-cover-wrapper {
    max-width: 700px;
    margin: -100px auto 60px;
    position: relative;
    z-index: 10;
    border-radius: 45px;
    overflow: hidden;
    box-shadow: 0 40px 120px rgba(0,0,0,0.8), 
                0 0 0 1px rgba(255,255,255,0.08);
    transform-style: preserve-3d;
    perspective: 1000px;
}

.post-cover-wrapper img {
    width: 100%;
    height: auto;
    max-height: 400px;
    object-fit: cover;
    display: block;
    transition: transform 1.5s cubic-bezier(0.19, 1, 0.22, 1);
}

.post-cover-wrapper:hover img {
    transform: scale(1.03);
}

.post-body-container {
    max-width: 1200px;
    margin: 0 auto;
    padding-bottom: 120px;
}

.post-content-inner {
    font-size: 1.3rem;
    line-height: 1.9;
    color: rgba(255, 255, 255, 0.92);
}

.post-content-inner h2, .post-content-inner h3 {
    color: #fff;
    font-weight: 900;
    margin-top: 60px;
    margin-bottom: 25px;
    letter-spacing: -0.5px;
}

.post-content-inner h2 { font-size: 2.8rem; position: relative; padding-right: 20px; }
.post-content-inner h2::after {
    content: '';
    position: absolute;
    right: 0; top: 15%; bottom: 15%;
    width: 4px;
    background: var(--primary);
    border-radius: 10px;
    box-shadow: 0 0 15px var(--primary);
}

.post-content-inner h3 { font-size: 1.9rem; }

.post-content-inner p { margin-bottom: 30px; }

.post-content-inner blockquote {
    margin: 60px 0;
    padding: 60px;
    background: linear-gradient(135deg, rgba(217, 119, 6, 0.05), rgba(255,255,255,0.02));
    border-right: 6px solid var(--primary);
    border-radius: 30px;
    font-style: italic;
    font-size: 1.6rem;
    color: #fff;
    position: relative;
    box-shadow: inset 0 0 30px rgba(0,0,0,0.2);
}

.post-content-inner blockquote::before {
    content: '"';
    position: absolute;
    top: 20px; right: 30px;
    font-size: 5rem;
    color: var(--primary);
    opacity: 0.3;
    font-family: serif;
}

/* ── SIDEBAR ── */
.post-sidebar-sticky {
    position: sticky;
    top: 130px;
}

.sidebar-widget {
    background: rgba(255,255,255,0.02);
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: 35px;
    padding: 35px;
    margin-bottom: 40px;
    backdrop-filter: blur(10px);
}

.widget-title {
    font-size: 1.2rem;
    font-weight: 900;
    margin-bottom: 25px;
    color: var(--primary);
    display: flex;
    align-items: center;
    gap: 12px;
}

.social-share-circle {
    width: 55px;
    height: 55px;
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255,255,255,0.03);
    color: #fff;
    font-size: 1.3rem;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    text-decoration: none !important;
    border: 1px solid rgba(255,255,255,0.05);
}

.social-share-circle:hover {
    background: var(--primary);
    color: #000;
    transform: translateY(-8px) rotate(5deg);
    box-shadow: 0 15px 30px rgba(217, 119, 6, 0.3);
}

/* ── AUTHOR CARD ── */
.author-box-premium {
    margin-top: 100px;
    padding: 60px;
    background: linear-gradient(135deg, rgba(217, 119, 6, 0.1) 0%, rgba(255,255,255,0.02) 100%);
    border-radius: 45px;
    border: 1px solid rgba(217,119,6,0.15);
    display: flex;
    gap: 40px;
    align-items: center;
    box-shadow: 0 20px 50px rgba(0,0,0,0.3);
}

.author-img-big {
    width: 140px;
    height: 140px;
    border-radius: 40px;
    border: 4px solid var(--primary);
    padding: 6px;
    background: var(--bg-dark);
}

.author-info-wrap h4 { font-size: 1.8rem; font-weight: 900; }
.author-info-wrap p { font-size: 1.1rem; line-height: 1.7; }

@media (max-width: 768px) {
    .author-box-premium { flex-direction: column; text-align: center; padding: 40px 30px; }
    .post-cover-wrapper { border-radius: 30px; margin-top: -50px; }
    .post-content-inner { font-size: 1.15rem; }
    .post-content-inner h2 { font-size: 2rem; }
}

/* ── POST CONTENT RICH TEXT ── */
.post-content-inner ul, .post-content-inner ol {
    padding-right: 35px;
    margin-bottom: 35px;
}

.post-content-inner li {
    margin-bottom: 18px;
    position: relative;
}

.post-content-inner a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 800;
    box-shadow: inset 0 -2px 0 var(--primary);
    transition: 0.3s;
}

.post-content-inner a:hover {
    background: var(--primary-dim);
    box-shadow: inset 0 -4px 0 var(--primary);
}

.post-content-inner img {
    max-width: 100%;
    height: auto;
    border-radius: 35px;
    margin: 50px 0;
    box-shadow: 0 30px 70px rgba(0,0,0,0.4);
    border: 1px solid rgba(255,255,255,0.08);
}

.post-content-inner hr {
    border-color: rgba(255,255,255,0.1);
    margin: 60px 0;
    border-width: 2px;
}

.post-content-inner pre {
    background: #000;
    padding: 30px;
    border-radius: 20px;
    border: 1px solid var(--primary-dim);
    color: #e2e8f0;
    font-family: 'Fira Code', monospace;
    font-size: 1rem;
    overflow-x: auto;
    margin-bottom: 40px;
    box-shadow: 0 15px 40px rgba(0,0,0,0.3);
}

/* ── COMMENTS ── */
.comment-item {
    padding: 30px;
    background: rgba(255,255,255,0.02);
    border: 1px solid rgba(255,255,255,0.05);
    border-radius: 30px;
    display: flex;
    gap: 20px;
    transition: all 0.3s;
}

.comment-item:hover {
    background: rgba(255,255,255,0.04);
    border-color: rgba(217,119,6,0.3);
    transform: translateX(-5px);
}

.comment-avatar {
    width: 55px;
    height: 55px;
    border-radius: 18px;
    border: 2px solid var(--primary);
    flex-shrink: 0;
}

.comment-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.comment-user {
    font-weight: 800;
    color: #fff;
    font-size: 1rem;
}

.comment-date {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.comment-text {
    line-height: 1.7;
    color: rgba(255,255,255,0.9);
    font-size: 1rem;
}

.comment-form textarea {
    transition: 0.3s;
}

.comment-form textarea:focus {
    background: rgba(255,255,255,0.08) !important;
    border-color: var(--primary) !important;
    box-shadow: 0 0 20px rgba(217, 119, 6, 0.2) !important;
}/* ── EMBEDDED MEDIA IN POST CONTENT ── */
.post-content-inner iframe {
    width: 100%;
    min-height: 400px;
    border-radius: 20px;
    border: 1px solid rgba(255,255,255,0.08);
    margin: 40px 0;
    display: block;
    box-shadow: 0 20px 60px rgba(0,0,0,0.5);
}

.post-content-inner video {
    width: 100%;
    max-width: 100%;
    border-radius: 20px;
    margin: 40px 0;
    display: block;
    box-shadow: 0 20px 60px rgba(0,0,0,0.5);
    background: #000;
}

.post-content-inner .media-embed-wrapper {
    position: relative;
    width: 100%;
    margin: 40px 0;
    border-radius: 20px;
    overflow: hidden;
}

/* PDF embed wrapper */
.post-content-inner embed[type="application/pdf"],
.post-content-inner object[type="application/pdf"] {
    width: 100%;
    min-height: 500px;
    border-radius: 20px;
    display: block;
    margin: 40px 0;
    border: 1px solid rgba(255,255,255,0.08);
}

/* YouTube / Video ratio container */
.post-content-inner .ratio,
.post-content-inner .video-wrapper {
    margin: 40px 0;
    border-radius: 20px;
    overflow: hidden;
}

/* ── HIDE EDITOR CONTROLS IN PUBLISHED VIEW ── */
/* These should NEVER appear in the published article */
.post-content-inner .blog-media-drag-handle,
.post-content-inner .media-size-controls,
.post-content-inner .media-delete-btn,
.post-content-inner .media-size-btn,
.post-content-inner .drag-dots,
.post-content-inner .media-type-label {
    display: none !important;
}

