body {
    margin: 0;
    position: relative;
    background-color: #345daf;
}

body::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;



    opacity: 0.08;
    /* 👈 50% شفافية */
    z-index: -1;
}


/* This will apply only to pages with the 'has-bg-image' class */
body.has-bg-image::before {
    background-image: url("../images/istockphoto-1467769199-612x612.jpg");
    background-size: cover;
    background-position: center;
}

.geometric-pattern {
    background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M30 0l5.878 18.09h19.022l-15.39 11.18 5.878 18.09-15.389-11.18-15.389 11.18 5.878-18.09-15.39-11.18h19.022z' fill='%23496251' fill-opacity='0.04' fill-rule='evenodd'/%3E%3C/svg%3E");
}

.soft-elevation {
    box-shadow: 0 4px 20px rgba(122, 148, 130, 0.08);
}

.material-symbols-outlined {
    font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 24;
    vertical-align: middle;
}









.cards-container {
    max-width: 1000px;
    margin: 0 auto;
    position: relative;
    min-height: 300px;
}

.dual-cards {
    display: flex;
    gap: 30px;
    justify-content: center;
    margin-bottom: 30px;
}

.card-item {
    flex: 1;
    background: #f1f4f0;
    border-radius: 28px;
    padding: 60px 32px 32px 32px;
    text-align: center;
    transition: all 0.5s ease;
    box-shadow: 0 8px 30px rgba(122, 148, 130, 0.1);
    min-height: 380px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: relative;
}

/* حركات الخروج */
.card-item.hide-right {
    animation: slideOutRight 0.5s ease forwards;
}

.card-item.hide-left {
    animation: slideOutLeft 0.5s ease forwards;
}

/* حركات الدخول */
.card-item.show-right {
    animation: slideInRight 0.5s ease forwards;
}

.card-item.show-left {
    animation: slideInLeft 0.5s ease forwards;
}

