/*
Theme Name: Arlina
Theme URI: https://wptheme.site/
Author: Jach
Author URI: https://wptheme.site/
Description: Un tema de blog moderno y limpio. Presenta un hermoso diseño basado en tarjetas, miniaturas de publicaciones coloridas y un diseño adaptable..
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: arlina-theme
Tags: blog, two-columns, right-sidebar, custom-colors, custom-menu, featured-images, threaded-comments, translation-ready
*/

/* ========================================
   CSS Variables & Root Styles
======================================== */
:root {
    --primary-color: #f6a157;
    --primary-dark: #e8923d;
    --secondary-color: #182c55;
    --text-color: #333;
    --text-muted: #666;
    --text-light: #999;
    --bg-color: #fafaf9;
    --white: #fff;
    --border-color: #eee;
    --shadow: 0 2px 10px rgba(0,0,0,0.08);
    --shadow-hover: 0 4px 20px rgba(0,0,0,0.12);
    --radius: 12px;
    --radius-sm: 8px;
    --transition: all 0.3s ease;

    /* Card Background Colors */
    --card-blue: #a8d8ea;
    --card-orange: #fbd38d;
    --card-pink: #fbb6ce;
    --card-red: #fc8181;
    --card-mint: #9ae6b4;
    --card-teal: #81e6d9;
    --card-purple: #d6bcfa;
    --card-yellow: #faf089;
}

/* ========================================
   Reset & Base Styles
======================================== */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    font-family: 'Google Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

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

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

/* ========================================
   Typography
======================================== */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.3;
    color: var(--secondary-color);
    margin-bottom: 1rem;
}

h1 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
}

h2 {
    font-size: 2rem;
    margin-bottom: 1.25rem;
}

h3 {
    font-size: 1.75rem;
}

h4 {
    font-size: 1.5rem;
}

h5 {
    font-size: 1.25rem;
}

h6 {
    font-size: 1.125rem;
}

p {
    margin-bottom: 1.5rem;
    line-height: 1.8;
}

strong, b {
    font-weight: 600;
    color: var(--secondary-color);
}

em, i {
    font-style: italic;
}

mark {
    background: rgba(246, 161, 87, 0.2);
    padding: 2px 4px;
    border-radius: 3px;
}

small {
    font-size: 0.875rem;
    color: var(--text-muted);
}

/* Links */
.single-post-content a,
.page-content a {
    color: var(--primary-color);
    text-decoration: underline;
    text-decoration-color: rgba(246, 161, 87, 0.3);
    text-underline-offset: 3px;
    transition: var(--transition);
}

.single-post-content a:hover,
.page-content a:hover {
    color: var(--primary-dark);
    text-decoration-color: var(--primary-color);
}

/* Blockquotes */
blockquote {
    margin: 2rem 0;
    padding: 1.5rem;
    background: var(--bg-color);
    border-radius: var(--radius-sm);
    font-style: italic;
    color: var(--text-muted);
    position: relative;
}

blockquote::before {
    content: '"';
    position: absolute;
    top: 10px;
    left: 10px;
    font-size: 3rem;
    color: var(--primary-color);
    opacity: 0.2;
    font-family: Georgia, serif;
    line-height: 1;
}

blockquote p {
    margin-bottom: 0.5rem;
}

blockquote p:last-child {
    margin-bottom: 0;
}

blockquote cite {
    display: block;
    margin-top: 1rem;
    font-size: 0.875rem;
    font-style: normal;
    color: var(--secondary-color);
    font-weight: 600;
}

blockquote cite::before {
    content: '— ';
}

/* Lists */
.single-post-content ul,
.single-post-content ol,
.page-content ul,
.page-content ol {
    margin-bottom: 1.5rem;
    padding-left: 2rem;
}

.single-post-content ul li,
.page-content ul li {
    position: relative;
    margin-bottom: 0.75rem;
    line-height: 1.8;
    list-style: none;
}

.single-post-content ul li::before,
.page-content ul li::before {
    content: '';
    position: absolute;
    left: -1.5rem;
    top: 0.7rem;
    width: 6px;
    height: 6px;
    background: var(--primary-color);
    border-radius: 50%;
}

.single-post-content ol,
.page-content ol {
    counter-reset: list-counter;
}

.single-post-content ol li,
.page-content ol li {
    position: relative;
    margin-bottom: 0.75rem;
    line-height: 1.8;
    list-style: none;
    counter-increment: list-counter;
}

.single-post-content ol li::before,
.page-content ol li::before {
    content: counter(list-counter) '.';
    position: absolute;
    left: -2rem;
    font-weight: 600;
    color: var(--primary-color);
}

/* Nested Lists */
.single-post-content ul ul,
.single-post-content ol ol,
.single-post-content ul ol,
.single-post-content ol ul,
.page-content ul ul,
.page-content ol ol,
.page-content ul ol,
.page-content ol ul {
    margin-top: 0.5rem;
    margin-bottom: 0.5rem;
}

/* Code */
code {
    font-family: 'Courier New', Courier, monospace;
    font-size: 0.875rem;
    background: var(--bg-color);
    padding: 2px 6px;
    border-radius: 4px;
    color: #e83e8c;
    border: 1px solid var(--border-color);
}

pre {
    margin: 2rem 0;
    padding: 1.5rem;
    background: #2d2d2d;
    border-radius: var(--radius-sm);
    overflow-x: auto;
    border: 1px solid var(--border-color);
}

pre code {
    background: transparent;
    border: none;
    padding: 0;
    color: #f8f8f2;
    font-size: 0.875rem;
    line-height: 1.6;
}

/* Tables */
table {
    width: 100%;
    margin: 2rem 0;
    border-collapse: collapse;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    overflow: hidden;
}

thead {
    background: var(--bg-color);
}

th {
    padding: 1rem;
    text-align: left;
    font-weight: 600;
    color: var(--secondary-color);
    border-bottom: 2px solid var(--border-color);
}

td {
    padding: 1rem;
    border-bottom: 1px solid var(--border-color);
}

tbody tr:last-child td {
    border-bottom: none;
}

tbody tr:hover {
    background: var(--bg-color);
}

/* Horizontal Rule */
hr {
    margin: 2rem 0;
    border: none;
    height: 1px;
    background: var(--border-color);
}

/* Definition Lists */
dl {
    margin-bottom: 1.5rem;
}

dt {
    font-weight: 600;
    color: var(--secondary-color);
    margin-bottom: 0.5rem;
}

dd {
    margin-left: 2rem;
    margin-bottom: 1rem;
    color: var(--text-muted);
}

/* Abbreviations */
abbr[title] {
    text-decoration: underline dotted;
    cursor: help;
    border-bottom: 1px dotted var(--text-muted);
}

/* Keyboard */
kbd {
    display: inline-block;
    padding: 3px 8px;
    font-family: 'Courier New', Courier, monospace;
    font-size: 0.875rem;
    color: var(--secondary-color);
    background: var(--bg-color);
    border: 1px solid var(--border-color);
    border-radius: 4px;
    box-shadow: 0 2px 0 rgba(0,0,0,0.1);
}

/* Dark Mode Typography */
body.dark-mode h1,
body.dark-mode h2,
body.dark-mode h3,
body.dark-mode h4,
body.dark-mode h5,
body.dark-mode h6 {
    color: #e4e6eb;
}

body.dark-mode strong,
body.dark-mode b {
    color: #e4e6eb;
}

body.dark-mode blockquote {
    background: #0f1419;
    color: #8a8d91;
}

body.dark-mode blockquote cite {
    color: #e4e6eb;
}

