/* ==========================================
   about.css — About page exclusive styles
   Spec: professional academic style
   Brand color: #1677FF
   ========================================== */

/* ===== Color variables ===== */
:root {
    --brand: #1677FF;
    --brand-light: #E8F3FF;
    --brand-dark: #0050B3;
    --bg-gray: #F5F7FA;
    --bg-card-blue: #F0F7FF;
    --bg-card-gray: #F8F9FA;
    --bg-card-teal: #EFF9F9;
    --text-title: #1A1A1A;
    --text-body: #333333;
    --text-secondary: #666666;
    --text-note: #999999;
    --text-muted: #777777;
    --shadow-card: 0 2px 12px rgba(0,0,0,0.05);
    --shadow-hover: 0 6px 16px rgba(22,119,255,0.12);
    --radius-card: 12px;
    --radius-tag: 6px;
    --spacing-section: 60px;
    --padding-card: 24px;
}

/* ===== Page entry animation ===== */
.about-fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}
.about-fade-in.about-visible {
    opacity: 1;
    transform: translateY(0);
}

/* ===== HERO ===== */
.about-hero {
    padding: 140px 0 80px;
    background: radial-gradient(800px 400px at 50% 0, rgba(22,119,255,.20), transparent 65%),
                radial-gradient(600px 400px at 20% 100%, rgba(152,73,232,.14), transparent 65%);
    background-color: #02093a;
    text-align: center;
    position: relative;
    overflow: hidden;
}
.about-hero h1 {
    font-size: clamp(36px, 5vw, 64px);
    font-weight: 800;
    color: #fff;
    letter-spacing: -.03em;
    margin: 0 0 12px;
}
.about-hero-sub {
    font-size: 20px;
    color: rgba(255,255,255,.6);
    margin: 0;
}

/* ===== Common blocks ===== */
.about-block {
    padding: var(--spacing-section) 0;
    background: #fff;
}
.about-block-bg {
    background: var(--bg-gray);
}
.about-block-brand {
    background: var(--brand-light);
}
.about-inner {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ===== Section title ===== */
.about-block-header {
    position: relative;
    text-align: right;
    margin-bottom: 36px;
}
.about-block-header h2 {
    font-size: 32px;
    font-weight: 700;
    color: var(--text-title);
    margin: 0 0 10px;
    display: inline-block;
    position: relative;
    z-index: 1;
}
.about-block-header .about-title-bar {
    display: inline-block;
    width: 30px;
    height: 2px;
    background: var(--brand);
    border-radius: 2px;
}
.about-header-en {
    position: absolute;
    right: 0;
    bottom: -8px;
    font-size: 40px;
    font-weight: 900;
    color: rgba(22,119,255,0.07);
    letter-spacing: 0.12em;
    pointer-events: none;
    line-height: 1;
    font-family: 'Georgia', serif;
    user-select: none;
}

/* Section title alignment */
.about-why-section .about-block-header,
.about-platforms-section .about-block-header {
    text-align: left;
}
.about-why-section .about-block-header .about-header-en,
.about-platforms-section .about-block-header .about-header-en {
    right: auto;
    left: 0;
}
.about-testimonials-section .about-block-header {
    text-align: center;
}
.about-testimonials-section .about-block-header .about-header-en {
    left: 0;
    right: 0;
    text-align: center;
}

/* ==========================================
   Section 1: Who We Are — double-layer offset layout
   ========================================== */
.about-who-section {
    position: relative;
    overflow: hidden;
    padding: 60px 0;
    background: #fff;
}

/* --- Full-screen background image --- */
.about-who-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    filter: saturate(0.7) brightness(1.05);
    opacity: 0.12;
    pointer-events: none;
}

/* --- Semi-transparent English watermark --- */
.about-who-watermark {
    position: absolute;
    bottom: 30px;
    right: 40px;
    font-size: clamp(48px, 8vw, 96px);
    font-weight: 900;
    color: rgba(22,119,255,0.06);
    letter-spacing: 0.08em;
    pointer-events: none;
    user-select: none;
    line-height: 1;
    font-family: 'Georgia', serif;
}

/* --- Double-layer layout container --- */
.about-who-layout {
    position: relative;
    display: flex;
    align-items: stretch;
    min-height: 380px;
}

