/*
Theme Name: Drug Test Theme
Theme URI: 
Description: Theme Drug Test Device Register - hero, search, filters, table. Menu Product Type, Brands/Panel Count.
Author: 
Version: 1.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: drugtest-theme
*/

/* Base: tránh tràn ngang trên mobile */
html {
    overflow-x: hidden;
    -webkit-text-size-adjust: 100%;
}
body {
    margin: 0;
    overflow-x: hidden;
}
*,
*::before,
*::after {
    box-sizing: border-box;
}
main:has(#dtr-premium-wrapper),
.dtr-layout-main {
    overflow: visible;
    padding: 0;
    max-width: none;
}

/* Header các trang bên trong — cùng khung màu và menu với trang top */
.dtr-site-header {
    background: linear-gradient(to right, #0a1628 0%, #065f46 50%, #0d7a5a 100%);
    padding: 16px 20px;
    color: white;
}
.dtr-site-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    flex-wrap: wrap;
    gap: 12px;
}
.dtr-site-header .dtr-logo {
    font-weight: 800;
    font-size: 22px;
    letter-spacing: -0.5px;
    color: white;
    text-decoration: none;
}
.dtr-site-header .dtr-logo:hover {
    color: white;
    opacity: 0.95;
}
.dtr-site-header .dtr-menu {
    display: flex;
    align-items: center;
    gap: 24px;
    flex-wrap: wrap;
}
.dtr-site-header .dtr-menu a {
    color: rgba(255, 255, 255, 0.95);
    text-decoration: none;
    font-size: 14px;
    transition: opacity 0.2s;
}
.dtr-site-header .dtr-menu a:hover {
    opacity: 1;
    color: white;
}
.dtr-site-header .dtr-login {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.4);
    color: white;
    padding: 8px 18px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
}
.dtr-site-header .dtr-login:hover {
    background: rgba(255, 255, 255, 0.1);
}

/* Hamburger: ẩn trên desktop */
.dtr-hamburger {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 44px;
    height: 44px;
    padding: 0;
    background: transparent;
    border: none;
    cursor: pointer;
    color: white;
    border-radius: 8px;
    padding-left: 20px;
}
.dtr-hamburger__bar {
    display: block;
    width: 22px;
    height: 2px;
    background: currentColor;
    border-radius: 1px;
    transition: transform 0.2s, opacity 0.2s;
}
.dtr-hamburger[aria-expanded="true"] .dtr-hamburger__bar:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}
.dtr-hamburger[aria-expanded="true"] .dtr-hamburger__bar:nth-child(2) {
    opacity: 0;
}
.dtr-hamburger[aria-expanded="true"] .dtr-hamburger__bar:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

#dtr-premium-wrapper {
    font-family: 'Inter', -apple-system, sans-serif;
    background: #fdfdfd;
    margin: 0;
    color: #1e293b;
}

/* Centered Hero Header — gradient ngang */
.dtr-hero-section {
    background: linear-gradient(135deg, #0f172a 0%, #065f46 100%);
    padding: 60px 20px 100px 20px;
    color: white;
    text-align: center;
}

.dtr-top-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto 60px auto;
    padding: 0 20px;
}
.dtr-logo {
    font-weight: 800;
    font-size: 22px;
    letter-spacing: -0.5px;
    color: white;
    text-decoration: none;
}
.dtr-logo:hover {
    color: white;
    opacity: 0.95;
}
.dtr-menu {
    display: flex;
    align-items: center;
    gap: 24px;
    flex-wrap: wrap;
}
.dtr-menu a {
    color: rgba(255, 255, 255, 0.95);
    text-decoration: none;
    font-size: 14px;
    transition: opacity 0.2s;
}
.dtr-menu a:hover {
    opacity: 1;
    color: white;
}
.dtr-menu a.dtr-nav-active {
    font-weight: 600;
    color: white;
}
.dtr-menu-close {
    display: none;
}
.dtr-login {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.4);
    color: white;
    padding: 8px 18px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
}
.dtr-login:hover {
    background: rgba(255, 255, 255, 0.1);
}

