/**
 * Main CSS
 *
 * @package Tincity_Archive
 */

/* ---------- CSS Variables ---------- */
:root {
    --primary: #2d2a24;
    --secondary: #5e5544;
    --background: #f4f1ea;
    --text: #1e1e2a;
    --border: #d6cdbe;
    --card-bg: #ffffff;
    --shadow: rgba(0,0,0,0.04);
    --radius: 28px;
    --transition: 0.25s cubic-bezier(0.2, 0, 0, 1);
}

/* ---------- Reset & Base ---------- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: var(--background);
    color: var(--text);
    padding-top: 80px;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.site {
    max-width: 1400px;
    width: 100%;
    padding: 0 1.5rem 1.5rem;
    flex: 1;
}

/* ---------- Typography ---------- */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.3;
    color: var(--text);
}

a {
    color: var(--primary);
    text-decoration: none;
    transition: color 0.15s;
}

a:hover {
    color: #000;
}

img {
    max-width: 100%;
    height: auto;
}

/* ---------- Sticky Header ---------- */
.sticky-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: rgba(244, 241, 234, 0.93);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
    padding: 0.5rem 1.5rem;
    z-index: 999;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    transition: box-shadow 0.2s;
}

.sticky-header:hover {
    box-shadow: 0 4px 20px rgba(0,0,0,0.04);
}

.header-brand-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
}

.header-brand-link .custom-logo {
    max-height: 40px;
    width: auto;
}

.logo-icon {
    background: var(--primary);
    color: var(--background);
    padding: 0.3rem 0.6rem;
    border-radius: 40px;
    font-size: 1.3rem;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
}

.brand-text {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}

.brand-name {
    font-weight: 700;
    font-size: 1.3rem;
    letter-spacing: -0.02em;
    background: linear-gradient(145deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.brand-sub {
    font-size: 0.6rem;
    color: #6e6557;
    font-weight: 500;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    -webkit-text-fill-color: #6e6557;
}

/* ---------- Navigation ---------- */
.header-nav {
    display: flex;
    align-items: center;
    gap: 1.2rem;
    flex-wrap: wrap;
}

.header-nav .nav-menu {
    display: flex;
    gap: 1.2rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

.header-nav .nav-menu li {
    position: relative;
}

.header-nav .nav-menu a {
    text-decoration: none;
    color: var(--text);
    font-weight: 500;
    font-size: 0.9rem;
    padding: 0.2rem 0;
    border-bottom: 2px solid transparent;
    transition: 0.15s;
}

.header-nav .nav-menu a:hover {
    border-bottom-color: var(--primary);
    color: #000;
}

.header-nav .nav-menu .sub-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: white;
    min-width: 200px;
    padding: 0.5rem 0;
    border-radius: 16px;
    box-shadow: 0 12px 40px rgba(0,0,0,0.08);
    border: 1px solid #e3dbce;
    z-index: 1000;
}

.header-nav .nav-menu li:hover > .sub-menu {
    display: block;
}

.header-nav .nav-menu .sub-menu a {
    display: block;
    padding: 0.5rem 1.2rem;
    border-bottom: none;
}

.header-nav .nav-menu .sub-menu a:hover {
    background: var(--background);
}

/* ---------- Login Dropdown ---------- */
.login-dropdown {
    position: relative;
    display: inline-block;
}

.login-dropdown .login-btn {
    background: transparent;
    color: var(--text);
    border: none;
    padding: 0.2rem 0;
    font-weight: 500;
    font-size: 0.9rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.4rem;
    transition: 0.15s;
    font-family: 'Inter', sans-serif;
    border-bottom: 2px solid transparent;
}

.login-dropdown .login-btn:hover {
    border-bottom-color: var(--primary);
    color: #000;
}

.dropdown-menu {
    display: none;
    position: absolute;
    right: 0;
    top: 110%;
    background: white;
    min-width: 180px;
    border-radius: 20px;
    box-shadow: 0 12px 40px rgba(0,0,0,0.08);
    border: 1px solid #e3dbce;
    padding: 0.5rem 0;
    z-index: 1000;
    animation: slideDown 0.2s ease;
}

.dropdown-menu.open {
    display: block;
}

.dropdown-menu a {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.6rem 1.2rem;
    color: var(--text);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9rem;
    border-bottom: none;
    transition: 0.1s;
}

.dropdown-menu a:hover {
    background: var(--background);
}

.dropdown-menu .divider {
    height: 1px;
    background: #e7dfd3;
    margin: 0.3rem 1rem;
}

@keyframes slideDown {
    0% { opacity: 0; transform: translateY(-8px); }
    100% { opacity: 1; transform: translateY(0); }
}

/* ---------- Hamburger ---------- */
.hamburger {
    display: none;
    background: none;
    border: none;
    font-size: 1.6rem;
    color: var(--text);
    cursor: pointer;
    padding: 0.2rem 0.5rem;
    transition: 0.2s;
}

.hamburger:hover {
    color: #000;
}

/* ---------- Mobile Side Menu ---------- */
.side-menu-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.3);
    backdrop-filter: blur(4px);
    z-index: 9998;
    animation: fadeIn 0.25s ease;
}

.side-menu-overlay.open {
    display: block;
}

.side-menu {
    position: fixed;
    top: 0;
    right: -340px;
    width: 320px;
    max-width: 88%;
    height: 100%;
    background: #fcf9f4;
    z-index: 9999;
    padding: 1.5rem 1.2rem;
    transition: right 0.3s cubic-bezier(0.22, 1, 0.36, 1);
    box-shadow: -8px 0 30px rgba(0,0,0,0.04);
    border-left: 1px solid #e3dbce;
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
    overflow-y: auto;
}

.side-menu.open {
    right: 0;
}

