/* Custom Theme Styles - Al-Hiwar Al-Iqtisadi Design */

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

:root {
    /* Primary Colors */
    --color-primary: #75C044;
    --color-primary-dark: #5A9B35;
    --color-secondary: #D3A10F;
    --color-secondary-light: #F1C40F;

    /* Background Colors */
    --bg-primary: #245485;
    --bg-primary-dark: #0F1722;
    --bg-secondary: #1A1A1A;
    --bg-tertiary: #2D2D2D;

    /* Text Colors */
    --text-primary: #FFFFFF;
    --text-secondary: #B3B3B3;
    --text-light: #808080;

    /* UI Colors */
    --border: #333333;
    --error: #FF4444;
    --success: #75C044;
    --warning: #D3A10F;
    --shadow: rgba(255, 255, 255, 0.1);

    /* Gradients */
    --gradient-primary: linear-gradient(135deg, #75C044 0%, #5A9B35 100%);
    --gradient-secondary: linear-gradient(135deg, #D3A10F 0%, #F1C40F 100%);
    --gradient-background: linear-gradient(135deg, rgba(36, 84, 133, 0.8) 0%, rgba(15, 23, 34, 0.9) 100%);

    /* Spacing System (8px Grid) */
    --space-xs: 4px;
    --space-sm: 8px;
    --space-md: 16px;
    --space-lg: 24px;
    --space-xl: 32px;
    --space-2xl: 48px;
    --space-3xl: 64px;

    /* Border Radius */
    --radius-small: 8px;
    --radius-medium: 12px;
    --radius-large: 16px;
    --radius-round: 50%;

    /* Shadows */
    --shadow-soft: 0 4px 8px var(--shadow);
    --shadow-hard: 0 8px 16px var(--shadow);

    /* Transitions */
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

body {
    font-family: 'Inter', 'Roboto', 'Segoe UI', Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-primary);
    background: url('/wp-content/themes/journalism-newspaper/assets/images/background.jpeg');
    background-size: cover;
    background-attachment: fixed;
    background-position: center center;
    background-repeat: no-repeat;
    overflow-x: hidden;
    font-size: 16px;
    font-weight: 400;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: inherit;
    font-weight: 600;
    line-height: 1.3;
    color: var(--text-primary);
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: var(--gradient-background);
    backdrop-filter: blur(20px);
    z-index: 999;
    padding: var(--space-md) 0;
    transition: var(--transition);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

.nav-logo img {
    height: 60px;
    width: auto;
    object-fit: contain;
    max-width: 200px;
    transition: all 0.3s ease;
}

.nav-logo h2 {
    color: var(--color-secondary);
    font-size: 28px;
    margin: 0;
    font-weight: 600;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 30px;
    margin: 0;
    padding: 0;
}

.nav-menu a {
    color: var(--text-primary);
    text-decoration: none;
    font-weight: 500;
    position: relative;
    transition: var(--transition);
    padding: var(--space-sm) var(--space-md);
    border-radius: var(--radius-small);
}

.nav-menu a:hover {
    color: var(--color-secondary);
    background: rgba(255, 255, 255, 0.1);
}

.nav-menu a.active {
    color: var(--color-primary);
    background: rgba(117, 192, 68, 0.1);
}

/* Hamburger Menu */
.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: var(--text-primary);
    margin: 3px 0;
    transition: var(--transition);
}

/* Secondary Navigation - Gradient Chips Style */
.secondary-nav {
    max-height: 60px;
    z-index: 1;
    background: transparent;
    border: none !important;
    border-top: none !important;
    border-bottom: none !important;
    padding: 12px 16px;
    margin: 3rem 0 1rem 0;
    overflow: hidden;
    box-shadow: none !important;
}

.secondary-nav::before,
.secondary-nav::after {
    display: none !important;
}

.secondary-nav .container {
    border: none !important;
    border-top: none !important;
    border-bottom: none !important;
    box-shadow: none !important;
}

.secondary-nav .container::before,
.secondary-nav .container::after {
    display: none !important;
}

.secondary-nav-content {
    padding: 0;
    overflow-x: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.secondary-nav-content::-webkit-scrollbar {
    display: none;
}

.nav-tabs {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 8px;
    justify-content: flex-start;
    overflow-x: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
    flex-wrap: nowrap;
    border-bottom: none !important;
    --bs-nav-tabs-border-width: 0 !important;
    --bs-nav-tabs-border-color: transparent !important;
}

.nav-tabs::-webkit-scrollbar {
    display: none;
}

.nav-tab {
    border-radius: 20px;
    overflow: hidden;
    flex-shrink: 0;
    transition: all 0.3s ease;
}

.nav-tab a {
    display: block;
    padding: 8px 16px;
    color: var(--text-primary);
    text-decoration: none !important;
    font-weight: 500;
    font-size: 14px;
    background: linear-gradient(135deg, 
        rgba(139, 195, 74, 0.1) 0%, 
        rgba(76, 175, 80, 0.1) 50%, 
        rgba(67, 160, 71, 0.1) 100%);
    border: 1px solid rgba(139, 195, 74, 0.2);
    border-radius: 20px;
    transition: all 0.3s ease;
    white-space: nowrap;
    border-bottom: none !important;
}

.nav-tab:hover {
    transform: translateY(-2px);
}

.nav-tab:hover a {
    background: linear-gradient(135deg, 
        rgba(139, 195, 74, 0.2) 0%, 
        rgba(76, 175, 80, 0.2) 50%, 
        rgba(67, 160, 71, 0.2) 100%);
    border-color: rgba(139, 195, 74, 0.4);
    box-shadow: 0 4px 12px rgba(139, 195, 74, 0.2);
    color: var(--text-primary);
    text-decoration: none !important;
}

.nav-tab.active a {
    background: linear-gradient(135deg, 
        #8BC34A 0%, 
        #4CAF50 50%, 
        #43A047 100%);
    color: white;
    border-color: #8BC34A;
    font-weight: 600;
    box-shadow: 0 4px 12px rgba(139, 195, 74, 0.3);
    text-decoration: none !important;
}

/* Content Area */
#content-wrap {
    margin-top: 0;
    padding: var(--space-2xl) 0;
    min-height: calc(100vh - 200px);
}

/* Content Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Blog Archive Styles */
.blog-archive {
    background: rgba(255, 255, 255, 0.05);
    border-radius: var(--radius-large);
    padding: var(--space-2xl);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Article Styles */
article {
    background: rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-medium);
    padding: var(--space-xl);
    margin-bottom: var(--space-xl);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: var(--transition);
}

article:hover {
    background: rgba(255, 255, 255, 0.12);
    transform: translateY(-2px);
    box-shadow: var(--shadow-soft);
}

.entry-title a {
    color: var(--text-primary);
    text-decoration: none;
    transition: var(--transition);
}

.entry-title a:hover {
    color: var(--color-secondary);
}

.entry-meta {
    color: var(--text-secondary);
    font-size: 14px;
    margin-bottom: var(--space-md);
}

.entry-content {
    color: var(--text-primary);
    line-height: 1.8;
}

/* Buttons */
.btn, .more-link {
    padding: var(--space-md) var(--space-lg);
    border: none;
    border-radius: var(--radius-small);
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    cursor: pointer;
    text-align: center;
    min-height: 44px;
    background: var(--gradient-primary);
    color: var(--text-primary);
    box-shadow: var(--shadow-soft);
}

.btn:hover, .more-link:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-hard);
    filter: brightness(1.1);
    color: var(--text-primary);
    text-decoration: none;
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: var(--space-md);
    margin-top: var(--space-2xl);
}

.page-numbers {
    padding: var(--space-sm) var(--space-md);
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-primary);
    text-decoration: none;
    border-radius: var(--radius-small);
    transition: var(--transition);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.page-numbers:hover,
.page-numbers.current {
    background: var(--gradient-primary);
    color: var(--text-primary);
    text-decoration: none;
}

/* Post Navigation (Previous/Next) - Override theme defaults */
.comment-navigation,
.posts-navigation,
.post-navigation {
    margin: var(--space-3xl) 0 !important;
    padding: var(--space-xl) 0 !important;
    border-top: 1px solid rgba(255, 255, 255, 0.1) !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1) !important;
    clear: both !important;
}

