/* CSS cho các template mới */

/* Post Item Styles */
.post-item,
.category-post-item,
.tag-post-item,
.author-post-item,
.date-post-item,
.search-result-item {
    background: #fff;
    margin-bottom: 30px;
}

.post-item:hover,
.category-post-item:hover,
.tag-post-item:hover,
.author-post-item:hover,
.date-post-item:hover,
.search-result-item:hover {
}

.post-thumbnail {
    margin-bottom: 15px;
    position: relative;
    overflow: hidden;
}

.post-thumbnail img {
    width: 100%;
    height: auto;
    max-height: 232px;
    border-radius: 5px;
    transition: transform 0.3s ease;
    object-fit: cover;
}

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

.post-content {
    padding: 0;
}

.category-post-item .post-content  .post-title {
    margin: 0 0 6px 0;
    font-size: 18px;
    font-weight: 500;
    line-height: 1.42;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
}

.post-title a {
    color: #333;
    text-decoration: none;
    transition: color 0.3s ease;
}

.post-title a:hover {
    color: #0199fd;
}


.category-post-item .post-meta {
    margin-bottom: 15px;
    font-size: 14px;
    color: #666;
    font-weight: 400;
}

.category-post-item .post-meta span {
    display: inline-block;
    padding: 0;
    background: none;
    border-radius: 0;
}

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

.post-excerpt {
    color: #666;
    line-height: 1.6;
    margin-bottom: 15px;
}

/* Header Styles */
.page-title,
.archive-title,
.category-title,
.tag-title,
.date-title,
.search-title,
.author-title {
    margin: 0 0 20px 0;
    font-size: 32px;
    font-weight: bold;
    color: #333;
}

.page-description,
.archive-description,
.category-description,
.tag-description,
.date-description,
.search-description,
.author-description {
    color: #666;
    line-height: 1.6;
    margin-bottom: 30px;
}

/* Cover Image Styles */
.page-header-with-image,
.category-header-with-image,
.archive-header-with-image,
.single-real-estate-header-with-image {
    position: relative;
    margin-bottom: 40px;
}

@media (max-width: 768px) {
    .page-header-with-image,
    .category-header-with-image,
    .archive-header-with-image,
    .single-real-estate-header-with-image {
        padding-top: 60px;
    }
}

.single-real-estate-header-with-image.mb-0 {
    margin-bottom: 0;
}

.cover-image-container {
    position: relative;
    width: 100%;
    height: 400px;
    overflow: hidden;
}

.cover-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.cover-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(0,0,0,0.6) 0%, rgba(0,0,0,0.4) 100%);
    z-index: 1;
}

.cover-image-container .page-header,
.cover-image-container .category-header,
.cover-image-container .archive-header,
.cover-image-container .single-real-estate-header {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 2;
    text-align: center;
    width: 100%;
    padding: 0 20px;
    margin: 0 auto;
    border-color: transparent;
}

.cover-image-container .category-title,
.cover-image-container .page-header h2,
.cover-image-container .archive-title,
.cover-image-container .single-real-estate-title {
    color: #fff;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
    margin-bottom: 15px;
    font-size: 28px;
    font-weight: bold;
    text-transform: uppercase;
}

.cover-image-container .category-description,
.cover-image-container .archive-description {
    color: #fff;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
    font-size: 18px;
    line-height: 1.6;
    max-width: 800px;
    margin: 0 auto;
}

/* Single Real Estate Category Styles */
.cover-image-container .single-real-estate-category {
    margin-top: 15px;
    color: #fff;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
    font-size: 16px;
}

.cover-image-container .category-label {
    color: #fff;
    margin-right: 8px;
    font-weight: 500;
}

.cover-image-container .category-link {
    color: #fff;
    text-decoration: none;
    background: rgba(255,255,255,0.2);
    padding: 5px 12px;
    border-radius: 20px;
    transition: all 0.3s ease;
}

.cover-image-container .category-link:hover {
    background: rgba(255,255,255,0.3);
    color: #fff;
    text-decoration: none;
}

