:root {
    --body: #ffffff ;
    --bg: #ffffff;
    --bg-opacity: #ffffff7c;
    --bg-light: #dce4f1;
    --text-color: #50575e;
    --text-color-light: #50565b;
    --loading-bg: rgba(255, 255, 255, 0.8);
    --table-border: #dee2e6;
    --table-bg: #eeeeee;
    --border-color: #e1e8ed;
    --link-color-hover: #924cf3;
    --nl-container: 1320px;
}

[data-bs-theme="dark"] {
    --body: #212529;
    --bg: #262b30;
    --bg-opacity: #262b307c;
    --bg-light: #33383d;
    --text-color: #d5dce3;
    --text-color-light: #a8b6c2;
    --loading-bg: rgba(0, 0, 0, 0.8);
    --table-border: #383838;
    --table-bg: #1d1d1d;
    --border-color: #565656;

}

.container {
    max-width: var(--nl-container);
}

body {
    background-color: var(--body);
    /* color: var(--text-color); */
    /* font-family: 'appfont', sans-serif !important; */
    overflow-x: hidden;
    scroll-behavior: smooth;
    /* display: flex; */
    /* min-height: 100vh; */
    flex-direction: column;

    overflow-y: scroll;
    -webkit-overflow-scrolling: touch;
}

.bg-bg {
    background-color: var(--bg);
}
a {
    color: var(--text-color);
}
a:hover {
    color: var(--theme-color) !important;
}

/* #f0f5ff */
.inherit-color {
    color: inherit !important;
}

.editPostBtn {

}

.table {
    overflow: scroll;
}

table {
    color: var(--text-color);
    border: 1px solid var(--table-border);
    width: 100%;
    max-width: 100%;
    margin-bottom: 1rem;
    background-color: transparent;
    border-collapse: collapse;
}

table th {
    background: var(--table-bg);
}

table td,
table th {
    padding: .75rem;
    vertical-align: top;
    border: 1px solid var(--table-border);
}


.text-start {
    text-align: start !important;
}

.main-wrapper {
    /* padding-top: 60px; */
}

.text-color-50 {
    color: var(--text-color-light);
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

.min-vh-90 {
    min-height: 90vh;
}

.notification {
    /* position: fixed; */
    /* bottom: 20px; */
    /* right: 20px; */
    background: var(--bg);
    padding: 15px 25px;
    border-radius: 4px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
    z-index: 9999;
    transform: translateX(120%);
    transition: transform 0.3s ease-in-out;
    max-width: 350px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.notification.show {
    transform: translateX(0);
}

.notification.success {
    border-left: 4px solid #28a745;
}

.notification.info {
    border-left: 4px solid #17a2b8;
}

.notification.warning {
    border-left: 4px solid #ffc107;
}

.notification.danger {
    border-left: 4px solid #dc3545;
}

.notification i {
    font-size: 1.2em;
}

.notification.success i {
    color: #28a745;
}

.notification.info i {
    color: #17a2b8;
}

.notification.warning i {
    color: #ffc107;
}

.notification.danger i {
    color: #dc3545;
}

.pjax-loading {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--loading-bg);
    z-index: 9999;
    justify-content: center;
    align-items: center;
}

.spinner {
    width: 50px;
    height: 50px;
    border: 5px solid #f3f3f3;
    border-top: 5px solid #3498db;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

.w-30 {
    width: 30%;
}

.w-30-flex {
    width: 30%;
    flex-basis: 30%;
    flex-grow: 0;
    flex-shrink: 0;
}

.pagination li a {
    padding: 10px;
    border-radius: 50%;
    color: var(--text-color-light);
}

.pagination li.active a {
    font-weight: bold;
    color: var(--text-color);
}

a {
    text-decoration: none;
}

.social-links {
    /* position: fixed;
    left: 0;
    top: 50%;             
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    padding: 10px; */
    display: flex;
    gap: 10px;
}

.social-links .btn {
    background: var(--bs-dark-bg-subtle);
}

@media (max-width: 768px) {
    .social-links {
        padding: 0;
        padding-top: 20px;
        position: relative;
        display: block;
    }
}

.rect {
    position: relative;
    width: 300px;
    height: 300px;
    flex-shrink: 0;
    background: #000;
    margin: 50px;
    overflow: unset;
}

.rect::before,
.rect::after {
    content: "";
    position: absolute;
    left: -6px;
    top: -6px;
    width: calc(100% + 12px);
    height: calc(100% + 12px);
    background: #333;
    background-image: linear-gradient(45deg, #ff3c41, #ff8a25, #ffe04f, #4fff88, #56ffef, #37b4ff, #c05aff, #ff3c41, #ff8a25, #ffe04f, #4fff88, #56ffef, #37b4ff, #c05aff);
    background-size: 500%;
    -webkit-animation: position 12s linear infinite alternate;
    animation: position 12s linear infinite alternate;
    z-index: -1;
}

.rect::after {
    filter: blur(10px);
}

@-webkit-keyframes position {
    0% {
        background-position: 0 0;
    }

    50% {
        background-position: 400% 0;
    }

    100% {
        background-position: 0 0;
    }
}

@keyframes position {
    0% {
        background-position: 0 0;
    }

    50% {
        background-position: 400% 0;
    }

    100% {
        background-position: 0 0;
    }
}



.profile-container {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    padding: 40px 0;
}

.profile-card {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
    border-radius: 25px;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.15);
    overflow: hidden;
    position: relative;
    max-width: 900px;
    margin: 0 auto;
}

.profile-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 0;
    position: relative;
    height: 200px;
    overflow: hidden;
}

.profile-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="dots" width="20" height="20" patternUnits="userSpaceOnUse"><circle cx="10" cy="10" r="1" fill="white" opacity="0.2"/></pattern></defs><rect width="100" height="100" fill="url("/assets/themes/news02/css/%23dots")"/></svg>');
    opacity: 0.6;
}

.profile-avatar {
    position: absolute;
    bottom: 15px;
    left: 50%;
    transform: translateX(-50%);
    width: 120px;
    height: 120px;
    border-radius: 50%;
    border: 6px solid white;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
    object-fit: cover;
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 48px;
    color: white;
    font-weight: bold;
    z-index: 2;
}

.profile-avatar img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
}

.profile-body {
    padding: 80px 40px 40px;
    text-align: center;
}

.profile-name {
    font-size: 2.2rem;
    font-weight: 700;
    color: #2d3748;
    margin-bottom: 8px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.profile-position {
    font-size: 1.1rem;
    color: #718096;
    margin-bottom: 30px;
    font-weight: 500;
}

.profile-stats {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.stat-item {
    text-align: center;
    padding: 20px;
    background: linear-gradient(135deg, #f7fafc 0%, #edf2f7 100%);
    border-radius: 15px;
    min-width: 120px;
    transition: all 0.3s ease;
    border: 1px solid rgba(102, 126, 234, 0.1);
}

.stat-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(102, 126, 234, 0.15);
    border-color: rgba(102, 126, 234, 0.3);
}

.stat-number {
    font-size: 1.8rem;
    font-weight: 700;
    color: #667eea;
    display: block;
}

.stat-label {
    font-size: 0.9rem;
    color: #718096;
    margin-top: 5px;
    font-weight: 500;
}

.profile-bio {
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    border-radius: 20px;
    padding: 30px;
    margin-bottom: 30px;
    border: 1px solid rgba(102, 126, 234, 0.1);
    position: relative;
    overflow: hidden;
}

.profile-bio::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.bio-title {
    font-size: 1.3rem;
    font-weight: 600;
    color: #2d3748;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.bio-title::before {
    content: '✨';
    font-size: 1.2rem;
}

.bio-text {
    font-size: 1rem;
    line-height: 1.8;
    color: #4a5568;
    text-align: right;
    direction: rtl;
}

.profile-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.info-item {
    background: white;
    padding: 20px;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(102, 126, 234, 0.1);
    transition: all 0.3s ease;
}

.info-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(102, 126, 234, 0.15);
    border-color: rgba(102, 126, 234, 0.3);
}

.info-label {
    font-size: 0.85rem;
    color: #718096;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 8px;
    font-weight: 600;
}

.info-value {
    font-size: 1.1rem;
    color: #2d3748;
    font-weight: 500;
}

.social-links {
    display: flex;
    /* justify-content: center; */
    gap: 15px;
    margin-top: 30px;
}

.social-link {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 1.2rem;
}

.social-link:hover {
    transform: translateY(-5px) scale(1.1);
    box-shadow: 0 15px 35px rgba(102, 126, 234, 0.4);
    color: white;
}

.no-bio {
    color: #a0aec0;
    font-style: italic;
    text-align: center;
    padding: 40px 20px;
    background: linear-gradient(135deg, #f7fafc 0%, #edf2f7 100%);
    border-radius: 15px;
    border: 2px dashed #e2e8f0;
}

.no-bio::before {
    content: '📝';
    display: block;
    font-size: 2rem;
    margin-bottom: 10px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .profile-container {
        padding: 20px 10px;
    }

    .profile-body {
        padding: 80px 20px 40px;
    }

    .profile-name {
        font-size: 1.8rem;
    }

    .profile-stats {
        gap: 20px;
    }

    .stat-item {
        min-width: 100px;
        padding: 15px;
    }

    .profile-info {
        grid-template-columns: 1fr;
    }
}

/* Animation */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.profile-card {
    animation: fadeInUp 0.8s ease-out;
}

.profile-body>* {
    animation: fadeInUp 0.6s ease-out;
    animation-fill-mode: both;
}

.profile-name {
    animation-delay: 0.1s;
}

.profile-position {
    animation-delay: 0.2s;
}

.profile-stats {
    animation-delay: 0.3s;
}

.profile-bio {
    animation-delay: 0.4s;
}

.profile-info {
    animation-delay: 0.5s;
}

.social-links {
    animation-delay: 0.6s;
}

/* RTL Support */
[dir="rtl"] .bio-text {
    text-align: right;
}

[dir="ltr"] .bio-text {
    text-align: left;
    direction: ltr;
}

/* ============== SEARCH STYLES ============== */

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

.search-wrapper {
    position: relative;
    width: 100%;
    max-width: 400px;
}

.search-form {
    position: relative;
}

.search-input-group {
    position: relative;
    display: flex;
    align-items: center;
    overflow: hidden;
    transition: all 0.3s ease;

}

.search-input-group:hover,
.search-input-group:focus-within {

}

.search-input {
    flex: 1;
    padding: 5px 12px;
    border: none;
    outline: none;
    background: transparent;
    color: var(--text-color);
    font-size: 14px;
    font-weight: 500;
}

.search-input::placeholder {
    color: #8b9ba8;
    font-weight: 400;
}

.search-btn {
    padding: 12px 18px;
    border: none;
    background: transparent;
    color: var(--text-color-dark);
    border-radius: 0;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}



.search-btn i {
    font-size: 16px;
}

/* Search Suggestions */
.search-suggestions {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--bg);
    border: 1px solid #e1e8ed;
    border-top: none;
    border-radius: 0 0 15px 15px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    z-index: 1000;
    display: none;
    max-height: 300px;
    overflow-y: auto;
}

.search-suggestions.show {
    display: block;
}

.search-suggestion-item {
    padding: 12px 20px;
    cursor: pointer;
    transition: background 0.2s ease;
    border-bottom: 1px solid #f5f8fa;
}

.search-suggestion-item:hover {
    background: #f8fafc;
}

.search-suggestion-item:last-child {
    border-bottom: none;
}

/* Mobile Search Toggle */


/* Search Page Styles */
.search-page-container {
    min-height: 100vh;
    background: var(--theme-color);
    padding-bottom: 60px;
}

.search-hero-section {
    background: linear-gradient(135deg, var(--link-color) 0%, #4c6ef5 100%);
    color: white;
    padding: 80px 0 60px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.search-hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grid" width="10" height="10" patternUnits="userSpaceOnUse"><path d="M 10 0 L 0 0 0 10" fill="none" stroke="rgba(255,255,255,0.1)" stroke-width="0.5"/></pattern></defs><rect width="100" height="100" fill="url("/assets/themes/news02/css/%23grid")"/></svg>');
    opacity: 0.3;
}

.search-hero-content {
    position: relative;
    z-index: 2;
}

.search-page-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 30px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.search-icon {
    margin-right: 15px;
    color: #ffd700;
}

.search-form-container {
    max-width: 600px;
    margin: 0 auto 30px;
}

.main-search-form {
    position: relative;
}

.search-input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    background: white;
    border-radius: 30px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
}

.search-input-wrapper:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
}

