/*
Theme Name: Theme By Sojan T.S
Theme URI: https://theonwo.com
Author: Sojan TS
Author URI: https://theonwo.com
Description: A dark, elegant WordPress theme with gold accents. Built for Theonwo.
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: theonwo-by-sojan-ts
*/

/* ========== VARIABLES ========== */
:root {
    --bg: #0b0f17;
    --bg-soft: #101625;
    --card: #121a2a;
    --ink: #e7eefc;
    --muted: #a9b7d6;
    --brand: #e3b86a;
    --border: rgba(227,184,106,.18);
    --border-hover: rgba(227,184,106,.38);
    --shadow: 0 10px 30px rgba(0,0,0,.45), 0 3px 10px rgba(0,0,0,.35);
    --radius: 16px;
}

/* ========== STARFIELD BACKGROUND ========== */
#starfield {
    position: fixed;
    inset: 0;
    z-index: -2;
    background: #060a12;
}

.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(227,184,106,.08), transparent 60%);
    filter: saturate(1.1);
}

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

body {
    font-family: 'Inter', 'DM Sans', system-ui, -apple-system, sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: var(--ink);
    background: transparent;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: var(--brand);
}

a:hover {
    color: #f6d992;
}

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

/* ========== NAVBAR ========== */
.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    background: linear-gradient(to bottom, rgba(11,15,23,.85), rgba(11,15,23,.55));
    border-bottom: 1px solid rgba(227,184,106,.16);
    padding: 0;
}

.navbar {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 14px 20px;
}

.site-logo {
    display: flex;
    align-items: center;
}

.site-logo a {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--ink);
    font-weight: 700;
    letter-spacing: 0.5px;
}

.logo-icon {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #05070c;
    box-shadow: inset 0 2px 8px rgba(255,255,255,.12), 0 6px 18px rgba(227,184,106,.35);
    flex-shrink: 0;
}

.logo-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.logo-text {
    font-family: 'Playfair Display', serif;
    font-size: 1.25rem;
    font-weight: 700;
}

.nav-menu {
    list-style: none;
    display: flex;
    gap: 8px;
    align-items: center;
    margin-left: auto;
}

.nav-menu li a {
    color: var(--muted);
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s;
    padding: 10px 12px;
    border-radius: 10px;
    display: block;
}

.nav-menu li a:hover,
.nav-menu li.current-menu-item a {
    color: var(--ink);
    background: rgba(227,184,106,.12);
}

.nav-cta {
    background: linear-gradient(135deg, var(--brand), #f6d992) !important;
    color: #152138 !important;
    font-weight: 700 !important;
    padding: 10px 14px !important;
    border-radius: 12px !important;
    box-shadow: 0 6px 16px rgba(227,184,106,.35);
}

.nav-cta:hover {
    opacity: 0.9;
    background: linear-gradient(135deg, var(--brand), #f6d992) !important;
    color: #152138 !important;
}

/* Hamburger Toggle */
.menu-toggle {
    display: none;
    margin-left: auto;
    background: none;
    border: 1px solid rgba(227,184,106,.25);
    border-radius: 10px;
    cursor: pointer;
    padding: 9px 10px;
    flex-direction: column;
    gap: 4px;
    align-items: center;
    justify-content: center;
}

.menu-toggle span {
    display: block;
    width: 20px;
    height: 2px;
    background: var(--ink);
    border-radius: 2px;
    transition: 0.3s;
}

/* Mobile Overlay */
.mob-overlay {
    position: fixed;
    inset: 0;
    background: rgba(4,8,16,.55);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    z-index: 1100;
}

.mob-overlay.show {
    opacity: 1;
    pointer-events: auto;
}

/* Mobile Sidebar */
.mob-sidebar {
    position: fixed;
    top: 10px;
    bottom: 10px;
    left: 10px;
    width: min(340px, 85vw);
    z-index: 1200;
    transform: translateX(calc(-100% - 20px));
    transition: transform 0.35s cubic-bezier(.25,.1,.25,1);
    pointer-events: none;
}

.mob-sidebar.open {
    transform: translateX(0);
    pointer-events: auto;
}

.mob-sidebar-inner {
    height: 100%;
    display: flex;
    flex-direction: column;
    background: linear-gradient(145deg, rgba(8,12,24,0.96), rgba(5,9,20,0.94));
    border-radius: 24px;
    border: 1px solid rgba(227,184,106,.28);
    box-shadow: 0 24px 70px rgba(0,0,0,.85);
    backdrop-filter: blur(26px) saturate(150%);
    -webkit-backdrop-filter: blur(26px) saturate(150%);
    padding: 20px;
    overflow-y: auto;
}

.mob-sidebar-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-bottom: 18px;
    border-bottom: 1px solid rgba(227,184,106,.15);
    margin-bottom: 24px;
}

.mob-sidebar-brand {
    display: flex;
    align-items: center;
    gap: 10px;
}

.mob-sidebar-logo {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    overflow: hidden;
    background: #05070c;
    box-shadow: 0 4px 14px rgba(0,0,0,.6);
    flex-shrink: 0;
}

.mob-sidebar-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.mob-sidebar-name {
    font-family: 'Playfair Display', serif;
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--ink);
}

