/* ─────────────────────────────────────────────────────────────
   About Us — Standard Language Centre (2026 redesign)
   Self-contained styles for page-about.php
   ───────────────────────────────────────────────────────────── */

.ab-about {
    --ab-ink: #2E2E2E;
    --ab-ink-soft: #5A6B6D;
    --ab-teal: #008080;
    --ab-aqua: #3EACB8;
    --ab-aqua-light: #C8E9EA;
    --ab-base: #F8F8F8;
    --ab-white: #ffffff;
    --ab-border: rgba(15, 61, 68, .10);
    --ab-shadow: 0 20px 45px -25px rgba(15, 61, 68, .30);
    font-family: 'Inter', sans-serif;
    color: var(--ab-ink);
    background: var(--ab-base);
    line-height: 1.65;
    overflow-x: hidden;
}

.ab-about a { text-decoration: none; }

.ab-about .ab-container {
    max-width: 1160px;
    margin: 0 auto;
    padding: 0 32px;
}

.ab-about .ab-center { text-align: center; }

/* ---------- Reveal on scroll ---------- */
/* 文字淡入 0.4s / 图片上滑 0.6s */
.ab-about .ab-reveal {
    opacity: 0;
    transform: translateY(18px);
    transition: opacity .4s ease-out, transform .4s ease-out;
}
.ab-about .ab-reveal-img {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity .6s ease-out, transform .6s ease-out;
}
.ab-about .ab-in,
.ab-about .ab-reveal-img.ab-in {
    opacity: 1;
    transform: none;
}

/* ---------- Page header ---------- */
.ab-pagehead {
    position: relative;
    min-height: 190px;
    display: flex;
    align-items: center;
    justify-content: center;
    background:
        linear-gradient(rgba(0, 60, 66, .55), rgba(0, 60, 66, .55)),
        url('../images/banner-about.png') center / cover no-repeat fixed;
    padding: 36px 24px;
}
.ab-pagehead-title {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    z-index: 2;
    margin: 0;
    color: var(--ab-white);
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .06em;
    font-size: clamp(28px, 4vw, 42px);
    text-shadow: 0 2px 6px rgba(0, 0, 0, .2);
    text-align: center;
}

/* 仅淡入（无位移），用于绝对定位元素 */
.ab-about .ab-fade {
    display: inline-block;
    opacity: 0;
    transition: opacity .4s ease-out;
}
.ab-about .ab-fade.ab-in {
    opacity: 1;
}

/* ---------- Floating particles (light, non-distracting) ---------- */
.ab-particles {
    position: absolute;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
}
.ab-particles span {
    position: absolute;
    bottom: -12px;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(200, 233, 234, .45);
    animation: ab-drift linear infinite;
}
.ab-particles span:nth-child(1) { left: 6%;  animation-duration: 16s; animation-delay: 0s;   }
.ab-particles span:nth-child(2) { left: 18%; animation-duration: 22s; animation-delay: 3s;   width: 5px; height: 5px; }
.ab-particles span:nth-child(3) { left: 30%; animation-duration: 19s; animation-delay: 6s;   }
.ab-particles span:nth-child(4) { left: 44%; animation-duration: 26s; animation-delay: 1.5s; width: 11px; height: 11px; }
.ab-particles span:nth-child(5) { left: 58%; animation-duration: 21s; animation-delay: 8s;   width: 6px; height: 6px; }
.ab-particles span:nth-child(6) { left: 70%; animation-duration: 24s; animation-delay: 4s;   }
.ab-particles span:nth-child(7) { left: 82%; animation-duration: 18s; animation-delay: 2.5s; width: 5px; height: 5px; }
.ab-particles span:nth-child(8) { left: 92%; animation-duration: 27s; animation-delay: 7s;   width: 9px; height: 9px; }

@keyframes ab-drift {
    0%   { transform: translateY(0) translateX(0);        opacity: 0; }
    10%  { opacity: .7; }
    90%  { opacity: .35; }
    100% { transform: translateY(-360px) translateX(24px); opacity: 0; }
}

/* 各区块的漂移粒子画布 */
.ab-particle-section {
    position: relative;
    overflow: hidden;
}
.ab-particle-section > *:not(.ab-drift-canvas) {
    position: relative;
    z-index: 2;
}
.ab-drift-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

