.contact-page {
    padding: 28px 16px 48px;
}

.contact-card {
    background: var(--surface);
    border-radius: var(--radius);
    box-shadow: var(--shadow-soft);
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 18px;
    padding: 18px;
    border: 1px solid #edf1f6;
}

/* Sidebar */
.sidebar {
    background: #f7fbff;
    border-radius: 10px;
    padding: 16px;
    border: 1px solid #e3ecf6;
}

.avatar {
    align-items: center;
    justify-content: center;
    justify-self: anchor-center;
}

.avatar img {
    width: 180px;
    height: 180px;
    border-radius: 12px;
    object-fit: fill;
    box-shadow: var(--shadow-soft);
    margin: 25px;
}

.name {
    color: #fff;
    background: #1c7bdb;
    padding: 10px 12px;
    margin: 12px 0 4px;
    border-radius: 10px;
    text-align: center;
}

.role {
    color: #e8f2ff;
    background: #2d85e6;
    padding: 6px 12px;
    border-radius: 8px;
    text-align: center;
    font-weight: 600;
}

.side-section {
    margin-top: 16px;
}

.side-title {
    font-size: 12px;
    letter-spacing: .6px;
    color: #0f3e79;
    font-weight: 800;
    border-left: 4px solid var(--accent);
    padding-left: 8px;
    margin: 12px 0 6px;
}

.side-list {
    list-style: none;
    margin: 0;
    padding: 0;
    color: #334155
}

.side-list li {
    margin: .35rem 0
}

.side-list.bullets li {
    padding-left: 16px;
    position: relative
}

.side-list.bullets li::before {
    content: "›";
    position: absolute;
    left: 0;
    color: #64748b
}

/* Main */
.main {
    background: #fff;
    border-radius: 10px;
    padding: 8px 12px 12px;
}

.main-head h1 {
    margin: 0 0 8px;
    color: #1f2937;
    font-size: clamp(24px, 2.6vw, 30px);
    padding-bottom: 10px;
    border-bottom: 3px solid #e6edf7;
}

.two-cols {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 22px;
}

.info h4,
.form h4 {
    margin: .25rem 0 .35rem;
    color: #0f315a
}

.info-list {
    list-style: none;
    margin: 0 0 12px;
    padding: 0;
    color: #475569
}

.info-list li {
    margin: .35rem 0
}

.ico {
    margin-right: 6px
}

.socials {
    display: flex;
    gap: 10px
}

.socials a {
    width: 34px;
    height: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background: #e7f9f8;
    border: 1px solid #b1efe9;
    color: #0f766e;
    font-weight: 700;
    text-decoration: none;
}

/* --- Social Links --- */
.social-links {
    display: flex;
    gap: 1rem;
    align-items: center;
    flex-wrap: wrap;
    padding: 3px;
}

.s-btn {
    --size: 42px;
    width: var(--size);
    height: var(--size);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    border: 1.5px solid var(--accent);
    background: #fff;
    color: var(--brand);
    box-shadow: var(--shadow);
    transition: transform .15s ease, box-shadow .2s ease,
        background-color .2s ease, color .2s ease, border-color .2s ease;
}

.s-btn i {
    font-size: 1.1rem;
    line-height: 1
}

/* Hover / brand tints */
.s-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 22px rgba(0, 0, 0, .10)
}

.s-btn.linkedin:hover {
    background: #0A66C2;
    border-color: #0A66C2;
    color: #fff
}

.s-btn.github:hover {
    background: #111;
    border-color: #111;
    color: #fff
}

.s-btn.whatsapp:hover {
    background: #25D366;
    border-color: #25D366;
    color: #fff
}

/* Compact variant if*/
.social-links.compact .s-btn {
    --size: 36px
}

@media (prefers-reduced-motion: reduce) {
    .s-btn {
        transition: none
    }
}


/* ===== Contact Form – theme-matched ===== */
.cform {
    background: var(--card);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 20px;
}

.cform .row {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
}

.cform .row.two {
    grid-template-columns: 1fr 1fr;
}

@media (max-width: 820px) {
    .cform .row.two {
        grid-template-columns: 1fr;
    }
}