.card-text {
    font-size: 28px;
    font-weight: 600;
    color: var(--primary, #496251);
    line-height: 1.5;
    text-align: center;
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.card-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid rgba(119, 90, 25, 0.15);
}

.card-ref {
    font-size: 16px;
    color: var(--secondary, #775a19);
    font-weight: 500;
    text-align: right;
}

.card-badge {
    background: rgba(119, 90, 25, 0.12);
    color: var(--secondary, #775a19);
    font-size: 12px;
    font-weight: 600;
    padding: 6px 16px;
    border-radius: 50px;
    letter-spacing: 0.5px;
    text-align: left;
}

.dots-container {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-top: 40px;
}

.dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #c2c8c1;
    cursor: pointer;
    transition: all 0.3s;
}

.dot.active {
    width: 28px;
    border-radius: 10px;
    background: var(--secondary, #775a19);
}

/* Keyframes للحركات */
@keyframes slideOutRight {
    0% {
        opacity: 1;
        transform: translateX(0);
    }

    100% {
        opacity: 0;
        transform: translateX(150px);
    }
}

@keyframes slideOutLeft {
    0% {
        opacity: 1;
        transform: translateX(0);
    }

    100% {
        opacity: 0;
        transform: translateX(-150px);
    }
}

@keyframes slideInRight {
    0% {
        opacity: 0;
        transform: translateX(150px);
    }

    100% {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInLeft {
    0% {
        opacity: 0;
        transform: translateX(-150px);
    }

    100% {
        opacity: 1;
        transform: translateX(0);
    }
}

/* استجابة للشاشات الصغيرة */
@media (max-width: 768px) {
    .dual-cards {
        flex-direction: column;
        gap: 20px;
    }

    .card-item {
        padding: 40px 24px 24px 20px;
        min-height: 300px;
    }



    .card-text {
        font-size: 20px;
    }

    .card-bottom {
        flex-direction: column;
        gap: 12px;
        text-align: center;
    }

    .card-ref {
        text-align: center;
    }

    .card-badge {
        text-align: center;
    }
}











.quotes-slider {
    position: relative;
}

.quote-item {
    display: none;
}

.quote-item.active {
    display: block;
    animation: fadeIn 0.5s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Arrows Style */
.slider-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(4px);
    border: 1px solid rgba(255, 255, 255, 0.4);
    border-radius: 50%;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    color: white;
    z-index: 10;
}

.slider-arrow:hover {
    background: rgba(255, 255, 255, 0.4);
    transform: translateY(-50%) scale(1.1);
}

.slider-arrow .material-symbols-outlined {
    font-size: 32px;
}

/* Dots Style */
.dot-quote {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.4);
    cursor: pointer;
    transition: all 0.3s ease;
}

.dot-quote.active {
    width: 30px;
    border-radius: 10px;
    background-color: #e9c176;
}

.dot-quote:hover {
    background-color: rgba(255, 255, 255, 0.8);
}

/* Responsive */
@media (max-width: 992px) {
    .slider-arrow {
        width: 40px;
        height: 40px;
    }

    .slider-arrow .material-symbols-outlined {
        font-size: 26px;
    }

    .arrow-prev {
        right: -20px !important;
    }

    .arrow-next {
        left: -20px !important;
    }
}

@media (max-width: 768px) {
    .slider-arrow {
        width: 36px;
        height: 36px;
        background: rgba(255, 255, 255, 0.3);
    }

    .slider-arrow .material-symbols-outlined {
        font-size: 22px;
    }

    .arrow-prev {
        right: -10px !important;
    }

    .arrow-next {
        left: -10px !important;
    }

    .quote-item blockquote {
        font-size: 18px !important;
    }
}








.geometric-pattern {
    background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M30 0l2.5 7.5L40 10l-7.5 2.5L30 20l-2.5-7.5L20 10l7.5-2.5L30 0zm0 40l2.5 7.5L40 50l-7.5 2.5L30 60l-2.5-7.5L20 50l7.5-2.5L30 40z' fill='%23496251' fill-opacity='0.04' fill-rule='evenodd'/%3E%3C/svg%3E");
}

.hero-gradient {
    background: radial-gradient(circle at top left, rgba(119, 90, 25, 0.05), transparent),
        radial-gradient(circle at bottom right, rgba(73, 98, 81, 0.05), transparent);
}








.material-symbols-outlined {
    font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 24;
}

.pattern-bg {
    background-image: radial-gradient(circle at 2px 2px, rgba(73, 98, 81, 0.05) 1px, transparent 0);
    background-size: 24px 24px;
}

.islamic-geometric {
    opacity: 0.04;
    position: absolute;
    pointer-events: none;
}









.fixed {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1000;
}

button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}


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








.contact-form {
    max-width: 800px;
    margin: 80px auto;
    padding: 60px 40px;
    background: var(--surface, #ffffff);
    border-radius: 32px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.05);
}

@media (max-width: 768px) {
    .contact-form {
        margin: 40px 16px;
        padding: 40px 24px;
    }
}

.contact-form h3 {
    font-size: 28px;
    font-weight: 700;
    color: var(--primary, #496251);
    margin-bottom: 8px;
    text-align: center;
}

.contact-form .subtitle {
    color: var(--muted, #737973);
    margin-bottom: 32px;
    text-align: center;
}

.form-group {
    margin-bottom: 24px;
}

.form-group label {
    display: block;
    font-weight: 600;
    color: var(--text, #191c1a);
    margin-bottom: 8px;
}

.form-group label .required {
    color: var(--error, #f44336);
    margin-right: 4px;
}

.form-control {
    width: 100%;
    padding: 14px 18px;
    border: 2px solid #e0e3df;
    border-radius: 16px;
    font-size: 16px;
    font-family: inherit;
    transition: all 0.3s;
    background: white;
}

.form-control:focus {
    outline: none;
    border-color: var(--primary, #496251);
    box-shadow: 0 0 0 4px rgba(73, 98, 81, 0.1);
}

.form-control.error {
    border-color: var(--error, #f44336);
}

select.form-control {
    cursor: pointer;
}

textarea.form-control {
    resize: vertical;
    min-height: 120px;
}

.radio-group {
    display: flex;
    gap: 24px;
    flex-wrap: wrap;
}

.radio-option {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
}

.radio-option input[type="radio"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
    accent-color: var(--primary, #496251);
}

.radio-option label {
    margin-bottom: 0;
    cursor: pointer;
    font-weight: normal;
}

.error-message {
    color: var(--error, #f44336);
    font-size: 12px;
    margin-top: 6px;
    display: none;
}

.error-message.show {
    display: block;
}

.btn-submit {
    background: var(--primary, #496251);
    color: white;
    border: none;
    padding: 14px 32px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.btn-submit:hover {
    background: var(--primary-dark, #3a4e41);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(73, 98, 81, 0.3);
}

.btn-submit:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.success-message {
    background: var(--success, #4caf50);
    color: white;
    padding: 16px 24px;
    border-radius: 16px;
    margin-bottom: 24px;
    display: none;
    align-items: center;
    gap: 12px;
}

.success-message.show {
    display: flex;
}

@media (max-width: 768px) {
    .contact-form {
        padding: 24px;
        margin: 16px;
    }

    .contact-form h3 {
        font-size: 24px;
    }

    .radio-group {
        flex-direction: column;
        gap: 12px;
    }
}





.form-control::placeholder {
    text-align: right;
    direction: rtl;
}

input::placeholder,
textarea::placeholder {
    text-align: right;
    direction: rtl;
}

.wpcf7-form-control::placeholder {
    text-align: right;
    direction: rtl;
}


.wpcf7-response-output{
   text-align: center;
    direction: rtl;
}

















.quiz-option-btn {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 20px 24px;
    background: var(--surface-container-lowest, #ffffff);
    border: 2px solid transparent;
    border-radius: 60px;
    margin-bottom: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: right;
    box-shadow: 0 4px 20px rgba(122, 148, 130, 0.08);
}

.quiz-option-btn:hover {
    border-color: rgba(73, 98, 81, 0.2);
    transform: translateX(-4px);
}

.quiz-option-content {
    display: flex;
    align-items: center;
    gap: 20px;
}

.quiz-option-letter {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--surface-container, #ecefea);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 20px;
    color: var(--primary, #496251);
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.quiz-option-btn:hover .quiz-option-letter {
    background: var(--primary, #496251);
    color: white;
}

.quiz-option-text {
    font-size: 18px;
    font-weight: 500;
    color: var(--on-surface, #191c1a);
}

.quiz-option-icon {
    color: var(--primary, #496251);
    opacity: 0;
    transition: opacity 0.3s ease;
    font-size: 24px;
}

.quiz-option-btn:hover .quiz-option-icon {
    opacity: 1;
}

@media (max-width: 768px) {
    .quiz-option-btn {
        padding: 16px 20px;
        border-radius: 50px;
    }
    
    .quiz-option-letter {
        width: 40px;
        height: 40px;
        font-size: 18px;
    }
    
    .quiz-option-text {
        font-size: 16px;
    }
    
    .quiz-option-content {
        gap: 16px;
    }
}







/* 404 page  */


    .error-section {
        flex: 1;
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 80px 20px;
        min-height: calc(100vh - 200px);
    }
    
    .error-card {
        background: var(--surface, #ffffff);
        border-radius: 48px;
        padding: 60px 40px;
        text-align: center;
        max-width: 600px;
        margin: 0 auto;
        box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.15);
    }
    
    .error-number {
        font-size: 140px;
        font-weight: 800;
        color: var(--primary, #496251);
        line-height: 1;
        letter-spacing: -4px;
        text-shadow: 4px 4px 0 rgba(73, 98, 81, 0.1);
    }
    
    .error-icon {
        font-size: 80px;
        color: var(--secondary, #775a19);
        margin-bottom: 24px;
    }
    
    .error-title {
        font-size: 28px;
        font-weight: 700;
        color: var(--text, #191c1a);
        margin-bottom: 16px;
    }
    
    .error-message {
        color: var(--muted, #737973);
        font-size: 18px;
        margin-bottom: 32px;
        line-height: 1.8;
    }
    
    .search-box {
        margin-bottom: 32px;
    }
    
    .search-input-group {
        display: flex;
        gap: 12px;
        background: var(--surface-low, #f1f4f0);
        border-radius: 60px;
        padding: 4px;
        border: 1px solid transparent;
        transition: all 0.3s;
    }
    
    .search-input-group:focus-within {
        border-color: var(--primary, #496251);
        background: var(--surface, #ffffff);
        box-shadow: 0 0 0 4px rgba(73, 98, 81, 0.1);
    }
    
    .search-input {
        flex: 1;
        padding: 14px 24px;
        border: none;
        background: transparent;
        font-size: 16px;
        font-family: inherit;
        outline: none;
    }
    
    .search-btn {
        background: var(--primary, #496251);
        border: none;
        padding: 12px 28px;
        border-radius: 50px;
        color: white;
        font-weight: 600;
        cursor: pointer;
        transition: all 0.3s;
        display: flex;
        align-items: center;
        gap: 8px;
    }
    
    .search-btn:hover {
        background: var(--primary-dark, #3a4e41);
        transform: scale(0.97);
    }
    
    .btn-group {
        display: flex;
        gap: 16px;
        justify-content: center;
        flex-wrap: wrap;
    }
    
    .btn-primary-custom {
        background: var(--primary, #496251);
        color: white;
        padding: 12px 28px;
        border-radius: 50px;
        text-decoration: none;
        font-weight: 600;
        transition: all 0.3s;
        display: inline-flex;
        align-items: center;
        gap: 8px;
    }
    
    .btn-primary-custom:hover {
        background: var(--primary-dark, #3a4e41);
        transform: translateY(-2px);
        color: white;
    }
    
    .btn-secondary-custom {
        background: transparent;
        color: var(--primary, #496251);
        padding: 12px 28px;
        border-radius: 50px;
        text-decoration: none;
        font-weight: 600;
        border: 2px solid var(--primary, #496251);
        transition: all 0.3s;
        display: inline-flex;
        align-items: center;
        gap: 8px;
    }
    
    .btn-secondary-custom:hover {
        background: var(--primary, #496251);
        color: white;
        transform: translateY(-2px);
    }
    
    .suggestions {
        margin-top: 40px;
        padding-top: 32px;
        border-top: 1px solid rgba(0, 0, 0, 0.08);
    }
    
    .suggestions-title {
        font-size: 14px;
        color: var(--muted, #737973);
        margin-bottom: 16px;
        letter-spacing: 1px;
    }
    
    .suggestions-links {
        display: flex;
        gap: 24px;
        justify-content: center;
        flex-wrap: wrap;
    }
    
    .suggestions-links a {
        color: var(--primary, #496251);
        text-decoration: none;
        font-weight: 500;
        transition: all 0.3s;
    }
    
    .suggestions-links a:hover {
        color: var(--secondary, #775a19);
    }
    
    @media (max-width: 768px) {
        .error-card {
            padding: 40px 24px;
            border-radius: 32px;
        }
        
        .error-number {
            font-size: 100px;
        }
        
        .error-title {
            font-size: 24px;
        }
        
        .error-message {
            font-size: 16px;
        }
        
        .search-input {
            padding: 12px 18px;
        }
        
        .search-btn span:last-child {
            display: none;
        }
        
        .btn-group {
            flex-direction: column;
        }
        
        .btn-primary-custom,
        .btn-secondary-custom {
            justify-content: center;
        }
    }