body.dark-mode code {
    background: #0f1419;
    border-color: #2f3336;
    color: #f97583;
}

body.dark-mode pre {
    background: #0d1117;
    border-color: #2f3336;
}

body.dark-mode table {
    border-color: #2f3336;
}

body.dark-mode thead {
    background: #0f1419;
}

body.dark-mode th {
    color: #e4e6eb;
    border-bottom-color: #2f3336;
}

body.dark-mode td {
    border-bottom-color: #2f3336;
}

body.dark-mode tbody tr:hover {
    background: #0f1419;
}

body.dark-mode hr {
    background: #2f3336;
}

body.dark-mode dt {
    color: #e4e6eb;
}

body.dark-mode kbd {
    background: #0f1419;
    border-color: #2f3336;
    color: #e4e6eb;
}

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

.site-content {
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 30px;
    padding: 30px 0;
}

.site-content.sidebar-left {
    grid-template-columns: 340px 1fr;
}

.site-content.sidebar-left .main-content {
    order: 2;
}

.site-content.sidebar-left .sidebar {
    order: 1;
}

.main-content {
    min-width: 0;
}

/* ========================================
   Header
======================================== */
.site-header {
    background: var(--white);
    box-shadow: 0 1px 3px rgba(0,0,0,0.08);
    position: sticky;
    top: 0;
    z-index: 1000;
}

body.admin-bar .site-header {
    /* WordPress already offsets the page when admin-bar is present.
       Keep header at top:0 to avoid double spacing. */
    top: 0;
}

@media screen and (max-width: 782px) {
    body.admin-bar .site-header {
        top: 0;
    }
}

.header-inner {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 12px 0;
}

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

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

.site-logo .logo-icon {
    width: 40px;
    height: 40px;
    background: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    font-weight: 700;
    color: var(--white);
}

.site-title-link {
    text-decoration: none;
}

.site-title-text {
    font-size: 20px;
    font-weight: 700;
    color: var(--secondary-color);
    transition: var(--transition);
}

.site-title-link:hover .site-title-text {
    color: var(--primary-color);
}

body.dark-mode .site-title-text {
    color: #e4e6eb;
}

body.dark-mode .site-title-link:hover .site-title-text {
    color: var(--primary-color);
}

/* Navigation */
.main-navigation {
    display: flex;
    align-items: center;
    flex: 1;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 4px;
    list-style: none;
}

.nav-menu > li {
    position: relative;
    list-style: none;
}

.nav-menu > li > a {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 6px 10px;
    font-size: 13px;
    font-weight: 500;
    color: var(--secondary-color);
    transition: var(--transition);
    position: relative;
}

.nav-menu > li > a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 10px;
    right: 10px;
    height: 2px;
    background: var(--primary-color);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.nav-menu > li > a:hover,
.nav-menu > li.current-menu-item > a {
    color: var(--primary-color);
}

.nav-menu > li > a:hover::after,
.nav-menu > li.current-menu-item > a::after {
    transform: scaleX(1);
}

.nav-menu > li > a .badge {
    background: var(--primary-color);
    color: var(--white);
    font-size: 10px;
    padding: 2px 6px;
    border-radius: 4px;
    margin-left: 4px;
}

/* Dropdown */
.sub-menu {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 200px;
    background: var(--white);
    border-radius: var(--radius-sm);
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
    padding: 8px 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: var(--transition);
    z-index: 100;
    list-style: none;
}

.nav-menu > li:hover > .sub-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.sub-menu li {
    position: relative;
    list-style: none;
}

.sub-menu li a {
    display: block;
    padding: 10px 16px;
    font-size: 13px;
    color: var(--text-color);
    transition: var(--transition);
}

.sub-menu li a:hover {
    background: rgba(246, 161, 87, 0.1);
    color: var(--primary-color);
}

/* Submenu of submenu */
.sub-menu .sub-menu {
    top: 0;
    left: 100%;
    margin-left: 8px;
}

.sub-menu li:hover > .sub-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* Header Icons */
.header-icons {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-left: auto;
}

.header-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: transparent;
    border: none;
    cursor: pointer;
    color: var(--secondary-color);
    transition: var(--transition);
}

.header-icon:hover {
    background: rgba(246, 161, 87, 0.1);
    color: var(--primary-color);
}

.header-icon svg {
    width: 20px;
    height: 20px;
}

/* ========================================
   Featured Post
======================================== */
.featured-post {
    position: relative;
    border-radius: var(--radius);
    overflow: hidden;
    margin-bottom: 30px;
}

.featured-post .post-thumbnail {
    position: relative;
    padding-top: 56.25%;
    background: linear-gradient(135deg, var(--card-teal), var(--card-blue));
    overflow: hidden;
}

.featured-post .post-thumbnail img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.featured-post:hover .post-thumbnail img {
    transform: scale(1.02);
}

.featured-post .post-content {
    background: transparent;
    border: 1px solid var(--border-color);
    border-top: none;
    padding: 24px;
}

body.dark-mode .featured-post .post-content {
    background: var(--white);
    border: none;
}

.featured-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(255, 255, 255, 0.95);
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
    color: var(--secondary-color);
    position: absolute;
    bottom: 16px;
    left: 16px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.featured-badge svg {
    width: 14px;
    height: 14px;
    color: var(--primary-color);
}

.featured-post .post-title {
    font-size: 22px;
    font-weight: 600;
    color: var(--secondary-color);
    line-height: 1.4;
    margin-bottom: 12px;
}

.featured-post .post-title a:hover {
    color: var(--primary-color);
}

.featured-post .post-excerpt {
    color: var(--text-muted);
    font-size: 14px;
    margin-bottom: 16px;
}

.read-more-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    border: 1px solid var(--border-color);
    border-radius: 20px;
    font-size: 13px;
    font-weight: 500;
    color: var(--secondary-color);
    transition: var(--transition);
}

.read-more-btn:hover {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: var(--white);
}

.read-more-btn svg {
    width: 14px;
    height: 14px;
}

/* ========================================
   Posts Grid
======================================== */
.posts-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

.posts-list {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.posts-list .post-card {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 20px;
}

.posts-list .post-thumbnail {
    height: 200px;
}

.posts-list .post-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.post-card {
    background: transparent;
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    overflow: hidden;
    transition: var(--transition);
}

.post-card:hover {
    border-color: var(--primary-color);
    transform: translateY(-4px);
}

body.dark-mode .post-card {
    background: var(--white);
    border: none;
    box-shadow: var(--shadow);
}

body.dark-mode .post-card:hover {
    box-shadow: var(--shadow-hover);
    border-color: transparent;
}

.post-card .post-thumbnail {
    position: relative;
    display: block;
    padding-top: 66%;
    overflow: hidden;
    background: var(--bg-color);
}

.post-card .post-thumbnail img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
    display: block;
}

.post-card:hover .post-thumbnail img {
    transform: scale(1.02);
}

/* Card color backgrounds for posts without thumbnails */
.post-card .post-thumbnail.color-bg-1 { background: var(--card-blue); }
.post-card .post-thumbnail.color-bg-2 { background: var(--card-orange); }
.post-card .post-thumbnail.color-bg-3 { background: var(--card-pink); }
.post-card .post-thumbnail.color-bg-4 { background: var(--card-red); }
.post-card .post-thumbnail.color-bg-5 { background: var(--card-mint); }
.post-card .post-thumbnail.color-bg-6 { background: var(--card-teal); }
.post-card .post-thumbnail.color-bg-7 { background: var(--card-purple); }
.post-card .post-thumbnail.color-bg-8 { background: var(--card-yellow); }

