/**
 * HOMEPAGE CSS - Rehomes Style
 * Real Estate Website
 * Based on Design: gioi_thieu_in_home.png, du_an_in_home.png,
 * thanh_tich_ca_nhan.png, video_gioi_thieu_ban_than.png, tin_tuc.png
 */

/* ==========================================================================
   LAZY LOAD STYLES - Smooth loading effect
   ========================================================================== */
/* Images before load */
img.lazy,
video.lazy {
    opacity: 0;
    transition: opacity 0.4s ease-in-out;
}

/* Images after load */
img.lazy.loaded,
img.lazy[data-ll-status="loaded"],
video.lazy.loaded,
video.lazy[data-ll-status="loaded"] {
    opacity: 1;
}

/* Background images lazy load */
.lazy[data-bg] {
    background-color: #f0f0f0;
}

/* Placeholder for images */
.project-card-image img.lazy:not(.loaded),
.news-card-image img.lazy:not(.loaded) {
    background: linear-gradient(110deg, #f0f0f0 8%, #fafafa 18%, #f0f0f0 33%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite linear;
}

@keyframes shimmer {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* Slider background lazy load */
.slide-bg.lazy {
    background-color: var(--color-primary);
}

.slide-bg.lazy[data-ll-status="loaded"] {
    background-color: transparent;
}

/* ==========================================================================
   SECTION 1: ABOUT / GIỚI THIỆU - gioi_thieu_in_home.png
   Design: Two-part layout - white top with stats, beige bottom with image overlap
   ========================================================================== */
.home-about-section {
    padding: 0;
    background-color: var(--bg-primary);
    overflow: visible;
}

/* Top Part - Header with stats (White background) */
.about-top {
    padding: 100px 0 120px;
    background: #fff;
}

.about-header {
    display: grid;
    grid-template-columns: 1.4fr 0.6fr;
    gap: 60px;
    align-items: flex-start;
}

.about-header-left {
    max-width: 85%;
}

/* Section title - Serif style like design (same font as slide-title) */
.about-header-left .section-title {
    font-family: var(--font-heading, 'DM Serif Display', serif);
    font-size: clamp(2rem, 4vw, 2.75rem);
    font-weight: 400;
    line-height: 1.25;
    color: var(--color-primary);
    letter-spacing: -0.01em;
}

.about-header-right {
    display: flex;
    gap: 60px;
    justify-content: flex-end;
    padding-top: 30px;
}

/* Stats - 49+ & 15 - Large numbers like design */
.about-stat {
    text-align: left;
    min-width: 140px;
}

.about-stat-number {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 100px;
    font-weight: 400;
    color: var(--color-secondary);
    line-height: 0.85;
    margin-bottom: 15px;
    position: relative;
    display: inline-block;
    letter-spacing: -0.03em;
}

/* First stat - gold/secondary color */
.about-stat:first-child .about-stat-number {
    color: var(--color-secondary);
}

/* Second stat - dark/primary color */
.about-stat:nth-child(2) .about-stat-number {
    color: var(--color-primary);
}

.about-stat-number sup {
    font-size: 32px;
    font-weight: 400;
    position: absolute;
    top: 15px;
    margin-left: 2px;
}

.about-stat:first-child .about-stat-number sup {
    color: var(--color-secondary);
}

.about-stat:nth-child(2) .about-stat-number sup {
    color: var(--color-primary);
}

.about-stat-label {
    font-family: var(--font-body);
    font-size: 14px;
    font-weight: 500;
    color: var(--text-primary);
    letter-spacing: 0;
    line-height: 1.4;
    text-align: center;
}

/* Bottom Part - Image and missions (Beige background) */
.about-bottom {
    background: linear-gradient(to right, white 17%, #f8f6f3 17%);
    padding: 100px 0 80px;
    position: relative;
    /* width: 100%;
    max-width: var(--container-max);
    margin-left: auto;
    margin-right: auto; */
    
}

.about-content-grid {
    display: grid;
    grid-template-columns: 43% 53%;
    gap: 4%;
    align-items: start;
}

/* Image overlapping into white section */
.about-image {
    position: relative;
    z-index: 10;
    margin-top: -2rem;
    margin-left: -4rem;

}

.about-image img {
    width: 100%;
   
    height: auto;
    object-fit: cover;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
    border-radius: 0.6rem;
    position: absolute;
    right: 0;
    top: 0;
    max-width: 525px;

   
}

/* Missions content */
.about-missions {
    padding-top: 0;
    padding-right: 20px;
}

.mission-block {
    margin-bottom: 30px;
}

.mission-block:last-child {
    margin-bottom: 40px;
}

.mission-title {
    font-family: var(--font-heading);
    font-size: 18px;
    font-weight: 600;
    color: var(--color-primary);
    margin-bottom: 15px;
    letter-spacing: 0;
}

.mission-text {
    font-family: var(--font-body);
    font-size: 15px;
    line-height: 1.8;
    color: var(--text-secondary);
    text-align: justify;
}

/* ==========================================================================
   SECTION 2: PROJECTS - du_an_in_home.png
   ========================================================================== */
.home-projects-section {
    padding: 100px 0;
    background-color: var(--bg-primary);
}

.projects-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 50px;
}

.projects-header-left {
    max-width: 650px;
}

/* Projects Grid - 3 columns with middle one spanning 2 rows */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: repeat(2, 280px);
    gap: 30px;
}

/* Card thứ 3 (ở giữa) - đặt vào cột 2, span 2 rows */
.projects-grid .project-card:nth-child(3) {
    grid-column: 2;
    grid-row: 1 / span 2;
}

.projects-grid .project-card:nth-child(3) .project-card-image {
    height: 100%;
}

/* Project Card */
.project-card {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
}

.project-card-link {
    display: block;
    width: 100%;
    height: 100%;
}

.project-card-image {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.project-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.7s cubic-bezier(0.25, 0.1, 0.25, 1);
}

.project-card:hover .project-card-image img {
    transform: scale(1.04);
}

.project-card-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 70%;
    background: linear-gradient(to top, rgba(0,0,0,0.75) 0%, transparent 100%);
    z-index: 1;
}