/* --- Left white floating card --- */
.about-who-card {
    position: relative;
    z-index: 2;
    width: 50%;
    flex-shrink: 0;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 3px 15px rgba(0,0,0,0.06);
    padding: 32px;
    align-self: center;
    box-sizing: border-box;
}

/* Brand logo + 58SCI text + short divider */
.about-who-card-logo {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
    margin-bottom: 24px;
}
.about-who-card-brand {
    display: flex;
    align-items: center;
    gap: 6px;
    font-weight: 800;
    font-size: 1.5rem;
    background: var(--gradient-main);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1.2;
}
.about-who-card-brand-icon {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    object-fit: contain;
    padding: 3px;
    display: block;
    flex-shrink: 0;
}
.about-who-card-divider {
    display: block;
    width: 110px;
    height: 2px;
    background: var(--brand);
    border-radius: 2px;
}

/* Title */
.about-who-card-title {
    font-size: 22px;
    font-weight: 700;
    color: var(--text-title);
    margin: 0 0 12px;
    letter-spacing: -.01em;
}
.about-who-card .about-title-bar {
    display: block;
    width: 30px;
    height: 2px;
    background: var(--brand);
    border-radius: 2px;
    margin-bottom: 20px;
}

/* Body text */
.about-who-card-text {
    font-size: 14px;
    line-height: 1.7;
    color: var(--text-body);
    margin: 0;
}
.about-who-card-text .about-highlight {
    color: var(--brand);
    font-weight: 700;
}

/* --- Right campus image --- */
.about-who-image {
    position: absolute;
    right: 0;
    top: 0;
    bottom: 0;
    width: 62%;
    border-radius: 12px;
    overflow: hidden;
    z-index: 1;
}
.about-who-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    border-radius: 12px;
    filter: saturate(0.7);
}

/* --- Mobile <768px --- */
@media (max-width: 768px) {
    .about-who-section {
        padding: 40px 0;
    }
    .about-who-watermark {
        display: none;
    }
    .about-who-layout {
        flex-direction: column;
        gap: 30px;
        min-height: auto;
    }
    .about-who-card {
        width: 100%;
        padding: 24px;
    }
    .about-who-image {
        position: relative;
        right: auto;
        top: auto;
        bottom: auto;
        width: 100%;
        height: 240px;
        border-radius: 12px;
    }
    .about-who-image img {
        border-radius: 12px;
    }
}

/* ==========================================
   Section 2: Our Mission — full-width light blue card
   ========================================== */
.about-mission-section .about-block-header {
    margin-bottom: 20px;
}
.about-mission-card {
    background: #E8F3FF;
    border-radius: var(--radius-card);
    padding: 40px;
    text-align: center;
    position: relative;
    box-shadow: 0 2px 12px rgba(0,0,0,0.04);
}
.about-mission-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    color: var(--brand);
    margin: 0 20px;
    vertical-align: middle;
}
.about-mission-slogan {
    font-size: 28px;
    font-weight: 700;
    color: var(--brand);
    line-height: 1.5;
    margin: 24px 0;
}
.about-mission-card p {
    font-size: 14px;
    line-height: 1.7;
    color: var(--text-body);
    margin: 0 auto;
    max-width: 700px;
    text-align: center;
}
.about-mission-card p strong {
    color: var(--brand);
    font-weight: 700;
}

@media (max-width: 768px) {
    .about-mission-section {
        padding: 40px 0;
    }
    .about-mission-section .about-block-header {
        margin-bottom: 16px;
    }
    .about-block-header h2 {
        font-size: 24px;
    }
    .about-header-en {
        font-size: 40px;
        bottom: -6px;
    }
    .about-mission-card {
        padding: 24px;
    }
    .about-mission-slogan {
        font-size: 22px;
    }
    .about-mission-icon {
        width: 36px;
        height: 36px;
        margin: 0 12px;
    }
    .about-mission-card p {
        text-align: left;
    }
}

/* ==========================================
   Section 3: Why Choose Us — 3-column cards
   ========================================== */