.nav-links {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    gap: var(--space-lg) !important;
    max-width: 1200px !important;
    margin: 0 auto !important;
    padding: 0 20px !important;
}

.comment-navigation .nav-previous,
.posts-navigation .nav-previous,
.post-navigation .nav-previous,
.comment-navigation .nav-next,
.posts-navigation .nav-next,
.post-navigation .nav-next {
    float: none !important;
    width: auto !important;
    flex: 1 !important;
    max-width: 45% !important;
    text-align: left !important;
}

.comment-navigation .nav-next,
.posts-navigation .nav-next,
.post-navigation .nav-next {
    text-align: right !important;
}

.site-main .comment-navigation a, 
.site-main .posts-navigation a, 
.site-main .post-navigation a,
.nav-previous a,
.nav-next a {
    display: flex !important;
    align-items: center !important;
    gap: var(--space-sm) !important;
    padding: var(--space-lg) !important;
    background: rgba(255, 255, 255, 0.05) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    border-radius: var(--radius-medium) !important;
    color: var(--text-primary) !important;
    text-decoration: none !important;
    transition: var(--transition) !important;
    backdrop-filter: blur(10px) !important;
    min-height: 80px !important;
}

.site-main .comment-navigation a:hover, 
.site-main .posts-navigation a:hover, 
.site-main .post-navigation a:hover,
.site-main .comment-navigation a:focus, 
.site-main .posts-navigation a:focus, 
.site-main .post-navigation a:focus,
.nav-previous a:hover,
.nav-next a:hover {
    background: rgba(255, 255, 255, 0.1) !important;
    border-color: var(--color-primary) !important;
    transform: translateY(-2px) !important;
    box-shadow: var(--shadow-soft) !important;
    color: var(--text-primary) !important;
}

