/*
Theme Name: Naaaj Dan
Theme URI: https://naaajdan.si
Author: KUD Predoslje
Author URI: https://naaajdan.si
Description: Tema za spletno stran festivala Naaaj Dan v Predosljah.
Version: 1.0.7
Requires at least: 5.9
Tested up to: 6.7
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: naaajdan
Tags: custom-menu, custom-logo, featured-images, footer-widgets, theme-options
*/

/* ==========================================================================
   CSS Custom Properties
   ========================================================================== */

:root {
    --color-primary: #c59663;
    --color-primary-dark: #a67a42;
    --color-button: #269ccb;
    --color-button-hover: #0777a3;
    --color-text-dark: #0c3240;
    --color-body-bg: #f5f3ef;
    --color-white: #ffffff;
    --color-black: #000000;
    --color-footer-text: #b0b0b0;
    --color-footer-heading: #ffffff;
    --color-footer-link: #cccccc;
    --color-footer-link-hover: #ffffff;
    --color-border: #e0dcd5;
    --color-light-gray: #f0ede8;
    --font-primary: 'Montserrat', sans-serif;
    --max-width: 1200px;
    --header-height: 80px;
    --transition: 0.3s ease;
    --shadow: 0 2px 15px rgba(0, 0, 0, 0.08);
    --shadow-hover: 0 5px 25px rgba(0, 0, 0, 0.15);
    --radius: 8px;
}

/* ==========================================================================
   Reset & Base
   ========================================================================== */

*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: var(--font-primary);
    font-size: 1rem;
    line-height: 1.7;
    color: var(--color-text-dark);
    background-color: var(--color-body-bg);
    overflow-x: hidden;
}

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

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

a:hover,
a:focus {
    color: var(--color-primary-dark);
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-primary);
    font-weight: 700;
    line-height: 1.3;
    color: var(--color-text-dark);
    margin-bottom: 0.5em;
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.25rem; }
h5 { font-size: 1.1rem; }
h6 { font-size: 1rem; }

p {
    margin-bottom: 1.5em;
}

ul, ol {
    margin-bottom: 1.5em;
    padding-left: 1.5em;
}

/* ==========================================================================
   Accessibility
   ========================================================================== */

.skip-link {
    position: absolute;
    top: -100%;
    left: 0;
    background: var(--color-button);
    color: var(--color-white);
    padding: 0.5em 1em;
    z-index: 10000;
    transition: top var(--transition);
}

.skip-link:focus {
    top: 0;
    color: var(--color-white);
}

.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 !important;
}

.screen-reader-text:focus {
    background-color: var(--color-body-bg);
    clip: auto !important;
    clip-path: none;
    color: var(--color-text-dark);
    display: block;
    font-size: 0.875rem;
    font-weight: 700;
    height: auto;
    left: 5px;
    line-height: normal;
    padding: 15px 23px 14px;
    text-decoration: none;
    top: 5px;
    width: auto;
    z-index: 100000;
}

/* ==========================================================================
   Layout
   ========================================================================== */

.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 20px;
}

.site-content {
    min-height: calc(100vh - var(--header-height) - 400px);
}

.content-area {
    padding: 60px 0;
}

.site-main {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 20px;
}

.has-sidebar .site-main {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 40px;
}

/* ==========================================================================
   Header
   ========================================================================== */

.site-header {
    background-color: var(--color-black);
    background-image: url('assets/images/header-bg.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
}

.site-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    z-index: 1;
}

.header-inner {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 15px 30px;
}

.header-logo {
    flex-shrink: 0;
}

.header-logo .custom-logo-link {
    display: inline-block;
}

.header-logo .custom-logo,
.header-logo img {
    max-height: 160px;
    width: auto;
    filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.5));
}

.header-center {
    text-align: center;
    flex: 1;
    min-width: 0;
}

.site-title {
    font-size: 1.6rem;
    font-weight: 700;
    margin: 0;
    line-height: 1.2;
}

