/* ==============================================================
   Urdu News Pro - Main Stylesheet
   Stilo-Urdu-inspired news/magazine theme
   Direction: RTL (handled in rtl.css)
   ============================================================== */

/* ---------- CSS Reset / Normalize ---------- */
*, *::before, *::after {
    box-sizing: border-box;
}

html {
    -webkit-text-size-adjust: 100%;
    -ms-text-size-adjust: 100%;
    scroll-behavior: smooth;
}

body {
    margin: 0;
    padding: 0;
    font-family: 'Noto Nastaliq Urdu', 'Noto Naskh Arabic', 'Jameel Noori Nastaleeq', 'Alvi Nastaleeq', Tahoma, Arial, sans-serif;
    font-size: 17px;
    line-height: 1.8;
    color: #1a1a1a;
    background: #fafafa;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: #b8001f;
    text-decoration: none;
    transition: color 0.2s ease;
}

a:hover, a:focus {
    color: #7a0015;
}

h1, h2, h3, h4, h5, h6 {
    clear: both;
    font-family: 'Noto Nastaliq Urdu', 'Noto Naskh Arabic', Tahoma, Arial, sans-serif;
    font-weight: 700;
    line-height: 1.4;
    color: #1a1a1a;
    margin: 0 0 0.6em;
}

p {
    margin: 0 0 1.2em;
}

ul, ol {
    margin: 0 0 1.2em;
    padding: 0;
}

blockquote {
    margin: 1.5em 0;
    padding: 1em 1.5em;
    border-right: 4px solid #b8001f;
    background: #f8f4f0;
    font-style: italic;
    color: #444;
}

code, pre {
    font-family: 'Courier New', monospace;
    background: #f4f4f4;
    padding: 2px 6px;
    border-radius: 3px;
}

pre {
    padding: 1em;
    overflow-x: auto;
}

hr {
    border: 0;
    border-top: 1px solid #e5e5e5;
    margin: 2em 0;
}

/* ---------- Layout ---------- */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    width: 100%;
}

.site {
    background: #ffffff;
    box-shadow: 0 0 10px rgba(0,0,0,0.04);
}

.site-content {
    padding: 30px 0;
    min-height: 60vh;
}

#primary {
    width: 100%;
}

.widget-area.sidebar {
    padding: 30px 0;
}

.has-sidebar #primary {
    width: 68%;
    float: right;
}

.has-sidebar .widget-area.sidebar {
    width: 28%;
    float: left;
}

@media (max-width: 992px) {
    .has-sidebar #primary,
    .has-sidebar .widget-area.sidebar {
        width: 100%;
        float: none;
    }
}

/* ---------- Top Bar ---------- */
.top-bar {
    background: #1a1a1a;
    color: #ddd;
    font-size: 13px;
    padding: 8px 0;
}

.top-bar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

.top-date {
    color: #fff;
    font-weight: 500;
    margin-left: 16px;
}

.top-greeting {
    color: #ffcb05;
}

.social-links {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 6px;
}

.social-links li a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: rgba(255,255,255,0.1);
    color: #fff;
    font-size: 12px;
    transition: background 0.2s;
}

.social-links li a:hover {
    background: #b8001f;
}

.social-icon {
    font-style: normal;
    font-weight: bold;
    font-family: Arial, sans-serif;
}

/* ---------- Header / Branding ---------- */
.site-header {
    background: #ffffff;
    padding: 25px 0;
    border-bottom: 3px solid #b8001f;
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}

.site-branding {
    display: flex;
    align-items: center;
    gap: 15px;
    flex: 1;
}

.site-logo img {
    max-height: 80px;
    width: auto;
}

.site-title-wrap {
    flex: 1;
}

.site-title {
    margin: 0 0 5px;
    font-size: 36px;
    font-weight: 700;
    line-height: 1.2;
}

.site-title a {
    color: #b8001f;
    text-decoration: none;
}

.site-title a:hover {
    color: #7a0015;
}

.site-description {
    margin: 0;
    font-size: 14px;
    color: #666;
    font-style: italic;
}

.header-ad-area {
    min-width: 300px;
    text-align: center;
}