.mob-sidebar-close {
    width: 38px;
    height: 38px;
    border-radius: 14px;
    border: 1px solid rgba(227,184,106,.3);
    background: rgba(6,10,20,.9);
    color: var(--ink);
    font-size: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.2s, transform 0.2s;
    box-shadow: 0 6px 20px rgba(0,0,0,.5);
}

.mob-sidebar-close:hover {
    background: rgba(227,184,106,.15);
    transform: translateY(-1px);
}

.mob-sidebar-nav {
    display: flex;
    flex-direction: column;
    gap: 6px;
    flex: 1;
}

.mob-sidebar-nav a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 11px 14px;
    font-size: 0.92rem;
    font-weight: 600;
    color: var(--muted);
    border-radius: 12px;
    transition: all 0.2s;
    letter-spacing: .02em;
}

.mob-sidebar-nav a svg {
    flex-shrink: 0;
    opacity: 0.5;
    transition: opacity 0.2s;
}

.mob-sidebar-nav a:hover {
    color: var(--ink);
    background: rgba(227,184,106,.08);
}

.mob-sidebar-nav a:hover svg {
    opacity: 1;
    color: var(--brand);
}

.mob-nav-sub {
    padding-left: 32px !important;
    font-size: 0.88rem !important;
}

.mob-nav-sub svg {
    width: 15px;
    height: 15px;
}

/* Mobile Accordion */
.mob-nav-accordion {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 11px 14px;
    background: none;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    color: var(--muted);
    font-family: inherit;
    transition: all 0.2s;
}

.mob-nav-accordion:hover {
    background: rgba(227,184,106,.08);
    color: var(--ink);
}

.mob-nav-accordion-left {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.92rem;
    font-weight: 600;
    letter-spacing: .02em;
}

.mob-nav-accordion-left svg {
    opacity: 0.5;
    flex-shrink: 0;
}

.mob-nav-accordion:hover .mob-nav-accordion-left svg {
    opacity: 1;
    color: var(--brand);
}

.mob-nav-accordion-right {
    display: flex;
    align-items: center;
    gap: 8px;
}

.mob-nav-count {
    font-size: 0.68rem;
    font-weight: 700;
    background: rgba(227,184,106,.15);
    color: var(--brand);
    padding: 2px 8px;
    border-radius: 10px;
    min-width: 20px;
    text-align: center;
}

.mob-nav-chevron {
    transition: transform 0.3s ease;
    opacity: 0.4;
}

.mob-nav-accordion.open .mob-nav-chevron {
    transform: rotate(180deg);
}

.mob-nav-accordion.open {
    color: var(--ink);
}

.mob-nav-accordion.open .mob-nav-accordion-left svg {
    opacity: 1;
    color: var(--brand);
}