.site-title a {
    color: var(--color-primary);
    text-decoration: none;
}

.site-title a:hover {
    color: var(--color-white);
}

.site-description {
    color: var(--color-footer-text);
    font-size: 0.85rem;
    margin: 2px 0 0;
}

.header-social {
    flex-shrink: 0;
}

.header-social .social-links {
    display: flex;
    gap: 12px;
}

.header-social .social-links a {
    color: var(--color-primary);
    transition: color var(--transition);
}

.header-social .social-links a:hover {
    color: var(--color-white);
}

.header-social .social-links svg {
    width: 24px;
    height: 24px;
    fill: currentColor;
}

/* ==========================================================================
   Navigation
   ========================================================================== */

.main-navigation {
    position: relative;
    z-index: 2;
    background: rgba(0, 0, 0, 0.4);
    width: 100%;
}

.main-navigation .container {
    display: flex;
    justify-content: center;
    align-items: center;
}

.main-navigation ul {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    flex-wrap: wrap;
    justify-content: center;
}

.main-navigation li {
    position: relative;
}

.main-navigation a {
    display: block;
    padding: 15px 20px;
    color: var(--color-primary);
    font-size: 0.95rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: color var(--transition), border-bottom var(--transition);
    border-bottom: 2px solid transparent;
}

.main-navigation a:hover,
.main-navigation a:focus,
.main-navigation .current-menu-item > a,
.main-navigation .current_page_item > a {
    color: var(--color-white);
    border-bottom: 2px solid var(--color-white);
}

/* Dropdown menus */
.main-navigation ul ul {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: rgba(0, 0, 0, 0.95);
    min-width: 220px;
    z-index: 100;
    flex-direction: column;
    border-top: 2px solid var(--color-primary);
}

.main-navigation li:hover > ul,
.main-navigation li.focus > ul {
    display: flex;
}

.main-navigation ul ul a {
    padding: 12px 20px;
    font-size: 0.85rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.main-navigation ul ul li:last-child a {
    border-bottom: none;
}

/* Mobile menu toggle */
.menu-toggle {
    display: none;
    background: transparent;
    border: 2px solid var(--color-primary);
    color: var(--color-primary);
    padding: 10px 20px;
    font-size: 0.9rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    font-family: var(--font-primary);
    transition: all var(--transition);
    margin: 10px 0;
}

.menu-toggle:hover {
    background: var(--color-primary);
    color: var(--color-black);
}

.menu-toggle .menu-icon {
    display: inline-block;
    width: 20px;
    height: 2px;
    background: currentColor;
    position: relative;
    vertical-align: middle;
    margin-right: 8px;
}

.menu-toggle .menu-icon::before,
.menu-toggle .menu-icon::after {
    content: '';
    display: block;
    width: 20px;
    height: 2px;
    background: currentColor;
    position: absolute;
    left: 0;
}

.menu-toggle .menu-icon::before { top: -6px; }
.menu-toggle .menu-icon::after { top: 6px; }

/* ==========================================================================
   Page Header / Banner
   ========================================================================== */

.page-header {
    background-color: var(--color-text-dark);
    padding: 50px 20px;
    text-align: center;
    position: relative;
}

.page-header::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: var(--color-primary);
}

.page-header h1 {
    color: var(--color-white);
    font-size: 2.2rem;
    margin-bottom: 10px;
}

.page-header .archive-description,
.page-header p {
    color: var(--color-footer-text);
    font-size: 1rem;
    max-width: 600px;
    margin: 0 auto;
}

/* ==========================================================================
   Breadcrumbs
   ========================================================================== */

.breadcrumbs {
    background: var(--color-light-gray);
    padding: 12px 0;
    font-size: 0.85rem;
    border-bottom: 1px solid var(--color-border);
}

.breadcrumbs .container {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
}

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

.breadcrumbs a:hover {
    color: var(--color-primary-dark);
    text-decoration: underline;
}

