/*
Theme Name: মুক্তদেশ (Muktodesh)
Theme URI: https://muktodesh.com.bd
Author: Tahmid
Description: A complete, lightweight custom WordPress theme for "মুক্তদেশ"—an online Bangladeshi newspaper.
Version: 1.0.0
Text Domain: muktodesh
*/

:root {
	--bg-white: #FFFFFF;
	--bg-neutral: #F7F8F7;
	--bg-green-light: #E8F5F0;
	--bg-red-light: #FDF0F1;
	--ink: #141615;
	--ink-light: #4A4D4C;
	--green: #006A4E;
	--green-dark: #00543D;
	--green-light: #1AA36F;
	--red: #F42A41;
	--red-dark: #C91F34;
	--red-light: #FF5A6E;
	--border: #E5E7EB;
	--border-green: #B8D9CA;
	--border-red: #F5B7BE;
	--font-body: 'Hind Siliguri', sans-serif;
	--font-headline: 'Noto Serif Bengali', serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { font-family: var(--font-body); background-color: var(--bg-white); color: var(--ink); line-height: 1.65; font-size: 1rem; }
h1, h2, h3, h4, h5, h6 { font-family: var(--font-headline); font-weight: 700; line-height: 1.3; }
a { color: var(--green); text-decoration: none; transition: color 0.2s ease; }
a:hover { color: var(--red); }
img { max-width: 100%; height: auto; display: block; }
ul { list-style: none; }

/* ===== Header ===== */
.site-header { background-color: var(--bg-white); border-bottom: 2px solid var(--green); }
.site-header .container { max-width: 1280px; margin: 0 auto; padding: 0 1rem; }
.header-top { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 1rem; padding: 1rem 0; }
.header-date .date-text { font-size: 0.9rem; color: var(--ink-light); background: var(--bg-green-light); padding: 0.35rem 0.85rem; border-radius: 2rem; border: 1px solid var(--border-green); white-space: nowrap; }
.site-branding { text-align: center; flex: 1; }
.site-title { font-family: var(--font-headline); font-size: 2.5rem; font-weight: 700; color: var(--green-dark); margin: 0; letter-spacing: -0.5px; text-shadow: 1px 1px 0 rgba(255,255,255,0.5); line-height: 1.1; }
.logo-link { display: inline-block; text-decoration: none; color: inherit; }
.logo-link:hover { color: var(--green); }
.header-search { flex-shrink: 0; }
.search-form { display: flex; gap: 0.5rem; align-items: center; }
.search-field { border: 2px solid var(--border); border-radius: 4px; padding: 0.5rem 1rem; font-size: 0.95rem; font-family: var(--font-body); width: 220px; transition: border-color 0.2s ease, box-shadow 0.2s ease; background: var(--bg-white); }
.search-field:focus { outline: none; border-color: var(--green); box-shadow: 0 0 0 3px rgba(0, 106, 78, 0.15); }
.search-submit { background: var(--green); border: none; color: #fff; cursor: pointer; font-size: 1.1rem; padding: 0.5rem 1rem; border-radius: 4px; transition: background 0.2s ease, transform 0.1s ease; }
.search-submit:hover { background: var(--green-dark); transform: scale(1.05); }

/* ===== Navigation ===== */
.main-navigation { background: var(--bg-white); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); position: sticky; top: 0; z-index: 1000; }
.main-navigation .container { max-width: 1280px; margin: 0 auto; padding: 0 1rem; position: relative; }

/* Scroll wrapper */
.nav-scroll-wrapper { display: flex; align-items: center; gap: 0; }
.nav-scroll-wrapper:focus { outline: none; }

/* Scroll track - single row horizontal scroll */
.nav-scroll-track { flex: 1; overflow-x: auto; overflow-y: hidden; scrollbar-width: none; -ms-overflow-style: none; padding: 0.25rem 0; }
.nav-scroll-track::-webkit-scrollbar { display: none; height: 0; width: 0; }
.nav-scroll-track:focus { outline: none; }

/* Menu - single row, no wrap */
.nav-menu { display: flex; flex-wrap: nowrap; gap: 20px; padding: 0.5rem 0.75rem; margin: 0; min-width: max-content; }
.nav-menu li { flex-shrink: 0; }
.nav-menu li a { display: inline-flex; align-items: center; padding: 0.5rem 0.75rem; color: var(--ink); font-weight: 600; font-size: 0.95rem; font-family: var(--font-body); white-space: nowrap; border-radius: 4px; transition: color 0.2s ease, background 0.2s ease; text-decoration: none; }
.nav-menu li a:hover, .nav-menu li.current-menu-item > a, .nav-menu li.current_page_item > a { color: var(--green); background: var(--bg-green-light); }
.nav-menu li a:focus { outline: none; box-shadow: 0 0 0 3px rgba(0, 106, 78, 0.2); border-radius: 4px; }

/* Scroll buttons */
.nav-scroll-btn { flex-shrink: 0; width: 40px; height: 40px; display: flex; align-items: center; justify-content: center; background: var(--bg-white); border: 1px solid var(--border); border-radius: 50%; color: var(--ink); cursor: pointer; transition: all 0.2s ease; z-index: 10; box-shadow: 0 2px 8px rgba(0,0,0,0.08); }
.nav-scroll-btn:hover:not([hidden]) { background: var(--green); border-color: var(--green); color: #fff; transform: scale(1.05); }
.nav-scroll-btn:focus { outline: none; box-shadow: 0 0 0 3px rgba(0, 106, 78, 0.3); }
.nav-scroll-btn[hidden] { display: none; }
.nav-scroll-btn svg { display: block; }
.nav-scroll-prev { margin-right: -12px; }
.nav-scroll-next { margin-left: -12px; }

/* Edge fade overlays */
.nav-fade-left, .nav-fade-right { position: absolute; top: 0; bottom: 0; width: 80px; pointer-events: none; opacity: 0; transition: opacity 0.3s ease; z-index: 5; }
.nav-fade-left { left: 0; background: linear-gradient(90deg, var(--bg-white) 0%, transparent 100%); }
.nav-fade-right { right: 0; background: linear-gradient(270deg, var(--bg-white) 0%, transparent 100%); }

/* RTL support */
html[dir="rtl"] .nav-scroll-prev { margin-right: 0; margin-left: -12px; transform: rotate(180deg); }
html[dir="rtl"] .nav-scroll-next { margin-left: 0; margin-right: -12px; transform: rotate(180deg); }
html[dir="rtl"] .nav-fade-left { left: auto; right: 0; background: linear-gradient(270deg, var(--bg-white) 0%, transparent 100%); }
html[dir="rtl"] .nav-fade-right { right: auto; left: 0; background: linear-gradient(90deg, var(--bg-white) 0%, transparent 100%); }

/* ===== News Strip ===== */
.news-strip { background: linear-gradient(90deg, var(--bg-neutral) 0%, var(--bg-green-light) 100%); border-bottom: 1px solid var(--border-green); padding: 1rem 0; }
.news-strip .container { max-width: 1280px; margin: 0 auto; padding: 0 1rem; }
.strip-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; }
.strip-card { background: var(--bg-white); border: 1px solid var(--border); border-radius: 8px; padding: 0.75rem; display: flex; gap: 0.75rem; transition: all 0.2s ease; }
.strip-card:hover { transform: translateY(-2px); box-shadow: 0 4px 12px rgba(0, 106, 78, 0.1); }
.strip-thumb { flex-shrink: 0; width: 80px; height: 60px; border-radius: 6px; overflow: hidden; border: 2px solid var(--border-green); }
.strip-thumb img { width: 100%; height: 100%; object-fit: cover; }
.strip-content { flex: 1; min-width: 0; }
.strip-title { font-size: 0.9rem; font-weight: 600; line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; margin: 0.25rem 0 0; }
.strip-title a { color: var(--ink); }
.strip-title a:hover { color: var(--green); }
.strip-time { font-size: 0.75rem; color: var(--ink-light); margin-top: 0.25rem; }

/* ===== Category Badge ===== */
.category-badge { display: inline-block; background: linear-gradient(135deg, var(--green) 0%, var(--green-dark) 100%) !important; color: #fff !important; font-weight: 600; font-size: 0.65rem; text-transform: uppercase; letter-spacing: 0.5px; padding: 0.2rem 0.55rem; border-radius: 2rem; box-shadow: 0 2px 6px rgba(0, 106, 78, 0.3); line-height: 1; }
.badge.bg-red { background: linear-gradient(135deg, var(--red) 0%, var(--red-dark) 100%) !important; color: #fff; animation: pulse-red 2s infinite; }
@keyframes pulse-red { 0%, 100% { box-shadow: 0 0 0 0 rgba(244, 42, 65, 0.4); } 50% { box-shadow: 0 0 0 8px rgba(244, 42, 65, 0); } }

/* ===== Hero Section ===== */
.hero-section { padding: 2rem 0; }
.hero-section .container { max-width: 1280px; margin: 0 auto; padding: 0 1rem; }
.hero-grid { display: grid; grid-template-columns: 1fr 380px; gap: 2rem; align-items: start; }

/* Lead Story */
.lead-story { border-bottom: 2px solid var(--border-green); padding-bottom: 1.5rem; margin-bottom: 1.5rem; }
.lead-thumb { border-radius: 12px; overflow: hidden; border: 3px solid var(--border-green); transition: border-color 0.3s ease; margin-bottom: 1rem; aspect-ratio: 16/9; }
.lead-thumb:hover { border-color: var(--green); }
.lead-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s ease; }
.lead-thumb:hover img { transform: scale(1.03); }
.lead-title { font-size: 1.75rem; line-height: 1.25; color: var(--ink); margin: 0.5rem 0 0.75rem; }
.lead-title a { color: var(--ink); }
.lead-title a:hover { color: var(--green); }
.lead-excerpt { font-size: 1.05rem; line-height: 1.6; color: var(--ink-light); margin-bottom: 0.75rem; }
.lead-meta { font-size: 0.85rem; color: var(--ink-light); }
.lead-meta span { margin-right: 1rem; }

/* Sub Leads */
.sub-leads { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.sub-lead { border: 2px solid var(--border); border-radius: 12px; padding: 1rem; transition: all 0.3s ease; background: var(--bg-white); }
.sub-lead:hover { box-shadow: 0 8px 24px rgba(0, 106, 78, 0.12); border-color: var(--green); transform: translateY(-4px); }
.sub-lead-thumb { border-radius: 8px; overflow: hidden; border: 2px solid var(--border-green); margin-bottom: 0.75rem; aspect-ratio: 16/9; transition: border-color 0.3s ease; }
.sub-lead-thumb:hover { border-color: var(--green); }
.sub-lead-thumb img { width: 100%; height: 100%; object-fit: cover; }
.sub-lead-title { font-size: 1rem; line-height: 1.3; color: var(--ink); margin: 0.5rem 0 0.25rem; }
.sub-lead-title a { color: var(--ink); }
.sub-lead-title a:hover { color: var(--green); }
.sub-lead-meta { font-size: 0.8rem; color: var(--ink-light); }

/* ===== Latest News Panel ===== */
.latest-news-panel { background: linear-gradient(180deg, var(--bg-neutral) 0%, var(--bg-white) 100%); border: 2px solid var(--border-green); border-radius: 16px; padding: 1.5rem; box-shadow: 0 4px 20px rgba(0, 106, 78, 0.08); position: sticky; top: 140px; }
.latest-header { display: flex; justify-content: space-between; align-items: center; border-bottom: 3px solid var(--red); padding-bottom: 0.75rem; margin-bottom: 1rem; }
.latest-header h3 { color: var(--ink); font-size: 1.1rem; margin: 0; }
.latest-header .latest-dot { color: var(--red); font-size: 1.3rem; line-height: 1; margin-right: 0.4rem; }
.latest-header a { font-size: 0.85rem; font-weight: 600; color: var(--green); }
.latest-header a:hover { color: var(--red); }
.latest-list { display: flex; flex-direction: column; gap: 0.5rem; }
.latest-item { display: flex; gap: 0.75rem; padding: 0.5rem; border-radius: 8px; transition: all 0.2s ease; border-bottom: 1px solid var(--border); }
.latest-item:last-child { border-bottom: none; }
.latest-item:hover { background: var(--bg-white); transform: translateX(4px); box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05); }
.latest-thumb { flex-shrink: 0; width: 80px; height: 60px; border-radius: 8px; overflow: hidden; border: 2px solid var(--border); transition: border-color 0.2s ease; }
.latest-item:hover .latest-thumb { border-color: var(--green); }
.latest-thumb img { width: 100%; height: 100%; object-fit: cover; }
.latest-content { flex: 1; min-width: 0; }
.latest-title { font-size: 0.85rem; line-height: 1.35; color: var(--ink); margin: 0.25rem 0; font-weight: 600; }
.latest-title a { color: var(--ink); }
.latest-title a:hover { color: var(--red); }
.latest-time { font-size: 0.75rem; color: var(--ink-light); }

/* ===== Category Sections ===== */
.more-sections .container { max-width: 1280px; margin: 0 auto; padding: 0 1rem; }
.category-section { margin-bottom: 3rem; padding-bottom: 2rem; border-bottom: 2px solid var(--border); }
.category-section:last-child { border-bottom: none; }
.category-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 1.5rem; flex-wrap: wrap; gap: 0.5rem; }
.category-head h2 { color: var(--green-dark); font-size: 1.3rem; padding-bottom: 0.4rem; border-bottom: 3px solid var(--green); margin: 0; }
.category-head a { font-size: 0.85rem; font-weight: 600; color: var(--green); }
.category-head a:hover { color: var(--red); }
.category-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; }
.cat-card { border: 2px solid var(--border); border-radius: 12px; padding: 0.75rem; transition: all 0.3s ease; background: var(--bg-white); display: flex; flex-direction: column; }
.cat-card:hover { box-shadow: 0 8px 24px rgba(0, 106, 78, 0.12); border-color: var(--green); transform: translateY(-4px); }
.cat-thumb { border-radius: 8px; overflow: hidden; border: 2px solid var(--border-green); margin-bottom: 0.6rem; aspect-ratio: 16/9; transition: border-color 0.3s ease; }
.cat-thumb:hover { border-color: var(--green); }
.cat-thumb img { width: 100%; height: 100%; object-fit: cover; }
.cat-title { font-size: 0.85rem; line-height: 1.35; color: var(--ink); margin: 0.25rem 0; font-weight: 600; flex: 1; }
.cat-title a { color: var(--ink); }
.cat-title a:hover { color: var(--green); }
.cat-time { font-size: 0.75rem; color: var(--ink-light); }