.project-card-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 25px;
    z-index: 2;
    transition: padding-bottom 0.4s cubic-bezier(0.25, 0.1, 0.25, 1);
    background-image: linear-gradient(to top, #000000bd, #00000000);
}

.project-card:hover .project-card-content {
    padding-bottom: 30px;
}

.project-card-title {
    font-family: var(--font-heading);
    font-size: 18px;
    font-weight: 600;
    color: #fff;
    margin-bottom: 6px;
    transition: color 0.3s ease;
    letter-spacing: -0.01em;
}

.project-card:hover .project-card-title {
    color: var(--color-secondary);
}

/* Location - hiển thị mặc định */
.project-card-location {
    font-family: var(--font-body);
    font-size: 13px;
    font-weight: 400;
    color: rgba(255,255,255,0.85);
    display: block;
    margin-bottom: 0;
    transition: margin-bottom 0.4s cubic-bezier(0.25, 0.1, 0.25, 1);
    text-align: justify;
}

.project-card-location i {
    margin-right: 5px;
    color: var(--color-secondary);
}

.project-card:hover .project-card-location {
    margin-bottom: 8px;
}

/* Mô tả - ẩn mặc định, hiện khi hover */
.project-card-desc {
    font-family: var(--font-body);
    font-size: 13px;
    font-weight: 400;
    color: rgba(255,255,255,0.75);
    line-height: 1.5;
    margin: 0;
    /* Ẩn mặc định */
    opacity: 0;
    transform: translateY(15px);
    max-height: 0;
    overflow: hidden;
    transition: opacity 0.4s cubic-bezier(0.25, 0.1, 0.25, 1),
                transform 0.4s cubic-bezier(0.25, 0.1, 0.25, 1),
                max-height 0.4s cubic-bezier(0.25, 0.1, 0.25, 1);
}

/* Hiện mô tả khi hover */
.project-card:hover .project-card-desc {
    opacity: 1;
    transform: translateY(0);
    max-height: 80px;
}

/* ==========================================================================
   SECTION 3: AWARDS - thanh_tich_ca_nhan.png
   ========================================================================== */
.home-awards-section {
    padding: 100px 0;
    background-color: var(--color-primary);
    position: relative;
    overflow: hidden;
}

/* Decorative wave background */
.home-awards-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 320'%3E%3Cpath fill='rgba(255,255,255,0.03)' d='M0,192L48,176C96,160,192,128,288,133.3C384,139,480,181,576,181.3C672,181,768,139,864,128C960,117,1056,139,1152,154.7C1248,171,1344,181,1392,186.7L1440,192L1440,320L1392,320C1344,320,1248,320,1152,320C1056,320,960,320,864,320C768,320,672,320,576,320C480,320,384,320,288,320C192,320,96,320,48,320L0,320Z'%3E%3C/path%3E%3C/svg%3E");
    background-size: cover;
}

.awards-container {
    position: relative;
    z-index: 1;
}

.awards-header {
    text-align: center;
    margin-bottom: 60px;
}

.awards-header .section-subtitle {
    color: var(--color-secondary);
    letter-spacing: 3px;
}

.awards-header .section-title {
    color: #fff;
}

/* Awards Carousel */
.awards-carousel {
    margin-top: 20px;
}

.awards-carousel .owl-stage-outer {
    overflow: hidden;
}

.awards-carousel .owl-dots {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 50px;
}

.awards-carousel .owl-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255,255,255,0.3);
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.awards-carousel .owl-dot.active {
    background: var(--color-secondary);
}

.awards-carousel .owl-nav {
    display: none;
}

/* Award Item */
.award-item {
    text-align: center;
    padding: 20px 15px;
}

.award-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 25px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.award-icon i {
    font-size: 70px;
    /* color: var(--color-secondary); */
    color: #bda588;
    line-height: 1;
    display: block;
}

.award-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.award-content {
    text-align: center;
}

.award-year {
    display: block;
    font-size: 14px;
    font-weight: 500;
    /* color: var(--color-secondary); */
    color: #bda588;
    margin-bottom: 12px;
}

.award-title {
    font-family: var(--font-heading);
    font-size: 18px;
    font-weight: 600;
    color: #fff;
    margin-bottom: 10px;
    line-height: 1.35;
    letter-spacing: -0.01em;
}

.award-desc {
    font-family: var(--font-body);
    font-size: 13px;
    color: rgba(255,255,255,0.6);
    line-height: 1.6;
    margin: 0;
}

/* ==========================================================================
   SECTION 4: VIDEO / TESTIMONIAL - video_gioi_thieu_ban_than.png
   ========================================================================== */
