/* ==========================================================================
   Pro Writer Tool - main.css
   ========================================================================== */

:root {
    --pw-primary: #e8242c;
    --pw-primary-dark: #c91c23;
    --pw-dark: #15171c;
    --pw-text: #2b2e33;
    --pw-muted: #767c87;
    --pw-bg: #f4f5f7;
    --pw-border: #e7e9ec;
    --pw-white: #ffffff;
    --pw-radius: 10px;
    --pw-shadow: 0 2px 14px rgba(20, 22, 30, 0.06);
    --container: 1200px;
}

/* ----- Reset & base ----- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    font-family: 'Noto Sans Devanagari', 'Poppins', sans-serif;
    color: var(--pw-text);
    background: var(--pw-bg);
    font-size: 16px;
    line-height: 1.7;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--pw-primary); text-decoration: none; transition: color .2s ease; }
a:hover { color: var(--pw-primary-dark); }
ul { padding-left: 0; list-style: none; margin: 0; }
h1, h2, h3, h4, h5, h6 { font-family: 'Poppins', 'Noto Sans Devanagari', sans-serif; line-height: 1.3; color: var(--pw-text); }
button { font-family: inherit; cursor: pointer; }

.container {
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 20px;
}

/* ----- Top trending bar ----- */
.top-bar {
    background: var(--pw-primary);
    color: #fff;
    font-size: 13px;
}
.top-bar-inner {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 8px 20px;
}
.trending-label {
    background: rgba(0,0,0,.2);
    padding: 4px 10px;
    border-radius: 4px;
    font-weight: 700;
    white-space: nowrap;
    flex-shrink: 0;
}
.ticker-wrap {
    flex: 1;
    overflow: hidden;
    white-space: nowrap;
}
.ticker-content {
    display: inline-block;
    animation: ticker-scroll 22s linear infinite;
    padding-left: 100%;
}
@keyframes ticker-scroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-100%); }
}
.top-bar-social { display: flex; gap: 10px; flex-shrink: 0; }
.top-bar-social a { color: #fff; opacity: .9; }
.top-bar-social a:hover { opacity: 1; }

/* ----- Header ----- */
.site-header {
    background: #fff;
    box-shadow: var(--pw-shadow);
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 3px solid var(--pw-primary);
}
body.admin-bar .site-header { top: 32px; }
@media (max-width: 782px) {
    body.admin-bar .site-header { top: 46px; }
}
.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 16px 20px;
}
.site-branding img { max-height: 48px; width: auto; }
.site-title-link { display: flex; flex-direction: column; }
.site-title {
    font-size: 24px;
    font-weight: 800;
    color: var(--pw-text);
    letter-spacing: -.5px;
}
.site-title::first-letter { color: var(--pw-primary); }
.site-tagline { font-size: 12px; color: var(--pw-muted); margin-top: 2px; }

.main-navigation { flex: 1; display: flex; justify-content: center; }
#primary-menu {
    display: flex;
    gap: 4px;
    flex-wrap: wrap;
    align-items: center;
}
#primary-menu li { position: relative; }
#primary-menu li a {
    display: flex;
    align-items: center;
    height: 64px;
    padding: 0 18px;
    color: var(--pw-text);
    font-weight: 700;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: .6px;
    position: relative;
}
#primary-menu li a::after {
    content: "";
    position: absolute;
    left: 18px; right: 18px; bottom: 0;
    height: 3px;
    background: var(--pw-primary);
    border-radius: 3px 3px 0 0;
    transform: scaleX(0);
    transform-origin: center;
    transition: transform .2s ease;
}
#primary-menu li a:hover,
#primary-menu li.current-menu-item > a {
    color: var(--pw-primary);
}
#primary-menu li a:hover::after,
#primary-menu li.current-menu-item > a::after {
    transform: scaleX(1);
}
#primary-menu ul {
    position: absolute;
    top: 100%;
    left: 0;
    background: #fff;
    box-shadow: var(--pw-shadow);
    border-radius: 0 0 8px 8px;
    border-top: 3px solid var(--pw-primary);
    min-width: 220px;
    padding: 6px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);
    transition: all .2s ease;
    z-index: 10;
}
#primary-menu li:hover > ul {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}
#primary-menu ul li a {
    text-transform: none;
    height: auto;
    padding: 10px 14px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
}
#primary-menu ul li a::after { display: none; }
#primary-menu ul li a:hover { background: var(--pw-bg); }

