
/* Global Font Family */
* {
    font-family: "Roboto Regular", Roboto, Arial, sans-serif !important;
}

/* Headers use Lexend Medium */
h1, h2, h3, h4, h5, h6 {
    font-family: "Lexend Medium", Roboto, Arial, sans-serif !important;
}

/* Fix icon fonts - preserve FontAwesome and other icon fonts */
i, .fa, .fas, .far, .fab, .fal, .fad, .fak,
[class^="fa-"], [class*=" fa-"],
[class^="icon-"], [class*=" icon-"] {
    font-family: "Font Awesome 5 Free", "Font Awesome 5 Brands", "Font Awesome 5 Pro", "FontAwesome" !important;
    font-style: normal !important;
}

/* News Highlight Section */
.news-highlight-section {
    background: #fff;
    padding: 40px 0;
    border-bottom: 1px solid #eee;
}

.news-highlight-grid {
    display: grid;
    grid-template-columns: 1fr 150px;
    gap: 30px;
    align-items: flex-start;
}


/* Latest News Column */
.latest-news-column {
    background: #fff;
    padding: 0;
}

/* News Thumbnail Container */
.news-thumbnail-container {
    display: flex;
    flex-direction: row;
    border: none;
    border-radius: 0 0 5px 5px;
    overflow: hidden;
    gap: 20px;
}

.news-thumbnail-display {
    width: 60%;
    display: flex;
    flex-direction: column;
}

.news-thumbnail {
    width: 100%;
    height: 400px;
    overflow: hidden;
    position: relative;
    flex-shrink: 0;
    border-radius: 5px;
}

.news-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: opacity 0.3s ease;
}

.news-thumbnail-time {
    position: absolute;
    bottom: 10px;
    left: 10px;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 6px 10px;
    border-radius: 5px;
    font-size: 0.8rem;
    display: flex;
    align-items: center;
    gap: 5px;
    z-index: 2;
}

.news-thumbnail-time i {
    color: #3498db;
}

.news-thumbnail-title {
    padding: 15px;
    background: #fff;
    border-top: 1px solid #eee;
}

.news-thumbnail-title h4 {
    margin: 0;
    font-size: 1.1rem;
    line-height: 1.4;
}

.news-thumbnail-title a {
    color: #2c3e50;
    text-decoration: none;
    transition: color 0.3s ease;
}

.news-thumbnail-title a:hover {
    color: #3498db;
}

/* Property information styles for thumbnail */
.thumbnail-property-title {
    font-weight: 600;
    margin-bottom: 8px;
    line-height: 1.3;
}

.thumbnail-property-info {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    font-size: 0.9rem;
    color: #666;
}

.thumbnail-price {
    color: #e74c3c;
    font-weight: 600;
    font-size: 1rem;
}

.thumbnail-area {
    color: #3498db;
    font-weight: 500;
}

/* Property information styles for list items */
.property-title {
    font-weight: 500;
    margin-bottom: 5px;
    line-height: 1.3;
}

.property-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    font-size: 0.8rem;
    opacity: 0.8;
}

.property-price {
    color: #e74c3c;
    font-weight: 600;
}

.property-area {
    color: #3498db;
}

.property-location {
    color: #666;
}

.news-titles-list {
    padding: 0;
    background: #fff;
    width: 40%;
    flex: 1;
    overflow-y: auto;
}

/* Full width main section */
.main-section-full {
    width: 100%;
}

/* Properties grid - 4 items per row */
.properties-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    margin-bottom: 20px;
}

.news-title-item {
    padding: 8px 15px;
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
    text-align: left;
}

.news-title-item:hover,
.news-title-item.active {
    background: #f0f8ff;
}

.news-title-item.active::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: #3498db;
}

.news-title-link {
    color: #2c3e50;
    text-decoration: none;
    font-size: 0.95rem;
    line-height: 1.4;
    display: block;
    transition: all 0.3s ease;
    text-align: left;
}

.news-title-item:hover .news-title-link {
    color: #3498db;
    text-decoration: underline;
}

.news-title-item.active .news-title-link {
    color: #3498db;
}

.property-time {
    display: flex;
    align-items: center;
    gap: 6px;
    color: #666;
    font-size: 0.8rem;
}

.property-time i {
    color: #3498db;
}

.latest-news-header {
    background: transparent;
    color: #2c3e50;
    margin: 0;
    padding: 15px 20px;
    font-size: 1.3rem;
    font-weight: 600;
    border-radius: 5px 5px 0 0;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
}

.latest-news-header:hover {
    text-decoration: underline;
    color: #3498db;
}

.latest-news-list {
    padding: 0;
    border: 1px solid #eee;
    border-top: none;
    border-radius: 0 0 10px 10px;
    overflow: hidden;
}