.about-why-section .about-block-header {
    margin-bottom: 32px;
}
.about-reasons {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}
.about-reason-card {
    border-radius: var(--radius-card);
    padding: 28px;
    box-shadow: var(--shadow-card);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.about-reason-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-hover);
}
.about-reason-card:nth-child(1) {
    background: var(--bg-card-blue);
}
.about-reason-card:nth-child(2) {
    background: var(--bg-card-gray);
}
.about-reason-card:nth-child(3) {
    background: var(--bg-card-teal);
}

.about-reason-card h3 {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 18px;
    font-weight: 600;
    color: var(--text-title);
    margin: 0 0 10px;
}
.about-reason-card h3 svg {
    flex-shrink: 0;
    width: 20px;
    height: 20px;
    color: var(--brand);
}
.about-reason-card p {
    font-size: 14px;
    line-height: 1.7;
    color: var(--text-body);
    margin: 0 0 10px;
}
.about-reason-card p:last-of-type {
    margin-bottom: 0;
}

.about-reason-bullets {
    list-style: none;
    padding: 0;
    margin: 0;
    margin-top: 10px;
}
.about-reason-bullets li {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 6px;
    font-size: 14px;
    line-height: 1.7;
    color: #444;
    margin-bottom: 10px;
}
.about-reason-bullets li:last-child {
    margin-bottom: 0;
}
.about-reason-bullets li strong {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--brand);
    font-weight: 700;
    font-size: 14px;
}
.about-reason-bullets-inline li {
    flex-direction: row;
    align-items: flex-start;
    gap: 8px;
}
.about-reason-bullets-inline li strong {
    display: inline;
    color: var(--brand);
    font-weight: 700;
    font-size: 14px;
}
.about-reason-inline-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 8px;
}
.about-reason-inline-list > div {
    font-size: 12px;
    line-height: 1.7;
    color: #555;
}
.about-reason-inline-list > div > span:first-child {
    font-weight: 700;
    color: var(--brand);
    white-space: nowrap;
}
.about-reason-bullets li strong svg {
    flex-shrink: 0;
    width: 16px;
    height: 16px;
}
.about-reason-bullets li p {
    margin: 0;
    font-size: 12px;
    line-height: 1.7;
    color: #555;
}

@media (max-width: 768px) {
    .about-reasons {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    .about-reason-card {
        padding: 20px;
    }
}

/* ==========================================
   Section 4: Our Data — stat cards
   ========================================== */
.about-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    justify-content: center;
}
.about-stat-item {
    flex: 0 0 calc(20% - 13px);
    min-width: 150px;
    background: #fff;
    border-radius: var(--radius-card);
    padding: 28px 16px 24px;
    text-align: center;
    box-shadow: var(--shadow-card);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.about-stat-item:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-hover);
}
.about-stat-item:hover .about-stat-num {
    color: var(--brand-dark);
}

.about-stat-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    margin: 0 auto 12px;
    color: var(--brand);
    opacity: .6;
}
.about-stat-num {
    display: block;
    font-size: 36px;
    font-weight: 700;
    color: var(--brand);
    margin-bottom: 6px;
    line-height: 1.1;
    transition: color 0.3s;
}
.about-stat-label {
    display: block;
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.4;
}

@media (max-width: 991px) {
    .about-stat-item {
        flex: 0 0 calc(33.33% - 11px);
        min-width: 130px;
    }
}
@media (max-width: 540px) {
    .about-stat-item {
        flex: 0 0 calc(50% - 8px);
        min-width: auto;
    }
}

/* ==========================================
   Section 5: Platforms — tag cloud
   ========================================== */
.about-platforms-lead {
    font-size: 14px;
    color: var(--text-secondary);
    margin: 0 0 16px;
    line-height: 1.7;
}
.about-tag-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
}
.about-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: var(--text-body);
    background: var(--bg-card-blue);
    border-radius: var(--radius-tag);
    padding: 6px 14px;
    line-height: 1.5;
    transition: background 0.25s, color 0.25s;
    cursor: default;
}
.about-tag:hover {
    background: var(--brand);
    color: #fff;
}

@media (max-width: 540px) {
    .about-tag {
        font-size: 12px;
        padding: 5px 10px;
    }
}

/* ==========================================
   Section 6: Testimonials — side-by-side reviews
   ========================================== */