.mob-nav-submenu {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.mob-nav-submenu.open {
    max-height: 200px;
}

.mob-nav-cta {
    background: linear-gradient(135deg, var(--brand), #f6d992) !important;
    color: #152138 !important;
    font-weight: 700 !important;
    text-align: center;
    border-radius: 12px !important;
    box-shadow: 0 6px 16px rgba(227,184,106,.3);
    margin-top: 8px;
}

.mob-sidebar-footer {
    padding-top: 18px;
    border-top: 1px solid rgba(227,184,106,.1);
    margin-top: auto;
}

.mob-sidebar-footer p {
    font-size: 0.75rem;
    color: rgba(169,183,214,.4);
    margin: 0;
}

/* ========== BLOG LAYOUT ========== */
.page-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    padding: 30px 20px;
}

.blog-layout {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 30px;
    align-items: start;
}

.blog-list {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.posts-count {
    font-size: 14px;
    color: var(--muted);
    margin-bottom: 15px;
}

.posts-count strong {
    color: var(--brand);
}

/* ========== BLOG CARD ========== */
.blog-card {
    background: rgba(6,10,18,.88);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 25px;
    margin-bottom: 20px;
    transition: border-color 0.3s, box-shadow 0.3s;
}

.blog-card:hover {
    border-color: var(--border-hover);
    box-shadow: var(--shadow);
}

.blog-card-title {
    font-family: 'DM Sans', 'Inter', sans-serif;
    font-size: 20px;
    font-weight: 700;
    line-height: 1.4;
    margin-bottom: 6px;
}

.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(--muted);
    margin-bottom: 15px;
    flex-wrap: wrap;
}

.blog-card-meta .meta-author {
    color: var(--brand);
    font-weight: 600;
}

.blog-card-meta .meta-sep {
    color: rgba(227,184,106,.3);
}

.blog-card-body {
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

.blog-card-thumb {
    width: 200px;
    height: 130px;
    flex-shrink: 0;
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid var(--border);
}

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

.blog-card-thumb .no-thumb {
    width: 100%;
    height: 100%;
    background: rgba(16,22,37,.8);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--muted);
    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;
    background: rgba(227,184,106,.1);
    color: var(--brand);
    font-size: 11px;
    font-weight: 700;
    padding: 3px 12px;
    border-radius: 999px;
    text-transform: uppercase;
    letter-spacing: .08em;
    border: 1px solid rgba(227,184,106,.22);
    align-self: flex-start;
}

.blog-card-category:hover {
    background: var(--brand);
    color: #152138;
}

/* ========== BLOG GRID ========== */
.blog-list-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 15px;
}

.posts-page-info {
    font-size: 14px;
    color: var(--muted);
}

.posts-page-info strong {
    color: var(--brand);
}

/* Search Bar - Mobile (above posts, hidden on desktop) */
.search-bar-mobile {
    display: none;
    margin-bottom: 16px;
}

.search-bar-mobile form {
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(255,255,255,.05);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 10px 16px;
    transition: border-color 0.2s;
}

.search-bar-mobile form:focus-within {
    border-color: rgba(227,184,106,.4);
}

.search-bar-mobile svg {
    color: var(--muted);
    flex-shrink: 0;
}

.search-bar-mobile input {
    background: none;
    border: none;
    outline: none;
    color: var(--ink);
    font-size: 14px;
    font-family: inherit;
    width: 100%;
}

.search-bar-mobile input::placeholder {
    color: rgba(169,183,214,.4);
}

@media (max-width: 992px) {
    .search-bar-mobile {
        display: block;
    }
}

/* Sidebar Search (hidden on mobile since mobile has its own) */
.sidebar-search {
    padding: 14px;
}

@media (max-width: 992px) {
    .sidebar-search { display: none; }
}

.sidebar-search-form {
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(255,255,255,.05);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 10px 14px;
    transition: border-color 0.2s;
}

.sidebar-search-form:focus-within {
    border-color: rgba(227,184,106,.4);
}

.sidebar-search-form svg {
    color: var(--muted);
    flex-shrink: 0;
}

.sidebar-search-form input {
    background: none;
    border: none;
    outline: none;
    color: var(--ink);
    font-size: 13px;
    font-family: inherit;
    width: 100%;
}

.sidebar-search-form input::placeholder {
    color: rgba(169,183,214,.4);
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
}

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

.blog-grid-card {
    display: flex;
    flex-direction: column;
    background: linear-gradient(180deg, rgba(255,255,255,.04), rgba(255,255,255,.02));
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    transition: transform 0.25s, box-shadow 0.25s, border-color 0.25s;
    color: var(--ink);
}

.blog-grid-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow);
    border-color: rgba(227,184,106,.38);
    color: var(--ink);
}

/* Padded rounded thumbnail - matches homepage */
.blog-grid-thumb-wrap {
    padding: 10px 10px 0;
}

.blog-grid-thumb-wrap img {
    width: 100%;
    aspect-ratio: 16/9;
    object-fit: cover;
    display: block;
    border-radius: 10px;
    transition: transform 0.45s ease;
}

.blog-grid-card:hover .blog-grid-thumb-wrap img {
    transform: scale(1.03);
}

.blog-grid-thumb-wrap .no-thumb {
    width: 100%;
    aspect-ratio: 16/9;
    background: rgba(10,16,30,.9);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--muted);
    font-size: 12px;
    border-radius: 10px;
}

.blog-grid-body {
    padding: 12px 14px 16px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.blog-grid-tag {
    display: inline-block;
    background: rgba(227,184,106,.1);
    color: var(--brand);
    font-size: 0.6rem;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 999px;
    text-transform: uppercase;
    letter-spacing: .06em;
    border: 1px solid rgba(227,184,106,.22);
    margin-bottom: 8px;
    margin-right: 4px;
}

.blog-grid-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    margin-bottom: 6px;
}

