/**
 * START - About Section Component Styles - By INFXO
 */

@import url('https://fonts.googleapis.com/css2?family=Cairo:wght@600;700;800;900&family=Tajawal:wght@400;500;700;800&display=swap');

.am-about-section, 
.am-about-section * {
    box-sizing: border-box;
}

/* 1. Identity Typography Enforcement */
.am-about-section {
    position: relative;
    width: 100%;
    padding: 60px 0 90px;
    background-color: #ffffff !important;
    background-image: none !important;
    font-family: 'Cairo', 'Tajawal', sans-serif !important;
    overflow: hidden;
    direction: inherit;
}

/* Force Cairo for Headings, Badges, Buttons, Tabs, Numbers, Metrics */
.am-about-section h1,
.am-about-section h2,
.am-about-section h3,
.am-about-section h4,
.am-about-section h5,
.am-about-section .am-main-heading,
.am-about-section .am-badge-text,
.am-about-section .am-console-tag,
.am-about-section .am-console-tag span,
.am-about-section .am-console-name,
.am-about-section .am-stage-kicker,
.am-about-section .am-stage-title,
.am-about-section .am-tab-title,
.am-about-section .am-tab-num,
.am-about-section .am-metric-val,
.am-about-section .am-btn-about,
.am-about-section .am-trust-badge-title,
.am-about-section .am-moving-title {
    font-family: 'Cairo', sans-serif !important;
}

/* Force Tajawal for Descriptions, Paragraphs, Body Text, Labels */
.am-about-section p,
.am-about-section .am-main-desc,
.am-about-section .am-main-desc *,
.am-about-section .am-stage-desc,
.am-about-section .am-stage-desc *,
.am-about-section .am-tab-desc,
.am-about-section .am-console-est,
.am-about-section .am-metric-lbl,
.am-about-section .am-trust-badge-sub,
.am-about-section .am-moving-cat,
.am-about-section .am-social-label {
    font-family: 'Tajawal', sans-serif !important;
}

body.rtl .am-about-section,
[dir="rtl"] .am-about-section {
    direction: rtl;
    text-align: right;
}

body:not(.rtl) .am-about-section,
[dir="ltr"] .am-about-section {
    direction: ltr;
    text-align: left;
}

.am-about-section .am-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 28px;
    position: relative;
    z-index: 2;
}

/* 2. Two-Column Balancing Grid */
.am-about-grid {
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 56px;
    align-items: center;
}

/* 3. Right Narrative Column */
.am-story-col {
    display: flex;
    flex-direction: column;
}

/* Perfectly Centered Top Verified Badge */
.am-badge-tag {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 34px;
    padding: 0 16px;
    gap: 8px;
    background: #ffffff;
    border-radius: 50px;
    border: 1px solid rgba(113, 18, 64, 0.14);
    box-shadow: 0 2px 8px rgba(113, 18, 64, 0.04);
    margin-bottom: 22px;
    align-self: flex-start;
    line-height: 1;
}

.am-badge-tag svg {
    width: 15px;
    height: 15px;
    color: #711240;
    flex-shrink: 0;
    display: block;
    align-self: center;
    margin: 0;
}

.am-badge-text {
    font-size: 13px;
    font-weight: 800;
    color: #711240;
    line-height: 1;
    display: inline-block;
    align-self: center;
    margin: 0;
    position: relative;
    top: -0.5px;
}

.am-main-heading {
    font-size: clamp(1.95rem, 2.5vw, 2.7rem);
    font-weight: 900;
    color: #0f172a;
    line-height: 1.45;
    margin: 0 0 20px 0;
    letter-spacing: -0.3px;
}

.am-heading-highlight {
    color: #711240;
}

.am-heading-muted {
    color: #64748b;
    font-weight: 800;
}

.am-main-desc {
    font-size: 16px;
    color: #334155;
    line-height: 1.95;
    margin-bottom: 30px;
    max-width: 680px;
}

.am-main-desc p {
    margin: 0 0 10px 0;
}

.am-main-desc p:last-child {
    margin-bottom: 0;
}

/* 4. The 4 Interactive Vertical Tabs */
.am-tabs-vertical-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 32px;
}

.am-tab-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 15px 20px;
    border-radius: 14px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.02);
}