.post-card .category-badge {
    position: absolute;
    top: 16px;
    left: 16px;
    background: var(--bg-color);
    color: var(--secondary-color);
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    transition: var(--transition);
    z-index: 2;
}

.post-card .category-badge:hover {
    background: var(--primary-color);
    color: var(--white);
}

body.dark-mode .post-card .category-badge {
    background: #0f1419;
    color: #e4e6eb;
}

body.dark-mode .post-card .category-badge:hover {
    background: var(--primary-color);
    color: var(--white);
}

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

.post-card .post-title {
    font-size: 16px;
    font-weight: 600;
    color: var(--secondary-color);
    line-height: 1.4;
    margin-bottom: 10px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.post-card .post-title a:hover {
    color: var(--primary-color);
}

.post-card .post-excerpt {
    color: var(--text-muted);
    font-size: 13px;
    line-height: 1.5;
    margin-bottom: 14px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.post-meta {
    display: flex;
    align-items: center;
    gap: 8px;
}

.post-author {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: var(--text-muted);
}

.post-author .verified-icon {
    width: 14px;
    height: 14px;
    color: #1da1f2;
}

/* ========================================
   Pagination
======================================== */
.pagination-wrapper {
    display: flex;
    justify-content: center;
    margin-top: 40px;
    margin-bottom: 20px;
}

.pagination-wrapper .page-numbers {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    list-style: none;
    padding: 0;
    margin: 0;
}

.pagination-wrapper .page-numbers li {
    display: inline-block;
}

.pagination-wrapper .page-numbers a,
.pagination-wrapper .page-numbers span {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 12px;
    border-radius: var(--radius-sm);
    font-size: 14px;
    font-weight: 500;
    color: var(--secondary-color);
    background: var(--white);
    border: 1px solid var(--border-color);
    transition: var(--transition);
}

.pagination-wrapper .page-numbers a:hover {
    background: var(--primary-color);
    color: var(--white);
    border-color: var(--primary-color);
    transform: translateY(-2px);
}

.pagination-wrapper .page-numbers .current {
    background: var(--primary-color);
    color: var(--white);
    border-color: var(--primary-color);
}

.pagination-wrapper .page-numbers .prev,
.pagination-wrapper .page-numbers .next {
    padding: 0;
    width: 40px;
}

.pagination-wrapper .page-numbers svg {
    width: 16px;
    height: 16px;
}

.pagination-wrapper .page-numbers .dots {
    border: none;
    background: transparent;
    color: var(--text-muted);
}

body.dark-mode .pagination-wrapper .page-numbers a,
body.dark-mode .pagination-wrapper .page-numbers span {
    background: var(--white);
    border-color: rgba(255, 255, 255, 0.1);
    color: #e4e6eb;
}

body.dark-mode .pagination-wrapper .page-numbers a:hover {
    background: var(--primary-color);
    color: var(--white);
    border-color: var(--primary-color);
}

body.dark-mode .pagination-wrapper .page-numbers .current {
    background: var(--primary-color);
    color: var(--white);
    border-color: var(--primary-color);
}

body.dark-mode .pagination-wrapper .page-numbers .dots {
    background: transparent;
    color: #8899a6;
}

/* ========================================
   Sidebar
======================================== */
.sidebar {
    position: sticky;
    top: 90px;
    align-self: start;
}

.widget {
    background: transparent;
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    padding: 24px;
    margin-bottom: 24px;
}

body.dark-mode .widget {
    background: var(--white);
    border: none;
    box-shadow: var(--shadow);
}

.widget-title {
    font-size: 16px;
    font-weight: 600;
    color: var(--secondary-color);
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border-color);
}

/* Ad Banner Widget */
.widget-ad {
    padding: 0;
    overflow: hidden;
}

.widget-ad img {
    width: 100%;
    height: auto;
}

/* Trending Posts Widget */
.trending-posts .trending-item {
    display: flex;
    gap: 14px;
    padding: 12px 0;
    border-bottom: 1px solid var(--border-color);
}

.trending-posts .trending-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.trending-posts .trending-item:first-child {
    padding-top: 0;
}

.trending-item .item-thumbnail {
    width: 70px;
    height: 70px;
    border-radius: var(--radius-sm);
    overflow: hidden;
    flex-shrink: 0;
}

.trending-item .item-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.trending-item .item-title {
    font-size: 14px;
    font-weight: 500;
    color: var(--secondary-color);
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.trending-item .item-title:hover {
    color: var(--primary-color);
}

/* Social Links Widget */
.social-links {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
}

.social-link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    border-radius: var(--radius-sm);
    background: transparent;
    border: 1px solid var(--border-color);
    font-size: 13px;
    font-weight: 500;
    color: var(--secondary-color);
    transition: var(--transition);
}

.social-link:hover {
    background: rgba(246, 161, 87, 0.15);
    border-color: var(--primary-color);
    color: var(--primary-color);
}

body.dark-mode .social-link {
    background: var(--bg-color);
    border: none;
}

body.dark-mode .social-link:hover {
    background: rgba(246, 161, 87, 0.15);
}

.social-link svg {
    width: 18px;
    height: 18px;
}

/* Partner Widget */
.partner-links {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
}

.partner-link {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 12px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    font-size: 13px;
    font-weight: 500;
    color: var(--secondary-color);
    transition: var(--transition);
}

.partner-link:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

/* Labels Widget */
.labels-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.label-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    background: transparent;
    border: 1px solid var(--border-color);
    border-radius: 20px;
    font-size: 12px;
    color: var(--text-color);
    transition: var(--transition);
}

.label-link:hover {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: var(--white);
}

body.dark-mode .label-link {
    background: var(--bg-color);
    border: none;
}

body.dark-mode .label-link:hover {
    background: var(--primary-color);
}

.label-link::before {
    content: '#';
    color: var(--primary-color);
    font-weight: 600;
}

.label-link:hover::before {
    color: var(--white);
}

/* Popular Posts & Recent Posts Widget */
.popular-posts-list,
.recent-posts-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.popular-post-item,
.recent-post-item {
    display: flex;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid var(--border-color);
}

.popular-post-item:last-child,
.recent-post-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.popular-post-item:first-child,
.recent-post-item:first-child {
    padding-top: 0;
}

.popular-post-thumb,
.recent-post-thumb {
    flex-shrink: 0;
    width: 70px;
    height: 70px;
    border-radius: var(--radius-sm);
    overflow: hidden;
}

.popular-post-thumb img,
.recent-post-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.popular-post-thumb:hover img,
.recent-post-thumb:hover img {
    transform: scale(1.1);
}

.popular-post-content,
.recent-post-content {
    flex: 1;
    min-width: 0;
}

.popular-post-title,
.recent-post-title {
    font-size: 13px;
    font-weight: 600;
    line-height: 1.4;
    margin: 0 0 6px 0;
}

.popular-post-title a,
.recent-post-title a {
    color: var(--secondary-color);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.popular-post-title a:hover,
.recent-post-title a:hover {
    color: var(--primary-color);
}

.popular-post-date,
.recent-post-date {
    font-size: 11px;
    color: var(--text-muted);
}

/* Widget Search Form */
.widget-search-form {
    margin: 0;
}

.widget-search-form .search-form-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.widget-search-form .search-field {
    width: 100%;
    padding: 12px 45px 12px 16px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    font-size: 14px;
    background: var(--bg-color);
    color: var(--text-color);
    transition: var(--transition);
}

.widget-search-form .search-field:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(246, 161, 87, 0.1);
}

.widget-search-form .search-submit {
    position: absolute;
    right: 8px;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: none;
    cursor: pointer;
    color: var(--text-muted);
    transition: var(--transition);
}