.header-actions { display: flex; align-items: center; gap: 10px; }
.search-toggle, .menu-toggle {
    background: var(--pw-bg);
    border: none;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--pw-text);
    font-size: 16px;
    transition: all .2s ease;
}
.search-toggle:hover, .menu-toggle:hover { background: var(--pw-primary); color: #fff; transform: translateY(-1px); }
.menu-toggle { display: none; }

.header-search-box {
    max-height: 0;
    overflow: hidden;
    transition: max-height .25s ease;
    border-top: 1px solid var(--pw-border);
}
.header-search-box.open { max-height: 100px; }
.header-search-box .container { padding: 16px 20px; }
.header-search-box .search-form { max-width: 500px; margin: 0 auto; }

/* ----- Search form ----- */
.search-form {
    display: flex;
    border: 1px solid var(--pw-border);
    border-radius: 6px;
    overflow: hidden;
    background: #fff;
}
.search-field {
    flex: 1;
    border: none;
    padding: 10px 14px;
    font-size: 14px;
    outline: none;
    font-family: inherit;
}
.search-submit {
    background: var(--pw-primary);
    color: #fff;
    border: none;
    padding: 0 18px;
    font-size: 15px;
}
.search-submit:hover { background: var(--pw-primary-dark); }

/* ----- Layout ----- */
.page-layout {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 28px;
    padding: 28px 20px;
}
.content-area { min-width: 0; }

.section-heading {
    font-size: 22px;
    font-weight: 800;
    margin: 0 0 18px;
    padding-left: 14px;
    border-left: 4px solid var(--pw-primary);
}

/* ----- Breadcrumbs ----- */
.breadcrumbs {
    font-size: 13px;
    color: var(--pw-muted);
    margin: 0 0 18px;
    padding: 10px 16px;
    background: #fff;
    border-radius: 8px;
    box-shadow: var(--pw-shadow);
    display: inline-block;
}
.breadcrumbs a { color: var(--pw-muted); }
.breadcrumbs a:hover { color: var(--pw-primary); }
.breadcrumbs .sep { margin: 0 6px; }
.breadcrumbs .current { color: var(--pw-text); font-weight: 600; }

/* ----- Hero Slider ----- */
.hero-slider {
    position: relative;
    border-radius: var(--pw-radius);
    overflow: hidden;
    margin-bottom: 32px;
    box-shadow: var(--pw-shadow);
    background: #ddd;
}
.hero-slider-track { position: relative; aspect-ratio: 900 / 420; }
.hero-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    visibility: hidden;
    transition: opacity .5s ease;
}
.hero-slide.active { opacity: 1; visibility: visible; }
.hero-slide-link { display: block; height: 100%; position: relative; color: #fff; }
.hero-slide-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.hero-slide-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(0deg, rgba(0,0,0,.75) 0%, rgba(0,0,0,.25) 50%, rgba(0,0,0,.05) 100%);
}
.hero-slide-content {
    position: absolute;
    left: 0; right: 0; bottom: 0;
    padding: 28px 32px;
    z-index: 2;
}
.hero-slide-title {
    color: #fff;
    font-size: clamp(20px, 3vw, 32px);
    font-weight: 800;
    margin: 10px 0 8px;
    max-width: 80%;
}
.hero-slide-excerpt {
    color: rgba(255,255,255,.85);
    max-width: 60%;
    font-size: 14px;
    margin: 0 0 10px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.hero-slide-meta {
    display: flex;
    gap: 16px;
    color: rgba(255,255,255,.8);
    font-size: 13px;
    flex-wrap: wrap;
}
.hero-slider-dots {
    position: absolute;
    bottom: 18px;
    right: 24px;
    display: flex;
    gap: 8px;
    z-index: 3;
}
.hero-dot {
    width: 10px; height: 10px;
    border-radius: 50%;
    border: none;
    background: rgba(255,255,255,.4);
    padding: 0;
}
.hero-dot.active { background: var(--pw-primary); width: 26px; border-radius: 6px; }
.hero-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0,0,0,.35);
    color: #fff;
    border: none;
    width: 38px; height: 38px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 3;
}
.hero-arrow:hover { background: var(--pw-primary); }
.hero-arrow-prev { left: 16px; }
.hero-arrow-next { right: 16px; }