body.rtl .am-tab-item,
[dir="rtl"] .am-tab-item {
    text-align: right;
}

body:not(.rtl) .am-tab-item,
[dir="ltr"] .am-tab-item {
    text-align: left;
}

.am-tab-item::before {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    width: 4px;
    background: #711240;
    opacity: 0;
    transition: opacity 0.25s ease;
}

body.rtl .am-tab-item::before,
[dir="rtl"] .am-tab-item::before {
    right: 0;
    left: auto;
}

body:not(.rtl) .am-tab-item::before,
[dir="ltr"] .am-tab-item::before {
    left: 0;
    right: auto;
}

.am-tab-item:hover {
    border-color: rgba(113, 18, 64, 0.2);
    box-shadow: 0 6px 18px rgba(113, 18, 64, 0.06);
}

body.rtl .am-tab-item:hover,
[dir="rtl"] .am-tab-item:hover {
    transform: translateX(-4px);
}

body:not(.rtl) .am-tab-item:hover,
[dir="ltr"] .am-tab-item:hover {
    transform: translateX(4px);
}

.am-tab-item.active {
    background: #ffffff;
    border-color: rgba(113, 18, 64, 0.3);
    box-shadow: 0 10px 24px -6px rgba(113, 18, 64, 0.08);
}

.am-tab-item.active::before {
    opacity: 1;
}

.am-tab-num {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 900;
    color: #334155;
    flex-shrink: 0;
    transition: all 0.25s ease;
}

.am-tab-item.active .am-tab-num {
    background: #711240;
    border-color: #711240;
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(113, 18, 64, 0.3);
}

.am-tab-content-wrap {
    display: flex;
    flex-direction: column;
}

.am-tab-title {
    font-size: 15.5px;
    font-weight: 800;
    color: #0f172a;
    line-height: 1.3;
}

.am-tab-desc {
    font-size: 12.5px;
    color: #64748b;
    font-weight: 500;
    margin-top: 2px;
    line-height: 1.45;
}

/* 5. Footer Actions Strip */
.am-footer-strip {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding-top: 24px;
    border-top: 1px solid rgba(113, 18, 64, 0.08);
    flex-wrap: wrap;
}

.am-btn-about {
    background: #711240;
    color: #ffffff !important;
    font-size: 14px;
    font-weight: 800;
    padding: 12px 30px;
    border-radius: 50px;
    text-decoration: none !important;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    box-shadow: 0 8px 20px -4px rgba(113, 18, 64, 0.3);
    transition: all 0.25s ease;
    border: none;
    line-height: 1;
}

.am-btn-about:hover {
    background: #490827;
    transform: translateY(-2px);
    box-shadow: 0 12px 26px -4px rgba(113, 18, 64, 0.42);
}

.am-btn-icon {
    display: block;
    flex-shrink: 0;
    width: 16px;
    height: 16px;
    transition: transform 0.25s ease;
}

.am-btn-about:hover .am-btn-icon {
    transform: scale(1.12);
}

.am-social-wrap {
    display: flex;
    align-items: center;
    gap: 10px;
}

.am-social-label {
    font-size: 12.5px;
    font-weight: 800;
    color: #64748b;
}

.am-social-icon-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #334155;
    text-decoration: none !important;
    transition: all 0.2s ease;
}

.am-social-icon-btn:hover {
    background: #711240;
    border-color: #711240;
    color: #ffffff;
    transform: translateY(-2px);
}

.am-social-icon-btn svg {
    width: 14px;
    height: 14px;
    fill: currentColor;
    display: block;
}

/* 6. Left Column Stack & Console Card */
.am-visual-stack {
    display: flex;
    flex-direction: column;
    gap: 24px;
    position: relative;
}

.am-console-card {
    background: #ffffff;
    border-radius: 24px;
    border: 1px solid rgba(226, 232, 240, 0.85);
    box-shadow: 0 24px 60px -15px rgba(113, 18, 64, 0.1), 0 1px 3px rgba(0, 0, 0, 0.04);
    padding: 30px;
    position: relative;
}

.am-console-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 1px solid #f1f5f9;
}

.am-console-brand {
    display: flex;
    align-items: center;
    gap: 12px;
}