.header-ad-placeholder {
    background: #f0f0f0;
    border: 1px dashed #ccc;
    padding: 18px 30px;
    color: #888;
    font-size: 14px;
    border-radius: 4px;
}

@media (max-width: 768px) {
    .site-title { font-size: 26px; }
    .header-inner { flex-direction: column; text-align: center; }
    .site-branding { flex-direction: column; }
    .header-ad-area { width: 100%; min-width: 0; }
}

/* ---------- Primary Navigation ---------- */
.main-navigation {
    background: #b8001f;
    position: sticky;
    top: 0;
    z-index: 999;
    box-shadow: 0 2px 6px rgba(0,0,0,0.08);
}

.nav-inner {
    display: flex;
    align-items: center;
    gap: 15px;
    position: relative;
}

.primary-menu-list,
.fallback-menu {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    flex: 1;
}

.primary-menu-list li,
.fallback-menu li {
    position: relative;
}

.primary-menu-list li a,
.fallback-menu li a {
    display: block;
    padding: 14px 18px;
    color: #fff;
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    transition: background 0.2s;
}

.primary-menu-list li a:hover,
.primary-menu-list li.current-menu-item > a,
.fallback-menu li a:hover,
.fallback-menu li.current-menu-item > a {
    background: #7a0015;
}

.primary-menu-list li.menu-item-has-children > a::after {
    content: '⌄';
    margin-right: 6px;
    font-size: 12px;
}

.primary-menu-list .sub-menu {
    position: absolute;
    top: 100%;
    right: 0;
    background: #fff;
    min-width: 220px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    display: none;
    flex-direction: column;
    z-index: 1000;
    list-style: none;
    padding: 0;
    margin: 0;
}

.primary-menu-list li:hover > .sub-menu,
.primary-menu-list li:focus-within > .sub-menu {
    display: flex;
    flex-direction: column;
}

.primary-menu-list .sub-menu li {
    width: 100%;
    border-bottom: 1px solid #f0f0f0;
}

.primary-menu-list .sub-menu li a {
    color: #333;
    padding: 10px 18px;
    font-size: 15px;
}

.primary-menu-list .sub-menu li a:hover {
    background: #faf4f0;
    color: #b8001f;
}

.menu-toggle {
    display: none;
    background: transparent;
    border: 0;
    padding: 12px 15px;
    cursor: pointer;
    flex-direction: column;
    gap: 4px;
}

.menu-icon {
    display: block;
    width: 26px;
    height: 3px;
    background: #fff;
    border-radius: 2px;
}

.search-toggle {
    background: transparent;
    border: 0;
    color: #fff;
    padding: 12px 15px;
    cursor: pointer;
    font-size: 20px;
    margin-right: auto;
}

.search-icon {
    font-style: normal;
    font-weight: bold;
}

.header-search {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #fff;
    padding: 20px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.header-search .search-form {
    display: flex;
    max-width: 600px;
    margin: 0 auto;
}

.header-search .search-field {
    flex: 1;
    padding: 10px 14px;
    border: 2px solid #b8001f;
    border-radius: 0;
    font-family: inherit;
    font-size: 16px;
}

.header-search .search-submit {
    background: #b8001f;
    color: #fff;
    border: 0;
    padding: 10px 24px;
    cursor: pointer;
    font-family: inherit;
    font-weight: 600;
}

.header-search .search-submit:hover {
    background: #7a0015;
}

@media (max-width: 768px) {
    .menu-toggle { display: flex; }
    .primary-menu-list,
    .fallback-menu {
        display: none;
        width: 100%;
        flex-direction: column;
        background: #b8001f;
    }
    .primary-menu-list.is-open,
    .fallback-menu.is-open {
        display: flex;
    }
    .primary-menu-list li { width: 100%; }
    .primary-menu-list li a { padding: 12px 18px; border-bottom: 1px solid rgba(255,255,255,0.1); }
    .primary-menu-list .sub-menu {
        position: static;
        box-shadow: none;
        background: rgba(0,0,0,0.15);
    }
    .search-toggle { margin-right: 0; }
}

/* ---------- Section Headings ---------- */
.section-heading {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    padding-bottom: 10px;
    border-bottom: 2px solid #f0f0f0;
    position: relative;
}

.section-title {
    margin: 0;
    font-size: 22px;
    font-weight: 700;
    color: #1a1a1a;
    display: flex;
    align-items: center;
    gap: 12px;
}

.title-bar {
    display: inline-block;
    width: 5px;
    height: 26px;
    background: #b8001f;
    border-radius: 2px;
}

.section-more {
    font-size: 14px;
    color: #b8001f;
    font-weight: 600;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 6px;
}

.section-more:hover {
    color: #7a0015;
}

.more-arrow {
    font-size: 16px;
    transition: transform 0.2s;
}

.section-more:hover .more-arrow {
    transform: translateX(-4px);
}

/* ---------- HERO Section (Stilo-style featured) ---------- */
.hero-section {
    margin-bottom: 50px;
}

.hero-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 20px;
}