/* Responsive cho cover image */
@media (max-width: 768px) {
    .cover-image-container {
        height: 300px;
    }
    
    .cover-image-container .category-title,
    .cover-image-container .page-header h2,
    .cover-image-container .archive-title,
    .cover-image-container .single-real-estate-title {
        font-size: 32px;
    }
    
    .cover-image-container .category-description,
    .cover-image-container .archive-description {
        font-size: 16px;
    }
    
    .cover-image-container .single-real-estate-category {
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    .cover-image-container {
        height: 250px;
    }
    
    .cover-image-container .category-title,
    .cover-image-container .page-header h2,
    .cover-image-container .archive-title,
    .cover-image-container .single-real-estate-title {
        font-size: 16px;
        line-height: 24px;
    }
    
    .cover-image-container .category-description,
    .cover-image-container .archive-description {
        font-size: 14px;
    }
    
    .cover-image-container .single-real-estate-category {
        font-size: 12px;
    }
}

/* Archive Header */
.archive-header,
.category-header,
.tag-header,
.date-header,
.search-header,
.author-header {
    background: #f8f9fa;
    padding: 40px 0;
    margin-bottom: 40px;
    border-radius: 10px;
}

.archive-header h1,
.category-header h1,
.tag-header h1,
.date-header h1,
.search-header h1,
.author-header h1 {
    margin: 0 0 15px 0;
    color: #333;
}

.archive-description,
.category-description,
.tag-description,
.date-description,
.search-description,
.author-description {
    margin: 0;
    color: #666;
}

/* Author Info */
.author-info {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 30px;
}

.author-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    overflow: hidden;
}

.author-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.author-details h2 {
    margin: 0 0 10px 0;
    color: #333;
}

.author-bio {
    color: #666;
    line-height: 1.6;
}

/* Search Results */

.search-results h2 {
    color: #0199fd;
    font-weight: bold;
}

.no-results {
    text-align: center;
    padding: 50px 20px;
    background: #f8f9fa;
    border-radius: 10px;
}

.no-results ul {
    text-align: left;
    display: inline-block;
    margin: 20px 0;
}

.search-form {
    margin-top: 30px;
}

/* Post type badge */
.post-type .badge {
    background: #6c757d;
    color: #fff;
    padding: 5px 10px;
    border-radius: 15px;
    font-size: 12px;
    font-weight: normal;
}

/* Pagination */
.pagination-wrapper {
    text-align: center;
    margin-top: 40px;
}

.page-numbers {
    display: inline-block;
    padding: 10px 15px;
    margin: 0 5px;
    border: 1px solid #ddd;
    border-radius: 5px;
    text-decoration: none;
    color: #333;
    transition: all 0.3s ease;
}

.page-numbers.current {
    background: #007bff;
    color: #fff;
    border-color: #007bff;
}

.page-numbers:hover {
    background: #f8f9fa;
    border-color: #007bff;
}

/* No posts message */
.no-posts {
    text-align: center;
    padding: 50px 20px;
    background: #f8f9fa;
    border-radius: 10px;
    color: #666;
    margin: 30px;
}

/* Responsive */
@media (max-width: 768px) {
    .post-item,
    .category-post-item,
    .tag-post-item,
    .author-post-item,
    .date-post-item,
    .search-result-item {
        margin-bottom: 20px;
        padding: 15px;
    }
    
    .author-info {
        flex-direction: column;
        text-align: center;
    }
    
    .post-title {
        font-size: 16px;
    }
    
    .page-header,
    .archive-header,
    .category-header,
    .tag-header,
    .date-header,
    .search-header,
    .author-header {
        padding: 20px 0;
    }
}


/* Page Content */
.page-content {
  padding: 30px 0;
  margin: 0 auto;
  line-height: 24px;
  font-size: 16px;
}

.page-content h1,
.page-content h2,
.page-content h3,
.page-content h4,
.page-content h5,
.page-content h6 {
  margin-top: 2rem;
  margin-bottom: 1rem;
  color: #333;
  font-weight: 600;
}

.page-content h1 { font-size: 2.5rem; }
.page-content h2 { font-size: 2rem; }
.page-content h3 { font-size: 1.75rem; }
.page-content h4 { font-size: 1.5rem; }
.page-content h5 { font-size: 1.25rem; }
.page-content h6 { font-size: 1rem; }

.page-content p {
  margin-bottom: 1.5rem;
  color: #555;
}

.page-content figure {
  margin: 0;
}
.page-content img {
  width: 100%;
  object-fit: cover;
  height: auto;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  margin: 16px 0;
}

.page-content ul,
.page-content ol {
  margin-bottom: 1.5rem;
  padding-left: 2rem;
}

.page-content li {
  margin-bottom: 0.5rem;
  color: #555;
}

.page-content blockquote {
  border-left: 4px solid #0199fd;
  padding-left: 1.5rem;
  margin: 2rem 0;
  font-style: italic;
  color: #666;
  background: #f8f9fa;
  padding: 1.5rem;
  border-radius: 0 8px 8px 0;
}

.page-content a {
  color: #0199fd;
  text-decoration: none;
  transition: color 0.3s ease;
}

.page-content a:hover {
  color: #337ab7;
}