@media (prefers-reduced-motion: reduce) {
    .ab-particles span { animation: none; opacity: .3; }
    .ab-pagehead { background-attachment: scroll; }
}

@media (max-width: 768px) {
    .ab-pagehead { background-attachment: scroll; }
}

/* ---------- Shared typography ---------- */
.ab-eyebrow {
    font-size: .78rem;
    font-weight: 700;
    letter-spacing: .16em;
    text-transform: uppercase;
    color: var(--ab-teal);
    margin: 0 0 14px;
}
.ab-dot {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--ab-aqua);
    margin-right: 8px;
    vertical-align: middle;
}
.ab-h2 {
    margin: 0 0 14px;
    font-weight: 800;
    line-height: 1.2;
    font-size: clamp(26px, 3.2vw, 38px);
    color: var(--ab-ink);
}
.ab-tagline {
    font-size: 1.05rem;
    color: var(--ab-ink-soft);
    margin: 0 0 10px;
}
.ab-tagline strong { color: var(--ab-aqua); letter-spacing: .08em; }
.ab-body {
    font-size: 1rem;
    color: var(--ab-ink-soft);
    margin: 0 0 16px;
    word-wrap: break-word;
    overflow-wrap: break-word;
    hyphens: auto;
}

/* ---------- CTA buttons ---------- */
.ab-btn {
    display: inline-block;
    background: var(--ab-aqua);
    color: var(--ab-white);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .08em;
    font-size: .88rem;
    padding: .85rem 1.9rem;
    border-radius: 999px;
    transition: transform .3s ease, background .3s ease, color .3s ease, box-shadow .3s ease;
}
.ab-btn:hover,
.ab-btn:focus-visible {
    transform: scale(1.05);
    background: var(--ab-aqua-light);
    color: var(--ab-ink);
    box-shadow: 0 8px 22px -8px rgba(62, 172, 184, .55);
}

/* ---------- Sections ---------- */
.ab-section {
    padding: 72px 0;
}
.ab-sec-head { margin-bottom: 40px; }
.ab-sec-head .ab-h2 { margin-bottom: 8px; }
.ab-cta-row { margin-top: 36px; }

/* ---------- Hero / Our Story ---------- */
.ab-hero {
    padding: 110px 0 88px;
    background:
        linear-gradient(135deg, rgba(15, 61, 68, .96), rgba(0, 128, 128, .88)),
        url('../images/banner-about.png') center / cover no-repeat fixed;
    color: var(--ab-white);
    overflow: hidden;
}
.ab-hero-grid {
    max-width: 1160px;
    margin: 0 auto;
    padding: 0 32px;
    display: grid;
    grid-template-columns: minmax(0, 4.5fr) minmax(0, 7.5fr);
    gap: 56px;
    align-items: start;
}
.ab-hero-text {
    min-width: 0;
}
/* Hero 内：深色背景 + 浅色文字，保证对比 */
.ab-hero .ab-eyebrow { color: #3EACB8; }
.ab-hero .ab-dot { background: #3EACB8; }
.ab-hero .ab-h2 { color: var(--ab-white); }
.ab-hero .ab-body { color: #B8C5C8; }
.ab-hero-photo {
    margin: 0;
    border-radius: 18px;
    overflow: hidden;
    box-shadow: var(--ab-shadow);
    border: 4px solid rgba(255, 255, 255, .14);
    transition: transform .4s ease, box-shadow .4s ease;
    min-width: 0;
}
.ab-hero-photo img {
    display: block;
    width: 100%;
    height: auto;
    transition: transform .4s ease;
}
.ab-hero-photo:hover img {
    transform: scale(1.03);
}
.ab-hero-photo:hover {
    box-shadow: 0 24px 50px -18px rgba(62, 172, 184, .45);
}

/* 照片占位块 — 真实照片放入 assets/images/megan-venue-2.jpg 后自动替换 */
.ab-photo-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 340px;
    padding: 24px;
    text-align: center;
    background: repeating-linear-gradient(
        45deg,
        var(--ab-aqua-light),
        var(--ab-aqua-light) 14px,
        #d8f0f1 14px,
        #d8f0f1 28px
    );
    color: var(--ab-ink-soft);
}
.ab-photo-placeholder i {
    font-size: 2.4rem;
    color: var(--ab-aqua);
}
.ab-photo-placeholder strong {
    font-size: 1.15rem;
    color: var(--ab-teal);
}
.ab-photo-placeholder code {
    background: rgba(255, 255, 255, .8);
    padding: 2px 6px;
    border-radius: 4px;
    font-size: .82rem;
}

/* ---------- Cards (benefits + approach) ---------- */
.ab-card {
    background: var(--ab-white);
    border: 1px solid var(--ab-border);
    border-radius: 16px;
    padding: 28px 26px;
    transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease;
}
.ab-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 18px 38px -18px rgba(62, 172, 184, .50);
    border-color: var(--ab-aqua-light);
}
.ab-card h3 {
    margin: 0 0 8px;
    font-size: 1.08rem;
    font-weight: 700;
    color: var(--ab-ink);
}
.ab-card p {
    margin: 0;
    font-size: .95rem;
    color: var(--ab-ink-soft);
}

/* Benefits: 3 x 2 grid */
.ab-benefit-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
}
.ab-card-letter {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 46px;
    height: 46px;
    border-radius: 12px;
    background: var(--ab-aqua-light);
    color: var(--ab-teal);
    font-weight: 800;
    font-size: 1.25rem;
    margin-bottom: 14px;
    transition: transform .3s ease, background .3s ease, color .3s ease;
}
.ab-card:hover .ab-card-letter {
    transform: scale(1.03);
    background: var(--ab-aqua);
    color: var(--ab-white);
}