.am-seal-circle {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: #ffffff;
    border: 1.5px solid rgba(113, 18, 64, 0.12);
    box-shadow: 0 4px 12px rgba(113, 18, 64, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 4px;
    flex-shrink: 0;
}

.am-seal-circle img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

.am-console-meta {
    display: flex;
    flex-direction: column;
}

.am-console-name {
    font-size: 14.5px;
    font-weight: 900;
    color: #0f172a;
    line-height: 1.2;
}

.am-console-est {
    font-size: 11px;
    font-weight: 800;
    color: #64748b;
    margin-top: 3px;
    letter-spacing: 0.5px;
}

/* Perfectly Centered Verification Badge in Console */
.am-console-tag {
    background: #f8fafc;
    color: #334155;
    border: 1px solid #cbd5e1;
    min-height: 28px;
    padding: 0 12px;
    border-radius: 30px;
    font-size: 11.5px;
    font-weight: 800;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.03);
    line-height: 1;
}

.am-console-tag svg {
    width: 13px;
    height: 13px;
    color: #711240;
    flex-shrink: 0;
    display: block;
    align-self: center;
    margin: 0;
}

.am-console-tag span {
    display: inline-block;
    line-height: 1;
    align-self: center;
    margin: 0;
    position: relative;
    top: -0.5px;
}

/* Console Stage (Linked to Tabs) */
.am-console-stage {
    min-height: 200px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 18px;
    padding: 22px;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.am-stage-panel {
    display: none;
    opacity: 0;
    transform: translateY(6px);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.am-stage-panel.active {
    display: block;
    opacity: 1;
    transform: translateY(0);
}

.am-stage-kicker {
    font-size: 11.5px;
    font-weight: 800;
    color: #711240;
    letter-spacing: 0.3px;
    margin-bottom: 6px;
}

.am-stage-title {
    font-size: 18px;
    font-weight: 900;
    color: #0f172a;
    line-height: 1.35;
    margin: 0 0 8px 0;
}

.am-stage-desc {
    font-size: 13px;
    color: #334155;
    line-height: 1.75;
    margin-bottom: 14px;
}

.am-stage-metrics-row {
    display: flex;
    align-items: center;
    gap: 24px;
    padding-top: 12px;
    border-top: 1px solid #e2e8f0;
}

.am-metric-block {
    display: flex;
    flex-direction: column;
}

.am-metric-val {
    font-size: 18px;
    font-weight: 900;
    color: #711240;
    line-height: 1.1;
}

.am-metric-lbl {
    font-size: 11px;
    font-weight: 700;
    color: #64748b;
    margin-top: 2px;
}

/* 7. Floating Trust Badge (Positioned Left) */
.am-floating-trust-badge {
    position: absolute;
    bottom: -20px;
    background: #ffffff;
    border: 1.5px solid rgba(113, 18, 64, 0.12);
    border-radius: 18px;
    box-shadow: 0 16px 36px -8px rgba(113, 18, 64, 0.16), 0 4px 12px rgba(0, 0, 0, 0.04);
    padding: 10px 18px;
    display: flex;
    align-items: center;
    gap: 12px;
    z-index: 10;
    animation: amSmoothFloat 4s ease-in-out infinite;
}

body.rtl .am-floating-trust-badge,
[dir="rtl"] .am-floating-trust-badge {
    left: 20px;
    right: auto;
}

body:not(.rtl) .am-floating-trust-badge,
[dir="ltr"] .am-floating-trust-badge {
    right: 20px;
    left: auto;
}

@keyframes amSmoothFloat {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-7px);
    }
}

.am-trust-shield-icon {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    background: #fdf2f7;
    color: #711240;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.am-trust-shield-icon svg {
    width: 17px;
    height: 17px;
    display: block;
}

.am-trust-badge-texts {
    display: flex;
    flex-direction: column;
}

.am-trust-badge-title {
    font-size: 13.5px;
    font-weight: 900;
    color: #0f172a;
    line-height: 1.2;
}

.am-trust-badge-sub {
    font-size: 11px;
    font-weight: 700;
    color: #64748b;
    margin-top: 2px;
}

/* 8. Bottom Rotating Slider Card */
.am-feature-slider-card {
    background: #ffffff;
    border-radius: 18px;
    border: 1px solid #e2e8f0;
    padding: 20px 24px;
    position: relative;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.03);
    transition: all 0.25s ease;
}