.breadcrumbs .separator {
    color: var(--color-footer-text);
    margin: 0 5px;
}

.breadcrumbs .current {
    color: var(--color-footer-text);
}

/* ==========================================================================
   Content - Posts & Cards
   ========================================================================== */

.posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.post-card {
    background: var(--color-white);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: box-shadow var(--transition), transform var(--transition);
}

.post-card:hover {
    box-shadow: var(--shadow-hover);
    transform: translateY(-3px);
}

.post-card .post-thumbnail {
    overflow: hidden;
    max-height: 400px;
}

.post-card .post-thumbnail img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    transition: transform var(--transition);
}

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

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

.post-card .entry-title {
    font-size: 1.35rem;
    margin-bottom: 10px;
}

.post-card .entry-title a {
    color: var(--color-text-dark);
}

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

.post-card .entry-meta {
    font-size: 0.85rem;
    color: #717171;
    margin-bottom: 12px;
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
}

.post-card .entry-meta a {
    color: #717171;
}

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

.post-card .entry-summary {
    color: #555;
    margin-bottom: 15px;
    line-height: 1.6;
}

.post-card .entry-summary p {
    margin-bottom: 0;
}

.read-more {
    display: inline-block;
    color: var(--color-button);
    font-weight: 700;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: color var(--transition);
}

.read-more:hover {
    color: var(--color-button-hover);
}

/* Featured post (first on front page) */
.post-featured {
    grid-column: 1 / -1;
}

.post-featured .post-thumbnail img {
    height: 400px;
}

.post-featured .post-content {
    padding: 30px;
}

.post-featured .entry-title {
    font-size: 1.8rem;
}

/* ==========================================================================
   Single Post / Page Content
   ========================================================================== */