.dtr-hero-content h1 {
    font-size: clamp(28px, 5vw, 42px);
    font-weight: 800;
    margin-bottom: 10px;
    letter-spacing: -1px;
    text-transform: uppercase;
}
.dtr-tagline {
    font-size: 18px;
    opacity: 0.8;
    margin-bottom: 40px;
}

/* Centered Search Bar */
.dtr-main-search {
    display: flex;
    background: white;
    border-radius: 12px;
    padding: 8px;
    max-width: 650px;
    margin: 0 auto;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
}
.search-inner {
    flex-grow: 1;
    display: flex;
    align-items: center;
    padding-left: 15px;
}
.search-inner input {
    border: none;
    width: 100%;
    outline: none;
    font-size: 16px;
    color: #333;
}
.search-icon {
    margin-right: 10px;
    font-size: 18px;
}
.dtr-search-btn {
    background: #10b981;
    color: white;
    border: none;
    padding: 12px 25px;
    border-radius: 8px;
    font-weight: 700;
    cursor: pointer;
    min-height: 44px;
}

/* Main Container */
.dtr-container {
    max-width: 1200px;
    margin: -50px auto 0 auto;
    background: white;
    border-radius: 16px;
    padding: 30px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.05);
}
.dtr-product-detail-wrap.dtr-container {
    margin: 40px auto 0 auto;
}

.dtr-filters {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 25px;
    border-bottom: 1px solid #f1f5f9;
    margin-bottom: 20px;
}
.filter-group {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    font-size: 14px;
    font-weight: 500;
    color: #334155;
}
.filter-group label {
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}
.filter-dropdowns {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}
.filter-dropdowns select {
    padding: 8px 12px;
    border-radius: 6px;
    border: 1px solid #e2e8f0;
    background: #f8fafc;
    font-size: 13px;
    color: #1e293b;
    min-width: 140px;
}

/* Table Full Width — min-height cố định để chuyển trang không đổi chiều cao */
#dtr-premium-wrapper .dtr-table-full {
    min-height: 650px;
}
#dtr-premium-wrapper table {
    width: 100%;
    border-collapse: collapse;
}
#dtr-premium-wrapper #deviceTable th {
    text-align: left;
    padding: 15px 16px;
    background: #f8fafc;
    color: #64748b;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
#dtr-premium-wrapper th.text-right {
    text-align: right;
}
#dtr-premium-wrapper #deviceTable td {
    padding: 18px 10px;
    border-bottom: 1px solid #f1f5f9;
    font-size: 14px;
    vertical-align: middle;
}

.product-cell {
    display: flex;
    align-items: center;
    gap: 15px;
}
.p-name {
    font-weight: 700;
    color: #0f172a;
    font-size: 15px;
}
.p-brand {
    color: #64748b;
    font-size: 12px;
}
.row-thumb {
    width: 45px;
    height: 45px;
    object-fit: contain;
    background: #f9fafb;
    border-radius: 8px;
    padding: 4px;
}

.status-pill.verified {
    background: #ecfdf5;
    color: #059669;
    padding: 6px 12px;
    border-radius: 20px;
    font-weight: 700;
    font-size: 12px;
}
.status-pill:not(.verified) {
    background: #f1f5f9;
    color: #64748b;
    padding: 6px 12px;
    border-radius: 20px;
    font-weight: 600;
    font-size: 12px;
}
.specs-cell {
    color: #64748b;
    font-size: 13px;
}