.home-video-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    min-height: 660px;
}

.video-content {
    background: #f8f6f3;
    padding: 80px 60px 80px 100px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

/* Decorative curve on the left - matching design */
.video-decor-curve {
    position: absolute;
    top: 40px;
    left: 25px;
    width: 60px;
    height: 120px;
    border-left: 2px solid rgba(0,0,0,0.08);
    border-top: 2px solid rgba(0,0,0,0.08);
    border-radius: 80px 0 0 0;
    pointer-events: none;
}

.video-decor-curve::after {
    content: '';
    position: absolute;
    bottom: -30px;
    left: -2px;
    width: 2px;
    height: 60px;
    background: linear-gradient(to bottom, rgba(0,0,0,0.08), transparent);
}

.video-content .section-subtitle {
    color: var(--color-secondary);
    margin-bottom: 20px;
    letter-spacing: 3px;
}

.video-content .section-title {
    color: var(--color-primary);
    font-size: 34px;
    font-weight: 600;
    line-height: 1.2;
    margin-bottom: 30px;
    max-width: 420px;
    position: relative;
    letter-spacing: -0.02em;
}

/* Quote icon - positioned to the right of title area */
.quote-icon {
    position: absolute;
    top: 140px;
    right: 60px;
    z-index: 1;
}

.quote-icon svg {
    width: 50px;
    height: 40px;
    color: var(--color-secondary);
    opacity: 0.5;
}

.video-quote {
    font-family: var(--font-body);
    font-size: 15px;
    font-style: italic;
    font-weight: 400;
    color: var(--text-secondary);
    line-height: 1.85;
    margin-bottom: 35px;
    max-width: 500px;
    position: relative;
    z-index: 2;
}

.video-author {
    display: flex;
    align-items: center;
    gap: 20px;
    padding-top: 25px;
    border-top: 1px solid rgba(0,0,0,0.08);
    max-width: 300px;
}

.author-line {
    width: 40px;
    height: 2px;
    background: rgba(0,0,0,0.15);
    flex-shrink: 0;
}

.video-author-info h5 {
    font-family: var(--font-heading);
    font-size: 16px;
    font-weight: 600;
    color: var(--color-primary);
    margin-bottom: 3px;
    letter-spacing: 0;
}

.video-author-info span {
    font-family: var(--font-body);
    font-size: 12px;
    font-weight: 400;
    color: var(--text-muted);
}

/* Video Side */
.video-media {
    position: relative;
    overflow: hidden;
}

.video-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Background Video */
.background-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(23, 62, 98, 0.25);
    pointer-events: none;
}

.video-play-btn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80px;
    height: 80px;
    background: rgba(255,255,255,0.95);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 2;
    border: none;
    text-decoration: none;
}

.video-play-btn:hover {
    transform: translate(-50%, -50%) scale(1.1);
    background: #fff;
}

.video-play-btn i {
    font-size: 24px;
    color: var(--color-primary);
    margin-left: 4px;
}

/* Video Sound Button */
.video-sound-btn {
    position: absolute;
    bottom: 20px;
    right: 20px;
    width: 45px;
    height: 45px;
    background: rgba(255,255,255,0.9);
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 3;
}

.video-sound-btn:hover {
    background: #fff;
    transform: scale(1.1);
}

.video-sound-btn i {
    font-size: 18px;
    color: var(--color-primary);
}

.video-sound-btn.unmuted i:before {
    content: "\f028"; /* fa-volume-up */
}

/* ==========================================================================
   SECTION 5: NEWS - tin_tuc.png
   ========================================================================== */
.home-news-section {
    padding: 100px 0;
    background-color: var(--bg-primary);
}

.news-header {
    text-align: center;
    margin-bottom: 50px;
}

.news-header .section-subtitle {
    margin-bottom: 15px;
}

/* News Grid - 3 columns */
.news-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

/* News Card */
.news-card {
    background: #fff;
}

.news-card-image {
    position: relative;
    overflow: hidden;
    height: 280px;
}

.news-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.7s cubic-bezier(0.25, 0.1, 0.25, 1);
}

.news-card:hover .news-card-image img {
    transform: scale(1.04);
}

.news-card-content {
    padding: 25px 5px;
}

/* Tags */
.news-card-tags {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
    flex-wrap: wrap;
}

