/* 
 * LadiPage About (Giới thiệu) Custom Styles
 * 
 * Focus on premium aesthetics, smooth animations, and zero dependency conflicts.
 */

:root {
    --about-primary: #006eb2;
    --about-secondary: #0D2A38;
    --about-accent: #5cb32e;
    --about-light: #f9fbff;
    --about-text: #5D7285;
    --about-heading: #0D2A38;
}

.about-ladipage {
    font-family: var(--font-main);
    color: var(--color-text);
    line-height: 1.6;
    overflow-x: hidden;
    background-color: #ffffff;
    font-size: 18px;
}

.about-ladipage p {
    font-size: 18px;
    margin-bottom: 1.5rem;
    color: var(--color-text);
}

/* Typography & General */
.about-ladipage h1, .about-ladipage h2, .about-ladipage h3, .about-ladipage h4, .about-ladipage h5, .about-ladipage h6 {
    font-family: var(--font-heading);
    color: var(--color-navy);
    font-weight: 700;
}

.about-badge {
    display: inline-block;
    background: rgba(229, 95, 160, 0.1);
    color: var(--about-accent);
    padding: 0.5rem 1.25rem;
    border-radius: 9999px;
    font-weight: 700;
    font-size: 1rem;
    margin-bottom: 1rem;
    letter-spacing: 1px;
}

/* ==================================================
   Hero Section
================================================== */
/* Chiều cao lấy từ biến --banner-height (style.css) để bằng đúng banner trang chủ.
   Khối này chỉ chứa ảnh nền (không có chữ) nên chiều cao do min-height quyết định. */
.about-hero {
    position: relative;
    min-height: var(--banner-height);
    display: flex;
    align-items: center;
    padding: 0;
}

.about-hero-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.about-hero-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.about-hero-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--about-primary) 0%, var(--about-secondary) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.5);
    font-size: 1.5rem;
    font-weight: 600;
}

.about-hero-overlay {
    position: absolute;
    inset: 0;
    /* Removed overlay gradient per user request */
    background: transparent;
}

.about-hero-content {
    max-width: 900px;
    margin: 0 auto;
}

.about-title-main {
    color: var(--color-navy) !important;
    font-size: 22px !important;
    font-weight: 700;
    margin-bottom: 1.5rem;
    text-transform: uppercase;
    text-shadow: none;
}

