/*
Theme Name: PakLean Blog
Theme URI: https://paklean.ir
Author: PakLean
Author URI: https://paklean.ir
Description: A professional, light and vibrant Persian blog theme for PakLean cleaning magazine. Features hero sections, post previews, responsive hamburger menu, single post page, search page, and comment system.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.5
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: paklean
Tags: blog, right-to-left, rtl-language, custom-colors, custom-menu, featured-images, post-formats, sticky-post, threaded-comments, translation-ready
*/

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

:root {
  /* Brand Palette â€” light, vibrant, no dark backgrounds */
  --p1: #6C2BD9;
  --p2: #8B5CF6;
  --p3: #A78BFA;
  --p4: #DDD6FE;
  --p5: #F5F3FF;
  --p6: #EDE9FE;

  --g1: #059669;
  --g2: #10B981;
  --g3: #34D399;
  --g4: #D1FAE5;

  --b1: #0EA5E9;
  --b2: #38BDF8;
  --b3: #E0F2FE;

  --amber: #F59E0B;
  --amber-light: #FEF3C7;

  --cream: #FAFAF9;
  --surface: #FFFFFF;
  --surface2: #F8F7FF;

  --gray1: #111827;
  --gray2: #374151;
  --gray3: #6B7280;
  --gray4: #9CA3AF;
  --gray5: #E5E7EB;
  --gray6: #F9FAFB;

  --radius-xs: 6px;
  --radius-sm: 10px;
  --radius: 16px;
  --radius-lg: 22px;
  --radius-xl: 30px;

  --shadow-sm: 0 2px 12px rgba(108,43,217,0.08);
  --shadow: 0 6px 28px rgba(108,43,217,0.13);
  --shadow-lg: 0 14px 52px rgba(108,43,217,0.2);
  --shadow-color: 0 4px 20px rgba(0,0,0,0.06);

  --nav-h: 72px;
  --cats-h: 56px;
}

/* ======================================================
   BASE
====================================================== */
html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: 'Vazirmatn', sans-serif;
  background: var(--cream);
  color: var(--gray1);
  direction: rtl;
  overflow-x: hidden;
  line-height: 1.6;
  background-color: hsla(60,9%,97%,1);
}

img { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; color: inherit; transition: color 0.2s; }
button { font-family: 'Vazirmatn', sans-serif; cursor: pointer; border: none; background: none; }
ul, ol { list-style: none; }
input, textarea { font-family: 'Vazirmatn', sans-serif; }

/* Scrollbar */
::-webkit-scrollbar { width: 5px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: linear-gradient(var(--p1), var(--g2)); border-radius: 10px; }

/* Reveal animations */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.65s ease, transform 0.65s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }
.reveal-delay-1 { transition-delay: 0.12s; }
.reveal-delay-2 { transition-delay: 0.24s; }
.reveal-delay-3 { transition-delay: 0.36s; }

/* ======================================================
   NAVIGATION
====================================================== */

/* â”€â”€ Top Announcement Bar â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.topbar {
  background: linear-gradient(90deg, var(--p1) 0%, var(--g1) 100%);
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  text-align: center;
  padding: 9px 1rem;
  position: relative;
  z-index: 600;
  transition: height 0.3s ease, padding 0.3s ease, opacity 0.3s ease;
  overflow: hidden;
}
.topbar.hidden {
  height: 0;
  padding-top: 0;
  padding-bottom: 0;
  opacity: 0;
  pointer-events: none;
}
.topbar-inner {
  max-width: 1280px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
}
.topbar-text a { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
.topbar-close {
  position: absolute;
  left: 1rem; top: 50%;
  transform: translateY(-50%);
  background: rgba(255,255,255,0.2);
  border: none; color: #fff;
  width: 22px; height: 22px;
  border-radius: 50%;
  font-size: 11px; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: background 0.2s;
}
.topbar-close:hover { background: rgba(255,255,255,0.35); }

/* â”€â”€ Main Nav â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
#site-nav {
  position: sticky;
  top: 0; left: 0; right: 0;
  z-index: 500;
  padding: 10px 1.5rem;
}
#site-nav.scrolled {
  padding: 6px 1.5rem;
}

/* Pill container */
.nav-pill {
  max-width: 1280px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 62px;
  background: rgba(255,255,255,0.82);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  padding: 0 18px 0 22px;
  border-radius: 50px;
  border: 1px solid rgba(255,255,255,0.7);
  box-shadow:
    0 8px 32px rgba(108,43,217,0.10),
    0 2px 8px rgba(0,0,0,0.04),
    inset 0 1px 0 rgba(255,255,255,0.9);
  transition: box-shadow 0.3s;
}
.nav-pill:hover {
  box-shadow:
    0 12px 44px rgba(108,43,217,0.14),
    0 2px 12px rgba(0,0,0,0.05),
    inset 0 1px 0 rgba(255,255,255,0.9);
}

/* Logo */
.nav-logo { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.logo-icon {
  width: 42px; height: 42px;
  border-radius: 13px;
  display: flex; align-items: center; justify-content: center;
  font-size: 19px; font-weight: 900; color: white;
  overflow: hidden;
  transition: transform 0.3s;
  flex-shrink: 0;
}
.logo-icon img { width: 100%; height: 100%; object-fit: contain; display: block; }
.nav-logo:hover .logo-icon { transform: rotate(-8deg) scale(1.06); }
.logo-text { font-size: 20px; font-weight: 900; color: var(--gray1); transition: color 0.2s; }
.nav-logo:hover .logo-text { color: var(--p1); }

/* Desktop menu */
.nav-menu { display: flex; align-items: center; gap: 6px; text-decoration: none;list-style-type: none; }
.nav-menu a {
  font-size: 14px; font-weight: 600;
  color: var(--gray3);
  padding: 7px 13px;
  border-radius: 50px;
  transition: color 0.2s, background 0.2s;
  white-space: nowrap;
  
}
.nav-menu a:hover,
.nav-menu a.current-menu-item { color:"black";}
.nav-menu a.current-menu-item { font-weight: 700; }

/* Nav actions */
.nav-actions { display: flex; align-items: center; gap: 8px; }

.btn-icon-nav {
  width: 40px; height: 40px;
  border-radius: 50%;
  border: 1.5px solid var(--gray5);
  background: white;
  display: flex; align-items: center; justify-content: center;
  color: var(--gray3);
  transition: all 0.2s;
  cursor: pointer;
}
.btn-icon-nav:hover {
  border-color: var(--p3); color: var(--p1);
  background: var(--p5); transform: scale(1.06);
}

.btn-cta {
  background: linear-gradient(135deg, var(--p1), var(--p2));
  color: white !important;
  font-size: 13px; font-weight: 700;
  padding: 10px 22px;
  border-radius: 50px;
  border: none !important;
  box-shadow: 0 4px 18px rgba(108,43,217,0.3);
  transition: all 0.3s;
  white-space: nowrap;
  display: inline-block;
}
.btn-cta:hover { transform: translateY(-2px); box-shadow: 0 8px 28px rgba(108,43,217,0.45); }

/* Hamburger */
.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  width: 40px; height: 40px;
  padding: 9px;
  border-radius: 50%;
  border: 1.5px solid var(--gray5);
  background: white;
  cursor: pointer;
  transition: all 0.2s;
}
.nav-hamburger:hover { border-color: var(--p3); background: var(--p5); }
.nav-hamburger span {
  display: block;
  width: 100%; height: 2px;
  background: var(--gray2);
  border-radius: 2px;
  transition: all 0.3s;
}
.nav-hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-hamburger.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.nav-hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* â”€â”€ Search Overlay â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.search-overlay-backdrop {
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.45);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  z-index: 800;
  opacity: 0; pointer-events: none;
  transition: opacity 0.3s;
}
.search-overlay-backdrop.active { opacity: 1; pointer-events: all; }