/* Responsive Design */
@media (max-width: 768px) {
  .page-header-with-image {
    height: 40vh;
    min-height: 300px;
  }
  
  .heading-wrapper h1 {
    font-size: 2rem;
  }
  
  .page-header-text {
    padding: 60px 0;
  }
  
  .page-header-text .heading-wrapper h1 {
    font-size: 2rem;
  }
  
  .page-content {
    padding: 40px 0;
    font-size: 1rem;
  }
  
  .page-content h1 { font-size: 2rem; }
  .page-content h2 { font-size: 1.75rem; }
  .page-content h3 { font-size: 1.5rem; }
}

@media (max-width: 480px) {
  .page-header-with-image {
    height: 30vh;
    min-height: 250px;
  }
  
  .heading-wrapper h1 {
    font-size: 1.5rem;
  }
  
  .page-header-text .heading-wrapper h1 {
    font-size: 1.5rem;
  }
  
  .page-content {
    padding: 30px 0;
  }
}


/* Custom Pagination Styles */
.custom-pagination {
    margin: 40px 0;
    text-align: center;
}

.custom-pagination .nav-links {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 6px;
    list-style: none;
    margin: 0;
    padding: 0;
    flex-wrap: wrap;
}

.custom-pagination .nav-links li {
    margin: 0;
    padding: 0;
    list-style: none;
}

.custom-pagination .nav-links a,
.custom-pagination .nav-links span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    height: 44px;
    padding: 0 12px;
    border: 2px solid #e1e5e9;
    border-radius: 8px;
    background: #ffffff;
    color: #4a5568;
    text-decoration: none;
    font-weight: 400;
    font-size: 14px;
    transition: all 0.2s ease;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.custom-pagination .nav-links a:hover {
    background: #f7fafc;
    border-color: #0199fd;
    color: #0199fd;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(49, 130, 206, 0.15);
}

.custom-pagination .nav-links .current {
    background: #0199fd;
    border-color: #0199fd;
    color: #ffffff;
    font-weight: 700;
    box-shadow: 0 4px 12px rgba(49, 130, 206, 0.3);
}

.custom-pagination .nav-links .prev a,
.custom-pagination .nav-links .next a {
    font-weight: 600;
    min-width: 70px;
    background: #f8fafc;
    border-color: #cbd5e0;
    color: #4a5568;
}

.custom-pagination .nav-links .prev a:hover,
.custom-pagination .nav-links .next a:hover {
    background: #0199fd;
    border-color: #0199fd;
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(49, 130, 206, 0.3);
}

/* Responsive */
@media (max-width: 768px) {
    .custom-pagination .nav-links {
        gap: 4px;
    }
    
    .custom-pagination .nav-links a,
    .custom-pagination .nav-links span {
        min-width: 40px;
        height: 40px;
        padding: 0 8px;
        font-size: 13px;
    }
    
    .custom-pagination .nav-links .prev a,
    .custom-pagination .nav-links .next a {
        min-width: 60px;
    }
}

@media (max-width: 480px) {
    .custom-pagination .nav-links {
        gap: 3px;
    }
    
    .custom-pagination .nav-links a,
    .custom-pagination .nav-links span {
        min-width: 36px;
        height: 36px;
        padding: 0 6px;
        font-size: 12px;
    }
    
    .custom-pagination .nav-links .prev a,
    .custom-pagination .nav-links .next a {
        min-width: 50px;
    }
}


.filter-container {
  margin-bottom: 30px;
  padding: 20px 0;
  border-bottom: 1px solid #eee;
}

.filter-form {
  display: flex;
  align-items: center;
  justify-content: flex-end;
}

.filter-wrapper {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}

.temp-filter-group {
    display: flex;
    align-items: center;
    gap: 8px;
}

.temp-filter-group label {
  font-weight: 500;
  color: #333;
  margin: 0;
  white-space: nowrap;
}

.temp-filter-group select {
  border: 1px solid #ddd;
  border-radius: 4px;
  background-color: #fff;
  font-size: 14px;
  cursor: pointer;
  min-width: 160px;
height: 30px;
}

.temp-filter-group select:focus {
  outline: none;
  border-color: #007cba;
  box-shadow: 0 0 0 2px rgba(0, 124, 186, 0.2);
}

.filter-submit-btn {
  padding: 5px 16px;
  background-color: #0199fd;
  color: white;
  border: none;
  border-radius: 4px;
  font-size: 14px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.filter-submit-btn:hover {
  background-color: #005a87;
}

@media (max-width: 768px) {
  .filter-form {
    display: block;
  }
  
  .filter-wrapper {
    flex-direction: column;
    align-items: flex-start;
    gap: 5px;
  }
  
  .filter-group {
    flex-direction: column;
    align-items: flex-start;
    gap: 5px;
    width: 100%;
  }
  
  .filter-group select {
    min-width: 200px;
    width: 100%;
  }
  
  .filter-submit-btn {
    width: 100%;
    padding: 10px 16px;
  }
}