/* ---------- Vision & Mission ---------- */
.ab-vm { background: var(--ab-white); }
.ab-vm-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 26px;
}
.ab-vm-card {
    background: var(--ab-base);
    border: 1px solid var(--ab-border);
    border-radius: 18px;
    padding: 38px 34px;
    text-align: center;
    transition: transform .3s ease, box-shadow .3s ease;
}
.ab-vm-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 18px 38px -18px rgba(62, 172, 184, .50);
}
.ab-vm-card h3 {
    margin: 0 0 12px;
    font-size: 1.2rem;
    font-weight: 800;
    color: var(--ab-teal);
    text-transform: uppercase;
    letter-spacing: .06em;
}
.ab-vm-card p {
    margin: 0;
    color: var(--ab-ink-soft);
    font-size: .98rem;
}
.ab-vm-icon {
    font-size: 2rem;
    color: var(--ab-aqua);
    margin-bottom: 16px;
    display: inline-block;
    transition: transform .3s ease;
}
.ab-vm-card:hover .ab-vm-icon {
    transform: scale(1.03);
}

/* ---------- Approach ---------- */
.ab-approach-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
}
.ab-icon {
    font-size: 1.9rem;
    color: var(--ab-aqua);
    margin-bottom: 16px;
    display: inline-block;
    transition: transform .3s ease;
}
.ab-approach-card:hover .ab-icon {
    transform: scale(1.03) rotate(-3deg);
    text-shadow: 0 6px 18px rgba(62, 172, 184, .45);
}

/* ---------- Learning Philosophy (L.A.M.E.) ---------- */
.ab-philosophy {
    background:
        linear-gradient(135deg, rgba(0, 60, 66, .90), rgba(0, 128, 128, .82)),
        url('../images/banner-about.png') center / cover no-repeat fixed;
}

.ab-philosophy .ab-eyebrow { color: var(--ab-aqua-light); }
.ab-philosophy .ab-dot { background: var(--ab-aqua-light); }
.ab-philosophy .ab-h2 { color: var(--ab-white); }
.ab-philosophy .ab-tagline { color: rgba(255,255,255,.8); }
.ab-philosophy .ab-tagline strong { color: #D4A843; letter-spacing: .08em; }

.ab-phil-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 22px;
}

.ab-phil-card {
    background: rgba(15, 61, 68, .65);
    -webkit-backdrop-filter: blur(6px);
    backdrop-filter: blur(6px);
    border: 1px solid rgba(255, 255, 255, .12);
    border-radius: 16px;
    padding: 32px 24px;
    transition: transform .3s ease, background .3s ease;
}

.ab-phil-card:hover {
    transform: translateY(-4px);
    background: rgba(255, 255, 255, .14);
}

.ab-phil-letter {
    font-size: 3rem;
    font-weight: 900;
    color: #D4A843;
    line-height: 1;
    margin-bottom: 14px;
    transition: transform .3s ease;
}

