/* ── A48: Trang tác giả /tac-gia/da-nang-best — tông xanh lá DanangBest ── */

.au-page {
    --au-green-dark: #0e5c2e;
    --au-green: #14a349;
    --au-green-soft: #e8f6ec;
    --au-green-border: #cdeeda;
    --au-bg-soft: #f7fbf7;
    --au-text: #1d2b22;
    --au-text-muted: #5b6b60;
    padding: 24px 0 48px;
    color: var(--au-text);
}

.au-hero {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    background-color: var(--au-green-dark); /* fallback nếu banner lỗi/chưa tải */
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    border-radius: 16px;
    padding: 40px 36px;
    min-height: 260px;
    box-sizing: border-box;
    color: #fff;
    margin-bottom: 28px;
}

.au-hero-left {
    display: flex;
    align-items: center;
    gap: 26px;
    min-width: 0;
}

.au-hero-avatar {
    width: 104px;
    height: 104px;
    border-radius: 50%;
    object-fit: contain;
    padding: 13px;
    box-sizing: border-box;
    border: 3px solid rgba(255, 255, 255, .6);
    background: #fff;
    flex-shrink: 0;
}

.au-hero-body { max-width: 620px; }

.au-hero-title {
    font-size: 30px;
    font-weight: 800;
    margin: 0 0 6px;
    color: #fff;
}

.au-hero-jobtitle {
    font-size: 13px;
    font-weight: 600;
    color: #d7ecdc;
    margin: 0 0 6px;
}

.au-hero-subtitle {
    font-size: 14.5px;
    line-height: 1.6;
    color: #eef7ef;
    max-width: 560px;
    margin: 0 0 10px;
}

.au-hero-quote {
    font-style: italic;
    font-size: 12.5px;
    line-height: 1.6;
    color: rgba(255, 255, 255, .82);
    max-width: 560px;
    margin: 0 0 18px;
}

/* A48-decor: chữ viết tay trang trí nổi trực tiếp trên bầu trời — KHÔNG card/glass/box, chỉ
   text-shadow rất nhẹ để đọc được. Không có font script nào đang preload cho trang này (site có
   "Dancing Script" nhưng chỉ load ở head_catelogy_news.php/head_topic.php, ngoài phạm vi file cho
   phép sửa của task này: head_author.php). Dùng fallback cursive hệ thống, không thêm font mới. */
.au-hero-decor {
    position: relative;
    flex-shrink: 0;
    align-self: flex-start;
    max-width: 320px;
    margin: 14px 16px 0 0;
    font-family: "Segoe Script", "Brush Script MT", "Lucida Handwriting", cursive;
    font-style: italic;
    text-align: right;
    text-shadow: 0 5px 6px rgb(255 255 255);
}

.au-hero-decor-lg {
    display: block;
    font-size: 46px;
    font-weight: 600;
    line-height: 1.1;
}

.au-hero-decor-swash {
    display: inline-block;
    margin: 2px 0;
    color: var(--au-green-dark);
    opacity: .8;
}

.au-hero-decor-heart { fill: var(--au-green-dark); opacity: .85; }

.au-hero-decor-sm {
    display: block;
    margin-top: 2px;
    font-size: 27px;
    font-weight: 500;
    line-height: 1.3;
}

.au-hero-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.au-hero-pill-ico { flex-shrink: 0; margin-right: 6px; }

.au-hero-pill {
    display: inline-flex;
    align-items: center;
    background: rgba(255, 255, 255, .16);
    border: 1px solid rgba(255, 255, 255, .32);
    border-radius: 20px;
    padding: 7px 16px;
    font-size: 12.5px;
    color: #fff;
    text-decoration: none;
}

.au-hero-pill:hover { background: rgba(255, 255, 255, .24); }

.au-section { margin-bottom: 28px; }

.au-section-title {
    font-size: 21px;
    font-weight: 800;
    color: var(--au-green-dark);
    margin: 0 0 14px;
}

.au-section-title--tight { margin-bottom: 10px; }