.single-post-content,
.single-page-content {
    max-width: 800px;
    margin: 0 auto;
    background: var(--color-white);
    padding: 40px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.single-post-content .entry-header,
.single-page-content .entry-header {
    margin-bottom: 30px;
    text-align: center;
}

.single-post-content .entry-title,
.single-page-content .entry-title {
    font-size: 2.2rem;
    margin-bottom: 15px;
}

.single-post-content .entry-meta {
    font-size: 0.9rem;
    color: var(--color-footer-text);
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.single-post-content .entry-meta a {
    color: var(--color-primary);
}

.single-post-content .post-thumbnail {
    margin-bottom: 30px;
    border-radius: var(--radius);
    overflow: hidden;
}

.single-post-content .post-thumbnail img {
    width: 100%;
    max-height: 500px;
    object-fit: cover;
}

.entry-content {
    line-height: 1.8;
}

.entry-content h2 { margin-top: 2em; }
.entry-content h3 { margin-top: 1.5em; }
.entry-content h4 { margin-top: 1.2em; }

.entry-content img {
    border-radius: var(--radius);
    margin: 1.5em 0;
}

.entry-content a {
    color: var(--color-button);
    text-decoration: underline;
}

.entry-content a:hover {
    color: var(--color-button-hover);
}

/* Tags */
.post-tags {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid var(--color-border);
}

.post-tags span {
    font-weight: 700;
    margin-right: 10px;
}

.post-tags a {
    display: inline-block;
    background: var(--color-light-gray);
    color: var(--color-text-dark);
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    margin: 4px 4px 4px 0;
    transition: all var(--transition);
}

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

/* Categories in meta */
.cat-links a {
    color: var(--color-primary);
}

/* Post Navigation */
.post-navigation {
    margin-top: 40px;
    padding-top: 30px;
    border-top: 1px solid var(--color-border);
    display: flex;
    justify-content: space-between;
    gap: 20px;
}

.post-navigation .nav-previous,
.post-navigation .nav-next {
    flex: 1;
}

.post-navigation .nav-next {
    text-align: right;
}

.post-navigation .nav-label {
    display: block;
    font-size: 0.8rem;
    text-transform: uppercase;
    color: var(--color-footer-text);
    margin-bottom: 5px;
}

.post-navigation a {
    color: var(--color-text-dark);
    font-weight: 700;
}

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

/* ==========================================================================
   Buttons
   ========================================================================== */

.btn,
button,
input[type="submit"],
input[type="button"] {
    display: inline-block;
    background-color: var(--color-button);
    color: var(--color-white);
    padding: 12px 30px;
    border: none;
    border-radius: var(--radius);
    font-family: var(--font-primary);
    font-size: 0.95rem;
    font-weight: 700;
    cursor: pointer;
    transition: all var(--transition);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.btn:hover,
button:hover,
input[type="submit"]:hover,
input[type="button"]:hover {
    background-color: var(--color-button-hover);
    color: var(--color-white);
    transform: translateY(-1px);
}

.btn-primary {
    background-color: var(--color-primary);
}

.btn-primary:hover {
    background-color: var(--color-primary-dark);
}

/* ==========================================================================
   Blockquote
   ========================================================================== */

blockquote {
    border-left: 4px solid var(--color-primary);
    padding: 20px 25px;
    margin: 1.5em 0;
    background: var(--color-light-gray);
    border-radius: 0 var(--radius) var(--radius) 0;
    font-style: italic;
    position: relative;
}

blockquote::before {
    content: '\201C';
    font-size: 4rem;
    color: var(--color-primary);
    position: absolute;
    top: -10px;
    left: 10px;
    opacity: 0.3;
    font-family: Georgia, serif;
}

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

blockquote cite {
    display: block;
    margin-top: 10px;
    font-size: 0.85rem;
    color: var(--color-footer-text);
    font-style: normal;
    font-weight: 700;
}

/* ==========================================================================
   Tables
   ========================================================================== */

table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 1.5em;
    background: var(--color-white);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
}

th, td {
    padding: 12px 15px;
    text-align: left;
    border-bottom: 1px solid var(--color-border);
}

th {
    background: var(--color-text-dark);
    color: var(--color-white);
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 0.5px;
}

tr:nth-child(even) {
    background: var(--color-light-gray);
}

tr:hover {
    background: rgba(197, 150, 99, 0.1);
}

/* ==========================================================================
   Gallery
   ========================================================================== */

.gallery {
    display: grid;
    gap: 10px;
    margin-bottom: 1.5em;
}

.gallery-columns-2 { grid-template-columns: repeat(2, 1fr); }
.gallery-columns-3 { grid-template-columns: repeat(3, 1fr); }
.gallery-columns-4 { grid-template-columns: repeat(4, 1fr); }
.gallery-columns-5 { grid-template-columns: repeat(5, 1fr); }

.gallery-item {
    margin: 0;
}

.gallery-item img {
    border-radius: var(--radius);
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.gallery-caption {
    font-size: 0.8rem;
    text-align: center;
    padding: 5px;
    color: var(--color-footer-text);
}

/* ==========================================================================
   Forms & Search
   ========================================================================== */

input[type="text"],
input[type="email"],
input[type="url"],
input[type="tel"],
input[type="search"],
input[type="password"],
textarea,
select {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    font-family: var(--font-primary);
    font-size: 0.95rem;
    background: var(--color-white);
    color: var(--color-text-dark);
    transition: border-color var(--transition);
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="url"]:focus,
input[type="tel"]:focus,
input[type="search"]:focus,
input[type="password"]:focus,
textarea:focus,
select:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(197, 150, 99, 0.15);
}

.search-form {
    display: flex;
    gap: 10px;
    max-width: 500px;
}

.search-form .search-field {
    flex: 1;
}

.search-form .search-submit {
    white-space: nowrap;
}

/* ==========================================================================
   Pagination
   ========================================================================== */

.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin-top: 40px;
    padding: 20px 0;
}

.pagination .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 42px;
    height: 42px;
    padding: 0 12px;
    background: var(--color-white);
    color: var(--color-text-dark);
    border-radius: var(--radius);
    font-weight: 700;
    font-size: 0.9rem;
    box-shadow: var(--shadow);
    transition: all var(--transition);
}

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

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