body.rtl .am-feature-slider-card,
[dir="rtl"] .am-feature-slider-card {
    border-right: 4px solid #711240;
    border-left: 1px solid #e2e8f0;
}

body:not(.rtl) .am-feature-slider-card,
[dir="ltr"] .am-feature-slider-card {
    border-left: 4px solid #711240;
    border-right: 1px solid #e2e8f0;
}

.am-feature-slider-card:hover {
    border-color: rgba(113, 18, 64, 0.15);
    transform: translateY(-2px);
    box-shadow: 0 10px 24px -4px rgba(113, 18, 64, 0.08);
}

body.rtl .am-feature-slider-card:hover,
[dir="rtl"] .am-feature-slider-card:hover {
    border-right-color: #711240;
}

body:not(.rtl) .am-feature-slider-card:hover,
[dir="ltr"] .am-feature-slider-card:hover {
    border-left-color: #711240;
}

.am-moving-slide {
    display: none;
    opacity: 0;
    transform: translateY(4px);
    transition: opacity 0.35s ease, transform 0.35s ease;
    text-decoration: none !important;
}

.am-moving-slide.active {
    display: block;
    opacity: 1;
    transform: translateY(0);
}

.am-moving-cat {
    font-size: 11.5px;
    font-weight: 800;
    color: #64748b;
    margin-bottom: 4px;
}

.am-moving-title {
    font-size: 17px;
    font-weight: 900;
    color: #0f172a;
    line-height: 1.35;
    transition: color 0.2s ease;
}

.am-moving-slide:hover .am-moving-title {
    color: #711240;
}

/* Indicators */
.am-slider-indicators {
    display: flex;
    align-items: center;
    gap: 5px;
    margin-top: 12px;
}

.am-indicator-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #cbd5e1;
    cursor: pointer;
    transition: all 0.25s ease;
}

.am-indicator-dot.active {
    width: 20px;
    border-radius: 8px;
    background: #711240;
}

/* 9. Scroll Reveal Animations */
.am-scroll-reveal {
    opacity: 0;
    transition: opacity 0.75s cubic-bezier(0.16, 1, 0.3, 1), transform 0.75s cubic-bezier(0.16, 1, 0.3, 1);
    will-change: opacity, transform;
}

.am-scroll-reveal[data-reveal="right"] {
    transform: translateX(30px);
}

body:not(.rtl) .am-scroll-reveal[data-reveal="right"],
[dir="ltr"] .am-scroll-reveal[data-reveal="right"] {
    transform: translateX(-30px);
}

.am-scroll-reveal[data-reveal="left"] {
    transform: translateX(-30px);
}

body:not(.rtl) .am-scroll-reveal[data-reveal="left"],
[dir="ltr"] .am-scroll-reveal[data-reveal="left"] {
    transform: translateX(30px);
}

.am-scroll-reveal.in-view {
    opacity: 1;
    transform: translate(0, 0);
}

.am-stagger-item {
    opacity: 0;
    transform: translateY(14px);
    transition: opacity 0.5s cubic-bezier(0.16, 1, 0.3, 1), transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.am-stagger-parent.in-view .am-stagger-item {
    opacity: 1;
    transform: translateY(0);
}

.am-stagger-parent.in-view .am-stagger-item:nth-child(1) { transition-delay: 0.08s; }
.am-stagger-parent.in-view .am-stagger-item:nth-child(2) { transition-delay: 0.16s; }
.am-stagger-parent.in-view .am-stagger-item:nth-child(3) { transition-delay: 0.24s; }
.am-stagger-parent.in-view .am-stagger-item:nth-child(4) { transition-delay: 0.32s; }

/* 10. Responsiveness */
@media (max-width: 1024px) {
    .am-about-grid {
        grid-template-columns: 1fr;
        gap: 48px;
    }
    .am-floating-trust-badge {
        position: static;
        margin-top: 14px;
        animation: none;
    }
}

@media (max-width: 640px) {
    .am-about-section {
        padding: 40px 0 60px;
    }
    .am-main-heading {
        font-size: 1.8rem;
    }
    .am-footer-strip {
        flex-direction: column;
        align-items: stretch;
    }
    .am-btn-about {
        justify-content: center;
    }
    .am-social-wrap {
        justify-content: center;
    }
}

/**
 * END - About Section Component Styles - infxo.com
 */