.nav-next a {
    flex-direction: row-reverse !important;
    justify-content: flex-start !important;
}

/* SVG Icons styling */
.nav-previous svg,
.nav-next svg {
    width: 20px;
    height: 20px;
    fill: var(--color-primary);
    transition: var(--transition);
}

.nav-previous a:hover svg,
.nav-next a:hover svg {
    fill: var(--color-secondary);
    transform: translateX(-2px);
}

.nav-next a:hover svg {
    transform: translateX(2px);
}

/* Screen reader text */
.screen-reader-text {
    position: absolute !important;
    clip: rect(1px, 1px, 1px, 1px);
    clip-path: inset(50%);
    width: 1px;
    height: 1px;
    overflow: hidden;
}

/* Navigation subtitle styling */
.nav-subtitle {
    font-size: 0.8rem !important;
    color: var(--text-secondary) !important;
    font-weight: 500 !important;
    display: block !important;
    margin-bottom: 4px !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
}

/* Navigation title styling */
.nav-title {
    font-weight: 600 !important;
    font-size: 0.95rem !important;
    line-height: 1.3 !important;
    color: var(--text-primary) !important;
    display: flex !important;
    align-items: center !important;
    gap: var(--space-sm) !important;
}

/* Icon wrapper positioning */
.nav-title-icon-wrapper {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 20px !important;
    height: 20px !important;
}

/* Previous post - icon on left */
.nav-previous .nav-title {
    flex-direction: row !important;
}

.nav-previous .nav-title-icon-wrapper {
    order: -1 !important;
    margin-right: var(--space-xs) !important;
}

/* Next post - icon on right */
.nav-next .nav-title {
    flex-direction: row !important;
    justify-content: flex-start !important;
}

.nav-next .nav-title-icon-wrapper {
    order: 1 !important;
    margin-left: var(--space-xs) !important;
}

/* Navigation content layout */
.nav-previous a,
.nav-next a {
    flex-direction: column !important;
    align-items: flex-start !important;
    text-align: left !important;
}

/* Remove right alignment from next link */
.nav-next a {
    align-items: flex-start !important;
    text-align: left !important;
}

/* But keep the container right-aligned */
.nav-next {
    display: flex !important;
    justify-content: flex-end !important;
}

/* SVG icons in navigation */
.nav-previous .icon,
.nav-next .icon {
    width: 16px !important;
    height: 16px !important;
    fill: var(--color-primary) !important;
    transition: var(--transition) !important;
}

.nav-previous a:hover .icon,
.nav-next a:hover .icon {
    fill: var(--color-secondary) !important;
}