/* ===== Single Article - Split Layout (matches Hero Page) ===== */
.single-article { max-width: 1200px; margin: 0 auto; padding: 0 20px; }

/* Header Bar */
.single-article .entry-header { margin-bottom: 24px; padding-bottom: 16px; border-bottom: 1px solid var(--border); }
.single-article .entry-title { font-size: 2rem; line-height: 1.25; color: var(--ink); margin: 8px 0 12px; }
.single-article .category-badge { font-size: 0.65rem; margin-bottom: 8px; }

.entry-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; font-size: 0.85rem; color: var(--ink-light); margin-bottom: 16px; }
.entry-meta .dot { color: var(--border); }
.entry-meta .author { font-weight: 500; }
.entry-meta .time { font-weight: 400; }

.font-switcher { display: flex; gap: 8px; margin-bottom: 16px; }
.font-btn { display: inline-flex; align-items: center; justify-content: center; min-width: 44px; height: 36px; padding: 0 12px; border: 1px solid var(--border); border-radius: 4px; background: var(--bg-white); color: var(--green); font-weight: 600; font-size: 0.85rem; font-family: var(--font-body); cursor: pointer; transition: all 0.2s ease; }
.font-btn:hover { border-color: var(--green); background: var(--bg-green-light); color: var(--green-dark); }
.font-btn:focus { outline: none; box-shadow: 0 0 0 3px rgba(0, 106, 78, 0.2); }