.au-card {
    background: #fff;
    border: 1px solid var(--au-green-border);
    border-radius: 12px;
    padding: 20px 22px;
}

.au-about p, .au-about-bio { line-height: 1.75; color: var(--au-text); }
.au-about p + p { margin-top: 10px; }

.au-about-row {
    display: grid;
    grid-template-columns: 1.6fr 1fr;
    gap: 18px;
    align-items: stretch;
}

.au-about-row .au-card { margin: 0; }

.au-btn {
    display: inline-block;
    margin-top: 14px;
    padding: 10px 20px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
}

.au-btn-outline {
    background: #fff;
    color: var(--au-green-dark);
    border: 1.5px solid var(--au-green);
}
.au-btn-outline:hover { background: var(--au-green-soft); }

.au-btn-solid {
    background: var(--au-green);
    color: #fff;
    border: 1.5px solid var(--au-green);
}
.au-btn-solid:hover { background: var(--au-green-dark); border-color: var(--au-green-dark); }

.au-btn-link {
    margin-top: 10px;
    padding: 0;
    color: var(--au-green-dark);
    font-weight: 700;
    text-decoration: underline;
}

.au-scope-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 14px;
}

.au-scope-card {
    background: #fff;
    border: 1px solid var(--au-green-border);
    border-radius: 12px;
    padding: 18px 14px;
    text-align: center;
    transition: box-shadow .15s ease, transform .15s ease, border-color .15s ease;
}

.au-scope-card:hover {
    box-shadow: 0 6px 16px rgba(14, 92, 46, .1);
    transform: translateY(-2px);
    border-color: var(--au-green);
}

.au-scope-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--au-green-soft);
    color: var(--au-green-dark);
    margin-bottom: 10px;
}

.au-scope-label {
    font-size: 14px;
    font-weight: 700;
    color: var(--au-text);
    margin: 0 0 4px;
}

.au-scope-desc {
    font-size: 12.5px;
    color: var(--au-text-muted);
    margin: 0;
}

.au-timeline {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
}

.au-timeline-step {
    position: relative;
    background: #fff;
    border: 1px solid var(--au-green-border);
    border-top: 3px solid var(--au-green);
    border-radius: 10px;
    padding: 18px 16px;
}

/* Mũi tên nối giữa các bước — chỉ hiện khi timeline đang xếp ngang (desktop/tablet) */
.au-timeline-step:not(:last-child)::after {
    content: "→";
    position: absolute;
    top: 22px;
    right: -19px;
    color: var(--au-green);
    font-size: 18px;
    font-weight: 700;
    line-height: 1;
    z-index: 1;
}

.au-timeline-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--au-green);
    color: #fff;
    font-weight: 800;
    font-size: 13px;
    margin-bottom: 10px;
}

.au-timeline-title {
    font-size: 14.5px;
    font-weight: 700;
    color: var(--au-green-dark);
    margin: 0 0 6px;
}

.au-timeline-desc {
    font-size: 13px;
    line-height: 1.6;
    color: var(--au-text-muted);
    margin: 0;
}

.au-note {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    margin-top: 14px;
    font-size: 12.5px;
    line-height: 1.6;
    color: var(--au-text-muted);
    background: var(--au-bg-soft);
    border-left: 3px solid var(--au-green);
    padding: 10px 14px;
    border-radius: 0 8px 8px 0;
}

.au-note-icon {
    flex-shrink: 0;
    margin-top: 1px;
    color: var(--au-green);
}

.au-quickbox { background: var(--au-bg-soft); }

.au-quicklist {
    list-style: none;
    margin: 0 0 4px;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px 20px;
    font-size: 13.5px;
    color: var(--au-text);
}

.au-quicklist a { color: var(--au-green-dark); }

.au-post-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}

.au-post-card {
    display: block;
    background: #fff;
    border: 1px solid var(--au-green-border);
    border-radius: 10px;
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    transition: box-shadow .15s ease, transform .15s ease;
}

.au-post-card:hover {
    box-shadow: 0 6px 18px rgba(14, 92, 46, .12);
    transform: translateY(-2px);
}