/* Meta navigation text */
.meta-nav {
    font-size: 0.85rem;
    color: var(--text-secondary);
    font-weight: 500;
    display: block;
    margin-bottom: 4px;
}

/* Post title in navigation */
.nav-previous .post-title,
.nav-next .post-title {
    font-weight: 600;
    font-size: 1rem;
    line-height: 1.3;
    color: var(--text-primary);
}

/* WordPress posts pagination */
.posts-pagination {
    margin: var(--space-3xl) 0;
}

.posts-pagination .nav-links {
    justify-content: center;
    flex-wrap: wrap;
}

.posts-pagination .page-numbers {
    margin: 4px;
    min-width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
}

.posts-pagination .prev,
.posts-pagination .next {
    padding: var(--space-sm) var(--space-lg);
    background: var(--gradient-primary);
    border: none;
}

.posts-pagination .prev:hover,
.posts-pagination .next:hover {
    background: var(--gradient-secondary);
    transform: translateY(-2px);
    box-shadow: var(--shadow-soft);
}

/* Footer */
.footer {
    /* background: var(--bg-primary-dark); */
    color: var(--text-primary);
    padding: var(--space-3xl) 0 var(--space-xl);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: var(--space-2xl);
    margin-bottom: var(--space-2xl);
}

.footer-about h3,
.footer-links h4,
.footer-social h4 {
    color: var(--color-secondary);
    margin-bottom: var(--space-md);
    font-size: 1.2rem;
}

.footer-about p {
    color: var(--text-secondary);
    line-height: 1.6;
}

.footer-links ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: var(--space-sm);
}

.footer-links a {
    color: var(--text-light);
    text-decoration: none;
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--color-primary);
}

.social-links {
    display: flex;
    gap: var(--space-md);
}

.social-links a {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-round);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.social-links a:hover {
    background: var(--gradient-primary);
    transform: translateY(-2px);
}

.social-links svg {
    width: 20px;
    height: 20px;
    fill: var(--text-primary);
}