.widget-search-form .search-submit:hover {
    color: var(--primary-color);
}

body.dark-mode .widget-search-form .search-field {
    background: #0f1419;
    border-color: var(--border-color);
}

/* Categories Widget */
.categories-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.categories-list li {
    padding: 0;
    margin-bottom: 8px;
}

.categories-list li:last-child {
    margin-bottom: 0;
}

.categories-list a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-color);
    background: transparent;
    border-radius: var(--radius-sm);
    transition: all 0.3s ease;
    position: relative;
}

.categories-list a::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 3px;
    height: 0;
    background: var(--primary-color);
    border-radius: 0 2px 2px 0;
    transition: height 0.3s ease;
}

.categories-list a:hover {
    background: rgba(246, 161, 87, 0.08);
    color: var(--primary-color);
    padding-left: 20px;
}

.categories-list a:hover::before {
    height: 60%;
}

body.dark-mode .categories-list a:hover {
    background: rgba(246, 161, 87, 0.12);
}

.categories-list .count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 28px;
    height: 22px;
    padding: 0 8px;
    background: var(--bg-color);
    color: var(--text-muted);
    font-size: 11px;
    font-weight: 600;
    border-radius: 11px;
    transition: all 0.3s ease;
}

body.dark-mode .categories-list .count {
    background: rgba(255, 255, 255, 0.08);
}

.categories-list a:hover .count {
    background: var(--primary-color);
    color: var(--white);
    transform: scale(1.1);
}

/* Recent Comments Widget */
.recent-comments-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.recent-comment-item {
    display: flex;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid var(--border-color);
}

.recent-comment-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.recent-comment-item:first-child {
    padding-top: 0;
}

.comment-author-avatar {
    flex-shrink: 0;
}

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

.comment-content {
    flex: 1;
    min-width: 0;
    font-size: 12px;
    line-height: 1.5;
}

.comment-content strong {
    color: var(--secondary-color);
    font-weight: 600;
}

.comment-content .comment-on {
    color: var(--text-muted);
    margin: 0 4px;
}

.comment-content a {
    color: var(--text-color);
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.comment-content a:hover {
    color: var(--primary-color);
}

/* Archives Widget */
.archives-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.archives-list li {
    padding: 0;
    margin-bottom: 8px;
}

.archives-list li:last-child {
    margin-bottom: 0;
}

.archives-list a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-color);
    background: transparent;
    border-radius: var(--radius-sm);
    transition: all 0.3s ease;
    position: relative;
}

.archives-list a::before {
    content: '📅';
    position: absolute;
    left: 16px;
    opacity: 0;
    transform: translateX(-10px);
    transition: all 0.3s ease;
    font-size: 14px;
}

.archives-list a:hover {
    background: rgba(246, 161, 87, 0.08);
    color: var(--primary-color);
    padding-left: 40px;
}

.archives-list a:hover::before {
    opacity: 1;
    transform: translateX(0);
}

body.dark-mode .archives-list a:hover {
    background: rgba(246, 161, 87, 0.12);
}

.archives-list .count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 28px;
    height: 22px;
    padding: 0 8px;
    background: var(--bg-color);
    color: var(--text-muted);
    font-size: 11px;
    font-weight: 600;
    border-radius: 11px;
    transition: all 0.3s ease;
}

body.dark-mode .archives-list .count {
    background: rgba(255, 255, 255, 0.08);
}

.archives-list a:hover .count {
    background: var(--primary-color);
    color: var(--white);
    transform: scale(1.1);
}

/* ========================================
   Single Post
======================================== */
.single-breadcrumbs-container {
    background: transparent;
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    padding: 16px 20px;
    margin-bottom: 20px;
}

.single-breadcrumbs-container .breadcrumbs {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-muted);
    font-size: 13px;
}

.single-breadcrumbs-container .breadcrumbs a {
    color: var(--text-muted);
    transition: var(--transition);
}

.single-breadcrumbs-container .breadcrumbs a:hover {
    color: var(--primary-color);
}

.single-breadcrumbs-container .sep {
    color: var(--text-light);
}

.single-post-container {
    background: transparent;
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    padding: 30px;
    margin-bottom: 30px;
}

.single-post-title {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--secondary-color);
    line-height: 1.3;
    margin-bottom: 20px;
}

.single-title-separator {
    margin: 0 0 24px 0;
    border: none;
    height: 1px;
    background: var(--border-color);
}

.single-featured-image {
    position: relative;
    border-radius: var(--radius);
    overflow: hidden;
    margin-bottom: 20px;
}

.single-featured-image img {
    width: 100%;
    height: auto;
    display: block;
}

.single-date-badge {
    position: absolute;
    top: 16px;
    left: 16px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(255, 255, 255, 0.95);
    color: var(--secondary-color);
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.single-date-badge svg {
    width: 14px;
    height: 14px;
}

.single-category-badge {
    position: absolute;
    top: 52px;
    left: 16px;
    display: inline-flex;
    align-items: center;
    background: var(--bg-color);
    color: var(--secondary-color);
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
    transition: var(--transition);
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.single-category-badge:hover {
    background: var(--primary-color);
    color: var(--white);
}

.single-author-badge {
    position: absolute;
    top: 16px;
    right: 16px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(255, 255, 255, 0.95);
    color: var(--secondary-color);
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.single-author-badge svg {
    width: 14px;
    height: 14px;
}

.single-author-badge .author-name {
    font-size: 12px;
    font-weight: 600;
    color: var(--secondary-color);
}

.single-post-content {
    background: transparent;
    padding: 0;
}

.single-post-content h2,
.single-post-content h3,
.single-post-content h4 {
    color: var(--secondary-color);
    margin-top: 28px;
    margin-bottom: 14px;
}

.single-post-content p {
    margin-bottom: 16px;
    line-height: 1.8;
}

.single-post-content ul,
.single-post-content ol {
    margin-bottom: 16px;
    padding-left: 24px;
    list-style: disc;
}

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

.single-post-content blockquote {
    border-left: 4px solid var(--primary-color);
    padding: 16px 24px;
    background: var(--bg-color);
    margin: 24px 0;
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
    font-style: italic;
}

.single-post-content pre {
    background: #1e1e1e;
    color: #d4d4d4;
    padding: 20px;
    border-radius: var(--radius-sm);
    overflow-x: auto;
    margin: 20px 0;
}

.single-post-content code {
    background: var(--bg-color);
    padding: 2px 6px;
    border-radius: 4px;
    font-family: 'Fira Code', monospace;
    font-size: 14px;
}

.single-post-content pre code {
    background: transparent;
    padding: 0;
}

/* Post Tags */
.post-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 30px;
    padding-top: 24px;
    border-top: 1px solid var(--border-color);
}

.post-tags a {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    background: var(--bg-color);
    border-radius: 20px;
    font-size: 13px;
    color: var(--text-color);
}

.post-tags a:hover {
    background: var(--primary-color);
    color: var(--white);
}

/* Author Box */
.author-box {
    background: var(--white);
    border-radius: var(--radius);
    padding: 30px;
    margin-top: 30px;
    display: flex;
    gap: 20px;
    box-shadow: var(--shadow);
}

.author-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
}

.author-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.author-info h4 {
    font-size: 18px;
    font-weight: 600;
    color: var(--secondary-color);
    margin-bottom: 8px;
}

.author-info p {
    font-size: 14px;
    color: var(--text-muted);
    line-height: 1.6;
}

/* Related Posts */
.related-posts {
    margin-top: 40px;
    background: transparent;
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    padding: 30px;
}

.related-posts-title {
    display: inline-block;
    font-size: 16px;
    font-weight: 600;
    color: var(--primary-color);
    padding: 8px 20px;
    border: 2px solid var(--primary-color);
    border-radius: 25px;
    margin-bottom: 24px;
}

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

.related-post-card {
    background: transparent;
    border-radius: var(--radius);
    overflow: hidden;
    transition: var(--transition);
}

.related-post-card:hover {
    transform: translateY(-4px);
}

.related-post-thumbnail {
    position: relative;
    display: block;
    padding-top: 66%;
    overflow: hidden;
    border-radius: var(--radius);
    background: var(--bg-color);
}

.related-post-thumbnail img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: var(--transition);
}

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