/* Buttons */
.btn-group {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
    text-align: center;
}
.view-btn,
.buy-btn {
    padding: 10px;
    border-radius: 8px;
    font-weight: 700;
    font-size: 13px;
    text-decoration: none;
    transition: 0.2s;
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.view-btn {
    background: #f1f5f9;
    color: #475569;
    border: 1px solid #e2e8f0;
}
.view-btn:hover {
    background: #e2e8f0;
}
.buy-btn {
    background: #0f172a;
    color: white !important;
}
.buy-btn:hover {
    background: #1e293b;
}

.text-right {
    text-align: right;
}

/* Pagination — căn giữa, chiều cao cố định để không nhảy layout khi đổi trang */
.dtr-pagination {
    margin-top: 24px;
    padding-top: 20px;
    padding-bottom: 20px;
    border-top: 1px solid #f1f5f9;
    min-height: 72px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 16px;
}
.dtr-pagination__list {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 6px;
    list-style: none;
    margin: 0;
    padding: 0;
}
.dtr-pagination__list a,
.dtr-pagination__list .dtr-pagination__link {
    display: inline-block;
    padding: 8px 14px;
    border-radius: 8px;
    background: #f1f5f9;
    color: #475569;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    transition: background 0.2s, color 0.2s;
}
.dtr-pagination__list a:hover {
    background: #e2e8f0;
    color: #0f172a;
}
.dtr-pagination__list .dtr-pagination__link--disabled {
    opacity: 0.6;
    cursor: not-allowed;
    pointer-events: none;
}
.dtr-pagination__num--current {
    background: #0f172a !important;
    color: white !important;
    pointer-events: none;
}
.dtr-pagination__ellipsis {
    display: inline-block;
    padding: 8px 6px;
    color: #64748b;
    font-size: 14px;
    font-weight: 600;
    user-select: none;
}
.dtr-pagination__info {
    margin: 0;
    color: #64748b;
    font-size: 14px;
    width: 100%;
    text-align: center;
}

/* Single Product Detail — layout chuyên nghiệp */
.dtr-single-product .dtr-container {
    margin-top: 40px;
    margin-bottom: 48px;
    max-width: 1280px;
    padding: 32px 28px;
}
.dtr-product-detail__header {
    margin-bottom: 28px;
    padding-bottom: 20px;
    border-bottom: 1px solid #e2e8f0;
}
.dtr-product-detail__title {
    margin: 0 0 6px 0;
    font-size: clamp(1.5rem, 4vw, 2rem);
    font-weight: 800;
    color: #0f172a;
    letter-spacing: -0.02em;
    line-height: 1.25;
}
.dtr-product-detail__brand {
    margin: 0;
    font-size: 1rem;
    color: #64748b;
    font-weight: 500;
}
.dtr-product-detail__main {
    display: grid;
    grid-template-columns: 500px 1fr;
    gap: 32px;
    align-items: stretch;
    margin-bottom: 40px;
}
.dtr-product-detail__gallery {
    min-width: 0;
}
.dtr-product-detail__image-wrap {
    background: #f8fafc;
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid #e2e8f0;
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    max-width: 500px;
    padding: 30px;
}
.dtr-product-detail__image {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 24px;
}
.dtr-product-detail__image-placeholder {
    color: #94a3b8;
    font-size: 14px;
}
.dtr-product-detail__sidebar {
    position: relative;
    min-width: 0;
    display: flex;
}
.dtr-product-detail__spec-card {
    flex: 1;
    width: 100%;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
    display: flex;
    flex-direction: column;
}
.dtr-product-detail__spec-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 14px 0;
    border-bottom: 1px solid #e2e8f0;
}
.dtr-product-detail__spec-row:last-of-type {
    border-bottom: none;
}
.dtr-product-detail__spec-row--block {
    flex-direction: column;
    align-items: flex-start;
}
.dtr-product-detail__spec-label {
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #64748b;
}
.dtr-product-detail__spec-value {
    font-size: 15px;
    color: #1e293b;
    font-weight: 500;
    text-align: right;
}
.dtr-product-detail__spec-row--block .dtr-product-detail__spec-value {
    text-align: left;
    font-weight: 400;
    font-size: 14px;
    line-height: 1.5;
}
.dtr-product-detail__type-link {
    color: #065f46;
    font-weight: 600;
    text-decoration: none;
}
.dtr-product-detail__type-link:hover {
    text-decoration: underline;
}
.dtr-product-detail__price-row {
    padding-top: 18px;
    margin-top: 4px;
    border-top: 2px solid #e2e8f0;
}
.dtr-product-detail__price {
    font-size: 1.5rem;
    font-weight: 800;
    color: #0f172a;
}
.dtr-product-detail__cta {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #e2e8f0;
}
.dtr-product-detail__buy-btn {
    display: block;
    width: auto;
    padding: 14px 24px;
    text-align: center;
    background: #0f172a;
    color: white !important;
    font-weight: 700;
    font-size: 15px;
    border-radius: 10px;
    text-decoration: none;
    transition: background 0.2s;
}
.dtr-product-detail__buy-btn:hover {
    background: #1e293b;
}
.dtr-product-detail__description {
    padding-top: 32px;
    border-top: 1px solid #e2e8f0;
}
.dtr-product-detail__section-title {
    margin: 0 0 16px 0;
    font-size: 1.125rem;
    font-weight: 700;
    color: #0f172a;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}
.dtr-product-detail__content.entry-content {
    margin: 0;
    padding: 0;
    font-size: 16px;
    line-height: 1.7;
    color: #334155;
}
.dtr-product-detail__content.entry-content p {
    margin-bottom: 1em;
}
.dtr-product-detail__content.entry-content p:last-child {
    margin-bottom: 0;
}
.dtr-product-detail__content.entry-content ul,
.dtr-product-detail__content.entry-content ol {
    margin: 0 0 1em 0;
    padding-left: 1.5em;
}

/* ========== MOBILE & TABLET RESPONSIVE ========== */

/* Tablet: 900px */
@media (max-width: 900px) {
    .dtr-product-detail__main {
        grid-template-columns: 1fr;
    }
    .dtr-product-detail__sidebar {
        position: static;
    }
    .dtr-product-detail__image-wrap {
        max-width: 100%;
        margin: 0 auto;
    }
    .dtr-single-product .dtr-container {
        padding: 24px 16px;
    }
}

/* Mobile: 768px — hamburger, hero, nav, container, table cards */
@media (max-width: 768px) {
    .search-inner input {
        font-size: 18px;
        padding: 15px 0;
    }
    .dtr-hamburger {
        display: flex;
    }
    .dtr-site-header .dtr-site-nav,
    #dtr-premium-wrapper .dtr-top-nav {
        position: relative;
    }
    .dtr-site-header .dtr-menu.dtr-menu--collapse,
    #dtr-premium-wrapper .dtr-menu.dtr-menu--collapse {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        width: 100%;
        min-height: 100vh;
        padding: 72px 24px 24px 24px;
        flex-direction: column;
        align-items: stretch;
        background: linear-gradient(180deg, #0f2937 0%, #065f46 40%, #047857 100%);
        gap: 0;
        z-index: 100;
        opacity: 0;
        visibility: hidden;
        transform: translateY(-8px);
        transition: opacity 0.2s, visibility 0.2s, transform 0.2s;
        overflow-y: auto;
    }
    .dtr-site-header .dtr-menu.dtr-menu--collapse .dtr-menu-close,
    #dtr-premium-wrapper .dtr-menu.dtr-menu--collapse .dtr-menu-close {
        display: flex;
        align-items: center;
        justify-content: center;
        align-self: flex-end;
        width: 44px;
        height: 44px;
        margin-bottom: 16px;
        padding: 0;
        border: none;
        border-radius: 10px;
        background: rgba(255, 255, 255, 0.15);
        color: #fff;
        font-size: 26px;
        line-height: 1;
        cursor: pointer;
    }
    .dtr-site-header .dtr-menu.dtr-menu--collapse .dtr-menu-close:hover,
    #dtr-premium-wrapper .dtr-menu.dtr-menu--collapse .dtr-menu-close:hover {
        background: rgba(255, 255, 255, 0.25);
    }
    .dtr-site-header .dtr-menu.dtr-menu--collapse a,
    #dtr-premium-wrapper .dtr-menu.dtr-menu--collapse a {
        padding: 14px 20px;
        border-radius: 10px;
        font-size: 16px;
    }
    .dtr-site-header .dtr-menu.dtr-menu--collapse .dtr-login,
    #dtr-premium-wrapper .dtr-menu.dtr-menu--collapse .dtr-login {
        margin-top: 16px;
        padding: 14px 20px;
        font-size: 16px;
        text-align: center;
    }
    body.dtr-menu-open .dtr-site-header .dtr-menu.dtr-menu--collapse,
    body.dtr-menu-open #dtr-premium-wrapper .dtr-menu.dtr-menu--collapse {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }
    .dtr-site-header {
        padding: 12px 16px;
    }
    .dtr-site-nav {
        gap: 8px;
    }
    .dtr-site-header .dtr-logo {
        font-size: 18px;
    }
    .dtr-site-header .dtr-menu a,
    .dtr-site-header .dtr-login {
        font-size: 13px;
        padding: 6px 12px;
    }
    .dtr-hero-section {
        padding: 32px 16px 60px 16px;
    }
    .dtr-top-nav {
        margin-bottom: 32px;
        padding: 0;
        gap: 12px;
    }
    .dtr-logo {
        font-size: 18px;
    }
    .dtr-menu {
        gap: 12px;
    }
    .dtr-menu a,
    .dtr-login {
        font-size: 13px;
        padding: 6px 12px;
    }
    .dtr-hero-content h1 {
        font-size: clamp(22px, 6vw, 28px);
    }
    .dtr-tagline {
        font-size: 15px;
        margin-bottom: 24px;
    }
    .dtr-main-search {
        flex-direction: column;
        max-width: 100%;
        padding: 12px;
        margin: 0 16px;
    }
    .search-inner {
        width: 100%;
    }
    .dtr-search-btn {
        width: 100%;
    }
    .dtr-container {
        margin: -30px 12px 0 12px;
        padding: 20px 16px;
        border-radius: 12px;
    }
    #dtr-premium-wrapper .dtr-table-full {
        min-height: 200px;
        overflow-x: visible;
    }
    #dtr-premium-wrapper .dtr-table-full table {
        min-width: 0;
    }
    #dtr-premium-wrapper #deviceTable thead {
        display: none;
    }
    #dtr-premium-wrapper #deviceTable tbody tr {
        display: block;
        border: 1px solid #e2e8f0;
        border-radius: 12px;
        margin-bottom: 12px;
        overflow: hidden;
        background: #fff;
        box-shadow: 0 1px 3px rgba(0,0,0,0.06);
    }
    #dtr-premium-wrapper #deviceTable tbody tr[style*="display: none"] {
        display: none !important;
    }
    #dtr-premium-wrapper #deviceTable tbody td {
        display: block;
        padding: 12px 16px;
        border-bottom: 1px solid #f1f5f9;
        font-size: 14px;
        text-align: left;
    }
    #dtr-premium-wrapper #deviceTable tbody td:last-child {
        border-bottom: none;
    }
    #dtr-premium-wrapper #deviceTable tbody td::before {
        content: attr(data-label);
        display: block;
        font-size: 11px;
        font-weight: 700;
        text-transform: uppercase;
        letter-spacing: 0.05em;
        color: #64748b;
        margin-bottom: 4px;
    }
    #dtr-premium-wrapper #deviceTable tbody td.text-right {
        text-align: left;
    }
    #dtr-premium-wrapper #deviceTable tbody td .btn-group {
        justify-content: flex-start;
        flex-wrap: wrap;
    }
    #dtr-premium-wrapper #deviceTable tbody tr td:only-child::before {
        display: none;
    }
    .product-cell {
        gap: 10px;
    }
    .row-thumb {
        width: 40px;
        height: 40px;
    }
    .p-name {
        font-size: 14px;
    }
    .view-btn,
    .buy-btn {
        padding: 8px 14px;
        font-size: 12px;
    }
    .btn-group {
        gap: 8px;
        flex-wrap: wrap;
    }
    .dtr-pagination__list a,
    .dtr-pagination__list .dtr-pagination__link {
        padding: 8px 10px;
        font-size: 13px;
    }
}