.main-search-input {
    flex: 1;
    padding: 20px 25px;
    border: none;
    outline: none;
    font-size: 16px;
    color: #333;
    background: transparent;
}

.main-search-input::placeholder {
    color: #999;
}

.main-search-btn {
    padding: 20px 30px;
    border: none;
    background: linear-gradient(45deg, #ff6b6b, #ee5a24);
    color: white;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    font-size: 16px;
}

.main-search-btn:hover {
    background: linear-gradient(45deg, #ee5a24, #ff6b6b);
    transform: scale(1.05);
}

.search-query-info {
    margin-top: 20px;
    opacity: 0.9;
}

.search-query-label {
    font-size: 14px;
    opacity: 0.8;
}

.search-query-term {
    font-weight: 600;
    margin: 0 8px;
}

.search-results-count {
    font-size: 14px;
    opacity: 0.8;
}

/* Search Results Section */
.search-results-section {
    background: var(--body);
    padding: 60px 0;
}

/* Search Results Container */
.search-results-container {
    max-width: 1200px;
    margin: 0 auto;
}

/* Search Statistics Bar */
.search-stats-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: var(--bg);
    padding: 20px 25px;
    border-radius: 15px;
    margin-bottom: 30px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.search-stats-info {
    display: flex;
    align-items: center;
    gap: 15px;
}

.results-count-badge {
    background: linear-gradient(45deg, #ff6b6b, #ee5a24);
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    font-weight: 700;
    font-size: 14px;
}

.results-text {
    color: var(--text-color);
    font-weight: 600;
}

.search-time {
    color: var(--text-color-light);
    font-size: 14px;
}

.sort-dropdown {
    padding: 10px 15px;
    border: 2px solid var(--border-color);
    border-radius: 10px;
    background: var(--bg);
    color: var(--text-color);
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.sort-dropdown:hover {
    border-color: var(--link-color);
}

/* Search Content Layout */
.search-content-layout {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 30px;
    align-items: start;
}

/* Search Filters Sidebar */
.search-filters-sidebar {
    background: var(--bg);
    border-radius: 15px;
    padding: 25px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 20px;
}

.filter-title,
.section-title {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text-color);
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 20px;
    padding-bottom: 10px;
    /* border-bottom: 2px solid var(--border-color); */
}

.filter-group {
    margin-bottom: 25px;
}

.filter-group-title {
    color: var(--text-color);
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 12px;
}

.filter-options {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.filter-option {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    padding: 8px 0;
    transition: all 0.3s ease;
}

.filter-option:hover {
    color: var(--link-color);
}

.filter-option input[type="radio"],
.filter-option input[type="checkbox"] {
    accent-color: var(--link-color);
}

.filter-label {
    font-size: 14px;
    color: var(--text-color);
}

/* Popular Searches */
.popular-searches-section {
    margin-top: 30px;
    padding-top: 25px;
    border-top: 2px solid var(--border-color);
}

.popular-search-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.popular-tag {
    background: var(--border-color);
    color: var(--text-color);
    padding: 6px 12px;
    border-radius: 15px;
    text-decoration: none;
    font-size: 12px;
    transition: all 0.3s ease;
}

.popular-tag:hover {
    background: var(--link-color);
    color: white;
    transform: translateY(-2px);
}

/* Search Results Grid */
.search-results-main {
    min-height: 500px;
}

.search-results-grid {
    display: grid;
    gap: 25px;
}

/* Search Result Card */
.search-result-card {
    background: var(--bg);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    position: relative;
}

.search-result-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

.search-card-container {
    display: grid;
    grid-template-columns: 200px 1fr;
    gap: 20px;
    padding: 20px;
}

/* Card Image */
.search-card-image {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    height: 140px;
}

.image-link {
    display: block;
    width: 100%;
    height: 100%;
}

.card-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: all 0.3s ease;
}

.search-result-card:hover .card-image {
    transform: scale(1.05);
}

.relevance-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background: linear-gradient(45deg, #4CAF50, #45a049);
    color: white;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 10px;
    text-align: center;
}

.relevance-score {
    font-weight: 700;
    display: block;
}

.relevance-label {
    font-size: 8px;
    opacity: 0.9;
}

/* Card Content */
.search-card-content {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 5px 0;
}

.card-categories {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.category-tag {
    background: var(--link-color);
    color: white;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
    text-decoration: none;
}

.search-card-title {
    margin: 0;
    font-size: 18px;
    font-weight: 700;
    line-height: 1.4;
}

.title-link {
    color: var(--text-color);
    text-decoration: none;
    transition: all 0.3s ease;
}

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

.search-card-excerpt {
    color: var(--text-color-light);
    font-size: 14px;
    line-height: 1.6;
    margin: 0;
}

/* Card Meta */
.search-card-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
}

.meta-left {
    display: flex;
    gap: 15px;
    align-items: center;
}

.meta-right {
    display: flex;
    gap: 8px;
}

.post-date,
.reading-time {
    display: flex;
    align-items: center;
    gap: 5px;
    color: var(--text-color-light);
    font-size: 12px;
}

.share-btn,
.bookmark-btn {
    background: none;
    border: none;
    color: var(--text-color-light);
    cursor: pointer;
    padding: 6px;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.share-btn:hover,
.bookmark-btn:hover {
    background: var(--border-color);
    color: var(--link-color);
}

/* Keywords */
.search-keywords {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    margin-top: 8px;
}

.keyword-tag {
    background: var(--border-color);
    color: var(--text-color-light);
    padding: 3px 8px;
    border-radius: 10px;
    font-size: 10px;
    font-weight: 500;
}

/* Hover Actions */
.card-hover-actions {
    position: absolute;
    top: 50%;
    right: -100px;
    transform: translateY(-50%);
    opacity: 0;
    transition: all 0.3s ease;
}

.search-result-card:hover .card-hover-actions {
    right: 20px;
    opacity: 1;
}

.quick-read-btn {
    background: var(--link-color);
    color: white;
    padding: 10px 15px;
    border-radius: 20px;
    text-decoration: none;
    font-size: 12px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 6px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
}

.quick-read-btn:hover {
    transform: scale(1.05);
}

/* Pagination */
.search-pagination {
    margin-top: 40px;
    display: flex;
    justify-content: center;
}

.pagination-nav {
    display: flex;
    align-items: center;
    gap: 15px;
    background: var(--bg);
    padding: 15px 25px;
    border-radius: 25px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.pagination-btn {
    background: none;
    border: none;
    color: var(--text-color);
    padding: 8px 15px;
    border-radius: 15px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 6px;
    font-weight: 600;
}

.pagination-btn:hover:not(:disabled) {
    background: var(--link-color);
    color: white;
}

.pagination-btn:disabled,
.pagination-btn.is-disabled {
    opacity: 0.5;
    cursor: not-allowed;
    pointer-events: none;
}

.pagination-numbers {
    display: flex;
    gap: 5px;
    align-items: center;
}

.pagination-number {
    background: none;
    border: none;
    color: var(--text-color);
    width: 35px;
    height: 35px;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 600;
}

.pagination-number:hover {
    background: var(--border-color);
}

.pagination-number.active {
    background: var(--link-color);
    color: white;
}

.pagination-dots {
    color: var(--text-color-light);
    padding: 0 5px;
}

/* No Results Styles */
.no-results-container,
.empty-search-container {
    text-align: center;
    padding: 80px 20px;
    max-width: 600px;
    margin: 0 auto;
}

.no-results-icon,
.empty-search-icon {
    font-size: 4rem;
    color: #ddd;
    margin-bottom: 30px;
}

.no-results-title,
.empty-search-title {
    font-size: 1.8rem;
    font-weight: 600;
    color: var(--text-color);
    margin-bottom: 15px;
}

.no-results-message,
.empty-search-message {
    font-size: 1.1rem;
    color: var(--text-color-light);
    line-height: 1.6;
    margin-bottom: 30px;
}

.search-suggestions-tips {
    background: var(--bg);
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    text-align: left;
    max-width: 400px;
    margin: 0 auto;
}

.search-suggestions-tips h4 {
    color: var(--link-color);
    margin-bottom: 15px;
    font-weight: 600;
}

.search-suggestions-tips ul {
    list-style: none;
    padding: 0;
}

.search-suggestions-tips li {
    padding: 8px 0;
    color: var(--text-color);
    position: relative;
    padding-left: 20px;
}

.search-suggestions-tips li::before {
    content: '•';
    color: var(--link-color);
    position: absolute;
    left: 0;
    font-weight: bold;
}

/* Responsive Design */
@media (max-width: 768px) {
    .header-search-container {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--bg);
        padding: 20px;
        box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
        z-index: 1000;
    }

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

    .mobile-search-toggle {
        display: block;
    }

    .search-wrapper {
        max-width: none;
    }

    .search-page-title {
        font-size: 2rem;
    }

    .search-hero-section {
        padding: 60px 0 40px;
    }

    .main-search-input {
        padding: 15px 20px;
        font-size: 14px;
    }

    .main-search-btn {
        padding: 15px 20px;
        font-size: 14px;
    }

    .main-search-btn span {
        display: none;
    }

    /* Mobile Search Results */
    .search-content-layout {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .search-filters-sidebar {
        position: static;
        order: 2;
        margin-top: 20px;
    }

    .search-results-main {
        order: 1;
    }

    .search-stats-bar {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }

    .search-card-container {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .search-card-image {
        height: 200px;
        order: -1;
    }

    .card-hover-actions {
        position: static;
        opacity: 1;
        transform: none;
        margin-top: 15px;
        display: none;
    }

    .pagination-nav {
        flex-direction: column;
        gap: 10px;
    }

    .pagination-numbers {
        order: -1;
    }

    /* Filter Toggles for Mobile */
    .filter-toggle {
        display: block;
        width: 100%;
        background: var(--link-color);
        color: white;
        padding: 12px 20px;
        border: none;
        border-radius: 10px;
        font-weight: 600;
        margin-bottom: 15px;
        cursor: pointer;
    }

    .filter-section {
        display: none;
    }

    .filter-section.active {
        display: block;
    }
}

@media (max-width: 480px) {
    .search-hero-section {
        padding: 40px 0 30px;
    }

    .search-page-title {
        font-size: 1.5rem;
    }

    .search-input-wrapper {
        border-radius: 20px;
    }

    .main-search-input {
        padding: 12px 15px;
        font-size: 14px;
    }

    .main-search-btn {
        padding: 12px 15px;
    }

    .search-result-card {
        margin: 0 -10px;
        border-radius: 10px;
    }

    .search-card-container {
        padding: 15px;
    }

    .search-card-title {
        font-size: 16px;
    }

    .search-card-excerpt {
        font-size: 13px;
    }

    .popular-search-tags {
        justify-content: center;
    }
}

.search-input-wrapper {
    margin: 0 10px;
}

@media (max-width: 480px) {
    .search-page-title {
        font-size: 1.5rem;
    }

    .search-icon {
        margin-right: 10px;
    }

    .no-results-container,
    .empty-search-container {
        padding: 60px 15px;
    }

    .no-results-icon,
    .empty-search-icon {
        font-size: 3rem;
    }

    .no-results-title,
    .empty-search-title {
        font-size: 1.4rem;
    }
}

.link {
    cursor: pointer;
}

.alert-dismissible {
    position: fixed !important;
    top: 20%;
    left: 10%;
    right: 10%;
    z-index: 10000;
}

/* Modern Popup Styles */
.main-popup {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10000;
    display: none;
    animation: popupFadeIn 0.3s ease-out;
}

.main-popup.show {
    display: block;
}

/* Prevent body scroll when popup is open */
body.popup-open {
    overflow: hidden;
    position: fixed;
    width: 100%;
}

.popup-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(4px);
    cursor: pointer;
}

.popup-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    /* background: white; */
    border-radius: 10px;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.25);
    overflow: hidden;
    animation: popupSlideIn 0.4s ease-out;
    max-width: 90vw;
    /* max-height: 90vh; */
}

.popup-body {
    position: relative;
    display: flex;
    flex-direction: column;
}

.popup-image-container {
    position: relative;
    overflow: hidden;
}

.popup-image {
    width: 100%;
    height: auto;
    max-height: 60vh;
    object-fit: cover;
    display: block;
}

.popup-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: rgba(0, 0, 0, 0.5);
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    transition: all 0.2s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.popup-close:hover {
    background: rgb(0, 0, 0);
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
}

.popup-close svg {
    color: #ffffff;
    transition: color 0.2s ease;
}

.popup-close:hover svg {
    color: #ffffff;
}

.popup-footer {
    padding: 20px;
    text-align: center;
    /* background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); */
    background: var(--bg);
}


.popup-button {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #ffa41d;
    color: #333;
    text-decoration: none;
    padding: 12px 24px;
    border-radius: 50px;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.popup-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    background: #f8f9fa;
    color: #333;
    text-decoration: none;
}

.popup-button svg {
    transition: transform 0.2s ease;
}

.popup-button:hover svg {
    transform: translateX(2px);
}

/* Animations */
@keyframes popupFadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes popupSlideIn {
    from {
        opacity: 0;
        transform: translate(-50%, -60%) scale(0.9);
    }

    to {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1);
    }
}

@keyframes popupSlideUp {
    from {
        opacity: 0;
        transform: translateY(100%);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Mobile-First Responsive Design */
@media (max-width: 768px) {
    .main-popup {
        animation: popupFadeIn 0.3s ease-out;
    }

    .popup-content {
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        background: white;
        border-radius: 15px;
        box-shadow: 0 25px 50px rgba(0, 0, 0, 0.25);
        overflow: hidden;
        animation: popupSlideIn 0.4s ease-out;
        max-width: 90vw;
        max-height: 80vh;
        width: 90vw;
        margin: 0;
        -webkit-overflow-scrolling: touch;
    }

    .popup-body {
        display: flex;
        flex-direction: column;
        max-height: 80vh;
        overflow: hidden;
    }

    .popup-image-container {
        flex-shrink: 0;
        display: flex;
        align-items: center;
        justify-content: center;
        background: #f8f9fa;
        max-height: 50vh;
    }

    .popup-image {
        width: 100%;
        height: auto;
        max-height: 50vh;
        object-fit: cover;
    }

    .popup-close {
        width: 36px;
        height: 36px;
        top: 10px;
        right: 10px;
        background: rgba(255, 255, 255, 0.9);
        backdrop-filter: blur(10px);
    }

    .popup-close svg {
        color: #666;
        width: 18px;
        height: 18px;
    }

    .popup-footer {
        padding: 15px;
        text-align: center;
        /* background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); */
        flex-shrink: 0;
    }

    .popup-button {
        width: 100%;
        justify-content: center;
        padding: 12px 20px;
        font-size: 14px;
        background: #ffa41d;
        color: #333;
        border-radius: 25px;
        display: inline-flex;
        align-items: center;
        gap: 8px;
        text-decoration: none;
        font-weight: 600;
        transition: all 0.3s ease;
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    }

    .popup-button:hover {
        background: #f8f9fa;
        transform: translateY(-1px);
        text-decoration: none;
        color: #333;
    }

    .popup-button svg {
        width: 16px;
        height: 16px;
    }
}

@media (max-width: 480px) {
    .popup-content {
        max-width: 95vw;
        width: 95vw;
        max-height: 85vh;
    }

    .popup-close {
        width: 32px;
        height: 32px;
        top: 8px;
        right: 8px;
    }

    .popup-close svg {
        width: 16px;
        height: 16px;
    }

    .popup-footer {
        padding: 12px;
    }

    .popup-button {
        padding: 10px 16px;
        font-size: 13px;
        border-radius: 20px;
    }

    .popup-button svg {
        width: 14px;
        height: 14px;
    }

    .popup-image-container {
        max-height: 45vh;
    }

    .popup-image {
        max-height: 45vh;
    }
}

@media (max-width: 360px) {
    .popup-content {
        max-width: 98vw;
        width: 98vw;
        max-height: 90vh;
        border-radius: 12px;
    }

    .popup-close {
        width: 30px;
        height: 30px;
        top: 6px;
        right: 6px;
    }

    .popup-close svg {
        width: 14px;
        height: 14px;
    }

    .popup-footer {
        padding: 10px;
    }

    .popup-button {
        padding: 8px 14px;
        font-size: 12px;
        border-radius: 18px;
    }

    .popup-button svg {
        width: 12px;
        height: 12px;
    }

    .popup-image-container {
        max-height: 40vh;
    }

    .popup-image {
        max-height: 40vh;
    }
}

@media (min-width: 992px) {
    .popup-content {
        max-width: 800px;
    }

    .popup-image {
        max-height: 70vh;
    }
}

@media (min-width: 1200px) {
    .popup-content {
        max-width: 900px;
    }
}

#float-holder-right-bottom {
    padding: 15px 10px;
    position: fixed;
    bottom: 0;
    right: 0;
    z-index: 10000;
    gap: 10px;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

html[dir="rtl"] #float-holder-right-bottom {
    align-items: flex-start !important;
}

.comment-float {
    background: var(--bg);
    padding: 14px 20px;
    border-radius: 4px;
    box-shadow: 0px 0px 10px 1px rgba(0, 0, 0, .2);
    z-index: 9999;
    transform: translateX(120%);
    transition: transform 0.3s ease-in-out;
    max-width: 350px;
    align-items: center;
    gap: 10px;
    border-radius: 25px;
}
.comment-float .close-btn {
    /* position: absolute; */
    /* top: 5px;
    right: 10px; */
    padding: 5px;
    cursor: pointer;
}

.comment-float.show {
    transform: translateX(0);
}

.post-item {
    overflow: hidden;
    transition: transform 0.3s ease;
    width: 100%;
}

.post-item-related {
    background: var(--bs-body-bg);
    overflow: hidden;
    padding: 10px 10px;
    transition: transform 0.3s ease;
    width: 100%;
    border-radius: 20px;
}

.post-item-related .post-image {
    /* border-sradius: 12px !important; */
}

.post-item.v1 .post-image {
    /* border-radius: 12px !important; */
}

.post-item.v2 .post-image {
    /* border-radius: 12px !important; */
}

/* Grid Layout */
.posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;

}

/* Responsive breakpoints */
@media (max-width: 1200px) {
    .posts-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 992px) {
    .grid-scroll-x-md {
        display: grid;
        grid-auto-flow: column;
        overflow-x: scroll;
        gap: 20px;
    }

    .grid-scroll-x-sm .post-item {
        width: 250px;
    }
}

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

    .post-wrapper-row {
        flex-direction: column;
    }

    .post-image-wrapper-row {
        flex-basis: auto;
        width: 100%;
    }

    .grid-scroll-x-sm {
        display: grid;
        grid-auto-flow: column;
        grid-auto-columns: minmax(220px, 70vw);
        grid-template-columns: none;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        gap: 16px;
        padding-bottom: 4px;
    }

    .grid-scroll-x-sm .post-item {
        width: auto;
        min-width: 0;
    }

    .post-item {
        padding-bottom: 10px;
        border-bottom: 1px solid var(--border-color);
    }

    .post-title {
        font-size: 1.05rem;
        word-break: break-word;
    }

    .section-title {
        font-size: 1rem;
    }
}

.post-item:hover {
    /* transform: translateY(-5px); */
}

.post-wrapper {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.post-wrapper-row {
    display: flex;
    /* flex-direction: column; */
    /* height: 100%; */
}
.btn-theme{
    background-color: var(--theme-color);
    color: #fff;
}
.post-image-wrapper {
    position: relative;
    overflow: hidden;
    aspect-ratio: 16/9;
}

.post-image-wrapper-row {
    position: relative;
    overflow: hidden;
    aspect-ratio: 16/9;
    flex-basis: 35%;
    flex-grow: 0;
    flex-shrink: 0;
}

.post-image-wrapper-related {
    position: relative;
    overflow: hidden;
    aspect-ratio: 16/9;
    flex-basis: 30%;
    flex-grow: 0;
    flex-shrink: 0;
    border-radius: 10px;
}

.post-image-wrapper-related .post-image,
.post-image {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover;
    transition: opacity 0.5s ease-in-out, transform 0.4s ease-in-out;
    opacity: 0;
    /* border-radius: 0 !important; */
}

.post-item-related-title {
    margin-bottom: 5px;
    font-style: italic;
    padding-left: 5px;
    color: var(--text-color-light);
    font-weight: 300;
}

.post-image.loaded {
    opacity: 1;
}

.post-image-link:hover .post-image {
    transform: scale(1.05);
}

.image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;

    /* transition: transform 0.3s ease; */

}

.post-image-link:hover .image-overlay {
    opacity: 1;
    /* transition: transform 0.3s ease; */
}

.read-more {
    color: #fff;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.category-tags {
    position: absolute;
    top: 15px;
    left: 15px;
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.category-tag {
    background: rgba(255, 255, 255, 0.8);
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    color: #333;
    text-decoration: none;
    transition: background 0.3s ease;
}

.category-tag:hover {
    background: #fff;
    color: #2c3e50;
}

.post-content {
    padding: 10px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.post-meta {
    display: flex;
    gap: 15px;
    margin-bottom: 10px;
    font-size: 0.9rem;
    color: var(--text-color-light);
}

.post-meta i {
    margin-right: 5px;
}

.post-title {
    margin: 0 0 15px;
    font-size: 1.5rem;
    line-height: 1.4;
}

.post-title a {
    color: var(--text-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

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

.post-excerpt {

    line-height: 1.6;
    margin-bottom: 20px;
    flex-grow: 1;
}

.post-excerpt a {
    color: var(--text-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

/* .post-excerpt a:hover {
    color: #34495e;
} */

.post-footer {
    display: flex;
    justify-content: flex-end;
    margin-top: auto;
}

.read-more-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--text-color-light);
    text-decoration: none;
    font-weight: 400;
    transition: all 0.3s ease;
}

.read-more-btn:hover {
    gap: 12px;
    color: #34495e;
}

.posts-grid-row {
    display: flex;
    flex-direction: column;
    gap: 1.5rem !important
}

.lh-30 {
    line-height: 30px;
}

.post-container {
    /* background-color: var(--body); */
}

.hero-section {
    /* height: 70vh; */
    /* min-height: 500px; */
    height: 90vh;
    overflow: hidden;
    background-color: var(--bs-black);
}


@media (max-width: 768px) {
    .post-header-info {
        font-size: 12px;
    }

    .hero-section {
        height: auto;
        max-height: 90vh;
        min-height: 300px;
    }

    .hero-overlay {
        display: none;
    }

    .hero-content {
        position: relative !important;
        background-color: var(--body);
        color: var(--text-color) !important;
    }

    .hero-content h1 {
        font-size: 1.3rem !important;
    }

    .sm-fs-7 {
        font-size: 0.75rem !important;
    }

    .post-item-related .post-title {
        font-size: 1.2rem !important;
    }

    .post-item-related .post-excerpt {
        display: none;
    }

    .article-text {
        overflow-wrap: anywhere;
        word-break: break-word;
    }

    .article-text pre,
    .article-text table,
    .article-text iframe,
    .article-text video {
        max-width: 100%;
    }

    .article-text table {
        display: block;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
}

.color-grey {
    color: var(--bs-light-text-emphasis);

}

.slide-post-columns-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    /* دو ستون */
    gap: 10px;
    /* فاصله بین سلول‌ها */
}

.slide-post-columns-grid .item:nth-child(1) {
    grid-row: 1 / span 4;
    /* چهار ردیف ارتفاع */
    grid-column: 1;
    /* ستون اول */
    display: flex;
    align-items: center;
    justify-content: center;
}


.post-item.item:nth-child(2) .post-wrapper,
.post-item.item:nth-child(3) .post-wrapper,
.post-item.item:nth-child(4) .post-wrapper,
.post-item.item:nth-child(5) .post-wrapper{
    flex-direction: row;
}

.post-item.item:nth-child(2) .post-image-wrapper,
.post-item.item:nth-child(3) .post-image-wrapper,
.post-item.item:nth-child(4) .post-image-wrapper,
.post-item.item:nth-child(5) .post-image-wrapper{
    width: 35%;
    flex: 0 0 auto;
}

.two-columns-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
}

@media (max-width: 768px) {
    .slide-post-columns-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .slide-post-columns-grid .item:nth-child(1) {
        grid-row: auto;
        grid-column: auto;
        display: block;
    }

    .post-item.item:nth-child(2) .post-wrapper,
    .post-item.item:nth-child(3) .post-wrapper,
    .post-item.item:nth-child(4) .post-wrapper,
    .post-item.item:nth-child(5) .post-wrapper {
        flex-direction: column;
    }

    .post-item.item:nth-child(2) .post-image-wrapper,
    .post-item.item:nth-child(3) .post-image-wrapper,
    .post-item.item:nth-child(4) .post-image-wrapper,
    .post-item.item:nth-child(5) .post-image-wrapper {
        width: 100%;
        flex: none;
    }

    .two-columns-grid:not(.grid-scroll-x-sm) {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .two-columns-grid.grid-scroll-x-sm {
        display: grid;
        grid-auto-flow: column;
        grid-auto-columns: minmax(220px, 70vw);
        grid-template-columns: none;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        gap: 16px;
    }
}

.two-columns-grid>article:nth-child(3) {
    /* grid-column: 1 / -1; */
}

.article-popup-image {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    right: 0;
    background-color: #000000a9;
    z-index: 10000;
    align-items: center;
    text-align: center;
    justify-content: center;
    display: none;
}

.article-popup-image-img {
    max-width: 90%;
    max-height: 90%;
    object-fit: contain;
    border-radius: 5px;
}

.article-popup-image-close {
    position: absolute;
    top: 0px;
    right: 10px;
    font-size: 2rem;
    color: white;
    cursor: pointer;
}

.article-popup-image-next{
    position: absolute;
    right: 10px;
    top: 50%;
    
}

.article-popup-image-prev{
    position: absolute;
    left: 10px;
    top: 50%;
}

.hero-content {
    bottom: 0;
    left: 0;
    right: 0;
    position: absolute;
    color: white;
}

.travel-meta {
    font-size: 1.1rem;
}

.tips-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.tip-item {
    text-align: center;
    padding: 1.5rem;
    background: #f8f9fa;
    border-radius: 10px;
    transition: transform 0.3s ease;
}

.tip-item:hover {
    transform: translateY(-5px);
}

.tip-item i {
    font-size: 2rem;
    color: #0d6efd;
    margin-bottom: 1rem;
}

.tip-item h6 {
    margin-bottom: 0.5rem;
    color: #333;
}

.tip-item p {
    color: #666;
    margin-bottom: 0;
}

.latest-posts .post-item {
    margin-bottom: 1.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid #eee;
}

/* .latest-posts .post-item:last-child {
margin-bottom: 0;
padding-bottom: 0;
border-bottom: none;
} */

.newsletter-form .form-control {
    /* border-radius: 20px 0 0 20px; */
}

.newsletter-form .btn {
    /* border-radius: 0 20px 20px 0; */
}

.article-text img:not(.post-image) {
    cursor: pointer;
    max-width: 100%;
    height: auto !important;
    display: block;
    /* border-radius: 15px; */
}

.article-content a {
    color: rgb(var(--bs-link-color-rgb)) !important;
    /* background-color: var(--bg); */
}

.posts-grid-row>article:nth-child(1) .post-wrapper-row,
.posts-grid-row>article:nth-child(4) .post-wrapper-row,
.posts-grid-row>article:nth-child(7) .post-wrapper-row {
    /* display: block; */
}


.related-post {
    padding: 30px 20px;
    color: #0f5132 !important;
    background-color: #d1e7dd;
    border: 1px solid #badbcc;
    border-radius: 10px;
    margin: 1em 0;
    /* font-style: italic; */
}

.related-post a {
    color: #0f5132 !important;
}

.section-title {
    background-color: var(--theme-color);
    color: #fff;
    padding: 5px 10px;
    margin-bottom: 0;
    font-size: 1.1rem;
    font-weight: 300;
    display: inline-block;
}

.hr{
    border-bottom: 2px solid var(--theme-color);
    margin-bottom: 10px;
}
html[dir="rtl"] .section-title {
    /* border-right: 5px solid #ff4d4d; */
}

html[dir="ltr"] .section-title {
    /* border-left: 5px solid #ff4d4d; */
}


.video-wrapper {
    position: relative;
    padding-bottom: 56.25%;
    /* 16:9 */
    height: 0;
    overflow: hidden;
    max-width: 100%;
}

.video-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 20px;
}


.popup-post {
    position: fixed;
    left: 20%;
    right: 20%;
    bottom: 0;
    padding: 10px;
    z-index: 10000;
}

.post-item-related.popup {
    position: fixed;
    max-width: 600px;
    display: none;
    opacity: 0;
    animation: popupFadeIn 0.3s ease-out;
}

.post-item-related.popup.show {
    display: block;
    opacity: 1;
}

.post-item-related.popup.left-top {
    left: 10px;
    top: 10px;
}

.post-item-related.popup.left-middle {
    left: 10px;
    top: 50%;
    transform: translate(0, -50%);
}

.post-item-related.popup.left-bottom {
    left: 10px;
    bottom: 10px;
}

.post-item-related.popup.right-top {
    right: 10px;
    top: 10px;
}

.post-item-related.popup.right-middle {
    right: 10px;
    top: 50%;
    transform: translate(0, -50%);
}

.post-item-related.popup.right-bottom {
    right: 10px;
    bottom: 10px;
}

.post-item-related.popup.center-middle {
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
}

.post-item-related.popup.center-top {
    left: 50%;
    top: 10px;
    transform: translate(-50%);
}

.post-item-related.popup.center-bottom {
    left: 50%;
    bottom: 10px;
    transform: translate(-50%);
}

.post-item-related.popup.show {
    display: block;
    opacity: 1;
}

.post-item-related.popup {
    z-index: 10000;
}

@media (max-width: 768px) {
    .post-item-related.popup {
        max-width: 95%;
        display: none;
        opacity: 0;
        transition: opacity 0.6s ease;
    }

    .post-header-info,
    .post-header-info a {
        color: var(--text-color-light) !important;
    }
}

.user-comment-avatar {
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--bs-dark-bg-subtle);
    color: var(--bs-light-text-emphasis);
}

.post-header-info,
.post-header-info a {
    color: var(--text-color-light);
}

.travel-header {
    background: var(--bg);
    color: var(--text-color);
    width: 100%;
    z-index: 1030;
    padding: 10px 0;
    box-shadow: 0 2px 15px rgba(0,0,0,0.05);
}

.mobile-search-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 18px;
    padding: 8px;
    margin-inline-end: 10px;
    border-radius: 50%;
    transition: all 0.3s ease;
    color: inherit;
    min-width: 44px;
    min-height: 44px;
}

.travel-nav a{
    border-bottom: 2px solid var(--bg);
}
.travel-nav a:hover{
    /* color: #fff !important; */
    /* font-weight: 600; */
    border-bottom: 2px solid var(--theme-color);
}

@media (min-width: 768px) {}

.search-input-group input::placeholder {
    color: var(--theme-color);
    font-weight: 300;
    opacity: 1;
    /* Firefox */
}

.search-input-group input::-ms-input-placeholder {
    /* Edge 12 -18 */
    color: var(--theme-color);
}

.travel-header-container {
    margin: 0 auto;
    display: flex;
    align-items: center;
}

.travel-logo-link {
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

.travel-logo {
    height: 40px;
    transition: all 0.3s ease;
    /* filter: brightness(0) invert(1); */
}

.travel-nav {
    flex: 1;
    min-width: 0;
}

.travel-nav--drawer {
    display: none;
}

.travel-nav ul {
    list-style: none;
    padding-inline-start: 20px;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 20px;
}

.travel-nav>ul>li {
    position: relative;
}

.travel-nav>ul>li>a {
    display: block;
    padding: 8px 0;
    /* color: var(--text-color); */
    color: var(--text-color-dark);
    text-decoration: none;
    font-weight: 500;
    font-size: 18px;
    font-weight: 200;
    transition: all 0.3s ease;
    position: relative;
}

.travel-nav>ul>li>a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--theme1);
    transition: width 0.3s ease;
}

.travel-nav>ul>li>a:hover {
    color: var(--theme1);
}

.travel-nav>ul>li>a:hover::after {
    width: 100%;
}

.travel-nav .submenu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--bg);
    min-width: 220px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    border-radius: 8px;
    padding: 10px 0;
    z-index: 1002;
}

