*,
*::before,
*::after {
    box-sizing: border-box;
}

body {
    margin: 0;
    padding: 24px 16px;
    font-family: Arial, sans-serif;
    background: linear-gradient(135deg, #a862f4, #367aec);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: flex-start;
}

/* ── Card ── */
.about-card {
    background: white;
    padding: 40px 44px;
    width: 680px;
    max-width: 100%;
    border-radius: 16px;
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.18);
    margin: 16px auto;
}

/* ── Header ── */
.about-header {
    text-align: center;
    margin-bottom: 24px;
}

.brand-badge {
    display: inline-block;
    background: linear-gradient(135deg, #2575fc, #6a11cb);
    color: white;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 1.2px;
    padding: 5px 14px;
    border-radius: 20px;
    margin-bottom: 14px;
}

.about-header h1 {
    font-size: 20px;
    font-weight: 700;
    color: #1a1a2e;
    margin: 0 0 6px 0;
}

.about-header .subtitle {
    font-size: 13px;
    color: #888;
    margin: 0;
}

/* ── e-Label table (2.2 media labelling) ── */
.elabel-box {
    border: 1.5px solid #e8e8f0;
    border-radius: 12px;
    background: #fafbff;
    padding: 18px 22px;
    margin-bottom: 22px;
}

.elabel-box dl {
    margin: 0;
    display: grid;
    grid-template-columns: 160px 1fr;
    row-gap: 8px;
    column-gap: 12px;
}

.elabel-box dt {
    font-size: 12px;
    font-weight: 700;
    color: #2575fc;
}

.elabel-box dd {
    margin: 0;
    font-size: 13px;
    color: #333;
}

/* ── Sections ── */
.about-section {
    margin-bottom: 22px;
    text-align: left;
}

.about-section:last-child {
    margin-bottom: 0;
}

.about-section h2 {
    font-size: 13px;
    font-weight: 700;
    color: #2575fc;
    margin: 0 0 8px 0;
    border-left: 3px solid #E679F2;
    padding-left: 10px;
}

.about-section p,
.about-section li {
    font-size: 13px;
    line-height: 1.8;
    color: #555;
    margin: 0 0 8px 0;
}

.about-section p:last-child {
    margin-bottom: 0;
}

/* ── Manual link / buttons ── */
.manual-link {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    color: #2575fc;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    padding: 10px 16px;
    border: 1.5px dashed #2575fc;
    border-radius: 10px;
    margin-bottom: 8px;
    transition: background 0.2s, color 0.2s;
}

.manual-link:hover {
    background: #f0f5ff;
}

/* ── Back link ── */
.back-link {
    display: block;
    text-align: center;
    margin-top: 18px;
    color: #2575fc;
    text-decoration: none;
    font-size: 13px;
    transition: color 0.2s;
}

.back-link:hover {
    color: #6a11cb;
    text-decoration: underline;
}

/* ── Performance table (ข้อมูลประสิทธิภาพของ AI) ── */
.table-responsive {
    overflow-x: auto;
    margin-top: 6px;
}

.perf-table {
    width: 100%;
    min-width: 460px;
    border-collapse: separate;
    border-spacing: 0;
    font-size: 13px;
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid #e8e8f0;
}

.perf-table thead th {
    background: linear-gradient(135deg, #2575fc, #6a11cb);
    color: #fff;
    font-weight: 700;
    text-align: left;
    padding: 10px 14px;
    white-space: nowrap;
}

.perf-table tbody td {
    padding: 10px 14px;
    color: #333;
    border-top: 1px solid #eef0f6;
}

.perf-table tbody tr:nth-child(even) {
    background: #fafbff;
}

.perf-table tbody tr:hover {
    background: #f0f5ff;
}

/* ── Video demo section (standalone, modern hero style) ── */
.video-section {
    margin-bottom: 24px;
}

.video-section-label {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    font-weight: 700;
    color: #2575fc;
    margin-bottom: 10px;
    border-left: 3px solid #E679F2;
    padding-left: 10px;
}

.video-hero {
    /* reset <button> defaults — this is a button, not a real link */
    border: none;
    width: 100%;
    font: inherit;
    cursor: pointer;

    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 14px;
    min-height: 140px;
    padding: 28px 20px;
    border-radius: 16px;
    background: linear-gradient(135deg, #2575fc, #6a11cb 60%, #E679F2);
    text-decoration: none;
    overflow: hidden;
    box-shadow: 0 8px 24px rgba(106, 17, 203, 0.25);
    transition: transform 0.2s, box-shadow 0.2s;
}

/* soft glow overlay for depth, purely decorative */
.video-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 28% 22%, rgba(255, 255, 255, 0.28), transparent 55%);
    pointer-events: none;
}

.video-hero:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 32px rgba(106, 17, 203, 0.35);
}

.video-hero-play {
    position: relative;
    z-index: 1;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.95);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25);
    transition: transform 0.2s;
}

.video-hero:hover .video-hero-play {
    transform: scale(1.08);
}

.video-hero-play .play-icon {
    color: #2575fc;
    font-size: 20px;
    margin-left: 3px; /* optical centering for the triangle glyph */
}

.video-hero-caption {
    position: relative;
    z-index: 1;
    color: #fff;
    font-size: 13px;
    font-weight: 600;
    text-align: center;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.25);
}

/* ── Video modal (plays the local demo video in-page) ── */
.video-modal {
    display: none;
    position: fixed;
    inset: 0;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.video-modal.is-open {
    display: flex;
}

.video-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(10, 10, 20, 0.75);
}

.video-modal-dialog {
    position: relative;
    width: min(720px, 92vw);
    background: #000;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.45);
}

.video-modal-dialog video {
    display: block;
    width: 100%;
    max-height: 80vh;
}

.video-modal-close {
    position: absolute;
    top: 8px;
    right: 8px;
    z-index: 1;
    width: 32px;
    height: 32px;
    border: none;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.55);
    color: #fff;
    font-size: 20px;
    line-height: 1;
    cursor: pointer;
    transition: background 0.2s;
}

.video-modal-close:hover {
    background: rgba(0, 0, 0, 0.8);
}

/* ── Print (electronic document) friendly ── */
@media print {
    body {
        background: white;
        padding: 0;
    }
    .about-card {
        box-shadow: none;
        width: 100%;
    }
    .back-link,
    .manual-link,
    .video-section,
    .video-modal {
        display: none;
    }
}