.blog-grid-title {
    font-family: 'DM Sans', 'Inter', sans-serif;
    font-size: 0.92rem;
    font-weight: 700;
    line-height: 1.4;
    margin: 0 0 6px;
    color: var(--ink);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.blog-grid-excerpt {
    font-size: 0.8rem;
    color: var(--muted);
    line-height: 1.6;
    margin: 0 0 10px;
    flex: 1;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.blog-grid-author {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--ink);
    margin-bottom: 3px;
}

.blog-grid-meta {
    font-size: 0.7rem;
    color: var(--muted);
    display: flex;
    align-items: center;
    gap: 6px;
}

.blog-grid-dot {
    opacity: 0.4;
}

/* ========== PRAYER CARDS (Reel-style) ========== */
.prayer-grid,
.prayer-grid-home {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}

@media (max-width: 900px) { .prayer-grid, .prayer-grid-home { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 600px) { .prayer-grid, .prayer-grid-home { grid-template-columns: repeat(2, 1fr); } }

.prayer-card {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid var(--border);
    background: rgba(10,16,30,.9);
    transition: transform 0.25s, box-shadow 0.25s, border-color 0.25s;
    display: block;
    color: var(--ink);
}

.prayer-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow);
    border-color: rgba(227,184,106,.4);
    color: var(--ink);
}

.prayer-card-thumb {
    aspect-ratio: 9/16;
    overflow: hidden;
}

.prayer-card-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease;
}

.prayer-card:hover .prayer-card-thumb img {
    transform: scale(1.06);
}

.prayer-card-thumb .no-thumb {
    width: 100%;
    height: 100%;
    background: rgba(16,22,37,.8);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--muted);
    font-size: 12px;
    aspect-ratio: 9/16;
}

.prayer-card-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(6,10,18,.85) 0%, rgba(6,10,18,.1) 50%, transparent 100%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 16px;
}

.prayer-card-title {
    font-size: 0.88rem;
    font-weight: 700;
    color: #fff;
    line-height: 1.3;
    margin: 0 0 4px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.prayer-card-date {
    font-size: 0.7rem;
    color: rgba(255,255,255,.6);
}

/* ========== NAVBAR DROPDOWN ========== */
.nav-dropdown {
    position: relative;
}

.nav-dropdown > a {
    display: flex !important;
    align-items: center;
    gap: 6px;
    cursor: pointer;
}

.nav-dropdown > a::after {
    content: '';
    display: inline-block;
    width: 0;
    height: 0;
    border-left: 4px solid transparent;
    border-right: 4px solid transparent;
    border-top: 5px solid currentColor;
    opacity: 0.5;
    transition: transform 0.25s, opacity 0.25s;
}

.nav-dropdown:hover > a::after {
    transform: rotate(180deg);
    opacity: 1;
}

.nav-dropdown:hover > a {
    color: var(--ink);
}

.nav-sub-menu {
    position: absolute;
    top: calc(100% + 8px);
    left: 50%;
    transform: translateX(-50%) translateY(6px);
    background: rgba(8,12,24,.97);
    border: 1px solid rgba(227,184,106,.2);
    border-radius: 14px;
    padding: 6px;
    min-width: 180px;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s, visibility 0.2s, transform 0.2s;
    box-shadow: 0 20px 50px rgba(0,0,0,.65);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    z-index: 100;
    list-style: none;
}

.nav-dropdown:hover .nav-sub-menu {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.nav-sub-menu li a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    font-size: 13px;
    font-weight: 500;
    color: var(--muted);
    border-radius: 10px;
    transition: all 0.2s;
    white-space: nowrap;
}

.nav-sub-menu li a:hover {
    color: var(--ink);
    background: rgba(227,184,106,.1);
}

.nav-sub-menu li + li {
    margin-top: 2px;
}

/* ========== TAG FILTER ========== */
.tag-filter {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 20px;
}

.tag-filter-item {
    display: inline-block;
    padding: 7px 16px;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--muted);
    border: 1px solid var(--border);
    border-radius: 20px;
    transition: all 0.2s;
}

.tag-filter-item:hover {
    color: var(--ink);
    border-color: rgba(227,184,106,.4);
    background: rgba(227,184,106,.08);
}

