/*
Theme Name: Theme By Sojan T.S
Theme URI: https://paranwo.com
Author: Sojan TS
Author URI: https://paranwo.com
Description: A dark, professional WordPress theme for Paranwo - Parapsychology of the New World.
Version: 3.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: theme-by-sojan-ts
*/

/* ========== LOCAL FONTS ========== */
@font-face { font-family: 'Cinzel'; font-weight: 500; font-style: normal; font-display: swap; src: url('fonts/cinzel-500.ttf') format('truetype'); }
@font-face { font-family: 'Cinzel'; font-weight: 600; font-style: normal; font-display: swap; src: url('fonts/cinzel-600.ttf') format('truetype'); }
@font-face { font-family: 'Cinzel'; font-weight: 700; font-style: normal; font-display: swap; src: url('fonts/cinzel-700.ttf') format('truetype'); }
@font-face { font-family: 'DM Sans'; font-weight: 300; font-style: normal; font-display: swap; src: url('fonts/dmsans-300.ttf') format('truetype'); }
@font-face { font-family: 'DM Sans'; font-weight: 400; font-style: normal; font-display: swap; src: url('fonts/dmsans-400.ttf') format('truetype'); }
@font-face { font-family: 'DM Sans'; font-weight: 500; font-style: normal; font-display: swap; src: url('fonts/dmsans-500.ttf') format('truetype'); }
@font-face { font-family: 'DM Sans'; font-weight: 600; font-style: normal; font-display: swap; src: url('fonts/dmsans-600.ttf') format('truetype'); }
@font-face { font-family: 'DM Sans'; font-weight: 700; font-style: normal; font-display: swap; src: url('fonts/dmsans-700.ttf') format('truetype'); }

/* ========== VARIABLES ========== */
:root {
    --bg: #050507;
    --bg-soft: #0a0a0e;
    --card: rgba(255,255,255,.03);
    --ink: #e7eefc;
    --muted: #a9b7d6;
    --dim: #5e6e8a;
    --brand: #5ec4e6;
    --brand-soft: rgba(94,196,230,.35);
    --brand-glow: rgba(94,196,230,.08);
    --ring: rgba(94,196,230,.18);
    --radius: 18px;
    --radius-sm: 12px;
    --radius-xs: 10px;
    --shadow: 0 10px 30px rgba(0,0,0,.45), 0 3px 10px rgba(0,0,0,.35);
    --font-body: 'DM Sans', system-ui, -apple-system, sans-serif;
    --font-display: 'Cinzel', Georgia, serif;
    --transition: 0.3s cubic-bezier(.25,.1,.25,1);
}

/* ========== RESET ========== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.6;
    color: var(--ink);
    background: var(--bg);
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}
a { color: inherit; text-decoration: none; transition: color var(--transition); }
img { max-width: 100%; height: auto; display: block; }

/* ========== SCROLLBAR ========== */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: #1e2a3e; border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: var(--brand); }

/* ========== STARFIELD & VIGNETTE ========== */
#starfield { position: fixed; inset: 0; z-index: -2; background: #030305; width: 100%; height: 100%; display: block; }
.bg-vignette {
    position: fixed; inset: -10%; pointer-events: none; z-index: -1;
    background:
        radial-gradient(1200px 800px at 10% -10%, rgba(91,209,255,.08), transparent 60%),
        radial-gradient(900px 700px at 110% 10%, rgba(94,196,230,.08), transparent 60%);
}

/* ========== NAVBAR ========== */
.nav {
    position: fixed; top: 0; left: 0; right: 0; z-index: 60;
    backdrop-filter: blur(12px);
    background: linear-gradient(to bottom, rgba(5,5,7,.8), rgba(5,5,7,.4));
    border-bottom: 1px solid rgba(94,196,230,.08);
}
.nav-wrap {
    max-width: 1200px; margin: 0 auto;
    display: flex; align-items: center; gap: 20px;
    padding: 14px 20px;
}
.brand { display: flex; align-items: center; gap: 12px; font-weight: 700; letter-spacing: .5px; }
.brand-logo {
    width: 44px; height: 44px; border-radius: 50%; overflow: hidden;
    display: flex; align-items: center; justify-content: center;
    background: #030305;
    box-shadow: inset 0 2px 8px rgba(255,255,255,.12), 0 6px 18px var(--brand-soft);
}
.brand-logo img { width: 100%; height: 100%; object-fit: contain; }
.brand-logo-fallback {
    font-family: var(--font-display); font-size: 1.2rem; font-weight: 700;
    color: var(--brand);
}
.brand-name { font-family: var(--font-display); font-size: 1.25rem; color: var(--ink); }