.news-tag {
    display: inline-block;
    padding: 6px 14px;
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-radius: 3px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.news-tag.primary {
    background: var(--color-secondary);
    color: #fff;
}

.news-tag.secondary {
    background: var(--color-primary);
    color: #fff;
}

.news-tag:hover {
    opacity: 0.85;
}

.news-card-title {
    font-family: var(--font-heading);
    font-size: 18px;
    font-weight: 600;
    color: var(--color-primary);
    line-height: 1.35;
    margin-bottom: 15px;
    letter-spacing: -0.01em;
}

.news-card-title a {
    color: inherit;
    text-decoration: none;
    transition: color 0.3s ease;
}

.news-card-title a:hover {
    color: var(--color-secondary);
}

.news-card-meta {
    font-family: var(--font-body);
    font-size: 13px;
    color: var(--text-muted);
}

.news-card-meta .author {
    color: var(--text-primary);
    font-weight: 600;
}

.news-card-meta .separator {
    margin: 0 10px;
    color: var(--border-color);
}

/* ==========================================================================
   COMMON ELEMENTS
   ========================================================================== */

/* Section Subtitle - Modern uppercase label */
.section-subtitle {
    display: inline-block;
    font-family: var(--font-body);
    font-size: 11px;
    font-weight: 600;
    color: var(--color-secondary);
    text-transform: uppercase;
    letter-spacing: 3px;
    margin-bottom: 12px;
}

/* Section Title - Bold, modern heading */
.section-title {
    font-family: var(--font-heading);
    font-size: clamp(1.75rem, 3.5vw, 2.75rem);
    font-weight: 600;
    color: var(--color-primary);
    line-height: 1.2;
    margin-bottom: 0;
    letter-spacing: -0.02em;
}

/* View All Link */
.view-all-link {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-body);
    font-size: 11px;
    font-weight: 600;
    color: var(--color-secondary);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.view-all-link:hover {
    color: var(--color-primary);
}

.view-all-link i {
    transition: transform 0.3s ease;
}

.view-all-link:hover i {
    transform: translateX(5px);
}

/* Link Arrow */
.link-arrow {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-body);
    font-size: 11px;
    font-weight: 600;
    color: var(--color-primary);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.link-arrow:hover {
    color: var(--color-secondary);
}

.link-arrow i {
    transition: transform 0.3s ease;
}

.link-arrow:hover i {
    transform: translateX(5px);
}

.owl-carousel .owl-nav button.owl-next, .owl-carousel .owl-nav button.owl-prev, .owl-carousel button.owl-dot {
    background-color: #ffffff;
}

/* ==========================================================================
   RESPONSIVE - NEW SECTIONS
   ========================================================================== */

@media (min-width: 991px) {
    .about-image img {
        max-width: 110vh;

    }
}
@media (max-width: 1199px) {
    /* About Section */
    .about-top {
        padding: 80px 0 100px;
    }

    .about-header {
        gap: 40px;
    }

    .about-header-left .section-title {
        font-size: 2rem;
    }

    .about-header-right {
        gap: 40px;
    }

    .about-stat-number {
        font-size: 80px;
    }

    .about-stat-number sup {
        font-size: 26px;
        top: 12px;
    }

    .about-content-grid {
        /* gap: 50px; */
    }

    .about-image {
        margin-top: -150px;
    }

    .video-content {
        padding: 60px 50px;
    }

    .awards-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 40px;
    }
}

