/* ==========================================================================
   REXMYZE ABOUT US PAGE STYLES
   ========================================================================== */

/* --- 1. MISSION HERO --- */
.rex-mission-hero {
    width: 100%;
    background-color: var(--background, #ffffff);
    position: relative;
    overflow: hidden;
    padding: 80px 0 60px;
}

.rex-mission-hero .rex-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
}

.rex-mission-hero .rex-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 48px;
    align-items: center;
}

@media (min-width: 1024px) {
    .rex-mission-hero .rex-grid {
        grid-template-columns: 1.1fr 0.9fr;
        gap: 64px;
    }
}

.rex-mission-hero .rex-content-block {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    max-width: 580px;
}

.rex-mission-hero .rex-badge-tag {
    display: inline-flex;
    align-items: center;
    border-radius: 9999px;
    border: 1px solid rgba(84, 160, 214, 0.25);
    background-color: rgba(84, 160, 214, 0.08);
    padding: 6px 18px;
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--primary, #54A0D6);
    margin-bottom: 22px;
}

.rex-mission-hero .rex-main-title {
    font-size: clamp(34px, 5vw, 56px);
    font-weight: 900;
    letter-spacing: -0.03em;
    line-height: 1.08;
    color: var(--foreground, #1a202c);
    margin-bottom: 22px;
    font-family: 'Poppins', sans-serif;
}

.rex-mission-hero .rex-main-title span.blue-italic {
    color: var(--primary, #54A0D6);
    font-style: italic;
    display: inline-block;
}

.rex-mission-hero .rex-quote-indicator {
    border-left: 4px solid var(--primary, #54A0D6);
    padding-left: 20px;
    margin-bottom: 32px;
}

.rex-mission-hero .rex-quote-indicator p {
    font-size: clamp(15px, 1.2vw, 18px);
    color: var(--text, #2d3748);
    font-weight: 500;
    font-style: italic;
    line-height: 1.65;
    margin: 0;
}

.rex-mission-hero .rex-btn-group {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    width: 100%;
}

.rex-mission-hero .rex-btn-group a {
    text-decoration: none;
}

.rex-mission-hero .rex-btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 54px;
    background-color: var(--primary, #54A0D6);
    color: #ffffff;
    border: none;
    border-radius: 12px;
    padding: 0 36px;
    font-size: 17px;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 10px 25px rgba(84, 160, 214, 0.25);
    transition: all 0.3s ease;
}

.rex-mission-hero .rex-btn-primary svg,
.rex-mission-hero .rex-btn-primary i {
    margin-left: 8px;
    width: 18px;
    height: 18px;
    fill: currentColor;
    transition: transform 0.3s ease;
}

.rex-mission-hero .rex-btn-primary:hover {
    background-color: #438fc5;
    transform: translateY(-2px);
    box-shadow: 0 15px 30px rgba(84, 160, 214, 0.35);
}

.rex-mission-hero .rex-btn-primary:hover svg,
.rex-mission-hero .rex-btn-primary:hover i {
    transform: translateX(4px);
}

.rex-mission-hero .rex-btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 54px;
    background-color: transparent;
    color: var(--primary, #54A0D6);
    border: 2px solid var(--primary, #54A0D6);
    border-radius: 12px;
    padding: 0 36px;
    font-size: 17px;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.rex-mission-hero .rex-btn-secondary:hover {
    background-color: rgba(84, 160, 214, 0.08);
    transform: translateY(-2px);
}

@media (max-width: 540px) {
    .rex-mission-hero .rex-btn-group {
        flex-direction: column;
    }
    .rex-mission-hero .rex-btn-primary,
    .rex-mission-hero .rex-btn-secondary {
        width: 100%;
    }
}

.rex-mission-hero .rex-graphic-panel {
    position: relative;
    width: 100%;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

@media (min-width: 1024px) {
    .rex-mission-hero .rex-graphic-panel {
        margin-right: 0;
    }
}

.rex-mission-hero .rex-image-container {
    position: relative;
    width: 100%;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.15);
}

.rex-mission-hero .rex-image-container img {
    width: 100%;
    height: auto;
    display: block;
    filter: grayscale(100%);
    object-fit: cover;
    transition: filter 0.5s ease;
}

.rex-mission-hero .rex-image-container:hover img {
    filter: grayscale(20%);
}

.rex-mission-hero .rex-floating-badge {
    position: absolute;
    top: -20px;
    left: -20px;
    background-color: #ffffff;
    padding: 20px 28px;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(0, 0, 0, 0.05);
    z-index: 10;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 150px;
    transform: rotate(-5deg);
    transition: all 0.3s ease;
}

.rex-mission-hero .rex-graphic-panel:hover .rex-floating-badge {
    transform: rotate(-2deg) scale(1.04);
}

.rex-mission-hero .rex-badge-num {
    font-size: 26px;
    font-weight: 900;
    color: var(--foreground, #1a202c);
    line-height: 1;
}

.rex-mission-hero .rex-badge-lbl {
    font-size: 9px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: #718096;
    margin-top: 5px;
    text-align: center;
}

@media (max-width: 640px) {
    .rex-mission-hero .rex-floating-badge {
        top: -12px;
        left: -8px;
        padding: 14px 20px;
        min-width: 120px;
    }
    .rex-mission-hero .rex-badge-num {
        font-size: 20px;
    }
}

/* --- 2. HORIZONTAL STATISTICS SECTION --- */
.wp-stats-section-horizontal {
    padding: 3rem 0;
    border-top: 1px solid var(--border, #e5e7eb);
    border-bottom: 1px solid var(--border, #e5e7eb);
    background-color: rgba(243, 244, 246, 0.4);
    width: 100%;
    overflow: hidden;
}

.wp-stats-container-horizontal {
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.wp-stats-flex-row {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem 1.5rem;
    align-items: center;
}

@media (min-width: 768px) {
    .wp-stats-flex-row {
        grid-template-columns: repeat(4, 1fr);
        gap: 2.5rem;
    }
}

.wp-stat-item-horizontal {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.wp-stats-section-horizontal .wp-stat-icon-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 3.5rem;
    height: 3.5rem;
    border-radius: 1rem;
    background-color: rgba(59, 130, 246, 0.1);
    color: #3b82f6;
    margin-bottom: 0.85rem;
    transition: all 0.25s ease-in-out;
}

.wp-stats-section-horizontal .wp-stat-icon-wrapper svg {
    width: 1.5rem;
    height: 1.5rem;
    display: block;
    color: inherit;
}

.wp-stats-section-horizontal .wp-stat-icon-wrapper svg path,
.wp-stats-section-horizontal .wp-stat-icon-wrapper svg circle {
    stroke: currentColor;
    stroke-width: 2;
}

.wp-stats-section-horizontal .wp-stat-icon-wrapper svg[fill="none"] {
    fill: none;
    stroke: currentColor;
}

.wp-stats-section-horizontal .wp-stat-icon-wrapper svg:not([fill="none"]) {
    fill: currentColor;
}

.wp-stats-section-horizontal .wp-stat-icon-wrapper i {
    font-size: 1.5rem;
    line-height: 1;
    color: currentColor;
    display: inline-block;
}

.wp-stat-item-horizontal:hover .wp-stat-icon-wrapper,
.wp-stat-item-horizontal.active .wp-stat-icon-wrapper {
    background-color: #3b82f6 !important;
    color: #ffffff !important;
    transform: translateY(-2px);
}

.wp-stat-item-horizontal:hover .wp-stat-icon-wrapper svg,
.wp-stat-item-horizontal.active .wp-stat-icon-wrapper svg,
.wp-stat-item-horizontal:hover .wp-stat-icon-wrapper i,
.wp-stat-item-horizontal.active .wp-stat-icon-wrapper i {
    color: #ffffff !important;
    stroke: #ffffff !important;
}

.wp-stat-item-horizontal:hover .wp-stat-icon-wrapper svg path,
.wp-stat-item-horizontal:hover .wp-stat-icon-wrapper svg circle,
.wp-stat-item-horizontal.active .wp-stat-icon-wrapper svg path,
.wp-stat-item-horizontal.active .wp-stat-icon-wrapper svg circle {
    stroke: #ffffff !important;
}

.wp-stats-section-horizontal .wp-stat-number {
    font-size: clamp(1.6rem, 2.5vw, 2.25rem);
    font-weight: 900;
    color: #111827;
    margin: 0 0 0.2rem 0 !important;
    letter-spacing: -0.04em;
    line-height: 1.15;
    font-family: 'Poppins', sans-serif;
}

.wp-stats-section-horizontal .wp-stat-label {
    font-size: 10px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: #6b7280;
    margin: 0 !important;
}

/* --- 3. MISSION & VISION SECTION --- */
.wp-mv-section {
    padding: 4rem 1rem;
    background-color: #ffffff;
}

.wp-mv-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

@media (min-width: 1024px) {
    .wp-mv-container {
        flex-direction: row;
        gap: 3rem;
    }
}

.wp-mv-card {
    background: #ffffff;
    padding: 2.5rem;
    box-sizing: border-box;
    transition: all 0.3s ease-in-out;
    flex: 1;
}

.wp-mv-card.mission-card {
    border-left: 6px solid #3b82f6;
    border-top: 1px solid #e5e7eb;
    border-bottom: 1px solid #e5e7eb;
    border-right: 1px solid #e5e7eb;
    border-top-right-radius: 24px;
    border-bottom-right-radius: 24px;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.05);
}

.wp-mv-card.vision-card {
    border-right: 6px solid #3b82f6;
    border-top: 1px solid #e5e7eb;
    border-bottom: 1px solid #e5e7eb;
    border-left: 1px solid #e5e7eb;
    border-top-left-radius: 24px;
    border-bottom-left-radius: 24px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

.wp-mv-card.mission-card:hover {
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
    transform: translateY(-3px);
}

.wp-mv-card.vision-card:hover {
    transform: translateX(-6px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
}

.wp-mv-icon-box {
    width: 3.25rem;
    height: 3.25rem;
    background-color: #498ad8;
    color: #ffffff;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    font-size: 1.35rem;
}

.wp-mv-icon-box svg,
.wp-mv-icon-box i {
    width: 1.5rem;
    height: 1.5rem;
    fill: currentColor;
}

.wp-mv-title {
    font-size: 1.75rem;
    font-weight: 900;
    color: #111827;
    margin: 0 0 1.25rem 0 !important;
    letter-spacing: -0.03em;
    font-family: 'Poppins', sans-serif;
}

.wp-mv-title span {
    color: #498ad8;
    font-style: italic;
    text-decoration: underline;
    text-underline-offset: 6px;
    text-decoration-thickness: 2px;
}

.wp-mv-text {
    font-size: 0.98rem;
    line-height: 1.7;
    color: #4b5563;
    font-style: italic;
    font-weight: 500;
    margin: 0 !important;
}

/* --- 4. VALUES THAT DEFINE US --- */
.rex-values-section {
    padding: 5rem 0;
    background-color: #f8fafc;
    overflow-x: hidden;
}

.rex-values-section .container {
    max-width: 1280px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 1.5rem;
    padding-right: 1.5rem;
}

.rex-values-section .section-headline {
    font-size: clamp(2.2rem, 3.5vw, 3rem);
    font-weight: 900;
    letter-spacing: -0.03em;
    margin-bottom: 1rem;
    color: #0f172a;
    font-family: 'Poppins', sans-serif;
    text-align: center;
}

.rex-values-section .italic-primary {
    font-style: italic;
    color: #0066ff;
}

.rex-values-section .section-sub {
    color: #475569;
    font-size: 1.1rem;
    max-width: 48rem;
    margin-left: auto;
    margin-right: auto;
    font-weight: 500;
    margin-bottom: 4rem;
    text-align: center;
    line-height: 1.6;
}

.rex-values-section .card-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

@media (min-width: 768px) {
    .rex-values-section .card-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .rex-values-section .card-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

.rex-values-section .value-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-bottom: 8px solid transparent;
    padding: 2.5rem 2rem;
    transition: all 0.25s ease;
    text-align: center;
    border-radius: 0px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.03);
}

.rex-values-section .value-card:hover {
    border-bottom-color: #0066ff;
    transform: translateY(-4px);
    box-shadow: 0 12px 28px rgba(0, 102, 255, 0.08);
}

.rex-values-section .icon-circle {
    width: 3.25rem;
    height: 3.25rem;
    background-color: rgba(0, 102, 255, 0.1);
    border-radius: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.75rem auto;
    color: #0066ff;
    font-size: 1.35rem;
    transition: all 0.2s ease;
}

.rex-values-section .icon-circle svg {
    width: 1.5rem;
    height: 1.5rem;
    display: block;
    color: inherit;
}

.rex-values-section .icon-circle svg path,
.rex-values-section .icon-circle svg circle,
.rex-values-section .icon-circle svg rect,
.rex-values-section .icon-circle svg line,
.rex-values-section .icon-circle svg polyline {
    stroke: currentColor;
    stroke-width: 2;
}

.rex-values-section .icon-circle svg[fill="none"] {
    fill: none;
    stroke: currentColor;
}

.rex-values-section .icon-circle svg:not([fill="none"]) {
    fill: currentColor;
}

.rex-values-section .icon-circle i {
    font-size: 1.4rem;
    line-height: 1;
    color: currentColor;
    display: inline-block;
}

.rex-values-section .value-card:hover .icon-circle,
.rex-values-section .value-card.active .icon-circle {
    background-color: #0066ff !important;
    color: #ffffff !important;
}

.rex-values-section .value-card:hover .icon-circle svg,
.rex-values-section .value-card.active .icon-circle svg,
.rex-values-section .value-card:hover .icon-circle i,
.rex-values-section .value-card.active .icon-circle i {
    color: #ffffff !important;
    stroke: #ffffff !important;
}

.rex-values-section .value-card:hover .icon-circle svg path,
.rex-values-section .value-card:hover .icon-circle svg circle,
.rex-values-section .value-card.active .icon-circle svg path,
.rex-values-section .value-card.active .icon-circle svg circle {
    stroke: #ffffff !important;
}

.rex-values-section .card-title {
    font-size: 1.15rem;
    font-weight: 900;
    letter-spacing: -0.02em;
    margin-bottom: 0.75rem;
    color: #0f172a;
    font-family: 'Poppins', sans-serif;
}

.rex-values-section .card-description {
    font-size: 0.88rem;
    color: #475569;
    font-style: italic;
    font-weight: 500;
    line-height: 1.55;
    margin: 0;
}
