/* --- Page Header (Shared Style) --- */
.page-header {
    background: var(--background-grey);
    padding: 100px 0;
    text-align: center;
}
.page-header h1 { color: var(--primary-color); }
.page-header p { color: var(--secondary-color); max-width: 600px; margin: 10px auto 0 auto; }

/* --- Services Grid (services.php) --- */
.services-grid-section { padding-top: 30px; padding-bottom: 80px; }
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
}
/* .service-card {
    background: var(--background-light);
    border: 1px solid #eee;
    border-radius: 8px;
    padding: 40px 30px;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}
.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.08);
} */

.service-card {
    background: var(--background-light);
    border: 1px solid #eee;
    border-radius: 16px;
    padding: 40px 30px;
    text-align: center;
    display: flex;
    flex-direction: column;
    
    /* جديد */
    position: relative;
    overflow: hidden;
    transform-origin: center;
    transition:
        transform 0.35s cubic-bezier(.21,.72,.26,.99),
        box-shadow 0.35s cubic-bezier(.21,.72,.26,.99),
        border-color 0.35s ease,
        background 0.35s ease;
}

/* طبقة توهّج/إضاءة خلفية تمر فوق الكارد */
.service-card::before {
    content: "";
    position: absolute;
    inset: -40%;
    background:
        radial-gradient(circle at top left, rgba(235, 123, 37, 0.2), transparent 55%),
        radial-gradient(circle at bottom right, rgba(248, 142, 56, 0.18), transparent 55%);
    opacity: 0;
    transform: translate3d(0, 12%, 0) scale(0.92);
    transition:
        opacity 0.5s ease,
        transform 0.5s ease;
    z-index: 0;
}

/* محتوى الكارد فوق طبقة التوهّج */
.service-card > * {
    position: relative;
    z-index: 1;
}

/* تأثير الـ hover */
.service-card:hover {
    transform: translateY(-14px) scale(1.02);
    box-shadow: 0 25px 60px rgba(42, 25, 15, 0.18);
    border-color: rgba(235, 126, 37, 0.35);
    background: linear-gradient(
        145deg,
        var(--background-light),
        rgba(235, 126, 37, 0.02)
    );
}

/* تفعيل التوهّج في الـ hover */
.service-card:hover::before {
    opacity: 1;
    transform: translate3d(0, 0, 0) scale(1);
}



.service-icon {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 20px;
}
.service-card h3 {
    min-height: 50px; /* To align titles */
}
.service-card p {
    color: #666;
    flex-grow: 1; /* Pushes the button to the bottom */
    margin-bottom: 30px;
}
.btn-learn-more {
    color: var(--primary-color);
    font-weight: 700;
    align-self: center;
    transition: all 0.3s ease;
}
.btn-learn-more:hover {
    background: var(--primary-color);
    color:white;
    padding: 5px 10px;
    border-radius: 8px;
}
.btn-learn-more i {
    transition: transform 0.3s ease;
    margin-right: 5px;
}
.btn-learn-more:hover i {
    transform: translateX(-5px);
}

/* --- Service Details (service-details.php) --- */
.service-details-section {
    padding-top: 100px;
    padding-bottom: 80px;
    display: grid;
    grid-template-columns: 3fr 1fr;
    gap: 50px;
    align-items: flex-start;
}
.service-content .service-audience {
    background: var(--background-grey);
    border-right: 4px solid var(--primary-color);
    padding: 15px 20px;
    margin: 30px 0;
    border-radius: 4px;
}

.checklist {
    list-style: none;
    padding: 0;
    margin-top: 30px;
}
.checklist li {
    display: flex;
    gap: 20px;
    align-items: flex-start;
    margin-bottom: 25px;
}
.checklist i {
    color: var(--primary-color);
    font-size: 1.4rem;
    margin-top: 5px;
}
.checklist h4 { margin-top: 0; }
.checklist p { line-height: 1.8; color: #555; }

.service-cta {
    background: var(--background-grey);
    padding: 30px;
    border-radius: 8px;
    text-align: center;
    position: sticky;
    top: 120px; /* (Header height + some space) */
}
.service-cta h3 { margin-top: 0; }

@media (max-width: 992px) {
    .service-details-section {
        grid-template-columns: 1fr;
    }
}