.search-overlay {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 900;
  background: rgba(255,255,255,0.97);
  padding: 56px 2rem 48px;
  transform: translateY(-100%);
  opacity: 0;
  transition: transform 0.4s cubic-bezier(0.16,1,0.3,1), opacity 0.3s;
  border-bottom: 1px solid var(--gray5);
  box-shadow: 0 20px 60px rgba(0,0,0,0.12);
}
.search-overlay.active { transform: translateY(0); opacity: 1; }
.search-overlay-inner { max-width: 700px; margin: 0 auto; text-align: center; }
.search-overlay-close {
  position: absolute;
  top: 18px; left: 18px;
  width: 40px; height: 40px;
  border-radius: 50%;
  border: 1.5px solid var(--gray5);
  background: white;
  display: flex; align-items: center; justify-content: center;
  color: var(--gray3); cursor: pointer;
  transition: all 0.2s;
}
.search-overlay-close:hover { border-color: var(--p3); color: var(--p1); background: var(--p5); }
.search-overlay-label { font-size: 22px; font-weight: 800; color: var(--gray1); margin-bottom: 24px; }
.search-overlay-form { width: 100%; }
.search-overlay-field {
  display: flex; align-items: center;
  background: var(--gray6);
  border: 2px solid var(--gray5);
  border-radius: 50px;
  padding: 8px 8px 8px 18px;
  gap: 12px;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.search-overlay-field:focus-within {
  border-color: var(--p3);
  box-shadow: 0 0 0 4px rgba(139,92,246,0.12);
  background: white;
}
.search-overlay-field svg { color: var(--gray4); flex-shrink: 0; }
.search-overlay-field input {
  flex: 1; border: none; background: transparent;
  font-size: 17px; color: var(--gray1);
  outline: none; direction: rtl; padding: 4px 0;
}
.search-overlay-field input::placeholder { color: var(--gray4); }
.search-overlay-submit {
  background: linear-gradient(135deg, var(--p1), var(--p2));
  color: white; font-size: 14px; font-weight: 700;
  padding: 10px 22px; border-radius: 50px;
  border: none; cursor: pointer;
  transition: all 0.2s; flex-shrink: 0; white-space: nowrap;
}
.search-overlay-submit:hover { transform: scale(1.04); box-shadow: 0 4px 14px rgba(108,43,217,0.35); }
.search-overlay-tags {
  display: flex; flex-wrap: wrap;
  align-items: center; justify-content: center;
  gap: 8px; margin-top: 22px;
}
.sot-label { font-size: 13px; color: var(--gray4); font-weight: 600; }
.sot-tag {
  font-size: 12px; font-weight: 600;
  color: var(--p1); background: var(--p5);
  border: 1px solid var(--p4);
  padding: 5px 12px; border-radius: 50px;
  transition: all 0.2s;
}
.sot-tag:hover { background: var(--p4); transform: translateY(-1px); }

/* ==========================================
   MOBILE APP STYLE DRAWER
========================================== */

/* Backdrop */

.drawer-backdrop{
    position:fixed;
    inset:0;

    background:rgba(236,239,246,.28);
    backdrop-filter:blur(18px) saturate(140%);
    -webkit-backdrop-filter:blur(18px) saturate(140%);

    opacity:0;
    pointer-events:none;

    transition:.35s ease;
    z-index:998;
}

.drawer-backdrop.active{
    opacity:1;
    pointer-events:auto;
}

/* Drawer */

.nav-drawer{
    position:fixed;
    top:10px;
    right:10px;

    width:96%;
    max-width:420px;
    height:97vh;

    overflow:hidden;

    border-radius:42px;

    background:
        radial-gradient(
            circle at top right,
            rgba(120,255,233,.20),
            transparent 40%
        ),
        radial-gradient(
            circle at top left,
            rgba(182,150,255,.22),
            transparent 45%
        ),
        radial-gradient(
            circle at bottom,
            rgba(126,232,255,.15),
            transparent 55%
        ),
        linear-gradient(
            180deg,
            #f8f9fc 0%,
            #f4f5f9 45%,
            #eef2f6 100%
        );

    backdrop-filter:blur(26px);
    -webkit-backdrop-filter:blur(26px);

    border:1px solid rgba(255,255,255,.65);

    box-shadow:
        0 30px 80px rgba(119,125,155,.16),
        0 8px 30px rgba(155,165,190,.12),
        inset 0 1px 0 rgba(255,255,255,.85);

    transform:translateX(105%);
    transition:.45s cubic-bezier(.22,1,.36,1);

    z-index:999;

    display:flex;
    flex-direction:column;

    padding:32px;
}

.nav-drawer.open{
    transform:translateX(0);
}

/* Header */

.drawer-header{
    display:flex;
    justify-content:flex-start;
    align-items:center;

    padding:0 0 16px;
}

.drawer-close-btn{
    width:38px;
    height:38px;

    border:none;
    border-radius:50%;

    background:#e5e7ec;

    display:flex;
    align-items:center;
    justify-content:center;

    color:#666;
    cursor:pointer;

    transition:.25s;
}

.drawer-close-btn:hover{
    transform:rotate(90deg);
}

/* Navigation */

.drawer-nav{
    flex:1;
}
.drawer-nav li{
  margin-bottom: 12px;
}

.nav-drawer .menu{
    display:flex;
    flex-direction:column;
    gap:12px;

    margin:0;
    padding:0;
}

.nav-drawer .menu-item{
    list-style:none;
}

/* Menu Card */

.nav-drawer .menu-item a{
    position:relative;

    min-height:72px;

    display:flex;
    align-items:center;
    justify-content:right;

    padding:0 70px;

    background:#f8f8f9;

    border-radius:22px;

    color:#2d2d2d;
    text-decoration:none;

    font-size:16px;
    font-weight:600;

    box-shadow:
        0 1px 2px rgba(0,0,0,.03);

    transition:.25s ease;
}

/* LEFT ARROW */

.nav-drawer .menu-item a::before{
    content:"›";

    position:absolute;
    left:18px;
    top:50%;

    transform:translateY(-50%);

    color:#9ca3af;
    font-size:22px;
    font-weight:400;
}

/* RIGHT CIRCLE */

.nav-drawer .menu-item a::after{
    content:"";

    position:absolute;
    right:18px;
    top:50%;

    transform:translateY(-50%);

    width:44px;
    height:44px;

    border-radius:50%;
    background:#f3f3f4;
}

/* ICON */

.nav-drawer .drawer-item-icon{
    position:absolute;
    right:28px;
    top:50%;

    transform:translateY(-50%);

    width:22px;
    height:22px;

    display:flex;
    align-items:center;
    justify-content:center;

    color:#2d2d2d;

    z-index:10;
}

.nav-drawer .drawer-item-icon svg{
    width:100%;
    height:100%;
}

/* ACTIVE ITEM */

/* .nav-drawer .menu-item.current-menu-item a,
.nav-drawer .current_page_item a,
.nav-drawer .current_page_parent a,
.nav-drawer .current-menu-parent a{
    background:
        linear-gradient(
            90deg,
            #9c7cf5 0%,
            #7fa5ff 55%,
            #58ddc3 100%
        ) !important;

    color:#fff !important;

    box-shadow:
        0 8px 24px rgba(124,120,255,.25) !important;
}

.nav-drawer .menu-item.current-menu-item a::before,
.nav-drawer .current_page_item a::before,
.nav-drawer .current_page_parent a::before,
.nav-drawer .current-menu-parent a::before{
    color:#fff;
}

.nav-drawer .menu-item.current-menu-item a::after,
.nav-drawer .current_page_item a::after,
.nav-drawer .current_page_parent a::after,
.nav-drawer .current-menu-parent a::after{
    background:rgba(255,255,255,.25);
}

.nav-drawer .menu-item.current-menu-item .drawer-item-icon,
.nav-drawer .current_page_item .drawer-item-icon,
.nav-drawer .current_page_parent .drawer-item-icon,
.nav-drawer .current-menu-parent .drawer-item-icon{
    color:#fff;
} */
/* Footer */

.drawer-footer{
    margin-top:16px;
}

.drawer-cta{
    display:flex;
    align-items:center;
    justify-content:center;

    width:100%;
    height:56px;

    border-radius:999px;

    background:
        linear-gradient(
            90deg,
            #67d8c7,
            #9feedd
        );

    color:#fff !important;

    font-size:15px;
    font-weight:700;

    text-decoration:none;

    box-shadow:
        0 10px 24px rgba(103,216,199,.28);

    transition:.25s;
}

.drawer-cta:hover{
    transform:translateY(-2px);
}

/* Mobile */

@media (max-width:991px){

    .nav-menu{
        display:none;
    }

    .nav-hamburger{
        display:flex;
    }

    .btn-cta{
        display:none;
    }
}

/* Desktop */

@media (min-width:992px){

    .nav-drawer,
    .drawer-backdrop{
        display:none;
    }
}

/* Scroll Offset */

body{
    scroll-padding-top:calc(var(--nav-h) + 16px);
}

/* ======================================================
   HERO / FRONT PAGE BACKGROUND (Very Light + Soft Animation)
====================================================== */
.site-hero {
  min-height: 100vh;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  /* Very light, soft gradient matching the support page */
  background: linear-gradient(155deg, 
    #f8f5ff 0%, 
    #f0ebff 35%, 
    #e8f8f2 65%, 
    #e0f8f5 100%);
}

/* Subtle animated floating orbs */
.hero-bg-orb {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  filter: blur(70px);
  opacity: 0.28;
  z-index: 0;
}

.hero-orb-1 {
  width: 620px; 
  height: 620px;
  background: radial-gradient(circle, rgba(124,77,255,0.25), transparent);
  top: -140px; 
  right: -100px;
  animation: orb-drift1 14s ease-in-out infinite;
}

.hero-orb-2 {
  width: 480px; 
  height: 480px;
  background: radial-gradient(circle, rgba(52,211,153,0.22), transparent);
  bottom: -80px; 
  left: -60px;
  animation: orb-drift2 18s ease-in-out infinite;
}

.hero-orb-3 {
  width: 340px; 
  height: 340px;
  background: radial-gradient(circle, rgba(103,232,249,0.18), transparent);
  top: 45%; 
  left: 25%;
  animation: orb-drift3 22s ease-in-out infinite;
}

@keyframes orb-drift1 { 
  0%,100% { transform: translate(0,0); } 
  50% { transform: translate(-40px,30px); } 
}
@keyframes orb-drift2 { 
  0%,100% { transform: translate(0,0); } 
  50% { transform: translate(35px,-30px); } 
}
@keyframes orb-drift3 { 
  0%,100% { transform: translate(0,0); } 
  50% { transform: translate(-25px,25px); } 
}

/* Very soft dots pattern */
.hero-dots {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, rgba(124,77,255,0.07) 1px, transparent 1px);
  background-size: 42px 42px;
  opacity: 0.65;
  z-index: 1;
}

/* Optional: Apply similar light background to whole site */
body {
  background: #f8f5ff;
}

/* Make sure content stays above background */
.hero-content,
.site-hero * {
  position: relative;
  z-index: 2;
}
/* Floating dots pattern */
.hero-dots {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, rgba(108,43,217,0.08) 1px, transparent 1px);
  background-size: 36px 36px;
  opacity: 0.5;
}