@media (min-width: 769px) {
    .travel-nav .has-submenu:hover > .submenu {
        display: block;
    }
}

.travel-nav .has-submenu {
    position: relative;
}

.travel-nav .has-submenu>.submenu>.has-submenu>a::after {
    content: ' ';
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    transition: all 0.3s ease;

    width: 7px;
    height: 4px;
    border-top: 4px solid transparent;
    border-bottom: 4px solid transparent;
    border-left: 7px solid var(--text-color-light);
}

.travel-nav .submenu .submenu {
    top: 0;
    left: 100%;
}

.travel-nav .submenu li a {
    display: block;
    padding: 10px 20px;
    color: var(--text-color);
    text-decoration: none;
    font-size: 14px;
    transition: all 0.3s ease;
    position: relative;
}

.travel-nav .submenu li a:hover {
    background: var(--body);
    color: var(--text-color);
    padding-left: 25px;
}

.travel-nav .submenu li a::before {
    /* content: '→';
    position: absolute;
    left: 10px;
    top: 50%;
    transform: translateY(-50%);
    opacity: 0;
    transition: all 0.3s ease; */
}

.travel-nav .submenu li a:hover::before {
    opacity: 1;
}

/* Header Buttons Styling */
.header-buttons {
    display: flex;
    gap: 12px;
    align-items: center;
}