.tag-filter-item.active {
    background: linear-gradient(135deg, var(--brand), #f6d992);
    color: #152138;
    border-color: var(--brand);
    font-weight: 700;
}

/* ========== LOAD MORE ========== */
.load-more-wrapper {
    text-align: center;
    margin-top: 25px;
}

.load-more-btn {
    display: inline-block;
    background: linear-gradient(135deg, var(--brand), #f6d992);
    color: #152138;
    padding: 12px 35px;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 700;
    border: none;
    cursor: pointer;
    transition: opacity 0.3s, transform 0.2s;
    box-shadow: 0 6px 16px rgba(227,184,106,.35);
}

.load-more-btn:hover {
    opacity: 0.9;
    transform: translateY(-1px);
    color: #152138;
}

.load-more-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

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

.sidebar-widget {
    background: rgba(6,10,18,.88);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 20px;
}

.sidebar-widget h3 {
    font-family: 'DM Sans', 'Inter', sans-serif;
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 15px;
    color: var(--ink);
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(227,184,106,.15);
}

.banner-space {
    background: rgba(16,22,37,.6);
    border: 2px dashed rgba(227,184,106,.2);
    border-radius: 10px;
    min-height: 250px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--muted);
    font-size: 13px;
    text-align: center;
    padding: 20px;
}

.sidebar-widget ul {
    list-style: none;
}

.sidebar-widget ul li {
    padding: 8px 0;
    border-bottom: 1px solid rgba(227,184,106,.1);
}

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

.sidebar-widget ul li a {
    color: var(--muted);
    font-size: 14px;
}

.sidebar-widget ul li a:hover {
    color: var(--brand);
}

/* Sidebar Posts with Thumbnails */
.sidebar-post-item {
    display: flex;
    gap: 12px;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid rgba(227,184,106,.1);
}

.sidebar-post-item:last-child {
    border-bottom: none;
}

.sidebar-post-thumb {
    width: 70px;
    height: 55px;
    border-radius: 8px;
    overflow: hidden;
    flex-shrink: 0;
    border: 1px solid var(--border);
}

.sidebar-post-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.sidebar-post-thumb .no-thumb-sm {
    width: 100%;
    height: 100%;
    background: rgba(16,22,37,.8);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    color: var(--muted);
}

.sidebar-post-info {
    min-width: 0;
    overflow: hidden;
    flex: 1;
}

.sidebar-post-info h4 {
    font-size: 13px;
    font-weight: 600;
    line-height: 1.4;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.sidebar-post-info h4 a {
    color: var(--ink);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.sidebar-post-info h4 a:hover {
    color: var(--brand);
}

/* Sidebar Comments */
.sidebar-comment {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    padding: 12px 0;
    border-bottom: 1px solid rgba(227,184,106,.1);
}

.sidebar-comment:last-child {
    border-bottom: none;
}

.comment-avatar {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: rgba(16,22,37,.8);
    flex-shrink: 0;
    overflow: hidden;
    border: 1px solid var(--border);
}

.comment-avatar img,
.comment-avatar .avatar {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    object-fit: cover;
    display: block;
}

.comment-info strong {
    font-size: 14px;
    font-weight: 700;
    color: var(--ink);
    display: block;
    margin-bottom: 2px;
}

.comment-info p {
    font-size: 13px;
    color: var(--muted);
    margin: 0;
    line-height: 1.5;
}

/* Sidebar: Sponsored Posts */
.sidebar-sponsored {
    padding: 14px;
}

.sponsored-label {
    display: inline-block;
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--brand);
    margin-bottom: 10px;
}

.sponsored-card {
    display: block;
    border-radius: 10px;
    overflow: hidden;
    transition: opacity 0.2s;
    color: var(--ink);
}

a.sponsored-card:hover {
    opacity: 0.9;
    color: var(--ink);
}

.sponsored-image {
    margin-bottom: 10px;
}

.sponsored-image img {
    border-radius: 10px;
}

.sponsored-info {
    padding: 0 2px;
}

.sponsored-title {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--ink);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-bottom: 4px;
    line-height: 1.4;
}

.sponsored-desc {
    font-size: 0.78rem;
    color: var(--muted);
    line-height: 1.5;
    margin: 0;
}

/* Sidebar Tags */
.sidebar-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.sidebar-tags a {
    display: inline-block;
    border: 1px solid var(--border);
    color: var(--muted);
    padding: 5px 14px;
    border-radius: 8px;
    font-size: 12px;
    transition: all 0.2s;
}

.sidebar-tags a:hover {
    background: var(--brand);
    color: #152138;
    border-color: var(--brand);
}

/* ========== SINGLE POST ========== */
.single-post-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    padding: 30px 20px;
}

.single-post-layout {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 30px;
    align-items: start;
}

.single-post-main {
    min-width: 0;
}

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

.single-breadcrumb a {
    color: var(--brand);
}

.single-post-content {
    background: rgba(6,10,18,.92);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 30px;
}