/* ----- Badges ----- */
.badge {
    display: inline-block;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .5px;
    padding: 4px 10px;
    border-radius: 4px;
    color: #fff;
    background: var(--pw-primary);
}
.badge-red { background: #e8242c; }
.badge-blue { background: #2563eb; }
.badge-dark { background: #1f2937; }
.badge-green { background: #16a34a; }
.badge-purple { background: #7c3aed; }
.badge-orange { background: #ea580c; }
.badge-teal { background: #0d9488; }
.badge-brown { background: #92400e; }
.badge-gold { background: #ca8a04; }
.badge-default { background: var(--pw-primary); }

/* ----- Post list / cards ----- */
.post-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}
.post-card {
    display: flex;
    gap: 0;
    background: #fff;
    border-radius: var(--pw-radius);
    box-shadow: var(--pw-shadow);
    overflow: hidden;
    border-left: 4px solid transparent;
    transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.post-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 26px rgba(20,22,30,.12);
    border-left-color: var(--pw-primary);
}
.post-card-thumb {
    flex: 0 0 240px;
    position: relative;
    aspect-ratio: 4/3;
    overflow: hidden;
    background: var(--pw-bg);
}
.post-card-thumb img {
    width: 100%; height: 100%; object-fit: cover;
    transition: transform .4s ease;
}
.post-card:hover .post-card-thumb img { transform: scale(1.06); }
.post-card-thumb .badge {
    position: absolute; top: 12px; left: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,.18);
}
.post-card-body {
    padding: 18px 20px;
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
}
.post-card-title { font-size: 18px; margin: 0 0 10px; font-weight: 700; }
.post-card-title a { color: var(--pw-text); }
.post-card-title a:hover { color: var(--pw-primary); }
.post-card-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    font-size: 12px;
    color: var(--pw-muted);
    margin-bottom: 10px;
}
.post-card-meta span {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: var(--pw-bg);
    padding: 4px 10px;
    border-radius: 20px;
}
.post-card-meta i { color: var(--pw-primary); }
.post-card-excerpt { font-size: 14px; color: #555; margin: 0 0 14px; flex: 1; }
.read-more-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    align-self: flex-start;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .5px;
    color: var(--pw-primary);
    border: 2px solid var(--pw-primary);
    padding: 8px 18px;
    border-radius: 24px;
    text-decoration: none;
    transition: all .2s ease;
}
.read-more-btn i { transition: transform .2s ease; }
.read-more-btn:hover {
    background: var(--pw-primary);
    color: #fff;
}
.read-more-btn:hover i { transform: translateX(3px); }

.thumb-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    color: #c7ccd4;
    font-size: 32px;
    background: #eef0f3;
}

/* 3-column related posts */
.post-list-3col {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
}
.post-list-3col .post-card { flex-direction: column; }
.post-list-3col .post-card-thumb { flex: none; aspect-ratio: 16/10; }
.post-list-3col .post-card-body { padding: 14px 16px; }
.post-list-3col .post-card-title { font-size: 15px; }
.post-list-3col .post-card-excerpt { display: none; }

/* ----- Pagination ----- */
.pagination, .navigation.pagination, .nav-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    margin-top: 28px;
}
.pagination .page-numbers,
.navigation.pagination .page-numbers {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 38px;
    height: 38px;
    padding: 0 10px;
    background: #fff;
    border-radius: 6px;
    color: var(--pw-text);
    font-weight: 600;
    box-shadow: var(--pw-shadow);
}
.pagination .page-numbers.current,
.navigation.pagination .page-numbers.current {
    background: var(--pw-primary);
    color: #fff;
}
.pagination .page-numbers:hover,
.navigation.pagination .page-numbers:hover {
    background: var(--pw-primary);
    color: #fff;
}

/* ----- Sidebar ----- */
.sidebar { display: flex; flex-direction: column; gap: 20px; }
.widget {
    background: #fff;
    border-radius: var(--pw-radius);
    box-shadow: var(--pw-shadow);
    padding: 20px;
}
.widget-title, .footer-widget-title {
    font-size: 16px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .5px;
    margin: 0 0 14px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--pw-primary);
    display: inline-block;
}
.widget-search .widget-title { display: block; border-bottom: none; padding-bottom: 0; margin-bottom: 12px; border-left: 4px solid var(--pw-primary); padding-left: 10px; text-transform: none; font-size: 18px; }

/* Popular posts */
.popular-posts-list { display: flex; flex-direction: column; gap: 14px; }
.popular-post-item { display: flex; gap: 12px; }
.popular-post-thumb {
    flex: 0 0 64px;
    width: 64px; height: 64px;
    border-radius: 8px;
    overflow: hidden;
    background: var(--pw-bg);
}
.popular-post-thumb img { width: 100%; height: 100%; object-fit: cover; }
.popular-post-content { flex: 1; min-width: 0; }
.popular-post-content a {
    display: block;
    font-size: 13.5px;
    font-weight: 600;
    color: var(--pw-text);
    line-height: 1.4;
    margin-bottom: 4px;
}
.popular-post-content a:hover { color: var(--pw-primary); }
.popular-post-date { font-size: 11.5px; color: var(--pw-muted); }
.popular-post-date i { margin-right: 4px; }

/* Categories widget */
.widget_categories ul li,
.footer-menu li {
    display: flex;
    justify-content: space-between;
    padding: 9px 0;
    border-bottom: 1px dashed var(--pw-border);
    font-size: 14px;
}
.widget_categories ul li:last-child,
.footer-menu li:last-child { border-bottom: none; }
.widget_categories ul li a,
.footer-menu li a { color: var(--pw-text); }
.widget_categories ul li a:hover,
.footer-menu li a:hover { color: var(--pw-primary); }
.widget_categories ul li::before { content: "›"; color: var(--pw-primary); margin-right: 6px; font-weight: 700; }

/* Newsletter widget */
.newsletter-text { font-size: 13.5px; color: var(--pw-muted); margin: 0 0 12px; }
.newsletter-form { display: flex; flex-direction: column; gap: 10px; }
.newsletter-form input[type=email] {
    padding: 11px 14px;
    border: 1px solid var(--pw-border);
    border-radius: 6px;
    font-size: 14px;
    font-family: inherit;
}
.btn-subscribe {
    background: var(--pw-primary);
    color: #fff;
    border: none;
    padding: 11px 14px;
    border-radius: 6px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .5px;
    font-size: 13px;
}
.btn-subscribe:hover { background: var(--pw-primary-dark); }

/* Social follow */
.social-follow-buttons { display: flex; flex-direction: column; gap: 10px; }
.social-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 11px 14px;
    border-radius: 6px;
    color: #fff !important;
    font-weight: 600;
    font-size: 14px;
}
.social-facebook { background: #1877f2; }
.social-instagram { background: linear-gradient(45deg,#f58529,#dd2a7b,#8134af,#515bd4); }
.social-twitter { background: #000; }
.social-youtube { background: #ff0000; }
.muted-note { font-size: 13px; color: var(--pw-muted); }

/* ----- Single post ----- */
.single-post { background: #fff; border-radius: var(--pw-radius); box-shadow: var(--pw-shadow); padding: 24px; }
.single-thumb { border-radius: var(--pw-radius); overflow: hidden; margin-bottom: 16px; }
.single-title { font-size: clamp(22px, 3vw, 30px); font-weight: 800; margin: 12px 0; }
.single-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    font-size: 13px;
    color: var(--pw-muted);
    border-bottom: 1px solid var(--pw-border);
    padding-bottom: 14px;
    margin-bottom: 14px;
}
.single-meta i { margin-right: 4px; color: var(--pw-primary); }

.share-buttons { display: flex; align-items: center; gap: 10px; margin-bottom: 20px; }
.share-label { font-size: 13px; font-weight: 700; color: var(--pw-muted); margin-right: 4px; }
.share-btn {
    width: 34px; height: 34px;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    color: #fff !important;
    font-size: 14px;
}
.share-fb { background: #1877f2; }
.share-x { background: #000; }
.share-wa { background: #25d366; }
.share-tg { background: #229ed9; }

/* Table of contents */
.toc-box {
    background: var(--pw-bg);
    border: 1px solid var(--pw-border);
    border-radius: var(--pw-radius);
    margin: 0 0 24px;
    overflow: hidden;
}
.toc-toggle {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: none;
    border: none;
    padding: 14px 18px;
    font-weight: 800;
    font-size: 15px;
    color: var(--pw-text);
}
.toc-toggle i.fa-list-ul { color: var(--pw-primary); margin-right: 8px; }
.toc-arrow { transition: transform .2s ease; }
.toc-toggle.collapsed .toc-arrow { transform: rotate(-90deg); }
.toc-list {
    padding: 0 18px 16px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    max-height: 600px;
    overflow: hidden;
    transition: max-height .3s ease, padding .3s ease;
}
.toc-list.toc-collapsed { max-height: 0; padding-top: 0; padding-bottom: 0; }
.toc-list li a {
    color: var(--pw-text);
    font-size: 14.5px;
    font-weight: 600;
}
.toc-list li a:hover { color: var(--pw-primary); }
.toc-list li.toc-sub { padding-left: 20px; }
.toc-list li.toc-sub a { font-weight: 400; font-size: 13.5px; }

/* Post content typography */
.single-content { font-size: 16px; color: #333; }
.single-content h2 {
    font-size: 22px;
    font-weight: 800;
    margin: 32px 0 14px;
    padding-bottom: 8px;
    border-bottom: 2px solid var(--pw-border);
}
.single-content h3 { font-size: 18px; font-weight: 700; margin: 24px 0 12px; }
.single-content p { margin: 0 0 16px; }
.single-content ul, .single-content ol { padding-left: 22px; margin: 0 0 16px; }
.single-content ul li, .single-content ol li { margin-bottom: 6px; }
.single-content img { border-radius: 8px; margin: 16px 0; }
.single-content blockquote {
    border-left: 4px solid var(--pw-primary);
    background: var(--pw-bg);
    padding: 14px 18px;
    margin: 0 0 16px;
    border-radius: 0 8px 8px 0;
    font-style: italic;
    color: #555;
}
.single-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 0 0 20px;
    font-size: 14.5px;
}
.single-content table th,
.single-content table td {
    border: 1px solid var(--pw-border);
    padding: 10px 14px;
    text-align: left;
}
.single-content table th {
    background: var(--pw-primary);
    color: #fff;
    font-weight: 700;
}
.single-content table tr:nth-child(even) td { background: var(--pw-bg); }
.single-content a { font-weight: 600; text-decoration: underline; }

.page-links { margin: 16px 0; font-weight: 700; }

/* Tags */
.post-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
    margin: 24px 0;
}
.post-tags i { color: var(--pw-primary); margin-right: 4px; }
.tag-link {
    background: var(--pw-bg);
    border: 1px solid var(--pw-border);
    color: var(--pw-text);
    font-size: 12.5px;
    padding: 5px 12px;
    border-radius: 20px;
}
.tag-link:hover { background: var(--pw-primary); color: #fff; border-color: var(--pw-primary); }

/* Prev/Next navigation */
.post-navigation {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin: 24px 0;
}
.post-navigation a {
    display: flex;
    flex-direction: column;
    gap: 6px;
    background: var(--pw-bg);
    border-radius: 8px;
    padding: 14px 16px;
    color: var(--pw-text);
}
.post-navigation a:hover { background: var(--pw-primary); color: #fff; }
.post-navigation a:hover .nav-label { color: #fff; }
.nav-next { text-align: right; align-items: flex-end; }
.nav-label { font-size: 12px; font-weight: 700; color: var(--pw-primary); text-transform: uppercase; }
.nav-title { font-size: 14px; font-weight: 600; }

/* Author box */
.author-box {
    display: flex;
    gap: 16px;
    background: var(--pw-bg);
    border-radius: var(--pw-radius);
    padding: 20px;
    margin: 24px 0;
}
.author-avatar img { border-radius: 50%; width: 70px; height: 70px; object-fit: cover; }
.author-name { margin: 0 0 2px; font-size: 17px; }
.author-role { font-size: 12.5px; color: var(--pw-primary); font-weight: 700; text-transform: uppercase; }
.author-bio { font-size: 14px; color: #555; margin: 8px 0; }
.author-meta-links { display: flex; align-items: center; gap: 16px; font-size: 13px; color: var(--pw-muted); }
.author-link { font-weight: 700; }

/* Related posts */
.related-posts { margin-top: 32px; }

/* Comments */
.comments-area { background: #fff; border-radius: var(--pw-radius); box-shadow: var(--pw-shadow); padding: 24px; margin-top: 20px; }
.comments-title { font-size: 18px; font-weight: 800; margin: 0 0 16px; padding-left: 14px; border-left: 4px solid var(--pw-primary); }
.no-comments-msg { color: var(--pw-muted); margin-bottom: 16px; }
.comment-list { padding: 0; }
.comment-item { display: flex; gap: 12px; padding: 16px 0; border-bottom: 1px solid var(--pw-border); }
.comment-list ul.children { list-style: none; padding-left: 50px; }
.comment-avatar img { border-radius: 50%; }
.comment-meta { display: flex; align-items: baseline; gap: 10px; margin-bottom: 6px; }
.comment-author { font-size: 14px; }
.comment-date { font-size: 12px; color: var(--pw-muted); }
.comment-content p { margin: 0 0 8px; font-size: 14px; }
.comment-reply-link {
    font-size: 12px;
    font-weight: 700;
    color: var(--pw-primary);
    text-transform: uppercase;
}

.comment-form { margin-top: 20px; }
.comment-form-author, .comment-form-email {
    display: inline-block;
    width: calc(50% - 6px);
    vertical-align: top;
}
.comment-form-author { margin-right: 12px; }
.comment-form input[type=text],
.comment-form input[type=email],
.comment-form input[type=url],
.comment-form textarea {
    width: 100%;
    padding: 11px 14px;
    border: 1px solid var(--pw-border);
    border-radius: 6px;
    font-family: inherit;
    font-size: 14px;
    margin-bottom: 12px;
}
.comment-form textarea { min-height: 120px; resize: vertical; }
.btn-submit {
    background: var(--pw-primary);
    color: #fff;
    border: none;
    padding: 12px 24px;
    border-radius: 6px;
    font-weight: 700;
    font-size: 14px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}
.btn-submit:hover { background: var(--pw-primary-dark); }

/* Archive header */
.archive-header { margin-bottom: 18px; }
.archive-title { font-size: 26px; font-weight: 800; margin: 0 0 6px; }
.archive-title span { color: var(--pw-primary); }
.archive-count, .archive-description { color: var(--pw-muted); font-size: 14px; }

/* No results / 404 */
.no-results {
    background: #fff;
    border-radius: var(--pw-radius);
    box-shadow: var(--pw-shadow);
    padding: 50px 30px;
    text-align: center;
}
.no-results h2 { margin: 16px 0 8px; }
.no-results .search-form { max-width: 420px; margin: 20px auto 0; }
.error-404 .error-code {
    font-size: 80px;
    font-weight: 900;
    color: var(--pw-primary);
    line-height: 1;
}
.btn-home {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 18px;
    background: var(--pw-primary);
    color: #fff;
    padding: 10px 22px;
    border-radius: 6px;
    font-weight: 700;
}
.btn-home:hover { background: var(--pw-primary-dark); color: #fff; }

/* ----- Footer ----- */
.site-footer {
    background: var(--pw-dark);
    color: #c5c8cf;
    margin-top: 48px;
    position: relative;
    border-top: 4px solid var(--pw-primary);
}
.footer-widgets {
    display: grid;
    grid-template-columns: 1.3fr 1fr 1fr 1.2fr;
    gap: 32px;
    padding: 48px 20px 36px;
}
.footer-widget-title {
    color: #fff;
    border-bottom: none;
    padding-bottom: 0;
    margin-bottom: 18px;
    position: relative;
    padding-left: 14px;
}
.footer-widget-title::before {
    content: "";
    position: absolute;
    left: 0; top: 2px; bottom: 2px;
    width: 4px;
    background: var(--pw-primary);
    border-radius: 2px;
}
.site-footer .widget { background: transparent; box-shadow: none; padding: 0; }
.site-footer p { font-size: 14px; line-height: 1.8; color: #aab0bb; }
.footer-col img.custom-logo { max-height: 44px; margin-bottom: 14px; filter: brightness(0) invert(1); }
.footer-social { display: flex; gap: 10px; margin-top: 16px; }
.footer-social a {
    width: 38px; height: 38px;
    border-radius: 10px;
    background: rgba(255,255,255,.06);
    border: 1px solid rgba(255,255,255,.08);
    display: flex; align-items: center; justify-content: center;
    color: #fff;
    transition: all .2s ease;
}
.footer-social a:hover { background: var(--pw-primary); border-color: var(--pw-primary); transform: translateY(-2px); }
.footer-menu li { border-bottom: 1px dashed rgba(255,255,255,.1); padding: 8px 0; }
.footer-menu li a { color: #c5c8cf; font-size: 14px; }
.footer-menu li a:hover { color: var(--pw-primary); padding-left: 4px; }
.footer-menu li a { transition: padding-left .2s ease, color .2s ease; }
.footer-menu li::before { color: var(--pw-primary); }
.site-footer .newsletter-form { flex-direction: row; gap: 0; border-radius: 8px; overflow: hidden; }
.site-footer .newsletter-form input[type=email] {
    background: rgba(255,255,255,.06);
    border: 1px solid rgba(255,255,255,.12);
    border-right: none;
    border-radius: 8px 0 0 8px;
    color: #fff;
    margin-bottom: 0;
}
.site-footer .newsletter-form input::placeholder { color: #8b919c; }
.site-footer .btn-subscribe { border-radius: 0 8px 8px 0; flex-shrink: 0; }

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,.08);
    padding: 18px 20px;
    text-align: center;
    font-size: 13px;
    color: #8b919c;
    background: rgba(0,0,0,.15);
}

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

@media (max-width: 1024px) {
    .page-layout { grid-template-columns: 1fr; gap: 24px; }
    .sidebar { order: 2; }
    .post-list-3col { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 900px) {
    .header-inner { padding: 12px 16px; }
    .main-navigation {
        position: absolute;
        top: 100%;
        left: 0; right: 0;
        background: #fff;
        box-shadow: var(--pw-shadow);
        max-height: 0;
        overflow: hidden;
        transition: max-height .3s ease;
        border-top: 3px solid var(--pw-primary);
    }
    .main-navigation.nav-open { max-height: 500px; overflow-y: auto; }
    #primary-menu { flex-direction: column; align-items: stretch; padding: 8px; gap: 0; }
    #primary-menu li a {
        height: auto;
        padding: 14px 16px;
        border-bottom: 1px solid var(--pw-border);
    }
    #primary-menu li a::after { display: none; }
    #primary-menu li a:hover,
    #primary-menu li.current-menu-item > a { background: var(--pw-bg); }
    #primary-menu ul {
        position: static;
        opacity: 1; visibility: visible; transform: none;
        box-shadow: none; border-top: none;
        padding-left: 14px; display: none;
        border-radius: 0;
    }
    #primary-menu li.menu-open > ul,
    #primary-menu li:hover ul { display: block; }
    .menu-toggle { display: flex; }

    .header-inner { flex-wrap: wrap; }
    .site-branding { order: 1; flex: 1; }
    .header-actions { order: 2; }
    .main-navigation { order: 3; width: 100%; }

    .top-bar-inner { font-size: 11.5px; gap: 10px; padding: 7px 16px; }
    .trending-label { padding: 4px 8px; font-size: 11px; }
}

@media (max-width: 782px) {
    .container, .header-inner, .top-bar-inner,
    .page-layout, .footer-widgets, .footer-bottom .container,
    .header-search-box .container { padding-left: 14px; padding-right: 14px; }

    .page-layout { padding: 18px 14px; }

    .hero-slide-content { padding: 18px 16px; }
    .hero-slide-excerpt { max-width: 100%; -webkit-line-clamp: 2; }
    .hero-slide-title { max-width: 100%; font-size: 20px; }
    .hero-slide-meta { font-size: 11.5px; gap: 10px; }
    .hero-arrow { width: 32px; height: 32px; font-size: 13px; }
    .hero-slider-dots { right: 14px; bottom: 12px; }

    .post-card { flex-direction: column; border-left: none; border-top: 4px solid transparent; }
    .post-card:hover { border-left-color: transparent; border-top-color: var(--pw-primary); }
    .post-card-thumb { flex: none; width: 100%; aspect-ratio: 16/10; }
    .post-card-body { padding: 16px; }

    .post-list-3col { grid-template-columns: 1fr; }
    .post-navigation { grid-template-columns: 1fr; }
    .footer-widgets { grid-template-columns: 1fr; gap: 28px; padding: 36px 14px 28px; }
    .author-box { flex-direction: column; text-align: center; }
    .author-meta-links { justify-content: center; flex-wrap: wrap; }
    .comment-form-author, .comment-form-email { width: 100%; margin-right: 0; }

    .single-post { padding: 16px; }
    .single-meta { gap: 10px; font-size: 12px; }
    .share-buttons { flex-wrap: wrap; }

    .site-footer .newsletter-form { flex-direction: row; }

    .section-heading { font-size: 19px; }
}

@media (max-width: 480px) {
    .site-title { font-size: 19px; }
    .site-tagline { display: none; }
    .top-bar-social { display: none; }
    .ticker-content { animation-duration: 16s; }

    .header-search-box.open { max-height: 80px; }

    .post-card-meta span { font-size: 11px; padding: 3px 8px; }
    .read-more-btn { width: 100%; justify-content: center; }

    .widget { padding: 16px; }
    .breadcrumbs { font-size: 12px; padding: 8px 12px; }
}