.side-menu .close-btn {
    align-self: flex-end;
    background: none;
    border: none;
    font-size: 2rem;
    color: var(--text);
    cursor: pointer;
    padding: 0 0.2rem;
    margin-bottom: 0.2rem;
}

.side-menu .side-brand {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding-bottom: 0.8rem;
    border-bottom: 2px solid var(--border);
    margin-bottom: 0.5rem;
}

.side-menu .side-brand .logo-icon {
    width: 34px;
    height: 34px;
    font-size: 1.1rem;
}

.side-menu .side-brand .brand-name {
    font-weight: 700;
    font-size: 1.2rem;
    background: linear-gradient(145deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.side-menu .side-nav {
    list-style: none;
    padding: 0;
    margin: 0;
}

.side-menu .side-nav > li {
    border-bottom: 1px solid #e7dfd3;
}

.side-menu .side-nav > li:last-child {
    border-bottom: none;
}

.side-menu .side-nav a,
.side-menu .side-nav .side-nav-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    text-decoration: none;
    color: var(--text);
    font-weight: 500;
    font-size: 1.05rem;
    padding: 0.6rem 0;
    cursor: pointer;
    background: none;
    border: none;
    width: 100%;
    font-family: 'Inter', sans-serif;
    text-align: left;
}

.side-menu .side-nav a:hover,
.side-menu .side-nav .side-nav-link:hover {
    color: #000;
}

.side-menu .side-nav a i,
.side-menu .side-nav .side-nav-link i {
    width: 1.6rem;
    color: #6d624f;
}

.side-menu .side-nav .arrow {
    font-size: 0.7rem;
    transition: transform 0.2s;
    color: #6d624f;
}

.side-menu .side-nav .arrow.open {
    transform: rotate(90deg);
}

.side-menu .side-nav .sub-menu {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s cubic-bezier(0.22, 1, 0.36, 1);
    padding-left: 1.8rem;
    list-style: none;
}

.side-menu .side-nav .sub-menu.open {
    max-height: 500px;
}

.side-menu .side-nav .sub-menu a {
    font-weight: 400;
    font-size: 0.95rem;
    padding: 0.4rem 0;
    color: #4a4135;
    border-bottom: 1px solid #f0ebe2;
}

.side-menu .side-nav .sub-menu a:hover {
    color: var(--text);
}

.side-menu .side-nav .sub-menu a i {
    width: 1.4rem;
    font-size: 0.85rem;
    color: #8b7f6b;
}

@keyframes fadeIn {
    0% { opacity: 0; }
    100% { opacity: 1; }
}

/* ---------- Slider ---------- */
/* ============================================
   SLIDER STYLES - IMPROVED
   ============================================ */

.slider-section {
    margin-bottom: 2.2rem;
    border-radius: 32px;
    overflow: hidden;
    box-shadow: 0 12px 30px rgba(0,0,0,0.04);
    background: #e8e1d6;
    position: relative;
    height: 210px;
    margin-top: 0.2rem;
}

.slider-track {
    display: flex;
    height: 100%;
    width: 100%;
    transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    will-change: transform;
}

.slide-item {
    min-width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem 2rem;
    background-size: cover;
    background-position: center;
    position: relative;
}

/* Dark overlay for better text readability */
.slide-item::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.25);
    z-index: 1;
}

.slide-item .slide-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 80%;
    color: #ffffff;
}

.slide-item .slide-title {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: #ffffff;
    text-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

.slide-item .slide-text {
    font-size: 1.1rem;
    font-weight: 400;
    color: #ffffff;
    text-shadow: 0 1px 8px rgba(0,0,0,0.3);
    background: rgba(0, 0, 0, 0.3);
    padding: 0.4rem 1.4rem;
    border-radius: 60px;
    display: inline-block;
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}

.slide-item .slide-link {
    display: inline-block;
    margin-top: 0.8rem;
    padding: 0.5rem 1.8rem;
    background: #2d2a24;
    color: #ffffff !important;
    border-radius: 40px;
    text-decoration: none;
    font-weight: 600;
    transition: 0.2s;
}

.slide-item .slide-link:hover {
    opacity: 0.9;
    transform: scale(1.03);
}

/* Slider controls */
.slider-controls {
    position: absolute;
    bottom: 12px;
    right: 16px;
    display: flex;
    gap: 0.4rem;
    z-index: 10;
}

.slider-dot {
    width: 10px;
    height: 10px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.5);
    border: none;
    cursor: pointer;
    transition: 0.2s;
    padding: 0;
    backdrop-filter: blur(2px);
    border: 1px solid rgba(255,255,255,0.2);
}

.slider-dot.active {
    background: #ffffff;
    width: 28px;
    border-color: #ffffff;
}

.slider-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(30, 28, 22, 0.3);
    backdrop-filter: blur(4px);
    border: none;
    color: #ffffff;
    font-size: 1.6rem;
    padding: 0.2rem 0.8rem;
    border-radius: 40px;
    cursor: pointer;
    z-index: 10;
    transition: 0.15s;
    border: 1px solid rgba(255,255,255,0.08);
}

.slider-arrow:hover {
    background: rgba(30, 28, 22, 0.6);
}

.slider-arrow.prev { left: 12px; }
.slider-arrow.next { right: 12px; }

/* Mobile slider */
@media (max-width: 640px) {
    .slider-section { height: 160px; }
    .slide-item .slide-title { font-size: 1.2rem; }
    .slide-item .slide-text { font-size: 0.85rem; }
    .slider-arrow { font-size: 1rem; padding: 0.1rem 0.5rem; }
}

/* ---------- Toolbar ---------- */
.toolbar {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem 1.5rem;
    margin-bottom: 2.5rem;
    padding: 0.8rem 1.2rem;
    background: #eae5dc;
    border-radius: 60px;
    backdrop-filter: blur(2px);
    align-items: center;
    transition: all 0.2s;
}