.header-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px !important;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    cursor: pointer;
    white-space: nowrap;
}

.header-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.header-btn:hover::before {
    left: 100%;
}

.header-btn-shop {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
}

.header-btn-shop:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.6);
    color: white;
}

.header-btn-account {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    color: white !important;
    box-shadow: 0 4px 15px rgba(240, 147, 251, 0.4);
}

.header-btn-account:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(240, 147, 251, 0.6);
    color: white;
}

.header-btn-signup {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(79, 172, 254, 0.4);
}

.header-btn-signup:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(79, 172, 254, 0.6);
    color: white;
}

.header-btn-logout {
    background: linear-gradient(135deg, #fa709a 0%, #fee140 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(250, 112, 154, 0.4);
}

.header-btn-logout:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(250, 112, 154, 0.6);
    color: white;
}

.header-btn i {
    font-size: 16px;
    transition: transform 0.3s ease;
}

.header-btn:hover i {
    transform: scale(1.1);
}

.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    position: relative;
    width: 44px;
    height: 44px;
    padding: 0;
    flex-shrink: 0;
    z-index: 1002;
}

.mobile-menu-toggle span {
    display: block;
    position: absolute;
    left: 10px;
    right: 10px;
    height: 2px;
    background: var(--text-color);
    border-radius: 2px;
    margin: 0;
    transition: transform 0.25s ease, opacity 0.2s ease, top 0.25s ease;
}