@media (max-width: 991px) {
    .home-projects-section,
    .home-news-section {
        padding: 70px 0;
    }

    /* About Section - Stack layout */
    .about-top {
        padding: 60px 0 80px;
    }

    .about-header {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .about-header-left {
        max-width: 100%;
    }

    .about-header-left .section-title {
        font-size: 1.75rem;
    }

    .about-header-right {
        justify-content: flex-start;
        gap: 50px;
    }

    .about-stat-number {
        font-size: 70px;
    }

    .about-bottom {
        padding: 60px 0;
        background: #f8f6f3;
    }

    .about-content-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .about-image {
        margin-top: 0;
        margin-left: 0;
        order: -1;
    }

    .about-image img {
        position: relative;
        max-width: 100%;
        width: 100%;
        right: auto;
        top: auto;
    }

    .about-missions {
        padding-right: 0;
    }

    .projects-grid {
        grid-template-columns: repeat(2, 1fr);
        grid-template-rows: auto;
    }

    .projects-grid .project-card:nth-child(2) {
        grid-row: span 1;
    }

    .projects-grid .project-card:nth-child(3) {
        grid-column: auto;
        grid-row: auto;
    }

    .projects-grid .project-card-image {
        height: 250px;
    }

    .home-video-section {
        grid-template-columns: 1fr;
    }

    .video-content {
        padding: 50px 30px;
        order: 1;
    }

    .video-decor-curve {
        display: none;
    }

    .quote-icon {
        top: 80px;
        right: 30px;
    }

    .video-media {
        min-height: 350px;
        order: 0;
    }

    .news-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 767px) {
    .home-projects-section,
    .home-awards-section,
    .home-news-section {
        padding: 50px 0;
    }

    /* About Section - Mobile 768px */
    .about-top {
        padding: 40px 0 50px;
    }

    .about-header {
        gap: 25px;
    }

    .about-header-left .section-title {
        font-size: 1.4rem;
        line-height: 1.3;
    }

    .about-header-right {
        width: 100%;
        justify-content: flex-start;
        gap: 30px;
        flex-wrap: wrap;
    }

    .about-stat {
        min-width: auto;
    }

    .about-stat-number {
        font-size: 48px;
    }

    .about-stat-number sup {
        font-size: 16px;
        top: 6px;
    }

    .about-stat-label {
        font-size: 12px;
    }

    .about-bottom {
        padding: 30px 0 40px;
        background: #f8f6f3;
    }

    .about-content-grid {
        gap: 25px;
    }

    .about-image {
        margin: 0;
    }

    .about-image img {
        position: relative;
        max-width: 100%;
        width: 100%;
        right: auto;
        top: auto;
        border-radius: 8px;
    }

    .about-missions {
        padding: 0 15px;
    }

    .mission-block {
        margin-bottom: 20px;
    }

    .mission-title {
        font-size: 15px;
        margin-bottom: 10px;
    }

    .mission-text {
        font-size: 14px;
        line-height: 1.7;
    }

    /* Projects Grid - 1 column on mobile */
    .projects-header {
        flex-direction: column;
        gap: 15px;
        margin-bottom: 30px;
    }

    .projects-grid,
    .news-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .projects-grid .project-card:nth-child(3) {
        grid-column: auto;
        grid-row: auto;
    }

    .projects-grid .project-card-image,
    .projects-grid .project-card:nth-child(3) .project-card-image {
        height: 200px;
    }

    .project-card-content {
        padding: 20px;
    }

    .project-card-title {
        font-size: 16px;
    }

    /* Awards */
    .awards-header {
        margin-bottom: 40px;
    }

    .awards-grid {
        grid-template-columns: 1fr 1fr;
        gap: 20px;
    }

    .award-item {
        padding: 15px 10px;
    }

    .award-icon {
        width: 50px;
        height: 50px;
        margin-bottom: 12px;
    }

    .award-icon i {
        font-size: 50px;
    }

    .award-title {
        font-size: 14px;
    }

    .award-year {
        font-size: 12px;
    }

    /* Video Section */
    .video-content {
        padding: 30px 20px;
    }

    .video-content .section-subtitle {
        font-size: 10px;
        letter-spacing: 2px;
    }

    .video-content .section-title {
        font-size: 22px;
        margin-bottom: 20px;
    }

    .video-quote {
        font-size: 14px;
        line-height: 1.7;
        margin-bottom: 25px;
    }

    .video-author {
        padding-top: 20px;
        gap: 15px;
    }

    .video-author-info h5 {
        font-size: 14px;
    }

    .quote-icon {
        position: static;
        margin-bottom: 15px;
    }

    .quote-icon svg {
        width: 35px;
        height: 28px;
    }

    .video-media {
        min-height: 250px;
    }

    /* News Section */
    .news-header {
        margin-bottom: 30px;
    }

    .news-card-image {
        height: 200px;
    }

    .news-card-content {
        padding: 20px 10px;
    }

    .news-card-title {
        font-size: 15px;
    }

    .news-card-tags {
        gap: 8px;
        margin-bottom: 12px;
    }

    .news-tag {
        padding: 4px 10px;
        font-size: 9px;
    }
}

@media (max-width: 480px) {
    /* About Section - Small Mobile */
    .about-top {
        padding: 30px 0 40px;
    }

    .about-header {
        gap: 20px;
    }

    .about-header-left .section-title {
        font-size: 1.25rem;
    }

    .about-header-right {
        flex-direction: row;
        justify-content: space-between;
        gap: 15px;
    }

    .about-stat {
        flex: 1;
        text-align: center;
    }

    .about-stat-number {
        font-size: 36px;
    }

    .about-stat-number sup {
        font-size: 14px;
        top: 4px;
    }

    .about-stat-label {
        font-size: 11px;
    }

    .about-bottom {
        padding: 25px 0 30px;
    }

    .about-content-grid {
        gap: 20px;
    }

    .about-missions {
        padding: 0 10px;
    }

    .mission-block {
        margin-bottom: 15px;
    }

    .mission-title {
        font-size: 14px;
    }

    .mission-text {
        font-size: 13px;
        line-height: 1.6;
    }

    /* Projects & News */
    .home-projects-section,
    .home-news-section {
        padding: 40px 0;
    }

    .projects-header-left .section-subtitle,
    .news-header .section-subtitle {
        font-size: 10px;
        letter-spacing: 2px;
    }

    .projects-header-left .section-title,
    .news-header .section-title {
        font-size: 1.25rem;
    }

    .view-all-link {
        font-size: 10px;
    }

    .projects-grid {
        gap: 15px;
    }

    .projects-grid .project-card-image,
    .projects-grid .project-card:nth-child(3) .project-card-image {
        height: 100%;
    }

    /* Tall images (home_height type) - preserve aspect ratio on mobile */
    .projects-grid .project-card-image.image-tall {
        height: auto;
        min-height: 300px;
        max-height: 450px;
    }

    .projects-grid .project-card-image.image-tall img {
        height: 100%;
        min-height: 300px;
        max-height: 450px;
    }

    .project-card-content {
        padding: 15px;
    }

    .project-card-title {
        font-size: 14px;
        margin-bottom: 4px;
    }

    .project-card-location {
        font-size: 11px;
    }

    .project-card-desc {
        font-size: 11px;
    }

    /* Awards */
    .home-awards-section {
        padding: 40px 0;
    }

    .awards-header {
        margin-bottom: 30px;
    }

    .awards-header .section-subtitle {
        font-size: 10px;
    }

    .awards-header .section-title {
        font-size: 1.25rem;
    }

    .awards-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .award-item {
        padding: 20px 15px;
        display: flex;
        flex-direction: row;
        align-items: center;
        text-align: left;
        gap: 15px;
    }

    .award-icon {
        width: 45px;
        height: 45px;
        margin: 0;
        flex-shrink: 0;
    }

    .award-icon i {
        font-size: 40px;
    }

    .award-content {
        text-align: left;
    }

    .award-title {
        font-size: 13px;
        margin-bottom: 5px;
    }

    .award-year {
        font-size: 11px;
        margin-bottom: 8px;
    }

    .award-desc {
        font-size: 11px;
    }

    /* Video Section */
    .video-content {
        padding: 25px 15px;
    }

    .video-content .section-title {
        font-size: 18px;
        max-width: 80%;
    }

    .video-quote {
        font-size: 13px;
        max-width: 100%;
    }

    .video-author {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .author-line {
        display: none;
    }

    .video-media {
        min-height: 400px;
    }

    .video-play-btn {
        width: 60px;
        height: 60px;
    }

    .video-play-btn i {
        font-size: 18px;
    }

    /* News Section */
    .news-grid {
        gap: 15px;
    }

    .news-card-image {
        height: 180px;
    }

    .news-card-content {
        padding: 15px 10px;
    }

    .news-card-title {
        font-size: 14px;
        margin-bottom: 10px;
    }

    .news-card-meta {
        font-size: 11px;
    }
}

/* Extra small devices - 375px and below */
@media (max-width: 375px) {
    .about-top {
        padding: 25px 0 30px;
    }

    .about-header-left .section-title {
        font-size: 1.1rem;
    }

    .about-stat-number {
        font-size: 32px;
    }

    .about-stat-number sup {
        font-size: 12px;
        top: 3px;
    }

    .about-stat-label {
        font-size: 10px;
    }

    .projects-header-left .section-title,
    .news-header .section-title,
    .awards-header .section-title {
        font-size: 1.1rem;
    }

    .projects-grid .project-card-image,
    .projects-grid .project-card:nth-child(3) .project-card-image {
        height: 100%;
    }

    /* Tall images (home_height type) - preserve aspect ratio on mobile */
    .projects-grid .project-card-image.image-tall {
        height: auto;
        min-height: 280px;
        max-height: 400px;
    }

    .projects-grid .project-card-image.image-tall img {
        height: 100%;
        min-height: 280px;
        max-height: 400px;
    }

    .video-content .section-title {
        font-size: 16px;
    }

    .video-quote {
        font-size: 12px;
    }
}

/* ==========================================================================
   OLD STYLES - KEEP FOR COMPATIBILITY
   ========================================================================== */

/* ==========================================================================
   HERO SLIDER SECTION
   ========================================================================== */
.hero-slider {
    position: relative;
    overflow: hidden;
}

.hero-slider .owl-carousel .owl-item img {
    height: 100vh;
    min-height: 600px;
    max-height: 900px;
    object-fit: cover;
}

.hero-slide {
    position: relative;
}

.hero-slide::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to right, rgba(23, 62, 98, 0.85) 0%, rgba(23, 62, 98, 0.4) 50%, transparent 100%);
    z-index: 1;
}