.related-post-thumbnail.color-bg-1 { background: var(--card-blue); }
.related-post-thumbnail.color-bg-2 { background: var(--card-orange); }
.related-post-thumbnail.color-bg-3 { background: var(--card-pink); }
.related-post-thumbnail.color-bg-4 { background: var(--card-red); }
.related-post-thumbnail.color-bg-5 { background: var(--card-mint); }
.related-post-thumbnail.color-bg-6 { background: var(--card-teal); }
.related-post-thumbnail.color-bg-7 { background: var(--card-purple); }
.related-post-thumbnail.color-bg-8 { background: var(--card-yellow); }

.related-post-title {
    font-size: 14px;
    font-weight: 600;
    line-height: 1.4;
    margin-top: 12px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.related-post-title a {
    color: var(--secondary-color);
    transition: var(--transition);
}

.related-post-title a:hover {
    color: var(--primary-color);
}

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

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

/* ========================================
   Comments
======================================== */
.comments-area {
    background: var(--white);
    border-radius: var(--radius);
    padding: 30px;
    margin-top: 30px;
    box-shadow: var(--shadow);
}

.comments-title {
    font-size: 20px;
    font-weight: 600;
    color: var(--secondary-color);
    margin-bottom: 24px;
}

.comment-list {
    list-style: none;
}

.comment {
    padding: 20px 0;
    border-bottom: 1px solid var(--border-color);
}

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

.comment-body {
    display: flex;
    gap: 16px;
}

.comment-author-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
}

.comment-author-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.comment-content {
    flex: 1;
}

.comment-author-name {
    font-size: 15px;
    font-weight: 600;
    color: var(--secondary-color);
    margin-bottom: 4px;
}

.comment-date {
    font-size: 12px;
    color: var(--text-light);
    margin-bottom: 10px;
}

.comment-text {
    font-size: 14px;
    color: var(--text-color);
    line-height: 1.6;
}

.comment-reply-link {
    font-size: 13px;
    color: var(--primary-color);
    font-weight: 500;
    margin-top: 10px;
    display: inline-block;
}

/* Comment Form */
.comment-respond {
    margin-top: 30px;
}

.comment-reply-title {
    font-size: 18px;
    font-weight: 600;
    color: var(--secondary-color);
    margin-bottom: 20px;
}

.comment-form label {
    display: block;
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 6px;
    color: var(--secondary-color);
}

.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    font-size: 14px;
    margin-bottom: 16px;
    transition: var(--transition);
}

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

.comment-form textarea {
    min-height: 150px;
    resize: vertical;
}

.comment-form .submit {
    background: var(--primary-color);
    color: var(--white);
    padding: 14px 28px;
    border: none;
    border-radius: 25px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
}

.comment-form .submit:hover {
    background: var(--primary-dark);
}

/* ========================================
   Footer
======================================== */
.site-footer {
    background: var(--white);
    padding: 40px 0;
    margin-top: 50px;
    border-top: 1px solid var(--border-color);
}

.footer-links {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 30px;
}

.footer-menu {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-menu li {
    display: inline-block;
}

.footer-links a,
.footer-menu a {
    padding: 10px 20px;
    border: 1px solid var(--border-color);
    border-radius: 25px;
    font-size: 13px;
    color: var(--secondary-color);
    transition: var(--transition);
    display: inline-block;
}

.footer-links a:hover,
.footer-menu a:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.footer-copyright {
    text-align: center;
    color: var(--text-muted);
    font-size: 14px;
}

.footer-copyright a {
    color: var(--secondary-color);
    font-weight: 500;
}

.footer-copyright a:hover {
    color: var(--primary-color);
}

.footer-credit {
    text-align: center;
    margin-top: 10px;
    font-size: 13px;
    color: var(--text-light);
}

.footer-credit .heart {
    color: #e74c3c;
}

/* ========================================
   Scroll to Top Button
======================================== */
.scroll-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: var(--primary-color);
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: var(--transition);
    box-shadow: 0 4px 12px rgba(246, 161, 87, 0.3);
    z-index: 9998;
}

.scroll-to-top.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.scroll-to-top:hover {
    background: var(--primary-dark);
    transform: translateY(-4px);
    box-shadow: 0 6px 16px rgba(246, 161, 87, 0.4);
}