.pagination .page-numbers.dots {
    background: transparent;
    box-shadow: none;
}

/* ==========================================================================
   Widgets & Sidebar
   ========================================================================== */

.widget-area {
    padding: 0;
}

.widget {
    margin-bottom: 30px;
    background: var(--color-white);
    padding: 25px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.widget-title {
    font-size: 1.1rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding-bottom: 12px;
    margin-bottom: 15px;
    border-bottom: 2px solid var(--color-primary);
    color: var(--color-text-dark);
}

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

.widget ul li {
    padding: 8px 0;
    border-bottom: 1px solid var(--color-border);
}

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

.widget ul li a {
    color: var(--color-text-dark);
}

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

/* ==========================================================================
   Comments
   ========================================================================== */

.comments-area {
    max-width: 800px;
    margin: 40px auto 0;
    background: var(--color-white);
    padding: 30px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.comments-title {
    font-size: 1.5rem;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 2px solid var(--color-primary);
}

.comment-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

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

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

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

.comment .comment-author img {
    border-radius: 50%;
}

.comment .comment-author .fn {
    font-weight: 700;
    color: var(--color-text-dark);
}

.comment .comment-metadata {
    font-size: 0.8rem;
    color: var(--color-footer-text);
    margin-bottom: 10px;
}

.comment .comment-content p:last-child {
    margin-bottom: 0;
}

.comment .reply a {
    font-size: 0.85rem;
    color: var(--color-button);
    font-weight: 700;
}

.comment .children {
    list-style: none;
    padding-left: 30px;
    margin: 0;
}

.comment-respond {
    margin-top: 30px;
}

.comment-respond .comment-reply-title {
    font-size: 1.3rem;
    margin-bottom: 20px;
}

.comment-form label {
    display: block;
    margin-bottom: 5px;
    font-weight: 700;
    font-size: 0.9rem;
}

.comment-form .comment-form-comment,
.comment-form .comment-form-author,
.comment-form .comment-form-email,
.comment-form .comment-form-url {
    margin-bottom: 15px;
}

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

/* ==========================================================================
   Footer
   ========================================================================== */

.site-footer {
    background-color: #1a1a1a;
    background-image: url('assets/images/footer-bg.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
    color: var(--color-footer-text);
}

.site-footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.85);
    z-index: 1;
}

.footer-inner {
    position: relative;
    z-index: 2;
}

.footer-widgets {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    padding: 60px 20px 40px;
    max-width: var(--max-width);
    margin: 0 auto;
}

.footer-widget-area .widget {
    background: transparent;
    padding: 0;
    box-shadow: none;
    border-radius: 0;
}

.footer-widget-area .widget-title {
    color: var(--color-footer-heading);
    border-bottom-color: var(--color-primary);
    font-size: 1rem;
}

.footer-widget-area .widget,
.footer-widget-area .widget p {
    color: var(--color-footer-text);
}

.footer-widget-area .widget a {
    color: var(--color-footer-link);
}

.footer-widget-area .widget a:hover {
    color: var(--color-footer-link-hover);
}

.footer-widget-area .widget ul li {
    border-bottom-color: rgba(255, 255, 255, 0.1);
}

.footer-social .social-links {
    display: flex;
    gap: 12px;
    margin-top: 15px;
}

.footer-social .social-links a {
    color: var(--color-footer-link);
    transition: color var(--transition);
}

.footer-social .social-links a:hover {
    color: var(--color-footer-link-hover);
}

.footer-social .social-links svg {
    width: 24px;
    height: 24px;
    fill: currentColor;
}

/* Footer sponsor logo */
.footer-widget-area .widget img {
    max-width: 180px;
    margin-top: 10px;
}

/* Footer bottom bar */
.footer-bottom {
    position: relative;
    z-index: 2;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 20px;
}

.footer-bottom-inner {
    max-width: var(--max-width);
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}

.footer-copyright {
    font-size: 0.85rem;
    color: var(--color-footer-text);
}

.footer-nav ul {
    display: flex;
    list-style: none;
    gap: 20px;
    margin: 0;
    padding: 0;
}

.footer-nav a {
    color: var(--color-footer-link);
    font-size: 0.85rem;
}

.footer-nav a:hover {
    color: var(--color-footer-link-hover);
}

.footer-bottom .social-links {
    display: flex;
    gap: 10px;
}

.footer-bottom .social-links a {
    color: var(--color-footer-link);
}

.footer-bottom .social-links a:hover {
    color: var(--color-footer-link-hover);
}

.footer-bottom .social-links svg {
    width: 18px;
    height: 18px;
    fill: currentColor;
}

/* ==========================================================================
   Back to Top Button
   ========================================================================== */

.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: var(--color-primary);
    color: var(--color-white);
    width: 45px;
    height: 45px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    border: none;
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition);
    z-index: 9999;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    padding: 0;
    font-size: 1.2rem;
    line-height: 1;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background: var(--color-primary-dark);
    transform: translateY(-3px);
}

