/* ===================================================
   DAL Real Estate — Approach / Services Cards
   =================================================== */

.dal-approach-section {
    padding: 70px 0;
    background-image: none;
    background-color: #fff;
    position: relative;
}

.dal-approach-section .container {
    position: relative;
    z-index: 1;
}

.dal-approach-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.dal-approach-card {
    background: #FFFCFA;
    border: 1px solid #e8e8e8;
    border-radius: 12px;
    padding: 60px 24px 32px;
    text-align: center;
    transition: box-shadow 0.3s ease, transform 0.3s ease;
    position: relative;
    overflow: hidden;
}

/* Background image layer */
.dal-approach-card-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    transition: transform 0.5s ease;
    z-index: 0;
}

/* Dark overlay */
.dal-approach-card-bg::after {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(20, 10, 5, 0.60);
    border-radius: 12px;
}

/* Keep content above overlay */
.dal-approach-card[data-bg] > *:not(.dal-approach-card-bg) {
    position: relative;
    z-index: 2;
}

/* Zoom on hover */
.dal-approach-card[data-bg]:hover .dal-approach-card-bg {
    transform: scale(1.06);
}

.dal-approach-card:hover {
    box-shadow: 0 8px 30px rgba(17, 17, 17, 0.20);
    transform: translateY(-4px);
}

.dal-approach-icon {
    font-size: 36px;
    color: #aa794d;
    margin-bottom: 18px;
    line-height: 1;
}

.dal-approach-card[data-bg] .dal-approach-icon {
    color: #e8c99a;
}

.dal-approach-title {
    font-family: 'GamilaArabic', sans-serif;
    font-size: 17px;
    font-weight: 700;
    color: #111111;
    margin: 0 0 12px;
    line-height: 1.4;
}

.dal-approach-card[data-bg] .dal-approach-title {
    color: #ffffff;
}

.dal-approach-desc {
    font-family: 'GamilaArabic', sans-serif;
    font-size: 14px;
    color: #aa794d;
    line-height: 1.75;
    margin: 0;
}

.dal-approach-card[data-bg] .dal-approach-desc {
    color: rgba(255, 255, 255, 0.82);
}

@media (max-width: 991px) {
    .dal-approach-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 576px) {
    .dal-approach-grid {
        grid-template-columns: 1fr;
    }
}

/* ===================================================
   DAL Real Estate — Project Cards
   Inspired by dal2 design
   =================================================== */

/* ---- Section ---- */
.dal-projects-section {
    padding: 80px 0;
    background-image: url('../images/funfact/bg3.png');
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    background-color: #FFFCFA;
    position: relative;
}

.dal-projects-section::before {
    position: absolute;
    content: "";
    background: #f7f2ed;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
}

.dal-projects-section::after {
    position: absolute;
    content: "";
    /*background: url('../images/funfact/fun_frame.png');*/
    width: 100%;
    height: 100%;
    bottom: 0;
    right: 0;
    background-repeat: no-repeat;
    background-position: bottom right;
    pointer-events: none;
}

.dal-projects-section .container {
    position: relative;
    z-index: 1;
}

/* Force light title colour inside this section */
.dal-projects-section .section_title {
    color: #111111 !important;
}

/* ---- Filter Buttons ---- */
.dal-filter-group {
    margin-bottom: 40px;
}

.dal-filter-btn {
    background: transparent;
    border: 1px solid #111111;
    color: #111111;
    font-family: 'GamilaArabic', sans-serif;
    font-size: 15px;
    font-weight: 600;
    border-radius: 20px;
    padding: 6px 22px;
    margin: 0 5px 8px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.dal-filter-btn:hover,
.dal-filter-btn.active {
    background: #111111;
    color: #ffffff;
}

/* ---- Grid ---- */
.dal-projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

/* ---- Card ---- */
.dal-project-card {
    background: #FFFCFA;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.07);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    overflow: hidden;
    position: relative;
}

/* Shine effect on hover */
.dal-project-card::after {
    content: "";
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: linear-gradient(135deg, rgba(255,255,255,0.3) 0%, rgba(255,255,255,0) 100%);
    opacity: 0;
    transition: opacity 0.3s;
    pointer-events: none;
    border-radius: 10px;
}

.dal-project-card:hover { box-shadow: 0 15px 40px rgba(0,0,0,0.13); }
.dal-project-card:hover::after { opacity: 1; }

/* ---- Card Image ---- */
.dal-card-image {
    width: 100%;
    height: 250px;
    overflow: hidden;
}

.dal-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease;
}

.dal-project-card:hover .dal-card-image img {
    transform: scale(1.05);
}

/* Placeholder when no image */
.dal-card-img-placeholder {
    width: 100%;
    height: 100%;
    background: #e8edf5;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #111111;
    font-size: 48px;
}

