/* HYAMD.MN — header.ejs-ээс гаргасан CSS (H5). Browser кэшлэгдэнэ. Эх: views/partials/header.ejs */
* {
margin: 0;
padding: 0;
box-sizing: border-box;
}

body {
  font-family: 'arial', sans-serif;
background-color: #f5f5f5;
color: #333;
}

/* Header */
header {
background-color: #2c5282;
color: white;
padding: 0;
}

.header-top {
background-color: #2c5282;
max-width: 1600px;
margin: 0 auto;
padding: 0 20px;
display: flex;
justify-content: space-between;
align-items: center;
gap: 30px;
}

.header-container {
background-color: #2c5282;
max-width: 1600px;
margin: 0 auto;
padding: 0 20px;
padding-bottom:5px;
display: flex;
justify-content: space-between;
align-items: center;
gap: 30px;
}

.yellow_pages-container {
max-width: 1600px;
margin: 5px auto;
padding: 0 10px;
display: flex;
gap: 10px;
}

.yellow_pages {
flex: 1 1 100%;
max-width: 100%;
background-color: #ffffff;
padding: 0;
border: 1px solid darkseagreen;
border-radius: 8px;
}

.yellow_pages-links {
display: flex;
flex-wrap: wrap;
height: 120px;
overflow-x: hidden;
overflow-y: auto;
justify-content: center;
gap: 5px;
background-color: ghostwhite;
padding: 8px;
border-radius: 6px;
}

.yellow_pages-links h3 {
width: 100%;
margin-bottom: 8px;
}

.yellow_pages-link {
background-color: white;
color: #2f3c52;
flex: 1 1 calc(25% - 5px);
max-width: calc(13% - 20px);
text-decoration: none;
overflow-x: clip;
height: auto;
font-size: 12px;
padding: 3px 5px;
margin-right: 0;
border-radius: 4px;
transition: all 0.3s;
border: 1px solid #ccc;
}


.yellow_pages_job {
flex: 1 1 100%;
max-width: 100%;
background-color: #ffffff;
padding: 0;
border: 1px solid lightslategray;
border-radius: 8px;
}

.yellow_pages_job-links {
display: flex;
flex-wrap: wrap;
height: auto;
overflow-x: hidden;
overflow-y: auto;
justify-content: center;
gap: 5px;
background-color: white;
padding: 8px;
border-radius: 6px;
}

.yellow_pages_job-links h3 {
width: 100%;
margin-bottom: 8px;
}

.yellow_pages_job-link {
    background-color: white;
    color: #2f3c52;
    flex: 1 1 calc(25% - 5px);
    max-width: calc(28% - 20px);
    text-decoration: none;
    overflow-x: clip;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    border: 1px solid #2c5282;
    height: auto;
    font-size: 13px;
    padding: 5px 5px;
    font-weight: 700;
    margin-right: 0;
    border-radius: 4px;
    transition: all 0.3s;
}

.z_pages_job-link {
    background-color: white;
    color: #2f3c52;
    flex: 1 1 calc(25% - 5px);
    max-width: calc(16% - 20px);
    text-decoration: none;
    overflow-x: clip;
    text-align: center;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    border: 1px solid #2c5282;
    height: auto;
    font-size: 13px;
    padding: 5px 0;
    font-weight: 700;
    margin-right: 0;
    border-radius: 4px;
    transition: all 0.3s;
}


@media (min-width: 1600px) {
.yellow_pages-link {
flex: 1 1 calc(10% - 5px);
max-width: calc(20% - 5px);
}
.yellow_pages_job-link {
flex: 1 1 calc(20% - 5px);
max-width: calc(20% - 5px);
}
}

@media (max-width: 1600px) {
.z_pages_job-link {
flex: 1 1 calc(45% - 5px);
max-width: calc(14% - 5px);
}
}

.yellow_pages-link:hover {
background-color: #edf2f7;
color: #2c5282;
}

.yellow_pages_job-link:hover {
background-color: #edf2f7;
color: #2c5282;
}


#jobProfessionsContainer {
display: flex;
flex-wrap: wrap;
height: auto;
overflow-x: hidden;
overflow-y: auto;
justify-content: center;
gap: 5px;
background-color: white;
padding: 0;
border-radius: 6px;
}

/* ─── Зарын нэгдсэн цэг (байршлаар) ─── 
   Цэвэр grid layout — viewport дээр автоматаар нэгэн зэрэг 
   олон багана үүсгэж, нэрсийг тасрахгүй байдлаар бүтэн харуулна. */
.bairshil_aimgud_job {
  width: 100%;
  background-color: #ffffff;
  padding: 0;
  border: 1px solid lightslategray;
  border-radius: 8px;
  margin: 10px 0;
  box-sizing: border-box;
}

.bairshil_aimgud_job-links {
  display: block;
  width: 100%;
  background-color: white;
  padding: 8px;
  border-radius: 6px;
  box-sizing: border-box;
}

.bairshil_aimgud_job-links h3 {
  width: 100%;
  margin-bottom: 8px;
}

#bairshil_aimgud {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
  gap: 6px;
  width: 100%;
  background-color: transparent;
  padding: 0;
  border-radius: 6px;
  box-sizing: border-box;
}

.bairshil_aimgud_job-link {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 6px;
  background-color: white;
  color: #2f3c52;
  text-decoration: none;
  font-size: 13px;
  line-height: 1.2;
  padding: 6px 8px;
  border-radius: 4px;
  border: 1px solid #2c5282;
  transition: all 0.2s;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  min-width: 0;
}

.bairshil_aimgud_job-link:hover {
  background-color: #f0f4f8;
  color: #2c5282;
  border-color: #2c5282;
}

.bairshil_aimgud_job-link .store-icon {
  font-size: 14px;
  flex-shrink: 0;
}

@media (max-width: 768px) {
  #bairshil_aimgud {
    grid-template-columns: repeat(auto-fill, minmax(95px, 1fr));
    gap: 4px;
  }
  .bairshil_aimgud_job-link {
    font-size: 12px;
    padding: 5px 6px;
  }
}