.latest-news-item {
    padding: 5px 5px;
    border-bottom: 1px solid #eee;
    transition: all 0.3s ease;
    position: relative;
    cursor: pointer;
}

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

.latest-news-item:hover {
    background: #f8f9fa;
    padding-left: 25px;
}

.latest-news-item h4 {
    margin: 0;
    font-size: 1rem;
    font-weight: 500;
    color: #2c3e50;
    line-height: 1.5;
    transition: color 0.3s ease;
}

.latest-news-item:hover h4 {
    color: #3498db;
}

.latest-news-item a {
    color: inherit;
    text-decoration: none;
    display: block;
}

.latest-news-item .news-date {
    font-size: 0.8rem;
    color: #999;
    margin-top: 5px;
}

/* Hover thumbnail preview */
.latest-news-item .hover-preview {
    position: absolute;
    left: 100%;
    top: 50%;
    transform: translateY(-50%);
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 5px;
    padding: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    z-index: 1000;
    width: 300px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    pointer-events: none;
}

.latest-news-item:hover .hover-preview {
    opacity: 1;
    visibility: visible;
    left: calc(100% + 20px);
}

.hover-preview-image {
    width: 100%;
    height: 150px;
    overflow: hidden;
    border-radius: 4px;
    margin-bottom: 10px;
}

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

.hover-preview-title {
    font-size: 0.9rem;
    font-weight: 600;
    color: #2c3e50;
    margin: 0;
    line-height: 1.4;
}

/* Ads Column */
.ads-column {
    background: #fff;
    border-radius: 5px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    height: fit-content;
}

.ads-item {
    display: block;
    position: relative;
    overflow: hidden;
    border-radius: 5px;
    transition: all 0.3s ease;
}

.ads-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.ads-item img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.3s ease;
}

.ads-item:hover img {
    transform: scale(1.05);
}

/* Property Badge Container */
.property-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    z-index: 2;
    display: flex;
    flex-direction: column;
    gap: 5px;
    align-items: flex-start;
}

/* Property Category Badge Styles */
.property-category {
    background: #3498db;
    color: white;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: inline-block;
    box-shadow: 0 2px 6px rgba(52, 152, 219, 0.3);
}

/* Property Type Badge Styles */
.property-type {
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 3px 6px;
    border-radius: 8px;
    font-size: 0.65rem;
    font-weight: 500;
    display: inline-block;
    backdrop-filter: blur(10px);
}