.mobile-menu-toggle span:nth-child(1) {
    top: 15px;
}

.mobile-menu-toggle span:nth-child(2) {
    top: 21px;
}

.mobile-menu-toggle span:nth-child(3) {
    top: 27px;
}


.overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 23, 42, 0.45);
    z-index: 1000;
    opacity: 0;
    transition: opacity 0.25s ease;
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}

.overlay.active {
    display: block;
    opacity: 1;
}

@media (max-width: 768px) {
    .travel-header {
        z-index: 1060;
    }

    .mobile-menu-toggle {
        display: block;
    }

    .mobile-search-toggle {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        margin-inline-end: 0;
        z-index: 1061;
    }

    .travel-header-container {
        justify-content: space-between;
        gap: 8px;
    }

    .travel-logo {
        height: 36px;
        max-width: min(180px, 52vw);
        object-fit: contain;
    }

    .mobile-menu-toggle.active span:nth-child(1) {
        top: 21px;
        transform: rotate(45deg);
    }

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

    .mobile-menu-toggle.active span:nth-child(3) {
        top: 21px;
        transform: rotate(-45deg);
    }

    .travel-nav--desktop {
        display: none;
    }

    /* Kill sticky :hover menus on touch */
    .travel-nav .has-submenu:hover > .submenu {
        display: none;
    }

    .travel-nav .has-submenu.active > .submenu {
        display: flex;
    }

    .travel-nav--drawer {
        display: block;
        position: fixed;
        top: 0;
        right: 0;
        left: auto;
        width: min(88vw, 320px);
        height: 100dvh;
        max-height: 100%;
        background: var(--bg, #ffffff);
        padding: calc(env(safe-area-inset-top, 0px) + 72px) 0 calc(env(safe-area-inset-bottom, 0px) + 28px);
        overflow-x: hidden;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
        transform: translate3d(100%, 0, 0);
        visibility: hidden;
        pointer-events: none;
        transition: transform 0.28s cubic-bezier(0.32, 0.72, 0, 1), visibility 0.28s;
        box-shadow: -12px 0 40px rgba(0, 0, 0, 0.14);
        z-index: 1040;
        flex: none;
        border-inline-start: 1px solid rgba(80, 87, 94, 0.12);
    }

    html[dir="rtl"] .travel-nav--drawer {
        right: auto;
        left: 0;
        transform: translate3d(-100%, 0, 0);
        box-shadow: 12px 0 40px rgba(0, 0, 0, 0.14);
    }

    .travel-nav--drawer::before {
        content: "";
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        height: 3px;
        background: var(--theme-color, var(--theme1, #0d6efd));
    }

    .travel-nav--drawer.active {
        transform: translate3d(0, 0, 0);
        visibility: visible;
        pointer-events: auto;
    }

    .overlay.active {
        z-index: 1035;
    }

    .header-buttons {
        gap: 4px;
        flex-shrink: 0;
        position: relative;
        z-index: 1061;
    }

    .mobile-menu-toggle {
        position: relative;
        z-index: 1061;
    }

    .travel-nav a {
        border-bottom: none;
    }

    .travel-nav a:hover {
        border-bottom: none;
    }

    .travel-nav--drawer ul {
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        padding: 0 16px;
        width: 100%;
    }

    .travel-nav--drawer > ul {
        gap: 4px;
    }

    .travel-nav--drawer > ul > li {
        width: 100%;
    }

    .travel-nav--drawer > ul > li > a {
        position: relative;
        display: flex;
        align-items: center;
        width: 100%;
        min-height: 48px;
        padding: 12px 16px;
        margin: 0;
        color: var(--text-color-dark, var(--text-color, #333));
        background: transparent;
        border-radius: 10px;
        font-size: 1rem;
        font-weight: 500;
        line-height: 1.35;
        overflow-wrap: anywhere;
        word-break: break-word;
        transition: background-color 0.2s ease, color 0.2s ease;
    }

    .travel-nav--drawer > ul > li > a::after {
        display: none;
    }

    .travel-nav--drawer > ul > li > a:hover,
    .travel-nav--drawer > ul > li > a:focus-visible {
        background: rgba(13, 110, 253, 0.08);
        background: color-mix(in srgb, var(--theme-color, #0d6efd) 10%, transparent);
        color: var(--theme-color, var(--theme1, #0d6efd));
        outline: none;
    }

    .travel-nav--drawer .has-submenu > a {
        padding-inline-end: 44px;
    }

    .travel-nav--drawer .has-submenu > a::before {
        content: "";
        position: absolute;
        inset-inline-end: 16px;
        top: 50%;
        width: 8px;
        height: 8px;
        border-inline-end: 2px solid currentColor;
        border-bottom: 2px solid currentColor;
        transform: translateY(-65%) rotate(45deg);
        opacity: 0.55;
        transition: transform 0.2s ease, opacity 0.2s ease;
    }

    .travel-nav--drawer .has-submenu.active > a {
        background: rgba(13, 110, 253, 0.1);
        background: color-mix(in srgb, var(--theme-color, #0d6efd) 12%, transparent);
        color: var(--theme-color, var(--theme1, #0d6efd));
    }

    .travel-nav--drawer .has-submenu.active > a::before {
        transform: translateY(-35%) rotate(-135deg);
        opacity: 1;
    }

    .travel-nav--drawer .submenu {
        position: static;
        box-shadow: none;
        background: transparent;
        margin: 4px 0 8px;
        padding: 4px 0 4px 12px;
        display: none;
        width: 100%;
        transform: none;
        border-inline-start: 2px solid rgba(13, 110, 253, 0.35);
        border-inline-start-color: color-mix(in srgb, var(--theme-color, #0d6efd) 35%, transparent);
        border-radius: 0;
        min-width: 0;
    }

    .travel-nav--drawer .has-submenu.active > .submenu {
        display: flex;
        flex-direction: column;
        gap: 2px;
    }

    .travel-nav--drawer .submenu li a {
        display: block;
        padding: 11px 14px;
        color: var(--text-color-light, #666);
        font-size: 0.92rem;
        font-weight: 400;
        border-radius: 8px;
        min-height: 44px;
        overflow-wrap: anywhere;
        word-break: break-word;
    }

    .travel-nav--drawer .submenu li a:hover,
    .travel-nav--drawer .submenu li a:focus-visible {
        background: rgba(13, 110, 253, 0.08);
        background: color-mix(in srgb, var(--theme-color, #0d6efd) 8%, transparent);
        color: var(--theme-color, var(--theme1, #0d6efd));
        padding-inline-start: 14px;
        outline: none;
    }

    .travel-nav--drawer .submenu .submenu {
        margin-inline-start: 8px;
        padding-inline-start: 10px;
    }

    .travel-nav--drawer .has-submenu > .submenu > .has-submenu > a::after {
        display: none;
    }

    .header-btn {
        padding: 8px 16px;
        font-size: 13px;
        gap: 6px;
    }

    .header-btn i {
        font-size: 14px;
    }
}



.mobile-search-toggle:hover {

    color: var(--link-color);
}
.category-bar {
    border-top: 1px solid rgba(0, 0, 0, 0.08);
    background: rgba(255, 255, 255, 0.7);
}

.category-bar__inner {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
}

.category-bar__list {
    display: flex;
    flex-wrap: nowrap;
    gap: 0.35rem 1.15rem;
    list-style: none;
    margin: 0;
    padding: 0.5rem 0;
    align-items: center;
}

.category-bar__link {
    display: inline-block;
    white-space: nowrap;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-color-50, #6c757d);
    text-decoration: none;
    border-bottom: 2px solid transparent;
    padding-bottom: 0.1rem;
}

.category-bar__link:hover,
.category-bar__link.is-active {
    color: var(--link-color, #0d6efd);
    border-bottom-color: currentColor;
}

.footer {
    /* background: var(--bg-light); */
    border-top: 1px solid var(--bs-border-color);
}

.footer .hover-white:hover {
    font-weight: bold;
    transition: color 0.3s ease;
}

.footer .btn-light {
    transition: all 0.3s ease;
}

.footer .btn-light:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.footer-brand img {
    /* filter: brightness(0) invert(1); */
}

.footer .social-links a {
    width: 36px;
    height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 40%;
}

.footer .social-links a:hover {
    background: var(--theme-color);
    color: #fff !important;
}

.floating-newsletter-btn {
    display: none;
    /* background: linear-gradient(135deg, #007bff, #0056b3); */
    background: var(--theme-color);
    color: white;
    border: none;
    border-radius: 50px;
    padding: 15px 20px;
    font-size: 14px;
    font-weight: 600;
    box-shadow: 0 4px 20px -1px var(--theme-color);
    cursor: pointer;
    transition: all 0.3s ease;
    align-items: center;
    gap: 8px;
    min-width: 50px;
    height: 50px;
    overflow: hidden;
    animation: pulse 2s infinite;
}

.floating-newsletter-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 25px rgba(0, 123, 255, 0.4);
    /* background: linear-gradient(135deg, #0056b3, #004085); */
}

.floating-newsletter-btn:active {
    transform: translateY(-1px);
}

.floating-newsletter-btn i {
    font-size: 18px;
    flex-shrink: 0;
}

.floating-btn-text {
    white-space: nowrap;
    /* opacity: 0; */
    transform: translateX(-10px);
    transition: all 0.3s ease;
    margin-left: 5px;
}

.floating-newsletter-btn:hover .floating-btn-text {
    opacity: 1;
    transform: translateX(0);
}

@keyframes pulse {
    0% {
        box-shadow: 0 4px 20px -1px var(--theme-color);
    }

    50% {
        box-shadow: 0 4px 20px -1px var(--theme-color), 0 0 0 10px rgba(0, 123, 255, 0.1);
    }

    100% {
        box-shadow: 0 4px 20px -1px var(--theme-color);
    }
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .floating-newsletter-btn {
        bottom: 15px;
        right: 15px;
        padding: 12px 16px;
        font-size: 12px;
        min-width: 45px;
        height: 45px;
    }

    .floating-newsletter-btn i {
        font-size: 16px;
    }

    .floating-btn-text {
        display: none;
    }

    .newsletter-form .input-group {
        flex-direction: column;
        gap: 8px;
    }

    .newsletter-form .form-control,
    .newsletter-form .btn {
        width: 100%;
        border-radius: 0.375rem !important;
    }
}


/* Newsletter section highlight effect */
.highlight-newsletter {
    animation: highlightNewsletter 2s ease-in-out;
    border-radius: 10px;
}

@keyframes highlightNewsletter {
    0% {
        background-color: rgba(0, 123, 255, 0.1);
        transform: scale(1);
    }

    50% {
        background-color: rgba(0, 123, 255, 0.2);
        transform: scale(1.02);
    }

    100% {
        background-color: transparent;
        transform: scale(1);
    }
}

[data-bs-theme="dark"] .highlight-newsletter {
    animation: highlightNewsletterDark 2s ease-in-out;
}

@keyframes highlightNewsletterDark {
    0% {
        background-color: rgba(108, 117, 125, 0.1);
        transform: scale(1);
    }

    50% {
        background-color: rgba(108, 117, 125, 0.2);
        transform: scale(1.02);
    }

    100% {
        background-color: transparent;
        transform: scale(1);
    }
}

.slide-wrapper {
    position: relative;
    width: 100%;
    margin: 0 auto;
    max-width: 1600px;
    /* padding: 20px; */
}

.slide-container {
    position: relative;
    width: 100%;
    /* height: 600px; */
    display: flex;
    overflow: hidden;
}

/* 
    Created on : Feb 17, 2016, 12:57:00 PM
    Author     : Farshid
    */
    @font-face{
        font-family:appfont;
        font-style:normal;
        font-weight:bold;
        src:url('/assets/themes/news02/fonts/estedad/Estedad-Bold.woff2') format('truetype');
        }
    @font-face{
        font-family:appfont;
        font-style:normal;
        font-weight:500;
        src:url('/assets/themes/news02/fonts/estedad/Estedad-Bold.woff2') format('truetype');
    }
    @font-face{
        font-family:appfont;
        font-style:normal;
        font-weight:300;
        src:url('/assets/themes/news02/fonts/estedad/Estedad-Light.woff2') format('truetype');
    }
       @font-face{
        font-family:appfont;
        font-style:normal;
        font-weight:200;
        src:url('/assets/themes/news02/fonts/estedad/Estedad-ExtraLight.woff2') format('truetype');
    }
    @font-face{
        font-family:appfont;
        font-style:normal;
        font-weight:100;
        src:url('/assets/themes/news02/fonts/estedad/Estedad-Thin.woff2') format('truetype');
    }
    @font-face{
        font-family:appfont;
       font-style:normal;
       font-weight:normal;
       src:url('/assets/themes/news02/fonts/estedad/Estedad-Medium.woff2') format('truetype');
    }
    
    body{
        font-family: appfont, sans-serif !important;
    }

    .btn-link[data-bs-toggle].collapsed:after {
        left: 20px;
        right: auto !important;
    }
    
    .btn-link[data-bs-toggle]:not(.collapsed):after {
        left: 20px;
        right: auto !important;
    }
    
    .breadcrumb-item + .breadcrumb-item::before {
        float: right;
    
    }

    .travel-nav .submenu {
        right: 0;
    }

    .travel-nav .has-submenu > .submenu > .has-submenu > a::after {
        left: 10px;
        right: auto !important;
        transform: rotate(180deg) !important;
    }

    .travel-nav .submenu .submenu {
        top: 0;
        right: 100%;
        left: auto !important;
    }

    .category-tags {
        left: auto !important;
        right: 15px;

    }

    .breadcrumb-item::before {
        float: left;
        padding-left: var(--bs-breadcrumb-item-padding-x);
        padding-right: 0 !important;
    }
    .breadcrumb-item + .breadcrumb-item {
        padding-right: var(--bs-breadcrumb-item-padding-x);
        padding-left: 0 !important;
    }

.newPagination {
    margin-top: 2rem;
}

.newPagination .pagination {
    gap: 0.25rem;
}

.newPagination .page-item .page-link {
    border-radius: 0.5rem;
    min-width: 2.5rem;
    text-align: center;
}

.newPagination .page-item.active .page-link {
    font-weight: 600;
}

.newPagination .page-item.page-ellipsis span {
    display: inline-block;
    padding: 0.375rem 0.5rem;
    color: var(--text-color-light, #6c757d);
}

.newPagination .page-item.disabled .page-link {
    opacity: 0.5;
    pointer-events: none;
}

/* Shared homepage category strip — used by all themes including custom01/CMS */
.category-bar {
  border-top: 1px solid rgba(0, 0, 0, 0.08);
  background: rgba(255, 255, 255, 0.72);
}

[data-bs-theme="dark"] .category-bar {
  border-top-color: rgba(255, 255, 255, 0.12);
  background: rgba(0, 0, 0, 0.28);
}

.category-bar__inner {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
}

.category-bar__list {
  display: flex;
  flex-wrap: nowrap;
  gap: 0.35rem 1.2rem;
  list-style: none;
  margin: 0;
  padding: 0.55rem 0;
  min-height: 2.5rem;
  align-items: center;
}

.category-bar__item {
  margin: 0;
  padding: 0;
}

.category-bar__link {
  display: inline-block;
  white-space: nowrap;
  font-size: 0.9rem;
  font-weight: 600;
  color: #5c5c5c;
  text-decoration: none;
  border-bottom: 2px solid transparent;
  padding-bottom: 0.15rem;
}

.category-bar__link:hover,
.category-bar__link.is-active {
  color: #111;
  border-bottom-color: currentColor;
}

/* Shared horizontal post rail — keeps content inside page width + prev/next controls */

.nl-hscroll {
  --nl-hscroll-btn-size: 2.5rem;
  position: relative;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  box-sizing: border-box;
  overflow: hidden;
}

.nl-hscroll__viewport {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  overscroll-behavior-x: contain;
}

.nl-hscroll__viewport::-webkit-scrollbar {
  display: none;
}

.nl-hscroll__track {
  display: flex;
  flex-wrap: nowrap;
  align-items: stretch;
  gap: 1rem;
  width: max-content;
  max-width: none;
  min-width: 100%;
  box-sizing: border-box;
  padding-block: 0.15rem 0.5rem;
  padding-inline: 0;
}

.nl-hscroll__track > * {
  flex: 0 0 auto;
  min-width: 0;
}

.nl-hscroll__btn {
  position: absolute;
  top: 50%;
  z-index: 3;
  width: var(--nl-hscroll-btn-size);
  height: var(--nl-hscroll-btn-size);
  margin: 0;
  padding: 0;
  border: 1px solid rgba(15, 23, 42, 0.12);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  color: #0f172a;
  box-shadow: 0 4px 16px rgba(15, 23, 42, 0.12);
  transform: translateY(-50%);
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: opacity 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.nl-hscroll__btn:hover:not(:disabled) {
  background: #fff;
  transform: translateY(-50%) scale(1.04);
}

.nl-hscroll__btn:disabled {
  opacity: 0;
  pointer-events: none;
}

.nl-hscroll__btn--prev {
  inset-inline-start: 0.35rem;
}

.nl-hscroll__btn--next {
  inset-inline-end: 0.35rem;
}

.nl-hscroll__chevron {
  display: block;
  width: 0.55rem;
  height: 0.55rem;
  border-inline-end: 2px solid currentColor;
  border-block-end: 2px solid currentColor;
}

.nl-hscroll__chevron--prev {
  transform: rotate(135deg);
  margin-inline-start: 0.15rem;
}

.nl-hscroll__chevron--next {
  transform: rotate(-45deg);
  margin-inline-end: 0.15rem;
}

[data-bs-theme="dark"] .nl-hscroll__btn,
:root[data-bs-theme="dark"] .nl-hscroll__btn {
  background: rgba(33, 37, 41, 0.92);
  border-color: rgba(255, 255, 255, 0.12);
  color: #f8f9fa;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.35);
}

@media (max-width: 575.98px) {
  .nl-hscroll {
    --nl-hscroll-btn-size: 2.15rem;
  }

  .nl-hscroll__btn--prev {
    inset-inline-start: 0.15rem;
  }

  .nl-hscroll__btn--next {
    inset-inline-end: 0.15rem;
  }
}

/* Post body image lightbox — shared across all themes */

.article-text img:not(.post-image) {
    cursor: zoom-in;
}

.article-popup-image {
    position: fixed;
    inset: 0;
    z-index: 10000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    background: rgba(0, 0, 0, 0.92);
    cursor: zoom-out;
    -webkit-tap-highlight-color: transparent;
}

.article-popup-image.is-open {
    display: flex;
}

.article-popup-image-img {
    max-width: min(92vw, 1200px);
    max-height: 90vh;
    width: auto;
    height: auto;
    object-fit: contain;
    border-radius: 4px;
    box-shadow: 0 12px 48px rgba(0, 0, 0, 0.45);
    cursor: default;
    user-select: none;
}

.article-popup-image-close {
    position: absolute;
    top: 0.75rem;
    inset-inline-end: 0.75rem;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.75rem;
    height: 2.75rem;
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
    font-size: 1.35rem;
    line-height: 1;
    cursor: pointer;
}

.article-popup-image-close:hover,
.article-popup-image-close:focus-visible {
    background: rgba(255, 255, 255, 0.22);
    outline: none;
}

.article-popup-image-prev,
.article-popup-image-next {
    position: absolute;
    top: 50%;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.75rem;
    height: 2.75rem;
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
    font-size: 1.25rem;
    line-height: 1;
    cursor: pointer;
    transform: translateY(-50%);
}

.article-popup-image-prev {
    inset-inline-start: 0.75rem;
}

.article-popup-image-next {
    inset-inline-end: 0.75rem;
}

.article-popup-image-prev:hover,
.article-popup-image-next:hover,
.article-popup-image-prev:focus-visible,
.article-popup-image-next:focus-visible {
    background: rgba(255, 255, 255, 0.22);
    outline: none;
}

.article-popup-image-counter {
    position: absolute;
    bottom: 1rem;
    left: 50%;
    transform: translateX(-50%);
    padding: 0.35rem 0.75rem;
    border-radius: 999px;
    background: rgba(0, 0, 0, 0.45);
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.85rem;
    letter-spacing: 0.02em;
    pointer-events: none;
    user-select: none;
}

@media (max-width: 575px) {
    .article-popup-image {
        padding: 0.75rem;
    }

    .article-popup-image-prev,
    .article-popup-image-next {
        width: 2.4rem;
        height: 2.4rem;
        font-size: 1.1rem;
    }
}

/* Full layout: title, cover, white content box, and body images use full width */
.article-layout-full .article-header,
.article-layout-full .article-header .lead,
.article-layout-full .article-cover,
.article-layout-full .article-content,
.article-layout-full .article-text,
.article-layout-full .t2-article__hero-inner,
.article-layout-full .t2-article__head,
.article-layout-full .t2-article__title,
.article-layout-full .t2-article__lead,
.article-layout-full .t2-article__cover,
.article-layout-full .t2-article__content,
.article-layout-full .t2-article__text,
.article-layout-full .t2-article__main,
.article-layout-full .am-post__intro,
.article-layout-full .am-post__intro h1,
.article-layout-full .am-post__deck,
.article-layout-full .am-post__cover,
.article-layout-full .am-post__body,
.article-layout-full .am-post__text,
.article-layout-full .am-post__main,
.article-layout-full .content-wrapper {
    max-width: 100% !important;
    width: 100%;
}

.article-layout-full .article-header {
    margin-left: 0;
    margin-right: 0;
    text-align: start;
}

.article-layout-full .article-meta {
    justify-content: flex-start;
}

.article-layout-full .article-cover {
    margin-left: 0;
    margin-right: 0;
}

.article-layout-full .article-content {
    margin-left: 0;
    margin-right: 0;
}

.article-layout-full .article-text figure,
.article-layout-full .article-text img:not(.post-image) {
    width: 100% !important;
    max-width: 100% !important;
}

.article-layout-full .article-text img:not(.post-image) {
    height: auto !important;
}

/* Full layout: article column + related sidebar stack so related sits below */
.article-layout-full .row > .col-lg-8,
.article-layout-full .row > .col-lg-4 {
    flex: 0 0 100%;
    max-width: 100%;
    width: 100%;
}

@media (min-width: 992px) {
    .article-layout-full .t2-article__layout,
    .article-layout-full .am-post__layout {
        grid-template-columns: 1fr;
    }

    .article-layout-full .t2-article__aside,
    .article-layout-full .am-post__aside,
    .article-layout-full .article-sidebar {
        position: static;
    }
}

/* Inline + popup related posts (fc_related_post) — shared across themes */

.post-item-related {
  background: var(--bs-body-bg, var(--nl-surface, #fff));
  overflow: hidden;
  padding: 10px;
  width: 100%;
  border-radius: 16px;
}

.post-item-related .post-wrapper-row {
  display: flex;
  gap: 12px;
  align-items: stretch;
}

.post-item-related-title {
  margin-bottom: 5px;
  font-style: italic;
  padding-left: 5px;
  color: var(--text-color-light, var(--nl-muted, #6c757d));
  font-weight: 300;
}

.post-image-wrapper-related {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  flex-basis: 30%;
  flex-grow: 0;
  flex-shrink: 0;
  border-radius: 10px;
  min-width: 110px;
}

.post-image-wrapper-related .post-image-link {
  display: block;
  position: relative;
  width: 100%;
  height: 100%;
}

.post-image-wrapper-related .post-image {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover;
  opacity: 1;
}

/* Related cards are injected inside .article-text; do not inherit body-image rules. */
.article-text .post-item-related .post-image,
.article-text .post-image-wrapper-related .post-image,
.am-post__text .post-item-related .post-image,
.t2-article__text .post-item-related .post-image {
  margin: 0 !important;
  max-width: none !important;
  max-height: none !important;
  width: 100% !important;
  height: 100% !important;
  object-fit: cover;
  border-radius: 0;
  cursor: default;
  display: block;
}

.post-item-related .post-content {
  flex: 1;
  min-width: 0;
  padding: 0 6px;
}

.post-item-related .post-title {
  margin: 0 0 6px;
  font-size: 1.05rem;
  line-height: 1.35;
  font-weight: 700;
}

.post-item-related .post-title a {
  color: inherit;
  text-decoration: none;
}

.post-item-related .post-excerpt a {
  color: var(--text-color, inherit);
  text-decoration: none;
}

@media (max-width: 576px) {
  .post-item-related .post-wrapper-row {
    flex-direction: column;
  }

  .post-image-wrapper-related {
    flex-basis: auto;
    width: 100%;
  }
}

/* Popup variants */
.post-item-related.popup {
  position: fixed;
  z-index: 1050;
  max-width: min(420px, calc(100vw - 24px));
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s ease;
}

.post-item-related.popup.show {
  opacity: 1;
  pointer-events: auto;
}

.post-item-related.popup.center-bottom {
  left: 50%;
  bottom: 16px;
  transform: translateX(-50%);
}

.post-item-related.popup.center-middle {
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
}

.post-item-related.popup.center-top {
  left: 50%;
  top: 16px;
  transform: translateX(-50%);
}

.post-item-related.popup.left-bottom {
  left: 16px;
  bottom: 16px;
}

.post-item-related.popup.left-middle {
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
}

.post-item-related.popup.left-top {
  left: 16px;
  top: 16px;
}

.post-item-related.popup.right-bottom {
  right: 16px;
  bottom: 16px;
}

.post-item-related.popup.right-middle {
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
}

.post-item-related.popup.right-top {
  right: 16px;
  top: 16px;
}

.post-item-related.popup .fa-times {
  cursor: pointer;
  padding: 4px;
}

/* Bottom related section (full layout) */
.article-related-bottom {
  clear: both;
  width: 100%;
  max-width: 100%;
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--nl-line, rgba(0, 0, 0, 0.08));
}

.article-related-bottom__title {
  margin: 0 0 1.15rem;
  font-size: 1.15rem;
  font-weight: 700;
  line-height: 1.3;
}

.article-related-bottom__list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  width: 100%;
}

@media (min-width: 768px) {
  .article-layout-full .article-related-bottom__list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.25rem;
  }
}

@media (min-width: 1200px) {
  .article-layout-full .article-related-bottom__list {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.article-layout-full .article-related-bottom .post-item-related {
  height: 100%;
  margin: 0;
}

.article-layout-full .article-related-bottom .post-wrapper-row {
  flex-direction: column;
}

.article-layout-full .article-related-bottom .post-image-wrapper-related {
  flex-basis: auto;
  width: 100%;
  min-width: 0;
}

.article-layout-full .article-related-bottom .post-image-wrapper-related .post-image {
  width: 100% !important;
  height: 100% !important;
  max-width: none !important;
}

.author-profile {
  padding: 2rem 0 4rem;
}

.author-profile__hero {
  display: flex;
  gap: 1.5rem;
  align-items: flex-start;
  padding: 1.5rem 1.75rem;
  margin-bottom: 2.5rem;
  background: var(--nl-surface, #fff);
  border: 1px solid var(--nl-line, #e6e2d8);
  border-radius: var(--nl-radius-lg, 12px);
}

.author-profile__photo {
  width: 96px;
  height: 96px;
  object-fit: cover;
  border-radius: 50%;
  flex-shrink: 0;
  background: var(--nl-accent-soft, #f3f0e8);
}

.author-profile__photo--fallback {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  font-weight: 600;
  color: var(--nl-ink, #121212);
}

.author-profile__info {
  min-width: 0;
  flex: 1;
}

.author-profile__name {
  margin: 0 0 0.5rem;
  font-size: clamp(1.5rem, 3vw, 2rem);
  line-height: 1.2;
}

.author-profile__bio {
  margin: 0 0 1.25rem;
  color: var(--nl-muted, #5f5a52);
  line-height: 1.6;
}

.author-profile__stats {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem 2rem;
  margin: 0;
}

.author-profile__stats dt {
  margin: 0 0 0.2rem;
  font-size: 0.75rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--nl-muted, #5f5a52);
}

.author-profile__stats dd {
  margin: 0;
  font-weight: 600;
}

.author-profile__posts-title {
  margin: 0 0 1.25rem;
  font-size: 1.25rem;
}

@media (max-width: 575.98px) {
  .author-profile__hero {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .author-profile__stats {
    justify-content: center;
  }
}

.post-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
}

.post-date-meta {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  flex-wrap: wrap;
}

.post-author {
  font-weight: 600;
}

.post-comments {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  white-space: nowrap;
}

.post-comments i {
  font-size: 0.85em;
}

.post-review-rating {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem 0.55rem;
  margin: 0.65rem 0 0;
  padding: 0.45rem 0.75rem;
  border-radius: 0.5rem;
  background: color-mix(in srgb, var(--theme-color, #0d6efd) 10%, transparent);
  border: 1px solid color-mix(in srgb, var(--theme-color, #0d6efd) 22%, transparent);
  color: inherit;
  font-size: 0.95rem;
  line-height: 1.3;
}

.post-review-rating__label {
  font-weight: 600;
  font-size: 0.82rem;
  opacity: 0.85;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.post-review-rating__stars {
  display: inline-flex;
  align-items: center;
  gap: 0.12rem;
  color: #e6a817;
}

.post-review-rating__stars i {
  font-size: 0.95em;
}

.post-review-rating__score {
  font-variant-numeric: tabular-nums;
  font-size: 1.05em;
}

.post-review-rating__of {
  opacity: 0.7;
  font-size: 0.9em;
}

.post-review-rating__item {
  width: 100%;
  font-size: 0.88em;
  opacity: 0.85;
}

.post-review-rating--light {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.28);
  color: #fff;
}

.post-review-rating--light .post-review-rating__stars {
  color: #ffd666;
}

.post-review-rating--light .post-review-rating__of,
.post-review-rating--light .post-review-rating__item,
.post-review-rating--light .post-review-rating__label {
  opacity: 0.9;
}

/* Admin tools bar — only rendered when Yii backend identity cookie is valid */

.admin-frontend-bar {
  position: sticky;
  top: 0;
  z-index: 1080;
  background: #1c1f24;
  color: #f3f4f6;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 0.8125rem;
  line-height: 1.2;
}

.admin-frontend-bar__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 1rem;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0.45rem 1rem;
}

.admin-frontend-bar__brand {
  font-weight: 600;
  letter-spacing: 0.02em;
  opacity: 0.85;
  margin-inline-end: 0.25rem;
}

.admin-frontend-bar__tools {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 1rem;
}

.admin-frontend-bar__link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: #e8eaed;
  text-decoration: none;
  padding: 0.2rem 0.35rem;
  border-radius: 0.25rem;
}

.admin-frontend-bar__link:hover,
.admin-frontend-bar__link:focus-visible {
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
  text-decoration: none;
}

.admin-frontend-bar__link i {
  font-size: 0.85em;
  opacity: 0.9;
}

.admin-frontend-bar__stat {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: #c5c9d0;
  padding: 0.2rem 0.35rem;
  white-space: nowrap;
}

.admin-frontend-bar__stat i {
  font-size: 0.85em;
  opacity: 0.85;
}

[dir="rtl"] .admin-frontend-bar__brand {
  margin-inline-end: 0.25rem;
}