.page-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 80px 20px;
}

/* Modern Card Design */
.card {
    background: var(--card-bg);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    margin-bottom: 3rem;
    position: relative;
    padding: 3rem 2.5rem;
    border: none;
    overflow: visible;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
}

.card-title {
    position: absolute;
    top: 0;
    right: 2.5rem;
    transform: translateY(-50%);
    background: var(--gradient);
    color: white;
    padding: 0.75rem 2rem;
    border-radius: 50px;
    font-size: 1.4rem;
    font-weight: 700;
    box-shadow: 0 4px 15px rgba(37, 99, 235, 0.3);
    z-index: 2;
    min-width: 250px;
    text-align: center;
}

.card-content {
    position: relative;
    z-index: 1;
    padding-top: 1.5rem;
    background-color: #ffffff;
    border-radius: 1rem;
    transition: transform 0.3s ease;
}
.card-content p {
    font-size: 17px;             /* slightly larger for better readability */
    line-height: 1.8;            /* more line spacing for clarity */
    color: #555555;              /* softer dark gray instead of black */
    font-weight: 400;            /* normal weight for smooth text */
    font-family: 'LaylaArabic', sans-serif;
    text-align: justify;         /* justified text for neat paragraphs */
    margin-top: 10px;            /* some spacing above */
    margin-bottom: 0;            /* no bottom margin */
    letter-spacing: 0.02em;      /* slight letter spacing for neatness */
    direction: rtl;              /* explicitly set right-to-left */

}

/* Gradient top border */
.card::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    height: 6px;
    background: var(--gradient);
    border-radius: var(--border-radius) var(--border-radius) 0 0;
}

/* Section Title Style */
.section-title {
    font-size: 1.5rem;
    color: var(--primary);
    margin: 2.5rem 0 1.5rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid var(--secondary);
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.section-title i {
    color: var(--secondary);
    font-size: 1.3rem;
    transition: transform 0.3s ease;
}

.section-title:hover i {
    transform: rotate(-10deg);
}
strong {
    color: var(--primary);
    font-weight: 700;
}

.highlight-box {
    background-color: rgba(59, 130, 246, 0.1);
    border-right: 4px solid var(--primary);
    padding: 1.25rem;
    border-radius: 8px;
    margin: 1.5rem 0;
}

/* Special contact card styling */
.contact-card {
    background: var(--gradient);
    color: var(--white);
}

.contact-card .card-title {
    background: var(--white);
    color: var(--primary);
    box-shadow: 0 4px 15px rgba(255, 255, 255, 0.3);
}

.contact-card .section-title {
    color: var(--white);
    border-bottom-color: var(--white);
}

.contact-card .section-title i {
    color: var(--white);
}

.contact-card li::before {
    background: var(--white);
}

.contact-card p {
    color: var(--white);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .page-content {
        padding-top: 100px;
        padding-right: 15px;
        padding-left: 15px;
    }

    .card {
        padding: 2.5rem 1.5rem;
    }

    .card-title {
        right: 1.5rem;
        font-size: 1.2rem;
        padding: 0.6rem 1.5rem;
        min-width: 200px;
    }

    .section-title {
        font-size: 1.3rem;
    }

    li p {
        font-size: 1rem;
    }
}

/* Animation */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.card {
    animation: fadeInUp 0.6s ease forwards;
    opacity: 0;
}

.card:nth-child(1) {
    animation-delay: 0.1s;
}

.card:nth-child(2) {
    animation-delay: 0.3s;
}

.card:nth-child(3) {
    animation-delay: 0.5s;
}

/* Breadcrumbs */
.breadcrumbs {
    margin-bottom: 2rem;
    font-size: 0.9rem;
    color: var(--dark);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.breadcrumbs a {
    color: var(--dark);
    text-decoration: none;
    transition: color 0.3s ease;
}

.breadcrumbs a:hover {
    color: var(--primary);
}

.breadcrumbs span {
    color: var(--primary);
    font-weight: 600;
}

.back-to-home {
    text-align: center;
    margin-top: 3rem;
}

.back-to-home .btn {
    display: inline-flex;
    align-items: center;
    padding: 12px 24px;
    background: var(--gradient);
    color: white;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 4px 15px rgba(37, 99, 235, 0.3);
}

.back-to-home .btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(37, 99, 235, 0.4);
}

.back-to-home .btn i {
    margin-left: 8px;
}