/* ==========================================================================
   404 Page
   ========================================================================== */

.error-404 {
    text-align: center;
    padding: 80px 20px;
    max-width: 600px;
    margin: 0 auto;
}

.error-404 .error-code {
    font-size: 8rem;
    font-weight: 700;
    color: var(--color-primary);
    line-height: 1;
    margin-bottom: 10px;
}

.error-404 h1 {
    font-size: 1.8rem;
    margin-bottom: 20px;
}

.error-404 p {
    color: var(--color-footer-text);
    margin-bottom: 30px;
}

.error-404 .search-form {
    margin: 0 auto;
}

/* ==========================================================================
   No Results
   ========================================================================== */

.no-results {
    text-align: center;
    padding: 60px 20px;
}

.no-results h1 {
    font-size: 1.8rem;
    margin-bottom: 15px;
}

.no-results p {
    color: var(--color-footer-text);
    margin-bottom: 25px;
}

.no-results .search-form {
    margin: 0 auto;
}

/* ==========================================================================
   WordPress Specific
   ========================================================================== */

.alignleft {
    float: left;
    margin-right: 1.5em;
    margin-bottom: 1em;
}

.alignright {
    float: right;
    margin-left: 1.5em;
    margin-bottom: 1em;
}

.aligncenter {
    display: block;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 1em;
}

.wp-caption {
    max-width: 100%;
    margin-bottom: 1.5em;
}

.wp-caption-text {
    font-size: 0.85rem;
    color: var(--color-footer-text);
    text-align: center;
    padding: 8px 0;
}

.sticky .post-card {
    border-left: 4px solid var(--color-primary);
}

.bypostauthor .comment {
    border-left: 3px solid var(--color-primary);
    padding-left: 15px;
}

/* WP Block Styles */
.wp-block-image figcaption {
    font-size: 0.85rem;
    color: var(--color-footer-text);
    text-align: center;
}

.wp-block-quote {
    border-left: 4px solid var(--color-primary);
    padding: 20px 25px;
    background: var(--color-light-gray);
}

.wp-block-button__link {
    background-color: var(--color-button);
    color: var(--color-white);
    border-radius: var(--radius);
    padding: 12px 30px;
    font-weight: 700;
}

.wp-block-button__link:hover {
    background-color: var(--color-button-hover);
    color: var(--color-white);
}

/* ==========================================================================
   Responsive
   ========================================================================== */

@media screen and (max-width: 992px) {
    .footer-widgets {
        grid-template-columns: repeat(2, 1fr);
    }

    .has-sidebar .site-main {
        grid-template-columns: 1fr;
    }

    .posts-grid {
        grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    }
}