.about-intro-box {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: 24px;
    padding: 2.5rem;
    color: #000000;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.15);
    transform: translateY(0);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.about-intro-box:hover {
    transform: translateY(-5px);
    box-shadow: 0 30px 60px -15px rgba(0, 0, 0, 0.3);
}

.about-mission {
    font-size: 18px;
    font-weight: 600;
    color: var(--color-navy);
    margin-bottom: 1.5rem;
    text-align: justify;
}

.about-desc {
    text-align: justify;
}

.about-divider {
    height: 2px;
    width: 60px;
    background: var(--about-accent);
    margin: 1.5rem auto;
    border-radius: 2px;
}

/* ==================================================
   Sections General
================================================== */
.about-section {
    padding: 6rem 0;
    position: relative;
}

.about-intro-section {
    padding: 4rem 0 2rem;
}

.bg-light-blue {
    background-color: var(--about-light);
}

.section-title-wrapper {
    position: relative;
    display: inline-block;
    margin-top: 35px; /* Dành khoảng không cho số 02 nhô lên */
    max-width: 800px;
}

.section-title-bar {
    position: relative;
    z-index: 1;
    background: #ffffff;
    border-radius: 24px;
    padding: 1.25rem 2.5rem;
    box-shadow: 0 15px 35px rgba(0,0,0,0.03);
    border: 1px solid rgba(0,0,0,0.02);
}

.bubble-large-blue {
    position: absolute;
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: #5ebbf0;
    opacity: 0.35;
    top: -65px;
    left: -65px;
    z-index: 2;
}

.bubble-medium-green {
    position: absolute;
    width: 85px;
    height: 85px;
    border-radius: 50%;
    background: var(--about-accent); /* #5cb32e */
    opacity: 0.65;
    top: -25px;
    left: -40px;
    z-index: 3;
}

.section-number-circle {
    position: absolute;
    top: -25px;
    left: 0px;
    width: 60px;
    height: 60px;
    background: var(--about-heading); /* 100% solid để không bị nhìn xuyên thấu */
    color: #ffffff;
    font-size: 1.25rem;
    font-weight: 800;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    z-index: 4;
    box-shadow: 0 5px 15px rgba(13, 42, 56, 0.15);
}

.about-section-title {
    font-size: 22px;
    color: var(--color-navy);
    font-weight: 700;
    margin-bottom: 12px;
    text-transform: uppercase;
    line-height: 1.3;
}

.about-section-desc {
    font-size: 18px;
    color: var(--color-text);
    margin-bottom: 40px;
}

.about-text-content p,
.process-list p {
    text-align: justify;
}

/* ==================================================
   Team Section
================================================== */
.about-highlight-text {
    font-size: 18px !important;
    font-weight: 700;
    color: var(--color-navy);
    border-left: 4px solid var(--about-accent);
    padding-left: 1.5rem;
    margin-bottom: 2rem;
}

.about-image-wrapper {
    position: relative;
    border-radius: 24px;
    z-index: 1;
}

.about-image-wrapper::before {
    content: '';
    display: block;
    position: absolute;
    top: 0;
    left: 0;
    width: 80px;
    height: 80px; /* Bằng với chiều cao của huy hiệu dưới */
    background: #ffffff;
    border-bottom-right-radius: 24px;
    z-index: 2;
}

.image-corner-badge {
    position: absolute;
    top: 15px; /* (80 - 50) / 2 = 15 -> Căn giữa */
    left: 15px;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(229, 95, 160, 0.1);
    color: var(--about-accent);
    font-size: 1.1rem;
    font-weight: 800;
    border-radius: 50%;
    z-index: 3;
}

.about-rounded-image {
    width: 100%;
    height: auto;
    border-radius: 24px;
    object-fit: cover;
    box-shadow: none;
}

.about-image-placeholder {
    width: 100%;
    aspect-ratio: 4/3;
    background: #e2e8f0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #94a3b8;
    font-weight: 600;
}

.about-float-badge {
    position: absolute;
    bottom: 0;
    right: 0;
    background: #ffffff;
    height: 80px; /* Bằng chiều cao khối trên */
    padding: 0 2rem;
    border-top-left-radius: 24px;
    border-bottom-right-radius: 24px; /* Flush with image corner */
    display: flex;
    align-items: center;
    gap: 1rem;
    z-index: 2;
    box-shadow: none;
}

.badge-icon {
    font-size: 2.5rem;
    line-height: 1;
}

.badge-text {
    display: flex;
    align-items: baseline;
    gap: 0.5rem;
}

.badge-text strong {
    color: var(--about-primary);
    font-size: 20px;
    line-height: 1.2;
}

.badge-text span {
    color: var(--about-text);
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* ==================================================
   System Section (Cards)
================================================== */
.system-card {
    background: #ffffff;
    border-radius: 24px;
    padding: 1.25rem;
    box-shadow: 0 10px 30px rgba(0,0,0,0.03);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 1px solid rgba(0,0,0,0.02);
    display: flex;
    flex-direction: column;
    height: 100%;
}

.system-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(26,107,138,0.08);
}

.system-image-box {
    position: relative;
    border-radius: 24px;
    overflow: hidden;
    margin-bottom: 2rem;
    aspect-ratio: 16/9;
}

.system-image-box::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 80px;
    height: 80px;
    background: #ffffff;
    border-bottom-left-radius: 24px;
    z-index: 2;
}

.system-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.7s ease;
}

.system-card:hover .system-img {
    transform: scale(1.05);
}

.system-icon-overlay {
    position: absolute;
    top: 15px; /* Căn giữa trong khối 80x80 */
    right: 15px;
    width: 50px;
    height: 50px;
    background: rgba(26, 107, 138, 0.1); /* Màu xanh nhạt */
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--about-primary);
    z-index: 3;
}

