
* {
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: #1a365d;
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 lightslategray;
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: lightsteelblue;
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;
height: auto;
font-size: 13px;
padding: 5px 5px;
margin-right: 0;
border-radius: 4px;
transition: all 0.3s;
border: 1px solid #ccc;
}


@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);
}
}

.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: lightsteelblue;
padding: 0;
border-radius: 6px;
}

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


a {
  color: #2a5db0;
  text-decoration: none;
}

.site-header {
  background: linear-gradient(135deg, #1a3a5c 0%, #2d5a87 100%);
  padding: 0;
}

.logo-icon {
  width: 45px;
  height: 45px;
  background: #fff;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  color: #1a3a5c;
  font-weight: bold;
}

.logo-text {
  color: #fff;
}

.logo-text h1 {
  font-size: 22px;
  font-weight: 700;
}

.logo-text span {
  font-size: 12px;
  opacity: 0.8;
}

.header-btn {
  padding: 8px 16px;
  border-radius: 4px;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  border: none;
  transition: all 0.2s;
}

.btn-outline {
  background: transparent;
  border: 1px solid rgba(255,255,255,0.5);
  color: #fff;
}

.btn-outline:hover {
  background: rgba(255,255,255,0.1);
}

.btn-primary {
  background: #f5a623;
  color: #1a3a5c;
}

.btn-primary:hover {
  background: #e6971a;
}

.main-nav {
  background: #234b73;
  border-top: 1px solid rgba(255,255,255,0.1);
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nav-links {
  display: flex;
  list-style: none;
}

.nav-links li a {
  display: block;
  padding: 12px 18px;
  color: #c5d8eb;
  font-size: 13px;
  font-weight: 500;
  transition: all 0.2s;
}

.nav-links li a:hover, .nav-links li a.active {
  color: #fff;
  background: rgba(255,255,255,0.1);
  text-decoration: none;
}

.search-box {
  display: flex;
  align-items: center;
  border: 1px solid #ddd;
}

.search-box input {
  padding: 7px 12px;
  border: none;
  border-radius: 4px 0 0 4px;
  font-size: 13px;
  width: 200px;
  outline: none;
}

.search-box button {
  padding: 7px 12px;
  background: #f5a623;
  border: none;
  border-radius: 0 4px 4px 0;
  color: #1a3a5c;
  cursor: pointer;
}

.main-container {
  max-width: 1600px;
  margin: 0 auto;
  padding: 0;
}

.main-container_dc {
            max-width: 1600px;
            margin: 10px auto;
            padding: 0;
            display: grid;
            grid-template-columns: 240px 1fr 240px;
            gap: 20px;
        }

.main-container-asuult-style {
  display: grid;
  grid-template-columns: 220px 1fr 260px;
  gap: 15px;
  max-width: 1600px;
  margin: 0 auto;
  padding: 10px;
}

/* Breadcrumb */
.breadcrumb {
            max-width: 1600px;
            background-color: white;
            border-radius: 8px;
            margin: 2px auto;
            padding: 0;
        }

.breadcrumb-container {
            max-width: 1600px;
            margin: 0 auto;
            padding: 8px 20px;
            display: flex;
            align-items: center;
            gap: 10px;
            font-size: 14px;
            color: #666;
        }

.breadcrumb-separator {
            color: #999;
        }

.breadcrumb a {
            color: #2c5282;
            text-decoration: none;
            margin-right: 5px;
        }

.breadcrumb a:hover {
            text-decoration: underline;
        }

.breadcrumb span {
            margin: 0 5px;
            color: #999;
        }

.breadcrumb span {
  color: #666;
  margin: 0 8px;
}

.content-grid {
  display: grid;
  grid-template-columns: 230px 1fr 260px;
  gap: 10px;
}

.left-sidebar-widget {
  background: #fff;
  border-radius: 4px;
  overflow-y: auto;
  box-shadow: 0 1px 3px rgba(0,0,0,0.08);
}

.left-widget-header {
  background: linear-gradient(135deg, #1a3a5c 0%, #2d5a87 100%);
  color: #fff;
  padding: 10px 12px;
  font-size: 12px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 6px;
}

.left-widget-header i {
  color: #f5a623;
  font-size: 12px;
}

.left-widget-content {
  padding: 0;
}

.left-sidebar-section {
  border-bottom: 1px solid #eef1f6;
}

.left-sidebar-section:last-child {
  border-bottom: none;
}

.left-section-title {
  font-size: 12px;
  font-weight: 600;
  color: #1a3a5c;
  padding: 8px 12px 4px;
  display: flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  transition: background 0.2s;
}

.left-section-title:hover {
  background: #f5f7fa;
}

.left-section-title i {
  font-size: 11px;
  color: #2a5db0;
  width: 16px;
  text-align: center;
}

.left-section-links {
  padding: 0 12px 8px;
}

.left-section-links a {
  display: block;
  font-size: 12px;
  color: #555;
  padding: 3px 0 3px 22px;
  transition: all 0.2s;
  border-left: 2px solid transparent;
}

.left-section-links a:hover {
  color: #2a5db0;
  text-decoration: none;
  border-left-color: #2a5db0;
  padding-left: 24px;
  background: #f8fafc;
}

.forum-header-box {
  background: linear-gradient(135deg, #1a3a5c 0%, #2d5a87 100%);
  border-radius: 6px;
  padding: 10px;
  margin-bottom: 1px;
  display: flex;
  align-items: center;
  gap: 15px;
}

.forum-header-icon {
  width: 60px;
  height: 60px;
  background: rgba(255,255,255,0.15);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  color: #f5a623;
}

.forum-header-info h2 {
  color: #fff;
  font-size: 18px;
  margin-bottom: 5px;
}

.forum-header-info p {
  color: rgba(255,255,255,0.7);
  font-size: 12px;
}

.forum-header-stats {
  margin-left: auto;
  display: flex;
  gap: 25px;
}

.forum-stat-item .num {
  font-size: 22px;
  font-weight: 700;
  color: #f5a623;
}

.forum-stat-item .label {
  font-size: 11px;
  color: rgba(255,255,255,0.7);
  text-transform: uppercase;
}

.action-bar {
  background: #fff;
  padding: 12px 15px;
  border-radius: 4px;
  margin-bottom: 1px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-shadow: 0 1px 3px rgba(0,0,0,0.08);
}

.new-topic-btn {
  background: #27ae60;
  color: #fff;
  padding: 8px 18px;
  border-radius: 4px;
  font-size: 13px;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s;
}

.new-topic-btn:hover {
  background: #219a52;
  text-decoration: none;
}

.sort-options {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  color: #666;
}

.sort-options select {
  padding: 6px 10px;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 12px;
  outline: none;
}

.topic-list {
  background: #fff;
  border-radius: 4px;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(0,0,0,0.08);
}

.topic-list-header {
  background: linear-gradient(to bottom, #f8f9fb 0%, #eef1f6 100%);
  display: grid;
  grid-template-columns: 50px 1fr 100px 80px 80px;
  padding: 12px 15px;
  font-size: 12px;
  font-weight: 600;
  color: #666;
  text-transform: uppercase;
  border-bottom: 1px solid #dde3ea;
}

.topic-item {
  display: grid;
  grid-template-columns: 50px 1fr 100px 60px 60px;
  padding: 12px 15px;
  border-bottom: 1px solid #eee;
  align-items: center;
  transition: background 0.2s;
}

.topic-item:hover {
  background: #f9fafc;
}

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

.topic-icon-cell {
  text-align: center;
}

.topic-icon {
  width: 36px;
  height: 36px;
  background: #e8f4fd;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #2a5db0;
  font-size: 14px;
}

.topic-icon.hot {
  background: #fff3e0;
  color: #f5a623;
}

.topic-icon.pinned {
  background: #e8f5e9;
  color: #27ae60;
}

.topic-title-cell h3 {
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 4px;
}

.topic-title-cell h3 a {
  color: #333;
}

.topic-title-cell h3 a:hover {
  color: #2a5db0;
}

.topic-badges {
  display: inline-flex;
  gap: 5px;
  margin-left: 8px;
}

.badge {
  font-size: 10px;
  padding: 2px 6px;
  border-radius: 3px;
  font-weight: 600;
}

.badge-hot {
  background: #fff3e0;
  color: #f5a623;
}

.badge-pinned {
  background: #e8f5e9;
  color: #27ae60;
}

.badge-solved {
  background: #e3f2fd;
  color: #1976d2;
}

.topic-meta {
  font-size: 12px;
  color: #888;
}

.topic-meta a {
  color: #2a5db0;
}

.author-cell, .replies-cell, .views-cell {
  text-align: center;
  font-size: 13px;
  color: #666;
}

.author-cell a {
  color: #2a5db0;
}

.lastpost-cell {
  font-size: 12px;
}

.lastpost-cell a {
  color: #2a5db0;
  display: block;
}

.lastpost-time {
  color: #888;
  font-size: 11px;
}

.pagination-wrapper {
  background: #fff;
  padding: 15px;
  border-radius: 4px;
  margin-top: 15px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-shadow: 0 1px 3px rgba(0,0,0,0.08);
}

.pagination {
  display: flex;
  gap: 5px;
}

.pagination a, .pagination span {
  padding: 6px 12px;
  border-radius: 4px;
  font-size: 13px;
  transition: all 0.2s;
}

.pagination a:hover {
  background: #e0e0e0;
  text-decoration: none;
}

.pagination span.current {
  background: #2a5db0;
  color: #fff;
}

.page-info {
  font-size: 13px;
  color: #666;
}

.online-users {
  background: #fff;
  padding: 15px;
  border-radius: 4px;
  margin-top: 15px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.08);
}

.online-users h3 {
  font-size: 14px;
  color: #333;
  margin-bottom: 10px;
  padding-bottom: 10px;
  border-bottom: 1px solid #eee;
}

.online-users h3 i {
  color: #27ae60;
  margin-right: 8px;
}

.online-stats {
  font-size: 13px;
  color: #666;
  margin-bottom: 10px;
}

.online-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.online-user {
  font-size: 12px;
  color: #2a5db0;
  display: flex;
  align-items: center;
  gap: 4px;
}

.online-indicator {
  width: 6px;
  height: 6px;
  background: #27ae60;
  border-radius: 50%;
}

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

.sidebar-widget {
  background: #fff;
  border-radius: 4px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.08);
}


.widget-content {
  padding: 15px;
}

.recent-topic {
  padding: 10px 0;
  border-bottom: 1px solid #f0f0f0;
}

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

.recent-topic:first-child {
  padding-top: 0;
}

.recent-topic-meta a {
  color: #2a5db0;
}

.top-user {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 0;
  border-bottom: 1px solid #f0f0f0;
}

.top-user:last-child {
  border-bottom: none;
}

.top-user-rank {
  width: 22px;
  height: 22px;
  background: #e0e0e0;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 700;
  color: #666;
}

.top-user-rank.gold {
  background: linear-gradient(135deg, #f5a623, #d4880f);
  color: #fff;
}

.top-user-rank.silver {
  background: linear-gradient(135deg, #bdc3c7, #95a5a6);
  color: #fff;
}

.top-user-rank.bronze {
  background: linear-gradient(135deg, #cd7f32, #a0522d);
  color: #fff;
}

.user-avatar-small {
  width: 32px;
  height: 32px;
  background: linear-gradient(135deg, #3498db, #2980b9);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 12px;
  font-weight: 600;
}

.top-user-info {
  flex: 1;
}

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

.top-user-posts {
  font-size: 11px;
  color: #888;
}

.linked-ad-info h4 {
  font-size: 12px;
  font-weight: 500;
  margin-bottom: 3px;
}

.linked-ad-info h4 a {
  color: #333;
}

.site-footer {
  background: #1a3a5c;
  color: rgba(255,255,255,0.7);
  margin-top: 30px;
  padding: 25px 0;
}

.footer-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  text-align: center;
}

.footer-links {
  margin-bottom: 15px;
}

.footer-links a {
  color: rgba(255,255,255,0.7);
  margin: 0 12px;
  font-size: 13px;
}

.footer-links a:hover {
  color: #fff;
}

.footer-copy {
  font-size: 12px;
}

.category-count {
  font-size: 11px;
  color: #666;
}

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

.slider-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 10px;
}

.slider-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background-color: #ddd;
  cursor: pointer;
  transition: all 0.3s;
}

.slider-dot.active {
  background-color: #2c5282;
  transform: scale(1.2);
}

.slider-dot:hover {
  background-color: #4a90c2;
}

a:hover {
  text-decoration: underline;
}

.quick-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 15px;
  margin-bottom: 20px;
}

.stat-card {
  background: #fff;
  padding: 15px;
  border-radius: 4px;
  text-align: center;
  box-shadow: 0 1px 3px rgba(0,0,0,0.08);
}

.stat-card .number {
  font-size: 24px;
  font-weight: 700;
  color: #1a3a5c;
}

.stat-card .label {
  font-size: 12px;
  color: #666;
  margin-top: 4px;
}

.forum-section {
  background: #fff;
  border-radius: 4px;
  margin-bottom: 10px;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(0,0,0,0.08);
}

.section-header {
  background: linear-gradient(135deg, #1a3a5c 0%, #2d5a87 100%);
  color: #fff;
  padding: 12px 15px;
  font-size: 14px;
  font-weight: 600;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.section-header .toggle-btn {
  background: none;
  border: none;
  color: #fff;
  cursor: pointer;
  font-size: 14px;
}

.forum-table {
  width: 100%;
  border-collapse: collapse;
}

.forum-table th {
  background: #f0f4f8;
  padding: 10px 15px;
  text-align: left;
  font-size: 11px;
  font-weight: 600;
  color: #666;
  text-transform: uppercase;
  border-bottom: 1px solid #e0e6ed;
}

.forum-table th.topics, .forum-table th.posts, .forum-table th.last-post {
  text-align: center;
  width: 80px;
}

.forum-table td {
  padding: 5px;
  border-bottom: 1px solid #f0f4f8;
  vertical-align: middle;
}

.forum-table tr:hover {
  background: #fafbfc;
}

.forum-table tr:last-child td {
  border-bottom: none;
}

.forum-icon {
  width: 45px;
  height: 45px;
  background: linear-gradient(135deg, #4a90d9 0%, #357abd 100%);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 18px;
  flex-shrink: 0;
}

.forum-icon.hot {
  background: linear-gradient(135deg, #e74c3c 0%, #c0392b 100%);
}

.forum-icon.new {
  background: linear-gradient(135deg, #27ae60 0%, #219a52 100%);
}

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

.forum-details h3 {
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 4px;
}

.forum-details h3 a {
  color: #1a3a5c;
}

.forum-details h3 a:hover {
  color: #2a5db0;
}

.forum-description {
  font-size: 12px;
  color: #666;
  margin-bottom: 6px;
}

.forum-subforums {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.subforum-link {
  font-size: 11px;
  color: #2a5db0;
  background: #f0f4f8;
  padding: 3px 8px;
  border-radius: 3px;
}

.subforum-link:hover {
  background: #e0e6ed;
  text-decoration: none;
}

.forum-stats {
  text-align: center;
  font-size: 14px;
  font-weight: 600;
  color: #333;
}

.forum-stats small {
  display: block;
  font-size: 11px;
  font-weight: normal;
  color: #999;
}

.last-post-info {
  font-size: 12px;
}

.last-post-info .topic-title {
  display: block;
  max-width: 150px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-weight: 500;
  margin-bottom: 3px;
}

.last-post-info .post-meta {
  color: #666;
}

.last-post-info .username {
  color: #2a5db0;
}

.topic-row td {
  padding: 12px 15px;
}

.topic-icon.normal {
  background: #e8f4fd;
  color: #4a90d9;
}

.topic-icon.sticky {
  background: #fef9e7;
  color: #f5a623;
}

.topic-icon.locked {
  background: #f0f0f0;
  color: #999;
}

.topic-info {
  display: flex;
  align-items: center;
  gap: 12px;
}

.topic-details h4 {
  font-size: 14px;
  font-weight: 500;
  margin-bottom: 4px;
}

.topic-details h4 a {
  color: #1a3a5c;
}

.badge.sticky {
  background: #fef9e7;
  color: #d68910;
}

.badge.hot {
  background: #fdeaea;
  color: #c0392b;
}

.badge.solved {
  background: #e8f8f0;
  color: #27ae60;
}

.badge.ad-linked {
  background: #e8f4fd;
  color: #2a5db0;
}

.topic-meta .username {
  color: #2a5db0;
}

.topic-stats {
  text-align: center;
}

.views-count, .replies-count {
  font-size: 13px;
  font-weight: 600;
  color: #333;
}

.action-bar-left {
  display: flex;
  gap: 10px;
  align-items: center;
}

.sort-dropdown {
  padding: 8px 12px;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 13px;
  background: #fff;
  cursor: pointer;
}

.online-stats strong {
  color: #333;
}

@media (max-width: 768px) {
  .forum-table td:nth-child(2), .forum-table td:nth-child(3) {
    display: none;
  }
}

.btn-login {
  padding: 8px 20px;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  font-size: 14px;
  transition: all 0.3s;
  text-decoration: none;
}

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

.yellow_pages-link.active {
  background-color: #2c5282;
  color: white;
  border-color: #2c5282;
}


.user-profile-card {
  background: white;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  overflow: visible;           /* ★ ЗАСВАР: hidden → visible (avatar цухуйх) */
  position: relative;          /* ★ ЗАСВАР: absolute child-ийн anchor */
}

.user-cover {
  height: 60px;                /* ★ ЗАСВАР: 5px → 60px (avatar-д зай) */
  background: linear-gradient(135deg, #2c5282 0%, #1a365d 100%);
  border-radius: 8px 8px 0 0;
  position: relative;
}

.user-avatar-container {
  position: absolute;
  top: 20px;                   /* ★ ЗАСВАР: bottom:200px → top:20px */
  left: 50%;                   /* ★ ЗАСВАР: 12% → 50% (тэн дунд) */
  transform: translateX(-50%);
  z-index: 2;
}

.user-avatar {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  border: 4px solid white;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 28px;
  font-weight: bold;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
}

/* `.user-info` дотор profile-avatar-wrapper-аар орохын тулд илүү зай үлдээнэ */
.user-info {
  padding: 50px 15px 20px;     /* (өөрчлөгдөөгүй — avatar дээгүүр overlap хийгээгүй) */
  text-align: center;
}


.user-name {
  font-size: 16px;
  font-weight: bold;
  color: #1a365d;
  margin-bottom: 5px;
}

.user-badge {
  display: inline-block;
  background: #e8f4fd;
  color: #2c5282;
  font-size: 11px;
  padding: 3px 10px;
  border-radius: 10px;
  font-weight: 600;
  margin-bottom: 10px;
}

.user-badge.verified {
  background: #c6f6d5;
  color: #276749;
}

.user-bio {
  font-size: 13px;
  color: #666;
  line-height: 1.5;
  margin-bottom: 15px;
}

.user-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid #f0f0f0;
  padding-top: 15px;
}

.user-stat {
  text-align: center;
  padding: 5px;
}

.user-stat-number {
  font-size: 16px;
  font-weight: bold;
  color: #2c5282;
}

.user-stat-label {
  font-size: 10px;
  color: #999;
  margin-top: 2px;
}

.user-details {
  padding: 15px;
  border-top: 1px solid #f0f0f0;
}

.user-detail-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  color: #666;
  margin-bottom: 10px;
}

.user-detail-item:last-child {
  margin-bottom: 0;
}

.user-detail-icon {
  width: 28px;
  height: 28px;
  background: #f7fafc;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
}

.user-actions {
  padding: 15px;
  border-top: 1px solid #f0f0f0;
  display: flex;
  gap: 10px;
}

.user-action-btn {
  flex: 1;
  padding: 10px;
  border: none;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}

.user-action-btn.primary {
  background: #2c5282;
  color: white;
}

.user-action-btn.primary:hover {
  background: #1a365d;
}

.user-action-btn.secondary {
  background: #f7fafc;
  color: #2c5282;
  border: 1px solid #e2e8f0;
}

.user-action-btn.secondary:hover {
  background: #edf2f7;
}

.user-activity-card {
  background: white;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  overflow: hidden;
}

.activity-header {
  padding: 12px 15px;
  font-size: 13px;
  font-weight: 600;
  color: #1a365d;
  border-bottom: 1px solid #f0f0f0;
  display: flex;
  align-items: center;
  gap: 8px;
}

.activity-list {
  padding: 10px 15px;
}

.activity-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 10px 0;
  border-bottom: 1px solid #f5f5f5;
  font-size: 12px;
}

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

.activity-icon {
  width: 24px;
  height: 24px;
  background: #e8f4fd;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  flex-shrink: 0;
}

.activity-content {
  flex: 1;
}

.activity-text {
  color: #333;
  line-height: 1.4;
}

.activity-text a {
  color: #2c5282;
  text-decoration: none;
}

.activity-text a:hover {
  text-decoration: underline;
}

.activity-time {
  color: #999;
  font-size: 11px;
  margin-top: 3px;
}

.post-container {
  background: white;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  overflow: hidden;
}

.post-header {
  padding: 15px 20px;
  border-bottom: 1px solid #e2e8f0;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.post-category-tags {
  display: flex;
  gap: 8px;
  align-items: center;
}

.post-category {
  background: #e8f4fd;
  color: #2c5282;
  padding: 4px 12px;
  border-radius: 15px;
  font-size: 12px;
  font-weight: 600;
}

.post-tag {
  background: #f0f0f0;
  color: #666;
  padding: 3px 8px;
  border-radius: 3px;
  font-size: 11px;
}

.post-meta {
  display: flex;
  align-items: center;
  gap: 15px;
  font-size: 12px;
  color: #999;
}

.post-meta-item {
  display: flex;
  align-items: center;
  gap: 5px;
}

.post-content {
  padding: 20px;
}

.post-title {
  font-size: 20px;
  font-weight: bold;
  color: #1a365d;
  margin-bottom: 15px;
  line-height: 1.4;
}

.post-image-container {
  margin-bottom: 20px;
  border-radius: 8px;
  overflow: hidden;
  background: #f0f0f0;
}

.post-image-placeholder {
  width: 100%;
  height: 350px;
  background: linear-gradient(135deg, #d4a574 0%, #c4956a 50%, #a67c52 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: white;
  position: relative;
  overflow: hidden;
}

.post-image-placeholder::before {
  content: '';
  position: absolute;
  width: 180px;
  height: 280px;
  background: rgba(255,255,255,0.1);
  border-radius: 20px;
  transform: rotate(-5deg);
}

.skeleton-icon {
  font-size: 70px;
  margin-bottom: 10px;
  z-index: 1;
}

.gold-items {
  display: flex;
  gap: 8px;
  margin-top: 10px;
  z-index: 1;
}

.gold-item {
  width: 25px;
  height: 25px;
  background: linear-gradient(135deg, #ffd700, #ffec8b, #ffd700);
  border-radius: 50%;
  box-shadow: 0 2px 8px rgba(255, 215, 0, 0.5);
}

.post-text {
  font-size: 14px;
  line-height: 1.8;
  color: #333;
}

.post-text p {
  margin-bottom: 15px;
}

.post-text strong {
  color: #1a365d;
}

.post-text ul {
  margin: 15px 0;
  padding-left: 20px;
}

.post-text li {
  margin-bottom: 8px;
}

.post-source {
  margin-top: 20px;
  padding: 12px 15px;
  background: #f7fafc;
  border-left: 3px solid #2c5282;
  font-size: 13px;
  color: #666;
  border-radius: 0 6px 6px 0;
}

.post-actions {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 15px 20px;
  border-top: 1px solid #e2e8f0;
  background: #fafafa;
  flex-wrap: wrap;
}

.vote-buttons {
  display: flex;
  align-items: center;
  gap: 5px;
  background: #f0f0f0;
  padding: 5px 12px;
  border-radius: 20px;
}

.vote-btn {
  background: none;
  border: none;
  cursor: pointer;
  font-size: 16px;
  color: #666;
  padding: 4px 6px;
  transition: all 0.2s;
  border-radius: 4px;
}

.vote-btn:hover {
  background: #e2e8f0;
}

.vote-btn.upvote:hover, .vote-btn.upvote.active {
  color: #48bb78;
}

.vote-btn.downvote:hover, .vote-btn.downvote.active {
  color: #e53e3e;
}

.vote-count {
  font-weight: bold;
  color: #2c5282;
  min-width: 30px;
  text-align: center;
  font-size: 14px;
}

.action-btn {
  display: flex;
  align-items: center;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  color: #666;
  font-size: 12px;
  padding: 8px 12px;
  border-radius: 5px;
  transition: all 0.2s;
}

.action-btn:hover {
  background: #e2e8f0;
  color: #2c5282;
}

.action-btn .icon {
  font-size: 14px;
}

.comments-section {
  padding: 20px;
  border-top: 1px solid #e2e8f0;
}

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

.comments-title {
  font-size: 15px;
  font-weight: bold;
  color: #1a365d;
}

.comments-sort {
  display: flex;
  gap: 5px;
}

.sort-btn {
  background: none;
  border: 1px solid #e2e8f0;
  color: #666;
  font-size: 12px;
  cursor: pointer;
  padding: 5px 10px;
  border-radius: 4px;
  transition: all 0.2s;
}

.sort-btn:hover, .sort-btn.active {
  background: #2c5282;
  color: white;
  border-color: #2c5282;
}

.comment-input-container {
  display: flex;
  gap: 12px;
  margin-bottom: 20px;
  padding: 15px;
  background: #f7fafc;
  border-radius: 8px;
  border: 1px solid #e2e8f0;
}

.comment-input-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #cbd5e0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #666;
  font-size: 16px;
  flex-shrink: 0;
}

.comment-input-wrapper {
  flex: 1;
}

.comment-input {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  font-size: 13px;
  resize: none;
  min-height: 70px;
  font-family: inherit;
}

.comment-input:focus {
  outline: none;
  border-color: #2c5282;
  box-shadow: 0 0 0 3px rgba(44, 82, 130, 0.1);
}

.comment-submit-btn {
  margin-top: 10px;
  padding: 8px 18px;
  background: #2c5282;
  color: white;
  border: none;
  border-radius: 5px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}

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

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

.comment-item {
  padding: 15px 0;
  border-bottom: 1px solid #f0f0f0;
}

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

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

.comment-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: bold;
  font-size: 12px;
}

.comment-avatar.green {
  background: linear-gradient(135deg, #48bb78, #38a169);
}

.comment-avatar.blue {
  background: linear-gradient(135deg, #4299e1, #2b6cb0);
}

.comment-avatar.purple {
  background: linear-gradient(135deg, #9f7aea, #805ad5);
}

.comment-avatar.orange {
  background: linear-gradient(135deg, #ed8936, #dd6b20);
}

.comment-avatar.pink {
  background: linear-gradient(135deg, #ed64a6, #d53f8c);
}

.comment-avatar.teal {
  background: linear-gradient(135deg, #38b2ac, #319795);
}

.comment-meta {
  flex: 1;
}

.comment-author {
  font-weight: 600;
  color: #2c5282;
  font-size: 13px;
  text-decoration: none;
}

.comment-author:hover {
  text-decoration: underline;
}

.comment-date {
  font-size: 11px;
  color: #999;
  margin-left: 8px;
}

.comment-body {
  font-size: 13px;
  line-height: 1.6;
  color: #333;
  margin-bottom: 8px;
  padding-left: 42px;
}

.comment-actions {
  display: flex;
  gap: 10px;
  padding-left: 42px;
}

.comment-action {
  display: flex;
  align-items: center;
  gap: 4px;
  background: none;
  border: none;
  color: #999;
  font-size: 11px;
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 4px;
  transition: all 0.2s;
}

.comment-action:hover {
  background: #f0f0f0;
  color: #2c5282;
}

.reply-list {
  margin-left: 42px;
  margin-top: 12px;
  padding-left: 12px;
  border-left: 2px solid #e2e8f0;
}

.reply-item {
  padding: 10px 0;
}

.reply-item .comment-avatar {
  width: 28px;
  height: 28px;
  font-size: 11px;
}

.reply-item .comment-body, .reply-item .comment-actions {
  padding-left: 38px;
}

.widget {
  background: white;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  overflow: hidden;
}

.related-post-item {
  padding: 12px 15px;
  border-bottom: 1px solid #f5f5f5;
  transition: background 0.2s;
}

.related-post-item:last-child {
  border-bottom: none;
}

.related-post-item:hover {
  background: #fafafa;
}

.related-post-title {
  font-size: 12px;
  font-weight: 500;
  color: #1a365d;
  margin-bottom: 5px;
  display: block;
  text-decoration: none;
  line-height: 1.4;
}

.related-post-title:hover {
  color: #2c5282;
  text-decoration: underline;
}

.related-post-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 10px;
  color: #999;
}

.rules-list {
  padding: 12px 15px;
}

.rule-item {
  display: flex;
  gap: 8px;
  margin-bottom: 10px;
  font-size: 12px;
  color: #333;
  line-height: 1.4;
}

.rule-item:last-child {
  margin-bottom: 0;
}

.rule-number {
  width: 20px;
  height: 20px;
  background: #e8f4fd;
  color: #2c5282;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  font-weight: bold;
  flex-shrink: 0;
}

.trending-tags {
  padding: 12px 15px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.trending-tag {
  background: #f7fafc;
  color: #2c5282;
  padding: 5px 10px;
  border-radius: 15px;
  font-size: 11px;
  text-decoration: none;
  border: 1px solid #e2e8f0;
  transition: all 0.2s;
}

.trending-tag:hover {
  background: #2c5282;
  color: white;
  border-color: #2c5282;
}

.forum-stat {
  text-align: center;
  padding: 10px;
  background: #f7fafc;
  border-radius: 6px;
}

.footer-copyright {
  font-size: 12px;
}


.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: 550px;
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;
text-wrap: auto;
}
.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(8, 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);
}

.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,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iaXNvLTg4NTktMSI/Pgo8IS0tIEdlbmVyYXRvcjogQWRvYmUgSWxsdXN0cmF0b3IgMTkuMC4wLCBTVkcgRXhwb3J0IFBsdWctSW4gLiBTVkcgVmVyc2lvbjogNi4wMCBCdWlsZCAwKSAgLS0+CjxzdmcgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiB4bWxuczp4bGluaz0iaHR0cDovL3d3dy53My5vcmcvMTk5OS94bGluayIgdmVyc2lvbj0iMS4xIiBpZD0iTGF5ZXJfMSIgeD0iMHB4IiB5PSIwcHgiIHZpZXdCb3g9IjAgMCAzMDUgMzA1IiBzdHlsZT0iZW5hYmxlLWJhY2tncm91bmQ6bmV3IDAgMCAzMDUgMzA1OyIgeG1sOnNwYWNlPSJwcmVzZXJ2ZSIgd2lkdGg9IjI0cHgiIGhlaWdodD0iMjRweCI+CjxnIGlkPSJYTUxJRF8yMjhfIj4KCTxwYXRoIGlkPSJYTUxJRF8yMjlfIiBkPSJNNDAuNzM4LDExMi4xMTljLTI1Ljc4NSw0NC43NDUtOS4zOTMsMTEyLjY0OCwxOS4xMjEsMTUzLjgyQzc0LjA5MiwyODYuNTIzLDg4LjUwMiwzMDUsMTA4LjIzOSwzMDUgICBjMC4zNzIsMCwwLjc0NS0wLjAwNywxLjEyNy0wLjAyMmM5LjI3My0wLjM3LDE1Ljk3NC0zLjIyNSwyMi40NTMtNS45ODRjNy4yNzQtMy4xLDE0Ljc5Ny02LjMwNSwyNi41OTctNi4zMDUgICBjMTEuMjI2LDAsMTguMzksMy4xMDEsMjUuMzE4LDYuMDk5YzYuODI4LDIuOTU0LDEzLjg2MSw2LjAxLDI0LjI1Myw1LjgxNWMyMi4yMzItMC40MTQsMzUuODgyLTIwLjM1Miw0Ny45MjUtMzcuOTQxICAgYzEyLjU2Ny0xOC4zNjUsMTguODcxLTM2LjE5NiwyMC45OTgtNDMuMDFsMC4wODYtMC4yNzFjMC40MDUtMS4yMTEtMC4xNjctMi41MzMtMS4zMjgtMy4wNjZjLTAuMDMyLTAuMDE1LTAuMTUtMC4wNjQtMC4xODMtMC4wNzggICBjLTMuOTE1LTEuNjAxLTM4LjI1Ny0xNi44MzYtMzguNjE4LTU4LjM2Yy0wLjMzNS0zMy43MzYsMjUuNzYzLTUxLjYwMSwzMC45OTctNTQuODM5bDAuMjQ0LTAuMTUyICAgYzAuNTY3LTAuMzY1LDAuOTYyLTAuOTQ0LDEuMDk2LTEuNjA2YzAuMTM0LTAuNjYxLTAuMDA2LTEuMzQ5LTAuMzg2LTEuOTA1Yy0xOC4wMTQtMjYuMzYyLTQ1LjYyNC0zMC4zMzUtNTYuNzQtMzAuODEzICAgYy0xLjYxMy0wLjE2MS0zLjI3OC0wLjI0Mi00Ljk1LTAuMjQyYy0xMy4wNTYsMC0yNS41NjMsNC45MzEtMzUuNjExLDguODkzYy02LjkzNiwyLjczNS0xMi45MjcsNS4wOTctMTcuMDU5LDUuMDk3ICAgYy00LjY0MywwLTEwLjY2OC0yLjM5MS0xNy42NDUtNS4xNTljLTkuMzMtMy43MDMtMTkuOTA1LTcuODk5LTMxLjEtNy44OTljLTAuMjY3LDAtMC41MywwLjAwMy0wLjc4OSwwLjAwOCAgIEM3OC44OTQsNzMuNjQzLDU0LjI5OCw4OC41MzUsNDAuNzM4LDExMi4xMTl6IiBmaWxsPSIjMmUyZTJlIi8+Cgk8cGF0aCBpZD0iWE1MSURfMjMwXyIgZD0iTTIxMi4xMDEsMC4wMDJjLTE1Ljc2MywwLjY0Mi0zNC42NzIsMTAuMzQ1LTQ1Ljk3NCwyMy41ODNjLTkuNjA1LDExLjEyNy0xOC45ODgsMjkuNjc5LTE2LjUxNiw0OC4zNzkgICBjMC4xNTUsMS4xNywxLjEwNywyLjA3MywyLjI4NCwyLjE2NGMxLjA2NCwwLjA4MywyLjE1LDAuMTI1LDMuMjMyLDAuMTI2YzE1LjQxMywwLDMyLjA0LTguNTI3LDQzLjM5NS0yMi4yNTcgICBjMTEuOTUxLTE0LjQ5OCwxNy45OTQtMzMuMTA0LDE2LjE2Ni00OS43N0MyMTQuNTQ0LDAuOTIxLDIxMy4zOTUtMC4wNDksMjEyLjEwMSwwLjAwMnoiIGZpbGw9IiMyZTJlMmUiLz4KPC9nPgo8Zz4KPC9nPgo8Zz4KPC9nPgo8Zz4KPC9nPgo8Zz4KPC9nPgo8Zz4KPC9nPgo8Zz4KPC9nPgo8Zz4KPC9nPgo8Zz4KPC9nPgo8Zz4KPC9nPgo8Zz4KPC9nPgo8Zz4KPC9nPgo8Zz4KPC9nPgo8Zz4KPC9nPgo8Zz4KPC9nPgo8Zz4KPC9nPgo8L3N2Zz4K);
}

.google-btn {
background-image: url(data:image/svg+xml;utf8;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iaXNvLTg4NTktMSI/Pgo8IS0tIEdlbmVyYXRvcjogQWRvYmUgSWxsdXN0cmF0b3IgMTkuMC4wLCBTVkcgRXhwb3J0IFBsdWctSW4gLiBTVkcgVmVyc2lvbjogNi4wMCBCdWlsZCAwKSAgLS0+CjxzdmcgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiB4bWxuczp4bGluaz0iaHR0cDovL3d3dy53My5vcmcvMTk5OS94bGluayIgdmVyc2lvbj0iMS4xIiBpZD0iTGF5ZXJfMSIgeD0iMHB4IiB5PSIwcHgiIHZpZXdCb3g9IjAgMCA1MTIgNTEyIiBzdHlsZT0iZW5hYmxlLWJhY2tncm91bmQ6bmV3IDAgMCA1MTIgNTEyOyIgeG1sOnNwYWNlPSJwcmVzZXJ2ZSIgd2lkdGg9IjUxMnB4IiBoZWlnaHQ9IjUxMnB4Ij4KPHBvbHlnb24gc3R5bGU9ImZpbGw6IzVDREFERDsiIHBvaW50cz0iMjkuNTMsMCAyOS41MywyNTEuNTA5IDI5LjUzLDUxMiAyOTkuMDA0LDI1MS41MDkgIi8+Cjxwb2x5Z29uIHN0eWxlPSJmaWxsOiNCREVDQzQ7IiBwb2ludHM9IjM2OS4wNjcsMTgwLjU0NyAyNjIuMTc1LDExOS40NjcgMjkuNTMsMCAyOTkuMDA0LDI1MS41MDkgIi8+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;
}


/* Three Column Layout */
.content-wrapper {
            display: grid;
            grid-template-columns: 260px 1fr 280px;
            gap: 20px;
        }

/* Left Sidebar */
.left-sidebar {
background-color: white;
border-radius: 8px;
padding: 10px;
box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
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) {
.content-wrapper {
grid-template-columns: 1fr;
}

.left-sidebar,
.right-sidebar {
display: none;
}

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

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

.header-search {
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; }