@media screen and (max-width: 768px) {
    :root {
        --header-height: 60px;
    }

    h1 { font-size: 1.8rem; }
    h2 { font-size: 1.5rem; }
    h3 { font-size: 1.25rem; }

    .header-inner {
        padding: 10px 15px;
    }

    .site-title {
        font-size: 1.1rem;
    }

    .site-description {
        font-size: 0.75rem;
    }

    .header-logo img,
    .header-logo .custom-logo {
        max-height: 100px;
    }

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

    .menu-toggle {
        display: block;
    }

    .main-navigation .container {
        flex-direction: column;
    }

    .main-navigation ul {
        display: none;
        flex-direction: column;
        width: 100%;
        text-align: center;
    }

    .main-navigation.toggled ul {
        display: flex;
    }

    .main-navigation ul ul {
        position: static;
        min-width: 100%;
        border-top: none;
    }

    .main-navigation ul ul a {
        padding-left: 40px;
    }

    .main-navigation a {
        padding: 12px 20px;
    }

    .posts-grid {
        grid-template-columns: 1fr;
    }

    .post-featured .post-thumbnail img {
        height: 250px;
    }

    .post-featured .entry-title {
        font-size: 1.4rem;
    }

    .single-post-content,
    .single-page-content {
        padding: 25px;
    }

    .single-post-content .entry-title,
    .single-page-content .entry-title {
        font-size: 1.6rem;
    }

    .footer-widgets {
        grid-template-columns: 1fr;
        gap: 30px;
        padding: 40px 20px 30px;
    }

    .footer-bottom-inner {
        flex-direction: column;
        text-align: center;
    }

    .footer-nav ul {
        justify-content: center;
    }

    .footer-bottom .social-links {
        justify-content: center;
    }

    .content-area {
        padding: 40px 0;
    }

    .page-header {
        padding: 30px 20px;
    }

    .page-header h1 {
        font-size: 1.6rem;
    }

    .post-navigation {
        flex-direction: column;
    }

    .post-navigation .nav-next {
        text-align: left;
    }

    .error-404 .error-code {
        font-size: 5rem;
    }

    .search-form {
        flex-direction: column;
    }

    .comments-area {
        padding: 20px;
    }

    .comment .children {
        padding-left: 15px;
    }

    table {
        display: block;
        overflow-x: auto;
    }
}

@media screen and (max-width: 480px) {
    .header-inner {
        padding: 20px 15px 15px;
    }

    .site-branding .custom-logo,
    .site-branding img {
        max-height: 80px;
    }

    .site-title {
        font-size: 1.5rem;
    }

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

    .post-card .entry-title {
        font-size: 1.15rem;
    }

    .pagination .page-numbers {
        min-width: 36px;
        height: 36px;
        font-size: 0.8rem;
    }

    .back-to-top {
        bottom: 20px;
        right: 20px;
        width: 40px;
        height: 40px;
    }

    .gallery-columns-4,
    .gallery-columns-5 {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* ==========================================================================
   Print Styles
   ========================================================================== */

@media print {
    *,
    *::before,
    *::after {
        background: transparent !important;
        color: #000 !important;
        box-shadow: none !important;
        text-shadow: none !important;
    }

    body {
        font-size: 12pt;
        line-height: 1.5;
    }

    a,
    a:visited {
        text-decoration: underline;
    }

    a[href]::after {
        content: " (" attr(href) ")";
        font-size: 0.8em;
    }

    .site-header,
    .main-navigation,
    .breadcrumbs,
    .site-footer,
    .back-to-top,
    .pagination,
    .post-navigation,
    .comments-area,
    .search-form,
    .menu-toggle,
    .sidebar,
    .widget-area {
        display: none !important;
    }

    .site-content {
        width: 100%;
        margin: 0;
        padding: 0;
    }

    .single-post-content,
    .single-page-content {
        box-shadow: none;
        padding: 0;
    }

    img {
        max-width: 100% !important;
        page-break-inside: avoid;
    }

    h2, h3 {
        page-break-after: avoid;
    }

    p {
        orphans: 3;
        widows: 3;
    }
}