.au-post-img { position: relative; aspect-ratio: 4/3; overflow: hidden; background: var(--au-bg-soft); }
.au-post-img img { width: 100%; height: 100%; object-fit: cover; display: block; }

.au-post-body { padding: 10px 12px 12px; }

.au-post-tag {
    position: absolute;
    top: 8px;
    left: 8px;
    display: inline-block;
    font-size: 10.5px;
    font-weight: 700;
    color: #fff;
    background: var(--au-green-dark);
    border-radius: 4px;
    padding: 3px 9px;
}

.au-post-title {
    font-size: 13.5px;
    font-weight: 700;
    color: var(--au-text);
    line-height: 1.35;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.au-post-date {
    display: block;
    font-size: 11px;
    color: var(--au-text-muted);
    margin-top: 6px;
}

.au-empty { color: var(--au-text-muted); font-size: 14px; }

.au-pagination {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 20px;
}

.au-page-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 34px;
    height: 34px;
    padding: 0 10px;
    border-radius: 6px;
    border: 1px solid var(--au-green-border);
    color: var(--au-green-dark);
    text-decoration: none;
    font-size: 13px;
    background: #fff;
}

.au-page-btn.active { background: var(--au-green); border-color: var(--au-green); color: #fff; }
.au-page-btn:hover:not(.active) { background: var(--au-green-soft); }
.au-page-dots { padding: 0 4px; color: var(--au-text-muted); }

.au-bottom-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
    align-items: stretch;
}

.au-bottom-row .au-card { margin: 0; }
.au-faq-card .au-faq-item:last-child { margin-bottom: 0; }

.au-faq-item {
    background: #fff;
    border: 1px solid var(--au-green-border);
    border-radius: 8px;
    padding: 12px 16px;
    margin-bottom: 10px;
}

.au-faq-q {
    font-size: 14px;
    font-weight: 700;
    color: var(--au-green-dark);
    cursor: pointer;
}

.au-faq-a {
    font-size: 13.5px;
    line-height: 1.6;
    color: var(--au-text);
    margin: 10px 0 0;
}

/* ── Responsive ── */
/* Tablet: 2-3 cột theo yêu cầu, mũi tên timeline vẫn hiện vì còn xếp ngang (2 cột) */
@media (max-width: 991px) {
    /* Décor chỉ đủ chỗ ở màn rộng — ẩn sớm từ tablet để tránh chèn/ vỡ hàng với khối trái */
    .au-hero-decor { display: none; }
    .au-about-row { grid-template-columns: 1fr; }
    .au-scope-grid { grid-template-columns: repeat(3, 1fr); }
    .au-timeline { grid-template-columns: repeat(2, 1fr); }
    .au-timeline-step:nth-child(2)::after { content: none; } /* cuối hàng 1 khi 2 cột — không kéo mũi tên chéo xuống hàng 2 */
    .au-post-grid { grid-template-columns: repeat(3, 1fr); }
    .au-bottom-row { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
    .au-hero {
        flex-direction: column;
        text-align: center;
        padding: 24px 18px;
        min-height: 0;
    }
    .au-hero-left { flex-direction: column; gap: 14px; }
    .au-hero-body { max-width: none; }
    .au-hero-decor { display: none; } /* décor chỉ dành cho màn rộng, tránh vỡ layout mobile */
    .au-hero-meta { justify-content: center; }
    .au-hero-subtitle, .au-hero-quote { max-width: none; }
    .au-hero-title { font-size: 22px; }
    .au-scope-grid { grid-template-columns: repeat(2, 1fr); }
    .au-timeline { grid-template-columns: 1fr; }
    .au-timeline-step::after { content: none !important; } /* xếp dọc — bỏ hẳn mũi tên ngang */
    .au-post-grid { grid-template-columns: repeat(2, 1fr); }
    .au-quicklist { grid-template-columns: 1fr; }
    .au-card { padding: 16px; }
}

@media (max-width: 400px) {
    .au-post-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
    .au-hero-avatar { width: 76px; height: 76px; }
}