.single-post-title {
    font-family: 'Playfair Display', serif;
    font-size: 28px;
    font-weight: 800;
    line-height: 1.3;
    color: var(--ink);
    margin-bottom: 12px;
}

.single-post-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: var(--muted);
    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;
    border: 1px solid var(--border);
}

.meta-author-link {
    color: var(--brand);
    font-weight: 600;
}

.meta-dot {
    color: rgba(227,184,106,.3);
}

.single-post-thumb {
    width: 100%;
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 25px;
    border: 1px solid var(--border);
}

.single-post-thumb img {
    width: 100%;
    height: auto;
    display: block;
}

.single-post-body {
    font-size: 16px;
    line-height: 1.8;
    color: var(--muted);
}

.single-post-body h2 {
    font-family: 'Playfair Display', serif;
    font-size: 24px;
    margin: 30px 0 15px;
    color: var(--ink);
}

.single-post-body h3 {
    font-size: 20px;
    margin: 25px 0 12px;
    color: var(--ink);
}

.single-post-body p {
    margin-bottom: 18px;
}

.single-post-body img {
    border-radius: 12px;
    margin: 15px 0;
    border: 1px solid var(--border);
}

.single-post-body blockquote {
    border-left: 4px solid var(--brand);
    padding: 20px 25px;
    margin: 25px 0;
    background: rgba(227,184,106,.05);
    border-radius: 0 12px 12px 0;
    font-style: italic;
    color: var(--ink);
    line-height: 1.7;
}

.single-post-body ul, .single-post-body ol {
    margin: 15px 0;
    padding-left: 30px;
}

.single-post-body li {
    margin-bottom: 8px;
}

.single-post-body a {
    color: var(--brand);
    border-bottom: 1px solid rgba(227,184,106,.3);
}

/* Tags */
.single-post-tags {
    margin-top: 25px;
    padding-top: 20px;
    border-top: 1px solid rgba(227,184,106,.1);
    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;
    border: none;
}

/* Share Buttons */
.single-share {
    display: flex;
    gap: 8px;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid rgba(227,184,106,.1);
    flex-wrap: wrap;
}

.share-btn {
    display: inline-flex;
    align-items: center;
    padding: 8px 18px;
    border-radius: 10px;
    color: #fff;
    font-size: 13px;
    font-weight: 600;
    transition: opacity 0.2s;
}

.share-btn:hover { opacity: 0.85; color: #fff; }
.share-facebook { background: #1877f2; }
.share-twitter { background: #0a0a0a; }
.share-whatsapp { background: #25d366; }
.share-email { background: rgba(255,255,255,.15); color: var(--ink); border: 1px solid var(--border); }

/* Author Box */
.author-box {
    display: flex;
    gap: 20px;
    align-items: center;
    background: rgba(6,10,18,.88);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 25px;
    margin-top: 20px;
}

.author-avatar img, .author-avatar .avatar {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--border);
}

.author-info h4 {
    font-size: 17px;
    font-weight: 700;
    color: var(--ink);
    margin-bottom: 5px;
}

.author-info p {
    font-size: 13px;
    color: var(--muted);
    line-height: 1.5;
    margin: 0;
}

/* Related Posts */
.related-posts {
    background: rgba(6,10,18,.88);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 25px;
    margin-top: 20px;
}

.related-posts h3 {
    font-size: 18px;
    font-weight: 700;
    color: var(--ink);
    margin-bottom: 20px;
}

.related-posts-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
}

.related-post-card a { color: var(--ink); }
.related-post-card a:hover { color: var(--brand); }

.related-post-thumb {
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 10px;
    height: 120px;
    border: 1px solid var(--border);
}

.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: rgba(6,10,18,.88);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 25px;
    margin-top: 20px;
}

.comments-section h3 {
    font-size: 18px;
    font-weight: 700;
    color: var(--ink);
    margin-bottom: 15px;
}

.comment-note {
    font-size: 13px;
    color: var(--muted);
    font-style: italic;
    margin-bottom: 15px;
}

.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 { list-style: none; }

.comment-card {
    padding: 20px 0;
    border-bottom: 1px solid rgba(227,184,106,.1);
}

.comment-card:last-child { border-bottom: none; }

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

.comment-user-avatar img, .comment-user-avatar .avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
    border: 1px solid var(--border);
}

.comment-author-name {
    font-size: 15px;
    font-weight: 700;
    color: var(--ink);
    display: block;
}

.comment-date {
    font-size: 12px;
    color: var(--muted);
}

.comment-body-text {
    font-size: 14px;
    color: var(--muted);
    line-height: 1.7;
    padding-left: 62px;
    margin-bottom: 10px;
}