.toolbar:hover {
    background: #e0d9ce;
    box-shadow: 0 6px 14px rgba(0,0,0,0.04);
}

.filter-group {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.filter-btn {
    background: transparent;
    border: 1px solid #b8aea0;
    padding: 0.4rem 1rem;
    border-radius: 40px;
    font-weight: 500;
    font-size: 0.9rem;
    color: #3d362c;
    cursor: pointer;
    transition: 0.15s;
}

.filter-btn.active {
    background: var(--primary);
    color: var(--background);
    border-color: var(--primary);
}

.filter-btn:hover {
    background: #cbc1b2;
    border-color: #8f8372;
}

.search-wrapper {
    display: flex;
    align-items: center;
    background: white;
    border-radius: 40px;
    padding: 0.1rem 0.1rem 0.1rem 1.2rem;
    box-shadow: 0 2px 6px rgba(0,0,0,0.02);
    flex: 1 1 160px;
    min-width: 120px;
}

.search-wrapper i {
    color: #7a6e5c;
}

.search-wrapper input {
    border: none;
    padding: 0.5rem 0.8rem;
    font-size: 0.95rem;
    background: transparent;
    width: 100%;
    outline: none;
    font-family: 'Inter', sans-serif;
}

.search-wrapper input::placeholder {
    color: #a09684;
    font-weight: 400;
}

.controls-group {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    flex-wrap: wrap;
    margin-left: auto;
}

.view-toggle {
    display: flex;
    gap: 0.3rem;
    background: white;
    padding: 0.2rem;
    border-radius: 40px;
    border: 1px solid #d4cbbc;
}

.view-btn {
    background: transparent;
    border: none;
    padding: 0.3rem 0.7rem;
    border-radius: 30px;
    cursor: pointer;
    font-size: 1rem;
    color: #6e6557;
    transition: 0.15s;
}

.view-btn.active {
    background: var(--primary);
    color: white;
}

.view-btn:hover:not(.active) {
    background: #e2dbd0;
}

.per-page-select {
    padding: 0.3rem 0.8rem 0.3rem 0.6rem;
    border-radius: 40px;
    border: 1px solid #d4cbbc;
    background: white;
    font-family: 'Inter', sans-serif;
    font-weight: 500;
    font-size: 0.85rem;
    color: var(--text);
    cursor: pointer;
    outline: none;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%235e5544' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.6rem center;
    padding-right: 2rem;
}

.per-page-select:hover {
    border-color: #b8aea0;
}

.per-page-select:focus {
    border-color: var(--primary);
}

/* ---------- Archive Grid ---------- */
.archive-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 0.5rem;
}

.archive-grid.list-view {
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
}

.archive-grid.list-view .archive-card {
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    padding: 1.2rem 1.8rem;
    gap: 1rem;
}

.archive-grid.list-view .archive-card .card-preview {
    width: 120px;
    height: 80px;
    flex-shrink: 0;
    margin: 0;
}

.archive-grid.list-view .archive-card .card-title {
    font-size: 1.2rem;
    flex: 1;
    min-width: 140px;
}

.archive-grid.list-view .archive-card .card-source {
    margin: 0;
}

.archive-grid.list-view .archive-card .card-actions {
    border-top: none;
    padding-top: 0;
    margin: 0;
    margin-left: auto;
}

.archive-grid.list-view .archive-card .card-type {
    margin-bottom: 0;
}

/* ---------- Archive Card ---------- */
.archive-card {
    background: rgba(255, 255, 255, 0.93);
    backdrop-filter: blur(2px);
    border-radius: var(--radius);
    box-shadow: 0 8px 24px rgba(0,0,0,0.04), 0 1px 3px rgba(0,0,0,0.03);
    padding: 1.5rem 1.5rem 1.2rem;
    transition: all var(--transition);
    border: 1px solid #ece6dc;
    display: flex;
    flex-direction: column;
    animation: floatIn 0.5s ease backwards;
}

.archive-card:hover {
    transform: translateY(-6px) scale(1.01);
    box-shadow: 0 20px 35px -6px rgba(0,0,0,0.08), 0 8px 14px rgba(0,0,0,0.02);
    border-color: #d1c6b6;
    background: #ffffff;
}

@keyframes floatIn {
    0% { opacity: 0; transform: translateY(18px); }
    100% { opacity: 1; transform: translateY(0); }
}

.card-type {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    color: #6e6557;
    margin-bottom: 0.6rem;
}

.card-type i {
    font-size: 1.2rem;
    color: #8b7f6b;
}

.card-title {
    font-weight: 700;
    font-size: 1.4rem;
    line-height: 1.3;
    color: #1f1c16;
    margin-bottom: 0.3rem;
}

.card-title a {
    color: inherit;
}

.card-title a:hover {
    color: var(--primary);
}

.card-source {
    font-size: 0.8rem;
    background: #eee9e0;
    padding: 0.2rem 0.8rem;
    border-radius: 30px;
    display: inline-block;
    color: #3f382d;
    margin: 0.5rem 0 0.8rem 0;
    align-self: flex-start;
    border: 1px solid #d8cfc0;
}

.card-source i {
    margin-right: 0.3rem;
    color: #6d624f;
}

.card-preview {
    width: 100%;
    height: 130px;
    background: #dbd2c4;
    border-radius: 18px;
    margin: 0.6rem 0 0.8rem 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background-size: cover;
    background-position: center;
    background-blend-mode: overlay;
    color: var(--text);
    font-weight: 500;
    font-size: 0.9rem;
    transition: 0.2s;
    border: 1px solid #e2d9cc;
    overflow: hidden;
    position: relative;
}

.card-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.card-preview i {
    font-size: 2.4rem;
    opacity: 0.8;
    color: #4b4236;
    background: rgba(255, 255, 240, 0.4);
    padding: 0.5rem;
    border-radius: 60px;
}

