/* Arabic/RTL version of Contact page styles */

/* Gradient ONLY for info-section card icons */
.info-section .card-icon i {
    background: linear-gradient(88.71deg,
            #008c1b 1.33%,
            #e7b900 98.63%) !important;
    -webkit-background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
    background-clip: text !important;
    color: transparent !important;
}

/* Base styles adapted for RTL */
[dir="rtl"] {
    font-family: "Cairo", sans-serif;
}

/* HERO SECTION */
.contact-hero {
    position: relative;
    height: 100vh;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    text-align: center;
}

.contact-hero .container {
    position: relative;
    z-index: 2;
    transform: translateY(-10vh);
}

.contact-hero .hero-bg-wrapper {
    position: absolute;
    inset: 0;
    z-index: 1;
}

.contact-hero .hero-bg {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.contact-hero .hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom,
            rgba(137, 91, 0, 0.6) 0%,
            rgba(137, 91, 0, 0.6) 40%,
            rgba(0, 140, 27, 0.6) 100%);
    z-index: 1;
}

.contact-hero .hero-title {
    font-size: clamp(32px, 5vw, 64px);
    color: #ffb41e !important;
    font-weight: 800;
    text-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.contact-hero .hero-subtitle {
    font-size: clamp(20px, 2.5vw, 24px);
    color: #fff;
    max-width: 800px;
    margin-inline: auto;
    font-weight: 600;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    letter-spacing: 0;
    /* RTL override */
}

/* INFO CARDS SECTION */
.info-section {
    background-color: #fff;
    margin-top: -60px;
    position: relative;
    z-index: 5;
}

.contact-card {
    background: #fff;
    padding: 35px 30px 65px;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    transition:
        transform 0.3s ease,
        box-shadow 0.3s ease;
    height: 100%;
    min-height: 190px;
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(0, 0, 0, 0.03);
    display: flex;
    flex-direction: row-reverse;
    /* Icon on left, Text on right in RTL */
    align-items: center;
    justify-content: space-between;
    gap: 25px;
    text-align: right;
    /* Flipped from start (left) */
}

.contact-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
}

.contact-card .card-icon {
    width: 65px;
    height: 65px;
    margin: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f8faf9;
    border-radius: 50%;
    transition: background 0.3s ease;
    flex-shrink: 0;
}

.contact-card:hover .card-icon {
    background: #e6f4ea;
}

.contact-card .card-body {
    flex-grow: 1;
}

.contact-card .card-title {
    font-size: 20px;
    font-weight: 700;
    color: #333;
    margin-bottom: 15px;
}

.contact-card .card-text {
    font-size: 15px;
    margin-bottom: 0;
    color: #666;
    line-height: 1.8;
}

/* Wave Decoration in Card */
.contact-card::after {
    content: "";
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 100%;
    height: 45px;
    background-color: #008c1b;
    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 320' preserveAspectRatio='none'%3E%3Cpath fill='%230099ff' fill-opacity='1' d='M0,192L48,176C96,160,192,128,288,133.3C384,139,480,181,576,192C672,203,768,181,864,154.7C960,128,1056,96,1152,90.7C1248,85,1344,107,1392,117.3L1440,128L1440,320L1392,320C1344,320,1248,320,1152,320C1056,320,960,320,864,320C768,320,672,320,576,320C480,320,384,320,288,320C192,320,96,320,48,320L0,320Z'%3E%3C/path%3E%3C/svg%3E");
    mask-size: 100% 100%;
    mask-repeat: no-repeat;
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 320' preserveAspectRatio='none'%3E%3Cpath fill='%230099ff' fill-opacity='1' d='M0,192L48,176C96,160,192,128,288,133.3C384,139,480,181,576,192C672,203,768,181,864,154.7C960,128,1056,96,1152,90.7C1248,85,1344,107,1392,117.3L1440,128L1440,320L1392,320C1344,320,1248,320,1152,320C1056,320,960,320,864,320C768,320,672,320,576,320C480,320,384,320,288,320C192,320,96,320,48,320L0,320Z'%3E%3C/path%3E%3C/svg%3E");
    -webkit-mask-size: 100% 100%;
    -webkit-mask-repeat: no-repeat;
    transition: height 0.3s ease;
    transform: scaleX(-1);
    /* Flipped for RTL */
}

.contact-card:hover::after {
    height: 70px;
}

/* FORM SECTION */
.form-section {
    background-color: #fff;
    overflow: hidden;
}

.form-section .sub-title {
    text-transform: uppercase;
    letter-spacing: 0;
    /* Flipped from 1px */
    font-size: 14px;
}

.form-section .section-title {
    font-size: clamp(24px, 4vw, 36px);
    color: #213400;
}