.system-info {
    padding: 0 0.5rem 0.5rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.system-title {
    font-size: 20px;
    margin-bottom: 1rem;
    color: var(--about-primary);
}

.small-placeholder {
    height: 100%;
    font-size: 1rem;
    background: #dbeafe;
    color: #3b82f6;
}

.lab-bg {
    background: #fce7f3;
    color: #ec4899;
}

/* ==================================================
   Animations
================================================== */
.float-up-down {
    animation: floatUpDown 4s ease-in-out infinite;
}

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

/* Reveal Classes for JS */
.reveal {
    opacity: 0;
    transition: all 0.8s cubic-bezier(0.5, 0, 0, 1);
}

.reveal.active {
    opacity: 1;
}

.stagger-up {
    transform: translateY(40px);
}
.stagger-up.active {
    transform: translateY(0);
}

.slide-in-left {
    transform: translateX(-50px);
}
.slide-in-left.active {
    transform: translateX(0);
}

.slide-in-right {
    transform: translateX(50px);
}
.slide-in-right.active {
    transform: translateX(0);
}

.slide-in-up {
    transform: translateY(50px);
}
.slide-in-up.active {
    transform: translateY(0);
}

.fade-in-up {
    transform: translateY(30px);
}
.fade-in-up.active {
    transform: translateY(0);
}

/* Responsive */
@media (max-width: 991px) {
    .about-float-badge {
        left: 20px;
        bottom: -20px;
        padding: 1rem;
    }
    .about-image-wrapper::before {
        display: none;
    }
    .about-hero {
        padding-top: 6rem;
    }
}

@media (max-width: 767px) {
    .about-intro-box {
        padding: 1rem;
    }
    .about-section {
        padding: 3rem 0;
    }
    /* Không ép chiều cao riêng ở đây nữa - để biến --banner-height quyết định
       (xem khối "CHIỀU CAO BANNER DÙNG CHUNG" trong style.css). */
    .about-hero {
        padding: 0;
    }

    .about-float-badge {
        position: relative;
        left: 0;
        bottom: 0;
        margin: -30px auto 0;
        width: 90%;
        justify-content: center;
        border-radius: 16px;
        box-shadow: 0 10px 20px rgba(0,0,0,0.05);
    }
    .about-title-main,
    .about-section-title {
        font-size: 20px !important;
    }
    .bubble-large-blue,
    .bubble-medium-green {
        display: none !important;
    }
    .section-number-circle {
        left: 10px;
    }
    .about-image-wrapper {
        margin-top: 1.5rem;
    }
    .system-card {
        margin-bottom: 1rem;
    }
}

/* ==================================================
   Final Footer Section (CTA) Blobs
================================================== */
.about-final-cta {
    position: relative;
    padding: 50px 0;
}

.about-final-cta::before {
    content: '';
    position: absolute;
    width: 800px;
    height: 800px;
    background: #eaf4fa;
    border-radius: 40% 60% 70% 30% / 40% 50% 60% 50%;
    top: -400px;
    left: -200px;
    z-index: 1;
    opacity: 0.6;
    pointer-events: none;
    animation: blob-float 15s ease-in-out infinite alternate;
}

.about-final-cta::after {
    content: '';
    position: absolute;
    width: 600px;
    height: 600px;
    background: #eaf4fa;
    border-radius: 60% 40% 30% 70% / 50% 60% 40% 50%;
    bottom: -200px;
    right: -100px;
    z-index: 1;
    opacity: 0.6;
    pointer-events: none;
    animation: blob-float 20s ease-in-out infinite alternate-reverse;
}

@keyframes blob-float {
    0% { transform: translate(0, 0) rotate(0deg) scale(1); }
    100% { transform: translate(50px, 30px) rotate(20deg) scale(1.1); }
}

/* ==================================================
   Banner trên điện thoại: hiện TRỌN 100% tấm ảnh
   --------------------------------------------------
   Bình thường ảnh banner nằm ở lớp nền tuyệt đối (position:absolute) nên
   KHÔNG tự tạo ra chiều cao — nếu để chiều cao "auto" khối banner sẽ sập
   về 0px. Ở khổ điện thoại ta cho ảnh chạy theo luồng bình thường để chính
   tấm ảnh quyết định chiều cao, nhờ vậy ảnh hiện đầy đủ, không bị cắt.
================================================== */
@media (max-width: 575px) {
    .about-hero {
        display: block;
        padding: 0;
    }
    .about-hero-bg {
        position: static;
        width: 100%;
    }
    .about-hero-img {
        height: auto;
    }
    .about-hero-placeholder {
        height: auto;
        min-height: 160px;
    }
}