.card-preview .map-badge {
    position: absolute;
    bottom: 6px;
    right: 8px;
    background: rgba(45, 42, 36, 0.82);
    color: #f0ebe2;
    padding: 0.1rem 0.7rem;
    border-radius: 30px;
    font-size: 0.65rem;
    font-weight: 600;
    backdrop-filter: blur(2px);
}

.card-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 0.8rem 0 0.4rem 0;
    border-top: 1px solid #e7dfd3;
    padding-top: 0.8rem;
}

.like-area {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-weight: 500;
}

.like-area .like-btn {
    background: none;
    border: none;
    font-size: 1.2rem;
    color: #847a68;
    cursor: pointer;
    transition: 0.15s;
    padding: 0;
}

.like-area .like-btn:hover {
    color: var(--primary);
}

.like-area.liked .like-btn i {
    color: #c73b3b;
}

.like-area .like-btn i.fas {
    color: #c73b3b;
}

.like-area .like-count {
    font-size: 0.95rem;
    min-width: 1.8rem;
    color: var(--text);
}

.comment-toggle {
    background: transparent;
    border: none;
    font-weight: 500;
    color: #5e5544;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.2rem 0.6rem;
    border-radius: 30px;
    transition: 0.1s;
    text-decoration: none;
}

.comment-toggle:hover {
    background: #e7dfd3;
    color: var(--text);
}

/* ---------- Single Post ---------- */
.single-post .entry-header {
    margin-bottom: 1.5rem;
}

.single-post .entry-type {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    color: #6e6557;
    background: #eae5dc;
    padding: 0.3rem 1rem;
    border-radius: 40px;
    margin-bottom: 0.8rem;
}

.single-post .entry-type i {
    font-size: 1rem;
    color: #8b7f6b;
}

.single-post .entry-title {
    font-size: 2.4rem;
    line-height: 1.2;
    margin-bottom: 0.5rem;
}

.single-post .entry-source {
    font-size: 0.9rem;
    color: #5e5544;
    background: #f0ebe2;
    padding: 0.3rem 1rem;
    border-radius: 40px;
    display: inline-block;
}

.single-post .entry-source i {
    margin-right: 0.4rem;
}

.single-post .entry-thumbnail {
    margin: 1.5rem 0;
    border-radius: 20px;
    overflow: hidden;
}

.single-post .entry-thumbnail img {
    width: 100%;
    height: auto;
}

.single-post .entry-content {
    font-size: 1.05rem;
    line-height: 1.8;
    margin-bottom: 2rem;
}

.single-post .entry-content p {
    margin-bottom: 1.2rem;
}

.single-post .entry-content h2,
.single-post .entry-content h3 {
    margin: 1.5rem 0 0.8rem;
}

.single-post .entry-content ul,
.single-post .entry-content ol {
    margin: 0 0 1.2rem 1.5rem;
}

.single-post .entry-file,
.single-post .entry-source-url {
    background: #f4f1ea;
    padding: 1rem 1.5rem;
    border-radius: 16px;
    margin: 1rem 0;
    border-left: 3px solid var(--primary);
}

.single-post .entry-file h4,
.single-post .entry-source-url h4 {
    font-size: 0.9rem;
    color: #6e6557;
    margin-bottom: 0.3rem;
}

.single-post .entry-file a,
.single-post .entry-source-url a {
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.single-post .entry-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem 2rem;
    padding: 1rem 0;
    border-top: 1px solid #e7dfd3;
    border-bottom: 1px solid #e7dfd3;
    margin: 1.5rem 0;
}

.single-post .entry-meta .meta-label {
    font-weight: 600;
    color: #6e6557;
}

.single-post .entry-actions {
    display: flex;
    gap: 1.5rem;
    align-items: center;
    padding: 1rem 0;
}

.single-post .entry-actions .like-area .like-btn {
    font-size: 1.4rem;
}

.single-post .entry-actions .report-btn {
    background: none;
    border: none;
    color: #6e6557;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.3rem 0.8rem;
    border-radius: 30px;
    transition: 0.15s;
    font-family: 'Inter', sans-serif;
}

.single-post .entry-actions .report-btn:hover {
    background: #e7dfd3;
    color: var(--text);
}

/* ---------- Comments ---------- */
.comments-area {
    margin-top: 2.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid #e7dfd3;
}

.comments-title {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
}

.comment-list {
    list-style: none;
    padding: 0;
    margin: 0 0 2rem;
}

.comment-list .comment {
    margin-bottom: 1rem;
}

.comment-body {
    background: #f8f6f2;
    padding: 1rem 1.5rem;
    border-radius: 16px;
}

.comment-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    margin-bottom: 0.5rem;
}

.comment-author {
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.comment-author img {
    border-radius: 50%;
}

.comment-author .comment-author-name {
    font-weight: 600;
}

.comment-author .comment-date {
    font-size: 0.8rem;
    color: #6e6557;
}

.comment-actions .comment-report-btn {
    background: none;
    border: none;
    color: #6e6557;
    cursor: pointer;
    font-size: 0.8rem;
    padding: 0.2rem 0.6rem;
    border-radius: 30px;
    transition: 0.15s;
    font-family: 'Inter', sans-serif;
}

.comment-actions .comment-report-btn:hover {
    background: #e7dfd3;
}

.comment-awaiting-moderation {
    color: #e67e22;
    font-size: 0.9rem;
    margin: 0.3rem 0;
}

.comment-content {
    margin: 0.5rem 0;
}

.comment-content p:last-child {
    margin-bottom: 0;
}

.comment-reply {
    margin-top: 0.5rem;
}

.comment-reply a {
    font-size: 0.85rem;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
}

/* Comment Form */
.comment-respond {
    margin-top: 2rem;
}

.comment-respond .comment-reply-title {
    font-size: 1.3rem;
    margin-bottom: 1rem;
}

.comment-respond .form-group {
    margin-bottom: 1rem;
}

.comment-respond .form-group label {
    display: block;
    font-weight: 500;
    margin-bottom: 0.2rem;
    font-size: 0.9rem;
}

.comment-respond .form-group .required {
    color: #e74c3c;
}

.comment-respond .form-group input,
.comment-respond .form-group textarea {
    width: 100%;
    padding: 0.6rem 1rem;
    border: 1px solid #d4cbbc;
    border-radius: 12px;
    font-family: 'Inter', sans-serif;
    font-size: 0.95rem;
    transition: 0.15s;
    background: white;
}

.comment-respond .form-group input:focus,
.comment-respond .form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(45, 42, 36, 0.1);
}