/* ---- Card Body ---- */
.dal-card-body {
    padding: 20px;
    background: #FFFCFA;
    border-radius: 0 0 10px 10px;
    text-align: right;
}

/* ---- Classification badge ---- */
.dal-card-classification {
    display: inline-block;
    font-size: 11px;
    font-weight: 700;
    color: var(--second-color);
    background: rgba(170, 121, 77, .12);
    border: 1px solid rgba(170, 121, 77, .25);
    border-radius: 20px;
    padding: 2px 12px;
    margin-bottom: 8px;
}

/* ---- Title ---- */
.dal-card-title {
    font-family: 'GamilaArabic', sans-serif;
    font-size: 18px;
    font-weight: 700;
    color: #111111;
    margin: 0 0 8px;
    line-height: 1.4;
}

/* ---- Location ---- */
.dal-card-location {
    /**-- display: flex; --*/
    align-items: center;
    justify-content: flex-end;
    gap: 6px;
    color: #6E7A7A;
    font-size: 14px;
    margin-bottom: 10px;
}

.dal-card-location i {
    color: #aa794d;
    font-size: 14px;
}

/* ---- Description ---- */
.dal-card-desc {
    font-family: 'GamilaArabic', sans-serif;
    font-size: 14px;
    color: #555;
    line-height: 1.7;
    margin-bottom: 14px;
}

/* ---- Tags — grey pill same as dal2 ---- */
.dal-card-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    justify-content: flex-end;
    margin-bottom: 0;
}

.dal-card-tag {
    background: #eeeeee;
    color: #555;
    font-size: 12px;
    font-weight: 500;
    padding: 3px 10px;
    border-radius: 20px;
    font-family: 'GamilaArabic', sans-serif;
    white-space: nowrap;
}

/* ---- Card Actions row ---- */
.dal-card-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 14px;
    align-items: center;
}

/* ---- Base button ---- */
.dal-btn-details {
    display: inline-flex;
    gap: 8px;
    align-items: center;
    background: #2C1810;
    color: #ffffff;
    border: 1px solid #111111;
    padding: 6px 18px;
    border-radius: 20px;
    font-family: 'GamilaArabic', sans-serif;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.25s ease;
    line-height: 1.4;
}
.dal-btn-details:hover {
    background: #8f6340;
    color: #ffffff;
    text-decoration: none;
    opacity: 1;
}

/* ---- View All ---- */
.dal-view-all-btn {
    display: inline-block;
    background: #2C1810;
    color: #ffffff;
    font-family: 'GamilaArabic', sans-serif;
    font-size: 15px;
    font-weight: 700;
    padding: 12px 40px;
    border-radius: 30px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.dal-view-all-btn:hover {
    background: #aa794d;
    color: #ffffff;
    text-decoration: none;
    transform: translateY(-2px);
}

/* ---- States ---- */
.dal-projects-loading {
    grid-column: 1 / -1;
    text-align: center;
    padding: 60px 0;
    color: #111111;
    font-size: 28px;
}

.dal-no-projects {
    grid-column: 1 / -1;
    text-align: center;
    padding: 60px 0;
    color: #7D879C;
    font-size: 15px;
}

/* ---- Fade-up animation for cards ---- */
@keyframes dalFadeUp {
    from { opacity: 0; transform: translateY(24px); }
    to   { opacity: 1; transform: translateY(0); }
}

.dal-project-card.fade-up {
    animation: dalFadeUp 0.5s ease both;
}

.dal-project-card.fade-up:nth-child(1) { animation-delay: 0.05s; }
.dal-project-card.fade-up:nth-child(2) { animation-delay: 0.15s; }
.dal-project-card.fade-up:nth-child(3) { animation-delay: 0.25s; }
.dal-project-card.fade-up:nth-child(4) { animation-delay: 0.35s; }

/* ---- Responsive ---- */
@media (max-width: 768px) {
    .dal-projects-grid {
        grid-template-columns: 1fr;
        perspective: none;
    }
    .dal-card-image { height: 200px; }
}

/* ===================================================
   Full Projects Page (projects.php)
   =================================================== */
.dal-page-body {
    padding: 60px 0 80px;
    background: #f8f9fa;
    min-height: 60vh;
}

.dal-page-filter-bar {
    margin-bottom: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
}

.dal-back-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #ffffff;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    margin-bottom: 24px;
}
.dal-back-link:hover { color: #aa794d; text-decoration: none; }

.dal-page-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    perspective: 1000px;
}

.dal-count {
    text-align: center;
    color: #7D879C;
    font-size: 14px;
    margin-bottom: 28px;
}

@media (max-width: 768px) {
    .dal-page-grid { grid-template-columns: 1fr; perspective: none; }
}