.hero-card {
    position: relative;
    overflow: hidden;
    border-radius: 4px;
    background: #f0f0f0;
    transition: transform 0.3s;
}

.hero-card:hover {
    transform: translateY(-3px);
}

.hero-card-link {
    display: block;
    color: inherit;
    text-decoration: none;
}

.hero-card-image {
    overflow: hidden;
}

.hero-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

.hero-card:hover .hero-card-image img {
    transform: scale(1.05);
}

.hero-card-large .hero-card-image {
    height: 480px;
}

.hero-card-large .hero-card-overlay {
    position: absolute;
    bottom: 0;
    right: 0;
    left: 0;
    padding: 30px;
    background: linear-gradient(to top, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0.5) 60%, transparent 100%);
    color: #fff;
}

.hero-card-large .hero-card-title {
    color: #fff;
    font-size: 28px;
    margin: 8px 0;
    line-height: 1.4;
}

.hero-card-large .hero-card-meta {
    color: #ddd;
    font-size: 13px;
}

.hero-cards-stack {
    display: grid;
    grid-template-rows: repeat(3, 1fr);
    gap: 20px;
}

.hero-card-small {
    display: flex;
    align-items: stretch;
    height: calc((480px - 40px) / 3);
    background: #fff;
    box-shadow: 0 1px 4px rgba(0,0,0,0.06);
}

.hero-card-small .hero-card-image {
    width: 40%;
    height: 100%;
    flex-shrink: 0;
}

.hero-card-small .hero-card-image img {
    height: 100%;
}

.hero-card-small .hero-card-body {
    padding: 15px;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.hero-card-small .hero-card-title {
    font-size: 16px;
    margin: 6px 0;
    line-height: 1.5;
    color: #1a1a1a;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.hero-card-small:hover .hero-card-title {
    color: #b8001f;
}

.post-cat {
    display: inline-block;
    background: #b8001f;
    color: #fff !important;
    padding: 3px 12px;
    font-size: 12px;
    font-weight: 600;
    border-radius: 3px;
    text-transform: none;
    width: fit-content;
}

.hero-card-meta {
    margin-top: 8px;
    display: flex;
    gap: 8px;
    align-items: center;
    flex-wrap: wrap;
}

.meta-sep {
    color: rgba(255,255,255,0.5);
}

@media (max-width: 992px) {
    .hero-grid {
        grid-template-columns: 1fr;
    }
    .hero-card-large .hero-card-image { height: 350px; }
    .hero-card-small { height: auto; min-height: 130px; }
}

@media (max-width: 600px) {
    .hero-card-large .hero-card-image { height: 240px; }
    .hero-card-large .hero-card-title { font-size: 20px; }
    .hero-card-large .hero-card-overlay { padding: 18px; }
}

/* ---------- Posts Grid (cards) ---------- */
.posts-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
    margin-bottom: 40px;
}

@media (max-width: 992px) {
    .posts-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 600px) {
    .posts-grid { grid-template-columns: 1fr; }
}

.post-card {
    background: #fff;
    border-radius: 4px;
    overflow: hidden;
    box-shadow: 0 1px 6px rgba(0,0,0,0.06);
    transition: box-shadow 0.3s, transform 0.3s;
    display: flex;
    flex-direction: column;
}