.scroll-to-top svg {
    width: 24px;
    height: 24px;
    stroke: var(--white);
    fill: none;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

@media (max-width: 768px) {
    .scroll-to-top {
        bottom: 20px;
        right: 20px;
        width: 45px;
        height: 45px;
    }
}

/* ========================================
   Header Search
======================================== */
.header-search-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.header-search-form {
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 0;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 10;
}

.header-search-form.active {
    width: 300px;
    opacity: 1;
    visibility: visible;
}

.header-search-input {
    width: 100%;
    padding: 10px 40px 10px 16px;
    border: 1px solid var(--border-color);
    border-radius: 25px;
    font-size: 14px;
    background: var(--white);
    color: var(--text-color);
    transition: var(--transition);
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.header-search-input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 4px 12px rgba(246, 161, 87, 0.2);
}

.header-search-close {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: none;
    cursor: pointer;
    color: var(--text-muted);
    transition: var(--transition);
    border-radius: 50%;
}

.header-search-close:hover {
    background: rgba(0,0,0,0.05);
    color: var(--primary-color);
}

.header-search-toggle {
    transition: var(--transition);
}

.header-search-form.active ~ .header-search-toggle {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.header-search-results {
    position: absolute;
    top: calc(100% + 10px);
    left: 0;
    right: 0;
    background: var(--white);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
    max-height: 400px;
    overflow-y: auto;
    display: none;
    z-index: 100;
}

.header-search-results.active {
    display: block;
}

.header-search-results .search-result-item {
    padding: 12px 16px;
    border-bottom: 1px solid var(--border-color);
    transition: var(--transition);
}

.header-search-results .search-result-item:last-child {
    border-bottom: none;
}

.header-search-results .search-result-item:hover {
    background: var(--bg-color);
}

.header-search-results .search-result-item a {
    display: flex;
    gap: 12px;
    align-items: center;
    color: var(--text-color);
}

.header-search-results .search-result-thumb {
    flex-shrink: 0;
    width: 50px;
    height: 50px;
    border-radius: var(--radius-sm);
    overflow: hidden;
}

.header-search-results .search-result-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.header-search-results .search-result-content {
    flex: 1;
    min-width: 0;
}

.header-search-results .search-result-title {
    font-size: 13px;
    font-weight: 600;
    color: var(--secondary-color);
    margin-bottom: 4px;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.header-search-results .search-result-date {
    font-size: 11px;
    color: var(--text-muted);
}

.header-search-results .no-results {
    padding: 20px;
    text-align: center;
    color: var(--text-muted);
    font-size: 13px;
}

.header-search-results .search-loading {
    padding: 20px;
    text-align: center;
    color: var(--text-muted);
    font-size: 13px;
}

body.dark-mode .header-search-input {
    background: #12263f;
    border-color: var(--border-color);
    color: var(--text-color);
}

body.dark-mode .header-search-results {
    background: #12263f;
    border-color: var(--border-color);
}

body.dark-mode .header-search-results .search-result-item:hover {
    background: #0f1419;
}

body.dark-mode .header-search-close:hover {
    background: rgba(255,255,255,0.1);
}

@media (max-width: 768px) {
    .header-search-form.active {
        width: 250px;
    }
}

/* ========================================
   Search Popup
======================================== */
.search-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 9999;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding-top: 100px;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
}

.search-overlay.active {
    opacity: 1;
    visibility: visible;
}

.search-form-wrapper {
    width: 100%;
    max-width: 600px;
    padding: 0 20px;
    transform: translateY(-20px);
    transition: var(--transition);
}

.search-overlay.active .search-form-wrapper {
    transform: translateY(0);
}

.search-overlay .search-form {
    display: flex;
    background: var(--white);
    border-radius: 30px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

.search-overlay .search-input {
    flex: 1;
    padding: 18px 24px;
    border: none;
    font-size: 16px;
    outline: none;
}

.search-overlay .search-submit {
    padding: 18px 24px;
    background: var(--primary-color);
    border: none;
    color: var(--white);
    cursor: pointer;
    transition: var(--transition);
}

.search-overlay .search-submit:hover {
    background: var(--primary-dark);
}

.search-close {
    position: absolute;
    top: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--white);
    border-radius: 50%;
    cursor: pointer;
    transition: var(--transition);
}

.search-close:hover {
    transform: rotate(90deg);
}

/* ========================================
   Dark Mode
======================================== */
body.dark-mode {
    --bg-color: #152e4d;
    --white: #12263f;
    --text-color: #e4e6eb;
    --text-muted: #8a8d91;
    --text-light: #8a8d91;
    --border-color: #2f3336;
    --secondary-color: #e4e6eb;
}

body.dark-mode .site-header {
    background: #12263f;
    box-shadow: 0 1px 3px rgba(0,0,0,0.3);
}

body.dark-mode .single-breadcrumbs-container {
    background: #12263f;
    border: none;
    box-shadow: var(--shadow);
}

body.dark-mode .single-post-container {
    background: #12263f;
    border: none;
    box-shadow: var(--shadow);
}

body.dark-mode .single-post-title {
    color: #e4e6eb;
}

body.dark-mode .single-title-separator {
    background: #2f3336;
}

body.dark-mode .single-date-badge {
    background: rgba(18, 38, 63, 0.95);
    color: #e4e6eb;
}

body.dark-mode .single-category-badge {
    background: #0f1419;
    color: #e4e6eb;
}

body.dark-mode .single-category-badge:hover {
    background: var(--primary-color);
    color: var(--white);
}

body.dark-mode .single-author-badge {
    background: rgba(18, 38, 63, 0.95);
}

body.dark-mode .single-author-badge .author-name {
    color: #e4e6eb;
}

body.dark-mode .related-posts {
    background: #12263f;
    border: none;
    box-shadow: var(--shadow);
}

body.dark-mode .author-box,
body.dark-mode .comments-area {
    background: #12263f;
}

body.dark-mode .comment-reply-title {
    color: #e4e6eb;
}

body.dark-mode .comment-form label {
    color: #e4e6eb;
}

body.dark-mode .comment-form input[type="text"],
body.dark-mode .comment-form input[type="email"],
body.dark-mode .comment-form input[type="url"],
body.dark-mode .comment-form textarea {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.1);
    color: #e4e6eb;
}

body.dark-mode .comment-form input:focus,
body.dark-mode .comment-form textarea:focus {
    background: rgba(255, 255, 255, 0.08);
    border-color: var(--primary-color);
}

body.dark-mode .comment-form textarea::placeholder,
body.dark-mode .comment-form input::placeholder {
    color: #8899a6;
}

body.dark-mode .sub-menu {
    background: #12263f;
    box-shadow: 0 4px 20px rgba(0,0,0,0.4);
}

body.dark-mode .contact-modal-content {
    background: #12263f;
}

/* ========================================
   Responsive Design
======================================== */
@media (max-width: 1024px) {
    .site-content {
        grid-template-columns: 1fr;
    }

    .sidebar {
        position: static;
    }
}

/* Mobile Header Styles */
.mobile-menu-toggle,
.mobile-contact-icon {
    display: none;
}

.mobile-menu-toggle {
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    width: 40px;
    height: 40px;
    position: relative;
    z-index: 1001;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
}

.hamburger-line {
    display: block !important;
    width: 22px;
    height: 2.5px;
    background: var(--secondary-color) !important;
    transition: all 0.3s ease;
    border-radius: 2px;
}

.mobile-menu-toggle.active .hamburger-line:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.mobile-menu-toggle.active .hamburger-line:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active .hamburger-line:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
}

body.dark-mode .hamburger-line {
    background: #ffffff !important;
}