.footer-logo-section {
    text-align: center;
    padding: var(--space-xl) 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-logo img {
    height: 200px;
    margin-bottom: var(--space-md);
}

.footer-logo h2 {
    color: var(--color-secondary);
    margin-bottom: var(--space-sm);
}

.footer-logo p {
    color: var(--text-secondary);
}

.footer-bottom {
    text-align: center;
    padding-top: var(--space-xl);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-bottom p {
    color: var(--text-secondary);
    font-size: 14px;
}

/* Sidebar - Simple Design */
.widget-area {
    background: rgba(255, 255, 255, 0.05);
    border-radius: var(--radius-medium);
    padding: var(--space-lg);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    /* margin-left: var(--space-lg); */
}

.widget {
    margin-bottom: var(--space-xl);
    padding: var(--space-md);
    background: transparent;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.widget:last-child {
    margin-bottom: 0;
    border-bottom: none;
}

.widget-title {
    color: var(--text-primary);
    margin-bottom: var(--space-md);
    font-size: 1.1rem;
    font-weight: 600;
}

.widget ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.widget li {
    margin-bottom: var(--space-sm);
    padding-bottom: var(--space-sm);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.widget li:last-child {
    margin-bottom: 0;
    border-bottom: none;
}

.widget a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: var(--transition);
}

.widget a:hover {
    color: var(--color-primary);
}

/* Simple Search Widget */
.widget_search .search-form {
    display: flex;
    gap: var(--space-sm);
}

.widget_search .search-field {
    flex: 1;
    padding: var(--space-sm) var(--space-md);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: var(--radius-small);
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-primary);
    font-size: 0.9rem;
}

.widget_search .search-field:focus {
    outline: none;
    border-color: var(--color-primary);
    background: rgba(255, 255, 255, 0.15);
}

.widget_search .search-field::placeholder {
    color: var(--text-secondary);
}

.widget_search .search-submit {
    padding: var(--space-sm) var(--space-md);
    background: var(--color-primary) !important;
    border: none;
    border-radius: var(--radius-small);
    color: white !important;
    cursor: pointer;
    transition: var(--transition);
}

.widget_search .search-submit:hover {
    background: var(--color-secondary) !important;
}

/* Simple Tag Cloud */
.tagcloud a {
    display: inline-block;
    padding: 4px 8px;
    margin: 2px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-small);
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.85rem;
    transition: var(--transition);
}

.tagcloud a:hover {
    background: var(--color-primary);
    color: white;
}

/* Single Post Design */
.single-post-wrap {
    background: rgba(255, 255, 255, 0.05);
    border-radius: var(--radius-large);
    padding: var(--space-2xl);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    margin-bottom: var(--space-xl);
}

.single .blog-post-item {
    background: transparent;
    border: none;
    padding: 0;
    margin: 0;
}

.single .featured-image {
    margin-bottom: var(--space-xl);
    border-radius: var(--radius-medium);
    overflow: hidden;
    box-shadow: var(--shadow-soft);
}

.single .featured-image img {
    width: 100%;
    height: auto;
    display: block;
    transition: var(--transition);
}

.single .entry-meta {
    background: rgba(255, 255, 255, 0.05);
    padding: var(--space-md) var(--space-lg);
    border-radius: var(--radius-medium);
    margin-bottom: var(--space-xl);
    display: flex;
    gap: var(--space-lg);
    align-items: center;
    flex-wrap: wrap;
}

.single .entry-meta a {
    color: var(--color-primary);
    text-decoration: none;
    font-weight: 500;
}

.single .entry-meta a:hover {
    color: var(--color-secondary);
}

.single .entry-header {
    margin-bottom: var(--space-xl);
    text-align: center;
    padding-bottom: var(--space-lg);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.single .entry-title {
    font-size: 2.5rem;
    line-height: 1.2;
    color: var(--text-primary);
    margin: 0;
    font-weight: 700;
}

.single .entry-content {
    color: var(--text-primary);
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: var(--space-2xl);
}

.single .entry-content p {
    margin-bottom: var(--space-lg);
}

.single .entry-content h1,
.single .entry-content h2,
.single .entry-content h3,
.single .entry-content h4,
.single .entry-content h5,
.single .entry-content h6 {
    color: var(--text-primary);
    margin-top: var(--space-2xl);
    margin-bottom: var(--space-lg);
    font-weight: 600;
}

.single .entry-content h2 {
    font-size: 1.8rem;
    color: var(--color-primary);
}

.single .entry-content h3 {
    font-size: 1.5rem;
}

.single .entry-content blockquote {
    background: rgba(255, 255, 255, 0.05);
    border-left: 4px solid var(--color-primary);
    padding: var(--space-lg);
    margin: var(--space-xl) 0;
    border-radius: 0 var(--radius-small) var(--radius-small) 0;
    font-style: italic;
    color: var(--text-secondary);
}

.single .entry-content img {
    max-width: 100%;
    height: auto;
    border-radius: var(--radius-medium);
    box-shadow: var(--shadow-soft);
    margin: var(--space-lg) 0;
}

.single .entry-content ul,
.single .entry-content ol {
    padding-left: var(--space-xl);
    margin-bottom: var(--space-lg);
}

.single .entry-content li {
    margin-bottom: var(--space-sm);
}

.single .entry-footer {
    background: rgba(255, 255, 255, 0.03);
    padding: var(--space-lg);
    border-radius: var(--radius-medium);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.single .entry-footer .cat-links,
.single .entry-footer .tags-links {
    display: inline-block;
    margin-right: var(--space-lg);
    margin-bottom: var(--space-sm);
}

.single .entry-footer a {
    color: var(--color-primary);
    text-decoration: none;
    padding: 4px 8px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: var(--radius-small);
    font-size: 0.9rem;
    transition: var(--transition);
}

.single .entry-footer a:hover {
    background: var(--color-primary);
    color: white;
}

/* Simple Search Results Page */
.search .page-header {
    background: rgba(255, 255, 255, 0.05);
    padding: var(--space-lg);
    border-radius: var(--radius-medium);
    margin-bottom: var(--space-lg);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.search .page-title {
    color: var(--text-primary);
    font-size: 1.5rem;
    margin: 0;
}

.search .page-title span {
    color: var(--color-primary);
    font-weight: 600;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .footer-content {
        grid-template-columns: 1fr 1fr;
        gap: var(--space-xl);
    }

    .nav-menu {
        gap: 20px;
    }
    
    .widget-area {
        margin-left: 0;
        margin-top: var(--space-xl);
        max-width: 100%;
    }
}

@media (max-width: 768px) {
    .nav-menu {
        display: none;
    }

    .hamburger {
        display: flex;
    }

    .nav-logo h2 {
        font-size: 20px;
    }

    .nav-logo img {
        height: 40px;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: var(--space-xl);
    }

    .secondary-nav {
        margin: var(--space-md) 0 var(--space-lg);
        padding: var(--space-sm) 0;
    }
    
    .nav-tabs {
        gap: var(--space-xs);
    }
    
    .nav-tab a {
        padding: var(--space-xs) var(--space-md);
        font-size: 0.85rem;
    }
    
    .nav-tab a:hover {
        transform: translateY(-2px) scale(1.02);
    }
    
    .nav-tab.active a {
        animation: none;
        transform: translateY(-1px);
    }

    #content-wrap {
        margin-top: 0;
        padding: var(--space-xl) 0;
    }

    .blog-archive {
        padding: var(--space-xl);
    }

    article {
        padding: var(--space-lg);
    }
    
    .single-post-wrap {
        padding: var(--space-lg);
    }
    
    .single .entry-title {
        font-size: 2rem;
    }
    
    .single .entry-content {
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }

    .nav-container {
        padding: 0 15px;
    }

    .blog-archive {
        padding: var(--space-lg);
    }

    article {
        padding: var(--space-md);
    }
    
    .single-post-wrap {
        padding: var(--space-md);
    }
    
    .single .entry-title {
        font-size: 1.8rem;
    }
    
    .single .entry-meta {
        flex-direction: column;
        gap: var(--space-sm);
        text-align: center;
    }
}

/* WordPress Specific Overrides */
.site-content {
    background: transparent;
}

.site-main {
    background: transparent;
}

/* Override default WordPress styles */
.entry-header .entry-title {
    margin-bottom: var(--space-md);
}

.entry-footer {
    margin-top: var(--space-lg);
    padding-top: var(--space-lg);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.cat-links,
.tags-links,
.comments-link {
    color: var(--text-secondary);
    margin-right: var(--space-md);
}

.cat-links a,
.tags-links a,
.comments-link a {
    color: var(--color-primary);
    text-decoration: none;
}

.cat-links a:hover,
.tags-links a:hover,
.comments-link a:hover {
    color: var(--color-secondary);
}

/* Search Form */
.search-form {
    display: flex;
    gap: var(--space-sm);
}

.search-field {
    flex: 1;
    padding: var(--space-sm) var(--space-md);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: var(--radius-small);
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-primary);
    backdrop-filter: blur(10px);
}

.search-field::placeholder {
    color: var(--text-secondary);
}

.search-submit {
    padding: var(--space-sm) var(--space-md);
    background: var(--gradient-primary);
    border: none;
    border-radius: var(--radius-small);
    color: var(--text-primary);
    cursor: pointer;
    transition: var(--transition);
}

.search-submit:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-soft);
}

/* Facebook-Style Comments */
.fb-comments-area {
    background: rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-medium);
    padding: var(--space-xl);
    margin-top: var(--space-xl);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.fb-comments-header {
    margin-bottom: var(--space-lg);
    padding-bottom: var(--space-md);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.fb-comments-title {
    color: var(--text-primary);
    font-size: 1.1rem;
    font-weight: 600;
    margin: 0;
}

.fb-comments-list {
    margin-bottom: var(--space-xl);
}

.fb-comment-item {
    display: flex;
    gap: var(--space-sm);
    margin-bottom: var(--space-lg);
    position: relative;
}

.fb-comment-avatar {
    flex-shrink: 0;
}

.fb-comment-avatar img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.1);
}