.about-testimonials {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}
.about-testimonial {
    background: #fff;
    border-radius: var(--radius-card);
    padding: var(--padding-card);
    box-shadow: var(--shadow-card);
    position: relative;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.about-testimonial:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
}
.about-testimonial-quote {
    position: absolute;
    top: 16px;
    left: 16px;
    font-size: 52px;
    line-height: 1;
    color: var(--brand);
    opacity: .12;
    font-family: Georgia, serif;
    pointer-events: none;
}
.about-testimonial-body {
    display: flex;
    gap: 16px;
    align-items: flex-start;
}
.about-testimonial-avatar {
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--brand-light);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--brand);
    line-height: 0;
    font-size: 0;
}
.about-testimonial-text {
    flex: 1;
    min-width: 0;
}
.about-testimonial-text p {
    font-size: 14px;
    line-height: 1.7;
    color: var(--text-body);
    margin: 0 0 10px;
    font-style: italic;
}
.about-testimonial-text cite {
    display: block;
    font-size: 12px;
    color: var(--text-muted);
    font-style: normal;
    text-align: right;
}

@media (max-width: 768px) {
    .about-testimonials {
        grid-template-columns: 1fr;
    }
}

/* ==========================================
   CTA section
   ========================================== */
.about-cta {
    text-align: center;
    padding: 48px 0 0;
}
.about-cta h2 {
    font-size: 22px;
    font-weight: 700;
    color: var(--text-title);
    margin: 0 0 8px;
}
.about-cta > p {
    font-size: 14px;
    color: var(--text-secondary);
    margin: 0 0 20px;
}
.about-cta-features {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 12px 24px;
    margin-bottom: 28px;
}
.about-cta-features span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: #444;
    font-weight: 500;
}
.about-cta-features span svg {
    flex-shrink: 0;
    color: var(--brand);
}
.about-cta .btn-hero-primary {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 28px;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    background: var(--brand);
    color: #fff;
    border: none;
    text-decoration: none;
    transition: background 0.25s, transform 0.2s;
}
.about-cta .btn-hero-primary:hover {
    background: var(--brand-dark);
    transform: translateY(-1px);
}

/* ===== CTA section with dark gradient background ===== */
.about-cta-section {
    scroll-margin-top: 80px;
    padding: 100px 0;
    background:
        radial-gradient(800px 400px at 50% 0, rgba(0,117,222,.22), transparent 65%),
        radial-gradient(600px 400px at 20% 100%, rgba(152,73,232,.16), transparent 65%);
    background-color: #02093a;
    color: #fff;
    text-align: center;
    position: relative;
    overflow: hidden;
}
.about-cta-section .about-cta {
    padding: 0;
}
.about-cta-section .about-cta h2 {
    color: #fff;
    font-size: clamp(36px,5vw,64px);
    font-weight: 700;
    line-height: 1.15;
    letter-spacing: -.02em;
    margin: 0 0 16px;
}
.about-cta-section .about-cta > p {
    color: rgba(255,255,255,.7);
    font-size: clamp(18px,2.5vw,24px);
    margin: 0 0 24px;
}
.about-cta-section .about-cta-features span {
    color: rgba(255,255,255,.85);
    border: 1px solid rgba(255,255,255,.15);
    padding: 6px 14px;
    border-radius: 20px;
    background: rgba(255,255,255,.06);
}
.about-cta-section .about-cta-features span svg {
    color: #fff;
}
.about-cta-section .cta-btns {
    display: flex;
    justify-content: center;
    gap: 14px;
    flex-wrap: wrap;
    margin-top: 28px;
}
.about-cta-section .cta-btns .btn-hero-primary {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    background: linear-gradient(135deg, #5B7FFF 0%, #3D5AF5 100%);
    border: none;
    color: #fff;
    box-shadow: 0 4px 20px rgba(59,90,245,.3);
    text-decoration: none;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.about-cta-section .cta-btns .btn-hero-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(59,90,245,.4);
    color: #fff;
}
.about-cta-section .cta-btns .btn-hero-primary svg {
    width: 14px;
    height: 14px;
}

/* ===== Section alternating layout helper ===== */
.about-block + .about-block {
    border-top: none;
}