.comment-body-text p { margin: 0 0 8px; }
.comment-body-text p:last-child { margin-bottom: 0; }

.comment-reply-link {
    padding-left: 62px;
    margin-top: 8px;
}

.comment-reply-link a {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    color: var(--brand);
    font-size: 12px;
    font-weight: 600;
    padding: 5px 14px;
    border: 1px solid rgba(227,184,106,.2);
    border-radius: 8px;
    transition: all 0.2s;
}

.comment-reply-link a:hover {
    background: rgba(227,184,106,.1);
    border-color: rgba(227,184,106,.4);
}

.comments-list .children {
    list-style: none;
    padding-left: 40px;
    margin: 0;
}

/* Comment Form */
.comment-form-wrapper {
    margin-top: 25px;
    padding-top: 20px;
    border-top: 1px solid rgba(227,184,106,.1);
}

/* Comment Form */
.comment-form-field textarea {
    width: 100%;
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 15px;
    font-size: 14px;
    font-family: inherit;
    resize: vertical;
    background: rgba(16,22,37,.6);
    color: var(--ink);
    transition: border-color 0.2s;
}

.comment-form-field textarea:focus {
    outline: none;
    border-color: var(--brand);
}

.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%;
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 10px 15px;
    font-size: 14px;
    font-family: inherit;
    margin-bottom: 12px;
    background: rgba(16,22,37,.6);
    color: var(--ink);
    transition: border-color 0.2s;
}

.comment-form input:focus {
    outline: none;
    border-color: var(--brand);
}

.comment-form .comment-form-cookies-consent {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 12px 0;
    font-size: 13px;
    color: var(--muted);
}

.comment-form .comment-form-cookies-consent input[type="checkbox"] {
    width: 16px;
    height: 16px;
    accent-color: var(--brand);
    margin: 0;
}

.comment-form p.comment-notes,
.comment-form .logged-in-as {
    font-size: 13px;
    color: var(--muted);
    margin-bottom: 15px;
}

.comment-form .logged-in-as a {
    color: var(--brand);
}

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

.comment-submit-btn {
    display: inline-block;
    background: linear-gradient(135deg, var(--brand), #f6d992);
    color: #152138;
    border: none;
    padding: 12px 30px;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    transition: opacity 0.3s;
    margin-top: 10px;
    width: 100%;
    box-shadow: 0 6px 16px rgba(227,184,106,.35);
}

.comment-submit-btn:hover { opacity: 0.9; }

/* Cancel Reply */
#cancel-comment-reply-link {
    display: inline-block;
    font-size: 13px;
    font-weight: 600;
    color: #ff6b6b;
    margin-left: 12px;
    padding: 4px 12px;
    border: 1px solid rgba(255,107,107,.25);
    border-radius: 8px;
    transition: all 0.2s;
}

#cancel-comment-reply-link:hover {
    background: rgba(255,107,107,.1);
    border-color: rgba(255,107,107,.4);
}

/* Comment body links */
.comment-body-text a {
    color: var(--brand);
    border-bottom: 1px solid rgba(227,184,106,.3);
}

.comment-body-text a:hover {
    border-bottom-color: var(--brand);
}

/* Post Navigation */
.post-nav-bottom {
    display: flex;
    justify-content: space-between;
    margin-top: 20px;
    padding: 20px 25px;
    background: rgba(6,10,18,.88);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid var(--border);
    border-radius: var(--radius);
}

.post-nav-bottom a {
    font-size: 14px;
    color: var(--brand);
    font-weight: 600;
}

/* ========== FOOTER ========== */
.site-footer {
    background: rgba(6,10,18,.7);
    border-top: 1px solid rgba(227,184,106,.12);
    padding: 0;
    margin-top: 60px;
    color: var(--muted);
    font-size: 14px;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 50px 20px 0;
}

.footer-top {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: 40px;
    padding-bottom: 40px;
}

@media (max-width: 900px) {
    .footer-top { grid-template-columns: 1fr 1fr; gap: 30px; }
}
@media (max-width: 500px) {
    .footer-top { grid-template-columns: 1fr; gap: 25px; }
}

/* Footer Brand */
.footer-brand {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-logo-row {
    display: flex;
    align-items: center;
    gap: 10px;
}

.footer-logo-icon {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    overflow: hidden;
    background: #05070c;
    box-shadow: 0 4px 14px rgba(227,184,106,.25);
    flex-shrink: 0;
}

.footer-logo-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.footer-brand-name {
    font-family: 'Playfair Display', serif;
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--ink);
}

.footer-tagline {
    font-size: 0.85rem;
    color: var(--muted);
    margin: 0;
}