.hero-content {
  position: relative; z-index: 2;
  max-width: 1280px; margin: 0 auto;
  padding: 130px 2rem 90px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 70px;
  align-items: center;
  width: 100%;
}

.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: white;
  border: 1.5px solid rgba(108,43,217,0.18);
  border-radius: 50px;
  padding: 7px 18px;
  font-size: 12px; font-weight: 700;
  color: var(--p1);
  letter-spacing: 0.5px;
  margin-bottom: 24px;
  box-shadow: 0 2px 14px rgba(108,43,217,0.1);
  animation: fadeSlideUp 0.8s ease both;
}
.hero-tag-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--p1), var(--g2));
  animation: pulse-dot 2s infinite;
}
@keyframes pulse-dot { 0%,100% { transform: scale(1); } 50% { transform: scale(1.4); } }

.hero-title {
  font-size: 58px; font-weight: 900;
  line-height: 1.2;
  color: var(--gray1);
  margin-bottom: 22px;
  animation: fadeSlideUp 0.9s 0.1s ease both;
}
.hero-title .grad {
  background: linear-gradient(135deg, var(--p1) 0%, var(--p2) 40%, var(--g2) 80%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero-desc {
  font-size: 16px; font-weight: 300;
  color: var(--gray3);
  line-height: 2;
  margin-bottom: 38px;
  max-width: 460px;
  animation: fadeSlideUp 0.9s 0.2s ease both;
}
.hero-btns {
  display: flex; gap: 14px;
  margin-bottom: 44px;
  animation: fadeSlideUp 0.9s 0.3s ease both;
}
.btn-hero-main {
  background: linear-gradient(135deg, var(--p1), var(--p2));
  color: white;
  font-size: 15px; font-weight: 700;
  padding: 15px 34px;
  border-radius: 50px;
  border: none;
  cursor: pointer;
  box-shadow: 0 6px 28px rgba(108,43,217,0.4);
  transition: all 0.3s;
}
.btn-hero-main:hover { transform: translateY(-3px); box-shadow: 0 12px 40px rgba(108,43,217,0.5); }
.btn-hero-ghost {
  background: white;
  color: var(--p1);
  font-size: 15px; font-weight: 600;
  padding: 14px 30px;
  border-radius: 50px;
  border: 1.5px solid rgba(108,43,217,0.2);
  cursor: pointer;
  transition: all 0.3s;
  box-shadow: 0 2px 12px rgba(108,43,217,0.08);
}
.btn-hero-ghost:hover { background: var(--p5); border-color: var(--p2); }

.hero-stats {
  display: flex; gap: 30px;
  animation: fadeSlideUp 0.9s 0.4s ease both;
}
.stat-item { text-align: center; }
.stat-num {
  font-size: 28px; font-weight: 900;
  background: linear-gradient(135deg, var(--p1), var(--g2));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
.stat-label { font-size: 12px; color: var(--gray4); font-weight: 400; margin-top: 3px; }
.stat-sep { width: 1px; background: var(--gray5); height: 40px; margin: auto 0; }

/* Hero right: floating cards */
.hero-visual { position: relative; height: 520px; animation: fadeSlideUp 0.9s 0.2s ease both; }
.float-card {
  position: absolute;
  background: white;
  border: 1px solid rgba(108,43,217,0.1);
  border-radius: var(--radius-lg);
  padding: 20px 24px;
  box-shadow: 0 8px 40px rgba(108,43,217,0.12);
  animation: float 6s ease-in-out infinite;
}
.float-card.fc-1 { top: 10px; right: 0; width: 270px; animation-delay: 0s; }
.float-card.fc-2 { top: 190px; right: 55px; width: 230px; animation-delay: 2s; }
.float-card.fc-3 { bottom: 30px; right: 0; width: 255px; animation-delay: 4s; }
@keyframes float { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-14px); } }
.fc-icon { font-size: 26px; margin-bottom: 10px; }
.fc-title { font-size: 13px; font-weight: 800; color: var(--gray1); margin-bottom: 5px; }
.fc-sub { font-size: 12px; color: var(--gray4); line-height: 1.6; }
.fc-bar { height: 5px; background: var(--gray5); border-radius: 3px; margin-top: 12px; overflow: hidden; }
.fc-bar-fill { height: 100%; border-radius: 3px; background: linear-gradient(90deg, var(--p2), var(--g3)); }
.fc-pill {
  display: inline-flex; align-items: center; gap: 5px;
  margin-top: 12px;
  background: var(--p5);
  color: var(--p1);
  font-size: 11px; font-weight: 700;
  padding: 4px 12px;
  border-radius: 50px;
}

@keyframes fadeSlideUp { from { opacity: 0; transform: translateY(30px); } to { opacity: 1; transform: translateY(0); } }

/* ======================================================
   SECTION COMMONS
====================================================== */
.section { padding: 80px 2rem; }
.section-inner { max-width: 1280px; margin: 0 auto; }

.sec-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 40px; }
.sec-eyebrow {
  font-size: 11px; font-weight: 700;
  letter-spacing: 2.5px; text-transform: uppercase;
  color: var(--p1);
  margin-bottom: 8px;
  display: flex; align-items: center; gap: 8px;
}
.sec-eyebrow::before { content:''; width: 24px; height: 2px; background: linear-gradient(90deg, var(--p1), var(--g2)); border-radius: 2px; }
.sec-title { font-size: 32px; font-weight: 800; color: var(--gray1); }

.btn-link {
  font-size: 13px; font-weight: 700;
  color: var(--p1);
  background: none;
  border: 1.5px solid rgba(108,43,217,0.2);
  border-radius: 50px;
  padding: 9px 20px;
  transition: all 0.3s;
  white-space: nowrap;
}
.btn-link:hover { background: var(--p1); color: white; border-color: var(--p1); }

/* ======================================================
   CATEGORIES BAR
====================================================== */
.cats-bar {
  background: white;
  border-bottom: 1px solid var(--gray5);
  position: sticky;
  top: var(--nav-h);
  z-index: 100;
}
.cats-inner {
  max-width: 1280px; margin: 0 auto;
  padding: 0 2rem;
  display: flex; align-items: center; gap: 4px;
  height: var(--cats-h);
  overflow-x: auto;
}
.cats-inner::-webkit-scrollbar { height: 0; }
.cat-btn {
  font-size: 13px; font-weight: 600;
  padding: 7px 18px;
  border-radius: 50px;
  border: none;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.25s;
  color: var(--gray3);
  background: none;
}
.cat-btn:hover { background: var(--p5); color: var(--p1); }
.cat-btn.active { background: linear-gradient(135deg, var(--p1), var(--p2)); color: white; box-shadow: 0 3px 14px rgba(108,43,217,0.3); }