.fb-comment-content {
    flex: 1;
    min-width: 0;
}

.fb-comment-bubble {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 18px;
    padding: var(--space-sm) var(--space-md);
    margin-bottom: 4px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.fb-comment-author {
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 2px;
}

.fb-comment-author cite {
    font-style: normal;
    color: var(--text-primary);
    text-decoration: none;
}

.fb-comment-author a {
    color: var(--text-primary);
    text-decoration: none;
}

.fb-comment-author a:hover {
    text-decoration: underline;
}

.fb-comment-text {
    color: var(--text-primary);
    font-size: 0.9rem;
    line-height: 1.4;
    word-wrap: break-word;
}

.fb-comment-meta {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    margin-left: var(--space-sm);
}

.fb-comment-time {
    font-size: 0.75rem;
    color: var(--text-secondary);
}

.fb-comment-time a {
    color: var(--text-secondary);
    text-decoration: none;
}

.fb-comment-time a:hover {
    text-decoration: underline;
}

.fb-comment-actions {
    display: flex;
    gap: var(--space-md);
}

.fb-like-btn,
.fb-comment-actions a {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-secondary);
    text-decoration: none;
    padding: 2px 6px;
    border-radius: 4px;
    transition: var(--transition);
    cursor: pointer;
}

.fb-like-btn:hover,
.fb-comment-actions a:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--color-primary);
}