/* Category-specific colors */
.property-category.mua-ban {
    background: linear-gradient(45deg, #27ae60, #2ecc71);
    box-shadow: 0 2px 6px rgba(39, 174, 96, 0.3);
}

.property-category.cho-thue {
    background: linear-gradient(45deg, #f39c12, #e67e22);
    box-shadow: 0 2px 6px rgba(243, 156, 18, 0.3);
}

.property-category.dat-cong-nghiep {
    background: linear-gradient(45deg, #9b59b6, #8e44ad);
    box-shadow: 0 2px 6px rgba(155, 89, 182, 0.3);
}

/* HOT Property Badge Styles */
.property-hot-badge {
    background: linear-gradient(45deg, #ff6b35, #ff4444);
    color: white;
    padding: 4px 8px;
    border-radius: 15px;
    font-size: 0.7rem;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-top: 5px;
    display: inline-block;
    box-shadow: 0 2px 6px rgba(255, 68, 68, 0.3);
    animation: hotBadgePulse 2s infinite;
}

@keyframes hotBadgePulse {
    0% { box-shadow: 0 2px 6px rgba(255, 68, 68, 0.3); }
    50% { box-shadow: 0 2px 10px rgba(255, 68, 68, 0.6); }
    100% { box-shadow: 0 2px 6px rgba(255, 68, 68, 0.3); }
}

/* Mobile responsive design - match single page styling */
@media (max-width: 768px) {
    .news-highlight-section {
        padding: 20px 15px;
    }
    
    .news-highlight-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .featured-news-image {
        height: 250px;
    }
    
    .featured-news-title {
        font-size: 1rem;
        padding: 15px;
    }
    
    .latest-news-item:hover .hover-preview {
        display: none;
    }
    
    .news-thumbnail-container {
        flex-direction: column;
        gap: 15px;
    }
    
    .news-thumbnail-display {
        width: 100%;
    }
    
    .news-thumbnail {
        height: 200px;
    }
    
    .news-titles-list {
        width: 100%;
    }
    
    .news-title-item {
        padding: 10px 15px;
        font-size: 0.9rem;
    }
    
    .ads-column {
        order: -1;
    }
    
    .properties-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .news-carousel-wrapper {
        flex-direction: column;
        gap: 15px;
    }
    
    .news-carousel-container {
        order: 2;
    }
    
    .carousel-nav {
        order: 1;
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
    
    .carousel-prev {
        order: 0;
    }
    
    .carousel-next {
        order: 3;
    }
    
    .news-carousel {
        flex-direction: column;
        width: 100%;
        transform: none !important;
    }
    
    .news-list-container {
        flex-direction: column;
        gap: 5px;
    }
    
    .news-list-item {
        flex-direction: column;
        min-height: auto;
        width: 100%;
        border-radius: 15px;
        box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
        /*margin-bottom: 20px;*/
        background: white;
        overflow: hidden;
    }
    
    .news-list-image {
        width: 100%;
        height: 250px;
        margin-right: 0;
        margin-bottom: 0;
        flex-shrink: 0;
        border-radius: 0;
        overflow: hidden;
    }
    
    .news-list-content {
        padding: 25px;
        flex: 1;
        text-align: left;
    }
    
    .news-list-header {
        margin-bottom: 10px;
    }
    
    .news-list-title {
        margin: 0 !important;
        padding: 0 !important;
        background: none !important;
        background-color: transparent !important;
        border: none !important;
        text-align: left !important;
    }
    
    .news-list-title a {
        font-size: 1.1rem !important;
        line-height: 1.4 !important;
        background: none;
        padding: 0;
        margin: 0;
        text-align: left !important;
        display: -webkit-box !important;
        -webkit-line-clamp: 2 !important;
        -webkit-box-orient: vertical !important;
    }
    
    .content-wrapper {
        grid-template-columns: 1fr;
        gap: 0;
    }
    
    .main-section,
    .sidebar {
        width: 100%;
        margin-top: 0;
        margin-bottom: 20px;
    }
    
    .sidebar {
        margin-top: 20px;
    }
    
    .container {
        padding: 0 15px;
    }
    
    .main-content {
        padding: 20px 0;
    }
    
    .property-listings {
        border-radius: 8px;
        box-shadow: 0 2px 10px rgba(0,0,0,0.1);
        border: 1px solid #eee;
        padding: 15px;
        margin: 0 0 20px 0;
        width: 100%;
    }
    
    .sidebar-widget {
        border-radius: 8px;
        box-shadow: 0 2px 10px rgba(0,0,0,0.1);
        border: 1px solid #eee;
        margin-bottom: 20px;
        padding: 15px;
        background: #f8f9fa;
        width: 100%;
    }
}

/* Property Listings Section Spacing */
.property-listings {
    margin: 20px 0;
}

/* Property Listings Category Titles */
.property-listings h2 {
    background: linear-gradient(135deg, #3498db, #2980b9);
    color: white;
    padding: 20px 30px;
    margin: 0 0 30px 0;
    border-radius: 5px;
    font-size: 1.5rem;
    font-weight: 600;
    text-align: center;
    box-shadow: 0 5px 15px rgba(52, 152, 219, 0.3);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Load More Button Styling */
.load-more-section {
    text-align: center;
    margin: 0;
    padding: 20px 0;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.btn-load-more {
    background: linear-gradient(135deg, #27ae60, #229954);
    color: white;
    border: none;
    padding: 15px 30px;
    border-radius: 5px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(39, 174, 96, 0.3);
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.btn-load-more:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(39, 174, 96, 0.4);
    background: linear-gradient(135deg, #229954, #1e8449);
}

.btn-load-more i {
    font-size: 0.9rem;
}

/* View All News Button - Different styling for redirect button */
.btn-view-all-news {
    background: linear-gradient(135deg, #3498db, #2980b9) !important;
    box-shadow: 0 5px 15px rgba(52, 152, 219, 0.3) !important;
    text-decoration: none;
    color: white !important;
}

.btn-view-all-news:hover {
    background: linear-gradient(135deg, #2980b9, #21618c) !important;
    box-shadow: 0 8px 25px rgba(52, 152, 219, 0.4) !important;
    color: white !important;
    text-decoration: none;
}

/* View All Category Button - Different styling for category redirect buttons */
.btn-view-all-category {
    background: linear-gradient(135deg, #e67e22, #d35400) !important;
    box-shadow: 0 5px 15px rgba(230, 126, 34, 0.3) !important;
    text-decoration: none;
    color: white !important;
}

.btn-view-all-category:hover {
    background: linear-gradient(135deg, #d35400, #ba4a00) !important;
    box-shadow: 0 8px 25px rgba(230, 126, 34, 0.4) !important;
    color: white !important;
    text-decoration: none;
    transform: translateY(-2px);
}

/* News Carousel Wrapper */
.news-carousel-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
}

.news-carousel-container {
    flex: 1;
    overflow: hidden;
    position: relative;
}

.news-carousel {
    display: flex;
    gap: 20px;
    transition: transform 0.3s ease;
    width: max-content;
}

/* Carousel Navigation Buttons */
.carousel-nav {
    background: #3498db;
    color: white;
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    transition: all 0.3s ease;
    box-shadow: 0 3px 10px rgba(52, 152, 219, 0.3);
    flex-shrink: 0;
}

.carousel-nav:hover {
    background: #2980b9;
    transform: scale(1.1);
}

.carousel-nav:disabled {
    background: #bdc3c7;
    cursor: not-allowed;
    transform: none;
}

/* News List Container - Horizontal Layout */
.news-list-container {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
}

.news-list-item {
    background: white;
    border-radius: 5px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    min-height: auto;
    width: 280px;
    flex-shrink: 0;
}

.news-list-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.news-list-image {
    position: relative;
    width: 100%;
    height: 200px;
    overflow: hidden;
    flex-shrink: 0;
}

.news-watermark {
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(52, 152, 219, 0.9);
    color: white;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: bold;
    z-index: 2;
    border: 2px solid white;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
}

.news-list-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.news-list-item:hover .news-list-image img {
    transform: scale(1.05);
}

.news-category {
    position: absolute;
    top: 15px;
    left: 15px;
    z-index: 2;
}

.news-category-badge {
    background: #e74c3c;
    color: white;
    padding: 6px 12px;
    border-radius: 5 px;
    font-size: 0.8rem;
    font-weight: 500;
}

.news-list-content {
    padding: 15px;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    text-align: center;
}

.news-list-header {
    margin-bottom: 15px;
}

.news-list-excerpt {
    flex: 1;
    margin-bottom: 20px;
    color: #666;
    line-height: 1.6;
}

.news-list-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
}

.news-list-date {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #666;
    font-size: 0.9rem;
}

.news-list-date i {
    color: #3498db;
}

.news-list-title,
h2.news-list-title {
    margin: 0 !important;
    padding: 0 !important;
    background: none !important;
    background-color: transparent !important;
    border: none !important;
    font-size: 17.6px !important;
    text-align: justify !important;
    box-shadow: none !important;
    text-shadow: none !important;
    font-weight: bold !important;
    line-height: 1.4 !important;
    display: -webkit-box !important;
    -webkit-line-clamp: 2 !important;
    -webkit-box-orient: vertical !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
}

/* Reset h2 default styles specifically for news titles */
.news-list-content h2 {
    font-size: 17.6px !important;
    margin: 0 !important;
    padding: 0 !important;
    font-weight: bold !important;
    box-shadow: none !important;
    text-shadow: none !important;
    background: none !important;
    border: none !important;
    text-align: justify !important;
    display: -webkit-box !important;
    -webkit-line-clamp: 2 !important;
    -webkit-box-orient: vertical !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
}

.news-list-title a {
    text-decoration: none;
    color: #2c3e50;
    font-size: 17.6px !important;
    font-weight: bold !important;
    transition: color 0.3s ease;
    background: none !important;
    padding: 0 !important;
    margin: 0 !important;
    box-shadow: none !important;
    text-shadow: none !important;
    text-align: justify !important;
    display: -webkit-box !important;
    -webkit-line-clamp: 2 !important;
    -webkit-box-orient: vertical !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
}

.news-list-title a:hover {
    color: #3498db;
}

.news-read-more-btn {
    color: #3498db;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9rem;
    transition: color 0.3s ease;
    display: flex;
    align-items: center;
    gap: 5px;
}

.news-read-more-btn:hover {
    color: #2980b9;
}

/* Loading Spinner */
.loading-spinner {
    text-align: center;
    padding: 40px;
    color: #666;
}

.loading-spinner i {
    font-size: 2rem;
    margin-bottom: 10px;
}

/* News Section */
.news-section {
    background: #f8f9fa;
    padding: 60px 0;
}

.news-section h2 {
    text-align: center;
    margin-bottom: 40px;
    color: #2c3e50;
    font-size: 2.5rem;
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.news-item {
    background: white;
    border-radius: 5px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.news-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.news-image {
    height: 200px;
    overflow: hidden;
}

.news-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.news-item:hover .news-image img {
    transform: scale(1.05);
}

.news-content {
    padding: 25px;
}

.news-title {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 10px;
    color: #2c3e50;
}

.news-title a {
    text-decoration: none;
    color: inherit;
    transition: color 0.3s ease;
}

.news-title a:hover {
    color: #3498db;
}

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

.news-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.9rem;
    color: #999;
}

.news-date {
    display: flex;
    align-items: center;
    gap: 5px;
}

.news-load-more {
    text-align: center;
}

@media (max-width: 768px) {
    .news-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .news-section h2 {
        font-size: 1.8rem;
    }
}