/* ======================================================
   FEATURED BANNER
====================================================== */
.featured-banner {
  border-radius: var(--radius-xl);
  overflow: hidden;
  position: relative;
  min-height: 440px;
  display: flex; align-items: flex-end;
  cursor: pointer;
  transition: transform 0.35s, box-shadow 0.35s;
  background: linear-gradient(135deg, #f0ebff, #e8f8f2);
  box-shadow: var(--shadow);
  margin-bottom: 28px;
}
.featured-banner:hover { transform: scale(1.007); box-shadow: var(--shadow-lg); }
.featured-banner .banner-img-wrap {
  position: absolute; inset: 0;
  overflow: hidden;
}
.featured-banner .banner-img-wrap img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}
.featured-banner:hover .banner-img-wrap img { transform: scale(1.04); }
.featured-banner .banner-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(108,43,217,0.75) 0%, rgba(108,43,217,0.2) 50%, transparent 100%);
}
.banner-placeholder {
  position: absolute; inset: 0;
  background: linear-gradient(135deg, #ede9fe 0%, #d1fae5 60%, #e0f2fe 100%);
  display: flex; align-items: center; justify-content: center;
  font-size: 90px;
}
.banner-mesh-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(108,43,217,0.7) 0%, rgba(108,43,217,0.15) 55%, transparent 100%);
}
.banner-content {
  position: relative; z-index: 2;
  padding: 44px;
  width: 100%;
}
.banner-badges { display: flex; gap: 10px; margin-bottom: 18px; flex-direction: row-reverse; justify-content: flex-end; }
.badge {
  font-size: 11px; font-weight: 700;
  padding: 5px 14px; border-radius: 50px;
}
.badge-cat { background: rgba(255,255,255,0.2); color: white; border: 1px solid rgba(255,255,255,0.3); backdrop-filter: blur(8px); }
.badge-new { background: rgba(52,211,153,0.25); color: #6EE7B7; border: 1px solid rgba(52,211,153,0.3); }
.banner-title { font-size: 36px; font-weight: 900; color: white; line-height: 1.3; margin-bottom: 14px; max-width: 700px; }
.banner-excerpt { font-size: 15px; color: rgba(255,255,255,0.75); line-height: 1.9; max-width: 600px; margin-bottom: 22px; }
.banner-meta { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.bm-author { display: flex; align-items: center; gap: 10px; }
.bm-av {
  width: 38px; height: 38px; border-radius: 50%;
  background: linear-gradient(135deg, var(--p1), var(--p2));
  display: flex; align-items: center; justify-content: center;
  font-size: 12px; font-weight: 800; color: white;
  border: 2px solid rgba(255,255,255,0.35);
  overflow: hidden;
  flex-shrink: 0;
}
.bm-av img { width: 100%; height: 100%; object-fit: cover; }
.bm-name { font-size: 13px; font-weight: 700; color: white; }
.bm-date { font-size: 12px; color: rgba(255,255,255,0.55); }
.bm-sep { width: 1px; height: 28px; background: rgba(255,255,255,0.2); }
.read-pill {
  background: rgba(255,255,255,0.15);
  color: rgba(255,255,255,0.85);
  font-size: 12px; font-weight: 600;
  padding: 5px 14px; border-radius: 50px;
  backdrop-filter: blur(8px);
}

/* ======================================================
   POST CARDS GRID
====================================================== */
.cards-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.cards-grid-2col { grid-template-columns: repeat(2, 1fr); }
.cards-grid-4col { grid-template-columns: repeat(4, 1fr); }

.post-card {
  background: white;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--gray5);
  cursor: pointer;
  transition: all 0.3s;
  position: relative;
  display: block;
}
.post-card:hover { transform: translateY(-7px); box-shadow: var(--shadow-lg); border-color: rgba(108,43,217,0.15); }

.card-img-wrap {
  height: 195px;
  position: relative; overflow: hidden;
  background: linear-gradient(135deg, #ede9fe, #d1fae5);
  display: flex; align-items: center; justify-content: center;
}
.card-img-wrap img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.post-card:hover .card-img-wrap img { transform: scale(1.06); }
.card-img-placeholder { font-size: 52px; position: absolute; }
.card-img-mesh {
  position: absolute; inset: 0;
  opacity: 0.5;
}
/* Colorful mesh variants */
.cim-violet { background: linear-gradient(135deg, rgba(167,139,250,0.5) 0%, rgba(110,231,183,0.3) 100%); }
.cim-green  { background: linear-gradient(135deg, rgba(52,211,153,0.5) 0%, rgba(56,189,248,0.3) 100%); }
.cim-blue   { background: linear-gradient(135deg, rgba(96,165,250,0.5) 0%, rgba(167,139,250,0.3) 100%); }
.cim-amber  { background: linear-gradient(135deg, rgba(251,191,36,0.45) 0%, rgba(252,165,165,0.3) 100%); }
.cim-teal   { background: linear-gradient(135deg, rgba(45,212,191,0.5) 0%, rgba(139,92,246,0.3) 100%); }
.cim-rose   { background: linear-gradient(135deg, rgba(251,113,133,0.45) 0%, rgba(167,139,250,0.3) 100%); }

.card-cat-badge {
  position: absolute; top: 12px; right: 12px; z-index: 1;
  background: white;
  color: var(--p1);
  font-size: 10px; font-weight: 700;
  padding: 4px 12px; border-radius: 50px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.card-body { padding: 20px 22px; }
.card-title { font-size: 17px; font-weight: 800; color: var(--gray1); line-height: 1.45; margin-bottom: 9px; }
.card-excerpt { font-size: 13px; color: var(--gray3); line-height: 1.8; margin-bottom: 16px; }
.card-footer {
  display: flex; align-items: center; justify-content: space-between;
  border-top: 1px solid var(--gray5); padding-top: 14px;
}
.cf-author { display: flex; align-items: center; gap: 9px; }
.cf-av {
  width: 30px; height: 30px; border-radius: 50%;
  background: linear-gradient(135deg, var(--p1), var(--p2));
  display: flex; align-items: center; justify-content: center;
  font-size: 10px; font-weight: 800; color: white;
  flex-shrink: 0; overflow: hidden;
}
.cf-av img { width: 100%; height: 100%; object-fit: cover; }
.cf-av.av-g { background: linear-gradient(135deg, var(--g1), var(--g2)); }
.cf-av.av-b { background: linear-gradient(135deg, var(--b1), var(--b2)); }
.cf-av.av-a { background: linear-gradient(135deg, #F59E0B, #FBBF24); }
.cf-name { font-size: 12px; font-weight: 700; color: var(--gray2); }
.cf-date { font-size: 11px; color: var(--gray4); }
.cf-read {
  font-size: 11px; font-weight: 700;
  color: var(--p1); background: var(--p5);
  border-radius: 50px; padding: 4px 11px;
}

/* ======================================================
   POPULAR POSTS STRIP
====================================================== */
.popular-strip { border-top: 1px solid var(--gray5); }
.popular-list { display: flex; flex-direction: column; gap: 0; }
.popular-item {
  display: flex; align-items: center; gap: 18px;
  padding: 18px 0;
  border-bottom: 1px solid var(--gray5);
  cursor: pointer;
  transition: all 0.2s;
  text-decoration: none;
  color: inherit;
}
.popular-item:last-child { border-bottom: none; }
.popular-item:hover .popular-title { color: var(--p1); }
.pop-num {
  font-size: 22px; font-weight: 900;
  color: var(--p4);
  min-width: 36px; text-align: center;
  flex-shrink: 0;
}
.popular-item:hover .pop-num { color: var(--p2); }
.pop-img {
  width: 72px; height: 60px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  flex-shrink: 0;
  background: var(--p5);
  display: flex; align-items: center; justify-content: center;
  font-size: 24px;
}
.pop-img img { width: 100%; height: 100%; object-fit: cover; }
.pop-info { flex: 1; }
.popular-title { font-size: 14px; font-weight: 700; color: var(--gray1); margin-bottom: 5px; line-height: 1.45; transition: color 0.2s; }
.pop-meta { font-size: 11px; color: var(--gray4); display: flex; gap: 10px; }

/* ======================================================
   TWO-COLUMN BLOG LAYOUT
====================================================== */
.blog-layout { display: grid; grid-template-columns: 1fr 320px; gap: 40px; }
.blog-main {}
.blog-sidebar {}

/* Sidebar widgets */
.widget {
  background: white;
  border: 1px solid var(--gray5);
  border-radius: var(--radius-lg);
  padding: 26px;
  margin-bottom: 28px;
}
.widget-title {
  font-size: 16px; font-weight: 800; color: var(--gray1);
  margin-bottom: 20px;
  padding-bottom: 14px;
  border-bottom: 2px solid var(--gray5);
  position: relative;
}
.widget-title::after {
  content: '';
  position: absolute; bottom: -2px; right: 0;
  width: 44px; height: 2px;
  background: linear-gradient(90deg, var(--p1), var(--g2));
  border-radius: 2px;
}

/* Search widget */
.widget-search-form { display: flex; gap: 8px; }
.widget-search-input {
  flex: 1;
  border: 1.5px solid var(--gray5);
  border-radius: 50px;
  padding: 10px 18px;
  font-size: 13px; direction: rtl;
  outline: none; transition: border-color 0.2s;
}
.widget-search-input:focus { border-color: var(--p2); }
.widget-search-btn {
  width: 40px; height: 40px; border-radius: 50%;
  background: linear-gradient(135deg, var(--p1), var(--p2));
  border: none; color: white; font-size: 15px;
  display: flex; align-items: center; justify-content: center;
  transition: all 0.2s; flex-shrink: 0;
}
.widget-search-btn:hover { transform: scale(1.1); }

/* Cat list */
.cat-list-item {
  display: flex; align-items: center; justify-content: space-between;
  padding: 10px 0;
  border-bottom: 1px solid var(--gray5);
  cursor: pointer; transition: all 0.2s;
  text-decoration: none; color: var(--gray2);
  font-size: 13px; font-weight: 600;
}
.cat-list-item:last-child { border-bottom: none; }
.cat-list-item:hover { color: var(--p1); }
.cat-count {
  font-size: 11px; font-weight: 700;
  color: var(--p1); background: var(--p5);
  border-radius: 50px; padding: 3px 10px;
}

/* Tags cloud */
.tags-cloud { display: flex; flex-wrap: wrap; gap: 8px; }
.tag-pill {
  font-size: 12px; font-weight: 600;
  color: var(--gray3);
  background: var(--gray6); border: 1px solid var(--gray5);
  border-radius: 50px; padding: 5px 14px;
  cursor: pointer; transition: all 0.2s;
  text-decoration: none; display: inline-block;
}
.tag-pill:hover { background: var(--p5); color: var(--p1); border-color: rgba(108,43,217,0.2); }

/* ======================================================
   TIPS STRIP
====================================================== */
.tips-strip {
  background: linear-gradient(135deg, var(--p5), rgba(209,250,229,0.4));
  border: 1px solid rgba(108,43,217,0.1);
  border-radius: var(--radius-xl);
  padding: 44px;
  margin: 40px 0;
}
.tips-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin-top: 30px; }
.tip-card {
  background: white; border-radius: var(--radius);
  padding: 20px;
  border: 1px solid rgba(108,43,217,0.08);
  transition: all 0.3s;
}
.tip-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.tip-num {
  font-size: 10px; font-weight: 900; letter-spacing: 2px;
  color: var(--p1); background: var(--p5);
  display: inline-block; padding: 3px 10px; border-radius: 50px;
  margin-bottom: 12px;
}
.tip-card h4 { font-size: 15px; font-weight: 800; color: var(--gray1); margin-bottom: 8px; line-height: 1.35; }
.tip-card p { font-size: 12px; color: var(--gray3); line-height: 1.8; }

/* ======================================================
   NEWSLETTER
====================================================== */
.newsletter-section {
  background: linear-gradient(135deg, #6C2BD9 0%, #5B21B6 50%, #059669 100%);
  border-radius: var(--radius-xl);
  overflow: hidden;
  position: relative;
  padding: 76px 2rem;
  margin: 0 auto 60px;
  max-width: 1280px;
}
.nl-mesh {
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse at 15% 50%, rgba(255,255,255,0.12) 0%, transparent 45%),
    radial-gradient(ellipse at 85% 30%, rgba(255,255,255,0.08) 0%, transparent 40%);
}
.nl-dots {
  position: absolute; inset: 0;
  background-image: radial-gradient(circle, rgba(255,255,255,0.1) 1px, transparent 1px);
  background-size: 32px 32px;
  opacity: 0.4;
}
.nl-inner { position: relative; z-index: 1; max-width: 600px; margin: 0 auto; text-align: center; }
.nl-icon {
  width: 68px; height: 68px;
  background: rgba(255,255,255,0.15);
  border: 1px solid rgba(255,255,255,0.25);
  border-radius: 20px;
  display: flex; align-items: center; justify-content: center;
  font-size: 30px;
  margin: 0 auto 26px;
  animation: pulse-ring 3s infinite;
}
@keyframes pulse-ring { 0%,100% { box-shadow: 0 0 0 0 rgba(255,255,255,0.25); } 50% { box-shadow: 0 0 0 14px rgba(255,255,255,0); } }
.nl-inner h2 { font-size: 38px; font-weight: 900; color: white; line-height: 1.3; margin-bottom: 14px; }
.nl-inner p { font-size: 15px; color: rgba(255,255,255,0.7); margin-bottom: 32px; line-height: 1.9; }
.nl-form { display: flex; gap: 10px; max-width: 460px; margin: 0 auto; flex-direction: row-reverse; }
.nl-input {
  flex: 1;
  background: rgba(255,255,255,0.15);
  border: 1.5px solid rgba(255,255,255,0.25);
  border-radius: 50px;
  padding: 14px 22px;
  font-family: 'Vazirmatn', sans-serif; font-size: 13px;
  color: white; outline: none; direction: rtl;
  transition: border-color 0.3s;
}
.nl-input::placeholder { color: rgba(255,255,255,0.5); }
.nl-input:focus { border-color: rgba(255,255,255,0.6); background: rgba(255,255,255,0.2); }
.nl-btn {
  background: white;
  color: var(--p1);
  border: none; border-radius: 50px;
  padding: 14px 26px;
  font-family: 'Vazirmatn', sans-serif; font-size: 13px; font-weight: 800;
  cursor: pointer; white-space: nowrap;
  box-shadow: 0 4px 20px rgba(0,0,0,0.15);
  transition: all 0.3s;
}
.nl-btn:hover { transform: translateY(-2px); box-shadow: 0 8px 28px rgba(0,0,0,0.2); }

/* ======================================================
   SINGLE POST
====================================================== */
.post-hero {
  background: linear-gradient(155deg, #faf9ff 0%, #ede9fe 50%, #d1fae5 100%);
  padding: 120px 2rem 70px;
  position: relative; overflow: hidden;
}
.post-hero-orb-1 {
  position: absolute; width: 420px; height: 420px; border-radius: 50%;
  background: radial-gradient(circle, rgba(139,92,246,0.2), transparent);
  top: -100px; right: -60px; filter: blur(50px);
}
.post-hero-orb-2 {
  position: absolute; width: 320px; height: 320px; border-radius: 50%;
  background: radial-gradient(circle, rgba(52,211,153,0.18), transparent);
  bottom: -80px; left: -40px; filter: blur(40px);
}
.post-hero-inner { max-width: 820px; margin: 0 auto; position: relative; z-index: 1; }
.post-cats-bar { display: flex; gap: 8px; margin-bottom: 20px; flex-wrap: wrap; }
.post-cat-badge {
  font-size: 11px; font-weight: 700;
  background: white; color: var(--p1);
  border: 1.5px solid rgba(108,43,217,0.18);
  border-radius: 50px; padding: 5px 14px;
  box-shadow: 0 2px 10px rgba(108,43,217,0.08);
}
.post-hero-title { font-size: 46px; font-weight: 900; color: var(--gray1); line-height: 1.22; margin-bottom: 20px; }
.post-hero-excerpt { font-size: 16px; color: var(--gray3); line-height: 1.9; margin-bottom: 30px; }
.post-hero-meta { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }
.ph-author { display: flex; align-items: center; gap: 10px; }
.ph-av {
  width: 46px; height: 46px; border-radius: 50%;
  background: linear-gradient(135deg, var(--p1), var(--p2));
  display: flex; align-items: center; justify-content: center;
  font-size: 14px; font-weight: 800; color: white;
  border: 3px solid white;
  box-shadow: 0 4px 14px rgba(108,43,217,0.2);
  overflow: hidden; flex-shrink: 0;
}
.ph-av img { width: 100%; height: 100%; object-fit: cover; }
.ph-name { font-size: 14px; font-weight: 800; color: var(--gray1); }
.ph-role { font-size: 12px; color: var(--p1); font-weight: 600; }
.ph-meta-pills { display: flex; gap: 10px; flex-wrap: wrap; }
.ph-pill {
  font-size: 12px; font-weight: 600;
  color: var(--gray3);
  background: white;
  border: 1px solid var(--gray5);
  border-radius: 50px; padding: 6px 14px;
  display: flex; align-items: center; gap: 5px;
}

/* Post body */
.post-body-wrapper { max-width: 820px; margin: 0 auto; padding: 60px 2rem; }
.post-featured-img {
  height: 400px;
  border-radius: var(--radius-xl);
  overflow: hidden;
  margin-bottom: 56px;
  position: relative;
  background: linear-gradient(135deg, #ede9fe, #d1fae5);
  display: flex; align-items: center; justify-content: center;
  box-shadow: var(--shadow-lg);
}
.post-featured-img img { width: 100%; height: 100%; object-fit: cover; }
.post-featured-img .img-placeholder { font-size: 100px; }

.post-content h2 { font-size: 27px; font-weight: 800; color: var(--gray1); margin: 38px 0 17px; line-height: 1.4; }
.post-content h3 { font-size: 21px; font-weight: 700; color: var(--gray2); margin: 28px 0 13px; line-height: 1.4; }
.post-content p { font-size: 16px; color: var(--gray2); line-height: 2.1; margin-bottom: 22px; }
.post-content ul { list-style: none; margin: 0 0 26px; padding: 0; }
.post-content ul li {
  font-size: 15px; color: var(--gray2); line-height: 1.9;
  padding: 9px 0; border-bottom: 1px solid var(--gray5);
  display: flex; align-items: flex-start; gap: 12px;
}
.post-content ul li::before { content: 'âœ¦'; color: var(--p1); font-size: 10px; margin-top: 7px; flex-shrink: 0; }
.post-content ol { counter-reset: ol; margin: 0 0 26px; padding: 0; }
.post-content ol li {
  counter-increment: ol;
  font-size: 15px; color: var(--gray2); line-height: 1.9;
  padding: 10px 0 10px 0; border-bottom: 1px solid var(--gray5);
  display: flex; align-items: flex-start; gap: 12px;
}
.post-content ol li::before {
  content: counter(ol);
  min-width: 26px; height: 26px; border-radius: 50%;
  background: linear-gradient(135deg, var(--p1), var(--p2));
  color: white; font-size: 11px; font-weight: 800;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0; margin-top: 2px;
}
.post-content blockquote {
  border-right: 4px solid var(--p1);
  background: var(--p5);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 22px 22px 22px 28px;
  margin: 30px 0;
  font-size: 16px; font-style: italic; color: var(--p1); font-weight: 600; line-height: 1.9;
}
.callout-box {
  background: linear-gradient(135deg, var(--p5), rgba(209,250,229,0.3));
  border: 1.5px solid rgba(108,43,217,0.12);
  border-radius: var(--radius-lg);
  padding: 24px 26px;
  margin: 32px 0;
  display: flex; align-items: flex-start; gap: 14px;
}
.callout-icon { font-size: 24px; flex-shrink: 0; margin-top: 2px; }
.callout-box p { margin: 0; font-size: 15px; color: var(--p1); font-weight: 600; line-height: 1.8; }

.post-content figure {
  margin: 32px 0;
  padding: 0;
  border: none;
  box-shadow: none;
  border-radius: var(--radius-xl);
  overflow: hidden;
  max-width: 100%;
}
.post-content figure img {
  width: 100%;
  height: 400px;
  object-fit: cover;
  display: block;
  border-radius: var(--radius-xl);
  box-shadow: none;
}
.post-content figcaption {
  display: none !important;
}

/* Post tags */
.post-tags-bar { display: flex; flex-wrap: wrap; gap: 8px; margin: 36px 0; }

/* Share bar */
.share-bar {
  background: white; border: 1px solid var(--gray5);
  border-radius: var(--radius-lg);
  padding: 22px 26px;
  display: flex; align-items: center; justify-content: space-between;
  margin: 36px 0;
  box-shadow: var(--shadow-sm);
  flex-wrap: wrap; gap: 16px;
}
.share-bar-title { font-size: 14px; font-weight: 700; color: var(--gray2); }
.share-btns { display: flex; gap: 10px; }
.share-btn {
  width: 40px; height: 40px; border-radius: 50%;
  border: 1.5px solid var(--gray5);
  background: white;
  display: flex; align-items: center; justify-content: center;
  font-size: 16px; cursor: pointer;
  transition: all 0.2s;
}
.share-btn:hover { background: var(--p5); border-color: rgba(108,43,217,0.2); transform: translateY(-2px); }

/* ======================================================
   COMMENTS SECTION
====================================================== */
.comments-section {
  max-width: 820px; margin: 0 auto;
  padding: 0 2rem 80px;
}
.comments-title {
  font-size: 26px; font-weight: 800; color: var(--gray1);
  margin-bottom: 32px;
  padding-bottom: 18px;
  border-bottom: 2px solid var(--gray5);
  position: relative;
}
.comments-title::after {
  content: '';
  position: absolute; bottom: -2px; right: 0;
  width: 60px; height: 2px;
  background: linear-gradient(90deg, var(--p1), var(--g2));
}
.comment-list { list-style: none; margin-bottom: 48px; }
.comment-item {
  display: flex; gap: 18px;
  padding: 24px 0;
  border-bottom: 1px solid var(--gray5);
}
.comment-item:last-child { border-bottom: none; }
.comment-av {
  width: 46px; height: 46px; border-radius: 50%;
  background: linear-gradient(135deg, var(--p1), var(--p2));
  display: flex; align-items: center; justify-content: center;
  font-size: 14px; font-weight: 800; color: white;
  flex-shrink: 0;
}
.comment-av.ca-g { background: linear-gradient(135deg, var(--g1), var(--g2)); }
.comment-av.ca-b { background: linear-gradient(135deg, var(--b1), var(--b2)); }
.comment-av.ca-a { background: linear-gradient(135deg, #F59E0B, #FBBF24); }
.comment-body { flex: 1; }
.comment-header { display: flex; align-items: center; gap: 12px; margin-bottom: 10px; flex-wrap: wrap; }
.comment-author { font-size: 14px; font-weight: 800; color: var(--gray1); }
.comment-date { font-size: 12px; color: var(--gray4); }
.comment-text { font-size: 14px; color: var(--gray2); line-height: 1.85; }

/* Comment form */
.comment-form-wrap {
  background: white;
  border: 1px solid var(--gray5);
  border-radius: var(--radius-xl);
  padding: 36px;
  box-shadow: var(--shadow-sm);
}
.comment-form-title { font-size: 20px; font-weight: 800; color: var(--gray1); margin-bottom: 24px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 16px; }
.form-group { display: flex; flex-direction: column; gap: 8px; margin-bottom: 16px; }
.form-label { font-size: 13px; font-weight: 700; color: var(--gray2); }
.form-input, .form-textarea {
  border: 1.5px solid var(--gray5);
  border-radius: var(--radius-sm);
  padding: 12px 16px;
  font-family: 'Vazirmatn', sans-serif;
  font-size: 14px; direction: rtl;
  color: var(--gray1); background: var(--gray6);
  outline: none; transition: all 0.2s;
  width: 100%;
}
.form-input:focus, .form-textarea:focus { border-color: var(--p2); background: white; box-shadow: 0 0 0 4px rgba(139,92,246,0.07); }
.form-textarea { resize: vertical; min-height: 130px; }
.form-submit {
  background: linear-gradient(135deg, var(--p1), var(--p2));
  color: white;
  font-family: 'Vazirmatn', sans-serif;
  font-size: 15px; font-weight: 700;
  padding: 14px 36px;
  border-radius: 50px; border: none;
  cursor: pointer;
  box-shadow: 0 4px 20px rgba(108,43,217,0.3);
  transition: all 0.3s;
}
.form-submit:hover { transform: translateY(-2px); box-shadow: 0 8px 28px rgba(108,43,217,0.45); }

/* ======================================================
   SEARCH PAGE
====================================================== */
.search-hero {
  background: linear-gradient(155deg, #f5f3ff 0%, #ede9fe 50%, #d1fae5 100%);
  padding: 120px 2rem 70px;
  position: relative; overflow: hidden;
}
.search-hero-orb {
  position: absolute; border-radius: 50%; pointer-events: none; filter: blur(50px);
}
.sho-1 { width: 450px; height: 450px; background: radial-gradient(circle, rgba(139,92,246,0.2), transparent); top: -100px; right: -60px; }
.sho-2 { width: 350px; height: 350px; background: radial-gradient(circle, rgba(52,211,153,0.18), transparent); bottom: -80px; left: -40px; }
.search-hero-inner { max-width: 720px; margin: 0 auto; position: relative; z-index: 1; text-align: center; }
.search-hero-inner h1 { font-size: 46px; font-weight: 900; color: var(--gray1); margin-bottom: 14px; }
.search-hero-inner h1 span { background: linear-gradient(135deg, var(--p1), var(--g2)); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.search-hero-inner p { font-size: 15px; color: var(--gray3); margin-bottom: 36px; }
.search-box {
  position: relative;
  max-width: 600px; margin: 0 auto;
  background: white;
  border-radius: 60px;
  box-shadow: 0 8px 40px rgba(108,43,217,0.15);
  border: 2px solid rgba(108,43,217,0.1);
  overflow: hidden;
  display: flex; align-items: center;
}
.search-icon-inner { padding: 0 18px; font-size: 20px; color: var(--gray4); flex-shrink: 0; }
.search-input-field {
  flex: 1;
  border: none; outline: none;
  padding: 18px 0;
  font-family: 'Vazirmatn', sans-serif;
  font-size: 15px; direction: rtl;
  color: var(--gray1); background: transparent;
}
.search-input-field::placeholder { color: var(--gray4); }
.search-submit-btn {
  background: linear-gradient(135deg, var(--p1), var(--p2));
  border: none; border-radius: 50px;
  margin: 6px;
  padding: 11px 24px;
  font-family: 'Vazirmatn', sans-serif; font-size: 14px; font-weight: 700;
  color: white; cursor: pointer; white-space: nowrap;
  transition: all 0.2s;
}
.search-submit-btn:hover { transform: scale(1.04); }
.search-popular-tags { display: flex; flex-wrap: wrap; gap: 9px; justify-content: center; margin-top: 22px; }
.search-tag {
  font-size: 12px; font-weight: 600;
  color: var(--p1); background: white;
  border: 1.5px solid rgba(108,43,217,0.18);
  border-radius: 50px; padding: 6px 16px;
  cursor: pointer; transition: all 0.2s;
  box-shadow: 0 2px 10px rgba(108,43,217,0.07);
}
.search-tag:hover { background: var(--p5); border-color: var(--p2); }

.search-results-section { padding: 60px 2rem; max-width: 1280px; margin: 0 auto; }
.search-results-title { font-size: 22px; font-weight: 800; color: var(--gray1); margin-bottom: 28px; }
.no-results { text-align: center; padding: 60px 0; color: var(--gray3); font-size: 16px; }

/* ======================================================
   FOOTER
====================================================== */
.site-footer {
  background: linear-gradient(160deg, #f5f3ff 0%, #fafaf9 40%, #f0fdf4 100%);
  border-top: 1px solid var(--gray5);
  padding: 70px 2rem 30px;
  margin-top: 60px;
}
.footer-inner { max-width: 1280px; margin: 0 auto; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 50px; margin-bottom: 52px; }
.ft-brand-logo { display: flex; align-items: center; gap: 10px; margin-bottom: 16px; }
.ft-brand p { font-size: 13px; color: var(--gray3); line-height: 1.9; max-width: 230px; }
.ft-col h5 {
  font-size: 10px; font-weight: 800; letter-spacing: 2.5px;
  text-transform: uppercase; color: var(--gray4);
  margin-bottom: 18px;
}
.ft-col a {
  display: block; font-size: 13px; color: var(--gray3);
  text-decoration: none; margin-bottom: 12px;
  transition: color 0.2s;
}
.ft-col a:hover { color: var(--p1); }
.footer-bottom {
  border-top: 1px solid var(--gray5);
  padding-top: 26px;
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 14px;
}
.footer-bottom p { font-size: 12px; color: var(--gray4); }
.socials { display: flex; gap: 10px; }
.soc {
  width: 38px; height: 38px; border-radius: 11px;
  background: white; border: 1.5px solid var(--gray5);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; font-size: 14px; color: var(--gray3);
  transition: all 0.3s; font-weight: 700;
}
.soc:hover { background: var(--p5); border-color: rgba(108,43,217,0.2); color: var(--p1); }

/* ======================================================
   BACK TO TOP
====================================================== */
#back-top {
  position: fixed; bottom: 28px; left: 28px;
  width: 48px; height: 48px; border-radius: 50%;
  background: linear-gradient(135deg, var(--p1), var(--p2));
  border: none; color: white; font-size: 20px;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; z-index: 800;
  box-shadow: 0 4px 20px rgba(108,43,217,0.4);
  opacity: 0; pointer-events: none;
  transition: all 0.35s;
}
#back-top.visible { opacity: 1; pointer-events: auto; }
#back-top:hover { transform: translateY(-3px); box-shadow: 0 8px 28px rgba(108,43,217,0.5); }

/* ======================================================
   PAGINATION
====================================================== */
.pagination { display: flex; gap: 8px; justify-content: center; margin-top: 48px; flex-wrap: wrap; }
.page-num {
  width: 42px; height: 42px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 14px; font-weight: 700;
  border: 1.5px solid var(--gray5);
  background: white; color: var(--gray2);
  cursor: pointer; transition: all 0.2s;
  text-decoration: none;
}
.page-num:hover { background: var(--p5); border-color: rgba(108,43,217,0.2); color: var(--p1); }
.page-num.current { background: linear-gradient(135deg, var(--p1), var(--p2)); color: white; border-color: transparent; box-shadow: 0 3px 14px rgba(108,43,217,0.3); }

/* ======================================================
   404
====================================================== */
.not-found-wrap { text-align: center; padding: 120px 2rem 100px; }
.not-found-wrap h1 { font-size: 120px; font-weight: 900; background: linear-gradient(135deg, var(--p1), var(--g2)); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; line-height: 1; margin-bottom: 16px; }
.not-found-wrap h2 { font-size: 28px; font-weight: 800; color: var(--gray1); margin-bottom: 16px; }
.not-found-wrap p { font-size: 16px; color: var(--gray3); margin-bottom: 36px; }

/* ======================================================
   RESPONSIVE
====================================================== */
@media (max-width: 1100px) {
  .blog-layout { grid-template-columns: 1fr; }
  .blog-sidebar { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
  .blog-sidebar .widget { margin-bottom: 0; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 36px; }
}

@media (max-width: 900px) {
  #site-nav { padding: 8px 1rem; }
  .nav-pill { height: 56px; padding: 0 12px 0 16px; }
  .nav-menu, .nav-actions .btn-cta { display: none; }
  .nav-hamburger { display: flex; }
  .hero-content { grid-template-columns: 1fr; gap: 40px; padding-top: 110px; }
  .hero-visual { display: none; }
  .hero-title { font-size: 42px; }
  .cards-grid { grid-template-columns: repeat(2, 1fr); }
  .cards-grid-4col { grid-template-columns: repeat(2, 1fr); }
  .tips-grid { grid-template-columns: repeat(2, 1fr); }
  .post-hero-title { font-size: 34px; }
  .search-hero-inner h1 { font-size: 34px; }
  .comments-section { padding: 0 1rem 60px; }
  .post-body-wrapper { padding: 40px 1rem; }
}

@media (max-width: 640px) {
  .hero-title { font-size: 34px; }
  .hero-stats { flex-wrap: wrap; gap: 16px; }
  .cards-grid, .cards-grid-2col { grid-template-columns: 1fr; }
  .cards-grid-4col { grid-template-columns: 1fr; }
  .tips-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .banner-title { font-size: 26px; }
  .sec-title { font-size: 24px; }
  .footer-grid { grid-template-columns: 1fr; }
  .tips-strip { padding: 28px 20px; }
  .nl-form { flex-direction: column; }
  .post-hero-title { font-size: 28px; }
  .blog-sidebar { grid-template-columns: 1fr; }
  .newsletter-section { margin: 0 1rem 40px; border-radius: var(--radius-lg); }
  .featured-banner { min-height: 340px; }
  .banner-content { padding: 24px; }
  .share-bar { flex-direction: column; align-items: flex-start; }
}
/* â”€â”€ Accordion Carousel â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.ac-wrap { padding: 2.5rem 0 1.5rem; }

.ac-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 1.25rem;
}

.ac-strip {
  display: flex;
  gap: 8px;
  height: 420px;
  padding: 0 20px;
}

.ac-card {
  flex-shrink: 0;
  flex-basis: calc((50% - 5 * 8px) / 5); /* inactive default for 8 cards */
  height: 100%;
  border-radius: 14px;
  overflow: hidden;
  cursor: pointer;
  position: relative;
  text-decoration: none;
  transition: flex-basis .6s cubic-bezier(.4, 0, .2, 1),
              filter .5s ease,
              opacity .5s ease;
  filter: brightness(0.6);
  opacity: 0.75;
}

.ac-card.active {
  flex-basis: 58%;
  filter: none;
  opacity: 1;
}

.ac-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
}

.ac-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(0,0,0,.82) 0%,
    rgba(0,0,0,.08) 55%,
    transparent 100%
  );
}

.ac-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  padding: 3px 9px;
  border-radius: 5px;
  background: rgba(0,0,0,.5);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .05em;
  color: #fff;
  opacity: 0;
  transition: opacity .3s ease;
}

.ac-card.active .ac-badge { opacity: 1; }

.ac-info {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: 18px 20px;
  opacity: 0;
  transition: opacity .35s ease;
}

.ac-card.active .ac-info { opacity: 1; }

.ac-cat {
  font-size: 10px;
  color: rgba(255,255,255,.6);
  letter-spacing: .06em;
  text-transform: uppercase;
  margin-bottom: 5px;
}

.ac-title {
  font-size: 22px;
  font-weight: 700;
  color: #fff;
  line-height: 1.25;
  margin: 0 0 7px;
}

.ac-meta {
  font-size: 12px;
  color: rgba(255,255,255,.6);
  margin-bottom: 9px;
}

.ac-read {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  border: 1px solid rgba(255,255,255,.3);
  border-radius: 20px;
  padding: 4px 11px;
  font-size: 12px;
  color: #fff;
}

/* Controls */
.ac-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-top: 1.1rem;
}

.ac-btn {
  width: 34px; height: 34px;
  border-radius: 50%;
  border: 1px solid rgba(0,0,0,.15);
  background: #fff;
  cursor: pointer;
  font-size: 20px;
  color: #333;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .2s;
}
.ac-btn:hover { background: #f5f5f5; }

.ac-dots { display: flex; gap: 5px; align-items: center; }
.ac-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: rgba(0,0,0,.2);
  cursor: pointer;
  transition: width .3s, background .3s, border-radius .3s;
}
.ac-dot.active {
  width: 18px;
  border-radius: 3px;
  background: #111;
}

/* Responsive */
@media (max-width: 768px) {
  .ac-strip  { height: 340px; padding: 0 14px; gap: 6px; }
  .ac-title  { font-size: 17px; }
  .ac-info   { padding: 14px 16px; }
}
@media (max-width: 480px) {
  .ac-strip  { height: 260px; padding: 0 10px; gap: 5px; }
  .ac-title  { font-size: 14px; }
  .ac-card.active { flex-basis: 65%; }
}

/* ======================================================
   WELCOME HERO â€” PakLean
===================================================== */
.pk-welcome {
  position: relative;
  overflow: hidden;
  background:transparent;
  padding: 64px 40px;
  font-family: 'Vazirmatn', sans-serif;
  direction: rtl;
}

.pk-welcome::before,
.pk-welcome::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  filter: blur(70px);
  pointer-events: none;
  z-index: 0;
}
.pk-welcome::before {
  width: 500px; height: 500px;
  background:transparent;
  top: -160px; right: -120px;
  animation: wOrbA 13s ease-in-out infinite alternate;
}
.pk-welcome::after {
  width: 420px; height: 420px;
  background:transparent;
  bottom: -120px; left: -100px;
  animation: wOrbB 16s ease-in-out infinite alternate;
}
@keyframes wOrbA { to { transform: translate(-50px, 40px) scale(1.1); } }
@keyframes wOrbB { to { transform: translate(40px, -30px) scale(1.08); } }

.pk-welcome-dots {
  position: absolute; inset: 0; z-index: 0;
  background-image: radial-gradient(circle, rgba(108,43,217,0.055) 1.2px, transparent 1.2px);
  background-size: 30px 30px;
  pointer-events: none;
}

.pk-welcome-inner {
  position: relative; z-index: 1;
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 40px;
}

.pk-welcome-text {
  text-align: center;
  max-width: 500px;
  flex-shrink: 0;
}

.pk-welcome-text h1 {
  font-size: clamp(28px, 3.5vw, 46px);
  font-weight: 900;
  color: #160e30;
  line-height: 1.3;
  margin: 0 0 16px;
}

.pk-welcome-text h1 .pk-accent {
  background: linear-gradient(135deg, #6c2bd9 0%, #8b5cf6 55%, #06b6d4 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  background-size: 200% auto;
  animation: accentShift 6s ease-in-out infinite alternate;
}
@keyframes accentShift {
  from { background-position: 0% 50%; }
  to   { background-position: 100% 50%; }
}

.pk-welcome-text p {
  font-size: clamp(13px, 1.3vw, 15px);
  font-weight: 400;
  color: #6b7280;
  line-height: 1.9;
  margin: 0 0 28px;
}

.pk-welcome-btns {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

.pk-btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: linear-gradient(135deg, #6c2bd9, #8b5cf6);
  color: #fff !important;
  font-family: 'Vazirmatn', sans-serif;
  font-size: 14px;
  font-weight: 700;
  padding: 13px 26px;
  border-radius: 50px;
  border: none;
  text-decoration: none !important;
  cursor: pointer;
  box-shadow: 0 8px 26px rgba(108,43,217,0.38);
  transition: transform 0.25s cubic-bezier(.34,1.56,.64,1), box-shadow 0.25s;
}
.pk-btn-primary:hover {
  transform: translateY(-3px) scale(1.04);
  box-shadow: 0 14px 38px rgba(108,43,217,0.5);
}

.pk-btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: rgba(255,255,255,0.65);
  color: #5b21b6 !important;
  font-family: 'Vazirmatn', sans-serif;
  font-size: 14px;
  font-weight: 600;
  padding: 12px 24px;
  border-radius: 50px;
  border: 1.5px solid rgba(108,43,217,0.28) !important;
  text-decoration: none !important;
  cursor: pointer;
  backdrop-filter: blur(10px);
  transition: all 0.25s;
}
.pk-btn-outline:hover {
  background: rgba(237,233,254,0.85);
  border-color: rgba(108,43,217,0.5) !important;
}

.pk-side-cards {
  display: flex;
  flex-direction: column;
  gap: 16px;
  flex-shrink: 0;
}

.pk-side-card {
  background: rgba(255,255,255,0.75);
  border: 1px solid rgba(255,255,255,0.95);
  border-radius: 20px;
  padding: 18px 20px;
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  box-shadow: 0 10px 40px rgba(108,43,217,0.09), 0 2px 8px rgba(0,0,0,0.04);
  width: 170px;
  text-align: center;
  cursor: default;
  transition: transform 0.35s cubic-bezier(.34,1.56,.64,1), box-shadow 0.35s;
}
.pk-side-card:hover {
  transform: translateY(-6px) scale(1.03) !important;
  box-shadow: 0 18px 52px rgba(108,43,217,0.17);
}

.pk-card-icon-wrap {
  width: 54px; height: 54px;
  border-radius: 16px;
  margin: 0 auto 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
}
.pk-card-icon-wrap.violet { background: linear-gradient(135deg, #ede9fe, #ddd6fe); }
.pk-card-icon-wrap.teal   { background: linear-gradient(135deg, #d1fae5, #a7f3d0); }
.pk-card-icon-wrap.blue   { background: linear-gradient(135deg, #dbeafe, #bfdbfe); }
.pk-card-icon-wrap.amber  { background: linear-gradient(135deg, #fef3c7, #fde68a); }

.pk-side-card .pk-card-label {
  font-size: 12px;
  font-weight: 700;
  color: #160e30;
  line-height: 1.45;
}
.pk-side-card .pk-card-sub {
  font-size: 10px;
  color: #9ca3af;
  margin-top: 4px;
  line-height: 1.5;
}

.pk-float-1 { animation: wFloat1 5.5s ease-in-out infinite; }
.pk-float-2 { animation: wFloat2 7s   2s ease-in-out infinite; }
.pk-float-3 { animation: wFloat3 6s   1s ease-in-out infinite; }
.pk-float-4 { animation: wFloat4 8s   3s ease-in-out infinite; }

@keyframes wFloat1 { 0%,100%{transform:translateY(0px)}   50%{transform:translateY(-12px)} }
@keyframes wFloat2 { 0%,100%{transform:translateY(0px)}   50%{transform:translateY(-9px)}  }
@keyframes wFloat3 { 0%,100%{transform:translateY(0px) rotate(-1.5deg)} 50%{transform:translateY(-11px) rotate(1.5deg)} }
@keyframes wFloat4 { 0%,100%{transform:translateY(0px) rotate(1deg)}    50%{transform:translateY(-8px)  rotate(-1deg)} }

.pk-side-left  .pk-side-card { animation-fill-mode: both; }
.pk-side-right .pk-side-card { animation-fill-mode: both; }

.pk-side-left  .pk-side-card:nth-child(1) { animation: slideInRight 0.8s 0.1s cubic-bezier(.16,1,.3,1) both, wFloat1 5.5s 0.9s ease-in-out infinite; }
.pk-side-left  .pk-side-card:nth-child(2) { animation: slideInRight 0.8s 0.25s cubic-bezier(.16,1,.3,1) both, wFloat2 7s   2.25s ease-in-out infinite; }
.pk-side-right .pk-side-card:nth-child(1) { animation: slideInLeft  0.8s 0.1s cubic-bezier(.16,1,.3,1) both, wFloat3 6s   1.1s ease-in-out infinite; }
.pk-side-right .pk-side-card:nth-child(2) { animation: slideInLeft  0.8s 0.25s cubic-bezier(.16,1,.3,1) both, wFloat4 8s   3.25s ease-in-out infinite; }

@keyframes slideInRight {
  from { opacity: 0; transform: translateX(40px) scale(0.88); }
  to   { opacity: 1; transform: translateX(0) scale(1); }
}
@keyframes slideInLeft {
  from { opacity: 0; transform: translateX(-40px) scale(0.88); }
  to   { opacity: 1; transform: translateX(0) scale(1); }
}

.pk-welcome-text {
  animation: fadeInUp 0.9s 0.05s cubic-bezier(.16,1,.3,1) both;
}
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(30px); }
  to   { opacity: 1; transform: translateY(0); }
}

@media (max-width: 960px) {
  .pk-welcome { padding: 52px 28px; }
  .pk-side-card { width: 148px; padding: 14px 16px; }
  .pk-welcome-inner { gap: 24px; }
}

@media (max-width: 720px) {
  .pk-welcome { padding: 52px 20px; }
  .pk-side-cards { display: none; }
  .pk-welcome-inner {
    flex-direction: column;
    gap: 0;
  }
  .pk-welcome-text {
    max-width: 100%;
  }
}

@media (max-width: 480px) {
  .pk-welcome { padding: 40px 16px; }
  .pk-side-cards { display: none; }
  .pk-welcome-text h1 { font-size: clamp(24px, 7vw, 32px); }
  .pk-btn-primary, .pk-btn-outline { font-size: 13px; padding: 11px 20px; }
}

/* ======================================================
   CATEGORY IMAGES â€” PakLean
===================================================== */
.pk-cat-images-wrap {
  padding: 60px 40px;
}

/* =========================
   MOBILE / TABLET CAROUSEL
========================= */

.pk-cat-images-scroll {
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  cursor: grab;
  padding: 10px 0 20px;
  mask-image: linear-gradient(
    to right,
    transparent 0%,
    black 8%,
    black 92%,
    transparent 100%
  );
  -webkit-mask-image: linear-gradient(
    to right,
    transparent 0%,
    black 8%,
    black 92%,
    transparent 100%
  );
}

.pk-cat-images-scroll::-webkit-scrollbar {
  display: none;
}

.pk-cat-images-track {
  display: flex;
  gap: 32px;
  width: max-content;
  padding: 0 40px;
}

.pk-cat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-decoration: none !important;
  flex-shrink: 0;
  transition: transform .3s cubic-bezier(.34,1.56,.64,1);
}

.pk-cat-item:hover {
  transform: translateY(-6px);
}

.pk-cat-img-wrap {
  width: 140px;
  height: 140px;
  border-radius: 50%;
  overflow: hidden;
  box-shadow:
    0 8px 30px rgba(108,43,217,.16),
    0 2px 8px rgba(0,0,0,.06);

  background: rgba(255,255,255,.55);
  border: 1.5px solid rgba(255,255,255,.8);

  backdrop-filter: blur(16px) saturate(180%);
  -webkit-backdrop-filter: blur(16px) saturate(180%);

  display:flex;
  align-items:center;
  justify-content:center;

  transition:.35s;
}

.pk-cat-item:hover .pk-cat-img-wrap {
  transform: translateY(-4px);
}

.pk-cat-img {
  width:100%;
  height:100%;
  object-fit:cover;
}

.pk-cat-name {
  margin-top:16px;
  font-size:13px;
  font-weight:700;
  color:#160e30;
  text-align:center;
}

.pk-cat-item:hover .pk-cat-name {
  color:#6c2bd9;
}

/* =========================
   DESKTOP
========================= */

@media (min-width:1025px){

  .pk-cat-images-scroll{
    overflow:visible;
    cursor:default;
    padding:0;

    mask-image:none;
    -webkit-mask-image:none;
  }

  .pk-cat-images-track{
    width:100%;
    padding:0;

    display:flex;
    justify-content:center;
    align-items:flex-start;
    flex-wrap:nowrap;

    gap:24px;
  }

  .pk-cat-item{
    flex:0 0 auto;
  }
}

/* =========================
   TABLET
========================= */

@media (max-width:720px){

  .pk-cat-images-wrap{
    padding:48px 0;
  }

  .pk-cat-images-track{
    padding:0 24px;
    gap:24px;
  }

  .pk-cat-img-wrap{
    width:120px;
    height:120px;
  }

  .pk-cat-name{
    font-size:12px;
  }
}

/* =========================
   MOBILE
========================= */

@media (max-width:480px){

  .pk-cat-images-wrap{
    padding:40px 0;
  }

  .pk-cat-images-track{
    padding:0 16px;
    gap:20px;
  }

  .pk-cat-img-wrap{
    width:105px;
    height:105px;
  }

  .pk-cat-name{
    font-size:11px;
  }
}
/* Front Page Animated Background */
/* Homepage only */
.home{
    background:#fafaf9;
    position:relative;
}

.home::before{
    content:"";
    position:fixed;
    inset:0;
    z-index:-2;
    pointer-events:none;

    background:
        radial-gradient(circle at 15% 20%, rgba(139,92,246,.20) 0%, transparent 35%),
        radial-gradient(circle at 85% 30%, rgba(16,185,129,.18) 0%, transparent 40%),
        radial-gradient(circle at 50% 80%, rgba(59,130,246,.10) 0%, transparent 35%),
        radial-gradient(circle at 20% 90%, rgba(236,72,153,.08) 0%, transparent 30%);

    filter:blur(90px);
    animation:auroraMove 25s ease-in-out infinite alternate;
}

.home::after{
    content:"";
    position:fixed;
    inset:0;
    z-index:-3;
    pointer-events:none;

    background:
        linear-gradient(
            160deg,
            #f5f3ff 0%,
            #fafaf9 35%,
            #f0fdf4 70%,
            #eff6ff 100%
        );
}

@keyframes auroraMove{
    0%{
        transform:scale(1) rotate(0deg);
    }
    100%{
        transform:scale(1.15) rotate(8deg);
    }
}
/* ======================================================
   RESPONSIVE â€” SEARCH OVERLAY & SMALL SCREENS
====================================================== */
@media (max-width: 480px) {
  .topbar { font-size: 12px; padding: 8px 2.5rem 8px 1rem; }
  .nav-pill { height: 52px; }
  .logo-text { display: none; }
  .logo-icon { width: 38px; height: 38px; }
  .search-overlay { padding: 48px 1rem 36px; }
  .search-overlay-label { font-size: 18px; }
  .search-overlay-field input { font-size: 15px; }
  .search-overlay-submit { font-size: 13px; padding: 9px 16px; }
}