/* Mobile: 850px — filters (giữ breakpoint cũ) */
@media (max-width: 850px) {
    .dtr-filters {
        flex-direction: column;
        align-items: stretch;
        gap: 16px;
    }
    .filter-group {
        gap: 12px;
    }
    .filter-dropdowns {
        width: 100%;
    }
    .filter-dropdowns select {
        flex: 1;
        min-width: 0;
        width: 100%;
    }
    .specs-cell {
        display: none;
    }
    .dtr-top-nav {
        flex-wrap: wrap;
    }
    .dtr-menu a {
        margin-left: 0;
    }
}

/* Small mobile: 560px */
@media (max-width: 560px) {
    .dtr-site-header .dtr-menu {
        flex-wrap: wrap;
    }
    .dtr-hero-section {
        padding: 24px 12px 48px 12px;
    }
    .dtr-container {
        margin-left: 8px;
        margin-right: 8px;
        padding: 16px 12px;
    }
    .dtr-filters {
        padding-bottom: 16px;
        margin-bottom: 16px;
    }
    .dtr-product-detail__header {
        margin-bottom: 20px;
        padding-bottom: 16px;
    }
    .dtr-product-detail__title {
        font-size: 1.35rem;
    }
    .dtr-product-detail__main {
        gap: 24px;
        margin-bottom: 28px;
    }
    .dtr-product-detail__spec-card {
        padding: 18px;
    }
    .dtr-product-detail__spec-row {
        padding: 12px 0;
    }
    .dtr-product-detail__buy-btn {
        padding: 12px 20px;
        font-size: 14px;
    }
    .dtr-single-product .dtr-container {
        padding: 20px 12px;
    }
    .dtr-pagination {
        padding-top: 16px;
        padding-bottom: 16px;
        min-height: 60px;
        gap: 12px;
    }
}