/* Article Split Layout */
.article-split { display: grid; grid-template-columns: 520px 1fr; gap: 32px; margin-bottom: 40px; }

/* Image Side - matches hero lead exactly */
.article-image { position: relative; }
.article-image .entry-thumb {
    width: 100%;
    aspect-ratio: 16/9;
    max-height: 440px;
    overflow: hidden;
    border-radius: 8px;
    border: 2px solid var(--border-green);
    transition: border-color 0.3s ease;
}
.article-image .entry-thumb:hover { border-color: var(--green); }
.article-image .entry-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}
.article-image .entry-thumb:hover img { transform: scale(1.02); }
.entry-caption { font-size: 0.85rem; color: var(--ink-light); margin-top: 10px; text-align: center; font-style: italic; line-height: 1.5; }

/* Content Side - flows alongside image, then continues below */
.article-content-wrapper {
    min-height: 440px; /* matches image height */
}
.entry-content { font-size: 18px; line-height: 1.75; color: var(--ink); }
.entry-content > * + * { margin-top: 1.25rem; }
.entry-content p { margin: 0; }
.entry-content img { border-radius: 8px; margin: 1.5rem auto; max-width: 100%; height: auto; }
.entry-content blockquote { border-left: 4px solid var(--green); background: var(--bg-green-light); padding: 1rem 1.5rem; margin: 1.5rem 0; border-radius: 0 8px 8px 0; font-style: italic; color: var(--ink-light); }

