/*
Theme Name: FVPN Blog
Theme URI: https://freeandroidvpn.com
Description: Custom blog theme matching FreeAndroidVPN dark style
Version: 2.2
Author: FVPN
Text Domain: fvpn-blog
*/

/* ================================================
   FVPN BLOG — layered on top of styles.min.css
   ================================================ */

/* Base additions */
*,*::before,*::after{box-sizing:border-box}
h1,h2,h3,h4,h5,h6{font-weight:700;line-height:1.2;color:#fff;margin-bottom:1rem}
p{margin-bottom:1rem;line-height:1.7;color:#d1d1e0}
a{text-decoration:none;color:inherit;transition:all .3s ease}

/* ── Reset main site's aggressive h2 global overrides inside blog ── */
#main-content h2{
  position:static;
  left:auto;
  transform:none;
}
#main-content h2::after{display:none!important;content:none!important}

/* ================================================
   SKIP LINK
   ================================================ */
.skip-link{
  position:absolute;top:-60px;left:20px;
  background:#FF8A00;color:#1A1A2E;
  padding:10px 20px;border-radius:0 0 8px 8px;
  font-weight:700;z-index:9999;transition:top .2s
}
.skip-link:focus{top:0}

/* ================================================
   BLOG HERO
   ================================================ */
.blog-hero{
  padding:56px 0 44px;
  background:linear-gradient(135deg,#0F0F1A 0%,#1a1a3e 45%,#2a1a4e 65%,#0F0F1A 100%);
  text-align:center;position:relative;overflow:hidden
}
.blog-hero::before{
  content:'';position:absolute;inset:0;
  background:
    radial-gradient(ellipse 80% 50% at 20% 40%,rgba(108,77,255,.18),transparent 55%),
    radial-gradient(ellipse 60% 40% at 80% 60%,rgba(255,138,0,.12),transparent 55%)
}
.blog-hero-inner{position:relative;z-index:2}
.blog-hero-eyebrow{
  display:inline-flex;align-items:center;gap:8px;
  background:rgba(108,77,255,.15);border:1px solid rgba(108,77,255,.3);
  color:#8A70FF;padding:6px 18px;border-radius:50px;
  font-size:.82rem;font-weight:700;text-transform:uppercase;letter-spacing:.8px;
  margin-bottom:20px
}
.blog-hero h1{
  font-size:clamp(2rem,5vw,3.5rem);margin-bottom:.75rem;
  background:linear-gradient(135deg,#fff,#8A70FF);
  -webkit-background-clip:text;-webkit-text-fill-color:transparent;background-clip:text
}
.blog-hero p{font-size:1.1rem;max-width:600px;margin:0 auto 32px;color:#d1d1e0}

/* ── Search bar ── */
.blog-search-form{max-width:600px;margin:0 auto 28px}
.bsf-inner{
  display:flex;align-items:center;
  background:rgba(255,255,255,.06);border:1.5px solid rgba(255,255,255,.14);
  border-radius:50px;overflow:hidden;
  transition:border-color .25s,box-shadow .25s;
  backdrop-filter:blur(8px)
}
.bsf-inner:focus-within{
  border-color:#6C4DFF;
  box-shadow:0 0 0 4px rgba(108,77,255,.2)
}
.bsf-icon{color:#8888a8;font-size:.95rem;padding:0 14px 0 20px;flex-shrink:0}
.bsf-input{
  flex:1;background:transparent;border:none;outline:none;
  color:#fff;font-size:.95rem;padding:14px 0;
  font-family:inherit
}
.bsf-input::placeholder{color:#8888a8}
.bsf-btn{
  background:linear-gradient(135deg,#6C4DFF,#8A70FF);color:#fff;
  border:none;padding:12px 26px;font-weight:700;font-size:.9rem;
  cursor:pointer;border-radius:0 50px 50px 0;
  transition:opacity .2s;white-space:nowrap
}
.bsf-btn:hover{opacity:.88}

/* ── Stats strip ── */
.blog-stats{
  display:flex;align-items:center;justify-content:center;gap:14px;
  font-size:.85rem;color:#8888a8;margin-bottom:32px
}
.blog-stats i{color:#6C4DFF;margin-right:5px}
.bs-divider{opacity:.35;font-size:1.1rem}

/* ── Category pills ── */
.blog-hero-cats{display:flex;flex-wrap:wrap;justify-content:center;gap:10px}
.blog-hero-cats a{
  display:inline-flex;align-items:center;gap:8px;
  background:rgba(255,255,255,.06);border:1px solid rgba(255,255,255,.12);
  color:#d1d1e0;padding:8px 18px;border-radius:50px;font-size:.88rem;font-weight:500;
  transition:all .2s
}
.blog-hero-cats a:hover{background:rgba(108,77,255,.15);border-color:#6C4DFF;color:#fff}
.cat-count{
  background:rgba(108,77,255,.2);color:#8A70FF;
  font-size:.72rem;font-weight:700;padding:2px 8px;border-radius:50px
}

/* ================================================
   MAIN WRAPPER
   ================================================ */
.blog-main{padding:64px 0;min-height:60vh}

/* ================================================
   FEATURED POST
   ================================================ */
.featured-post{
  display:grid;grid-template-columns:1.2fr 1fr;
  min-height:380px;border-radius:24px;overflow:hidden;
  background:#1A1A2E;border:1px solid rgba(255,255,255,.09);
  box-shadow:0 10px 40px rgba(0,0,0,.5);
  margin-bottom:56px;transition:all .3s ease
}
.featured-post:hover{transform:translateY(-5px);border-color:rgba(108,77,255,.4);box-shadow:0 20px 60px rgba(0,0,0,.6)}
.fp-image{overflow:hidden;position:relative;background:#1E1E2E}
.fp-image img{width:100%;height:100%;object-fit:cover;transition:transform .5s ease;display:block}
.featured-post:hover .fp-image img{transform:scale(1.05)}
.fp-no-thumb{
  width:100%;height:100%;min-height:380px;display:flex;align-items:center;justify-content:center;
  background:linear-gradient(135deg,#1a1a3e,#2a1a4e);font-size:5rem;color:rgba(108,77,255,.35)
}
.fp-content{
  padding:44px 40px;display:flex;flex-direction:column;
  justify-content:center;gap:16px
}
.fp-badges{display:flex;align-items:center;gap:10px;flex-wrap:wrap}
.fp-badge{
  display:inline-flex;align-items:center;gap:7px;width:fit-content;
  background:linear-gradient(135deg,#FF8A00,#FFA033);color:#1A1A2E;
  padding:5px 16px;border-radius:50px;font-size:.78rem;font-weight:800;
  text-transform:uppercase;letter-spacing:.6px
}
.fp-cat{
  display:inline-block;width:fit-content;
  background:rgba(108,77,255,.12);color:#8A70FF;
  padding:5px 14px;border-radius:50px;font-size:.82rem;font-weight:700;
  border:1px solid rgba(108,77,255,.35);text-transform:uppercase;letter-spacing:.4px
}
.fp-image-overlay{
  position:absolute;inset:0;
  background:linear-gradient(to right,transparent 60%,rgba(26,26,46,.4));
  pointer-events:none
}
.fp-title{font-size:clamp(1.3rem,2.4vw,1.85rem)!important;line-height:1.35;margin:0;text-align:left}
.fp-title::after{display:none}
.fp-title a{color:#fff;transition:color .2s}
.fp-title a:hover{color:#8A70FF}
.fp-excerpt{color:#d1d1e0;font-size:.95rem;line-height:1.7;margin:0;
  display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden}
.fp-meta{display:flex;flex-wrap:wrap;gap:14px;font-size:.84rem;color:#8888a8}
.fp-meta i{color:#FF8A00;margin-right:4px}
.fp-btn{
  display:inline-flex;align-items:center;gap:8px;width:fit-content;
  background:linear-gradient(135deg,#FF8A00,#FFA033);color:#1A1A2E;
  padding:12px 26px;border-radius:50px;font-weight:700;font-size:.9rem;
  box-shadow:0 4px 20px rgba(255,138,0,.35);transition:all .2s
}
.fp-btn:hover{transform:translateY(-2px);box-shadow:0 8px 30px rgba(255,138,0,.5);color:#1A1A2E}

/* ================================================
   SECTION HEADING
   ================================================ */
.section-heading{display:flex;align-items:flex-start;justify-content:space-between;margin-bottom:28px}
.sh-left{}
.section-heading h2{font-size:1.5rem!important;margin:0 0 4px;text-align:left}
.section-heading h2::after{display:none}
.sh-sub{font-size:.85rem;color:#8888a8;margin:0}
.section-heading .view-all{
  font-size:.88rem;color:#8A70FF;font-weight:600;
  display:flex;align-items:center;gap:6px;transition:all .2s;white-space:nowrap;margin-top:6px
}
.section-heading .view-all:hover{gap:10px;color:#FF8A00}

/* ================================================
   POSTS GRID — 3 columns
   ================================================ */
.posts-grid{
  display:grid;grid-template-columns:repeat(3,1fr);
  gap:24px;margin-bottom:50px
}
.post-card{
  background:#1A1A2E;border-radius:20px;
  border:1px solid rgba(255,255,255,.08);overflow:hidden;
  display:flex;flex-direction:column;
  box-shadow:0 2px 12px rgba(0,0,0,.3);
  transition:all .3s ease;
  opacity:0;animation:fadeIn .5s ease forwards
}
.post-card:nth-child(1){animation-delay:.04s}
.post-card:nth-child(2){animation-delay:.09s}
.post-card:nth-child(3){animation-delay:.14s}
.post-card:nth-child(4){animation-delay:.19s}
.post-card:nth-child(5){animation-delay:.24s}
.post-card:nth-child(6){animation-delay:.29s}
.post-card:hover{transform:translateY(-7px);box-shadow:0 16px 40px rgba(0,0,0,.5);border-color:rgba(108,77,255,.35)}
.post-card:hover .pc-image img{transform:scale(1.07)}

.pc-image{overflow:hidden;height:196px;background:#1E1E2E;flex-shrink:0;position:relative}
.pc-image img{width:100%;height:100%;object-fit:cover;display:block;transition:transform .4s ease}
.pc-cat-overlay{
  position:absolute;top:12px;left:12px;
  background:rgba(10,10,20,.75);backdrop-filter:blur(4px);
  color:#8A70FF;font-size:.72rem;font-weight:700;
  padding:4px 12px;border-radius:50px;border:1px solid rgba(108,77,255,.3);
  text-transform:uppercase;letter-spacing:.4px;
  pointer-events:none
}
.pc-cat-overlay a{color:inherit}
.pc-no-thumb{
  width:100%;height:100%;display:flex;align-items:center;justify-content:center;
  background:linear-gradient(135deg,#1a1a3e,#2a1a4e);font-size:2.8rem;color:rgba(108,77,255,.3)
}
.pc-body{padding:22px;flex:1;display:flex;flex-direction:column;gap:10px}
.pc-cat{
  display:inline-block;align-self:flex-start;
  background:rgba(108,77,255,.12);color:#8A70FF;
  padding:4px 12px;border-radius:50px;font-size:.75rem;font-weight:700;
  border:1px solid rgba(108,77,255,.28);text-transform:uppercase;letter-spacing:.4px
}
.pc-title{font-size:1.05rem!important;line-height:1.45;margin:0;flex:1;text-align:left}
.pc-title a{color:#fff;transition:color .2s}
.pc-title a:hover{color:#8A70FF}
.pc-excerpt{font-size:.85rem;color:#8888a8;line-height:1.6;margin:0;
  display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.pc-footer{
  display:flex;align-items:center;justify-content:space-between;
  padding-top:14px;border-top:1px solid rgba(255,255,255,.07);margin-top:auto
}
.pc-meta{display:flex;gap:10px;font-size:.78rem;color:#8888a8}
.pc-meta i{color:#FF8A00;margin-right:3px}
.pc-read{
  font-size:.82rem;font-weight:700;color:#8A70FF;
  display:flex;align-items:center;gap:5px;transition:all .2s
}
.pc-read:hover{color:#FF8A00;gap:9px}

/* ================================================
   PAGINATION
   ================================================ */
.blog-pagination{display:flex;justify-content:center;align-items:center;gap:8px;margin-top:10px}
.blog-pagination .page-numbers{
  display:inline-flex;align-items:center;justify-content:center;
  min-width:44px;height:44px;padding:0 14px;
  background:#1A1A2E;color:#d1d1e0;border-radius:10px;
  border:1px solid rgba(255,255,255,.1);font-weight:500;transition:all .2s
}
.blog-pagination .page-numbers:hover,.blog-pagination .page-numbers.current{
  background:#6C4DFF;color:#fff;border-color:#6C4DFF
}

/* ================================================
   NO POSTS
   ================================================ */
.no-posts{text-align:center;padding:80px 20px}
.no-posts-icon{font-size:5rem;margin-bottom:20px;color:#4a4a68}
.no-posts h2{font-size:2rem}
.no-posts p{font-size:1.1rem;margin-bottom:30px}
.no-posts .fp-btn{margin:0 auto}

/* ================================================
   SINGLE POST
   ================================================ */
.single-wrap{max-width:840px;margin:0 auto}

/* ── Breadcrumbs ── */
.breadcrumbs{
  font-size:.82rem;
  color:#888;
  margin:18px 0 10px;
  display:flex;align-items:center;flex-wrap:wrap;gap:4px;
}
.breadcrumbs a{color:#F5832A;text-decoration:none}
.breadcrumbs a:hover{text-decoration:underline}
.breadcrumbs span[aria-current="page"]{color:#bbb;font-weight:600}

.single-post-card{
  background:#1A1A2E;border-radius:24px;overflow:hidden;
  border:1px solid rgba(255,255,255,.09);margin-bottom:24px
}
.single-hero{position:relative;height:440px;overflow:hidden;background:#1E1E2E}
.single-hero img{width:100%;height:100%;object-fit:cover;display:block}
.single-hero-no-thumb{
  width:100%;height:100%;display:flex;align-items:center;justify-content:center;
  background:linear-gradient(135deg,#1a1a3e,#2a1a4e);font-size:6rem;
  color:rgba(108,77,255,.25)
}
.single-hero-overlay{
  position:absolute;inset:0;
  background:linear-gradient(to top,rgba(15,15,26,.95) 0%,rgba(15,15,26,.3) 50%,transparent 100%)
}
.single-hero-meta{position:absolute;bottom:32px;left:36px;right:36px;z-index:2}
.single-hero-meta .fp-cat{margin-bottom:14px}
.single-post-title{
  font-size:clamp(1.5rem,3vw,2.3rem);margin-bottom:16px;text-align:left;
  background:none;-webkit-text-fill-color:#fff;color:#fff;
  text-shadow:0 2px 12px rgba(0,0,0,.4)
}
.single-post-title::after{display:none}
.post-meta-row{display:flex;flex-wrap:wrap;gap:16px;font-size:.86rem;color:rgba(255,255,255,.7)}
.post-meta-row i{color:#FF8A00;margin-right:5px}
.single-body{padding:40px}
.single-content{font-size:1.05rem;line-height:1.85;color:#d1d1e0}
.single-content h2{font-size:1.65rem;margin:2.5rem 0 1rem;text-align:left}
.single-content h2::after{display:none}
.single-content h3{font-size:1.3rem;margin:2rem 0 .8rem;color:#fff;text-align:left}
.single-content h3::after{display:none}
.single-content p{margin-bottom:1.4rem}
.single-content a{color:#8A70FF;text-decoration:underline}
.single-content a:hover{color:#FF8A00}
.single-content ul,.single-content ol{margin:1.2rem 0;padding-left:1.8rem}
.single-content li{margin-bottom:.6rem;color:#d1d1e0}
.single-content blockquote{
  background:rgba(108,77,255,.1);border-left:4px solid #6C4DFF;
  padding:20px 26px;margin:2rem 0;
  border-radius:0 10px 10px 0;font-style:italic;color:#d1d1e0
}
.single-content img{max-width:100%;height:auto;border-radius:12px;margin:1.5rem 0;box-shadow:0 4px 16px rgba(0,0,0,.4)}
.single-content code{background:rgba(108,77,255,.15);color:#8A70FF;padding:2px 8px;border-radius:4px;font-size:.9em}
.single-content pre{background:#1E1E2E;border:1px solid rgba(255,255,255,.1);padding:20px;border-radius:10px;overflow-x:auto;margin:1.5rem 0}
.post-tags{margin-top:30px;padding-top:24px;border-top:1px solid rgba(255,255,255,.08)}
.post-tags-label{font-size:.82rem;color:#8888a8;margin-bottom:10px;display:block}
.post-tags a{
  display:inline-block;background:rgba(255,255,255,.05);color:#d1d1e0;
  padding:6px 14px;border-radius:6px;font-size:.82rem;margin:4px;
  border:1px solid rgba(255,255,255,.1);transition:all .2s
}
.post-tags a:hover{background:rgba(108,77,255,.15);border-color:#6C4DFF;color:#fff}

/* Post Navigation */
.post-nav{display:grid;grid-template-columns:1fr 1fr;gap:14px;margin-bottom:24px}
.post-nav a{
  background:#1A1A2E;border:1px solid rgba(255,255,255,.09);border-radius:16px;
  padding:20px 22px;display:flex;flex-direction:column;gap:7px;transition:all .2s
}
.post-nav a:hover{border-color:#6C4DFF;background:rgba(108,77,255,.1)}
.post-nav .nav-label{font-size:.76rem;color:#8888a8;text-transform:uppercase;letter-spacing:.5px;display:flex;align-items:center;gap:6px}
.post-nav .nav-label i{color:#FF8A00}
.post-nav .nav-title{color:#fff;font-weight:600;font-size:.92rem;line-height:1.4}
.post-nav-next{text-align:right}
.post-nav-next .nav-label{justify-content:flex-end}

/* Author Box */
.author-box{
  background:#1A1A2E;border-radius:20px;padding:28px;
  border:1px solid rgba(255,255,255,.09);display:flex;align-items:center;gap:22px;margin-bottom:24px
}
.author-box img{border-radius:50%;width:78px;height:78px;flex-shrink:0;border:3px solid #6C4DFF}
.author-box-info h3{margin-bottom:6px;font-size:1.05rem}
.author-box-info p{margin:0;font-size:.88rem;color:#d1d1e0}

/* ================================================
   COMMENTS
   ================================================ */

/* ── Wrapper ── */
.comments-area{
  background:#1A1A2E;border-radius:24px;padding:36px;
  border:1px solid rgba(255,255,255,.09);margin-bottom:24px
}

/* ── Comment count title ── */
.comments-title{
  font-size:1.3rem;margin:0 0 28px;padding-bottom:18px;
  border-bottom:1px solid rgba(255,255,255,.09);
  display:flex;align-items:center;gap:10px;color:#fff
}
.comments-title::before{
  content:'\f086';font-family:"Font Awesome 6 Free";font-weight:900;
  font-size:1.05rem;color:#6C4DFF
}
.comments-title::after{display:none}

/* ── Comment list ── */
.comment-list{list-style:none;padding:0;margin:0 0 36px}
.comment-list .children{list-style:none;padding-left:28px;margin-top:10px}

/* ── Individual comment card ── */
.comment-body{
  background:#13132a;border:1px solid rgba(255,255,255,.08);
  border-left:3px solid #6C4DFF;border-radius:14px;
  padding:22px 24px;margin-bottom:14px;transition:border-left-color .2s
}
.comment-body:hover{border-left-color:#FF8A00}

/* ── Comment meta: avatar floated left, name+date stack ── */
.comment-meta{margin-bottom:14px}
.comment-author.vcard{
  display:flex;align-items:center;gap:12px;margin-bottom:6px
}
.comment-author .avatar{
  width:44px!important;height:44px!important;
  border-radius:50%!important;border:2px solid #6C4DFF;
  flex-shrink:0;display:block
}
.comment-author .says{display:none}
.comment-author .fn{
  font-weight:700;font-size:.95rem;color:#fff;font-style:normal
}
.comment-author .fn a{color:#fff}
.comment-author .fn a:hover{color:#8A70FF}
.comment-metadata{padding-left:56px}
.comment-metadata a{
  font-size:.78rem;color:#8888a8;display:inline-flex;align-items:center;gap:5px
}
.comment-metadata a:hover{color:#d1d1e0}
.comment-metadata a time{color:inherit}
.comment-awaiting-moderation{
  display:inline-block;background:rgba(255,138,0,.12);color:#FF8A00;
  border:1px solid rgba(255,138,0,.3);border-radius:50px;
  font-size:.72rem;font-weight:700;padding:2px 10px;margin-left:8px;letter-spacing:.4px
}

/* ── Comment text ── */
.comment-content p{color:#d1d1e0;font-size:.93rem;line-height:1.75;margin:0 0 .6rem}
.comment-content p:last-child{margin:0}

/* ── Reply link ── */
.reply{margin-top:14px;padding-top:12px;border-top:1px solid rgba(255,255,255,.06)}
.comment-reply-link{
  font-size:.82rem;color:#8A70FF;font-weight:600;transition:color .2s
}
.comment-reply-link:hover{color:#FF8A00}

/* ── Respond / Leave a reply form wrapper ── */
.comment-respond{
  background:#13132a;border:1px solid rgba(108,77,255,.22);border-radius:20px;
  padding:32px;margin-top:8px
}
.comment-reply-title{
  font-size:1.15rem;margin:0 0 6px;color:#fff;
  display:flex;align-items:center;gap:10px
}
.comment-reply-title::after{display:none}
#cancel-comment-reply-link{
  font-size:.8rem;color:#8888a8;font-weight:400;margin-left:10px;transition:color .2s
}
#cancel-comment-reply-link:hover{color:#FF8A00}
.comment-notes{
  font-size:.84rem;color:#8888a8;margin:0 0 22px;line-height:1.6
}
.required{color:#FF8A00}

/* ── Form field wrappers ── */
.comment-form p{margin:0 0 18px}
.comment-form p:last-child{margin:0}

/* ── Labels ── */
.comment-form label{
  display:block;margin-bottom:8px;
  font-size:.87rem;color:#d1d1e0;font-weight:600
}

/* ── Text inputs & textarea ── */
.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea{
  width:100%;padding:12px 16px;
  background:rgba(255,255,255,.045);
  border:1.5px solid rgba(255,255,255,.13);border-radius:10px;
  color:#fff;font-size:.93rem;font-family:inherit;
  transition:border-color .2s,box-shadow .2s,background .2s;
  -webkit-appearance:none;appearance:none
}
.comment-form input[type="text"]:hover,
.comment-form input[type="email"]:hover,
.comment-form input[type="url"]:hover,
.comment-form textarea:hover{border-color:rgba(255,255,255,.22)}
.comment-form input[type="text"]:focus,
.comment-form input[type="email"]:focus,
.comment-form input[type="url"]:focus,
.comment-form textarea:focus{
  outline:none;border-color:#6C4DFF;
  box-shadow:0 0 0 3px rgba(108,77,255,.18);
  background:rgba(108,77,255,.05)
}
.comment-form input[type="text"]::placeholder,
.comment-form input[type="email"]::placeholder,
.comment-form textarea::placeholder{color:#505068}
.comment-form textarea{height:130px;resize:vertical;line-height:1.7}

/* ── Name / Email side-by-side on desktop ── */
.comment-form-author,.comment-form-email{
  display:inline-block;width:calc(50% - 8px)
}
.comment-form-author{margin-right:16px}

/* ── Cookies checkbox ── */
.comment-form-cookies-consent{
  display:flex;align-items:flex-start;gap:10px;margin-top:4px
}
.comment-form-cookies-consent input[type="checkbox"]{
  width:16px;height:16px;flex-shrink:0;margin-top:3px;accent-color:#6C4DFF;cursor:pointer
}
.comment-form-cookies-consent label{
  font-size:.82rem;color:#8888a8;font-weight:400;cursor:pointer;margin-bottom:0
}

/* ── Submit button ── */
.form-submit{margin:4px 0 0}
.form-submit .submit{
  background:linear-gradient(135deg,#6C4DFF,#8A70FF);color:#fff;
  padding:13px 34px;border:none;border-radius:50px;
  font-weight:700;font-size:.95rem;font-family:inherit;
  cursor:pointer;transition:transform .2s,box-shadow .2s;
  box-shadow:0 4px 20px rgba(108,77,255,.4)
}
.form-submit .submit:hover{
  transform:translateY(-2px);
  box-shadow:0 8px 30px rgba(108,77,255,.55)
}
.form-submit .submit:active{transform:translateY(0)}

.sh-back{margin-bottom:8px}
.sh-back-link{
  display:inline-flex;align-items:center;gap:8px;
  color:#8888a8;font-size:.9rem;font-weight:500;transition:all .2s
}
.sh-back-link:hover{color:#8A70FF;gap:12px}

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

/* ================================================
   CTA STRIP
   ================================================ */
.blog-cta-strip{
  background:linear-gradient(135deg,#1a1a3e 0%,#12122a 50%,#0f0f1a 100%);
  border-top:1px solid rgba(108,77,255,.2);
  padding:56px 0
}
.bcs-inner{
  display:flex;align-items:center;justify-content:space-between;gap:30px;flex-wrap:wrap
}
.bcs-text h2{
  font-size:1.8rem!important;text-align:left;margin:0 0 8px;
  background:linear-gradient(135deg,#fff,#8A70FF);
  -webkit-background-clip:text;-webkit-text-fill-color:transparent;background-clip:text
}
.bcs-text p{margin:0;color:#8888a8;font-size:1rem}
.bcs-actions{display:flex;gap:14px;flex-wrap:wrap}
.bcs-btn-primary{
  display:inline-flex;align-items:center;gap:8px;
  background:linear-gradient(135deg,#FF8A00,#FFA033);color:#1A1A2E;
  padding:14px 28px;border-radius:50px;font-weight:700;font-size:.95rem;
  box-shadow:0 4px 20px rgba(255,138,0,.35);transition:all .2s
}
.bcs-btn-primary:hover{transform:translateY(-2px);box-shadow:0 8px 30px rgba(255,138,0,.5);color:#1A1A2E}
.bcs-btn-ghost{
  display:inline-flex;align-items:center;gap:8px;
  background:rgba(108,77,255,.1);color:#8A70FF;
  padding:14px 28px;border-radius:50px;font-weight:700;font-size:.95rem;
  border:1.5px solid rgba(108,77,255,.35);transition:all .2s
}
.bcs-btn-ghost:hover{background:rgba(108,77,255,.2);border-color:#6C4DFF;color:#fff;transform:translateY(-2px)}

/* ================================================
   RESPONSIVE — Tablet
   ================================================ */
@media(max-width:1024px){
  .posts-grid{grid-template-columns:repeat(2,1fr)}
  .featured-post{grid-template-columns:1fr;min-height:auto}
  .fp-image{height:300px}
  .fp-no-thumb{height:300px}
  .bcs-inner{flex-direction:column;text-align:center}
  .bcs-text h2{text-align:center!important}
  .bcs-actions{justify-content:center}
}

/* ================================================
   RESPONSIVE — Mobile  (≤ 768px)
   ================================================ */
@media(max-width:768px){
  /* ── Hero ── */
  .blog-hero{padding:28px 0 22px}
  .blog-hero h1{font-size:clamp(1.6rem,7vw,2.4rem)!important}
  .blog-hero p{font-size:.95rem;margin-bottom:20px}
  .blog-search-form{margin-bottom:18px}
  .bsf-input{padding:12px 0;font-size:.9rem}
  .bsf-btn{padding:10px 16px;font-size:.82rem}
  .blog-stats{flex-wrap:wrap;gap:6px;font-size:.78rem;margin-bottom:18px}
  .blog-hero-cats{gap:7px}
  .blog-hero-cats a{padding:6px 14px;font-size:.82rem}

  /* ── Layout ── */
  .blog-main{padding:28px 0}

  /* ── Featured post ── */
  .featured-post{grid-template-columns:1fr;margin-bottom:36px}
  .fp-image{height:200px}
  .fp-no-thumb{height:200px;min-height:200px}
  .fp-content{padding:20px 18px;gap:10px}
  .fp-title{font-size:1.2rem!important}
  .fp-excerpt{font-size:.88rem;-webkit-line-clamp:2}
  .fp-meta{gap:10px;font-size:.8rem}
  .fp-btn{padding:10px 20px;font-size:.86rem}

  /* ── Posts grid ── */
  .posts-grid{grid-template-columns:1fr;gap:14px}
  .pc-image{height:180px}
  .pc-body{padding:16px}
  .pc-title{font-size:1rem!important}
  .pc-footer{padding-top:10px}

  /* ── Section heading ── */
  .section-heading{flex-direction:column;align-items:flex-start;gap:4px}
  .section-heading h2{font-size:1.25rem!important}

  /* ── Single post ── */
  .single-wrap{padding:0 4px}
  .single-hero{height:230px}
  .single-hero-meta{bottom:16px;left:16px;right:16px}
  .single-post-title{font-size:1.3rem}
  .post-meta-row{gap:10px;font-size:.8rem}
  .single-body{padding:20px 16px}
  .single-content{font-size:.97rem;line-height:1.8}
  .single-content h2{font-size:1.3rem;margin:2rem 0 .75rem}
  .single-content h3{font-size:1.1rem;margin:1.5rem 0 .6rem}
  .single-content blockquote{padding:14px 18px;margin:1.5rem 0}
  .single-content pre{padding:14px;font-size:.85rem}
  .breadcrumbs{font-size:.78rem;margin:12px 0 8px}

  /* ── Post navigation ── */
  .post-nav{grid-template-columns:1fr}
  .post-nav a{padding:14px 16px}
  .post-nav-next{text-align:left}
  .post-nav-next .nav-label{justify-content:flex-start}

  /* ── Author box ── */
  .author-box{flex-direction:column;text-align:center;gap:14px;padding:20px}
  .author-box img{width:64px;height:64px}
  .author-box-info h3{font-size:.95rem}

  /* ── Comments ── */
  .comments-area{padding:22px 18px;border-radius:18px}
  .comment-respond{padding:22px 18px;border-radius:16px}
  .comment-body{padding:16px 18px}
  .comment-metadata{padding-left:0}
  .comment-author .avatar{width:38px!important;height:38px!important}
  .comment-form-author,.comment-form-email{display:block;width:100%;margin-right:0}

  /* ── CTA strip ── */
  .blog-cta-strip{padding:32px 0}
  .bcs-text h2{font-size:1.4rem!important}
  .bcs-text p{font-size:.9rem}
  .bcs-actions{flex-direction:column;gap:10px;width:100%}
  .bcs-btn-primary,.bcs-btn-ghost{width:100%;justify-content:center;padding:13px 20px}

  /* ── Pagination ── */
  .blog-pagination{gap:5px}
  .blog-pagination .page-numbers{min-width:38px;height:38px;padding:0 10px;font-size:.85rem}

  /* ── Language dropdown in nav on mobile ── */
  .language-dropdown{width:100%;margin-left:0}
  .selected-language{width:100%;justify-content:center}
  .language-options{left:0;right:auto;width:180px}
  .language-list li{padding:8px 12px;font-size:.82rem}

  /* ── Footer ── */
  footer{font-size:.88rem}
  .footer-top{padding:30px 0 20px}
  .footer-grid{display:grid!important;grid-template-columns:1fr!important;gap:22px!important;text-align:center}
  .footer-link-group{display:grid!important;grid-template-columns:1fr 1fr;gap:16px}
  .footer-col{text-align:center}
  .footer-col h3{text-align:center;margin-bottom:12px}
  .footer-col h3::after{left:50%!important;right:auto!important;transform:translateX(-50%)!important}
  .footer-col ul{display:flex;flex-wrap:wrap;justify-content:center;gap:4px 10px;padding:0}
  .footer-col li{margin-bottom:0}
  .footer-col a{font-size:.85rem}
  .footer-about{order:-1;text-align:center}
  .footer-about .logo img{margin:0 auto 10px;height:38px}
  .footer-about p{max-width:280px;margin:0 auto 12px;font-size:.85rem}
  .footer-contact{text-align:center}
  .footer-contact ul li{justify-content:center!important;flex-direction:row!important}
  .footer-bottom{padding:16px 0;text-align:center}
  .footer-bottom p{font-size:.78rem;line-height:1.6}
}

/* ================================================
   RESPONSIVE — Small mobile  (≤ 480px)
   ================================================ */
@media(max-width:480px){
  /* ── Hero ── */
  .blog-hero{padding:22px 0 18px}
  .blog-hero h1{font-size:1.5rem!important}
  .blog-hero p{font-size:.88rem}
  .bsf-inner{border-radius:12px;flex-wrap:wrap;gap:0}
  .bsf-icon{display:none}
  .bsf-input{width:100%;padding:12px 14px;border-radius:12px 12px 0 0}
  .bsf-btn{width:100%;border-radius:0 0 12px 12px;padding:11px 14px;text-align:center;justify-content:center}

  /* ── Featured post ── */
  .fp-image{height:170px}
  .fp-no-thumb{height:170px;min-height:170px}
  .fp-content{padding:16px 14px}
  .fp-title{font-size:1.1rem!important}

  /* ── Post cards ── */
  .pc-image{height:160px}
  .pc-body{padding:14px 12px;gap:7px}
  .pc-title{font-size:.95rem!important}
  .pc-footer{flex-direction:column;align-items:flex-start;gap:6px}
  .pc-read{font-size:.85rem}

  /* ── Single post ── */
  .single-hero{height:180px}
  .single-hero-meta{bottom:12px;left:12px;right:12px}
  .single-post-title{font-size:1.15rem}
  .single-body{padding:16px 12px}
  .single-content{font-size:.93rem}
  .single-content h2{font-size:1.15rem;margin:1.6rem 0 .6rem}
  .single-content h3{font-size:1rem;margin:1.2rem 0 .5rem}
  .single-content blockquote{padding:12px 14px;font-size:.9rem}

  /* ── Author box ── */
  .author-box{padding:16px 14px}
  .author-box img{width:56px;height:56px}

  /* ── CTA strip ── */
  .bcs-text h2{font-size:1.2rem!important}
  .bcs-btn-primary,.bcs-btn-ghost{font-size:.88rem;padding:12px 16px}

  /* ── Footer ── */
  .footer-link-group{grid-template-columns:1fr!important}
  .footer-col ul{gap:3px 8px}
}

/* ================================================
   RTL (Right-to-Left) Support — Full Arabic
   ================================================ */

/* === BASE === */
[dir="rtl"] {
  direction: rtl;
  text-align: right;
}
[dir="rtl"] body {
  font-family: 'Cairo', 'Segoe UI', 'Arabic Typesetting', 'Traditional Arabic', sans-serif !important;
  letter-spacing: 0;
  font-weight: 500;
  -webkit-font-smoothing: antialiased;
}
[dir="rtl"] h1,[dir="rtl"] h2,[dir="rtl"] h3,[dir="rtl"] h4,[dir="rtl"] h5,[dir="rtl"] h6 {
  font-family: 'Cairo', 'Segoe UI', 'Arabic Typesetting', 'Traditional Arabic', sans-serif !important;
  font-weight: 700;
  text-align: right;
  direction: rtl;
}
[dir="rtl"] p,[dir="rtl"] li,[dir="rtl"] span,[dir="rtl"] a {
  direction: rtl;
  text-align: right;
}

/* === HEADER & NAV RTL === */
[dir="rtl"] header .nav-links {
  flex-direction: row-reverse;
}
[dir="rtl"] .navbar-nav {
  flex-direction: row-reverse;
  justify-content: flex-end;
}

/* === HERO RTL === */
[dir="rtl"] .blog-hero { text-align: center; }
[dir="rtl"] .blog-hero h1 { text-align: center; }
[dir="rtl"] .blog-hero p  { text-align: center; }

/* === HERO CATEGORY PILLS RTL === */
[dir="rtl"] .blog-hero-cats {
  flex-direction: row-reverse;
  justify-content: center;
}

/* === SEARCH FORM RTL === */
/* Arabic: HTML order is already btn | input | icon — just fix border-radius & padding */
.bsf-btn-rtl {
  border-radius: 50px 0 0 50px !important;
}
.bsf-icon-rtl {
  padding: 0 20px 0 14px;
}
[dir="rtl"] .bsf-input {
  direction: rtl;
  text-align: right;
}

/* === FEATURED POST RTL === */
[dir="rtl"] .featured-post { grid-template-columns: 1fr 1.2fr; }
[dir="rtl"] .fp-image  { order: 2; }
[dir="rtl"] .fp-content {
  order: 1;
  text-align: right;
  padding: 44px 40px;
}
[dir="rtl"] .fp-title { text-align: right; }
[dir="rtl"] .fp-excerpt { text-align: right; }
[dir="rtl"] .fp-image-overlay {
  background: linear-gradient(to left, transparent 60%, rgba(26,26,46,.4));
}
[dir="rtl"] .fp-badges,
[dir="rtl"] .fp-meta {
  flex-direction: row-reverse;
}
[dir="rtl"] .fp-meta i { margin-right: 0; margin-left: 4px; }
[dir="rtl"] .fp-btn {
  flex-direction: row-reverse;
  align-self: flex-start;
}
[dir="rtl"] .fp-btn .fa-arrow-right { transform: scaleX(-1); display: inline-block; }

/* === SECTION HEADING RTL === */
[dir="rtl"] .section-heading {
  flex-direction: row-reverse;
  text-align: right;
}
[dir="rtl"] .sh-left { order: 2; }
[dir="rtl"] .section-heading h2 { text-align: right; }
[dir="rtl"] .section-heading .view-all {
  order: 1;
  justify-content: flex-start;
}
[dir="rtl"] .view-all .fa-arrow-right { transform: scaleX(-1); display: inline-block; }

/* === POST CARDS RTL === */
[dir="rtl"] .posts-grid { direction: rtl; }
[dir="rtl"] .post-card  { text-align: right; }
[dir="rtl"] .pc-cat-overlay {
  left: auto;
  right: 12px;
}
[dir="rtl"] .pc-body   { text-align: right; }
[dir="rtl"] .pc-title  { text-align: right; }
[dir="rtl"] .pc-excerpt{ text-align: right; }
[dir="rtl"] .pc-footer {
  flex-direction: row-reverse;
}
[dir="rtl"] .pc-meta {
  flex-direction: row-reverse;
}
[dir="rtl"] .pc-meta i { margin-right: 0; margin-left: 3px; }
[dir="rtl"] .pc-read {
  margin-left: 0;
  margin-right: auto;
  flex-direction: row-reverse;
}
[dir="rtl"] .pc-read .fa-arrow-right { transform: scaleX(-1); display: inline-block; }

/* === BREADCRUMBS RTL === */
[dir="rtl"] .breadcrumbs {
  direction: rtl;
  text-align: right;
  justify-content: flex-start;
}
[dir="rtl"] .breadcrumbs a,
[dir="rtl"] .breadcrumbs span {
  direction: rtl;
}

/* === PAGINATION RTL === */
[dir="rtl"] .blog-pagination {
  flex-direction: row-reverse;
}
[dir="rtl"] .blog-pagination .fa-chevron-right,
[dir="rtl"] .blog-pagination .fa-chevron-left {
  transform: scaleX(-1);
  display: inline-block;
}

/* === NO POSTS RTL === */
[dir="rtl"] .no-posts { text-align: center; }
[dir="rtl"] .no-posts .fp-btn { margin: 0 auto; flex-direction: row-reverse; }
[dir="rtl"] .no-posts .fa-arrow-right { transform: scaleX(-1); display: inline-block; }

/* === SINGLE POST RTL === */
[dir="rtl"] .single-post-card  { text-align: right; }
[dir="rtl"] .single-hero-meta  { left: 36px; right: 36px; text-align: right; }
[dir="rtl"] .single-post-title { text-align: right; }
[dir="rtl"] .single-body       { text-align: right; padding: 40px; }
[dir="rtl"] .single-content    { text-align: right; direction: rtl; }
[dir="rtl"] .single-content h2,
[dir="rtl"] .single-content h3 { text-align: right; }
[dir="rtl"] .single-content ul,
[dir="rtl"] .single-content ol {
  padding-left: 0;
  padding-right: 1.8rem;
}
[dir="rtl"] .single-content blockquote {
  border-left: none;
  border-right: 4px solid #6C4DFF;
  padding: 20px 26px 20px 20px;
  text-align: right;
}
[dir="rtl"] .single-content pre {
  direction: ltr;
  text-align: left;
}
[dir="rtl"] .post-tags         { text-align: right; }
[dir="rtl"] .post-tags a        { margin: 4px 0 4px 4px; }

/* === POST META ROW RTL === */
[dir="rtl"] .post-meta-row {
  flex-direction: row-reverse;
}
[dir="rtl"] .post-meta-row i { margin-right: 0; margin-left: 5px; }

/* === POST NAVIGATION RTL === */
[dir="rtl"] .post-nav {
  direction: rtl;
}
[dir="rtl"] .post-nav-prev {
  text-align: right;
}
[dir="rtl"] .post-nav-next {
  text-align: left;
}
[dir="rtl"] .post-nav .nav-label { justify-content: flex-end; }
[dir="rtl"] .post-nav-next .nav-label { justify-content: flex-start; }
[dir="rtl"] .nav-label i { margin-left: 0; margin-right: 6px; }
[dir="rtl"] .post-nav-prev .fa-arrow-right { transform: scaleX(-1); display: inline-block; }
[dir="rtl"] .post-nav-next .fa-arrow-left  { transform: scaleX(-1); display: inline-block; }

/* === AUTHOR BOX RTL === */
[dir="rtl"] .author-box {
  text-align: right;
  flex-direction: row-reverse;
}
[dir="rtl"] .author-box img { margin-left: 0; margin-right: 22px; }
[dir="rtl"] .author-box-info h3,
[dir="rtl"] .author-box-info p { text-align: right; }

/* === CTA STRIP RTL === */
[dir="rtl"] .blog-cta-strip { direction: rtl; }
[dir="rtl"] .bcs-inner {
  flex-direction: row-reverse;
  text-align: right;
}
[dir="rtl"] .bcs-text       { text-align: right; }
[dir="rtl"] .bcs-text h2    { text-align: right; }
[dir="rtl"] .bcs-text p     { text-align: right; }
[dir="rtl"] .bcs-actions {
  flex-direction: row-reverse;
  justify-content: flex-end;
}
[dir="rtl"] .bcs-btn-primary,
[dir="rtl"] .bcs-btn-ghost {
  flex-direction: row-reverse;
}
[dir="rtl"] .bcs-btn-primary i,
[dir="rtl"] .bcs-btn-ghost i  { margin-right: 0; margin-left: 8px; }

/* === COMMENTS & FORMS RTL === */
[dir="rtl"] .comments-area,
[dir="rtl"] .comment {
  text-align: right;
  direction: rtl;
}
[dir="rtl"] .comments-title,
[dir="rtl"] .comment-reply-title { text-align: right; }
[dir="rtl"] .comment-meta         { text-align: right; }
[dir="rtl"] .comment-author .fn   { direction: rtl; }
[dir="rtl"] .comment-list          { padding: 0; }
[dir="rtl"] .comment-form label   { text-align: right; display: block; }
[dir="rtl"] .comment-form input,
[dir="rtl"] .comment-form textarea { direction: rtl; text-align: right; }
[dir="rtl"] .comment-form input[type="email"],
[dir="rtl"] .comment-form input[type="url"]  { direction: ltr; text-align: left; }
[dir="rtl"] .form-submit            { text-align: right; }
[dir="rtl"] .comment-form .comment-form-cookies-consent {
  display: flex;
  flex-direction: row-reverse;
  align-items: flex-start;
  gap: 10px;
  justify-content: flex-end;
}
[dir="rtl"] input[type="search"],
[dir="rtl"] textarea,
[dir="rtl"] select {
  direction: rtl;
  text-align: right;
}

/* === ICON SPACING RTL === */
[dir="rtl"] .fp-badges i,
[dir="rtl"] .blog-stats i,
[dir="rtl"] .bsf-icon i {
  margin-left: 5px;
  margin-right: 0;
}

/* === MISC RTL === */
[dir="rtl"] .sh-back-link {
  flex-direction: row-reverse;
  margin-left: 0;
  margin-right: 8px;
}
[dir="rtl"] .sh-back-link .fa-arrow-right { transform: scaleX(-1); display: inline-block; }

/* === FOOTER RTL === */
[dir="rtl"] footer { direction: rtl; text-align: right; }
[dir="rtl"] .footer-grid { direction: rtl; }
[dir="rtl"] .footer-col  { text-align: right; }
[dir="rtl"] .footer-col ul { padding-left: 0; padding-right: 0; }
[dir="rtl"] .footer-col ul li { text-align: right; }
[dir="rtl"] .footer-bottom { text-align: center; }
[dir="rtl"] .footer-contact ul li {
  flex-direction: row-reverse;
  justify-content: flex-end;
  display: flex;
  align-items: center;
  gap: 8px;
}
[dir="rtl"] .footer-contact li i { margin-right: 0; }

/* === MOBILE RTL === */
@media (max-width: 768px) {
  [dir="rtl"] .featured-post { grid-template-columns: 1fr; }
  [dir="rtl"] .fp-image,[dir="rtl"] .fp-content { order: unset; }
  [dir="rtl"] .post-nav { grid-template-columns: 1fr; }
  [dir="rtl"] .post-nav-prev,[dir="rtl"] .post-nav-next { order: unset; text-align: right; }
  [dir="rtl"] .author-box { flex-direction: column; text-align: center; }
  [dir="rtl"] .author-box img { margin: 0; }
  [dir="rtl"] .bcs-inner { flex-direction: column; text-align: center; }
  [dir="rtl"] .bcs-text h2,[dir="rtl"] .bcs-text p { text-align: center; }
  [dir="rtl"] .bcs-actions { justify-content: center; width: 100%; }
  [dir="rtl"] .blog-hero-cats { justify-content: center; }
}