.fb-like-btn.liked {
    color: #1877f2;
    font-weight: 700;
}

/* Nested Comments - Facebook Style */
/* WordPress generates depth-X classes, so we target those specifically */

/* Level 1 - Top level comments */
.depth-1 {
    margin-left: 0;
}

/* Level 2 - First replies */
.depth-2 {
    margin-left: 48px !important;
    padding-left: var(--space-md);
    border-left: 2px solid rgba(255, 255, 255, 0.1);
    margin-top: var(--space-md);
}

.depth-2 .fb-comment-avatar img {
    width: 32px !important;
    height: 32px !important;
}

.depth-2 .fb-comment-bubble {
    font-size: 0.9rem;
    background: rgba(255, 255, 255, 0.08);
}

.depth-2 .fb-comment-meta {
    font-size: 0.75rem;
}

.depth-2 .fb-comment-author {
    font-size: 0.85rem;
}

/* Level 3 - Replies to replies */
.depth-3 {
    margin-left: 80px !important;
    padding-left: var(--space-sm);
    border-left: 1px solid rgba(255, 255, 255, 0.08);
    margin-top: var(--space-md);
}

.depth-3 .fb-comment-avatar img {
    width: 28px !important;
    height: 28px !important;
}

.depth-3 .fb-comment-bubble {
    font-size: 0.85rem;
    background: rgba(255, 255, 255, 0.06);
}

.depth-3 .fb-comment-meta {
    font-size: 0.7rem;
}

/* Level 4 and beyond */
.depth-4,
.depth-5 {
    margin-left: 108px !important;
    padding-left: 8px;
    border-left: 1px solid rgba(255, 255, 255, 0.05);
    margin-top: var(--space-md);
}

.depth-4 .fb-comment-avatar img,
.depth-5 .fb-comment-avatar img {
    width: 24px !important;
    height: 24px !important;
}

.depth-4 .fb-comment-bubble,
.depth-5 .fb-comment-bubble {
    font-size: 0.8rem;
    background: rgba(255, 255, 255, 0.04);
}

.depth-4 .fb-comment-meta,
.depth-5 .fb-comment-meta {
    font-size: 0.65rem;
}

/* Alternative approach - using :nth-child if depth classes don't work */
.fb-comments-list .children {
    margin-left: 48px !important;
    padding-left: var(--space-md);
    border-left: 2px solid rgba(255, 255, 255, 0.1);
    margin-top: var(--space-md);
}

.fb-comments-list .children .children {
    margin-left: 32px !important;
    padding-left: var(--space-sm);
    border-left: 1px solid rgba(255, 255, 255, 0.08);
}

.fb-comments-list .children .children .children {
    margin-left: 28px !important;
    padding-left: 8px;
    border-left: 1px solid rgba(255, 255, 255, 0.05);
}

/* Comment Form */
.fb-comment-form {
    background: rgba(255, 255, 255, 0.05);
    border-radius: var(--radius-medium);
    padding: var(--space-lg);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.fb-comment-form-title {
    color: var(--text-primary);
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: var(--space-md);
}

.fb-comment-form-wrapper {
    display: flex;
    gap: var(--space-sm);
    margin-bottom: var(--space-md);
}

.fb-comment-form-avatar {
    flex-shrink: 0;
}

.fb-comment-form-avatar img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.1);
}

.fb-comment-form-input {
    flex: 1;
}

