/**
 * Project Cards - Modern Professional Design
 * تصميم كروت المشاريع الاحترافي الحديث
 */

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 35px;
    margin-top: 40px;
    padding: 20px 0;
}

.project-card {
    background: var(--white);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.project-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.12);
}

/* Project Image */
.project-card-image,
.project-thumbnail {
    position: relative;
    height: 260px;
    overflow: hidden;
    background: var(--bg-dark);
}

.project-card-image img,
.project-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.project-card:hover .project-card-image img,
.project-card:hover .project-thumbnail img {
    transform: scale(1.08);
}

/* Project Badge/Label */
.project-badge,
.project-location {
    position: absolute;
    top: 16px;
    right: 16px;
    background: rgba(30, 58, 95, 0.92);
    backdrop-filter: blur(8px);
    color: var(--white);
    padding: 8px 16px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    z-index: 2;
    display: flex;
    align-items: center;
    gap: 6px;
}

.project-badge i {
    font-size: 14px;
}

/* Featured Badge */
.featured-badge {
    position: absolute;
    top: 16px;
    left: 16px;
    background: var(--gradient-primary, linear-gradient(135deg, #C17A4A, #a05f35));
    color: var(--white);
    padding: 6px 14px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 700;
    z-index: 2;
}

/* Project Content */
.project-card-content,
.project-content {
    padding: 24px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.project-card-title,
.project-title {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--secondary-color);
    margin: 0 0 12px;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.project-card-title a,
.project-title a {
    color: inherit;
    text-decoration: none;
    transition: color 0.3s;
}

.project-card-title a:hover,
.project-title a:hover {
    color: var(--primary-color);
}

/* Project Description */
.project-card-excerpt {
    font-size: 14px;
    color: var(--text-light);
    line-height: 1.7;
    margin-bottom: 16px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Project Meta Info */
.project-card-meta,
.project-meta {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
    margin-bottom: 20px;
    padding: 18px;
    background: var(--bg-light);
    border-radius: 10px;
}

.meta-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.meta-label {
    font-size: 12px;
    color: var(--text-lighter);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.meta-value {
    font-size: 16px;
    font-weight: 700;
    color: var(--secondary-color);
}

.meta-value.price {
    color: var(--primary-color);
    font-size: 18px;
}

/* Project Price Highlight */
.project-price-tag {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: var(--white);
    padding: 12px 18px;
    border-radius: 10px;
    margin-bottom: 16px;
    text-align: center;
}

.price-label {
    font-size: 12px;
    opacity: 0.9;
    display: block;
    margin-bottom: 4px;
}

.price-value {
    font-size: 22px;
    font-weight: 800;
}

/* Project Actions */
.project-actions {
    display: flex;
    gap: 10px;
    margin-top: auto;
}

.project-actions .btn {
    flex: 1;
    justify-content: center;
    font-size: 14px;
    padding: 12px 20px;
}

/* Responsive */
@media (max-width: 768px) {
    .projects-grid {
        grid-template-columns: 1fr;
        gap: 25px;
    }

    .project-card-image,
    .project-thumbnail {
        height: 220px;
    }
}

/**
 * Hero Section - Modern Design
 * تصميم Hero Section احترافي حديث
 */

.project-hero {
    position: relative;
    min-height: 500px;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    padding: 80px 0 60px;
    margin-bottom: 40px;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom,
            rgba(0, 0, 0, 0.3) 0%,
            rgba(30, 58, 95, 0.85) 100%);
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 900px;
}

.hero-badges {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 20px;
}

.badge {
    padding: 10px 20px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.status-badge {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: var(--white);
}

.type-badge {
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(12px);
    color: var(--white);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.project-title {
    font-size: 3.5rem;
    font-weight: 900;
    color: var(--white);
    margin: 0 0 20px;
    line-height: 1.2;
    text-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.project-location {
    font-size: 1.3rem;
    color: rgba(255, 255, 255, 0.95);
    margin-bottom: 36px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.project-location i {
    font-size: 20px;
}

.hero-actions {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
}

.hero-actions .btn {
    padding: 16px 32px;
    font-size: 16px;
    font-weight: 700;
}

.btn-gallery {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(12px);
    color: var(--white);
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.btn-gallery:hover {
    background: rgba(255, 255, 255, 0.25);
    border-color: rgba(255, 255, 255, 0.5);
}

/**
 * Info Cards & Tables - Better Spacing
 * بطاقات المعلومات والجداول - مسافات أفضل
 */

.info-card {
    background: var(--white);
    border-radius: 16px;
    padding: 32px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
    margin-bottom: 28px;
    transition: box-shadow 0.3s;
}

.info-card:hover {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.card-title {
    color: var(--secondary-color);
    font-size: 1.6rem;
    font-weight: 700;
    margin: 0 0 28px;
    padding-bottom: 18px;
    border-bottom: 3px solid var(--bg-light);
    display: flex;
    align-items: center;
    gap: 12px;
}

.card-title i {
    color: var(--primary-color);
    font-size: 26px;
}

/* Data Table/Grid - Better Spacing */
.data-grid {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.data-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 20px;
    background: var(--bg-light);
    border-radius: 8px;
    margin-bottom: 8px;
    transition: background 0.3s;
}

.data-row:hover {
    background: var(--bg-dark);
}

.data-row:last-child {
    margin-bottom: 0;
}

.data-row .label {
    color: var(--text-light);
    font-weight: 600;
    font-size: 15px;
}

.data-row .value {
    color: var(--secondary-color);
    font-weight: 700;
    font-size: 16px;
    text-align: left;
}

/* Price Box - Modern Design */
.price-box {
    background: linear-gradient(135deg, var(--secondary-color) 0%, var(--secondary-dark) 100%);
    color: var(--white);
    padding: 36px;
    border-radius: 16px;
    margin-bottom: 28px;
    position: relative;
    overflow: hidden;
}

.price-box::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 120%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.08) 0%, transparent 70%);
    pointer-events: none;
}

.price-main {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    gap: 20px;
}

.price-info {
    flex: 1;
}

.price-label {
    font-size: 14px;
    opacity: 0.9;
    display: block;
    margin-bottom: 8px;
}

.price-value {
    font-size: 2.8rem;
    font-weight: 900;
    line-height: 1;
}

.discount-badge {
    background: var(--primary-color);
    padding: 14px 22px;
    border-radius: 10px;
    font-weight: 700;
    font-size: 1.2rem;
    text-align: center;
}

.price-details {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 20px;
    padding-top: 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.price-detail-item {
    text-align: center;
}

.price-detail-label {
    font-size: 13px;
    opacity: 0.85;
    display: block;
    margin-bottom: 6px;
}

.price-detail-value {
    font-size: 1.5rem;
    font-weight: 800;
}

/* Payment Plans */
.plan-card {
    border: 2px solid var(--border-color);
    border-radius: 12px;
    padding: 24px;
    background: var(--white);
    margin-bottom: 16px;
    transition: all 0.3s;
}

.plan-card:hover,
.plan-card.active {
    border-color: var(--primary-color);
    background: linear-gradient(to bottom, #fffbf8, var(--white));
    box-shadow: 0 4px 16px rgba(193, 122, 74, 0.12);
}

.plan-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 18px;
}

.plan-name {
    background: linear-gradient(135deg, #ffe8d6, #ffd4b3);
    color: var(--primary-darker);
    padding: 8px 18px;
    border-radius: 8px;
    font-weight: 700;
    font-size: 15px;
}

.plan-years {
    font-weight: 700;
    color: var(--secondary-color);
    font-size: 17px;
}

.plan-details {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 18px;
}

.plan-details .detail {
    background: var(--bg-light);
    padding: 14px;
    border-radius: 8px;
    text-align: center;
}

.plan-details .detail span {
    font-size: 12px;
    color: var(--text-light);
    display: block;
    margin-bottom: 6px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.plan-details .detail strong {
    font-size: 1.4rem;
    color: var(--secondary-color);
    font-weight: 800;
}

/* Features Grid */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 20px;
}

.feature-item {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 24px;
    background: var(--bg-light);
    border-radius: 12px;
    transition: all 0.3s;
}

.feature-item:hover {
    background: var(--white);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
    transform: translateY(-2px);
}

.feature-item i {
    font-size: 32px;
    color: var(--primary-color);
    flex-shrink: 0;
}

.feature-text strong {
    display: block;
    color: var(--secondary-color);
    margin-bottom: 6px;
    font-size: 17px;
    font-weight: 700;
}

.feature-text p {
    margin: 0;
    font-size: 14px;
    color: var(--text-light);
    line-height: 1.6;
}

/* Responsive */
@media (max-width: 768px) {
    .project-hero {
        min-height: 420px;
        padding: 60px 0 40px;
    }

    .project-title {
        font-size: 2.2rem;
    }

    .project-location {
        font-size: 1.1rem;
    }

    .hero-actions .btn {
        padding: 14px 24px;
        font-size: 15px;
    }

    .info-card {
        padding: 24px 20px;
    }

    .card-title {
        font-size: 1.4rem;
    }

    .price-value {
        font-size: 2.2rem;
    }

    .price-main {
        flex-direction: column;
        align-items: flex-start;
    }
}