.cform .field {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.cform label {
    font-size: .9rem;
    font-weight: 600;
    color: #334155;
}

.cform .req {
    color: var(--accent);
    margin-inline-start: 6px;
}

.cform input[type="text"],
.cform input[type="email"],
.cform input[type="tel"],
.cform textarea {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    background: #fff;
    color: var(--text);
    font: inherit;
    transition: border-color .2s ease, box-shadow .2s ease, transform .03s ease;
}

.cform textarea {
    min-height: 140px;
    resize: vertical;
}

.cform input::placeholder,
.cform textarea::placeholder {
    color: #9aa3af;
}

.cform input:focus,
.cform textarea:focus {
    outline: none;
    border-color: var(--brand);
    box-shadow: 0 0 0 3px rgba(0, 56, 127, .12);
    transform: translateZ(0);
}


/* Error state (CF7) */
.wpcf7-not-valid {
    border-color: #ef4444 !important;
    box-shadow: 0 0 0 3px rgba(239, 68, 68, .12) !important;
}

.wpcf7-not-valid-tip {
    color: #b91c1c;
    font-size: .85rem;
    margin-top: 6px;
}

/* Response messages */
.wpcf7 form .wpcf7-response-output {
    margin-top: 16px;
    border-radius: 10px;
    padding: 12px 14px;
    border-width: 1px;
}

.wpcf7 form.sent .wpcf7-response-output {
    border-color: #22c55e;
    background: #ecfdf5;
    color: #065f46;
}

.wpcf7 form.invalid .wpcf7-response-output {
    border-color: #ef4444;
    background: #fef2f2;
    color: #991b1b;
}



/* Submit button consistent with theme */
.btn {
    cursor: pointer;
    border: 0;
}

.btn-lg {
    padding: .8rem 1.25rem;
    font-weight: 600;
    border-radius: 10px;
}

.btn-brand {
    background: linear-gradient(135deg, var(--brand), var(--accent));
    color: #fff;
    box-shadow: var(--shadow);
    transition: transform .05s ease, box-shadow .2s ease;
}

.btn-brand:hover {
    transform: translateY(-1px);
    box-shadow: 0 10px 22px rgba(0, 0, 0, .10);
}

.btn-brand:active {
    transform: translateY(0);
}

/* recaptcha badge*/
.grecaptcha-badge {
    box-shadow: none !important;
    border-radius: 10px;
    overflow: hidden;
}

/* ـspinner */
.wpcf7-spinner {
    margin-inline-start: 10px;
}



/* Based banner */
.based {
    margin-top: 18px;
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 14px;
    background: linear-gradient(180deg, #1b4477, #0f315a);
    color: #e7eef7;
    padding: 18px;
    border-radius: 10px;
    box-shadow: var(--shadow-soft);
}

.based h3 {
    color: #fff;
    margin: 0 0 4px
}

/* Footer info reuse */
.footer-info {
    margin-top: 26px;
    padding: 22px;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 18px;
    background: #fff;
    border-radius: var(--radius);
    box-shadow: var(--shadow-soft);
}

.footer-info h4 {
    margin: .25rem 0 .35rem;
    color: #1f2937
}

.footer-info p,
.footer-info li {
    color: #5b6472
}

.footer-info .links {
    list-style: none;
    margin: 0;
    padding: 0
}

.footer-info .links li {
    margin: .25rem 0
}

.tiny {
    font-size: 12px
}

.muted {
    color: #8b95a5
}

.center {
    text-align: center
}

/* Responsive */
@media (max-width:1024px) {
    .contact-card {
        grid-template-columns: 1fr;
    }

    .two-cols {
        grid-template-columns: 1fr;
    }

    .footer-info {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width:640px) {
    .footer-info {
        grid-template-columns: 1fr;
    }
}
/*arabic-content (RTL) */
.arabic-content {

}


.arabic-content .main-head h1 {
    text-align: right;
    direction: rtl;
}

.arabic-content .p-desc {
    text-align: right;
    direction: rtl;
}

.arabic-content .side-title {
    text-align: right;
    direction: rtl;
    border-right: 4px solid var(--accent);
    border-left: none;
    padding-right: 8px;
    padding-left: 0;
    margin-right: 12px;
    margin-left: 0;
}

.arabic-content .side-list {
    text-align: right;
    direction: rtl;
}

.arabic-content .side-list.bullets li {
    padding-right: 16px;
    padding-left: 0;
    position: relative;
}

.arabic-content .side-list.bullets li::before {
    right: 0;
    left: auto;
    color: #64748b;
}

.arabic-content .ico {
    margin-right: 0;
    margin-left: 6px;
}

.arabic-content .info-list li {
    text-align: right;
    direction: rtl;
}

.arabic-content .form h4 {
    text-align: right;
    direction: rtl;
}

.arabic-content .cform label {
    text-align: right;
    direction: rtl;
}

.arabic-content .cform input,
.arabic-content .cform textarea {
    text-align: right;
    direction: rtl;
}

.arabic-content .cform input::placeholder,
.arabic-content .cform textarea::placeholder {
    text-align: right;
    direction: rtl;
}

.arabic-content .social-links {
    justify-content: flex-end;
    direction: rtl;
}

.arabic-content .based h3 {
    text-align: right;
    direction: rtl;
}

.arabic-content .footer-info {
    text-align: right;
    direction: rtl;
}

.arabic-content .footer-info .links {
    text-align: right;
    direction: rtl;
}

/* ✅ Contact Form 7 */
.arabic-content .cform .field label {
    text-align: right;
    direction: rtl;
}
.arabic-content .cform .field {
    text-align: right;
    direction: rtl;
}
.arabic-content .cform .field input,
.arabic-content .cform .field textarea {
    text-align: right;
    direction: rtl;
}

.arabic-content .cform .field input::placeholder,
.arabic-content .cform .field textarea::placeholder {
    text-align: right;
    direction: rtl;
}