@media (max-width: 768px) {
    :root {
        --arlina-mobile-header-h: 60px;
        --arlina-wpadminbar-h: 0px;
    }

    html,
    body {
        overflow-x: hidden;
        width: 100%;
    }
    
    body.menu-open {
        overflow: hidden;
        height: 100vh;
    }

    /* Keep header visible above the opened mobile menu.
       Sticky positioning can break when body overflow is hidden on some mobile browsers. */
    body.menu-open .site-header {
        position: fixed;
        top: var(--arlina-wpadminbar-h);
        left: 0;
        right: 0;
        width: 100%;
        z-index: 1002;
    }
    
    .site-header {
        padding: 0;
    }

    .header-inner {
        padding: 8px 0;
        gap: 12px;
        position: relative;
    }

    /* Show mobile elements */
    .mobile-menu-toggle,
    .mobile-contact-icon {
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .mobile-contact-icon {
        padding: 8px;
        width: 40px;
        height: 40px;
    }

    /* Hide desktop contact icon */
    .desktop-only {
        display: none !important;
    }

    /* Center logo */
    .site-logo {
        position: absolute;
        left: 50%;
        transform: translateX(-50%);
        margin: 0;
    }

    .site-logo img,
    .site-logo .logo-icon {
        height: 36px;
        width: 36px;
        font-size: 20px;
    }

    /* Position header icons on the right */
    .header-icons {
        margin-left: auto;
        gap: 4px;
    }

    .header-icon {
        padding: 8px;
        width: 40px;
        height: 40px;
    }

    .header-icon svg {
        width: 18px;
        height: 18px;
    }

    /* Mobile Navigation - Vertical Dropdown */
    .main-navigation {
        position: fixed;
        top: calc(var(--arlina-wpadminbar-h) + var(--arlina-mobile-header-h));
        left: 0;
        right: 0;
        width: 100vw;
        background: var(--white);
        box-shadow: 0 4px 12px rgba(0,0,0,0.1);
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.4s ease;
        z-index: 999;
    }

    .main-navigation.active {
        max-height: calc(100vh - (var(--arlina-wpadminbar-h) + var(--arlina-mobile-header-h)));
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }

    body.dark-mode .main-navigation {
        background: #12263f;
        box-shadow: 0 4px 12px rgba(0,0,0,0.3);
    }

    .nav-menu {
        flex-direction: column;
        gap: 0;
        width: 100%;
        padding: 12px 0;
    }

    .nav-menu > li {
        width: 100%;
        border-bottom: none;
    }

    .nav-menu > li > a {
        padding: 14px 20px;
        font-size: 15px;
        font-weight: 500;
        width: 100%;
        justify-content: space-between;
        color: var(--secondary-color);
        display: flex;
        align-items: center;
        line-height: 1.4;
    }

    .nav-menu > li > a:hover {
        background: rgba(0,0,0,0.05);
        color: var(--secondary-color);
    }

    body.dark-mode .nav-menu > li > a {
        color: #ffffff;
    }

    body.dark-mode .nav-menu > li > a:hover {
        background: rgba(255,255,255,0.08);
        color: #ffffff;
    }

    .nav-menu > li > a::after {
        display: none;
    }

    .nav-menu > li > a svg {
        margin-left: auto;
        width: 14px;
        height: 14px;
    }

    /* Submenu styling for mobile */
    .nav-menu .sub-menu {
        position: static;
        display: none;
        background: rgba(0,0,0,0.03);
        box-shadow: none;
        padding: 0;
    }

    body.dark-mode .nav-menu .sub-menu {
        background: rgba(0,0,0,0.2);
    }

    .nav-menu li.open > .sub-menu {
        display: block;
    }

    .nav-menu .sub-menu li a {
        padding: 12px 20px 12px 36px;
        font-size: 14px;
        color: var(--secondary-color);
    }

    body.dark-mode .nav-menu .sub-menu li a {
        color: rgba(255,255,255,0.9);
    }

    .nav-menu .sub-menu li a:hover {
        background: rgba(0,0,0,0.05);
    }

    body.dark-mode .nav-menu .sub-menu li a:hover {
        background: rgba(255,255,255,0.05);
    }

    /* Mobile menu overlay */
    .mobile-menu-overlay {
        position: fixed;
        top: calc(var(--arlina-wpadminbar-h) + var(--arlina-mobile-header-h));
        left: 0;
        width: 100%;
        height: calc(100% - (var(--arlina-wpadminbar-h) + var(--arlina-mobile-header-h)));
        background: rgba(0,0,0,0.3);
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s ease;
        z-index: 998;
    }

    .mobile-menu-overlay.active {
        opacity: 1;
        visibility: visible;
    }

    /* Featured Post Mobile */
    .featured-post {
        margin-bottom: 24px;
    }

    .featured-post .post-thumbnail {
        border-radius: var(--radius) var(--radius) 0 0;
    }

    .featured-post .post-content {
        padding: 20px;
        background: var(--white);
        border-radius: 0 0 var(--radius) var(--radius);
    }

    .featured-post .post-title {
        font-size: 16px;
        line-height: 1.4;
        margin-bottom: 16px;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }

    .featured-post .post-excerpt {
        display: none;
    }

    .featured-post .post-meta {
        display: none;
    }

    .featured-post .read-more-btn {
        display: inline-flex;
        align-items: center;
        gap: 8px;
        padding: 10px 20px;
        background: transparent;
        color: var(--secondary-color);
        border: 2px solid var(--secondary-color);
        border-radius: 24px;
        font-size: 13px;
        font-weight: 500;
        text-decoration: none;
        transition: var(--transition);
    }

    .featured-post .read-more-btn:hover {
        background: var(--primary-color);
        border-color: var(--primary-color);
        color: var(--white);
    }

    .featured-post .read-more-btn svg {
        width: 14px;
        height: 14px;
        transition: transform 0.3s ease;
    }

    .featured-post .read-more-btn:hover svg {
        transform: translateX(4px);
    }

    /* Featured Badge */
    .featured-badge {
        position: absolute;
        bottom: 16px;
        left: 16px;
        background: rgba(0, 0, 0, 0.85);
        color: var(--white);
        padding: 6px 12px;
        border-radius: 6px;
        font-size: 12px;
        font-weight: 600;
        display: flex;
        align-items: center;
        gap: 6px;
        z-index: 2;
    }

    .featured-badge svg {
        width: 14px;
        height: 14px;
    }

    /* Posts Grid - 2 Columns Mobile */
    .posts-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }

    .post-card .post-content {
        padding: 12px;
    }

    .post-card .post-title {
        font-size: 13px;
        line-height: 1.3;
        margin-bottom: 0;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }

    .post-card .post-excerpt,
    .post-card .post-meta {
        display: none;
    }

    .post-card .category-badge {
        display: none;
    }

    /* List View Mobile */
    .posts-list {
        gap: 16px;
    }

    .posts-list .post-card {
        grid-template-columns: 120px 1fr;
        gap: 12px;
    }

    .posts-list .post-card .post-thumbnail {
        padding-top: 75%;
        border-radius: var(--radius-sm);
    }

    .posts-list .post-card .post-content {
        padding: 0;
        display: flex;
        align-items: center;
    }

    .posts-list .post-card .post-title {
        font-size: 14px;
        line-height: 1.3;
        margin-bottom: 0;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }

    .single-post-header .post-title {
        font-size: 24px;
    }
    
    .single-post-container {
        padding: 20px;
        border-radius: 0;
        border-left: none;
        border-right: none;
    }
    
    .single-post-title {
        font-size: 22px;
    }
    
    .single-featured-image {
        border-radius: var(--radius-sm);
    }

    .single-post-content {
        padding: 0;
    }

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

    .footer-links {
        flex-direction: row;
        justify-content: center;
        flex-wrap: wrap;
        gap: 10px;
    }
    
    .footer-links a {
        margin: 0;
    }
}

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

    .social-links,
    .partner-links {
        grid-template-columns: 1fr;
    }

    .single-post-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
}

/* ========================================
   Animations
======================================== */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.post-card {
    animation: fadeIn 0.5s ease forwards;
}

.post-card:nth-child(1) { animation-delay: 0.1s; }
.post-card:nth-child(2) { animation-delay: 0.2s; }
.post-card:nth-child(3) { animation-delay: 0.3s; }
.post-card:nth-child(4) { animation-delay: 0.4s; }
.post-card:nth-child(5) { animation-delay: 0.5s; }
.post-card:nth-child(6) { animation-delay: 0.6s; }

/* ========================================
   Utilities
======================================== */
.screen-reader-text {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}

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

/* ========================================
   Contact Form Modal
======================================== */
.contact-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
}

.contact-modal.active {
    opacity: 1;
    visibility: visible;
}

.contact-modal-content {
    background: var(--white);
    border-radius: var(--radius);
    max-width: 600px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    transform: translateY(-20px);
    transition: var(--transition);
}

.contact-modal.active .contact-modal-content {
    transform: translateY(0);
}

.contact-modal-header {
    background: #2c5f7c;
    color: #ffffff;
    padding: 24px 30px;
    border-radius: var(--radius) var(--radius) 0 0;
    position: relative;
}

.contact-modal-header h2 {
    margin: 0 0 8px 0;
    font-size: 20px;
    font-weight: 600;
    color: #ffffff;
}

.contact-modal-header p {
    margin: 0;
    font-size: 13px;
    opacity: 0.9;
    line-height: 1.5;
    color: #ffffff;
}

.contact-modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.2);
    border: none;
    border-radius: 4px;
    cursor: pointer;
    color: var(--white);
    transition: var(--transition);
}

.contact-modal-close:hover {
    background: rgba(255, 255, 255, 0.3);
}

.contact-modal-body {
    padding: 30px;
}

.contact-form-group {
    margin-bottom: 20px;
}

.contact-form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
}

.contact-form-group label {
    display: block;
    margin-bottom: 8px;
    font-size: 13px;
    font-weight: 500;
    color: var(--text-color);
}

.contact-form-group input,
.contact-form-group textarea {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    font-size: 14px;
    font-family: inherit;
    background: var(--bg-color);
    color: var(--text-color);
    transition: var(--transition);
}

.contact-form-group input:focus,
.contact-form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(246, 161, 87, 0.1);
}