.footer-mission-title {
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: .08em;
    margin: 12px 0 4px;
}

.footer-mission {
    font-size: 0.8rem;
    color: rgba(169,183,214,.45);
    margin: 8px 0 0;
    line-height: 1.5;
    max-width: 280px;
}

/* Footer Columns */
.footer-col h4 {
    font-family: 'DM Sans', 'Inter', sans-serif;
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--ink);
    text-transform: uppercase;
    letter-spacing: .08em;
    margin-bottom: 16px;
}

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

.footer-col ul li {
    margin-bottom: 10px;
}

.footer-col ul li a {
    color: var(--muted);
    font-size: 0.88rem;
    transition: color 0.2s;
}

.footer-col ul li a:hover {
    color: var(--brand);
}

/* Footer Contact */
.footer-email {
    margin: 0 0 14px;
}

.footer-email a {
    color: var(--brand);
    font-size: 0.88rem;
    font-weight: 500;
}

.footer-email a:hover {
    color: #f6d992;
}

/* Footer Social Icon Boxes */
.footer-social-icons {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.footer-icon-box {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 10px;
    background: rgba(255,255,255,.06);
    border: 1px solid rgba(227,184,106,.15);
    color: var(--muted);
    transition: all 0.25s;
}

.footer-icon-box:hover {
    background: rgba(227,184,106,.12);
    border-color: rgba(227,184,106,.4);
    color: var(--brand);
    transform: translateY(-2px);
}

/* Footer Bottom */
.footer-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
    padding: 20px 0;
    border-top: 1px solid rgba(227,184,106,.1);
    font-size: 0.8rem;
    color: rgba(169,183,214,.4);
}

.footer-bottom p {
    margin: 0;
}

.footer-credit {
    font-size: 0.75rem;
    color: rgba(169,183,214,.3);
}

/* ========== SCROLL TO TOP ========== */
.scroll-top {
    position: fixed;
    bottom: 24px;
    right: 24px;
    width: 44px;
    height: 44px;
    border-radius: 14px;
    border: 1px solid rgba(227,184,106,.3);
    background: rgba(6,10,18,.9);
    backdrop-filter: blur(10px);
    color: var(--brand);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 900;
    opacity: 0;
    transform: translateY(20px);
    pointer-events: none;
    transition: opacity 0.3s, transform 0.3s, background 0.2s;
    box-shadow: 0 8px 24px rgba(0,0,0,.5);
}

.scroll-top.show {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.scroll-top:hover {
    background: rgba(227,184,106,.15);
    border-color: rgba(227,184,106,.5);
}

/* ========== PAGE TEMPLATE ========== */
.single-post-layout.page-layout .single-post-content {
    padding: 40px;
}

/* ========== MOBILE RESPONSIVE ========== */
@media (max-width: 992px) {
    .blog-layout,
    .single-post-layout {
        grid-template-columns: 1fr;
    }

    .sidebar {
        position: static;
    }
}

@media (max-width: 900px) {
    .navbar {
        padding: 14px 16px;
    }

    .site-header {
        padding: 8px 0;
    }

    .logo-icon {
        width: 36px;
        height: 36px;
    }

    .logo-text {
        font-size: 1.1rem;
    }

    .logo-icon {
        width: 38px;
        height: 38px;
    }

    .nav-menu {
        display: none !important;
    }

    .menu-toggle {
        display: flex;
        z-index: 1001;
    }

    .blog-card {
        padding: 20px;
    }

    .blog-card-title {
        font-size: 17px;
    }

    .blog-card-thumb {
        width: 120px;
        height: 90px;
    }

    .blog-card-desc {
        font-size: 13px;
    }

    .single-post-title {
        font-size: 22px;
    }

    .single-post-content {
        padding: 20px;
    }

    .single-post-meta {
        flex-wrap: wrap;
        gap: 6px;
    }

    .related-posts-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .author-box {
        flex-direction: column;
        text-align: center;
    }

    .comment-body-text, .comment-reply-link {
        padding-left: 0;
        margin-top: 10px;
    }

    .comment-header {
        gap: 10px;
    }

    .comment-user-avatar img, .comment-user-avatar .avatar {
        width: 40px;
        height: 40px;
    }

    .single-share { flex-wrap: wrap; }
    .share-btn { padding: 8px 14px; font-size: 12px; }

    .post-nav-bottom {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .navbar { padding: 0 15px; }

    .blog-card-body { flex-direction: column; }
    .blog-card-thumb { width: 100%; height: 160px; }

    .single-post-title { font-size: 20px; }
    .related-posts-grid { grid-template-columns: 1fr; }
}
