/* ==========================================================================
   CSS DỰ ÁN NỔI BẬT TRANG CHỦ (FEATURED PROJECTS SLIDER - HOME)
   File độc lập dành riêng cho application/views/web/_bdsDxCore/project/home/_projectTop.php
   Thiết kế Modern Card UI chuẩn Bất Động Sản cao cấp
   ========================================================================== */

#top_project_section {
    position: relative;
    overflow: visible;
    margin: 32px 0 24px;
    background: transparent;
}

#top_project_section .re__content-container {
    position: relative;
}

/* --------------------------------------------------------------------------
   1. SECTION HEADER
   -------------------------------------------------------------------------- */
#top_project_section .dx-project-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    margin-bottom: 20px;
    gap: 16px;
}

#top_project_section .dx-project-heading {
    position: relative;
    padding-left: 16px;
}

#top_project_section .dx-project-heading::before {
    content: "";
    position: absolute;
    left: 0;
    top: 3px;
    bottom: 3px;
    width: 4px;
    border-radius: 4px;
    background: linear-gradient(180deg, #e03c31 0%, #ff5e52 100%);
}

#top_project_section .dx-project-eyebrow {
    display: block;
    margin-bottom: 4px;
    color: #e03c31;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
}

#top_project_section .dx-project-title {
    display: block;
    margin: 0;
    color: #1e293b;
    font-size: 24px;
    font-weight: 700;
    line-height: 1.25;
    letter-spacing: -0.3px;
}

#top_project_section .dx-project-description {
    display: block;
    margin-top: 5px;
    color: #64748b;
    font-size: 13.5px;
    line-height: 1.4;
}

#top_project_section .dx-project-view-all {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    border: 1px solid #e2e8f0;
    border-radius: 20px;
    background: #ffffff;
    color: #334155;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
    transition: all 0.25s cubic-bezier(0.165, 0.84, 0.44, 1);
    white-space: nowrap;
}

#top_project_section .dx-project-view-all i {
    color: #e03c31;
    font-size: 13px;
    transition: transform 0.25s ease;
}

#top_project_section .dx-project-view-all:hover {
    background: #fff5f5;
    border-color: #fca5a5;
    color: #e03c31;
    box-shadow: 0 4px 12px rgba(224, 60, 49, 0.14);
}

#top_project_section .dx-project-view-all:hover i {
    transform: translateX(4px);
}

/* --------------------------------------------------------------------------
   2. SLIDER CONTAINER & SWIPER OVERRIDES
   -------------------------------------------------------------------------- */
#top_project {
    position: relative;
}

#top_project .swiper-container {
    overflow: hidden;
    padding: 10px 4px 24px;
}

#top_project .swiper-wrapper {
    display: flex;
}

#top_project .swiper-slide {
    width: 285px !important;
    height: auto;
    box-sizing: border-box;
    flex-shrink: 0;
}

/* --------------------------------------------------------------------------
   3. MODERN PROJECT CARD
   -------------------------------------------------------------------------- */
#top_project .dx-project-card {
    position: relative;
    width: 285px;
    height: 100%;
    display: flex;
    flex-direction: column;
    background: #ffffff;
    border: 1px solid #e9ecef;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 4px 14px -2px rgba(15, 23, 42, 0.06), 0 2px 6px -1px rgba(15, 23, 42, 0.03);
    transition: transform 0.35s cubic-bezier(0.165, 0.84, 0.44, 1),
                box-shadow 0.35s cubic-bezier(0.165, 0.84, 0.44, 1),
                border-color 0.35s ease;
}

#top_project .dx-project-card:hover {
    transform: translateY(-7px);
    border-color: #fca5a5;
    box-shadow: 0 18px 36px -6px rgba(224, 60, 49, 0.14),
                0 8px 16px -4px rgba(15, 23, 42, 0.06);
}

#top_project .dx-project-link {
    display: flex;
    flex-direction: column;
    height: 100%;
    color: inherit;
    text-decoration: none;
}

/* --------------------------------------------------------------------------
   4. IMAGE & MEDIA
   -------------------------------------------------------------------------- */