/* Rất nhỏ: 380px — tránh vỡ chữ và nút */
@media (max-width: 380px) {
    .dtr-hero-content h1 {
        font-size: 20px;
    }
    .dtr-tagline {
        font-size: 14px;
    }
    .dtr-menu a,
    .dtr-login {
        font-size: 12px;
        padding: 6px 10px;
    }
    .dtr-pagination__list a,
    .dtr-pagination__list .dtr-pagination__link {
        padding: 6px 8px;
        font-size: 12px;
    }
}

/* Trang 404 — không tìm thấy */
.dtr-404 {
    max-width: 1200px;
    margin: 0 auto;
    padding: 60px 20px 80px;
    min-height: 50vh;
    display: flex;
    align-items: center;
    justify-content: center;
}
.dtr-404__inner {
    text-align: center;
}
.dtr-404__title {
    margin: 0 0 16px 0;
    font-size: clamp(4rem, 12vw, 8rem);
    font-weight: 800;
    color: #065f46;
    line-height: 1;
    letter-spacing: -0.02em;
}
.dtr-404__text {
    margin: 0 0 24px 0;
    font-size: 1.125rem;
    color: #475569;
    max-width: 360px;
    margin-left: auto;
    margin-right: auto;
}
.dtr-404__link {
    display: inline-block;
    padding: 12px 24px;
    background: linear-gradient(135deg, #065f46 0%, #047857 100%);
    color: #fff;
    text-decoration: none;
    font-weight: 600;
    border-radius: 8px;
    transition: opacity 0.2s, transform 0.15s;
}
.dtr-404__link:hover {
    opacity: 0.95;
    transform: translateY(-1px);
}

/* Trang tìm kiếm */
.dtr-search {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px 80px;
}
.dtr-search__inner {
    max-width: 560px;
    margin: 0 auto;
}
.dtr-search__title {
    margin: 0 0 24px 0;
    font-size: 1.5rem;
    color: #0f172a;
}
.dtr-search__query {
    color: #065f46;
    font-weight: 700;
}
.dtr-search-form {
    display: flex;
    gap: 8px;
    margin-bottom: 32px;
}
.dtr-search-form__input {
    flex: 1;
    padding: 10px 14px;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    font-size: 1rem;
}
.dtr-search-form__input:focus {
    outline: none;
    border-color: #065f46;
    box-shadow: 0 0 0 2px rgba(6, 95, 70, 0.2);
}
.dtr-search-form__submit {
    padding: 10px 20px;
    background: linear-gradient(135deg, #065f46 0%, #047857 100%);
    color: #fff;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
}
.dtr-search__list {
    list-style: none;
    margin: 0 0 24px 0;
    padding: 0;
}
.dtr-search__list li {
    margin-bottom: 8px;
    padding: 12px 0;
    border-bottom: 1px solid #e2e8f0;
}
.dtr-search__list a {
    color: #065f46;
    text-decoration: none;
    font-weight: 500;
}
.dtr-search__list a:hover {
    text-decoration: underline;
}
.dtr-search__no-results {
    margin: 0 0 20px 0;
    color: #475569;
}

/* Ẩn label chỉ dành cho screen reader */
.screen-reader-text {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Footer — cấu trúc theo ảnh, màu theo theme (xanh đậm / xanh lá theme) */
.dtr-footer {
    background: linear-gradient(135deg, #0f172a 0%, #065f46 100%);
    color: rgba(255, 255, 255, 0.9);
    margin-top: 60px;
}
.dtr-footer__inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 48px 20px 24px;
}
.dtr-footer__cols {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 32px 24px;
    margin-bottom: 32px;
}
.dtr-footer__col {
    min-width: 0;
}
.dtr-footer__heading {
    color: #10b981;
    font-size: 1rem;
    font-weight: 700;
    margin: 0 0 12px 0;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.dtr-footer__col .dtr-footer__heading + .dtr-footer__heading {
    margin-top: 20px;
}
.dtr-footer__col p,
.dtr-footer__col li {
    margin: 0 0 6px 0;
    font-size: 14px;
    line-height: 1.5;
}
.dtr-footer__col ul {
    list-style: none;
    margin: 0;
    padding: 0;
}
.dtr-footer__col li {
    padding-left: 0;
}
.dtr-footer__company {
    margin-bottom: 8px;
}
.dtr-footer__bottom {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.15);
}
.dtr-footer__copy {
    margin: 0;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.8);
    max-width: 640px;
}
.dtr-footer__social {
    display: flex;
    gap: 12px;
    align-items: center;
}
.dtr-footer__social a {
    color: white;
    text-decoration: none;
    width: 36px;
    height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.1);
    transition: background 0.2s;
}
.dtr-footer__social a:hover {
    background: rgba(255, 255, 255, 0.2);
}
.dtr-footer__icon {
    font-size: 16px;
    font-weight: 700;
}
.dtr-footer__bar {
    height: 6px;
    background: #065f46;
    width: 100%;
}

@media (max-width: 900px) {
    .dtr-footer__cols {
        grid-template-columns: repeat(2, 1fr);
    }
}
@media (max-width: 560px) {
    .dtr-footer__cols {
        grid-template-columns: 1fr;
    }
    .dtr-footer__bottom {
        flex-direction: column;
        align-items: flex-start;
    }
}