.fb-comment-form textarea {
    width: 100%;
    min-height: 40px;
    max-height: 120px;
    padding: var(--space-sm) var(--space-md);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-primary);
    font-family: inherit;
    font-size: 0.9rem;
    resize: vertical;
    backdrop-filter: blur(10px);
    transition: var(--transition);
}

.fb-comment-form textarea:focus {
    outline: none;
    border-color: var(--color-primary);
    background: rgba(255, 255, 255, 0.15);
}

.fb-comment-form textarea::placeholder {
    color: var(--text-secondary);
}

.fb-form-row {
    margin-bottom: var(--space-sm);
}

.fb-form-row input {
    width: 100%;
    padding: var(--space-sm) var(--space-md);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: var(--radius-small);
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-primary);
    font-family: inherit;
    font-size: 0.9rem;
    backdrop-filter: blur(10px);
    transition: var(--transition);
}

.fb-form-row input:focus {
    outline: none;
    border-color: var(--color-primary);
    background: rgba(255, 255, 255, 0.15);
}

.fb-form-row input::placeholder {
    color: var(--text-secondary);
}

.fb-form-submit {
    display: flex;
    justify-content: flex-end;
    margin-top: var(--space-md);
}

.fb-submit-btn,
input.fb-submit-btn {
    background: #1877f2;
    color: white;
    border: none;
    border-radius: 6px;
    padding: 8px 16px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    min-width: 60px;
}

.fb-submit-btn:hover,
input.fb-submit-btn:hover {
    background: #166fe5;
    transform: translateY(-1px);
}

.fb-submit-btn:active,
input.fb-submit-btn:active {
    transform: translateY(0);
}

.fb-no-comments {
    color: var(--text-secondary);
    font-style: italic;
    text-align: center;
    padding: var(--space-lg);
}

/* Comments Navigation */
.comment-navigation {
    margin: var(--space-lg) 0;
    text-align: center;
}

.comment-navigation .nav-links {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.comment-navigation a {
    color: var(--color-primary);
    text-decoration: none;
    padding: var(--space-sm) var(--space-md);
    border-radius: var(--radius-small);
    background: rgba(255, 255, 255, 0.1);
    transition: var(--transition);
}

.comment-navigation a:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-1px);
}

/* Responsive Comments */
@media (max-width: 768px) {
    .fb-comments-area {
        padding: var(--space-lg);
    }
    
    .fb-comment-form {
        padding: var(--space-md);
    }
    
    .children {
        margin-left: var(--space-lg);
    }
    
    .fb-comment-form-wrapper {
        flex-direction: column;
    }
    
    .fb-comment-meta {
        flex-wrap: wrap;
        gap: var(--space-sm);
    }
}

@media (max-width: 480px) {
    .fb-comment-item {
        gap: var(--space-xs);
    }
    
    .fb-comment-avatar img,
    .fb-comment-form-avatar img {
        width: 32px;
        height: 32px;
    }
    
    .children {
        margin-left: var(--space-md);
        padding-left: var(--space-sm);
    }
}

/* Reply Form Positioning */
.fb-reply-form-container {
    margin-top: var(--space-md);
    padding-left: var(--space-2xl);
}

#respond.fb-comment-reply-form {
    background: rgba(255, 255, 255, 0.05);
    border-radius: var(--radius-medium);
    padding: var(--space-md);
    margin-top: var(--space-sm);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

#respond.fb-comment-reply-form .comment-reply-title {
    color: var(--text-primary);
    font-size: 0.9rem;
    margin-bottom: var(--space-sm);
}

#respond.fb-comment-reply-form .comment-form-comment textarea {
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: var(--text-primary);
    padding: var(--space-sm) var(--space-md);
    min-height: 60px;
}

#respond.fb-comment-reply-form .form-submit input {
    background: #1877f2;
    color: white;
    border: none;
    border-radius: 6px;
    padding: 6px 12px;
    font-size: 0.85rem;
    font-weight: 600;
}

#respond.fb-comment-reply-form .form-submit input:hover {
    background: #166fe5;
}

/* Ensure cancel reply link styling */
#respond .comment-reply-title small a {
    color: var(--text-secondary);
    font-size: 0.75rem;
    margin-left: var(--space-sm);
}

#respond .comment-reply-title small a:hover {
    color: var(--color-primary);
}