.hero-content {
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    transform: translateY(-50%);
    z-index: 2;
    color: var(--color-white);
}

.hero-content .container {
    max-width: 1290px;
}

.hero-subtitle {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: var(--fs-sm);
    font-weight: var(--fw-medium);
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--color-secondary);
    margin-bottom: 20px;
}

.hero-subtitle::before {
    content: '';
    width: 50px;
    height: 2px;
    background-color: var(--color-secondary);
}

.hero-title {
    font-family: var(--font-heading);
    font-size: 60px;
    font-weight: var(--fw-normal);
    line-height: 1.2;
    margin-bottom: 25px;
    max-width: 650px;
}

.hero-title span {
    color: var(--color-secondary);
}

.hero-description {
    font-size: var(--fs-lg);
    line-height: 1.7;
    margin-bottom: 35px;
    max-width: 550px;
    opacity: 0.9;
}

.hero-buttons {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

/* Hero Slider Navigation */
.hero-slider .owl-nav {
    position: absolute;
    bottom: 50px;
    right: 100px;
    display: flex;
    gap: 10px;
}

.hero-slider .owl-nav button {
    width: 50px;
    height: 50px;
    background-color: rgba(255, 255, 255, 0.2) !important;
    border: 1px solid rgba(255, 255, 255, 0.3) !important;
    color: var(--color-white) !important;
    border-radius: var(--radius-sm);
    font-size: 18px;
    transition: all var(--transition-fast);
}

.hero-slider .owl-nav button:hover {
    background-color: var(--color-secondary) !important;
    border-color: var(--color-secondary) !important;
}

.hero-slider .owl-dots {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
}

.hero-slider .owl-dots .owl-dot span {
    width: 12px;
    height: 12px;
    background-color: rgba(255, 255, 255, 0.4);
    border-radius: 50%;
    transition: all var(--transition-fast);
}

.hero-slider .owl-dots .owl-dot.active span {
    background-color: var(--color-secondary);
    transform: scale(1.2);
}

/* ==========================================================================
   ABOUT SECTION
   ========================================================================== */
.about-section {
    padding: var(--section-padding) 0;
    background-color: var(--bg-light);
}

.about-image-wrap {
    position: relative;
}

.about-image-wrap img {
    width: 100%;
    border-radius: var(--radius-md);
}

.about-experience {
    position: absolute;
    bottom: 30px;
    right: -30px;
    background-color: var(--color-secondary);
    color: var(--color-white);
    padding: 30px 40px;
    text-align: center;
    border-radius: var(--radius-md);
}

.about-experience .number {
    display: block;
    font-family: var(--font-heading);
    font-size: 48px;
    font-weight: var(--fw-bold);
    line-height: 1;
}

.about-experience .text {
    font-size: var(--fs-sm);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.about-content {
    padding-left: 50px;
}

.about-content .section-subtitle {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: var(--fs-sm);
    font-weight: var(--fw-medium);
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--color-secondary);
    margin-bottom: 15px;
}

.about-content .section-subtitle::before {
    content: '';
    width: 40px;
    height: 2px;
    background-color: var(--color-secondary);
}

.about-content .section-title {
    font-family: var(--font-heading);
    font-size: var(--fs-4xl);
    font-weight: var(--fw-normal);
    color: var(--color-primary);
    margin-bottom: 20px;
    line-height: 1.2;
}

.about-text {
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 25px;
}

.about-features {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-bottom: 30px;
}

.about-feature-item {
    display: flex;
    align-items: flex-start;
    gap: 15px;
}

.about-feature-item i {
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--color-primary);
    color: var(--color-white);
    border-radius: var(--radius-sm);
    font-size: 20px;
    flex-shrink: 0;
}