.contact-form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.contact-form-submit {
    width: 100%;
    padding: 14px 24px;
    background: var(--primary-color);
    color: var(--white);
    border: none;
    border-radius: var(--radius-sm);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.contact-form-submit:hover {
    background: #e5915a;
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
}

.contact-form-submit:active {
    transform: translateY(0);
}

body.dark-mode .contact-modal-header {
    background: #2c5f7c;
}

body.dark-mode .contact-modal-header h2,
body.dark-mode .contact-modal-header p {
    color: #ffffff;
}

body.dark-mode .contact-form-group label {
    color: #e4e6eb;
}

body.dark-mode .contact-form-group input,
body.dark-mode .contact-form-group textarea {
    background: #0f1419;
    border-color: #2f3336;
    color: #e4e6eb;
}

body.dark-mode .contact-form-group input:focus,
body.dark-mode .contact-form-group textarea:focus {
    border-color: var(--primary-color);
    background: #0f1419;
}

body.dark-mode .featured-badge {
    background: rgba(0, 0, 0, 0.8);
    color: #ffffff;
}

@media (max-width: 768px) {
    .contact-modal {
        align-items: center;
        justify-content: center;
        padding: calc(var(--arlina-wpadminbar-h) + 12px) 12px 12px 12px;
        overflow: hidden;
    }
    
    .contact-modal-content {
        max-width: 560px;
        width: 100%;
        min-height: 0;
        max-height: calc(100dvh - (var(--arlina-wpadminbar-h) + 24px));
        margin: 0 auto;
        overflow-x: hidden;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
        border-radius: var(--radius);
        display: flex;
        flex-direction: column;
    }

    .contact-form-row {
        grid-template-columns: 1fr;
    }
    
    .contact-modal-body {
        padding: 20px;
        flex: 1;
    }
    
    .contact-modal-header {
        padding: 20px;
        border-radius: 0;
        flex-shrink: 0;
    }

    .contact-modal-header h2 {
        font-size: 18px;
        margin-bottom: 8px;
        padding-right: 50px;
    }

    .contact-modal-header p {
        font-size: 13px;
        line-height: 1.5;
    }

    .contact-modal-close {
        top: 18px;
        right: 18px;
        width: 36px;
        height: 36px;
        background: rgba(255, 255, 255, 0.3);
    }
    
    .contact-modal-close:hover {
        background: rgba(255, 255, 255, 0.4);
    }

    .contact-form-group {
        margin-bottom: 18px;
    }

    .contact-form-group label {
        font-size: 14px;
        margin-bottom: 8px;
    }

    .contact-form-group input,
    .contact-form-group textarea {
        padding: 14px;
        font-size: 16px;
    }
    
    .contact-form-group textarea {
        min-height: 150px;
    }
    
    .contact-form-submit {
        width: 100%;
        padding: 16px;
        font-size: 16px;
        margin-bottom: 20px;
    }
}

/* Dark Mode Icon Toggle */
#dark-mode-toggle svg {
    transition: var(--transition);
}

#dark-mode-toggle .sun-icon {
    display: none;
}

/* ========================================
   Page Card Styles
======================================== */
.page-article {
    margin-bottom: 30px;
}

.page-card {
    background: transparent;
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    overflow: hidden;
    transition: var(--transition);
}

body.dark-mode .page-card {
    background: var(--white);
    border: none;
    box-shadow: var(--shadow);
}

.page-header {
    padding: 30px;
    border-bottom: 1px solid var(--border-color);
}

body.dark-mode .page-header {
    border-bottom-color: rgba(255, 255, 255, 0.1);
}

.page-title {
    font-size: 32px;
    font-weight: 600;
    color: var(--secondary-color);
    margin: 0;
    line-height: 1.3;
}

.page-thumbnail {
    position: relative;
    overflow: hidden;
}

.page-thumbnail img {
    width: 100%;
    height: auto;
    display: block;
}

.page-content {
    padding: 30px;
    color: var(--text-color);
    line-height: 1.8;
}

.page-content p {
    margin-bottom: 20px;
}

.page-content h2,
.page-content h3,
.page-content h4 {
    color: var(--secondary-color);
    margin-top: 30px;
    margin-bottom: 15px;
}

.page-content h2 {
    font-size: 28px;
}

.page-content h3 {
    font-size: 24px;
}

.page-content h4 {
    font-size: 20px;
}

.page-content ul,
.page-content ol {
    margin-left: 20px;
    margin-bottom: 20px;
}

.page-content li {
    margin-bottom: 10px;
}

.page-content blockquote {
    border-left: 4px solid var(--primary-color);
    padding: 20px 30px;
    margin: 30px 0;
    background: #f9f9f9;
    border-radius: 0 var(--radius) var(--radius) 0;
    font-style: italic;
}

body.dark-mode .page-content blockquote {
    background: rgba(255, 255, 255, 0.05);
}

.page-content img {
    max-width: 100%;
    height: auto;
    border-radius: var(--radius);
    margin: 20px 0;
}

.page-content a {
    color: var(--primary-color);
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: var(--transition);
}

.page-content a:hover {
    border-bottom-color: var(--primary-color);
}

.page-links {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid var(--border-color);
}

body.dark-mode .page-links {
    border-top-color: rgba(255, 255, 255, 0.1);
}

.page-links a {
    display: inline-block;
    padding: 8px 16px;
    margin: 5px;
    background: var(--primary-color);
    color: var(--white);
    border-radius: var(--radius-sm);
    text-decoration: none;
    transition: var(--transition);
}

.page-links a:hover {
    background: #e5915a;
    transform: translateY(-2px);
}

/* Mobile Responsive Styles for Pages */
@media (max-width: 768px) {
    .page-card {
        border-radius: 0;
        border-left: none;
        border-right: none;
    }
    
    .page-header {
        padding: 20px;
    }
    
    .page-title {
        font-size: 24px;
    }
    
    .page-content {
        padding: 20px;
    }
    
    .page-content h2 {
        font-size: 22px;
    }
    
    .page-content h3 {
        font-size: 20px;
    }
    
    .page-content h4 {
        font-size: 18px;
    }
    
    .page-content blockquote {
        padding: 15px 20px;
        margin: 20px 0;
    }
}

/* ========================================
   Ad Containers
======================================== */
.ad-container {
    margin: 24px 0;
    text-align: center;
    overflow: hidden;
}

.ad-below-header {
    background: var(--bg-color);
    padding: 20px 0;
    text-align: center;
    display: flex;
    justify-content: center;
    align-items: center;
}

.ad-below-featured {
    margin: 30px auto;
    text-align: center;
    display: flex;
    justify-content: center;
    align-items: center;
}

.ad-before-footer {
    background: var(--bg-color);
    padding: 30px 0;
    margin: 0;
    text-align: center;
    display: flex;
    justify-content: center;
    align-items: center;
}

.ad-below-featured-image {
    margin: 20px 0;
}

.ad-end-post {
    margin-top: 30px;
    padding-top: 30px;
    border-top: 1px solid var(--border-color);
}

.widget-ad-custom {
    background: var(--white);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    padding: 20px;
    margin-bottom: 24px;
    text-align: center;
}

body.dark-mode .widget-ad-custom {
    background: var(--white);
    border: none;
    box-shadow: var(--shadow);
}

@media (max-width: 768px) {
    .ad-container {
        margin: 16px 0;
    }
    
    .ad-below-header,
    .ad-before-footer {
        padding: 15px 0;
    }
}

#dark-mode-toggle .moon-icon {
    display: block;
}

body.dark-mode #dark-mode-toggle .sun-icon {
    display: block;
}

body.dark-mode #dark-mode-toggle .moon-icon {
    display: none;
}