.logo {
font-size: 12px;
font-weight: bold;
white-space: nowrap;
}

.header-search {
flex: 1;
display: flex;
gap: 5px;
background-color: white;
padding: 5px;
border-radius: 8px;
}

.header-search input {
flex: 1;
padding: 10px 12px;
border: 1px solid #ddd;
border-radius: 5px;
font-size: 12px;
}

.header-search select {
padding: 5px 12px;
border: 1px solid #ddd;
border-radius: 5px;
font-size: 12px;
min-width: 140px;
}

.header-search button {
padding: 10px 25px;
background-color: #48bb78;
color: white;
border: none;
border-radius: 5px;
font-size: 12px;
font-weight: bold;
cursor: pointer;
transition: all 0.3s;
}

.header-search button:hover {
background-color: #38a169;
}

.header-actions {
display: flex;
gap: 15px;
align-items: center;
white-space: nowrap;
}

.btn-post {
padding: 8px 12px;
border: none;
border-radius: 5px;
cursor: pointer;
font-size: 12px;
transition: all 0.3s;
}

.btn-post {
background-color: #48bb78;
color: white;
font-weight: bold;
}

.btn-post:hover {
background-color: #38a169;
}

/* ======= NOTIFICATION DROPDOWN ======= */
.notification-wrapper {
position: relative;
display: inline-block;
}
.notification-badge {
position: absolute;
top: -4px;
right: -4px;
background: #e53e3e;
color: #fff;
font-size: 10px;
font-weight: 700;
min-width: 18px;
height: 18px;
border-radius: 9px;
display: flex;
align-items: center;
justify-content: center;
line-height: 1;
pointer-events: none;
}
.notification-dropdown {
display: none;
position: absolute;
top: calc(100% + 8px);
right: 0;
width: 500px;
max-height: 420px;
background: #fff;
border-radius: 12px;
box-shadow: 0 8px 30px rgba(0,0,0,.15);
z-index: 9999;
overflow: hidden;
animation: notifSlide .2s ease;
}
.notification-dropdown.open {
display: block;
}
@keyframes notifSlide {
from { opacity: 0; transform: translateY(-8px); }
to   { opacity: 1; transform: translateY(0); }
}
.notif-header {
display: flex;
justify-content: space-between;
align-items: center;
padding: 14px 16px 10px;
border-bottom: 1px solid #eee;
}
.notif-header h4 {
margin: 0;
font-size: 15px;
color: #1a202c;
}
.notif-header button {
background: none;
border: none;
color: #48bb78;
font-size: 12px;
cursor: pointer;
font-weight: 600;
}
.notif-header button:hover {
text-decoration: underline;
}
.notif-list {
overflow-y: auto;
max-height: 350px;
padding: 6px 0;
}
.notif-item {
display: flex;
gap: 12px;
padding: 12px 16px;
cursor: pointer;
transition: background .15s;
border-bottom: 1px solid #f7f7f7;
}
.notif-item:hover {
background: #f0fff4;
}
.notif-item.unread {
background: #f0fff4;
}
.notif-icon {
flex-shrink: 0;
width: 36px;
height: 36px;
border-radius: 50%;
display: flex;
align-items: center;
justify-content: center;
font-size: 16px;
}
.notif-icon.views   { background: #ebf8ff; }
.notif-icon.price   { background: #fef3c7; }
.notif-icon.system  { background: #e9d8fd; }
.notif-icon.success { background: #c6f6d5; }
.notif-icon.admin   {
  background: linear-gradient(135deg, #fef3c7 0%, #fed7aa 100%);
  border: 2px solid #f59e0b;
  box-shadow: 0 0 0 2px rgba(245,158,11,.15);
}
.notif-item.admin-notif {
  background: linear-gradient(90deg, rgba(245,158,11,.08) 0%, rgba(255,255,255,0) 50%);
  border-left: 3px solid #f59e0b;
}
.notif-item.admin-notif:hover {
  background: linear-gradient(90deg, rgba(245,158,11,.14) 0%, rgba(240,255,244,1) 50%);
}
.notif-item.admin-notif.unread {
  background: linear-gradient(90deg, rgba(245,158,11,.18) 0%, rgba(240,255,244,1) 60%);
}
.notif-admin-badge {
  display: inline-block;
  font-size: 9px;
  font-weight: 700;
  color: #fff;
  background: linear-gradient(90deg, #ef4444, #f59e0b);
  padding: 2px 7px;
  border-radius: 10px;
  letter-spacing: .4px;
  margin-bottom: 4px;
  text-transform: uppercase;
  vertical-align: middle;
}
.notif-title {
  font-weight: 700;
  font-size: 13px;
  color: #1a202c;
  margin-bottom: 2px;
}
.notif-body {
flex: 1;
min-width: 0;
}
.notif-body p {
margin: 0;
font-size: 13px;
color: #2d3748;
line-height: 1.4;
}
.notif-time {
font-size: 11px;
color: #a0aec0;
margin-top: 3px;
}
.notif-empty {
text-align: center;
padding: 40px 20px;
color: #a0aec0;
font-size: 13px;
}
@media (max-width: 480px) {
.notification-dropdown {
width: calc(100vw - 20px);
right: -60px;
}
}

.carousel-wrapper {
--width: 100px;
--gap: 0;
--num-items: 14;
--ani-offset: calc(var(--width) * var(--num-items) * -1);
--ani-speed: 30s;

width: inherit;
overflow: hidden;
position: relative;
}

.carousel-wrapper::before,
.carousel-wrapper::after {
content: '';
position: absolute;
width: 20%;
height: 100%;
z-index: 1;
top: 0;
}

.carousel-wrapper::before {
left: 0;
background-image: linear-gradient(to right, var(--bg-clr) 0%, transparent 50%);
}

.carousel-wrapper::after {
right: 0;
background-image: linear-gradient(to left, var(--bg-clr) 0%, transparent 50%);
}

.carousel {
display: flex;
align-items: center;
animation: slide var(--ani-speed) linear infinite;
}

.carousel-wrapper:hover .carousel {
animation-play-state: paused;
}

.item {
flex: 1 0 var(--width);
text-align: center;
padding: 1rem;
}


.item>img {
width: 80px;
height: 80px;
background-color: white;
object-fit: contain;
border-radius: 8px;
padding: 8px;
border: 1px solid #e2e8f0;
}

@keyframes slide {
100% {
transform: translateX(var(--ani-offset));
}
}


/* Modal */
.modal {
display: none;
position: fixed;
z-index: 10000;
left: 0;
top: 0;
width: 100%;
height: 100%;
background-color: rgba(0, 0, 0, 0.5);
}

.modal.show {
display: flex;
align-items: center;
justify-content: center;
}

.modal-content {
background-color: white;
padding: 30px;
border-radius: 10px;
width: 400px;
max-width: 90%;
box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.modal-header {
display: flex;
justify-content: space-between;
align-items: center;
margin-bottom: 20px;
}

.modal-title {
font-size: 24px;
color: #2c5282;
font-weight: bold;
}

.close-modal {
font-size: 28px;
color: #666;
cursor: pointer;
border: none;
background: none;
}

.form-group {
margin-bottom: 15px;
}

.form-group label {
display: block;
margin-bottom: 5px;
color: #333;
font-weight: 500;
}

.form-group input {
width: 100%;
padding: 12px;
border: 1px solid #ddd;
border-radius: 5px;
font-size: 15px;
}

.btn-submit {
width: 100%;
padding: 12px;
background-color: #2c5282;
color: white;
border: none;
border-radius: 5px;
font-size: 16px;
font-weight: bold;
cursor: pointer;
transition: all 0.3s;
margin-top: 10px;
}

.btn-submit:hover {
background-color: #1e3a5f;
}

/* Category Searchable Select */
.category-select-wrapper {
position: relative;
width: 100%;
}
.category-search-input {
width: 100%;
padding: 10px 35px 10px 12px !important;
border: 1px solid #ddd !important;
border-radius: 5px !important;
font-size: 13px !important;
cursor: pointer;
background: #fff;
}
.category-search-input:focus {
border-color: #2c5282 !important;
outline: none;
}
.category-select-arrow {
position: absolute;
right: 12px;
top: 50%;
transform: translateY(-50%);
color: #888;
font-size: 12px;
pointer-events: all;
cursor: pointer;
transition: transform 0.2s;
}
.category-select-arrow.open {
transform: translateY(-50%) rotate(180deg);
}
.category-dropdown {
display: none;
position: absolute;
top: calc(100% + 4px);
left: 0;
right: 0;
background: #fff;
border: 1px solid #ddd;
border-radius: 8px;
box-shadow: 0 8px 24px rgba(0,0,0,0.12);
z-index: 9999;
overflow: hidden;
}
.category-dropdown.open {
display: block;
}
.category-dropdown-scroll {
max-height: 350px;
overflow-y: auto;
padding: 4px 0;
}
.category-dropdown-scroll::-webkit-scrollbar {
width: 6px;
}
.category-dropdown-scroll::-webkit-scrollbar-thumb {
background: #ccc;
border-radius: 3px;
}
.cat-group-header {
padding: 8px 14px 4px;
font-weight: 700;
font-size: 13px;
color: #2c5282;
background: #f0f4f8;
border-top: 1px solid #e2e8f0;
position: sticky;
top: 0;
z-index: 1;
}
.cat-group-header:first-child {
border-top: none;
}
.cat-subgroup-title {
padding: 5px 14px 3px 20px;
font-weight: 600;
font-size: 12px;
color: #718096;
text-transform: uppercase;
letter-spacing: 0.3px;
}
.cat-option {
padding: 7px 14px 7px 32px;
font-size: 13px;
color: #333;
cursor: pointer;
transition: background 0.15s;
}
.cat-option:hover {
background: #edf2f7;
color: #2c5282;
}
.cat-option.selected {
background: #ebf8ff;
color: #2c5282;
font-weight: 600;
}
.cat-no-results {
padding: 20px 14px;
text-align: center;
color: #a0aec0;
font-size: 13px;
}
.auth-modal-content {
background-color: white;
border-radius: 12px;
width: 800px;
max-width: 95%;
box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
position: relative;
overflow: hidden;
}

.auth-close-btn {
position: absolute;
top: 15px;
right: 20px;
font-size: 28px;
color: #666;
cursor: pointer;
border: none;
background: none;
z-index: 10;
transition: color 0.3s;
}

.auth-close-btn:hover {
color: #333;
}

.auth-container {
display: flex;
min-height: 520px;
transition: all 0.5s ease-in-out;
}

.auth-container.auth-hidden {
display: none;
}

.auth-side {
flex: 1;
padding: 40px 35px;
display: flex;
flex-direction: column;
justify-content: center;
}

.auth-side-blue {
background: linear-gradient(135deg, #1a365d 0%, #2c5282 100%);
color: white;
text-align: center;
}

.auth-side-white {
background: white;
}

.auth-icon {
margin-bottom: 20px;
}

.auth-stat {
font-size: 32px;
font-weight: bold;
margin: 0 0 10px 0;
}

.auth-stat-text {
font-size: 16px;
margin: 0 0 30px 0;
opacity: 0.9;
}

.auth-question {
font-size: 14px;
margin: 0 0 15px 0;
opacity: 0.8;
}

.auth-switch-btn {
background: transparent;
border: 2px solid white;
color: white;
padding: 12px 40px;
border-radius: 25px;
font-size: 14px;
font-weight: 600;
cursor: pointer;
transition: all 0.3s;
}

.auth-switch-btn:hover {
background: white;
color: #2c5282;
}

.auth-tab {
display: inline-flex;
align-items: center;
gap: 8px;
background: #2c5282;
color: white;
padding: 8px 20px;
border-radius: 20px;
font-size: 13px;
font-weight: 500;
margin-bottom: 25px;
width: fit-content;
}

.auth-tab-icon {
font-size: 16px;
}

.auth-title {
font-size: 26px;
font-weight: bold;
color: #2c5282;
margin: 0 0 25px 0;
}

.auth-form {
display: flex;
flex-direction: column;
gap: 18px;
}

.auth-input-group {
display: flex;
flex-direction: column;
gap: 6px;
}

.auth-input-group label {
font-size: 13px;
color: #555;
font-weight: 500;
}

.auth-input-group input {
padding: 14px 16px;
border: 1px solid #ddd;
border-radius: 8px;
font-size: 14px;
transition: border-color 0.3s;
}

.auth-input-group input:focus {
outline: none;
border-color: #2c5282;
}

.auth-label-row {
display: flex;
justify-content: space-between;
align-items: center;
}

.auth-forgot-link {
font-size: 12px;
color: #2c5282;
text-decoration: none;
}

.auth-forgot-link:hover {
text-decoration: underline;
}

.auth-password-wrapper {
position: relative;
}

.auth-password-wrapper input {
width: 100%;
padding-right: 45px;
}

.auth-toggle-password {
position: absolute;
right: 12px;
top: 50%;
transform: translateY(-50%);
background: none;
border: none;
cursor: pointer;
font-size: 16px;
color: #888;
}

.auth-checkbox-group {
display: flex;
align-items: flex-start;
gap: 10px;
}

.auth-checkbox-group input[type="checkbox"] {
width: 18px;
height: 18px;
margin-top: 2px;
cursor: pointer;
}

.auth-checkbox-group label {
font-size: 13px;
color: #555;
cursor: pointer;
}

.auth-terms label a {
color: #2c5282;
text-decoration: underline;
}

.auth-required {
color: #e53e3e;
}

.auth-submit-btn {
background: #2c5282;
color: white;
border: none;
padding: 14px;
border-radius: 8px;
font-size: 15px;
font-weight: 600;
cursor: pointer;
transition: background 0.3s;
margin-top: 5px;
}

.auth-submit-btn:hover {
background: #1a365d;
}

.auth-divider {
display: flex;
align-items: center;
margin: 20px 0;
}

.auth-divider::before,
.auth-divider::after {
content: '';
flex: 1;
height: 1px;
background: #ddd;
}

.auth-divider span {
padding: 0 15px;
color: #888;
font-size: 13px;
}

.auth-social-buttons {
display: flex;
flex-direction: column;
gap: 12px;
}

.auth-social-btn {
display: flex;
align-items: center;
justify-content: center;
gap: 10px;
padding: 12px;
border: 1px solid #ddd;
border-radius: 8px;
background: white;
cursor: pointer;
font-size: 14px;
color: #333;
transition: all 0.3s;
}

.auth-social-btn:hover {
background: #f8f9fa;
border-color: #bbb;
}

.auth-social-btn img,
.auth-social-btn svg {
flex-shrink: 0;
}

/* Auth Modal Animation */
@keyframes authSlideIn {
from {
opacity: 0;
transform: translateX(20px);
}
to {
opacity: 1;
transform: translateX(0);
}
}

.auth-container:not(.auth-hidden) {
animation: authSlideIn 0.4s ease-out;
}

/* Responsive Auth Modal */
@media (max-width: 768px) {
.auth-modal-content {
width: 95%;
}

.auth-container {
flex-direction: column;
min-height: auto;
}

.auth-side {
padding: 30px 25px;
}

.auth-side-blue {
order: -1;
padding: 25px;
}

.auth-stat {
font-size: 24px;
}

.auth-stat-text {
font-size: 14px;
margin-bottom: 15px;
}
}

/* Categories */
.categories-section {
max-width: 1300px;
margin: 0px auto;
margin-bottom: 10px;
padding: 0 0px;
}

.categories-grid {
display: grid;
grid-template-columns: repeat(9, 1fr);
gap: 10px;
}

.category-card {
background-color: white;
padding: 0;
border-radius: 8px;
text-align: center;
cursor: pointer;
transition: all 0.3s;
box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.category-card:hover {
transform: translateY(-5px);
box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.category-card.active {
background-color: #2c5282;
color: white;
}

.category-icon {
font-size: 22px;
margin-bottom: 5px;
}

.category-name {
font-size: 12px;
font-weight: bold;
margin-bottom: 0;
}

.category-card.active .category-name {
color: white;
}

/* Subcategories */
.subcategories-section {
max-width: 1300px;
margin: 10px auto;
padding: 5px;
background-color: white;
border-radius: 8px;
box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
display: none;
}

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

.subcategories-title {
font-size: 16px;
color: #2c5282;
margin-bottom: 12px;
font-weight: bold;
}

.subcategories-grid {
display: grid;
grid-template-columns: repeat(8, 1fr);
gap: 8px;
}

.subcategories-block {
display: block;
}

.subcategory-link {
padding: 0;
background-color: ghostwhite;
border-radius: 5px;
text-decoration: none;
color: #333;
transition: all 0.2s;
font-size: 12px;
font-weight: bold;
text-align: center;
padding-top: 0;
border: 1px solid cadetblue;
align-content: center;
height: 34px;
}

.subcategory-link:hover {
background-color: #2c5282;
color: white;
}

/* Grouped Subcategories */
.subcategory-group {
margin-bottom: 5px;
padding-bottom: 5px;
border-bottom: 1px solid #e0e0e0;
}

.subcategory-group:last-child {
margin-bottom: 0;
padding-bottom: 0;
border-bottom: none;
}

.subcategory-group-title {
background-color: lavender;
font-size: 13px;
font-weight: bold;
color: #2c5282;
border-radius: 5px;
margin-bottom: 4px;
padding: 4px 12px;
}

.subcategory-group-items {
display: grid;
grid-template-columns: repeat(8, 1fr);
gap: 4px;
}

/* Category Listings Section with Slider */
.category-listings-section {
max-width: 1300px;
margin: 0;
padding: 0;
margin-top: 8px;
}

.category-listings-title {
font-size: 16px;
margin-bottom: 8px;
color: #2c5282;
padding-bottom: 4px;
border-bottom: 2px solid #2c5282;
display: flex;
justify-content: space-between;
align-items: center;
}

/* Slider Container */
.slider-container {
position: relative;
overflow: hidden;
}

.slider-wrapper {
display: flex;
transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.slider-page {
min-width: 100%;
display: grid;
grid-template-columns: repeat(4, 1fr);
gap: 10px;
}

/* Slider Controls */
.slider-controls {
display: flex;
gap: 10px;
}

.slider-btn {
width: 25px;
height: 25px;
border: 3px solid #2c5282;
background-color: white;
color: #2c5282;
border-radius: 50%;
cursor: pointer;
display: flex;
align-items: center;
justify-content: center;
font-size: 18px;
font-weight: bold;
transition: all 0.3s;
}

.slider-btn:hover {
background-color: #2c5282;
color: white;
}

/* Slider Dots */


.listing-card {
background-color: white;
border-radius: 8px;
overflow: hidden;
cursor: pointer;
transition: all 0.3s;
box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
position: relative; /* tier ribbon-ыг харуулахад шаардлагатай */
}

.listing-card:hover {
transform: translateY(-5px);
box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.listing-image {
width: 100%;
height: 180px;
background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
display: flex;
align-items: center;
justify-content: center;
color: white;
font-size: 16px;
overflow: hidden;
}

.listing-image img {
width: 100%;
height: 100%;
object-fit: cover;
}

.listing-content {
padding: 12px;
}

.listing-title {
font-size: 12px;
font-weight: bold;
margin-bottom: 6px;
color: #2c5282;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}

.listing-price {
font-size: 12px;
color: #48bb78;
font-weight: bold;
margin-bottom: 6px;
}

.listing-details {
font-size: 11px;
color: #666;
display: flex;
justify-content: space-between;
}


.market-btn {
width: 265px;
display: inline-block;
padding: 5px;
padding-left: 2.8125rem;
-webkit-transition: border-color 0.25s ease-in-out, background-color 0.25s ease-in-out;
transition: border-color 0.25s ease-in-out, background-color 0.25s ease-in-out;
border: 1px solid #e7e7e7;
background-position: center left 0.75rem;
background-color: #fff;
background-size: 1.5rem 1.5rem;
background-repeat: no-repeat;
text-decoration: none;
margin-bottom: 3px;
margin-top: 3px;
}

.market-btn .market-button-title {
display: block;
color: #222;
font-size: 13px;
}

.market-btn .market-button-subtitle {
display: block;
margin-bottom: -0.25rem;
color: #888;
font-size: 0.75rem;
}

.market-btn:hover {
background-color: #f7f7f7;
text-decoration: none;
}

.apple-btn {
background-image: url(data:image/svg+xml;utf8;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iaXNv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ludHM9IjM2OS4wNjcsMTgwLjU0NyAyNjIuMTc1LDExOS40NjcgMjkuNTMsMCAyOTkuMDA0LDI1MS41MDkgIi8+Cjxwb2x5Z29uIHN0eWxlPSJmaWxsOiNEQzY4QTE7IiBwb2ludHM9IjI5LjUzLDUxMiAyOS41Myw1MTIgMjYyLjE3NSwzODMuNTUxIDM2OS4wNjcsMzIyLjQ3IDI5OS4wMDQsMjUxLjUwOSAiLz4KPHBhdGggc3R5bGU9ImZpbGw6I0ZGQ0E5NjsiIGQ9Ik0zNjkuMDY3LDE4MC41NDdsLTcwLjA2Myw3MC45NjFsNzAuMDYzLDcwLjk2MWwxMDguNjg4LTYyLjg3N2M2LjI4OC0zLjU5Myw2LjI4OC0xMS42NzcsMC0xNS4yNyAgTDM2OS4wNjcsMTgwLjU0N3oiLz4KPGc+CjwvZz4KPGc+CjwvZz4KPGc+CjwvZz4KPGc+CjwvZz4KPGc+CjwvZz4KPGc+CjwvZz4KPGc+CjwvZz4KPGc+CjwvZz4KPGc+CjwvZz4KPGc+CjwvZz4KPGc+CjwvZz4KPGc+CjwvZz4KPGc+CjwvZz4KPGc+CjwvZz4KPGc+CjwvZz4KPC9zdmc+Cg==);
}

/* Community Widgets Styles */
.community-widget {
background: #fff;
border-radius: 8px;
box-shadow: 0 1px 3px rgba(0,0,0,0.08);
}

.widget-header {
padding: 14px 16px;
font-size: 14px;
font-weight: 600;
color: white;
background-color: #1a365d;
border-bottom: 1px solid #f0f0f0;
display: flex;
align-items: center;
justify-content: space-between;
}

.widget-header a {
font-size: 12px;
color: #2c5282;
text-decoration: none;
}

.widget-header a:hover {
text-decoration: underline;
}

/* Trending Topics - erelttei.PNG design */
.trending-topics-list {
list-style: none;
padding: 0;
margin: 0;
}

.trending-topic-item {
display: flex;
align-items: flex-start;
padding: 8px 10px;
border-bottom: 1px solid #f5f5f5;
transition: background 0.2s;
}

.trending-topic-item:last-child {
border-bottom: none;
}

.trending-topic-item:hover {
background: #fafafa;
}

.trending-rank {
width: 20px;
font-size: 14px;
font-weight: 600;
color: #999;
flex-shrink: 0;
}

.trending-content {
flex: 1;
min-width: 0;
}

.trending-hashtag {
font-size: 12px;
font-weight: 600;
color: #1a1a1a;
margin-bottom: 2px;
}

.trending-posts-count {
font-size: 12px;
color: #999;
}

/* Recent Topics Widget */
.recent-topic-item {
padding: 12px 16px;
border-bottom: 1px solid #f5f5f5;
transition: background 0.2s;
}

.recent-topic-item:last-child {
border-bottom: none;
}

.recent-topic-item:hover {
background: #fafafa;
}

.recent-topic-title {
font-size: 13px;
font-weight: 500;
color: #1a365d;
margin-bottom: 6px;
display: block;
text-decoration: none;
line-height: 1.4;
}

.recent-topic-title:hover {
color: #2c5282;
text-decoration: underline;
}

.recent-topic-meta {
display: flex;
align-items: center;
gap: 8px;
font-size: 11px;
color: #999;
}

.recent-topic-author {
color: #2c5282;
text-decoration: none;
}

.recent-topic-author:hover {
text-decoration: underline;
}

.topic-category-tag {
background: #e8f4fd;
color: #2c5282;
padding: 2px 6px;
border-radius: 3px;
font-size: 10px;
font-weight: 500;
}

/* Active Members Widget */
.active-members-list {
list-style: none;
padding: 0;
margin: 0;
}

.active-member-item {
display: flex;
align-items: center;
gap: 10px;
padding: 10px 16px;
border-bottom: 1px solid #f5f5f5;
}

.active-member-item:last-child {
border-bottom: none;
}

.member-rank {
width: 22px;
height: 22px;
border-radius: 50%;
display: flex;
align-items: center;
justify-content: center;
font-size: 11px;
font-weight: 700;
flex-shrink: 0;
}

.member-rank.gold {
background: linear-gradient(135deg, #ffeaa7, #fdcb6e);
color: #b7791f;
}

.member-rank.silver {
background: linear-gradient(135deg, #dfe6e9, #b2bec3);
color: #636e72;
}

.member-rank.bronze {
background: linear-gradient(135deg, #fab1a0, #e17055);
color: #fff;
}

.member-rank.normal {
background: #f0f0f0;
color: #666;
}

.member-avatar {
width: 32px;
height: 32px;
border-radius: 50%;
background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
display: flex;
align-items: center;
justify-content: center;
color: #fff;
font-size: 12px;
font-weight: 600;
flex-shrink: 0;
}

.member-info {
flex: 1;
min-width: 0;
}

.member-name {
font-size: 13px;
font-weight: 500;
color: #333;
}

.member-posts {
font-size: 11px;
color: #999;
}

/* Forum Stats Widget */
.forum-stats-grid {
display: grid;
grid-template-columns: 1fr 1fr;
gap: 1px;
background: #f0f0f0;
}

.forum-stat-item {
background: #fff;
padding: 14px 12px;
text-align: center;
}

.forum-stat-number {
font-size: 18px;
font-weight: 700;
color: #2c5282;
margin-bottom: 2px;
}

.forum-stat-label {
font-size: 11px;
color: #666;
}

/* Linked Ads Widget */
.linked-ads-list {
list-style: none;
padding: 0;
margin: 0;
}

.linked-ad-item {
display: flex;
gap: 10px;
padding: 12px 16px;
border-bottom: 1px solid #f5f5f5;
transition: background 0.2s;
}

.linked-ad-item:last-child {
border-bottom: none;
}

.linked-ad-item:hover {
background: #fafafa;
}

.linked-ad-thumb {
width: 55px;
height: 45px;
border-radius: 4px;
object-fit: cover;
flex-shrink: 0;
background: #f0f0f0;
}

.linked-ad-info {
flex: 1;
min-width: 0;
}

.linked-ad-title {
font-size: 12px;
font-weight: 500;
color: #333;
margin-bottom: 3px;
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
}

.linked-ad-title a {
color: #1a365d;
text-decoration: none;
}

.linked-ad-title a:hover {
color: #2c5282;
text-decoration: underline;
}

.linked-ad-price {
font-size: 13px;
font-weight: 700;
color: #48bb78;
margin-bottom: 2px;
}

.linked-ad-discussions {
font-size: 10px;
color: #999;
}

/* ════════════════════════════════════════════════════════════ */
/* ★ Форумд холбогдсон зарууд — Шинэчилсэн style                */
/* ════════════════════════════════════════════════════════════ */
.linked-ad-thumb-wrap {
  flex-shrink: 0;
  display: block;
  text-decoration: none;
  line-height: 0;
}
.linked-ad-thumb-wrap .linked-ad-thumb {
  display: block;
  transition: transform .2s;
}
.linked-ad-thumb-wrap:hover .linked-ad-thumb {
  transform: scale(1.05);
}
.linked-ad-thumb-placeholder {
  display: flex !important;
  align-items: center;
  justify-content: center;
  background: #edf2f7 !important;
  color: #a0aec0;
  font-size: 20px;
}
.linked-ad-meta {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 4px;
}
.linked-ad-disc-badge {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  font-size: 10px;
  font-weight: 600;
  color: #2c5282;
  background: #ebf8ff;
  border: 1px solid #bee3f8;
  padding: 2px 7px;
  border-radius: 10px;
  text-decoration: none;
  transition: background .15s, color .15s;
}
a.linked-ad-disc-badge:hover {
  background: #2c5282;
  color: #fff;
  border-color: #2c5282;
}
.linked-ad-disc-badge.muted {
  color: #999;
  background: #f7fafc;
  border-color: #e2e8f0;
  font-weight: 500;
}
.linked-ad-empty {
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 22px 16px !important;
  border-bottom: none !important;
}
.linked-ad-empty:hover {
  background: transparent !important;
}
.linked-ad-empty-icon {
  font-size: 28px;
  margin-bottom: 6px;
  opacity: 0.4;
}
.linked-ad-empty-title {
  font-size: 12px;
  color: #718096;
  font-weight: 500;
  margin-bottom: 3px;
}
.linked-ad-empty-hint {
  font-size: 11px;
  color: #a0aec0;
  line-height: 1.4;
}


/* Three Column Layout — leftsidebar 25% / main 50% / rightsidebar 25% */
.content-wrapper {
max-width: 1600px;
margin: 0 auto;
padding: 10px;
padding-top: 3px;
display: grid;
grid-template-columns: minmax(0, 1fr) minmax(0, 2fr) minmax(0, 1fr);
gap: 10px;
}

/* Left Sidebar */
.left-sidebar {
border-radius: 8px;
padding: 0;
display: flex;
flex-direction: column;
gap: 12px;
}

.sidebar-title {
font-size: 14px;
font-weight: bold;
color: #2c5282;
margin-bottom: 15px;
padding-top: 5px;
padding-bottom: 5px;
border-bottom: 2px solid #2c5282;
}

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

.store-item {
margin-bottom: 2px;
background-color: white;
}

.store-link {
display: flex;
align-items: center;
gap: 4px;
padding: 6px 5px;
text-decoration: none;
color: #333;
border-radius: 5px;
transition: all 0.2s;
}

.store-link:hover {
background-color: #f0f4f8;
color: #2c5282;
}

.store-icon {
font-size: 18px;
}

.store-name {
font-size: 13px;
padding-top: 5px;
}

/* Main Content */
.main-content {
min-width: 0;
}


.right-sidebar {
display: flex;
flex-direction: column;
gap: 15px;
}

.banner {
background: linear-gradient(135deg, rgb(198, 214, 238) 0%, white 100%);
padding: 10px;
border-radius: 8px;
text-align: center;
}

.banner_leftside {
color: #1a365d;
padding: 0;
border-radius: 8px;
text-align: center;
}

.ad-placeholder {
width: 100%;
height: 250px;
background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
border-radius: 8px;
display: flex;
align-items: center;
justify-content: center;
color: white;
font-size: 18px;
font-weight: bold;
}

/* hyamd-style Right Sidebar Footer Links */
.sidebar-footer-links {
padding: 14px 10px;
background: transparent;
}
.sidebar-footer-links-group {
margin-bottom: 8px;
}
.sidebar-footer-links-group-title {
font-size: 12px;
font-weight: 600;
color: #4a5568;
margin-bottom: 4px;
}
.sidebar-footer-links a {
display: inline;
font-size: 11px;
color: #718096;
text-decoration: none;
margin-right: 4px;
line-height: 1.8;
}
.sidebar-footer-links a:hover {
color: #2c5282;
text-decoration: underline;
}
.sidebar-footer-links .sidebar-footer-bottom {
display: flex;
flex-wrap: wrap;
gap: 6px;
margin-top: 10px;
padding-top: 8px;
border-top: 1px solid #e2e8f0;
}
.sidebar-footer-links .sidebar-footer-bottom a {
font-size: 11px;
color: #a0aec0;
}
.sidebar-footer-brand {
display: flex;
align-items: center;
gap: 6px;
margin-top: 10px;
font-size: 12px;
color: #a0aec0;
}
.sidebar-footer-brand strong {
color: #2c5282;
font-weight: 700;
}

/* Infinite Scroll Loading */
.infinite-scroll-container {
margin-top: 0;
}
.infinite-scroll-loader {
text-align: center;
padding: 24px;
color: #a0aec0;
font-size: 13px;
}
.infinite-scroll-loader .spinner {
display: inline-block;
width: 24px; height: 24px;
border: 3px solid #e2e8f0;
border-top-color: #2c5282;
border-radius: 50%;
animation: spin 0.8s linear infinite;
margin-bottom: 8px;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* Footer */
footer {
background-color: #1a365d;
color: white;
padding: 40px 0 20px;
margin-top: 40px;
}

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

.footer-logo {
font-size: 24px;
font-weight: bold;
margin-bottom: 15px;
}

.footer-description {
font-size: 14px;
color: #a0aec0;
line-height: 1.6;
margin-bottom: 15px;
}

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

.social-icon {
width: 36px;
height: 36px;
background-color: #2c5282;
border-radius: 50%;
display: flex;
align-items: center;
justify-content: center;
color: white;
text-decoration: none;
transition: all 0.3s;
}

.social-icon:hover {
background-color: #48bb78;
}

.footer-section h3 {
font-size: 16px;
margin-bottom: 15px;
color: white;
}

.footer-section ul {
list-style: none;
}

.footer-section li {
margin-bottom: 8px;
}

.footer-section a {
color: #a0aec0;
text-decoration: none;
font-size: 14px;
transition: color 0.3s;
}

.footer-section a:hover {
color: #48bb78;
}

.footer-bottom {
max-width: 1300px;
margin: 30px auto 0;
padding: 20px 20px 0;
border-top: 1px solid #2c5282;
display: flex;
justify-content: space-between;
align-items: center;
font-size: 13px;
color: #a0aec0;
}

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

.footer-bottom-links a {
color: #a0aec0;
text-decoration: none;
}

.footer-bottom-links a:hover {
color: white;
}

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

/* ════════════════════════════════════════════════════════════
   896px BREAKPOINT — 3 багана (25/50/25) ↔ 1 багана + toggle цэс
   ════════════════════════════════════════════════════════════ */
/* Toggle bar болон drawer хаах товч default-оор нуугдсан */
.mobile-menu-bar { display: none; }
.drawer-close { display: none; }

@media (min-width: 896px) {
.content-wrapper {
grid-template-columns: minmax(0, 1fr) minmax(0, 2fr) minmax(0, 1fr) !important;
}
.service-places-section {
  width: 100%;
    padding: 0;
    background-color: ghostwhite;
    border-radius: 6px;
    margin: 0 auto;
}
.content-wrapper > .left-sidebar,
.content-wrapper > .right-sidebar { display: flex !important; }
.drawer-backdrop { display: none !important; }
}

@media (min-width: 1024px) {
.content-wrapper {
grid-template-columns: 240px 1fr 240px !important;
}
.service-places-section {
  width: 100%;
    padding: 0;
    background-color: ghostwhite;
    border-radius: 6px;
    margin: 0 auto;
}
.content-wrapper > .left-sidebar,
.content-wrapper > .right-sidebar { display: flex !important; }
.drawer-backdrop { display: none !important; }
}

@media (max-width: 895.98px) {
/* 1 баганат дараалсан бүтэц */
.content-wrapper { grid-template-columns: 1fr !important; }
.service-places-section {
  width: 100%;
    padding: 0;
    background-color: ghostwhite;
    border-radius: 6px;
    margin: 0 auto;
}
/* ── Toggle цэсний мөр (sticky — доош гүйлгэхэд дагаж гүйнэ) ── */
.mobile-menu-bar {
display: grid !important;
grid-template-columns: 1fr 1fr;
gap: 8px;
position: sticky;
top: 0;
z-index: 3000;          /* backdrop(3500)/drawer(4000)-аас доош — drawer нээгдэхэд бүрхэгдэнэ */
padding: 8px 0;
margin-bottom: 10px;
background: #f5f5f5;     /* доороос гүйж буй контент цоорхойгоор харагдахгүй */
box-shadow: 0 2px 6px rgba(0,0,0,.08);
}
.mobile-menu-btn {
display: flex;
align-items: center;
justify-content: center;
gap: 6px;
padding: 12px 10px;
background: #2c5282;
color: #fff;
border: none;
border-radius: 8px;
font-size: 14px;
font-weight: 700;
cursor: pointer;
font-family: inherit;
box-shadow: 0 2px 6px rgba(0,0,0,.15);
}
.mobile-menu-btn:active { background: #1a365d; }

/* ── leftsidebar / rightsidebar → off-canvas drawer ── */
.content-wrapper > .left-sidebar,
.content-wrapper > .right-sidebar {
display: flex !important;
flex-direction: column;
position: fixed !important;
top: 0;
bottom: 0;
width: 86%;
max-width: 360px;
background-color: white;
z-index: 4000;
overflow-y: auto;
transition: transform .3s ease;
box-shadow: 0 0 30px rgba(0,0,0,.35);
border-radius: 0;
}
.content-wrapper > .left-sidebar  { left: 0;  transform: translateX(-100%); }
.content-wrapper > .right-sidebar { right: 0; transform: translateX(100%); }
.content-wrapper > .left-sidebar.drawer-open,
.content-wrapper > .right-sidebar.drawer-open { transform: translateX(0); }

/* Бараан дэвсгэр (backdrop) */
.drawer-backdrop {
position: fixed;
inset: 0;
background: rgba(0,0,0,.5);
z-index: 3500;
display: none;
}
.drawer-backdrop.active { display: block; }

/* Drawer доторх хаах товч */
.drawer-close {
display: block !important;
align-self: flex-end;
background: #e53e3e;
color: #fff;
border: none;
border-radius: 50%;
width: 32px;
height: 32px;
font-size: 16px;
line-height: 1;
cursor: pointer;
margin-bottom: 8px;
flex-shrink: 0;
}

/* ── service-places-header линкүүд 1 мөрөнд 2 ── */
.service-places-header { gap: 8px; }
.service-places-header .service-places-main {
flex: 1 1 100% !important;
max-width: 100% !important;
}
.service-places-header .z_pages_job-link {
flex: 1 1 calc(50% - 4px) !important;
max-width: calc(50% - 4px) !important;
}
}

@media (max-width: 1200px) {
.header-container {
flex-direction: column;
gap: 15px;
}

.header-search {
width: 100%;
flex-direction: column;
}

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

.slider-page {
grid-template-columns: repeat(2, 1fr);
}

.footer-container {
grid-template-columns: 1fr;
}

.footer-bottom {
flex-direction: column;
gap: 15px;
text-align: center;
}
}

/* ===== Барилгын үйлчилгээ дэд жагсаалт ===== */
.store-item--expandable {
  flex-direction: column;
  align-items: flex-start;
}
.store-item--expandable > .store-link {
  width: 100%;
}
.store-sublist {
  list-style: none;
  margin: 4px 0 2px 28px;
  padding: 0;
  border-left: 2px solid #e2e8f0;
  padding-left: 8px;
text-align: left;
font-size: 12px;
}
.store-item--expandable.open .store-sublist {
  display: block;
}
.store-sublist li {
  margin: 0;
  padding: 0;
}
.store-sublist li a {
  display: block;
  font-size: 13px;
  color: #4a5568;
  padding: 3px 6px;
  border-radius: 3px;
  text-decoration: none;
  transition: background 0.15s, color 0.15s;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.store-sublist li a:hover {
  background: #ebf8ff;
  color: #2c5282;
}
.store-item--expandable > .store-link::after {
  content: ' ▸';
  font-size: 10px;
  color: #a0aec0;
  margin-left: auto;
  float: right;
  transition: transform 0.2s;
}
.store-item--expandable.open > .store-link::after {
  content: ' ▾';
  color: #2c5282;
}

/* ===== Сүүлд үзсэн зарууд widget ===== */
.recently-viewed-widget {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  overflow: hidden;
  margin-bottom: 12px;
}
.recently-viewed-widget .widget-header {
  background: #2c5282;
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  padding: 8px 12px;
}
.rv-list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.rv-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 10px;
  border-bottom: 1px solid #f0f0f0;
  text-decoration: none;
  color: inherit;
  transition: background 0.15s;
}
.rv-item:last-child { border-bottom: none; }
.rv-item:hover { background: #f7fafc; }
.rv-item img {
  width: 44px;
  height: 36px;
  object-fit: cover;
  border-radius: 4px;
  flex-shrink: 0;
  background: #eee;
}
.rv-item-info {
  flex: 1;
  min-width: 0;
}
.rv-item-title {
  font-size: 12px;
  color: #2d3748;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.rv-item-price {
  font-size: 11px;
  color: #48bb78;
  font-weight: 600;
  margin-top: 2px;
}
.rv-empty {
  padding: 14px 12px;
  font-size: 12px;
  color: #a0aec0;
  text-align: center;
}
.rv-clear-btn {
  display: block;
  width: 100%;
  padding: 6px;
  font-size: 11px;
  color: #718096;
  background: #f7fafc;
  border: none;
  border-top: 1px solid #e2e8f0;
  cursor: pointer;
  text-align: center;
  transition: background 0.15s;
}
.rv-clear-btn:hover { background: #edf2f7; color: #e53e3e; }