/* Mobile: stack the split */
@media (max-width: 1024px) {
    .article-split { grid-template-columns: 1fr; gap: 24px; }
    .article-content-wrapper { min-height: auto; }
    .article-image { max-width: 100%; }
}

/* Related Stories Strip */
.related-stories { margin-top: 40px; padding-top: 24px; border-top: 1px solid var(--border); }
.related-title { font-size: 1.1rem; color: var(--green-dark); margin: 0 0 16px; padding-bottom: 8px; border-bottom: 2px solid var(--green); display: inline-block; }
.related-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.related-card { background: var(--bg-white); border: 1px solid var(--border); border-radius: 8px; overflow: hidden; transition: all 0.2s ease; }
.related-card:hover { transform: translateY(-2px); box-shadow: 0 4px 12px rgba(0, 106, 78, 0.1); border-color: var(--green); }
.related-thumb { display: block; aspect-ratio: 16/10; overflow: hidden; }
.related-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.3s ease; }
.related-card:hover .related-thumb img { transform: scale(1.03); }
.related-content { padding: 12px; }
.related-card-title { font-size: 0.9rem; line-height: 1.35; color: var(--ink); margin: 0 0 6px; font-weight: 600; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.related-card-title a { color: var(--ink); }
.related-card-title a:hover { color: var(--green); }
.related-card-time { font-size: 0.75rem; color: var(--ink-light); }

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

/* ===== Islam & Life Section ===== */
.islam-life-section { background: var(--bg-white); border-top: 3px solid var(--green); margin-top: 3rem; padding: 2.5rem 0; }
.islam-life-section .container { max-width: 1280px; margin: 0 auto; padding: 0 1rem; }
.islam-life-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 1.5rem; flex-wrap: wrap; gap: 0.5rem; }
.islam-life-title { font-size: 1.3rem; color: var(--green-dark); margin: 0; padding-bottom: 0.4rem; border-bottom: 3px solid var(--green); }
.islam-life-viewall { font-size: 0.85rem; font-weight: 600; color: var(--green); }
.islam-life-viewall:hover { color: var(--red); }
.islam-life-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; }
.islam-life-card { background: var(--bg-white); border: 1px solid var(--border); border-radius: 8px; overflow: hidden; transition: all 0.2s ease; }
.islam-life-card:hover { transform: translateY(-2px); box-shadow: 0 4px 12px rgba(0, 106, 78, 0.1); border-color: var(--green); }
.islam-life-thumb { aspect-ratio: 16/10; overflow: hidden; }
.islam-life-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.3s ease; }
.islam-life-card:hover .islam-life-thumb img { transform: scale(1.03); }
.islam-life-content { padding: 12px; }
.islam-life-content .category-badge { font-size: 0.6rem; margin-bottom: 6px; }
.islam-life-card-title { font-size: 0.9rem; line-height: 1.35; color: var(--ink); margin: 0 0 6px; font-weight: 600; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.islam-life-card-title a { color: var(--ink); }
.islam-life-card-title a:hover { color: var(--green); }
.islam-life-time { font-size: 0.75rem; color: var(--ink-light); }

/* ===== Archive / Category / Tag / Search ===== */
.archive-header { margin-bottom: 2rem; }
.archive-title { color: var(--green-dark); font-size: 1.5rem; }
.archive-description { color: var(--ink-light); margin-top: 0.75rem; }
.archive-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; }
.archive-card { border: 2px solid var(--border); border-radius: 12px; padding: 0.75rem; transition: all 0.3s ease; background: var(--bg-white); display: flex; flex-direction: column; }
.archive-card:hover { box-shadow: 0 8px 24px rgba(0, 106, 78, 0.12); border-color: var(--green); transform: translateY(-4px); }
.archive-thumb { border-radius: 8px; overflow: hidden; border: 2px solid var(--border-green); margin-bottom: 0.6rem; aspect-ratio: 16/9; transition: border-color 0.3s ease; }
.archive-thumb:hover { border-color: var(--green); }
.archive-thumb img { width: 100%; height: 100%; object-fit: cover; }
.archive-title { font-size: 0.9rem; line-height: 1.35; color: var(--ink); margin: 0.25rem 0; font-weight: 600; flex: 1; }
.archive-title a { color: var(--ink); }
.archive-title a:hover { color: var(--green); }
.archive-excerpt { font-size: 0.8rem; color: var(--ink-light); margin: 0.25rem 0; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.archive-meta { font-size: 0.75rem; color: var(--ink-light); display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: auto; }

/* ===== Search Results ===== */
.search-header { margin-bottom: 2rem; }
.search-title { color: var(--ink); }
.search-title .text-green { color: var(--green) !important; }

/* ===== 404 ===== */
.error-404 { max-width: 500px; margin: 0 auto; text-align: center; padding: 3rem 1rem; }
.error-404 .error-icon { font-size: 4rem; margin-bottom: 1rem; }
.error-404 h1 { font-size: 5rem; line-height: 1; color: var(--green); margin: 0 0 1rem; }
.error-404 h2 { font-size: 1.5rem; color: var(--ink); margin: 0 0 1rem; }
.error-404 .lead { font-size: 1.1rem; color: var(--ink-light); margin-bottom: 2rem; }
.error-404 .search-form { max-width: 350px; margin: 0 auto 1.5rem; }
.error-404 .btn-group { display: flex; gap: 0.75rem; justify-content: center; flex-wrap: wrap; }

/* ===== Author ===== */
.author-header { background: var(--bg-green-light); border: 2px solid var(--border-green); border-radius: 12px; padding: 2rem; margin-bottom: 2rem; }
.author-header .row { display: flex; align-items: center; gap: 1.5rem; flex-wrap: wrap; }
.author-avatar { width: 100px; height: 100px; border-radius: 50%; border: 4px solid var(--green); object-fit: cover; flex-shrink: 0; }
.author-info { flex: 1; min-width: 200px; }
.author-title { color: var(--green-dark); font-size: 1.5rem; margin: 0 0 0.5rem; }
.author-bio { color: var(--ink-light); margin: 0 0 1rem; }
.author-meta { font-size: 0.85rem; color: var(--ink-light); }
.author-meta strong { color: var(--ink); }

/* ===== Sidebar ===== */
.sidebar { position: sticky; top: 140px; }
.sidebar-widget { background: var(--bg-green-light); border: 2px solid var(--border-green); border-radius: 12px; padding: 1.5rem; margin-bottom: 1.5rem; }
.widget-title { color: var(--green-dark); font-size: 1rem; border-bottom: 2px solid var(--green); padding-bottom: 0.5rem; margin-bottom: 1rem; }
.sidebar-widget .popular-item, .sidebar-widget .latest-item { padding: 0.5rem 0; border-bottom: 1px solid var(--border-green); }
.sidebar-widget .popular-item:last-child, .sidebar-widget .latest-item:last-child { border-bottom: none; }
.sidebar-widget .popular-title, .sidebar-widget .latest-title { font-size: 0.85rem; font-weight: 600; color: var(--ink); margin: 0 0 0.2rem; }
.sidebar-widget .popular-title a, .sidebar-widget .latest-title a { color: var(--ink); }
.sidebar-widget .popular-title a:hover, .sidebar-widget .latest-title a:hover { color: var(--green); }
.sidebar-widget .popular-time, .sidebar-widget .latest-time { font-size: 0.75rem; color: var(--ink-light); }

/* ===== Category Grid Template ===== */
.page-header { margin-bottom: 2rem; }
.page-title { color: var(--green); font-size: 1.8rem; margin: 0 0 0.5rem; }
.page-header p { color: var(--ink-light); margin: 0; }
.category-grid-template { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 1rem; }
.category-grid-item { display: block; text-decoration: none; }
.category-grid-inner { background: var(--bg-white); border: 2px solid var(--border-green); border-radius: 12px; padding: 2rem 1.5rem; text-align: center; transition: all 0.3s ease; height: 100%; }
.category-grid-inner:hover { border-color: var(--green); box-shadow: 0 8px 24px rgba(0, 106, 78, 0.12); transform: translateY(-4px); }
.category-grid-icon { width: 70px; height: 70px; border-radius: 50%; background: var(--bg-green-light); display: flex; align-items: center; justify-content: center; margin: 0 auto 1rem; font-size: 1.8rem; color: var(--green); }
.category-grid-name { color: var(--green); font-size: 1.1rem; margin: 0 0 0.4rem; }
.category-grid-count { font-size: 0.85rem; color: var(--ink-light); }

/* ===== Pagination ===== */
.pagination { display: flex; justify-content: center; gap: 0.4rem; margin: 2rem 0; flex-wrap: wrap; }
.pagination .page-link { display: inline-flex; align-items: center; justify-content: center; min-width: 40px; height: 40px; padding: 0 0.85rem; color: var(--green); border: 2px solid var(--border-green); border-radius: 8px; font-weight: 600; transition: all 0.2s ease; }
.pagination .page-link:hover { background: var(--green); color: #fff; border-color: var(--green); }
.pagination .page-item.active .page-link { background: var(--green); border-color: var(--green); color: #fff; }
.pagination .page-item.disabled .page-link { color: var(--ink-light); border-color: var(--border); pointer-events: none; }
.pagination .page-link:focus { outline: none; box-shadow: 0 0 0 3px rgba(0, 106, 78, 0.2); }

/* ===== Footer ===== */
.site-footer { background: linear-gradient(180deg, var(--ink) 0%, #0D0F0E 100%); color: #fff; position: relative; overflow: hidden; margin-top: 3rem; }
.site-footer::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 4px; background: linear-gradient(90deg, var(--green) 0%, var(--red) 50%, var(--green) 100%); }
.site-footer .container { max-width: 1280px; margin: 0 auto; padding: 3rem 1rem 2rem; }
.footer-grid { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 2rem; margin-bottom: 2rem; }
.footer-brand .site-title { color: var(--green); font-size: 2rem; margin: 0 0 1rem; text-shadow: 2px 2px 0 rgba(0,0,0,0.3); }
.mission-text { font-size: 0.95rem; color: #aaa; line-height: 1.7; margin: 0; }
.footer-title { color: var(--green); font-size: 1.1rem; margin: 0 0 1rem; position: relative; padding-bottom: 0.5rem; }
.footer-title::after { content: ''; position: absolute; bottom: 0; left: 0; width: 40px; height: 3px; background: var(--red); border-radius: 2px; }
.footer-nav ul { display: flex; flex-direction: column; gap: 0.5rem; }
.footer-nav a { color: #ccc; transition: color 0.2s ease; text-decoration: none; }
.footer-nav a:hover { color: var(--green-light); }
.footer-contact { font-style: normal; font-size: 0.9rem; color: #aaa; line-height: 1.7; }
.footer-contact strong { color: var(--green-light); display: block; margin-bottom: 0.5rem; }
.footer-contact p { margin: 0.4rem 0; }
.footer-contact a { color: var(--green-light); text-decoration: underline; }
.footer-contact a:hover { color: var(--green); }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, 0.1); padding-top: 1.5rem; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 1rem; }
.copyright { font-size: 0.85rem; color: #888; margin: 0; }
.powered-by { font-size: 0.85rem; color: #888; margin: 0; }

/* ===== Utility ===== */
.bg-green-light { background-color: var(--bg-green-light) !important; }
.bg-red-light { background-color: var(--bg-red-light) !important; }
.border-green { border-color: var(--border-green) !important; }
.text-green { color: var(--green) !important; }
.text-red { color: var(--red) !important; }
.btn-green { display: inline-flex; align-items: center; justify-content: center; background: linear-gradient(135deg, var(--green) 0%, var(--green-dark) 100%); border: none; color: #fff; padding: 0.6rem 1.5rem; border-radius: 2rem; font-weight: 600; transition: all 0.2s ease; box-shadow: 0 4px 12px rgba(0, 106, 78, 0.3); cursor: pointer; font-family: var(--font-body); text-decoration: none; }
.btn-green:hover { background: linear-gradient(135deg, var(--green-dark) 0%, var(--green) 100%); transform: translateY(-2px); box-shadow: 0 6px 20px rgba(0, 106, 78, 0.4); color: #fff; }
.btn-outline-green { display: inline-flex; align-items: center; justify-content: center; background: transparent; border: 2px solid var(--green); color: var(--green); padding: 0.6rem 1.5rem; border-radius: 2rem; font-weight: 600; transition: all 0.2s ease; cursor: pointer; font-family: var(--font-body); text-decoration: none; }
.btn-outline-green:hover { background: var(--green); color: #fff; }

/* ===== Placeholder ===== */
.placeholder-thumb { background: linear-gradient(135deg, var(--border) 0%, var(--border-green) 100%); display: flex; align-items: center; justify-content: center; color: var(--ink-light); width: 100%; height: 100%; }

/* ===== Responsive ===== */
@media (max-width: 1024px) {
	.hero-grid { grid-template-columns: 1fr 340px; gap: 1.5rem; }
	.category-grid, .archive-grid, .related-grid, .islam-life-grid { grid-template-columns: repeat(2, 1fr); }
	.footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 768px) {
	.site-title { font-size: 1.8rem; }
	.lead-title { font-size: 1.5rem; }
	.search-field { width: 160px; }
	.nav-menu li a { padding: 0.5rem 0.75rem; font-size: 0.85rem; }
	.main-navigation { background: var(--bg-white); }
	.site-header { border-bottom-width: 3px; }
	.hero-grid { grid-template-columns: 1fr; }
	.latest-news-panel { position: static; margin-top: 1.5rem; }
	.sub-leads { grid-template-columns: 1fr; }
	.strip-row { grid-template-columns: repeat(2, 1fr); }
	.related-grid { grid-template-columns: 1fr; }
	.footer-grid { grid-template-columns: 1fr; }
	.error-404 h1 { font-size: 3.5rem; }
	.author-header { text-align: center; }
	.author-header .row { justify-content: center; }
	.single-article { padding: 20px 16px; }
	.single-article .entry-title { font-size: 1.75rem; }
	.entry-content { font-size: 17px; }
}
@media (max-width: 576px) {
	.header-top { flex-direction: column; text-align: center; }
	.site-branding { order: -1; }
	.search-field { width: 100%; }
	.lead-title { font-size: 1.25rem; }
	.lead-excerpt { font-size: 0.95rem; }
	.site-title { font-size: 1.5rem; }
	.date-text { font-size: 0.8rem; }
	.strip-row { grid-template-columns: 1fr; }
	.category-grid, .archive-grid, .islam-life-grid { grid-template-columns: 1fr; }
	.nav-menu { gap: 0.15rem; }
	.nav-menu li a { padding: 0.45rem 0.6rem; font-size: 0.8rem; }
	.error-404 h1 { font-size: 2.5rem; }
	.footer-bottom { flex-direction: column; text-align: center; }
	.related-grid { grid-template-columns: 1fr; }
	.single-article { padding: 16px 12px; }
	.single-article .entry-title { font-size: 1.5rem; }
	.entry-content { font-size: 16px; }
	.entry-thumb { max-height: 280px; }
}

/* ===== Focus & Selection ===== */
:focus-visible { outline: 3px solid var(--green); outline-offset: 2px; }
::selection { background: var(--green); color: #fff; }
::-moz-selection { background: var(--green); color: #fff; }

/* ===== WP Core ===== */
.alignleft { float: left; margin-right: 1.5rem; }
.alignright { float: right; margin-left: 1.5rem; }
.aligncenter { display: block; margin-left: auto; margin-right: auto; }
.wp-caption { max-width: 100%; }
.wp-caption-text { font-size: 0.85rem; color: var(--ink-light); text-align: center; margin-top: 0.5rem; }
.sticky { border-top: 3px solid var(--green); padding-top: 1rem; }
.bypostauthor { }
.screen-reader-text { clip: rect(1px, 1px, 1px, 1px); position: absolute !important; height: 1px; width: 1px; overflow: hidden; word-wrap: normal !important; }