.ab-phil-card:hover .ab-phil-letter {
    transform: scale(1.08);
}

.ab-phil-card h3 {
    margin: 0 0 10px;
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--ab-white);
}

.ab-phil-card p {
    margin: 0;
    font-size: .88rem;
    color: rgba(255, 255, 255, .75);
    line-height: 1.65;
}

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
    .ab-benefit-grid,
    .ab-approach-grid { grid-template-columns: repeat(2, 1fr); }
    .ab-phil-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 640px) {
    .ab-hero { padding: 56px 0 56px; background-attachment: scroll; }
    .ab-hero-grid {
        grid-template-columns: 1fr;
        gap: 24px;
        align-items: start;
    }
    .ab-hero-text,
    .ab-hero-photo {
        min-width: 0;
        width: 100%;
    }
    /* Mobile: 照片自然等比，不固定 section 高度，也不占满整屏 */
    .ab-hero-photo {
        position: static;
        display: block;
    }
    .ab-hero-photo img {
        width: 100%;
        height: auto;
        border-radius: 14px;
    }
    .ab-section { padding: 48px 0; }
    .ab-benefit-grid,
    .ab-approach-grid { grid-template-columns: 1fr; }
    .ab-phil-grid { grid-template-columns: 1fr; }
    .ab-vm-grid { grid-template-columns: 1fr; }
    .ab-container,
    .ab-hero-grid { padding: 0 20px; }
    .ab-pagehead { background-attachment: scroll; }
    .ab-cta-row { margin-top: 24px; }
}

@media (max-width: 380px) {
    .ab-phil-letter { font-size: 2.2rem; }
    .ab-phil-card h3 { font-size: .95rem; }
    .ab-phil-card p { font-size: .82rem; }
}

/* ---------- Our Campuses — two addresses ---------- */
.ab-addresses {
    background: var(--ab-white);
}
.ab-address-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 26px;
}
.ab-addr-card {
    display: flex;
    flex-direction: column;
    background: var(--ab-base);
    border: 1px solid var(--ab-border);
    border-radius: 18px;
    padding: 36px 32px 30px;
    transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease;
}
.ab-addr-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 18px 38px -18px rgba(62, 172, 184, .50);
    border-color: var(--ab-aqua-light);
}
.ab-addr-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 52px;
    border-radius: 14px;
    background: var(--ab-aqua-light);
    color: var(--ab-teal);
    font-size: 1.35rem;
    margin-bottom: 18px;
}
.ab-addr-tag {
    display: inline-block;
    width: fit-content;
    background: var(--ab-aqua);
    color: var(--ab-white);
    font-size: .68rem;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
    border-radius: 999px;
    padding: 4px 13px;
    margin-bottom: 14px;
}
.ab-addr-card h3 {
    margin: 0 0 6px;
    font-size: 1.2rem;
    font-weight: 800;
    color: var(--ab-teal);
    letter-spacing: .02em;
}
.ab-addr-street {
    margin: 0 0 12px;
    font-size: .98rem;
    color: var(--ab-ink-soft);
    line-height: 1.7;
}
.ab-addr-street a {
    color: var(--ab-ink);
    text-decoration: none;
    transition: color .25s ease;
}
.ab-addr-street a:hover {
    color: var(--ab-aqua);
}
.ab-addr-meta {
    margin: 0 0 14px;
    font-size: .92rem;
    color: var(--ab-ink-soft);
}
.ab-addr-meta i {
    color: var(--ab-aqua);
    margin-right: 8px;
    width: 16px;
    text-align: center;
}
.ab-addr-meta .ab-addr-link {
    margin: 0;
    padding-top: 0;
}
.ab-addr-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    align-self: flex-start;
    margin-top: auto;
    padding-top: 18px;
    font-weight: 700;
    font-size: .88rem;
    color: var(--ab-teal);
    text-transform: uppercase;
    letter-spacing: .08em;
    text-decoration: none;
    transition: color .25s ease;
}
.ab-addr-link:hover { color: var(--ab-aqua); }
.ab-addr-link i { transition: transform .25s ease; }
.ab-addr-link:hover i { transform: translateX(4px); }

@media (max-width: 768px) {
    .ab-address-grid { grid-template-columns: 1fr; }
    .ab-addr-card { padding: 28px 24px 24px; }
}