.comment-respond .form-submit {
    margin-top: 0.5rem;
}

.comment-respond .form-submit .submit {
    background: var(--primary);
    color: white;
    border: none;
    padding: 0.6rem 2rem;
    border-radius: 40px;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: 0.2s;
    font-family: 'Inter', sans-serif;
}

.comment-respond .form-submit .submit:hover {
    background: #3f382d;
    transform: scale(1.02);
}

/* ---------- Pagination ---------- */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.6rem;
    margin-top: 2.5rem;
    padding: 1rem 0;
    flex-wrap: wrap;
}

.pagination a,
.pagination span {
    background: #eae5dc;
    border: 1px solid #d4cbbc;
    padding: 0.4rem 1rem;
    border-radius: 40px;
    font-weight: 500;
    color: var(--text);
    transition: 0.15s;
    font-size: 0.9rem;
    text-decoration: none;
}

.pagination a:hover {
    background: #d4cbbc;
}

.pagination .current {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

.pagination .page-info {
    font-weight: 500;
    color: #5e5544;
    padding: 0 0.5rem;
    background: none;
    border: none;
}

/* ---------- Forms ---------- */
/* ============================================
   FORM STYLES - IMPROVED WIDTH & RESPONSIVE
   ============================================ */

/* Form wrapper - balanced width */
.tincity-form-wrapper {
    max-width: 600px;
    width: 100%;
    margin: 0 auto;
    padding: 2rem 2.5rem;
    background: #ffffff;
    border-radius: 28px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.04);
    border: 1px solid #ece6dc;
}

/* Narrower forms for login/register */
.tincity-form-wrapper.login-form,
.tincity-form-wrapper.register-form,
.tincity-form-wrapper.reset-form,
.tincity-form-wrapper.contact-form {
    max-width: 480px;
}

/* Form fields */
.tincity-form .form-group {
    margin-bottom: 1.2rem;
}

.tincity-form .form-group label {
    display: block;
    font-weight: 500;
    margin-bottom: 0.3rem;
    font-size: 0.9rem;
    color: #2d2a24;
}

.tincity-form .form-group .required {
    color: #e74c3c;
    font-weight: 600;
}

.tincity-form .form-group input[type="text"],
.tincity-form .form-group input[type="email"],
.tincity-form .form-group input[type="password"],
.tincity-form .form-group input[type="url"],
.tincity-form .form-group input[type="number"],
.tincity-form .form-group select,
.tincity-form .form-group textarea {
    width: 100%;
    padding: 0.6rem 1rem;
    border: 1px solid #d4cbbc;
    border-radius: 12px;
    font-family: 'Inter', sans-serif;
    font-size: 0.95rem;
    transition: 0.15s;
    background: #ffffff;
    box-sizing: border-box;
}

