/* ===== Shared Page Banner ===== */
.theme-page-banner {
    position: relative;
    padding: 80px 0 60px;
    overflow: hidden;
    background: linear-gradient(135deg, rgb(var(--c-primary-rgb, 30 58 138)) 0%, rgb(var(--c-accent-rgb, 14 165 233)) 100%);
    color: #fff;
    text-align: center;
    direction: rtl;
}
.theme-page-banner__bg {
    position: absolute;
    inset: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}
.theme-page-breadcrumb {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: .875rem;
    opacity: .85;
    margin-bottom: 18px;
}
.theme-page-breadcrumb a {
    color: #fff;
    text-decoration: none;
}
.theme-page-breadcrumb a:hover {
    text-decoration: underline;
}
.theme-page-banner__title {
    font-size: clamp(1.8rem, 5vw, 2.8rem);
    font-weight: 800;
    margin: 0 0 12px;
    line-height: 1.2;
}
.theme-page-banner__subtitle {
    font-size: 1.1rem;
    opacity: .85;
    margin: 0;
}

/* ===== About Page ===== */
.about-page-section {
    padding: 60px 0 80px;
    direction: rtl;
    background: #f4f7fb;
}
.about-page-card {
    position: relative;
    background: #fff;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 8px 40px rgba(0, 0, 0, .10);
    margin-bottom: 40px;
}
.about-page-card__accent {
    height: 5px;
    background: linear-gradient(90deg, rgb(var(--c-primary-rgb, 30 58 138)), rgb(var(--c-accent-rgb, 14 165 233)));
}
.about-page-content {
    padding: 40px 36px;
    color: #333;
    line-height: 1.85;
    font-size: 1.02rem;
}
.about-page-content h2,
.about-page-content h3,
.about-page-content h4 {
    color: #1a1a2e;
    font-weight: 700;
    margin-top: 1.5rem;
    margin-bottom: .75rem;
}
.about-page-content p {
    margin-bottom: 1rem;
}
.about-page-content ul,
.about-page-content ol {
    padding-right: 1.4rem;
    margin-bottom: 1rem;
}
.about-page-content img {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
}
.about-page-empty {
    padding: 48px 24px;
    color: #888;
}
.about-page-empty i {
    font-size: 2.5rem;
    color: rgb(var(--c-accent-rgb, 14 165 233));
    display: block;
}
.about-page-cta {
    background: #fff;
    border-radius: 16px;
    padding: 36px 28px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, .07);
}
.about-page-cta p {
    font-size: 1.05rem;
    color: #555;
    margin: 0 0 18px;
}

/* ===== Contact Page ===== */
.contact-page-section {
    padding: 60px 0 80px;
    direction: rtl;
    background: #f4f7fb;
}
.contact-page-intro {
    font-size: 1.05rem;
    color: #555;
    max-width: 680px;
    margin: 0 auto 36px;
    line-height: 1.75;
}
.contact-info-row {
    margin-bottom: 48px !important;
}
.contact-info-card {
    background: #fff;
    border-radius: 16px;
    padding: 28px 20px;
    text-align: center;
    height: 100%;
    box-shadow: 0 4px 20px rgba(0, 0, 0, .07);
    border-bottom: 3px solid rgb(var(--c-accent-rgb, 14 165 233));
    transition: transform .25s, box-shadow .25s;
}
.contact-info-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 28px rgba(0, 0, 0, .12);
}
.contact-info-card__icon {
    width: 54px;
    height: 54px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    margin-bottom: 14px;
    background: rgba(var(--c-accent-rgb, 14 165 233), .1);
    color: rgb(var(--c-accent-rgb, 14 165 233));
}
.contact-info-card h3 {
    font-size: .95rem;
    font-weight: 700;
    color: #1a1a2e;
    margin: 0 0 8px;
}
.contact-info-card a {
    color: rgb(var(--c-accent-rgb, 14 165 233));
    text-decoration: none;
    font-weight: 600;
    font-size: .92rem;
    word-break: break-all;
}
.contact-info-card a:hover {
    text-decoration: underline;
}
.contact-info-card p {
    color: #555;
    font-size: .92rem;
    margin: 0;
    line-height: 1.6;
}
.contact-mail-wrap {
    max-width: 820px;
    margin: 0 auto;
    padding-top: 28px;
}
.contact-mail {
    position: relative;
}
.contact-mail__flap {
    position: relative;
    z-index: 1;
    width: 0;
    height: 0;
    margin: 0 auto -1px;
    border-left: 410px solid transparent;
    border-right: 410px solid transparent;
    border-bottom: 72px solid #e8eef5;
    filter: drop-shadow(0 -2px 6px rgba(0, 0, 0, .04));
}
.contact-mail__body {
    position: relative;
    z-index: 2;
    background: #fff;
    border-radius: 0 0 20px 20px;
    padding: 36px 36px 40px;
    box-shadow: 0 12px 40px rgba(0, 0, 0, .10);
    border-top: 4px solid rgb(var(--c-accent-rgb, 14 165 233));
}
.contact-mail__header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 28px;
    padding-bottom: 20px;
    border-bottom: 1px solid #f0f0f0;
}
.contact-mail__stamp {
    width: 56px;
    height: 56px;
    flex-shrink: 0;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    background: rgba(var(--c-accent-rgb, 14 165 233), .1);
    color: rgb(var(--c-accent-rgb, 14 165 233));
}
.contact-mail__header h2 {
    font-size: 1.25rem;
    font-weight: 700;
    color: #1a1a2e;
    margin: 0 0 4px;
}
.contact-mail__header p {
    font-size: .9rem;
    color: #888;
    margin: 0;
}
.contact-mail-form .form-label {
    font-weight: 600;
    font-size: .88rem;
    color: #333;
    margin-bottom: 6px;
}
.contact-mail-form .form-control {
    border-radius: 10px;
    border: 1px solid #e2e8f0;
    padding: .65rem .9rem;
    font-size: .92rem;
    transition: border-color .2s, box-shadow .2s;
}
.contact-mail-form .form-control:focus {
    border-color: rgb(var(--c-accent-rgb, 14 165 233));
    box-shadow: 0 0 0 3px rgba(var(--c-accent-rgb, 14 165 233), .15);
}
.contact-mail-form__actions {
    display: flex;
    justify-content: flex-start;
}

@media (max-width: 768px) {
    .about-page-content {
        padding: 28px 20px;
    }
}
@media (max-width: 900px) {
    .contact-mail__flap {
        border-left-width: min(45vw, 410px);
        border-right-width: min(45vw, 410px);
    }
}
@media (max-width: 576px) {
    .contact-mail__body {
        padding: 24px 18px 28px;
    }
    .contact-mail__header {
        flex-direction: column;
        text-align: center;
    }
    .contact-info-row .col-lg-3 {
        flex: 0 0 50%;
        max-width: 50%;
    }
}
@media (max-width: 400px) {
    .contact-info-row .col-lg-3 {
        flex: 0 0 100%;
        max-width: 100%;
    }
}
