/* WordPress theme overrides for Ganjineh Zarin Sepehr */

html {
    scroll-behavior: smooth;
}

/* Logo link in header */
.center-logo .coin-wrapper {
    text-decoration: none;
    color: inherit;
    display: block;
    width: 100%;
    height: 100%;
}

.center-logo .inner-logo img,
.center-logo .custom-logo-link img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.center-logo .custom-logo-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
}

/* Nav active state from WordPress menus */
.main-menu a.active,
.main-menu .current-menu-item > a,
.main-menu .current_page_item > a {
    color: #000;
}

/* Read-more as link */
a.g-read-more {
    display: inline-block;
    text-decoration: none;
}

/* Vault card as link */
a.s-vault-card {
    display: block;
    text-decoration: none;
    color: inherit;
}

/* Search form in header */
.search-box form {
    display: flex;
    align-items: center;
    width: 100%;
    height: 100%;
}

.search-box form input[type="search"] {
    border: none;
    outline: none;
    padding: 0 15px;
    flex-grow: 1;
    font-family: inherit;
    font-size: 12px;
    height: 100%;
    background: transparent;
}

/* Inner pages (Elementor & default) */
.gzns-inner-page {
    direction: rtl;
    background: #fff;
    min-height: 40vh;
}

.gzns-page-template .gzns-entry-content,
.gzns-single-post .gzns-entry-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 24px 80px;
}

.gzns-page-header,
.gzns-single-header {
    max-width: 1200px;
    margin: 0 auto;
    padding: 48px 24px 0;
    text-align: right;
}

.gzns-page-title,
.gzns-single-title {
    color: #4A4036;
    font-size: 28px;
    font-weight: 900;
    line-height: 1.6;
}

.gzns-single-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    color: #9b8f7e;
    font-size: 13px;
    font-weight: 700;
    margin-bottom: 16px;
}

.gzns-single-meta i {
    color: #C89F5D;
    margin-left: 4px;
}

.gzns-single-thumb {
    margin-top: 24px;
    border-radius: 18px;
    overflow: hidden;
}

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

.gzns-entry-content {
    color: #5C5247;
    font-size: 15px;
    line-height: 2.1;
}

.gzns-entry-content img {
    max-width: 100%;
    height: auto;
}

.gzns-entry-content a {
    color: #4E1A1A;
}

.articles-empty {
    text-align: center;
    color: #7d7264;
    padding: 40px 20px;
    max-width: 640px;
    margin: 0 auto;
    line-height: 2;
}

.gzns-pagination {
    max-width: 1300px;
    margin: 40px auto 0;
    padding: 0 24px 60px;
    text-align: center;
}

.gzns-pagination .nav-links {
    display: flex;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
}

.gzns-pagination a,
.gzns-pagination span {
    display: inline-block;
    padding: 8px 16px;
    border: 1px solid #efe7da;
    border-radius: 999px;
    text-decoration: none;
    color: #4A4036;
    font-weight: 700;
    font-size: 14px;
}

.gzns-pagination .current {
    background: #C89F5D;
    border-color: #C89F5D;
    color: #fff;
}

.gzns-404 {
    text-align: center;
    padding: 80px 24px;
}

.gzns-404 .gzns-page-title {
    margin-bottom: 16px;
}

.gzns-404 p {
    color: #7d7264;
    margin-bottom: 24px;
    line-height: 2;
}

.article-card-title a {
    color: inherit;
    text-decoration: none;
}

.article-card-title a:hover {
    color: #4E1A1A;
}

/* Elementor pages: hide duplicate title area spacing when builder used */
.gzns-elementor-page .gzns-page-template .gzns-entry-content {
    padding-top: 0;
    max-width: none;
}

.gzns-archive .articles-title {
    font-size: 30px;
}

@media (max-width: 768px) {
    .gzns-page-title,
    .gzns-single-title {
        font-size: 22px;
    }

    .gzns-page-template .gzns-entry-content,
    .gzns-single-post .gzns-entry-content {
        padding: 28px 18px 60px;
    }
}
