.about-hero .title {
    margin-top: calc(170 / 16 * 1rem);
    font-size: calc(60 / 16 * 1rem);
    font-weight: 700;
    color: var(--main);
}

html:lang(en) .about-hero .title {
    font-size: calc(50 / 16 * 1rem);
}

.desc {
    font-size: calc(20 / 16 * 1rem);
    color: var(--main);
}

/* Text */
.about-badge {
    display: inline-block;
    color: #c1990b;
    font-weight: 600;
    margin-bottom: 1.5rem;
    font-size: calc(20 / 16 * 1rem);
}

.about-text {
    color: var(--main);
    font-size: calc(20 / 16 * 1rem);
    line-height: 1.9;
    margin-bottom: 1rem;
}

/* Image */
.image-wrapper {
    position: relative;
    display: inline-block;
    overflow: hidden;
    isolation: isolate;
}

.hero-img {
    max-width: 702px;
    width: 100%;
    display: block;
}

.custom-card {
    background-color: #fcf2cf;
    border: 1.18px solid #f4cc3e;
    color: var(--main);
    border-radius: 10px;
    padding: 25px;
    width: 610px;
    box-shadow: 0px 9.42px 9.42px -4.71px #10182808;

    box-shadow: 0px 23.55px 28.26px -4.71px #10182814;
    transition: transform 0.3s;
}

.custom-card h5 {
    font-size: calc(56 / 16 * 1rem);
    margin-bottom: 2rem;
}

.custom-card p {
    font-size: calc(28 / 16 * 1rem);
}

.rotate-left {
    transform: rotate(-8deg);
}

.rotate-right {
    transform: rotate(8deg);
}

.custom-card:hover {
    transform: scale(1.05) rotate(0deg);
}

.card-title {
    font-weight: 700;
    margin-bottom: 10px;
}

.card-text {
    font-size: 0.95rem;
}

.cards {
    margin: calc(80 / 16 * 1rem) 0;
}

/* services */

.custom-icon {
    position: relative;
    top: -18px;
    left: -6px;
    color: var(--sec);
}
.services-section .title {
    color: var(--main);
    font-size: calc(40 / 16 * 1rem);
}

.services-section .desc {
    color: var(--main);
    font-size: calc(20 / 16 * 1rem);
}

.services-section {
    background-color: #ffffff;
}

.top-label {
    color: var(--sec);
    font-size: 1.125rem;
}

.main-title {
    color: var(--main);
    font-size: 4rem;
    line-height: 1.3;
}

.header-description {
    color: var(--text);
    font-size: 1.5rem;
}

/* Service Card Styles */
.service-card {
    width: 100%;
    aspect-ratio: 4/3;
    border: none;
    position: relative;
    overflow: hidden;
    border-radius: 1.5rem;
}

.service-card .card-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* التدرج اللوني (الـ Layer) */
.service-card .card-img-overlay {
    /* التدرج يبدأ شفاف 0% وينتهي بلون أسود عند 100% */
    /* التعديل هنا: خليناه يبدأ يغمق من نص الكارت تقريباً 50% */
    background: linear-gradient(
        to bottom,
        rgba(0, 0, 0, 0) 0%,
        /* شفاف تماماً فوق */ rgba(0, 0, 0, 0.4) 40%,
        /* يبدأ يغمق بدري شوية */ rgba(0, 0, 0, 0.95) 100%
            /* أسود صريح تحت الكلام */
    );

    display: flex;
    flex-direction: column;
    justify-content: flex-end; /* يخلي الكلام تحت */
    padding: 1.5rem;
    border-radius: 1.5rem;
}

.service-title {
    color: white;
    font-weight: bold;
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.service-desc {
    color: white;
    font-size: 1rem;
    line-height: 1.5;
    opacity: 0.9;
    margin: 0;
}

@media (max-width: 768px) {
    .custom-card {
        width: 300px;
    }

    .custom-card h5 {
        font-size: 1.6rem;
        margin-bottom: 1rem;
    }

    .custom-card p {
        font-size: 1rem;
    }
}