.post-card:hover {
    box-shadow: 0 4px 16px rgba(0,0,0,0.12);
    transform: translateY(-2px);
}

.post-card-image-link {
    display: block;
    overflow: hidden;
}

.post-card-image {
    aspect-ratio: 16/10;
    overflow: hidden;
    background: #f0f0f0;
}

.post-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s;
}

.post-card:hover .post-card-image img {
    transform: scale(1.05);
}

.post-card-body {
    padding: 18px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.post-card-category {
    display: inline-block;
    background: #b8001f;
    color: #fff;
    padding: 3px 10px;
    font-size: 11px;
    font-weight: 600;
    border-radius: 3px;
    margin-bottom: 10px;
    text-decoration: none;
    width: fit-content;
}

.post-card-category:hover {
    background: #7a0015;
}

.post-card-title {
    margin: 0 0 10px;
    font-size: 18px;
    line-height: 1.5;
    font-weight: 700;
}

.post-card-title a {
    color: #1a1a1a;
    text-decoration: none;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.post-card-title a:hover {
    color: #b8001f;
}

.post-card-meta {
    color: #777;
    font-size: 12px;
    margin-bottom: 10px;
    display: flex;
    gap: 6px;
    align-items: center;
    flex-wrap: wrap;
}

.post-card-meta a {
    color: #777;
    text-decoration: none;
}

.post-card-meta a:hover {
    color: #b8001f;
}

.post-card-excerpt {
    color: #555;
    font-size: 14px;
    line-height: 1.7;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* ---------- Category Section (Stilo-style category blocks) ---------- */
.category-section {
    margin-bottom: 50px;
    padding: 25px;
    background: #fcfcfc;
    border-radius: 6px;
}

.category-section-1 {
    background: #fdf6f6;
}

.category-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.cat-card-feature {
    grid-row: span 3;
    background: #fff;
    border-radius: 4px;
    overflow: hidden;
    box-shadow: 0 1px 6px rgba(0,0,0,0.06);
}

.cat-card-feature .cat-card-image {
    aspect-ratio: 4/3;
    overflow: hidden;
}

.cat-card-feature .cat-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.cat-card-feature .cat-card-body {
    padding: 20px;
}

.cat-card-feature .cat-card-title {
    font-size: 22px;
    line-height: 1.4;
    margin: 10px 0;
    color: #1a1a1a;
}

.cat-card-feature:hover .cat-card-title {
    color: #b8001f;
}

.cat-card-meta {
    color: #777;
    font-size: 12px;
    margin-bottom: 10px;
    display: flex;
    gap: 6px;
    align-items: center;
}

.cat-card-excerpt {
    color: #555;
    font-size: 14px;
    line-height: 1.7;
    margin: 10px 0 0;
}

.cat-card-small {
    display: flex;
    align-items: stretch;
    background: #fff;
    padding: 12px;
    border-radius: 4px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.04);
    transition: box-shadow 0.2s;
}

.cat-card-small:hover {
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.cat-card-thumb {
    width: 90px;
    height: 70px;
    flex-shrink: 0;
    overflow: hidden;
    border-radius: 3px;
    margin-left: 12px;
}

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

.cat-card-small .cat-card-body {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.cat-card-small .cat-card-title {
    font-size: 15px;
    font-weight: 600;
    margin: 0 0 6px;
    line-height: 1.5;
    color: #1a1a1a;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.cat-card-small:hover .cat-card-title {
    color: #b8001f;
}

.cat-card-link {
    color: inherit;
    text-decoration: none;
    display: flex;
    align-items: stretch;
    width: 100%;
}

@media (max-width: 768px) {
    .category-grid { grid-template-columns: 1fr; }
    .cat-card-feature { grid-row: auto; }
}

/* ---------- Single Article ---------- */
.single-article {
    background: #fff;
    padding: 30px;
    border-radius: 6px;
    box-shadow: 0 1px 6px rgba(0,0,0,0.05);
    margin-bottom: 30px;
}

.breadcrumb {
    margin-bottom: 20px;
    font-size: 13px;
    color: #777;
}

.breadcrumb a {
    color: #777;
    text-decoration: none;
}

.breadcrumb a:hover {
    color: #b8001f;
}

.breadcrumb .sep {
    margin: 0 8px;
    color: #ccc;
}

.breadcrumb .current {
    color: #b8001f;
}

.post-category {
    display: inline-block;
    background: #b8001f;
    color: #fff !important;
    padding: 4px 14px;
    border-radius: 3px;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    margin-bottom: 12px;
}

.entry-title {
    font-size: 32px;
    line-height: 1.4;
    margin: 10px 0 15px;
    color: #1a1a1a;
}

.entry-meta {
    color: #777;
    font-size: 14px;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 1px solid #f0f0f0;
    display: flex;
    gap: 8px;
    align-items: center;
    flex-wrap: wrap;
}

.entry-meta a {
    color: #777;
    text-decoration: none;
}

.entry-meta a:hover {
    color: #b8001f;
}

.entry-thumbnail {
    margin: 0 0 25px;
    overflow: hidden;
    border-radius: 4px;
}

.entry-thumbnail img {
    width: 100%;
    height: auto;
}

.wp-caption-text {
    font-size: 13px;
    color: #777;
    text-align: center;
    padding: 8px;
    background: #fafafa;
    margin: 0;
    border-radius: 0 0 4px 4px;
}

.entry-content {
    font-size: 17px;
    line-height: 2;
    color: #222;
}

.entry-content p {
    margin: 0 0 1.4em;
}

.entry-content h2 { font-size: 26px; margin: 1.5em 0 0.7em; }
.entry-content h3 { font-size: 22px; margin: 1.4em 0 0.6em; }
.entry-content h4 { font-size: 19px; margin: 1.3em 0 0.6em; }

.entry-content img {
    border-radius: 4px;
    margin: 1em 0;
}

.entry-content ul, .entry-content ol {
    padding-right: 25px;
    padding-left: 0;
}

.entry-content li {
    margin-bottom: 8px;
}

.page-links {
    margin-top: 25px;
    padding: 15px;
    background: #fafafa;
    border-radius: 4px;
    text-align: center;
}

.page-links-label {
    font-weight: 600;
    color: #1a1a1a;
    margin-left: 10px;
}

.page-number {
    display: inline-block;
    padding: 4px 10px;
    background: #b8001f;
    color: #fff;
    margin: 0 3px;
    border-radius: 3px;
    font-size: 14px;
}

.entry-footer {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #f0f0f0;
}

.entry-tags {
    font-size: 14px;
}

.tags-label {
    font-weight: 600;
    color: #1a1a1a;
    margin-left: 10px;
}

.entry-tags a {
    display: inline-block;
    background: #f0f0f0;
    color: #333;
    padding: 4px 12px;
    border-radius: 3px;
    text-decoration: none;
    margin: 3px;
    font-size: 13px;
}

.entry-tags a:hover {
    background: #b8001f;
    color: #fff;
}

/* ---------- Author Box ---------- */
.author-box {
    background: #fff;
    padding: 25px;
    border-radius: 6px;
    box-shadow: 0 1px 6px rgba(0,0,0,0.05);
    margin-bottom: 30px;
    display: flex;
    align-items: center;
    gap: 20px;
}

.author-avatar img {
    border-radius: 50%;
    width: 80px;
    height: 80px;
}

.author-info {
    flex: 1;
}

.author-name {
    margin: 0 0 8px;
    font-size: 20px;
}

.author-name a {
    color: #1a1a1a;
    text-decoration: none;
}

.author-name a:hover {
    color: #b8001f;
}

.author-bio {
    margin: 0;
    color: #555;
    font-size: 14px;
    line-height: 1.7;
}

/* ---------- Related Posts ---------- */
.related-posts {
    margin-bottom: 30px;
}

.related-heading {
    margin-bottom: 20px;
    font-size: 22px;
    display: flex;
    align-items: center;
    gap: 12px;
}

/* ---------- Pagination ---------- */
.pagination-wrapper,
.nav-links,
.navigation.pagination {
    margin: 30px 0;
    text-align: center;
}

.page-numbers {
    display: inline-block;
    padding: 8px 14px;
    margin: 0 3px;
    background: #f0f0f0;
    color: #1a1a1a;
    text-decoration: none;
    border-radius: 3px;
    font-weight: 600;
    font-size: 14px;
}

.page-numbers.current,
.page-numbers:hover {
    background: #b8001f;
    color: #fff;
}

.page-numbers.dots {
    background: transparent;
    color: #888;
}

/* ---------- Comments ---------- */
.comments-area {
    background: #fff;
    padding: 30px;
    border-radius: 6px;
    box-shadow: 0 1px 6px rgba(0,0,0,0.05);
    margin-top: 30px;
}

.comments-title {
    font-size: 22px;
    margin-bottom: 25px;
    padding-bottom: 12px;
    border-bottom: 2px solid #f0f0f0;
}

.comment-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.comment-body {
    padding: 18px;
    border: 1px solid #f0f0f0;
    border-radius: 4px;
    margin-bottom: 15px;
    background: #fcfcfc;
}

.comment-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 10px;
}

.comment-author .avatar {
    border-radius: 50%;
}

.comment-author .fn {
    font-weight: 600;
    color: #1a1a1a;
    text-decoration: none;
}

.comment-metadata {
    font-size: 12px;
    color: #888;
}

.comment-metadata a {
    color: #888;
    text-decoration: none;
}

.comment-content {
    color: #444;
    line-height: 1.8;
}

.children {
    list-style: none;
    margin-top: 15px;
    padding-right: 30px;
}

.comment-respond {
    margin-top: 30px;
    padding-top: 25px;
    border-top: 1px solid #f0f0f0;
}

.comment-reply-title {
    font-size: 20px;
    margin-bottom: 20px;
}

.comment-form p {
    margin-bottom: 15px;
}

.comment-form label {
    display: block;
    font-weight: 600;
    margin-bottom: 6px;
    color: #333;
}

.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-family: inherit;
    font-size: 15px;
}

.comment-form input:focus,
.comment-form textarea:focus {
    outline: none;
    border-color: #b8001f;
}

.submit-comment {
    background: #b8001f;
    color: #fff;
    border: 0;
    padding: 12px 28px;
    font-size: 15px;
    font-weight: 600;
    border-radius: 4px;
    cursor: pointer;
    font-family: inherit;
}

.submit-comment:hover {
    background: #7a0015;
}

.no-comments {
    color: #888;
    font-style: italic;
}

/* ---------- Sidebar Widgets ---------- */
.widget-area.sidebar .widget {
    background: #fff;
    padding: 20px;
    border-radius: 6px;
    box-shadow: 0 1px 6px rgba(0,0,0,0.05);
    margin-bottom: 25px;
}

.widget-title {
    font-size: 18px;
    margin: 0 0 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid #f0f0f0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.widget-title span {
    display: flex;
    align-items: center;
    gap: 10px;
}

.widget-title::before {
    content: '';
    display: inline-block;
    width: 4px;
    height: 22px;
    background: #b8001f;
    border-radius: 2px;
}

.widget ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.widget ul li {
    padding: 8px 0;
    border-bottom: 1px solid #f0f0f0;
}

.widget ul li:last-child {
    border-bottom: 0;
}

.widget ul li a {
    color: #333;
    text-decoration: none;
}

.widget ul li a:hover {
    color: #b8001f;
}

.widget select {
    width: 100%;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-family: inherit;
}

/* ---------- Archive Header ---------- */
.archive-header,
.page-header {
    background: #fff;
    padding: 25px;
    border-radius: 6px;
    box-shadow: 0 1px 6px rgba(0,0,0,0.05);
    margin-bottom: 25px;
    text-align: center;
}

.archive-title,
.page-title {
    margin: 0;
    font-size: 28px;
    color: #1a1a1a;
}

.archive-description {
    color: #666;
    margin-top: 10px;
    font-size: 15px;
}

/* ---------- 404 Page ---------- */
.error-404 {
    background: #fff;
    padding: 60px 30px;
    border-radius: 8px;
    text-align: center;
    box-shadow: 0 1px 8px rgba(0,0,0,0.05);
}

.error-code {
    font-size: 120px;
    color: #b8001f;
    margin: 0;
    line-height: 1;
}

.error-title {
    font-size: 28px;
    margin: 20px 0;
}

.error-text {
    color: #666;
    font-size: 16px;
    max-width: 500px;
    margin: 0 auto 30px;
}

.error-search,
.search-form-large {
    max-width: 500px;
    margin: 0 auto 25px;
}

.error-search .search-form,
.search-form-large .search-form {
    display: flex;
}

.error-search .search-field,
.search-form-large .search-field {
    flex: 1;
    padding: 12px 14px;
    border: 2px solid #b8001f;
    border-radius: 0;
    font-family: inherit;
    font-size: 16px;
}

.error-search .search-submit,
.search-form-large .search-submit {
    background: #b8001f;
    color: #fff;
    border: 0;
    padding: 12px 24px;
    cursor: pointer;
    font-family: inherit;
    font-weight: 600;
}

.error-button {
    display: inline-block;
    background: #b8001f;
    color: #fff !important;
    padding: 12px 32px;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 600;
    margin-top: 15px;
}

.error-button:hover {
    background: #7a0015;
}

.error-categories {
    margin-top: 40px;
    text-align: right;
}

.error-categories h3 {
    font-size: 18px;
    margin-bottom: 15px;
}

.error-categories ul {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
    padding: 0;
}

.error-categories ul li {
    background: #f0f0f0;
    padding: 6px 14px;
    border-radius: 20px;
    border: 0;
}

.error-categories ul li a {
    color: #333;
    text-decoration: none;
}

/* ---------- Footer ---------- */
.site-footer {
    background: #1a1a1a;
    color: #ddd;
    margin-top: 50px;
}

.footer-widgets {
    padding: 40px 0;
    border-bottom: 1px solid #333;
}

.footer-widgets .container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.footer-col .widget {
    background: transparent;
    padding: 0;
    box-shadow: none;
    margin-bottom: 20px;
}

.footer-col .widget-title {
    color: #fff;
    border-bottom-color: #333;
}

.footer-col .widget ul li {
    border-bottom-color: #333;
}

.footer-col .widget ul li a {
    color: #ddd;
}

.footer-col .widget ul li a:hover {
    color: #ffcb05;
}

.footer-bottom {
    padding: 20px 0;
    background: #111;
}

.footer-bottom-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
    font-size: 13px;
}

.footer-copyright,
.footer-credit {
    color: #888;
}

.footer-credit a {
    color: #ffcb05;
    text-decoration: none;
}

.footer-menu-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 18px;
    flex-wrap: wrap;
}

.footer-menu-list a {
    color: #ddd;
    text-decoration: none;
}

.footer-menu-list a:hover {
    color: #ffcb05;
}

@media (max-width: 768px) {
    .footer-widgets .container { grid-template-columns: 1fr; }
    .footer-bottom-inner { flex-direction: column; text-align: center; }
}

/* ---------- Search Form (general) ---------- */
.search-form {
    display: flex;
    max-width: 500px;
    margin: 0 auto;
}

.search-field {
    flex: 1;
    padding: 10px 14px;
    border: 2px solid #b8001f;
    border-radius: 0;
    font-family: inherit;
    font-size: 15px;
}

.search-submit {
    background: #b8001f;
    color: #fff;
    border: 0;
    padding: 10px 24px;
    cursor: pointer;
    font-family: inherit;
    font-weight: 600;
}

.search-submit:hover {
    background: #7a0015;
}

/* ---------- Utilities ---------- */
.screen-reader-text {
    position: absolute !important;
    clip: rect(1px, 1px, 1px, 1px);
    width: 1px;
    height: 1px;
    overflow: hidden;
    white-space: nowrap;
}

.clearfix::after {
    content: '';
    display: table;
    clear: both;
}

::selection {
    background: #b8001f;
    color: #fff;
}