/* ================================================================
   9Dragons Hoi Quan Theme - Diem gay responsive
   ================================================================ */

/* === May tinh bang lon (toi da 1024px) === */
@media (max-width: 1024px) {
    .hq-home {
        grid-template-columns: minmax(0, 1fr);
    }

    /* Noi dung chinh len truoc, cot trai xuong duoi */
    .hq-content {
        order: 1;
    }

    .hq-side {
        order: 2;
    }

    .hq-side-duo {
        grid-template-columns: repeat(4, 1fr);
    }

    .hq-masthead-inner {
        height: 170px;
        justify-content: center;
    }

    .hq-masthead--compact .hq-masthead-inner {
        height: 96px;
    }

    .hq-masthead-logo {
        max-width: 72%;
    }

    .hq-grid-2 {
        grid-template-columns: 1fr;
    }

    .hq-faction-content {
        flex-direction: column;
        text-align: center;
    }

    .hq-faction-character {
        width: 220px;
        height: 280px;
    }

    .hq-refining-columns {
        grid-template-columns: 1fr 1fr;
    }
}

/* === May tinh bang (toi da 768px) === */
@media (max-width: 768px) {
    .hq-nav-inner .hq-nav-link,
    .hq-nav-spacer {
        display: none;
    }

    .hq-nav-toggle {
        display: flex;
    }

    .hq-sitebar-inner,
    .hq-sitebar-group {
        flex-wrap: wrap;
        justify-content: center;
        row-gap: 0;
    }

    .hq-sitebar-brand {
        padding-right: 8px;
    }

    .hq-sitebar-link {
        padding: 0 9px;
    }

    .hq-masthead-inner {
        height: 140px;
    }

    .hq-masthead-logo {
        width: 260px;
        max-width: 78%;
    }

    .hq-side-duo {
        grid-template-columns: 1fr 1fr;
    }

    .hq-row {
        grid-template-columns: minmax(0, 1fr) 80px;
    }

    .hq-tag {
        display: inline-block;
        grid-column: 1 / -1;
        width: 76px;
        margin-bottom: 4px;
    }

    .hq-news-grid {
        grid-template-columns: 1fr;
    }

    .hq-faction-character {
        width: 180px;
        height: 230px;
    }

    .hq-faction-tabs {
        gap: var(--space-xs);
    }

    .hq-faction-tab {
        padding: 6px 12px;
        font-size: 0.78rem;
    }

    .hq-refining-columns {
        grid-template-columns: 1fr;
    }

    .hq-download-links {
        flex-direction: column;
        align-items: center;
    }

    .hq-page-title,
    .hq-article-title {
        font-size: 1.3rem;
    }
}

/* === Dien thoai (toi da 576px) === */
@media (max-width: 576px) {
    .hq-sitebar {
        font-size: 10.5px;
    }

    .hq-sitebar-brand {
        width: 100%;
        text-align: center;
        line-height: 28px;
        padding: 0;
    }

    .hq-masthead-inner {
        height: 110px;
    }

    .hq-masthead-logo {
        width: 210px;
    }

    .hq-home {
        padding: 12px 10px 28px;
    }

    /* Giu dung ti le anh banner de khong bi cat mat chu */
    .hq-banner-caption {
        font-size: 11.5px;
    }

    .hq-dl {
        font-size: 18px;
    }

    .hq-row {
        grid-template-columns: minmax(0, 1fr);
        row-gap: 2px;
    }

    .hq-row-date {
        text-align: left;
    }

    .hq-section-title {
        font-size: 1.1rem;
    }

    .hq-card {
        padding: var(--space-md);
    }

    .hq-tabs {
        gap: 4px;
    }

    .hq-tab {
        padding: 6px 10px;
        font-size: 0.78rem;
    }

    .hq-boss-card {
        flex-direction: column;
    }

    .hq-boss-thumb {
        width: 100%;
        height: 120px;
    }

    .hq-activity-details {
        flex-direction: column;
        gap: var(--space-xs);
    }

    .hq-faction-content {
        padding: var(--space-md);
    }

    .hq-faction-character {
        width: 150px;
        height: 200px;
    }

    .hq-news-item {
        flex-direction: column;
    }

    .hq-news-thumb {
        width: 100%;
        height: 150px;
    }

    .hq-footer-links a {
        padding: 2px 8px;
    }
}