/* Decorative Underline (Stroke under word) */
.section-title .about-title-mark {
    padding-bottom: 0px;
}

.section-title .about-title-mark::after {
    width: 130%;
    bottom: -15px;
    height: 12px;
    left: 50% !important;
    right: auto !important;
    transform: translateX(-50%) !important;
}

/* Form Styles */
.contact-form {
    background: transparent;
    border-radius: 20px;
    box-shadow: none;
    border: none;
    position: relative;
    z-index: 2;
}

.contact-form .form-control {
    background: #e9efe5;
    border: none;
    border-radius: 12px;
    padding: 16px 24px;
    font-weight: 500;
    color: #333;
    transition: all 0.3s ease;
    text-align: right;
    /* Applied from existing override */
}

.contact-form .form-control:focus {
    background: #e1e8dd;
    box-shadow: 0 0 0 2px #008c1b33;
    border: 2px solid #008c1b;
    outline: none;
    transition:
        border-color 0.2s,
        box-shadow 0.2s;
}

.contact-form textarea.form-control {
    resize: none;
    min-height: 200px;
}

/* Submit Button */
.btn-submit {
    background: #008c1b;
    color: #fff;
    border: none;
    padding: 14px 60px;
    font-size: 18px;
    border-radius: 10px !important;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 140, 27, 0.15);
}

.btn-submit:hover {
    background: #007a17;
    color: #fff;
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 140, 27, 0.25);
}

/* Form Decorations */
/* ===== Lantern Decorations ===== */
.story-lantern {
    position: absolute;
    z-index: 0;
    pointer-events: none;
}

/* Right small */
.lantern-right {
    right: -10px;
    top: 6%;
    width: 45px;
}

/* Left small */
.lantern-left {
    left: -20px;
    bottom: 40%;
    width: 80px;
}

/* Right big (top) */
.lantern-top {
    right: 0;
    top: 20%;
    width: 70px;
}

/* Left big (bottom) */
.lantern-bottom {
    left: -10px;
    bottom: 8%;
    width: 130px;
}


.form-section .container {
    position: relative;
    z-index: 2;
}

@media (max-width: 992px) {
    .story-lantern {
        width: 70px;
    }

    .lantern-top,
    .lantern-bottom {
        width: 130px;
    }
}

@media (max-width: 991.98px) {
    .story-lantern {
        display: none !important;
    }
}

@media (max-width: 576px) {
    .story-lantern {
        display: none;
    }
}

/* ANIMATIONS */
[data-reveal] {
    opacity: 0;
    transition: all 0.7s cubic-bezier(0.5, 0, 0, 1);
}

[data-reveal="up"] {
    transform: translateY(40px);
}

[data-reveal="fade"] {
    transform: none;
}

.reveal-in {
    opacity: 1 !important;
    transform: translate(0, 0) !important;
}

/* RTL Helpers */
.text-dir-start {
    text-align: right !important;
    /* Flipped from left */
}

/* MAP SECTION */
.map-section {
    width: 100%;
    position: relative;
    z-index: 1;
    background-color: #f8faf9;
}

.map-container {
    width: 100%;
    padding: 0 20px 80px;
}

.map-frame {
    max-width: 1120px;
    margin: 0 auto;
    background: #ffffff;
    border-radius: 18px;
    padding: 12px;
    border: 1px solid rgba(0, 0, 0, 0.06);
    box-shadow: 0 22px 50px rgba(0, 0, 0, 0.12);
}

.map-viewport {
    position: relative;
    height: clamp(360px, 65vh, 560px);
    border-radius: 14px;
    overflow: hidden;
    background: #e9efe5;
}

.map-viewport iframe {
    width: 100%;
    height: 100%;
    display: block;
    border: none;
}

/* RESPONSIVENESS */
@media (max-width: 992px) {
    .contact-card {
        flex-direction: row-reverse;
        /* Icon on left, Text on right in RTL */
        text-align: inherit;
        padding: 30px;
    }
}

@media (max-width: 768px) {
    .contact-hero {
        min-height: 250px;
    }

    .info-section {
        margin-top: -30px;
    }

    .contact-card {
        flex-direction: column-reverse;
        /* Stacks correctly regardless of RTL/LTR */
        text-align: center;
        gap: 15px;
        padding: 30px 20px 40px;
    }

    .contact-card .card-body {
        width: 100%;
    }

    .contact-card .card-icon {
        margin: 0 auto;
    }

    .contact-form {
        padding: 30px 20px !important;
        /* Applied from existing override */
    }
}

/* Footer alignment in RTL */
.footer-links {
    padding-right: 0 !important;
}

.footer-arrow {
    transform: rotate(180deg);
}