#top_project .dx-project-image {
    position: relative;
    width: 100%;
    height: 185px;
    overflow: hidden;
    background: #f1f5f9;
}

#top_project .dx-project-image::after {
    content: "";
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;
    height: 65px;
    background: linear-gradient(180deg, transparent 0%, rgba(0, 0, 0, 0.35) 100%);
    pointer-events: none;
    z-index: 1;
}

#top_project .dx-project-image img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.2, 0, 0.2, 1);
}

#top_project .dx-project-card:hover .dx-project-image img {
    transform: scale(1.08);
}

/* Status badge (Frosted Glassmorphism) */
#top_project .dx-project-status {
    position: absolute;
    top: 12px;
    left: 12px;
    z-index: 3;
    display: inline-flex;
    align-items: center;
    max-width: calc(100% - 24px);
    padding: 5px 11px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.94);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.7);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
    font-size: 11px;
    font-weight: 700;
    line-height: 1.2;
}

#top_project .dx-project-status .proj-status {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

#top_project .dx-project-status i {
    font-size: 7px;
}

/* Type icon */
#top_project .dx-project-image-icon {
    position: absolute;
    right: 12px;
    bottom: 12px;
    z-index: 3;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.45);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    color: #ffffff;
    font-size: 12px;
    border: 1px solid rgba(255, 255, 255, 0.35);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}

/* --------------------------------------------------------------------------
   5. CARD CONTENT BODY
   -------------------------------------------------------------------------- */
#top_project .dx-project-body {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    padding: 16px 18px 16px;
    background: #ffffff;
}

#top_project .dx-project-name {
    margin: 0 0 10px;
    font-size: 15.5px;
    font-weight: 700;
    line-height: 1.4;
    color: #1e293b;
    min-height: 44px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    transition: color 0.25s ease;
}

#top_project .dx-project-card:hover .dx-project-name {
    color: #e03c31;
}

/* Meta: Area & Location */
#top_project .dx-project-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    padding-top: 10px;
    border-top: 1px solid #f1f5f9;
    font-size: 12px;
    color: #64748b;
}

#top_project .dx-project-area {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-weight: 600;
    color: #0284c7;
    background: #f0f9ff;
    padding: 3px 7px;
    border-radius: 5px;
    white-space: nowrap;
}

#top_project .dx-project-area i {
    font-size: 11px;
    color: #0284c7;
}

#top_project .dx-project-dot {
    width: 3px;
    height: 3px;
    border-radius: 50%;
    background: #cbd5e1;
    flex-shrink: 0;
}

#top_project .dx-project-location {
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    color: #64748b;
    font-size: 12px;
    line-height: 1.4;
}

/* Card Footer: CTA */
#top_project .dx-project-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: auto;
    padding-top: 11px;
    border-top: 1px solid #f8fafc;
    font-size: 12px;
    font-weight: 600;
    color: #e03c31;
    transition: color 0.2s ease;
}

#top_project .dx-project-footer i {
    font-size: 13px;
    transition: transform 0.25s ease;
}

#top_project .dx-project-card:hover .dx-project-footer i {
    transform: translateX(4px);
}

/* --------------------------------------------------------------------------
   6. SLIDER NAVIGATION BUTTONS (PREV / NEXT)
   -------------------------------------------------------------------------- */
#top_project .dx-project-nav {
    position: absolute;
    top: calc(50% - 14px);
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #ffffff;
    color: #1e293b;
    border: 1px solid #e2e8f0;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.1);
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.165, 0.84, 0.44, 1);
    text-decoration: none;
}

#top_project .dx-project-nav:hover {
    background: #e03c31;
    color: #ffffff;
    border-color: #e03c31;
    transform: scale(1.08);
    box-shadow: 0 6px 18px rgba(224, 60, 49, 0.3);
}

#top_project .dx-project-nav-left {
    left: -16px;
}

#top_project .dx-project-nav-right {
    right: -16px;
}

#top_project .dx-project-nav.swiper-button-disabled {
    opacity: 0.35;
    cursor: not-allowed;
    pointer-events: none;
}