.about-feature-item h5 {
    font-family: var(--font-heading);
    font-size: var(--fs-lg);
    margin-bottom: 5px;
    color: var(--color-primary);
}

.about-feature-item p {
    font-size: var(--fs-sm);
    color: var(--text-muted);
    margin: 0;
}

/* ==========================================================================
   SERVICES SECTION
   ========================================================================== */
.services-section {
    padding: var(--section-padding) 0;
    background-color: var(--color-white);
}

.section-header {
    text-align: center;
    margin-bottom: 50px;
}

.section-header .section-subtitle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    font-size: var(--fs-sm);
    font-weight: var(--fw-medium);
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--color-secondary);
    margin-bottom: 15px;
}

.section-header .section-subtitle::before,
.section-header .section-subtitle::after {
    content: '';
    width: 40px;
    height: 2px;
    background-color: var(--color-secondary);
}

.section-header .section-title {
    font-family: var(--font-heading);
    font-size: var(--fs-4xl);
    font-weight: var(--fw-normal);
    color: var(--color-primary);
    margin-bottom: 15px;
}

.section-header .section-desc {
    max-width: 600px;
    margin: 0 auto;
    color: var(--text-secondary);
}

/* Service Card */
.service-item {
    text-align: center;
    padding: 40px 30px;
    background-color: var(--bg-light);
    border-radius: var(--radius-md);
    transition: all var(--transition-base);
    height: 100%;
}

.service-item:hover {
    background-color: var(--color-primary);
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
}

.service-icon {
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 25px;
    background-color: var(--color-white);
    border-radius: 50%;
    transition: all var(--transition-base);
}

.service-icon i {
    font-size: 36px;
    color: var(--color-primary);
    transition: color var(--transition-base);
}

.service-item:hover .service-icon {
    background-color: var(--color-secondary);
}

.service-item:hover .service-icon i {
    color: var(--color-white);
}

.service-item h4 {
    font-family: var(--font-heading);
    font-size: var(--fs-xl);
    color: var(--color-primary);
    margin-bottom: 15px;
    transition: color var(--transition-base);
}

.service-item:hover h4 {
    color: var(--color-white);
}

.service-item p {
    font-size: var(--fs-sm);
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 20px;
    transition: color var(--transition-base);
}

.service-item:hover p {
    color: rgba(255, 255, 255, 0.8);
}

.service-item .link-arrow {
    color: var(--color-primary);
}

.service-item:hover .link-arrow {
    color: var(--color-secondary);
}

/* ==========================================================================
   FEATURED PROJECTS SECTION
   ========================================================================== */
.projects-section {
    padding: var(--section-padding) 0;
    background-color: var(--bg-secondary);
}

.projects-section .section-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    text-align: left;
    margin-bottom: 50px;
}

.projects-section .section-header-left {
    max-width: 500px;
}

.projects-section .section-header-left .section-subtitle {
    justify-content: flex-start;
}

.projects-section .section-header-left .section-subtitle::after {
    display: none;
}

/* Project Card */
.project-card {
    margin-bottom: 30px;
}

.project-card-inner {
    position: relative;
    overflow: hidden;
    border-radius: var(--radius-md);
    background-color: var(--color-white);
    box-shadow: var(--shadow-sm);
    transition: all var(--transition-base);
}

.project-card-inner:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-5px);
}

.project-thumbnail {
    position: relative;
    overflow: hidden;
    aspect-ratio: 4/3;
}

.project-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-slow);
}

.project-card-inner:hover .project-thumbnail img {
    transform: scale(1.1);
}

.project-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to top, rgba(23, 62, 98, 0.9) 0%, transparent 60%);
    opacity: 0;
    transition: opacity var(--transition-base);
}

.project-card-inner:hover .project-overlay {
    opacity: 1;
}

.project-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 25px;
    color: var(--color-white);
    transform: translateY(20px);
    opacity: 0;
    transition: all var(--transition-base);
}

.project-card-inner:hover .project-content {
    transform: translateY(0);
    opacity: 1;
}

.project-content .line {
    width: 50px;
    height: 2px;
    background-color: var(--color-secondary);
    margin-bottom: 15px;
}

.project-content h4 {
    font-family: var(--font-heading);
    font-size: var(--fs-xl);
    font-weight: var(--fw-normal);
    margin-bottom: 8px;
}

.project-content h4 a {
    color: var(--color-white);
}

.project-content h4 a:hover {
    color: var(--color-secondary);
}

.project-location {
    font-size: var(--fs-sm);
    color: rgba(255, 255, 255, 0.8);
    display: flex;
    align-items: center;
    gap: 5px;
}

.project-location i {
    color: var(--color-secondary);
}