.menu {
    margin-left: auto; display: flex; gap: 8px; align-items: center;
    list-style: none;
}
.menu li { position: relative; }
.menu a { padding: 10px 12px; border-radius: var(--radius-xs); display: block; font-size: 14px; font-weight: 500; }
.menu a:hover { background: var(--brand-glow); color: var(--brand); }
.menu .cta {
    background: linear-gradient(135deg, var(--brand), #8dd8f0);
    color: #152138; font-weight: 700; padding: 10px 14px;
    border-radius: var(--radius-sm);
    box-shadow: 0 6px 16px var(--brand-soft);
}
.menu .cta:hover { opacity: 0.9; color: #152138; }

/* Hamburger */
.hamburger {
    display: none; margin-left: auto; background: none; border: 0;
    color: var(--ink); font-size: 26px; cursor: pointer;
}

/* ========== MOBILE SIDEBAR ========== */
.overlay {
    position: fixed; inset: 0;
    background: rgba(4,8,16,.55); backdrop-filter: blur(18px);
    opacity: 0; pointer-events: none;
    transition: opacity .25s ease; z-index: 70;
}
.overlay.show { opacity: 1; pointer-events: auto; }

.mobile-sidebar {
    position: fixed; top: 10px; bottom: 10px; left: 10px;
    width: min(360px, 86vw); z-index: 80;
    transform: translateX(-120%);
    transition: transform .32s cubic-bezier(.25,.1,.25,1);
    border-radius: 26px; overflow: hidden; pointer-events: none;
}
.mobile-sidebar.open { transform: translateX(0); pointer-events: auto; }

.mobile-sidebar-shell {
    height: 100%; display: flex; flex-direction: column;
    padding: 14px 16px 20px;
    background: linear-gradient(145deg, rgba(8,8,10,0.95), rgba(5,5,7,0.92));
    border-radius: 26px;
    border: 1px solid rgba(94,196,230,.32);
    box-shadow: 0 24px 70px rgba(0,0,0,.85);
    backdrop-filter: blur(26px) saturate(150%);
}
.mobile-sidebar-head {
    display: flex; align-items: center; justify-content: space-between;
    padding-bottom: 10px; border-bottom: 1px solid rgba(94,196,230,.16);
    margin-bottom: 18px;
}
.mobile-sidebar-brand { display: flex; align-items: center; gap: 10px; }
.mobile-sidebar-logo {
    width: 32px; height: 32px; border-radius: 50%; overflow: hidden;
    background: #030305; box-shadow: 0 6px 16px rgba(0,0,0,.7);
}
.mobile-sidebar-logo img { width: 100%; height: 100%; object-fit: contain; }
.mobile-sidebar-name { font-family: var(--font-display); font-size: 1.05rem; font-weight: 700; }

.mobile-sidebar-close {
    width: 36px; height: 36px; border-radius: 16px;
    border: 1px solid var(--brand-soft); background: rgba(5,5,7,.96);
    color: var(--ink); font-size: 18px;
    display: flex; align-items: center; justify-content: center;
    cursor: pointer; box-shadow: 0 10px 26px rgba(0,0,0,.7);
    transition: background .18s, transform .18s;
}
.mobile-sidebar-close:hover { background: var(--brand-glow); transform: translateY(-1px); }

.mobile-sidebar-nav ul { list-style: none; display: flex; flex-direction: column; gap: 14px; }
.mobile-sidebar-nav a {
    display: block; padding: 4px 2px; font-weight: 600;
    font-size: 0.98rem; letter-spacing: .04em;
}
.mobile-sidebar-nav a:hover { color: var(--brand); text-shadow: 0 0 18px rgba(94,196,230,.55); }

/* ========== FRONT PAGE HERO ========== */
.fp-hero {
    position: relative;
    height: 100vh;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-color: #08090d;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}
.fp-hero-overlay {
    position: absolute; inset: 0;
    background:
        linear-gradient(to bottom, rgba(5,5,7,.6) 0%, rgba(5,5,7,.3) 40%, rgba(5,5,7,.5) 70%, rgba(5,5,7,.95) 100%),
        radial-gradient(ellipse at center, transparent 30%, rgba(5,5,7,.7) 100%);
    pointer-events: none;
    z-index: 1;
}

/* Hero Content */
.fp-hero-content {
    position: relative; z-index: 2;
    text-align: center;
    max-width: 720px;
    padding: 0 24px;
    opacity: 0; transform: translateY(20px);
    animation: heroFadeIn .9s ease .3s forwards;
}
@keyframes heroFadeIn {
    to { opacity: 1; transform: none; }
}

.fp-hero-badge {
    display: inline-flex; align-items: center; gap: 10px;
    padding: 10px 22px; border-radius: 999px;
    border: 1px solid rgba(94,196,230,.25);
    background: rgba(10,14,20,.7);
    backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
    font-size: 14px; font-weight: 400; color: rgba(255,255,255,.85);
    letter-spacing: .3px;
    margin-bottom: 28px;
}
.fp-hero-badge::before {
    content: '';
    width: 8px; height: 8px;
    border-radius: 50%;
    background: var(--brand);
    flex-shrink: 0;
    box-shadow: 0 0 8px var(--brand);
}
.fp-hero-badge strong {
    font-weight: 700;
    color: #fff;
}
.fp-hero-title {
    font-family: var(--font-display);
    font-size: clamp(28px, 3.5vw, 48px);
    line-height: 1.12; color: #fff;
    margin-bottom: 20px;
    font-weight: 700;
    text-shadow: 0 2px 20px rgba(0,0,0,.5);
}
.fp-hero-glow {
    color: #fff;
}
.glow-letter {
    display: inline-block;
    color: #fff;
    text-shadow: none;
    animation: letterGlow 1.8s ease-in-out infinite;
}
@keyframes letterGlow {
    0%, 100% { color: #fff; text-shadow: none; }
    40% { color: var(--brand); text-shadow: 0 0 6px rgba(94,196,230,.4), 0 0 16px rgba(94,196,230,.2); }
    60% { color: var(--brand); text-shadow: 0 0 6px rgba(94,196,230,.4), 0 0 16px rgba(94,196,230,.2); }
}
.fp-hero-desc {
    font-size: 16px; color: rgba(255,255,255,.7);
    line-height: 1.7; max-width: 500px;
    margin: 0 auto 32px;
}

/* Hero CTA Buttons */
.fp-hero-ctas {
    display: flex; gap: 14px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 24px;
}
.fp-hero-btn {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 14px 32px; border-radius: 12px;
    font-size: 15px; font-weight: 600;
    transition: all .25s ease;
}
.fp-hero-btn-primary {
    background: var(--brand); color: #0a0a0e;
    box-shadow: 0 4px 24px rgba(94,196,230,.25);
}
.fp-hero-btn-primary:hover {
    transform: translateY(-2px); color: #0a0a0e;
    box-shadow: 0 8px 32px rgba(94,196,230,.4);
}

/* Hero Tags */
.fp-hero-tags {
    font-size: 14px; font-weight: 400;
    color: rgba(255,255,255,.45);
    letter-spacing: 1px;
    margin-bottom: 0;
}

/* Scroll indicator */
.fp-hero-scroll {
    position: absolute; bottom: 32px; left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    color: rgba(255,255,255,.35);
    animation: scrollBounce 2s ease infinite;
}
@keyframes scrollBounce {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50% { transform: translateX(-50%) translateY(6px); }
}
.fp-hero-latest svg { color: var(--brand); flex-shrink: 0; }

/* Trust line */
.fp-hero-trust {
    font-size: 11px; color: var(--dim);
    letter-spacing: .5px;
    padding-top: 20px;
    border-top: 1px solid rgba(94,196,230,.06);
}

/* Hero mobile image card — hidden on desktop */
.fp-hero-mobile-img { display: none; }

/* ========== FRONT PAGE BLOGS ========== */
.fp-blogs {
    padding: 64px 0 80px;
    position: relative;
}
.fp-blogs-header {
    display: flex; align-items: flex-end; justify-content: space-between;
    margin-bottom: 32px; gap: 20px;
}
.fp-blogs-header > div { flex: 1; }
.fp-blogs-title {
    font-family: var(--font-display);
    font-size: clamp(22px, 2.5vw, 32px);
    color: #fff; margin-bottom: 6px;
}
.fp-blogs-sub {
    font-size: 14px; color: var(--dim);
    margin-bottom: 0;
}
.fp-blogs-viewall-desktop {
    font-size: 14px; font-weight: 600;
    color: var(--brand); white-space: nowrap;
    padding: 10px 20px; border-radius: 10px;
    border: 1px solid rgba(94,196,230,.2);
    transition: all .25s ease;
    flex-shrink: 0;
}
.fp-blogs-viewall-desktop:hover {
    background: rgba(94,196,230,.08);
    border-color: var(--brand);
    color: var(--brand);
}
/* Hide bottom CTA on desktop, show on mobile */
.section-cta { text-align: center; margin-top: 40px; display: none; }
.fp-blogs-grid {
    display: grid; grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

/* ========== FOOTER (redesigned) ========== */
.site-footer {
    border-top: 1px solid var(--ring);
    padding: 0;
}
.footer-container {
    max-width: 1200px; margin: 0 auto; padding: 0 24px;
}
.footer-grid {
    display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: 40px; padding: 52px 0 36px;
}
.footer-brand {
    display: flex; align-items: center; gap: 12px; margin-bottom: 12px;
}
.footer-logo {
    width: 40px; height: 40px; border-radius: 50%; overflow: hidden;
    background: #030305; box-shadow: 0 4px 12px rgba(0,0,0,.5);
}
.footer-logo img { width: 100%; height: 100%; object-fit: contain; }
.footer-brand-name {
    font-family: var(--font-display); font-size: 1.15rem;
    font-weight: 700; color: #fff;
}
.footer-desc {
    font-size: 14px; color: var(--muted); line-height: 1.7;
}
.footer-heading {
    font-size: 13px; font-weight: 700; color: #fff;
    text-transform: uppercase; letter-spacing: 1.5px;
    margin-bottom: 16px;
}
.footer-links {
    list-style: none; display: flex; flex-direction: column; gap: 10px;
}
.footer-links a {
    color: var(--muted); font-size: 14px; transition: all var(--transition);
}
.footer-links a:hover { color: var(--brand); }

.footer-email {
    display: inline-block; color: var(--brand);
    font-size: 15px; font-weight: 600;
    margin-bottom: 18px;
    transition: text-shadow var(--transition);
}
.footer-email:hover { text-shadow: 0 0 14px var(--brand-soft); }

.footer-socials {
    display: flex; gap: 10px;
}
.footer-social-icon {
    width: 40px; height: 40px; border-radius: 10px;
    border: 1px solid var(--ring);
    display: flex; align-items: center; justify-content: center;
    color: var(--muted); transition: all var(--transition);
}
.footer-social-icon:hover {
    color: var(--brand); border-color: var(--brand);
    background: var(--brand-glow);
    transform: translateY(-2px);
}

.footer-bottom {
    border-top: 1px solid var(--ring);
    padding: 20px 0;
    display: flex; justify-content: space-between; align-items: center;
    font-size: 13px; color: var(--dim);
}
.footer-credit { letter-spacing: .5px; }

/* ========== BLOG HERO (for home.php) ========== */
.hero {
    position: relative; overflow: hidden;
    background: left center / cover no-repeat;
    background-color: var(--bg);
    min-height: 100vh;
    margin-top: 0;
}
body.home, body.page-template-front-page { padding-top: 0; }

.hero::before {
    content: ''; position: absolute; inset: 0;
    background: linear-gradient(to left,
        rgba(5,5,7,.93) 35%, rgba(5,5,7,.6) 55%,
        rgba(5,5,7,.2) 75%, transparent);
    z-index: 1;
}
.hero::after {
    content: ''; position: absolute; inset: 0;
    background: linear-gradient(to top, rgba(5,5,7,1) 0%, transparent 30%);
    z-index: 1;
}

.hero-wrap {
    position: relative; z-index: 2;
    max-width: 1400px; margin: 0 auto;
    padding: 90px 40px 70px;
    display: flex; justify-content: flex-end; align-items: center;
    min-height: 100vh;
}
.details { max-width: 520px; }
.details .badge {
    display: inline-flex; align-items: center; gap: 10px;
    border: 1px solid rgba(94,196,230,.25);
    padding: 8px 16px; border-radius: 999px;
    background: rgba(10,10,14,.65);
    font-size: 14px; font-weight: 500; color: var(--brand);
}
.details .dot {
    width: 8px; height: 8px; border-radius: 50%;
    background: var(--brand); animation: pulse-dot 2s infinite;
}
@keyframes pulse-dot {
    0%,100% { opacity: 1; box-shadow: 0 0 0 0 var(--brand-soft); }
    50% { opacity: .7; box-shadow: 0 0 0 6px transparent; }
}
.hero h1 {
    font-family: var(--font-display);
    font-size: clamp(30px, 4vw, 50px);
    line-height: 1.12; margin: 14px 0 10px;
    color: #fff;
}
.hero .lead {
    font-size: clamp(15px, 1.6vw, 18px);
    color: var(--muted); max-width: 50ch;
    line-height: 1.7;
}
.stats { display: flex; gap: 12px; margin-top: 18px; flex-wrap: wrap; }
.stat {
    padding: 10px 18px;
    border: 1px solid var(--ring);
    border-radius: var(--radius-sm);
    background: rgba(10,10,14,.6);
    font-size: 14px; font-weight: 600;
    color: var(--brand);
    letter-spacing: .3px;
}

/* Mobile hero image card (hidden on desktop) */
.hero-mobile-img { display: none; }

@keyframes rotateBorder {
    to { --border-angle: 360deg; }
}
@property --border-angle {
    syntax: '<angle>';
    initial-value: 0deg;
    inherits: false;
}

/* ========== SECTIONS ========== */
section { padding: 72px 20px; }
.container { max-width: 1200px; margin: 0 auto; }
.section-title {
    font-family: var(--font-display);
    font-size: clamp(26px, 3.5vw, 40px);
    margin: 0 0 12px; color: #fff;
}
.section-sub { color: var(--muted); margin: 0 0 32px; font-size: 16px; }
.btn-view-all {
    display: inline-block; padding: 12px 28px;
    border: 1px solid var(--ring); border-radius: var(--radius-sm);
    font-weight: 600; font-size: 14px; color: var(--brand);
    transition: all var(--transition);
}
.btn-view-all:hover {
    background: var(--brand-glow); border-color: var(--brand);
    color: var(--brand); transform: translateY(-2px);
}

/* ========== SPONSORED POSTS ========== */
.section-sponsored { padding: 40px 0 0; }
.sponsored-grid {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 20px;
}
.sponsored-card {
    position: relative;
    border-radius: var(--radius);
    border: 1px solid rgba(94,196,230,.25);
    overflow: hidden;
    background: rgba(255,255,255,.03);
    transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.sponsored-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 40px rgba(0,0,0,.5);
    border-color: rgba(94,196,230,.45);
}
.sponsored-link {
    display: block; color: inherit; text-decoration: none;
}
.sponsored-img { overflow: hidden; }
.sponsored-img img {
    width: 100%; height: auto; display: block;
    transition: transform .4s ease;
}
.sponsored-card:hover .sponsored-img img { transform: scale(1.03); }
.sponsored-label {
    padding: 12px 16px 8px;
    font-family: var(--font-display);
    font-size: 14px; font-weight: 600;
    color: var(--ink);
}
.sponsored-badge {
    position: absolute; top: 10px; right: 10px;
    padding: 3px 10px; border-radius: 6px;
    background: rgba(94,196,230,.9);
    color: #152138; font-size: 10px;
    font-weight: 700; text-transform: uppercase;
    letter-spacing: .5px;
}

/* ========== ARTICLE CARDS GRID ========== */
.article-grid {
    display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px;
}
.article-card {
    border-radius: 20px;
    border: 1px solid var(--ring);
    background: rgba(255,255,255,.03);
    box-shadow: var(--shadow);
    transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
    display: flex; flex-direction: column;
    padding: 14px; overflow: hidden;
}
.article-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 50px rgba(0,0,0,.7);
    border-color: rgba(94,196,230,.4);
}
.article-card-thumb {
    aspect-ratio: 16/9; overflow: hidden;
    background: #030305; border-radius: var(--radius-sm);
}
.article-card-thumb img {
    width: 100%; height: 100%; object-fit: cover;
    transition: transform .4s ease;
}
.article-card:hover .article-card-thumb img { transform: scale(1.05); }

.article-card-body {
    padding: 10px 4px 6px;
    display: flex; flex-direction: column; gap: 8px; flex: 1;
}
.article-tag {
    display: inline-block; padding: 3px 8px;
    border: 1px solid rgba(94,196,230,.3);
    border-radius: 999px;
    font-size: .6rem; font-weight: 600;
    letter-spacing: .05em; text-transform: uppercase;
    color: var(--brand); background: var(--brand-glow);
    width: fit-content;
}
.article-tag a { color: var(--brand); }
.article-tag a:hover { color: #8dd8f0; }

.article-card-body h3 {
    margin: 0; font-family: var(--font-display);
    font-size: 1.1rem; line-height: 1.3;
    display: -webkit-box; -webkit-line-clamp: 2;
    -webkit-box-orient: vertical; overflow: hidden;
}
.article-card-body h3 a { color: var(--ink); }
.article-card-body h3 a:hover { color: var(--brand); }

.article-card-body .excerpt {
    margin: 0; font-size: .88rem; color: var(--muted);
    line-height: 1.5; display: -webkit-box;
    -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.article-meta {
    margin-top: auto; padding-top: 12px;
    border-top: 1px solid rgba(94,196,230,.1);
    display: flex; flex-direction: column; gap: 2px;
    font-size: .75rem; color: var(--dim);
}
.article-meta strong { color: var(--muted); font-weight: 600; }

.no-thumb {
    width: 100%; height: 100%; background: var(--bg-soft);
    display: flex; align-items: center; justify-content: center;
    color: var(--dim); font-size: 13px;
}

.no-posts-msg {
    text-align: center; padding: 60px 20px; color: var(--dim);
}
.no-posts-msg h3 { font-size: 22px; color: var(--muted); margin-bottom: 8px; }

/* ========== ABOUT ========== */
.about-grid {
    display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px;
}
.card {
    background: linear-gradient(180deg, rgba(255,255,255,.04), rgba(255,255,255,.02));
    border: 1px solid var(--ring);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 28px;
}
.card h3 {
    font-family: var(--font-display);
    font-size: 1.2rem; margin-bottom: 12px; color: #fff;
}
.card p { color: var(--muted); line-height: 1.7; margin-bottom: 10px; font-size: 15px; }

.about-features { display: flex; flex-direction: column; gap: 18px; margin-top: 8px; }
.about-feat { display: flex; gap: 14px; align-items: flex-start; }
.about-feat-icon { font-size: 24px; flex-shrink: 0; margin-top: 2px; }
.about-feat strong { display: block; color: #fff; font-size: 15px; margin-bottom: 2px; }
.about-feat p { margin: 0; font-size: 13px; color: var(--muted); }

/* ========== CONTACT ========== */
.contact-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }
.contact-email {
    color: var(--brand); font-weight: 600; font-size: 17px;
    transition: text-shadow var(--transition);
}
.contact-email:hover { text-shadow: 0 0 16px var(--brand-soft); }

.contact-socials { display: flex; gap: 10px; margin-top: 16px; }
.contact-social-link {
    padding: 8px 16px; border: 1px solid var(--ring);
    border-radius: var(--radius-xs); font-size: 13px; font-weight: 600;
    transition: all var(--transition);
}
.contact-social-link:hover {
    border-color: var(--brand); background: var(--brand-glow); color: var(--brand);
}

.contact-form { display: flex; flex-direction: column; gap: 12px; margin-top: 16px; }
.contact-form input,
.contact-form textarea {
    width: 100%; background: rgba(5,5,7,.8);
    border: 1px solid var(--ring); border-radius: var(--radius-xs);
    padding: 12px 16px; font-size: 14px; font-family: var(--font-body);
    color: var(--ink); transition: border-color var(--transition);
}
.contact-form input:focus,
.contact-form textarea:focus {
    outline: none; border-color: var(--brand);
    box-shadow: 0 0 0 3px var(--brand-glow);
}
.contact-form input::placeholder,
.contact-form textarea::placeholder { color: var(--dim); }
.contact-form textarea { resize: vertical; min-height: 100px; }
.contact-form button {
    padding: 12px 28px; border: none; border-radius: var(--radius-xs);
    background: linear-gradient(135deg, var(--brand), #8dd8f0);
    color: #152138; font-size: 15px; font-weight: 700;
    cursor: pointer; transition: all var(--transition);
    box-shadow: 0 6px 16px var(--brand-soft);
}
.contact-form button:hover { transform: translateY(-2px); box-shadow: 0 10px 24px var(--brand-soft); }

/* ========== FOOTER ========== */
.site-footer { border-top: 1px solid var(--ring); }
.footer-top { padding: 60px 0 40px; background: linear-gradient(to top, rgba(255,255,255,.02), transparent); }
.footer-container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.3fr; gap: 36px; }

.footer-brand { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.footer-logo {
    width: 40px; height: 40px; border-radius: 50%; overflow: hidden;
    background: #030305; box-shadow: 0 4px 12px rgba(0,0,0,.5);
}
.footer-logo img { width: 100%; height: 100%; object-fit: contain; }
.footer-brand-name {
    font-family: var(--font-display); font-size: 1.15rem; font-weight: 700; color: #fff;
}
.footer-desc { font-size: 14px; color: var(--muted); line-height: 1.7; margin-bottom: 16px; }

.footer-socials { display: flex; gap: 8px; }
.footer-social {
    padding: 6px 12px; border: 1px solid var(--ring);
    border-radius: var(--radius-xs); font-size: 13px; font-weight: 600;
    transition: all var(--transition); color: var(--muted);
}
.footer-social:hover {
    border-color: var(--brand); color: var(--brand); background: var(--brand-glow);
}

.footer-heading {
    font-size: 13px; font-weight: 700; color: #fff;
    text-transform: uppercase; letter-spacing: 1.5px;
    margin-bottom: 16px;
}
.footer-links { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.footer-links a { color: var(--muted); font-size: 14px; transition: all var(--transition); }
.footer-links a:hover { color: var(--brand); transform: translateX(3px); display: inline-block; }

.footer-bottom {
    border-top: 1px solid var(--ring);
    padding: 20px 0;
}
.footer-bottom-inner {
    display: flex; justify-content: space-between; align-items: center;
    font-size: 13px; color: var(--dim);
}
.footer-credit { letter-spacing: .5px; }

/* ========== SCROLL REVEAL ========== */
.reveal { opacity: 0; transform: translateY(16px); transition: .6s ease; }
.reveal.in { opacity: 1; transform: none; }

/* ========== BACK TO TOP ========== */
.to-top {
    position: fixed; right: 18px; bottom: 18px;
    background: rgba(10,10,14,.9);
    border: 1px solid var(--ring);
    border-radius: 14px; padding: 10px 14px;
    display: none; z-index: 60;
    color: var(--brand); font-size: 18px; font-weight: 700;
    transition: all var(--transition);
}
.to-top.show { display: block; }
.to-top:hover { background: var(--brand-glow); border-color: var(--brand); transform: translateY(-3px); }

/* ========== WP ADMIN BAR FIX ========== */
.admin-bar .nav { top: 32px; }
@media (max-width: 782px) { .admin-bar .nav { top: 46px; } }

/* ========== BLOG LIST PAGE (home.php / index.php / archive.php) ========== */
.page-wrapper {
    max-width: 1200px; margin: 0 auto; padding: 90px 20px 40px;
}
.page-heading {
    font-family: var(--font-display);
    font-size: clamp(26px, 3.5vw, 40px);
    color: #fff; margin: 0 0 8px;
}
.blog-layout {
    display: grid; grid-template-columns: 1fr 320px; gap: 30px; align-items: start;
}
.blog-list { display: flex; flex-direction: column; gap: 0; }
.blog-grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.posts-count { font-size: 14px; color: var(--dim); margin-bottom: 15px; }
.posts-count strong { color: var(--brand); }

.blog-card {
    background: var(--card); border-radius: var(--radius); padding: 24px;
    margin-bottom: 16px; border: 1px solid var(--ring);
    transition: all var(--transition);
}
.blog-card:hover { border-color: rgba(94,196,230,.35); box-shadow: 0 0 30px var(--brand-glow); }

.blog-card-title { font-size: 19px; font-weight: 700; line-height: 1.4; margin-bottom: 6px; font-family: var(--font-display); }
.blog-card-title a { color: var(--ink); }
.blog-card-title a:hover { color: var(--brand); }
.blog-card-meta { display: flex; align-items: center; gap: 6px; font-size: 13px; color: var(--dim); margin-bottom: 15px; flex-wrap: wrap; }
.blog-card-meta .meta-author { color: var(--brand); }
.blog-card-body { display: flex; gap: 20px; align-items: flex-start; }
.blog-card-thumb { width: 200px; height: 130px; flex-shrink: 0; border-radius: var(--radius-sm); overflow: hidden; }
.blog-card-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.blog-card:hover .blog-card-thumb img { transform: scale(1.05); }
.blog-card-thumb .no-thumb { width: 100%; height: 100%; background: var(--bg-soft); display: flex; align-items: center; justify-content: center; color: var(--dim); font-size: 12px; }
.blog-card-desc { flex: 1; font-size: 14px; color: var(--muted); line-height: 1.7; }
.blog-card-footer { margin-top: 12px; }
.blog-card-category {
    display: inline-block; font-size: 11px; font-weight: 700;
    padding: 4px 12px; border-radius: 999px; text-transform: uppercase; letter-spacing: .5px;
    background: var(--brand-glow); color: var(--brand); border: 1px solid rgba(94,196,230,.2);
}
.blog-card-category:hover { background: var(--brand); color: #152138; }

.load-more-wrapper { text-align: center; margin-top: 25px; }
.load-more-btn {
    display: inline-block; background: var(--bg-soft); color: var(--ink);
    padding: 12px 35px; border-radius: var(--radius-sm); font-size: 14px; font-weight: 600;
    border: 1px solid var(--ring); cursor: pointer; transition: all var(--transition);
}
.load-more-btn:hover { border-color: var(--brand); background: var(--brand-glow); color: var(--brand); }
.load-more-btn:disabled { opacity: .4; cursor: not-allowed; }

/* ========== BLOG SIDEBAR ========== */
.blog-sidebar {
    display: flex; flex-direction: column; gap: 20px;
    position: sticky; top: 90px;
}

.sw-widget {
    background: var(--card); border-radius: var(--radius); padding: 20px;
    border: 1px solid var(--ring);
}
.sw-search-form {
    display: flex; gap: 0;
    border-radius: 12px; overflow: hidden;
    border: 1px solid var(--ring);
    background: rgba(255,255,255,.03);
    transition: border-color .25s ease;
}
.sw-search-form:focus-within {
    border-color: var(--brand);
}
.sw-search-input {
    flex: 1; padding: 12px 16px;
    background: transparent; border: none; outline: none;
    color: var(--ink); font-size: 14px;
    font-family: var(--font-body);
}
.sw-search-input::placeholder { color: var(--dim); }
.sw-search-btn {
    padding: 12px 14px;
    background: transparent; border: none;
    color: var(--muted); cursor: pointer;
    transition: color .25s ease;
    display: flex; align-items: center;
}
.sw-search-btn:hover { color: var(--brand); }
.sw-search-mobile { display: none; margin-bottom: 16px; }
.search-results .sw-search-mobile { display: block; }

.sw-title {
    font-family: var(--font-display); font-size: 15px; font-weight: 700;
    color: #fff; margin: 0 0 15px; padding-bottom: 10px;
    border-bottom: 1px solid var(--ring);
}

/* Sidebar: Post Items */
.sw-post-item {
    display: flex; gap: 12px; align-items: center;
    padding: 10px 0; border-bottom: 1px solid rgba(94,196,230,.08);
}
.sw-post-item:last-child { border-bottom: none; }
.sw-post-thumb {
    width: 70px; height: 55px; border-radius: 6px;
    overflow: hidden; flex-shrink: 0;
}
.sw-post-thumb img { width: 100%; height: 100%; object-fit: cover; }
.sw-post-no-thumb {
    width: 100%; height: 100%; background: var(--bg-soft);
    display: flex; align-items: center; justify-content: center;
    font-size: 10px; color: var(--dim);
}
.sw-post-info h4 { font-size: 13px; font-weight: 600; line-height: 1.4; margin: 0; }
.sw-post-info h4 a { color: var(--muted); }
.sw-post-info h4 a:hover { color: var(--brand); }

/* Sidebar: Comments */
.sw-comment {
    display: flex; gap: 12px; align-items: flex-start;
    padding: 12px 0; border-bottom: 1px solid rgba(94,196,230,.08);
}
.sw-comment:last-child { border-bottom: none; }
.sw-comment-avatar {
    width: 40px; height: 40px; border-radius: 50%;
    background: var(--bg-soft); flex-shrink: 0; overflow: hidden;
}
.sw-comment-avatar img,
.sw-comment-avatar .avatar {
    width: 40px; height: 40px; border-radius: 50%; object-fit: cover;
}
.sw-comment-info strong {
    font-size: 13px; font-weight: 700; color: #fff;
    display: block; margin-bottom: 2px;
}
.sw-comment-info p {
    font-size: 12px; color: var(--muted); margin: 0; line-height: 1.5;
}

/* Sidebar: Tags */
.sw-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.sw-tags a {
    display: inline-block; border: 1px solid var(--ring); color: var(--muted);
    padding: 5px 14px; border-radius: 6px; font-size: 12px;
    transition: all var(--transition);
}
.sw-tags a:hover {
    background: var(--brand-glow); color: var(--brand); border-color: var(--brand);
}

/* Sidebar: Lists (Categories etc.) */
.sw-list { list-style: none; }
.sw-list li {
    padding: 8px 0; border-bottom: 1px solid rgba(94,196,230,.08);
}
.sw-list li:last-child { border-bottom: none; }
.sw-list li a { color: var(--muted); font-size: 14px; }
.sw-list li a:hover { color: var(--brand); }

/* Sidebar: Sponsored */
.sw-sponsored-widget {
    position: relative; overflow: hidden; padding: 0;
}
.sw-sponsored-widget a { display: block; color: inherit; text-decoration: none; }
.sw-sponsored-img { overflow: hidden; }
.sw-sponsored-img img { width: 100%; height: auto; display: block; transition: transform .4s ease; }
.sw-sponsored-widget:hover .sw-sponsored-img img { transform: scale(1.03); }
.sw-sponsored-label {
    padding: 10px 14px; font-size: 13px; font-weight: 600; color: var(--ink);
}
.sw-sponsored-badge {
    position: absolute; top: 8px; right: 8px;
    padding: 2px 8px; border-radius: 5px;
    background: rgba(94,196,230,.9); color: #152138;
    font-size: 9px; font-weight: 700; text-transform: uppercase; letter-spacing: .5px;
}

/* Sidebar: Ad Space */
.sw-ad-space {
    background: var(--bg-soft); border: 1px dashed var(--ring);
    border-radius: var(--radius-sm); min-height: 250px;
    display: flex; align-items: center; justify-content: center;
    color: var(--dim); font-size: 13px; text-align: center; padding: 20px;
}

/* ========== SINGLE POST ========== */
.single-post-main { min-width: 0; }

.single-breadcrumb { font-size: 13px; color: var(--dim); margin-bottom: 12px; }
.single-breadcrumb a { color: var(--brand); }

.single-post-content {
    background: #0a0a0e; border-radius: var(--radius); padding: 32px;
    border: 1px solid var(--ring);
}
.single-post-title { font-size: 28px; font-weight: 800; line-height: 1.3; color: #fff; margin-bottom: 12px; font-family: var(--font-display); }
.single-post-meta { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--dim); margin-bottom: 25px; flex-wrap: wrap; }
.meta-author-avatar img, .meta-author-avatar .avatar { width: 30px; height: 30px; border-radius: 50%; object-fit: cover; vertical-align: middle; }
.meta-author-link { color: var(--brand); font-weight: 600; }
.meta-dot { color: var(--dim); }

.single-post-thumb { width: 100%; border-radius: var(--radius-sm); overflow: hidden; margin-bottom: 25px; }
.single-post-thumb img { width: 100%; height: auto; border-radius: var(--radius-sm); }

.single-post-body { font-size: 16px; line-height: 1.8; color: var(--muted); }
.single-post-body h2 { font-size: 24px; margin: 30px 0 15px; color: #fff; font-family: var(--font-display); }
.single-post-body h3 { font-size: 20px; margin: 25px 0 12px; color: #fff; font-family: var(--font-display); }
.single-post-body p { margin-bottom: 18px; }
.single-post-body img { border-radius: var(--radius-sm); margin: 15px 0; }
.single-post-body a { color: var(--brand); text-decoration: underline; text-underline-offset: 3px; }
.single-post-body blockquote {
    border-left: 3px solid var(--brand); padding: 20px 25px; margin: 25px 0;
    background: rgba(94,196,230,.04); border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
    font-style: italic; color: var(--muted);
}
.single-post-body ul, .single-post-body ol { margin: 15px 0; padding-left: 30px; }
.single-post-body li { margin-bottom: 8px; }

.single-post-tags { margin-top: 25px; padding-top: 20px; border-top: 1px solid var(--ring); font-size: 14px; color: var(--muted); }
.single-post-tags strong { margin-right: 5px; color: var(--ink); }
.single-post-tags a { color: var(--brand); margin: 0 2px; }

.single-share { display: flex; gap: 8px; margin-top: 20px; padding-top: 20px; border-top: 1px solid var(--ring); flex-wrap: wrap; }
.share-btn { display: inline-flex; align-items: center; padding: 8px 18px; border-radius: var(--radius-xs); color: #fff; font-size: 13px; font-weight: 600; transition: opacity var(--transition); }
.share-btn:hover { opacity: .85; color: #fff; }
.share-facebook { background: #1877f2; }
.share-x { background: #14171a; }
.share-whatsapp { background: #25d366; }
.share-email { background: #555; }

.author-box {
    display: flex; gap: 20px; align-items: center;
    background: var(--card); border-radius: var(--radius); padding: 25px; margin-top: 20px;
    border: 1px solid var(--ring);
}
.author-avatar img, .author-avatar .avatar { width: 70px; height: 70px; border-radius: 50%; object-fit: cover; }
.author-info h4 { font-size: 17px; font-weight: 700; color: #fff; margin-bottom: 5px; font-family: var(--font-display); }
.author-info p { font-size: 13px; color: var(--muted); line-height: 1.5; margin: 0; }

.related-posts { background: var(--card); border-radius: var(--radius); padding: 25px; margin-top: 20px; border: 1px solid var(--ring); }
.related-posts h3 { font-size: 18px; font-weight: 700; color: #fff; margin-bottom: 20px; font-family: var(--font-display); }
.related-posts-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 15px; }
.related-post-card a { color: var(--muted); }
.related-post-card a:hover { color: var(--brand); }
.related-post-thumb { border-radius: var(--radius-sm); overflow: hidden; margin-bottom: 10px; height: 120px; }
.related-post-thumb img { width: 100%; height: 100%; object-fit: cover; }
.related-post-card h4 { font-size: 13px; font-weight: 600; line-height: 1.4; }

/* Comments Section */
.comments-section {
    background: #0a0a0e; border-radius: var(--radius); padding: 28px;
    margin-top: 20px; border: 1px solid var(--ring);
}
.comments-section h3 {
    font-size: 18px; font-weight: 700; color: #fff;
    margin-bottom: 6px; font-family: var(--font-display);
}
.comment-note { font-size: 13px; color: var(--dim); font-style: italic; margin-bottom: 20px; }

/* Comments List */
.comments-list { list-style: none; padding: 0; margin: 0; }
.comments-list .comment-list { list-style: none; padding: 0; margin: 0; }
.single-comment, .comments-list > .comment,
.comments-list > li { list-style: none; }

/* Individual Comment Card */
.comment-card {
    background: rgba(255,255,255,.03);
    border: 1px solid var(--ring);
    border-radius: var(--radius-sm);
    padding: 20px;
    margin-bottom: 14px;
    transition: border-color var(--transition);
}
.comment-card:hover { border-color: rgba(94,196,230,.3); }

.comment-header {
    display: flex; align-items: center; gap: 12px; margin-bottom: 12px;
}
.comment-user-avatar { flex-shrink: 0; }
.comment-user-avatar img,
.comment-user-avatar .avatar {
    width: 44px; height: 44px; border-radius: 50%; object-fit: cover;
    border: 2px solid var(--ring);
}
.comment-user-info { flex: 1; }
.comment-author-name {
    font-size: 14px; font-weight: 700; color: #fff; display: block;
}
.comment-date {
    font-size: 11px; color: var(--dim); display: block; margin-top: 2px;
}

.comment-body-text {
    font-size: 14px; color: var(--muted); line-height: 1.7;
    padding: 0; margin-bottom: 10px;
}
.comment-body-text p { margin: 0 0 8px; }
.comment-body-text p:last-child { margin-bottom: 0; }

.comment-reply-link { margin-top: 8px; }
.comment-reply-link a,
.comment-reply-link .comment-reply-link a {
    color: var(--brand); font-size: 12px; font-weight: 600;
    padding: 4px 14px; border: 1px solid var(--ring);
    border-radius: 6px; transition: all var(--transition);
    display: inline-block;
}
.comment-reply-link a:hover {
    background: var(--brand-glow); border-color: var(--brand);
}

/* Nested/Threaded Replies */
.comments-list .children {
    list-style: none; padding-left: 28px; margin: 0;
    border-left: 2px solid rgba(94,196,230,.12);
}

/* Cancel Reply */
#cancel-comment-reply-link {
    color: #ff6b6b; font-size: 12px; font-weight: 600;
    padding: 3px 10px; border: 1px solid rgba(255,107,107,.3);
    border-radius: 6px; margin-left: 8px;
    transition: all var(--transition); text-decoration: none;
}
#cancel-comment-reply-link:hover {
    background: rgba(255,107,107,.1); border-color: #ff6b6b;
}

/* Reply title with cancel */
.comment-respond .comment-reply-title {
    font-family: var(--font-display); font-size: 16px; font-weight: 700;
    color: #fff; margin-bottom: 12px;
    display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
}
.comment-respond .comment-reply-title small {
    font-size: 12px; font-weight: 400;
}

/* Comment Form */
.comment-form-wrapper {
    margin-top: 24px; padding-top: 24px;
    border-top: 1px solid var(--ring);
}

.comment-form .logged-in-as {
    font-size: 13px; color: var(--dim); margin-bottom: 14px;
}
.comment-form .logged-in-as a { color: var(--brand); }

.comment-form-field textarea {
    width: 100%; background: rgba(255,255,255,.04); border: 1px solid var(--ring);
    border-radius: var(--radius-xs); padding: 15px; font-size: 14px;
    font-family: var(--font-body); color: var(--ink); resize: vertical;
    transition: border-color var(--transition);
    min-height: 120px;
}
.comment-form-field textarea:focus {
    outline: none; border-color: var(--brand);
    box-shadow: 0 0 0 3px var(--brand-glow);
}

.comment-form label {
    display: block; font-size: 13px; font-weight: 600;
    color: var(--muted); margin-bottom: 5px;
}
.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"] {
    width: 100%; background: rgba(255,255,255,.04); border: 1px solid var(--ring);
    border-radius: var(--radius-xs); padding: 10px 15px; font-size: 14px;
    font-family: var(--font-body); color: var(--ink); margin-bottom: 12px;
    transition: border-color var(--transition);
}
.comment-form input:focus {
    outline: none; border-color: var(--brand);
    box-shadow: 0 0 0 3px var(--brand-glow);
}

.comment-submit-btn {
    display: inline-block; background: linear-gradient(135deg, var(--brand), #8dd8f0);
    color: #152138; border: none; padding: 12px 30px;
    border-radius: var(--radius-xs); font-size: 15px; font-weight: 700;
    cursor: pointer; transition: all var(--transition); margin-top: 10px; width: 100%;
}
.comment-submit-btn:hover { transform: translateY(-2px); box-shadow: 0 8px 25px var(--brand-soft); }

.post-nav-bottom {
    display: flex; justify-content: space-between; margin-top: 20px;
    padding: 20px 25px; background: var(--card);
    border-radius: var(--radius); border: 1px solid var(--ring);
}
.post-nav-bottom a { font-size: 14px; color: var(--brand); font-weight: 600; }
.post-nav-bottom a:hover { color: #8dd8f0; }

.pagination { margin-top: 24px; text-align: center; }
.pagination .nav-links { display: flex; justify-content: center; gap: 6px; }
.pagination .page-numbers {
    display: inline-flex; align-items: center; justify-content: center;
    width: 40px; height: 40px; border-radius: var(--radius-xs);
    background: var(--card); border: 1px solid var(--ring);
    color: var(--muted); font-size: 14px; font-weight: 600;
}
.pagination .page-numbers:hover,
.pagination .page-numbers.current {
    background: var(--brand-glow); border-color: var(--brand); color: var(--brand);
}

/* ========== RESPONSIVE ========== */
@media (max-width: 1100px) {
    .article-grid { grid-template-columns: repeat(2, 1fr); }
    .footer-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ========== TABLET ========== */
@media (max-width: 980px) {
    .menu { display: none; }
    .hamburger { display: block; }

    /* Front page hero */
    .fp-hero-title { font-size: clamp(26px, 5vw, 40px); }
    .fp-hero-desc { font-size: 15px; }
    .fp-blogs-grid { grid-template-columns: repeat(2, 1fr); }

    .hero-wrap { padding: 50px 20px 40px; justify-content: center; }
    .details { max-width: 100%; }
    .hero::before {
        background: linear-gradient(to top,
            rgba(5,5,7,.95) 30%, rgba(5,5,7,.7) 60%, rgba(5,5,7,.4));
    }

    .about-grid, .contact-grid { grid-template-columns: 1fr; }
    .blog-layout { grid-template-columns: 1fr; }
    .blog-sidebar { position: static; }
    .sw-search-mobile { display: block; }
    .blog-sidebar .sw-widget:first-child { display: none; }
    .blog-grid-3 { grid-template-columns: repeat(2, 1fr); }
    .article-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ========== MOBILE ========== */
@media (max-width: 768px) {
    /* Nav */
    .nav-wrap { padding: 10px 16px; }
    .brand-logo { width: 36px; height: 36px; }
    .brand-name { font-size: 1.1rem; }

    /* Front page hero — mobile */
    .fp-hero::after {
        content: '';
        position: absolute; inset: 0;
        backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px);
        z-index: 0;
        pointer-events: none;
    }
    .fp-hero-overlay { z-index: 1; }
    .fp-hero-title { font-size: clamp(24px, 6vw, 34px); }
    .fp-hero-desc { font-size: 14px; }
    .fp-hero-badge { font-size: 12px; padding: 8px 16px; }
    .fp-hero-btn { font-size: 13px; padding: 12px 24px; }
    .fp-hero-tags { font-size: 12px; }

    /* Mobile image card with animated border */
    .fp-hero-mobile-img {
        display: flex;
        justify-content: center;
        margin-bottom: 20px;
    }
    .fp-hero-mobile-img-border {
        position: relative;
        width: 85%; aspect-ratio: 16/9;
        border-radius: 16px;
        padding: 3px;
        background: conic-gradient(
            from var(--border-angle, 0deg),
            var(--brand), rgba(94,196,230,.15), var(--brand), rgba(94,196,230,.15), var(--brand)
        );
        animation: rotateBorder 4s linear infinite;
    }
    @property --border-angle {
        syntax: '<angle>';
        initial-value: 0deg;
        inherits: false;
    }
    @keyframes rotateBorder {
        to { --border-angle: 360deg; }
    }
    .fp-hero-mobile-img-border img {
        width: 100%; height: 100%;
        object-fit: cover;
        border-radius: 13px;
        display: block;
    }
    .fp-blogs { padding: 40px 16px 50px; }
    .fp-blogs-header { flex-direction: column; align-items: flex-start; margin-bottom: 24px; }
    .fp-blogs-viewall-desktop { display: none; }
    .section-cta { display: block; margin-top: 24px; }
    .fp-blogs-grid { grid-template-columns: 1fr; gap: 14px; }
    .fp-blogs-title { font-size: clamp(20px, 5vw, 28px); }
    .fp-blogs-sub { font-size: 13px; }

    /* Footer */
    .footer-grid { grid-template-columns: 1fr; gap: 28px; padding: 36px 0 24px; }
    .footer-bottom { flex-direction: column; gap: 6px; text-align: center; }

    /* Hero: fullscreen, hide bg image, show card */
    .hero {
        background-image: none !important;
        min-height: calc(100vh - 56px);
        min-height: calc(100dvh - 56px);
        margin-top: 56px;
        display: flex; align-items: center;
    }
    .hero::before, .hero::after { display: none; }
    .hero-wrap {
        min-height: auto;
        padding: 24px 20px;
        justify-content: center;
        align-items: center;
        width: 100%;
    }
    .details {
        text-align: center; max-width: 100%;
        display: flex; flex-direction: column;
        align-items: center; justify-content: center;
    }

    .hero-mobile-img {
        display: block;
        width: 100%; margin: 18px 0;
        padding: 3px; border-radius: 18px;
        background: conic-gradient(
            from var(--border-angle, 0deg),
            rgba(94,196,230,.04) 0%, var(--brand) 8%, rgba(94,196,230,.15) 16%,
            transparent 28%, transparent 50%,
            rgba(94,196,230,.04) 55%, var(--brand) 63%, rgba(94,196,230,.15) 71%,
            transparent 83%
        );
        animation: rotateBorder 4s linear infinite;
        box-shadow: 0 0 40px rgba(94,196,230,.08), 0 12px 40px rgba(0,0,0,.4);
    }
    .hero-mobile-img img {
        width: 100%; height: auto; display: block;
        border-radius: 15px;
    }

    .hero h1 { font-size: clamp(22px, 7vw, 30px); margin: 10px 0 0; line-height: 1.2; }
    .hero .lead { font-size: 14px; line-height: 1.7; }
    .stats { justify-content: center; gap: 8px; flex-wrap: wrap; }
    .stat { padding: 7px 14px; font-size: 12px; border-radius: 10px; }

    /* Page & sections */
    .page-wrapper { padding: 70px 16px 30px; }
    section { padding: 40px 16px; }
    .section-title { font-size: clamp(20px, 5vw, 28px); margin-bottom: 8px; }
    .section-sub { font-size: 14px; margin-bottom: 24px; }

    /* Article cards — 2 column */
    .blog-grid-3,
    .article-grid { grid-template-columns: 1fr 1fr; gap: 12px; }
    .article-card {
        padding: 8px; border-radius: 14px;
    }
    .article-card-thumb { border-radius: 10px; }
    .article-card-body { padding: 8px 4px 4px; gap: 6px; }
    .article-card-body h3 { font-size: 0.88rem; -webkit-line-clamp: 2; }
    .article-card-body .excerpt { display: none; }
    .article-tag { font-size: .65rem; padding: 3px 8px; }
    .article-meta { font-size: .68rem; padding-top: 8px; gap: 1px; }

    /* Footer */
    .footer-grid { grid-template-columns: 1fr; gap: 24px; }
    .footer-bottom-inner { flex-direction: column; gap: 6px; text-align: center; }
    .footer-top { padding: 36px 0 20px; }
    .footer-heading { font-size: 12px; margin-bottom: 12px; }
    .footer-desc { font-size: 13px; }

    /* Single post */
    .single-post-title { font-size: 22px; }
    .single-post-content { padding: 18px; border-radius: 14px; }
    .single-post-meta { font-size: 12px; }
    .related-posts-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
    .author-box { flex-direction: column; text-align: center; padding: 18px; }
    .comment-body-text, .comment-reply-link { padding-left: 0; }
    .comment-card { padding: 14px; margin-bottom: 10px; }
    .post-nav-bottom { flex-direction: column; gap: 10px; text-align: center; }

    /* Cards */
    .card { padding: 20px; border-radius: 14px; }
    .contact-grid { gap: 14px; }
    .sponsored-grid { gap: 12px; }
    .sw-widget { padding: 16px; border-radius: 14px; }

    /* Load more */
    .load-more-btn { padding: 10px 28px; font-size: 13px; }

    /* Back to top */
    .to-top { right: 12px; bottom: 12px; padding: 8px 10px; border-radius: 10px; font-size: 16px; }
}

/* ========== SMALL MOBILE ========== */
@media (max-width: 420px) {
    .nav-wrap { padding: 8px 12px; }
    .brand-logo { width: 30px; height: 30px; }
    .brand-name { font-size: .95rem; }
    .hamburger { font-size: 22px; }

    .fp-hero-title { font-size: 22px; }
    .fp-hero-desc { font-size: 13px; }
    .fp-hero-btn { font-size: 12px; padding: 10px 20px; }
    .fp-blogs { padding: 24px 12px 36px; }
    .fp-blogs-grid { grid-template-columns: 1fr; gap: 10px; }
    .footer-grid { gap: 20px; }

    .hero { margin-top: 48px; min-height: calc(100vh - 48px); min-height: calc(100dvh - 48px); }
    .hero-wrap { padding: 16px 14px; }
    .hero h1 { font-size: 20px; }
    .hero .lead { font-size: 13px; }
    .details .badge { font-size: 10px; padding: 5px 10px; }
    .stat { padding: 6px 10px; font-size: 11px; }
    .hero-mobile-img { border-radius: 14px; margin: 14px 0; }
    .hero-mobile-img img { border-radius: 11px; }

    .page-wrapper { padding: 60px 12px 20px; }
    section { padding: 32px 12px; }

    /* Single column */
    .blog-grid-3,
    .article-grid { grid-template-columns: 1fr; gap: 14px; }
    .article-card { padding: 10px; }
    .article-card-body .excerpt { display: block; font-size: .82rem; -webkit-line-clamp: 2; }
    .article-card-body h3 { font-size: .95rem; }
    .article-meta { font-size: .7rem; }

    .single-post-title { font-size: 19px; }
    .single-post-content { padding: 14px; }
    .related-posts-grid { grid-template-columns: 1fr; }

    .footer-grid { gap: 18px; }
    .footer-container { padding: 0 12px; }
    .footer-brand-name { font-size: 1rem; }
}