.tincity-form .form-group input:focus,
.tincity-form .form-group textarea:focus,
.tincity-form .form-group select:focus {
    outline: none;
    border-color: var(--primary-color, #2d2a24);
    box-shadow: 0 0 0 3px rgba(45, 42, 36, 0.08);
}

.tincity-form .form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.tincity-form .form-group .password-hint {
    display: block;
    font-size: 0.75rem;
    color: #6e6557;
    margin-top: 0.2rem;
}

.tincity-form .form-group .description {
    display: block;
    font-size: 0.8rem;
    color: #6e6557;
    margin-top: 0.2rem;
}

.tincity-form .form-group input[type="checkbox"] {
    width: 18px;
    height: 18px;
    margin-right: 0.4rem;
    accent-color: var(--primary-color, #2d2a24);
    cursor: pointer;
}

.tincity-form .form-group .checkbox-label {
    display: flex;
    align-items: center;
    cursor: pointer;
    font-weight: 400;
}

/* Form submit button */
.tincity-form .form-submit {
    margin-top: 0.5rem;
}

.tincity-form .tincity-form-submit {
    background: var(--primary-color, #2d2a24);
    color: #ffffff;
    border: none;
    padding: 0.7rem 2.5rem;
    border-radius: 40px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: 0.2s;
    font-family: 'Inter', sans-serif;
    width: 100%;
    max-width: 280px;
    display: block;
    margin: 0 auto;
}

.tincity-form .tincity-form-submit:hover {
    background: #3f382d;
    transform: scale(1.02);
}

.tincity-form .tincity-form-submit:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

/* Form messages */
.tincity-form .form-message {
    padding: 0.8rem 1rem;
    border-radius: 12px;
    margin-bottom: 1rem;
    display: none;
}

.tincity-form .form-message.success {
    display: block;
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.tincity-form .form-message.error {
    display: block;
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* Form links */
.tincity-form .form-links {
    text-align: center;
    margin-top: 1rem;
    font-size: 0.9rem;
    color: #5e5544;
}

.tincity-form .form-links a {
    color: var(--primary-color, #2d2a24);
    font-weight: 500;
    text-decoration: none;
}

.tincity-form .form-links a:hover {
    text-decoration: underline;
}

/* Two-column layout for forms */
.tincity-form .form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

/* Form heading */
.tincity-form-wrapper h3 {
    font-size: 1.6rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 1.5rem;
    color: var(--heading-color, #1f1c16);
}

.tincity-form-wrapper .form-subtitle {
    text-align: center;
    color: #6e6557;
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
}

/* Responsive */
@media (max-width: 768px) {
    .tincity-form-wrapper {
        padding: 1.5rem 1.5rem;
        max-width: 100%;
        border-radius: 20px;
    }
    
    .tincity-form-wrapper.login-form,
    .tincity-form-wrapper.register-form,
    .tincity-form-wrapper.reset-form,
    .tincity-form-wrapper.contact-form {
        max-width: 100%;
    }
    
    .tincity-form .form-row {
        grid-template-columns: 1fr;
        gap: 0;
    }
    
    .tincity-form .tincity-form-submit {
        max-width: 100%;
    }
    
    .tincity-form-wrapper h3 {
        font-size: 1.3rem;
    }
}

@media (max-width: 480px) {
    .tincity-form-wrapper {
        padding: 1rem 1rem;
        border-radius: 16px;
    }
    
    .tincity-form .form-group input[type="text"],
    .tincity-form .form-group input[type="email"],
    .tincity-form .form-group input[type="password"] {
        padding: 0.5rem 0.8rem;
        font-size: 0.9rem;
    }
    
    .tincity-form .tincity-form-submit {
        padding: 0.6rem 1.5rem;
        font-size: 0.9rem;
    }
}

/* For Elementor forms */
.elementor-widget .tincity-form-wrapper {
    max-width: 100%;
}

/* ---------- Chat Support ---------- */
.chat-support {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    z-index: 9997;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

.chat-window {
    display: none;
    background: #fcf9f4;
    border-radius: 28px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.08);
    border: 1px solid #e3dbce;
    width: 360px;
    max-width: 90vw;
    padding: 1.5rem 1.5rem 1.2rem;
    margin-bottom: 1rem;
    animation: slideUp 0.3s cubic-bezier(0.22, 1, 0.36, 1);
    transform-origin: bottom right;
}

.chat-window.open {
    display: block;
}

@keyframes slideUp {
    0% { opacity: 0; transform: translateY(20px) scale(0.95); }
    100% { opacity: 1; transform: translateY(0) scale(1); }
}

.chat-window .chat-header {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    margin-bottom: 0.8rem;
}

.chat-window .chat-header i {
    font-size: 1.6rem;
    color: var(--primary);
    background: #eae5dc;
    padding: 0.4rem;
    border-radius: 50%;
}

.chat-window .chat-header h4 {
    font-weight: 600;
    font-size: 1.1rem;
    color: #1f1c16;
}

.chat-window .chat-message {
    color: #3f382d;
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 1rem;
    padding: 0.8rem 1rem;
    background: var(--background);
    border-radius: 16px;
    border-left: 3px solid var(--primary);
}

.chat-window .chat-actions {
    display: flex;
    gap: 0.6rem;
    flex-wrap: wrap;
}

.chat-window .chat-actions .chat-support-btn {
    background: var(--primary);
    color: #f4f1ea;
    border: none;
    padding: 0.6rem 1.6rem;
    border-radius: 60px;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: 0.2s;
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-family: 'Inter', sans-serif;
    flex: 1;
    justify-content: center;
}

.chat-window .chat-actions .chat-support-btn:hover {
    background: #3f382d;
    transform: scale(1.02);
}

.chat-window .chat-actions .chat-support-btn i {
    color: #f7d44a;
}

.chat-window .chat-close {
    background: transparent;
    border: none;
    color: #6e6557;
    cursor: pointer;
    font-size: 0.85rem;
    padding: 0.4rem 0.8rem;
    border-radius: 30px;
    transition: 0.15s;
    font-family: 'Inter', sans-serif;
}

.chat-window .chat-close:hover {
    background: #eae5dc;
    color: var(--text);
}

.chat-window .chat-footer-text {
    font-size: 0.7rem;
    color: #a09684;
    margin-top: 0.6rem;
    text-align: center;
}

.chat-bubble-wrapper {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.4rem;
}

.chat-bubble {
    background: var(--primary);
    color: #f4f1ea;
    padding: 0.8rem 1.2rem 0.8rem 1.8rem;
    border-radius: 60px;
    display: flex;
    align-items: center;
    gap: 0.8rem;
    cursor: pointer;
    box-shadow: 0 8px 28px rgba(0,0,0,0.12);
    transition: all 0.25s cubic-bezier(0.22, 1, 0.36, 1);
    border: none;
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    font-size: 1rem;
    position: relative;
}

.chat-bubble:hover {
    transform: scale(1.05);
    box-shadow: 0 12px 36px rgba(0,0,0,0.18);
    background: #3f382d;
}

.chat-bubble i {
    font-size: 1.3rem;
    color: #f7d44a;
}

.chat-bubble .bubble-text {
    white-space: nowrap;
}

.chat-bubble .notification-dot {
    position: absolute;
    top: 4px;
    right: 4px;
    width: 14px;
    height: 14px;
    background: #f7d44a;
    border-radius: 50%;
    border: 2px solid var(--primary);
    animation: pulse-dot 2s infinite;
}

@keyframes pulse-dot {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.2); }
}

.chat-bubble .click-hint {
    font-size: 0.65rem;
    font-weight: 400;
    opacity: 0.7;
    margin-left: 0.2rem;
}

/* ---------- Footer ---------- */
.archive-footer {
    width: 100%;
    margin-top: 1.5rem;
    padding: 1.2rem 1.5rem 1rem;
    border-top: 2px dashed #c0b7a8;
    text-align: center;
    color: #5e5544;
    font-size: 0.9rem;
    background: var(--background);
}

.archive-footer .footer-widgets {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 1.5rem;
    text-align: left;
}

.archive-footer .footer-widget-title {
    font-size: 1rem;
    margin-bottom: 0.8rem;
}

.archive-footer .footer-widget ul {
    list-style: none;
    padding: 0;
}

.archive-footer .footer-widget ul li {
    margin-bottom: 0.3rem;
}

.archive-footer .footer-widget ul a {
    color: #5e5544;
    text-decoration: none;
}

.archive-footer .footer-widget ul a:hover {
    color: var(--text);
}

.archive-footer .footer-bottom {
    border-top: 1px solid #d6cdbe;
    padding-top: 1rem;
}

.archive-footer a {
    color: var(--text);
    text-decoration: none;
    font-weight: 600;
    transition: 0.15s;
}

.archive-footer a:hover {
    color: #000;
    text-decoration: underline;
}

.archive-footer .footer-heart {
    color: #c73b3b;
}

/* ---------- Responsive ---------- */
@media (max-width: 768px) {
    .header-nav {
        display: none;
    }

    .hamburger {
        display: block;
    }

    .brand-name {
        font-size: 1.1rem;
    }

    .brand-sub {
        font-size: 0.55rem;
    }

    .logo-icon {
        width: 34px;
        height: 34px;
        font-size: 1.1rem;
    }

    .toolbar {
        border-radius: 30px;
        flex-direction: column;
        align-items: stretch;
    }

    .search-wrapper {
        flex: 1;
    }

    .controls-group {
        margin-left: 0;
        justify-content: center;
    }

    .archive-grid.list-view .archive-card {
        flex-direction: column;
        align-items: stretch;
    }

    .archive-grid.list-view .archive-card .card-preview {
        width: 100%;
        height: 100px;
    }

    .archive-grid.list-view .archive-card .card-actions {
        margin-left: 0;
        border-top: 1px solid #e7dfd3;
        padding-top: 0.8rem;
        margin-top: 0.8rem;
    }

    .chat-window {
        width: 320px;
        max-width: 88vw;
    }

    .chat-support {
        bottom: 1.2rem;
        right: 1.2rem;
    }

    .chat-bubble {
        padding: 0.6rem 1rem 0.6rem 1.4rem;
        font-size: 0.9rem;
    }

    .chat-bubble i {
        font-size: 1.1rem;
    }

    .chat-bubble .click-hint {
        display: none;
    }

    .single-post .entry-title {
        font-size: 1.8rem;
    }

    .slider-section {
        height: 160px;
    }
}

@media (max-width: 480px) {
    .sticky-header {
        padding: 0.4rem 1rem;
    }

    .brand-name {
        font-size: 0.95rem;
    }

    .logo-icon {
        width: 30px;
        height: 30px;
        font-size: 0.95rem;
    }

    .site {
        padding: 0 0.8rem 0.8rem;
    }

    .chat-window {
        width: 280px;
        padding: 1.2rem;
    }

    .chat-support {
        bottom: 1rem;
        right: 1rem;
    }

    .chat-bubble {
        padding: 0.5rem 0.8rem 0.5rem 1.2rem;
        font-size: 0.8rem;
    }

    .chat-bubble i {
        font-size: 1rem;
    }

    .chat-bubble .bubble-text span {
        display: none;
    }

    .chat-bubble .bubble-text .click-hint {
        display: inline;
        font-size: 0.7rem;
    }

    .side-menu {
        width: 280px;
        padding: 1rem;
    }

    .archive-grid {
        grid-template-columns: 1fr;
    }

    .single-post .entry-title {
        font-size: 1.5rem;
    }
}

/* ---------- Utilities ---------- */
.text-center { text-align: center; }
.text-muted { color: #6e6557; }
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }

/* ---------- Spinner ---------- */
.spinner-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 3rem 0;
    width: 100%;
    grid-column: 1 / -1;
}

.spinner {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    border: 4px solid #e2dbd0;
    border-top: 4px solid var(--primary);
    border-right: 4px solid #8b7f6b;
    animation: spin 0.9s cubic-bezier(0.6, 0, 0.4, 1) infinite;
    box-shadow: 0 4px 20px rgba(0,0,0,0.02);
    position: relative;
}

.spinner::after {
    content: '📜';
    position: absolute;
    font-size: 1.6rem;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    opacity: 0.6;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.no-results {
    grid-column: 1 / -1;
    text-align: center;
    padding: 4rem 0;
    color: #6e6557;
    font-style: italic;
}

/* ---------- Accessibility ---------- */
.screen-reader-text {
    border: 0;
    clip: rect(1px, 1px, 1px, 1px);
    clip-path: inset(50%);
    height: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    position: absolute;
    width: 1px;
    word-wrap: normal;
}

.screen-reader-text:focus {
    background-color: #f1f1f1;
    border-radius: 3px;
    box-shadow: 0 0 2px 2px rgba(0,0,0,0.6);
    clip: auto;
    clip-path: none;
    color: #21759b;
    display: block;
    font-size: 14px;
    font-weight: 700;
    height: auto;
    left: 5px;
    line-height: normal;
    padding: 15px 23px 14px;
    text-decoration: none;
    top: 5px;
    width: auto;
    z-index: 100000;
}

/* ============================================
   ADMIN BAR FIX
   ============================================ */

/* Default padding for admin bar */
html {
    margin-top: 0 !important;
}

/* Admin bar z-index override */
#wpadminbar {
    z-index: 99999 !important;
}

/* Sticky header should be below admin bar */
.sticky-header {
    z-index: 999 !important;
}

/* Ensure all modals are above admin bar */
.donate-popup,
.info-modal,
.side-menu,
.side-menu-overlay {
    z-index: 99999 !important;
}

/* Chat support below modals but above content */
.chat-support {
    z-index: 9997 !important;
}

/* Fix for logged-in users viewing the site */
.logged-in .sticky-header {
    top: 32px !important;
}

@media screen and (max-width: 782px) {
    .logged-in .sticky-header {
        top: 46px !important;
    }
}

/* Fix for the header brand link */
.header-brand-link {
    display: flex;
    align-items: center;
    text-decoration: none;
}

/* Ensure all menu items are visible */
.nav-menu .sub-menu {
    z-index: 9998 !important;
}

/* Fix dropdown menus */
.dropdown-menu {
    z-index: 9998 !important;
}

/* Fix mobile menu */
.side-menu {
    z-index: 9999 !important;
}

/* Ensure content doesn't overlap */
.site {
    position: relative;
    z-index: 1;
}

/* Fix for Elementor iframe in admin */
.elementor-edit-area {
    z-index: 1 !important;
}


/* ============================================
   ADMIN BAR & CUSTOMIZER FIXES
   ============================================ */

/* Reset html margin */
html {
    margin-top: 0 !important;
}

/* Body padding for admin bar */
body {
    padding-top: 80px !important;
}

/* Admin bar showing */
.admin-bar-showing body {
    padding-top: calc(80px + 32px) !important;
}

/* Sticky header base */
.sticky-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    z-index: 999 !important;
    background: rgba(244, 241, 234, 0.93);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid #d6cdbe;
    padding: 0.5rem 1.5rem;
    transition: box-shadow 0.2s;
}

/* Admin bar adjustment */
.admin-bar-showing .sticky-header {
    top: 32px !important;
}

/* Admin bar z-index */
#wpadminbar {
    z-index: 99999 !important;
}

/* Content area */
#content {
    position: relative;
    z-index: 1;
    padding-top: 0;
}

.site-content {
    position: relative;
    z-index: 1;
}

/* Customizer specific */
.customize-previewing .sticky-header {
    top: 32px !important;
}

.customize-previewing body {
    padding-top: calc(80px + 32px) !important;
}

/* Mobile admin bar */
@media screen and (max-width: 782px) {
    .admin-bar-showing .sticky-header {
        top: 46px !important;
    }
    .admin-bar-showing body {
        padding-top: calc(80px + 46px) !important;
    }
    .customize-previewing .sticky-header {
        top: 46px !important;
    }
    .customize-previewing body {
        padding-top: calc(80px + 46px) !important;
    }
}

/* Fix for widgets in customizer */
.customize-previewing .widget {
    z-index: 1;
}

/* Ensure side menu is above everything */
.side-menu,
.side-menu-overlay {
    z-index: 99999 !important;
}

/* Chat support */
.chat-support {
    z-index: 9997 !important;
}

/* Modals */
.donate-popup,
.info-modal {
    z-index: 99999 !important;
}

/* Fix for customizer partial refreshes */
.customize-partial-edit-shortcut {
    z-index: 9998 !important;
}


/* ============================================
   LOGO STYLES
   ============================================ */

/* Default logo sizing */
.custom-logo-link,
.header-brand-link {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.custom-logo-link img,
.header-brand-link .custom-logo {
    max-width: 200px;
    max-height: 60px;
    width: auto;
    height: auto;
    object-fit: contain;
}

/* Logo with text */
.header-brand-link .custom-logo + .brand-text {
    margin-left: 10px;
}

/* Mobile logo */
@media screen and (max-width: 768px) {
    .custom-logo-link img,
    .header-brand-link .custom-logo {
        max-width: 150px;
        max-height: 50px;
    }
}

/* Small screens */
@media screen and (max-width: 480px) {
    .custom-logo-link img,
    .header-brand-link .custom-logo {
        max-width: 120px;
        max-height: 40px;
    }
}

/* Side menu logo */
.side-menu .custom-logo {
    max-width: 150px;
    max-height: 50px;
}

/* Ensure logo doesn't overflow */
.sticky-header .header-brand {
    display: flex;
    align-items: center;
    flex-shrink: 0;
    max-width: 60%;
}

.sticky-header .header-brand-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    max-width: 100%;
}

.sticky-header .header-brand-link .custom-logo {
    max-height: 50px;
    width: auto;
}

/* ============================================
   FILE DISPLAY STYLES
   ============================================ */

.tincity-file-display {
    margin: 20px 0;
    padding: 20px;
    background: #f8f6f2;
    border-radius: 16px;
    border: 1px solid #e7dfd3;
}

.tincity-file-display .tincity-file-image img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
}

.tincity-file-display .tincity-file-audio,
.tincity-file-display .tincity-file-video {
    margin: 10px 0;
}

.tincity-file-display .tincity-file-pdf embed {
    border-radius: 8px;
    border: 1px solid #d4cbbc;
}

.tincity-file-display .tincity-file-download {
    text-align: center;
    padding: 20px;
}

.tincity-file-display .tincity-file-download .download-link {
    display: inline-block;
    background: #2d2a24;
    color: #fff;
    padding: 12px 30px;
    border-radius: 40px;
    text-decoration: none;
    font-weight: 600;
    transition: 0.2s;
}

.tincity-file-display .tincity-file-download .download-link:hover {
    background: #3f382d;
    transform: scale(1.02);
}

.tincity-file-display .tincity-file-download .download-link i {
    margin-right: 8px;
}

.tincity-file-display .tincity-file-source {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid #e7dfd3;
}

.tincity-file-display .tincity-file-source h4 {
    font-size: 0.9rem;
    color: #6e6557;
    margin-bottom: 8px;
}

.tincity-file-display .tincity-file-source p {
    margin: 4px 0;
    font-size: 0.9rem;
    color: #3f382d;
}

.tincity-file-display .tincity-file-source p strong {
    color: #2d2a24;
}