/* Project Status Badge */
.project-status {
    position: absolute;
    top: 20px;
    left: 20px;
    padding: 6px 15px;
    background-color: var(--color-secondary);
    color: var(--color-white);
    font-size: var(--fs-xs);
    font-weight: var(--fw-medium);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-radius: var(--radius-sm);
    z-index: 2;
}

.project-status.sold {
    background-color: #e74c3c;
}

.project-status.coming {
    background-color: var(--color-primary);
}

/* ==========================================================================
   STATS SECTION (Counter)
   ========================================================================== */
.stats-section {
    padding: 80px 0;
    background-color: var(--color-primary);
    color: var(--color-white);
}

.stat-item {
    text-align: center;
    padding: 20px;
}

.stat-number {
    font-family: var(--font-heading);
    font-size: 60px;
    font-weight: var(--fw-bold);
    line-height: 1;
    margin-bottom: 10px;
    color: var(--color-secondary);
}

.stat-number span {
    font-size: 40px;
}

.stat-label {
    font-size: var(--fs-sm);
    text-transform: uppercase;
    letter-spacing: 1px;
    opacity: 0.8;
}

/* ==========================================================================
   BLOG SECTION
   ========================================================================== */
.blog-section {
    padding: var(--section-padding) 0;
    background-color: var(--color-white);
}

.blog-card {
    background-color: var(--color-white);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: all var(--transition-base);
    height: 100%;
}

.blog-card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-5px);
}

.blog-thumbnail {
    position: relative;
    overflow: hidden;
    aspect-ratio: 16/10;
}

.blog-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-slow);
}

.blog-card:hover .blog-thumbnail img {
    transform: scale(1.05);
}

.blog-date {
    position: absolute;
    top: 20px;
    left: 20px;
    background-color: var(--color-secondary);
    color: var(--color-white);
    padding: 10px 15px;
    text-align: center;
    border-radius: var(--radius-sm);
}

.blog-date .day {
    display: block;
    font-family: var(--font-heading);
    font-size: var(--fs-2xl);
    font-weight: var(--fw-bold);
    line-height: 1;
}

.blog-date .month {
    font-size: var(--fs-xs);
    text-transform: uppercase;
}

.blog-content {
    padding: 25px;
}

.blog-category {
    display: inline-block;
    padding: 4px 12px;
    background-color: var(--bg-secondary);
    color: var(--color-primary);
    font-size: var(--fs-xs);
    font-weight: var(--fw-medium);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-radius: var(--radius-sm);
    margin-bottom: 12px;
}

.blog-category:hover {
    background-color: var(--color-primary);
    color: var(--color-white);
}

.blog-card h4 {
    font-family: var(--font-heading);
    font-size: var(--fs-xl);
    font-weight: var(--fw-normal);
    line-height: 1.3;
    margin-bottom: 12px;
}

.blog-card h4 a {
    color: var(--color-primary);
}

.blog-card h4 a:hover {
    color: var(--color-secondary);
}

.blog-excerpt {
    font-size: var(--fs-sm);
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 15px;
}

/* ==========================================================================
   CTA SECTION
   ========================================================================== */
.cta-section {
    padding: 100px 0;
    background-image: url('../images/cta-bg.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    position: relative;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(23, 62, 98, 0.9);
}

.cta-content {
    position: relative;
    z-index: 1;
    text-align: center;
    color: var(--color-white);
    max-width: 700px;
    margin: 0 auto;
}

.cta-content .section-subtitle {
    color: var(--color-secondary);
    margin-bottom: 15px;
}

.cta-content h2 {
    font-family: var(--font-heading);
    font-size: var(--fs-4xl);
    font-weight: var(--fw-normal);
    margin-bottom: 20px;
}

.cta-content p {
    font-size: var(--fs-lg);
    opacity: 0.9;
    margin-bottom: 30px;
}

.cta-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

/* ==========================================================================
   PARTNERS SECTION
   ========================================================================== */
.partners-section {
    padding: 60px 0;
    background-color: var(--bg-light);
}

.partner-logo {
    padding: 20px 30px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.partner-logo img {
    max-height: 60px;
    filter: grayscale(100%);
    opacity: 0.6;
    transition: all var(--transition-fast);
}

.partner-logo:hover img {
    filter: grayscale(0%);
    opacity: 1;
}

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */
@media (max-width: 1199.98px) {
    .hero-title {
        font-size: 48px;
    }

    .about-content {
        padding-left: 30px;
    }
}

@media (max-width: 991.98px) {
    .hero-title {
        font-size: 42px;
    }

    .hero-slider .owl-nav {
        right: 30px;
    }

    .about-content {
        padding-left: 0;
        padding-top: 40px;
    }

    .about-experience {
        right: 20px;
    }

    .projects-section .section-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 20px;
    }

    .stat-number {
        font-size: 48px;
    }
}

@media (max-width: 767.98px) {
    .hero-slider .owl-carousel .owl-item img {
        height: 70vh;
        min-height: 500px;
    }

    .hero-title {
        font-size: 32px;
    }

    .hero-description {
        font-size: var(--fs-base);
    }

    .hero-slider .owl-nav {
        display: none;
    }

    .about-features {
        grid-template-columns: 1fr;
    }

    .about-experience {
        position: relative;
        right: 0;
        bottom: 0;
        margin-top: 20px;
        display: inline-block;
    }

    .stat-item {
        margin-bottom: 30px;
    }

    .stat-number {
        font-size: 42px;
    }

    .cta-content h2 {
        font-size: var(--fs-3xl);
    }
}
