/**
 * TechHub About / Author Page Stylesheet
 * Dành riêng cho trang Hồ Sơ Tác Giả & Lãnh Đạo Đào Tạo (Nguyễn Anh Lương)
 */

/* Container & Chung */
.th-about-page-wrapper {
    width: 100%;
    max-width: 1360px;
    margin: 0 auto;
    padding: 2.5rem 1.5rem 5rem 1.5rem;
    box-sizing: border-box;
}

.th-about-section {
    margin-bottom: 4.5rem;
}

.th-about-section-header {
    margin-bottom: 2.25rem;
}

.th-about-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.35rem 0.85rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.75rem;
}

.th-about-badge-blue {
    background: rgba(37, 99, 235, 0.1);
    color: var(--wp--preset--color--blue-electric, #2563eb);
    border: 1px solid rgba(37, 99, 235, 0.2);
}

.th-about-badge-purple {
    background: rgba(124, 58, 237, 0.1);
    color: var(--wp--preset--color--purple-ai, #7c3aed);
    border: 1px solid rgba(124, 58, 237, 0.2);
}

.th-about-section-title {
    font-size: clamp(1.6rem, 3vw, 2.25rem);
    font-weight: 800;
    line-height: 1.25;
    color: var(--wp--preset--color--navy-primary, #0b132b);
    margin: 0 0 0.5rem 0;
}

.th-about-section-subtitle {
    font-size: 1rem;
    color: var(--wp--preset--color--text-muted, #64748b);
    max-width: 700px;
    line-height: 1.6;
    margin: 0;
}

/* ========================================================
   TẦNG 1: HERO PROFILE
======================================================== */
.th-about-hero-grid {
    display: grid;
    grid-template-columns: 360px 1fr;
    gap: 3rem;
    align-items: start;
    padding: 2.5rem;
    background: #ffffff;
    border-radius: 20px;
    border: 1px solid var(--wp--preset--color--border-light, #e2e8f0);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.04);
}

.th-about-portrait-card {
    position: sticky;
    top: 90px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.th-about-avatar-wrap {
    position: relative;
    width: 280px;
    height: 280px;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 15px 35px rgba(37, 99, 235, 0.18);
    border: 3px solid #ffffff;
    background: linear-gradient(135deg, #2563eb, #7c3aed);
    margin-bottom: 1.5rem;
}

.th-about-avatar-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}

.th-about-avatar-wrap:hover .th-about-avatar-img {
    transform: scale(1.04);
}

.th-about-verified-chip {
    position: absolute;
    bottom: 12px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(11, 19, 43, 0.85);
    backdrop-filter: blur(8px);
    color: #ffffff;
    padding: 0.35rem 0.85rem;
    border-radius: 9999px;
    font-size: 0.725rem;
    font-weight: 700;
    white-space: nowrap;
    border: 1px solid rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    gap: 0.35rem;
}

.th-about-name {
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--wp--preset--color--navy-primary, #0b132b);
    margin: 0 0 0.35rem 0;
}

.th-about-role-primary {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--wp--preset--color--blue-electric, #2563eb);
    margin-bottom: 0.25rem;
}

.th-about-role-org {
    font-size: 0.85rem;
    color: var(--wp--preset--color--text-muted, #64748b);
    margin-bottom: 1.5rem;
    line-height: 1.4;
}

.th-about-quick-cta {
    display: flex;
    gap: 0.75rem;
    width: 100%;
    justify-content: center;
    flex-wrap: wrap;
}

.th-btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.65rem 1.25rem;
    background: var(--wp--preset--color--blue-electric, #2563eb);
    color: #ffffff !important;
    border-radius: 10px;
    font-weight: 700;
    font-size: 0.875rem;
    text-decoration: none;
    transition: transform 0.2s, box-shadow 0.2s;
    box-shadow: 0 4px 14px rgba(37, 99, 235, 0.25);
}

.th-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(37, 99, 235, 0.35);
}

.th-btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.65rem 1.25rem;
    background: #f1f5f9;
    color: var(--wp--preset--color--navy-primary, #0b132b) !important;
    border-radius: 10px;
    font-weight: 700;
    font-size: 0.875rem;
    text-decoration: none;
    transition: background-color 0.2s, transform 0.2s;
    border: 1px solid var(--wp--preset--color--border-light, #e2e8f0);
}

.th-btn-secondary:hover {
    background: #e2e8f0;
    transform: translateY(-2px);
}

/* Bio Content Bên Phải */
.th-about-bio-wrap {
    display: flex;
    flex-direction: column;
}

.th-about-statement {
    font-size: 1.25rem;
    font-weight: 700;
    line-height: 1.5;
    color: var(--wp--preset--color--navy-primary, #0b132b);
    border-left: 4px solid var(--wp--preset--color--blue-electric, #2563eb);
    padding-left: 1.25rem;
    margin: 0 0 1.5rem 0;
}

.th-about-intro-p {
    font-size: 1rem;
    line-height: 1.75;
    color: var(--wp--preset--color--text-main, #334155);
    margin-bottom: 1.5rem;
}

/* 4 Thẻ Thống Kê (Stats Grid) */
.th-about-stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
    margin-top: 1rem;
}

.th-about-stat-card {
    background: #f8fafc;
    border: 1px solid var(--wp--preset--color--border-light, #e2e8f0);
    border-radius: 14px;
    padding: 1.25rem 1rem;
    text-align: center;
    transition: transform 0.25s, border-color 0.25s, box-shadow 0.25s;
}

.th-about-stat-card:hover {
    transform: translateY(-3px);
    border-color: var(--wp--preset--color--blue-electric, #2563eb);
    box-shadow: 0 6px 18px rgba(37, 99, 235, 0.1);
}

.th-about-stat-number {
    font-size: 1.75rem;
    font-weight: 900;
    color: var(--wp--preset--color--blue-electric, #2563eb);
    line-height: 1.1;
    margin-bottom: 0.35rem;
}

.th-about-stat-label {
    font-size: 0.775rem;
    font-weight: 600;
    color: var(--wp--preset--color--text-muted, #64748b);
    line-height: 1.4;
}

/* ========================================================
   TẦNG 2: TIMELINE SỰ NGHIỆP & CỘT MỐC ĐÀO TẠO
======================================================== */
.th-about-timeline-wrap {
    position: relative;
    padding-left: 2rem;
    border-left: 2px solid var(--wp--preset--color--border-light, #e2e8f0);
}

.th-about-timeline-item {
    position: relative;
    margin-bottom: 2.5rem;
}

.th-about-timeline-item:last-child {
    margin-bottom: 0;
}

.th-about-timeline-dot {
    position: absolute;
    left: calc(-2rem - 9px);
    top: 4px;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: #ffffff;
    border: 3px solid var(--wp--preset--color--blue-electric, #2563eb);
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.15);
}

.th-about-timeline-card {
    background: #ffffff;
    border: 1px solid var(--wp--preset--color--border-light, #e2e8f0);
    border-radius: 14px;
    padding: 1.5rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.02);
    transition: border-color 0.2s, box-shadow 0.2s;
}

.th-about-timeline-card:hover {
    border-color: var(--wp--preset--color--blue-electric, #2563eb);
    box-shadow: 0 6px 20px rgba(37, 99, 235, 0.08);
}

.th-about-timeline-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}

.th-about-timeline-title {
    font-size: 1.15rem;
    font-weight: 800;
    color: var(--wp--preset--color--navy-primary, #0b132b);
    margin: 0;
}

.th-about-timeline-badge {
    display: inline-block;
    padding: 0.2rem 0.65rem;
    border-radius: 6px;
    font-size: 0.725rem;
    font-weight: 700;
    background: rgba(37, 99, 235, 0.1);
    color: var(--wp--preset--color--blue-electric, #2563eb);
}

.th-about-timeline-org {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--wp--preset--color--purple-ai, #7c3aed);
    margin-bottom: 0.75rem;
}

.th-about-timeline-desc {
    font-size: 0.925rem;
    line-height: 1.65;
    color: var(--wp--preset--color--text-main, #334155);
    margin: 0;
}

/* ========================================================
   TẦNG 3: BENTO GRID NĂNG LỰC CÔNG NGHỆ (TECH STACK)
======================================================== */
.th-about-bento-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.th-bento-card {
    background: #ffffff;
    border: 1px solid var(--wp--preset--color--border-light, #e2e8f0);
    border-radius: 18px;
    padding: 1.75rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
    display: flex;
    flex-direction: column;
    transition: transform 0.25s, box-shadow 0.25s, border-color 0.25s;
}

.th-bento-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.06);
}

.th-bento-card-featured {
    grid-column: span 2;
    background: linear-gradient(135deg, rgba(124, 58, 237, 0.03), rgba(37, 99, 235, 0.05));
    border-color: rgba(124, 58, 237, 0.25);
}

.th-bento-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.th-bento-icon {
    width: 42px;
    height: 42px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    flex-shrink: 0;
}

.th-bento-icon-purple { background: rgba(124, 58, 237, 0.12); color: #7c3aed; }
.th-bento-icon-blue   { background: rgba(37, 99, 235, 0.12); color: #2563eb; }
.th-bento-icon-teal   { background: rgba(20, 184, 166, 0.12); color: #0d9488; }
.th-bento-icon-slate  { background: rgba(100, 116, 139, 0.12); color: #475569; }
.th-bento-icon-amber  { background: rgba(245, 158, 11, 0.12); color: #d97706; }

.th-bento-title {
    font-size: 1.15rem;
    font-weight: 800;
    color: var(--wp--preset--color--navy-primary, #0b132b);
    margin: 0;
}

.th-bento-desc {
    font-size: 0.875rem;
    color: var(--wp--preset--color--text-muted, #64748b);
    line-height: 1.5;
    margin: 0 0 1.25rem 0;
}

.th-skill-pills-wrap {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: auto;
}

.th-skill-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.35rem 0.75rem;
    border-radius: 8px;
    font-size: 0.8rem;
    font-weight: 600;
    border: 1px solid transparent;
}

.th-pill-purple { background: rgba(124, 58, 237, 0.08); color: #7c3aed; border-color: rgba(124, 58, 237, 0.2); }
.th-pill-blue   { background: rgba(37, 99, 235, 0.08); color: #2563eb; border-color: rgba(37, 99, 235, 0.2); }
.th-pill-teal   { background: rgba(20, 184, 166, 0.08); color: #0d9488; border-color: rgba(20, 184, 166, 0.2); }
.th-pill-slate  { background: rgba(100, 116, 139, 0.08); color: #475569; border-color: rgba(100, 116, 139, 0.2); }
.th-pill-amber  { background: rgba(245, 158, 11, 0.08); color: #d97706; border-color: rgba(245, 158, 11, 0.2); }

/* ========================================================
   TẦNG 4: TRIẾT LÝ ĐÀO TẠO & TINH THẦN LỬNG CODE
======================================================== */
.th-about-pillars-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.th-pillar-card {
    background: #ffffff;
    border: 1px solid var(--wp--preset--color--border-light, #e2e8f0);
    border-radius: 18px;
    padding: 2rem 1.5rem;
    text-align: left;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.02);
    border-top: 4px solid var(--wp--preset--color--blue-electric, #2563eb);
}

.th-pillar-number {
    font-size: 2.25rem;
    font-weight: 900;
    color: rgba(37, 99, 235, 0.2);
    line-height: 1;
    margin-bottom: 0.75rem;
}

.th-pillar-title {
    font-size: 1.15rem;
    font-weight: 800;
    color: var(--wp--preset--color--navy-primary, #0b132b);
    margin: 0 0 0.5rem 0;
}

.th-pillar-desc {
    font-size: 0.9rem;
    line-height: 1.65;
    color: var(--wp--preset--color--text-main, #334155);
    margin: 0;
}

/* ========================================================
   TẦNG 5: HỢP TÁC CHUYÊN MÔN & DOANH NGHIỆP
======================================================== */
.th-about-collab-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

.th-collab-item {
    background: #ffffff;
    border: 1px solid var(--wp--preset--color--border-light, #e2e8f0);
    border-radius: 16px;
    padding: 1.75rem;
    display: flex;
    gap: 1.25rem;
    transition: transform 0.2s, border-color 0.2s;
}

.th-collab-item:hover {
    transform: translateY(-2px);
    border-color: var(--wp--preset--color--blue-electric, #2563eb);
}

.th-collab-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.12), rgba(124, 58, 237, 0.12));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    flex-shrink: 0;
}

.th-collab-content h4 {
    font-size: 1.1rem;
    font-weight: 800;
    color: var(--wp--preset--color--navy-primary, #0b132b);
    margin: 0 0 0.35rem 0;
}

.th-collab-content p {
    font-size: 0.885rem;
    line-height: 1.6;
    color: var(--wp--preset--color--text-main, #334155);
    margin: 0;
}

/* ========================================================
   TẦNG 6: DANH THIẾP LIÊN HỆ TRỰC TIẾP (CONTACT CARD)
======================================================== */
.th-about-contact-banner {
    background: linear-gradient(135deg, #0b132b, #1c2541);
    color: #ffffff;
    border-radius: 24px;
    padding: 3rem;
    box-shadow: 0 15px 40px rgba(11, 19, 43, 0.25);
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

.th-contact-banner-title {
    font-size: clamp(1.6rem, 2.8vw, 2.2rem);
    font-weight: 800;
    line-height: 1.25;
    margin: 0 0 1rem 0;
    color: #ffffff;
}

.th-contact-banner-desc {
    font-size: 0.95rem;
    color: #94a3b8;
    line-height: 1.65;
    margin: 0 0 1.5rem 0;
}

.th-contact-info-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.th-contact-info-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    background: rgba(255, 255, 255, 0.05);
    padding: 0.85rem 1.25rem;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: background 0.2s;
}

.th-contact-info-item:hover {
    background: rgba(255, 255, 255, 0.1);
}

.th-contact-info-icon {
    font-size: 1.25rem;
    flex-shrink: 0;
}

.th-contact-info-label {
    font-size: 0.75rem;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.15rem;
}

.th-contact-info-value {
    font-size: 0.95rem;
    font-weight: 700;
    color: #ffffff;
    text-decoration: none;
}

.th-contact-info-value:hover {
    color: #60a5fa;
}

/* ========================================================
   DARK MODE OVERRIDES
======================================================== */
html.dark-mode .th-about-hero-grid,
html.dark-mode .th-about-timeline-card,
html.dark-mode .th-bento-card,
html.dark-mode .th-pillar-card,
html.dark-mode .th-collab-item {
    background: var(--wp--preset--color--surface-dark, #0f172a) !important;
    border-color: rgba(255, 255, 255, 0.08) !important;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2) !important;
}

html.dark-mode .th-about-section-title,
html.dark-mode .th-about-name,
html.dark-mode .th-about-statement,
html.dark-mode .th-about-timeline-title,
html.dark-mode .th-bento-title,
html.dark-mode .th-pillar-title,
html.dark-mode .th-collab-content h4 {
    color: #f8fafc !important;
}

html.dark-mode .th-about-intro-p,
html.dark-mode .th-about-timeline-desc,
html.dark-mode .th-pillar-desc,
html.dark-mode .th-collab-content p {
    color: #cbd5e1 !important;
}

html.dark-mode .th-about-stat-card {
    background: rgba(255, 255, 255, 0.03) !important;
    border-color: rgba(255, 255, 255, 0.08) !important;
}

html.dark-mode .th-about-timeline-dot {
    background: #0f172a !important;
}

html.dark-mode .th-btn-secondary {
    background: rgba(255, 255, 255, 0.08) !important;
    color: #ffffff !important;
    border-color: rgba(255, 255, 255, 0.15) !important;
}

html.dark-mode .th-bento-card-featured {
    background: linear-gradient(135deg, rgba(124, 58, 237, 0.08), rgba(37, 99, 235, 0.1)) !important;
    border-color: rgba(124, 58, 237, 0.35) !important;
}

/* ========================================================
   RESPONSIVE CHO MOBILE & TABLET
======================================================== */
@media (max-width: 1024px) {
    .th-about-hero-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
        padding: 2rem 1.5rem;
    }
    .th-about-portrait-card {
        position: static;
    }
    .th-about-bento-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .th-bento-card-featured {
        grid-column: span 2;
    }
    .th-about-pillars-grid {
        grid-template-columns: 1fr;
    }
    .th-about-contact-banner {
        grid-template-columns: 1fr;
        padding: 2rem;
        gap: 2rem;
    }
}

@media (max-width: 768px) {
    .th-about-stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .th-about-bento-grid {
        grid-template-columns: 1fr;
    }
    .th-bento-card-featured {
        grid-column: span 1;
    }
    .th-about-collab-grid {
        grid-template-columns: 1fr;
    }
    .th-about-avatar-wrap {
        width: 220px;
        height: 220px;
    }
}
