/* ==========================================================================
   PORTAL GENERAL STYLE & VARIABLES (CLEAN, FLAT & STICKY DESIGN)
   ========================================================================== */
:root {
    --tthc-font: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    --tthc-text: #0f172a;        /* Chữ chính gần đen */
    --tthc-muted: #475569;       /* Chữ phụ xám */
    --tthc-light: #94a3b8;       /* Chữ mờ hẳn */
    --tthc-border: #e2e8f0;      /* Đường viền xám nhạt */
    --tthc-soft: #f8fafc;        /* Nền xám xanh nhẹ */
    
    /* Removed heavy shadows for cleaner look & faster page load */
    --tthc-shadow: none;
    --tthc-shadow-lg: none;
    
    /* Variables overridden dynamically by PHP settings */
    --tthc-primary: #1e3a8a;
    --tthc-accent: #d97706;
    --tthc-page-bg: #f8fafc;
    --tthc-content-width: 1180px;
    
    /* Administrative standard colors */
    --gov-blue: #1e3a8a;
    --gov-yellow: #eab308;
    --gov-red: #da251d;
    --gov-green: #15803d;
}

.tthc-portal-app, .tthc-portal-app * {
    box-sizing: border-box;
}

.tthc-portal-app {
    min-height: 100vh;
    color: var(--tthc-text);
    background: var(--tthc-page-bg, #f8fafc);
    font-family: var(--tthc-font);
    font-size: 15px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

.tthc-portal-app button, 
.tthc-portal-app input, 
.tthc-portal-app select, 
.tthc-portal-app textarea {
    font-family: var(--tthc-font);
    font-size: inherit;
    color: inherit;
    outline: none;
}

.tthc-portal-app button {
    cursor: pointer;
    border: none;
    background: transparent;
}

.tthc-portal-app a {
    color: inherit;
    text-decoration: none;
    transition: all 0.2s ease;
}

.tthc-container {
    width: min(calc(100% - 40px), var(--tthc-content-width, 1180px));
    margin-inline: auto;
}

.screen-reader-text {
    position: absolute !important;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.is-hidden {
    display: none !important;
}

/* ==========================================================================
   HEADER / TOPBAR (GOVERNMENT STYLE - STICKY ENABLED)
   ========================================================================== */
.tthc-topbar {
    background: linear-gradient(135deg, var(--tthc-header-start, #1e40af) 0%, var(--tthc-header-end, #1e3a8a) 100%);
    color: #ffffff;
    padding: 0.75rem 0;
    border-bottom: 3px solid var(--gov-yellow);
    box-shadow: none;
    position: sticky;
    top: 0;
    z-index: 9999;
    overflow: hidden;
    transition: padding 0.2s ease, background-color 0.2s ease;
}

/* WP Admin Bar adjustments for Sticky topbar */
body.admin-bar .tthc-topbar {
    top: 32px;
}
@media (max-width: 782px) {
    body.admin-bar .tthc-topbar {
        top: 46px;
    }
}

.tthc-topbar::before {
    content: '';
    position: absolute;
    inset: 0;
    opacity: 0.08;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='100' height='100' viewBox='0 0 100 100'%3E%3Cpath d='M0,50 Q25,30 50,50 T100,50' fill='none' stroke='%23ffffff' stroke-width='2'/%3E%3C/svg%3E");
    background-size: 200px 200px;
    pointer-events: none;
}

.tthc-topbar-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    position: relative;
    z-index: 10;
    transition: all 0.2s ease;
}

.tthc-brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    min-width: 0;
}

.tthc-brand-logo {
    width: 44px;
    height: 44px;
    flex-shrink: 0;
    object-fit: contain;
    filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.15));
}

.tthc-brand-copy {
    display: flex;
    flex-direction: column;
}

.tthc-brand-title {
    font-weight: 800;
    font-size: 1.15rem;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    background: linear-gradient(to right, #ffffff, #fef08a);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.tthc-brand-subtitle {
    font-size: 0.7rem;
    font-weight: 500;
    color: #cbd5e1;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.tthc-brand-subtitle.is-empty {
    display: none;
}

/* Header Quick Search styles */
.tthc-header-search {
    flex: 1;
    max-width: 380px;
    margin: 0 1.5rem;
    opacity: 0;
    pointer-events: none;
    transform: translateY(-8px);
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.tthc-header-search-wrap {
    position: relative;
    width: 100%;
}

.tthc-header-search input {
    width: 100%;
    height: 36px;
    padding: 0 40px 0 12px;
    border-radius: 6px;
    border: 1px solid rgba(255, 255, 255, 0.25);
    background-color: rgba(255, 255, 255, 0.12);
    color: #ffffff;
    font-size: 0.85rem;
    transition: all 0.15s ease;
}

.tthc-header-search input::placeholder {
    color: #cbd5e1;
}

.tthc-header-search input:focus {
    background-color: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.6);
}

.tthc-header-search button {
    position: absolute;
    right: 4px;
    top: 50%;
    transform: translateY(-50%);
    color: #cbd5e1;
    padding: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    transition: all 0.15s ease;
}

.tthc-header-search button:hover {
    color: #ffffff;
    background-color: rgba(255, 255, 255, 0.1);
}

.tthc-header-search button svg {
    width: 15px;
    height: 15px;
}

/* Sticky topbar states */
.tthc-topbar.tthc-is-sticky {
    padding: 0.4rem 0;
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.08);
}

.tthc-topbar.tthc-is-sticky .tthc-header-search {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}

.tthc-topbar-right {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.tthc-live-clock {
    font-size: 0.8rem;
    color: #cbd5e1;
    font-weight: 500;
    white-space: nowrap;
    border-left: 1px solid rgba(255, 255, 255, 0.2);
    padding-left: 1rem;
}

/* Mobile Filter Trigger */
.tthc-mobile-filter-trigger {
    display: none;
    align-items: center;
    gap: 6px;
    background-color: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #ffffff;
    padding: 6px 12px;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 600;
    transition: all 0.2s ease;
}

.tthc-mobile-filter-trigger:hover {
    background-color: rgba(255, 255, 255, 0.2);
}

.tthc-mobile-filter-trigger svg {
    width: 16px;
    height: 16px;
}

/* ==========================================================================
   MAIN LAYOUT & 2-COLUMN STRUCTURE
   ========================================================================== */
.tthc-main {
    padding: 2.5rem 0 4rem;
}

.tthc-main-layout {
    display: grid;
    grid-template-columns: 280px 1fr;
    grid-template-rows: auto 1fr;
    gap: 0.75rem 2rem;
    align-items: start;
}

/* Tabs nằm ngoài khung bộ lọc, chiếm cột sidebar, row 1 */
.tthc-tabs-standalone {
    grid-column: 1;
    grid-row: 1;
}

/* Sidebar bộ lọc nằm cột 1, row 2 */
.tthc-sidebar-filters {
    grid-column: 1;
    grid-row: 2;
}

/* Content area chiếm cột 2, trải dài cả 2 row */
.tthc-content-area {
    grid-column: 2;
    grid-row: 1 / -1;
}

/* ==========================================================================
   LEFT COLUMN: SIDEBAR FILTERS
   ========================================================================== */
.tthc-sidebar-filters {
    background-color: #ffffff;
    border: 1px solid var(--tthc-border);
    border-radius: 12px; /* Standard bo góc */
    padding: 1.5rem;
    box-shadow: none; /* Flat design */
}

.tthc-sidebar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--tthc-border);
    padding-bottom: 0.75rem;
    margin-bottom: 1.25rem;
}

.tthc-sidebar-header h2 {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--gov-blue);
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0;
}

.tthc-sidebar-header h2 svg {
    color: var(--tthc-primary);
}

.tthc-sidebar-close {
    display: none;
    font-size: 1.5rem;
    line-height: 1;
    color: var(--tthc-muted);
    cursor: pointer;
}

.tthc-filter-group {
    margin-bottom: 1.25rem;
}

.tthc-filter-group h3 {
    font-size: 0.825rem;
    font-weight: 700;
    color: var(--tthc-text);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0.5rem;
}

.tthc-select-styled {
    width: 100%;
    min-height: 42px;
    padding: 8px 12px;
    border: 1px solid var(--tthc-border);
    border-radius: 8px;
    background-color: var(--tthc-soft);
    font-size: 0.875rem;
    color: var(--tthc-text);
    cursor: pointer;
    transition: all 0.15s ease;
}

.tthc-select-styled:focus {
    border-color: var(--tthc-primary);
    background-color: #ffffff;
}

.tthc-btn-reset, .tthc-filter-reset {
    width: 100%;
    min-height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--tthc-muted);
    border: 1px solid var(--tthc-border);
    background-color: #ffffff;
    border-radius: 8px;
    margin-top: 0.75rem;
    transition: all 0.15s ease;
}

.tthc-btn-reset:hover, .tthc-filter-reset:hover {
    background-color: var(--tthc-soft);
    color: var(--tthc-text);
    border-color: var(--tthc-light);
}

.tthc-btn-reset svg, .tthc-filter-reset svg {
    width: 14px;
    height: 14px;
}

/* ==========================================================================
   RIGHT COLUMN: CONTENT AREA
   ========================================================================== */
.tthc-content-area {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

/* Tab labels for classification */
.tthc-tabs {
    display: flex;
    border-bottom: 2px solid var(--tthc-border);
    gap: 8px;
}

.tthc-tab {
    background: none;
    border: none;
    padding: 0.75rem 1.25rem;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--tthc-muted);
    cursor: pointer;
    border-bottom: 3px solid transparent;
    margin-bottom: -2px;
    transition: all 0.15s ease;
}

.tthc-tab:hover {
    color: var(--tthc-primary);
}

.tthc-tab.is-active {
    color: var(--gov-blue);
    border-bottom-color: var(--tthc-primary);
}

/* Standalone segmented control tabs (above sidebar) */
.tthc-tabs-standalone {
    display: flex;
    background-color: var(--tthc-soft);
    border: 1px solid var(--tthc-border);
    border-radius: 8px;
    padding: 3px;
    gap: 2px;
}

.tthc-tabs-standalone .tthc-tab {
    flex: 1;
    text-align: center;
    padding: 7px 12px;
    font-size: 0.85rem;
    font-weight: 600;
    border-radius: 6px;
    border: none;
    background: none;
    color: var(--tthc-muted);
    margin: 0;
    border-bottom: none !important;
    transition: all 0.15s ease;
}

.tthc-tabs-standalone .tthc-tab:hover {
    color: var(--tthc-primary);
    background-color: transparent;
}

.tthc-tabs-standalone .tthc-tab.is-active {
    background-color: #ffffff;
    color: var(--tthc-primary);
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.06);
}

/* Search Bar Card */
.tthc-search-card {
    background-color: #ffffff;
    border: 1px solid var(--tthc-border);
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: none; /* Flat design */
}

.tthc-search-form {
    display: flex;
    gap: 12px;
}

.tthc-search-input-wrap {
    position: relative;
    flex: 1;
}

.tthc-search-input-wrap input {
    width: 100%;
    height: 48px;
    padding: 0 16px 0 46px;
    border: 1px solid var(--tthc-border);
    border-radius: 8px;
    background-color: var(--tthc-soft);
    color: var(--tthc-text);
    transition: all 0.15s ease;
}

.tthc-search-input-wrap input:focus {
    border-color: var(--tthc-primary);
    background-color: #ffffff;
}

.tthc-search-icon {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--tthc-light);
    width: 20px;
    height: 20px;
}

.tthc-search-button {
    height: 48px;
    padding: 0 1.5rem;
    background-color: var(--tthc-primary); /* Flat background */
    color: #ffffff;
    font-weight: 600;
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    box-shadow: none; /* Remove search button shadow */
    transition: all 0.15s ease;
}

.tthc-search-button:hover {
    background-color: #1e40af;
}

.tthc-search-button svg {
    width: 16px;
    height: 16px;
}

.tthc-search-hint {
    margin-top: 0.5rem;
    font-size: 0.775rem;
    color: var(--tthc-muted);
    padding-left: 2px;
}

/* ==========================================================================
   RESULTS SECTION
   ========================================================================== */
.tthc-results-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
}

.tthc-results-summary {
    font-size: 0.9rem;
    color: var(--tthc-muted);
}

.tthc-results-summary strong {
    font-size: 1.05rem;
    color: var(--gov-blue);
    font-weight: 700;
}

.tthc-mobile-filter-btn-wrap {
    display: none;
}

.tthc-btn-mobile-filter {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background-color: #ffffff;
    border: 1px solid var(--tthc-border);
    padding: 6px 12px;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--tthc-muted);
}

.tthc-search-notice {
    margin-bottom: 1rem;
    background-color: #eff6ff;
    border: 1px solid #bfdbfe;
    color: #1e40af;
    border-radius: 8px;
    padding: 10px 14px;
    font-size: 0.85rem;
}

/* ==========================================================================
   RESULT CARDS (CLEAN & FLAT DESIGN)
   ========================================================================== */
.tthc-results-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.tthc-result-card {
    background-color: #ffffff;
    border: 1px solid var(--tthc-border);
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: none; /* Flat design */
    transition: all 0.15s ease;
}

/* Simple border-color change on hover, no transformations or heavy shadows */
.tthc-result-card:hover {
    border-color: #93c5fd;
    background-color: #fcfdfe; /* Extra subtle background change */
}

.tthc-result-row {
    display: flex;
    align-items: flex-start;
    gap: 1.25rem;
}

.tthc-number-badge {
    width: 44px;
    height: 44px;
    flex: 0 0 44px;
    display: grid;
    place-items: center;
    border-radius: 8px;
    background-color: #eff6ff;
    color: var(--tthc-primary);
    font-size: 0.95rem;
    font-weight: 700;
    border: 1px solid #dbeafe;
}

.tthc-result-main {
    flex: 1;
    min-width: 0;
}

.tthc-category {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--tthc-light);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0.25rem;
}

.tthc-result-title {
    margin: 0;
    font-size: 1.05rem;
    font-weight: 700;
    line-height: 1.4;
    color: var(--gov-blue);
}

.tthc-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 1rem;
}

.tthc-action-pill {
    min-width: 110px;
    height: 32px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 14px;
    border-radius: 6px;
    font-size: 0.8rem;
    font-weight: 600;
    background-color: var(--tthc-soft);
    color: var(--tthc-muted);
    border: 1px solid var(--tthc-border);
    transition: all 0.15s ease;
}

a.tthc-action-pill:hover {
    background-color: #eff6ff;
    color: var(--tthc-primary);
    border-color: #bfdbfe;
}

.tthc-action-pill.is-primary {
    background-color: var(--tthc-primary);
    color: #ffffff;
    border-color: var(--tthc-primary);
}

.tthc-action-pill.is-primary:hover {
    background-color: #1e40af;
    border-color: #1e40af;
}

.tthc-action-pill.is-disabled {
    cursor: not-allowed;
    opacity: 0.45;
}

/* Metadata box (Flat design) */
.tthc-meta-box {
    margin: 1.25rem 0 0;
    padding: 0.75rem 1rem;
    background-color: var(--tthc-soft);
    border: 1px solid var(--tthc-border);
    border-radius: 8px;
    font-size: 0.8rem;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 0.4rem 1.5rem;
}

.tthc-meta-box > div {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px dashed rgba(0, 0, 0, 0.05);
    padding-bottom: 4px;
}

.tthc-meta-box dt {
    color: var(--tthc-muted);
    font-weight: 500;
}

.tthc-meta-box dd {
    margin: 0;
    color: var(--tthc-text);
    font-weight: 600;
    text-align: right;
}

.tthc-meta-box .tthc-fee {
    color: var(--gov-green);
}

/* ==========================================================================
   PAGINATION
   ========================================================================== */
.tthc-pagination {
    display: flex;
    justify-content: center;
    gap: 6px;
    margin-top: 2rem;
}

.tthc-pagination button, .tthc-pagination span {
    min-width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    border: 1px solid var(--tthc-border);
    background-color: #ffffff;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--tthc-muted);
    transition: all 0.15s ease;
}

.tthc-pagination button:hover:not(:disabled) {
    border-color: var(--tthc-primary);
    color: var(--tthc-primary);
    background-color: var(--tthc-soft);
}

.tthc-pagination button.is-active {
    background-color: var(--tthc-primary);
    color: #ffffff;
    border-color: var(--tthc-primary);
}

.tthc-pagination button:disabled {
    opacity: 0.45;
    cursor: not-allowed;
}

/* ==========================================================================
   FOOTER (TRỐNG ĐỒNG ĐÔNG SƠN STYLE - FLAT OVERLAY)
   ========================================================================== */
.tthc-footer {
    background: linear-gradient(135deg, #1e3a8a 0%, #0f172a 100%);
    color: #cbd5e1;
    padding: 3rem 0;
    border-top: 4px solid var(--gov-red);
    position: relative;
    overflow: hidden;
    text-align: center;
}

.tthc-footer-dongson {
    position: absolute;
    right: -100px;
    bottom: -100px;
    width: 400px;
    height: 400px;
    opacity: 0.03; /* Softened pattern further */
    z-index: 1;
    pointer-events: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 400 400'%3E%3Ccircle cx='200' cy='200' r='190' fill='none' stroke='%23ffffff' stroke-width='2'/%3E%3Ccircle cx='200' cy='200' r='170' fill='none' stroke='%23ffffff' stroke-width='1'/%3E%3Ccircle cx='200' cy='200' r='150' fill='none' stroke='%23ffffff' stroke-width='1.5' stroke-dasharray='5,5'/%3E%3Ccircle cx='200' cy='200' r='120' fill='none' stroke='%23ffffff' stroke-width='1'/%3E%3Ccircle cx='200' cy='200' r='95' fill='none' stroke='%23ffffff' stroke-width='2'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-size: contain;
}

.tthc-footer-inner {
    position: relative;
    z-index: 10;
    font-size: 0.85rem;
    font-weight: 500;
}

/* ==========================================================================
   LOADING & EMPTY STATES
   ========================================================================== */
.tthc-empty-state {
    min-height: 250px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    padding: 2rem;
    border: 1px dashed var(--tthc-border);
    border-radius: 12px;
    color: var(--tthc-muted);
}

.tthc-empty-state .huge-icon {
    width: 48px;
    height: 48px;
    color: var(--tthc-light);
}

.tthc-skeleton {
    min-height: 180px;
    border: 1px solid var(--tthc-border);
    border-radius: 12px;
    background-color: #ffffff;
    margin-bottom: 1rem;
    overflow: hidden;
    position: relative;
}

.tthc-skeleton::after {
    content: "";
    position: absolute;
    inset: 0;
    transform: translateX(-100%);
    background: linear-gradient(90deg, transparent, rgba(225, 231, 238, 0.3), transparent);
    animation: tthc-shimmer 1.2s infinite;
}

.tthc-skeleton-lines {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.tthc-skeleton-lines i {
    display: block;
    height: 14px;
    background-color: var(--tthc-soft);
    border-radius: 6px;
}

.tthc-skeleton-lines i:nth-child(1) { width: 40%; }
.tthc-skeleton-lines i:nth-child(2) { width: 75%; height: 20px; }
.tthc-skeleton-lines i:nth-child(3) { width: 90%; height: 60px; margin-top: 10px; }

@keyframes tthc-shimmer {
    to { transform: translateX(100%); }
}

/* ==========================================================================
   RESPONSIVE DESIGN (MEDIA QUERIES - CLEAN DRAWERS)
   ========================================================================== */

/* Tablet & Mobile Layout Breakpoint */
@media (max-width: 960px) {
    .tthc-main-layout {
        grid-template-columns: 1fr;
        grid-template-rows: auto 1fr;
        gap: 1rem;
    }
    
    /* Tabs standalone: full width trên mobile, nằm trên content */
    .tthc-tabs-standalone {
        grid-column: 1;
        grid-row: 1;
    }

    .tthc-content-area {
        grid-column: 1;
        grid-row: 2;
    }
    
    /* Hide the sidebar default list layout on tablet/mobile */
    .tthc-sidebar-filters {
        position: fixed;
        top: 0;
        left: 0;
        width: 300px;
        height: 100vh;
        z-index: 99999;
        border-radius: 0;
        border: none;
        border-right: 1px solid var(--tthc-border);
        /* Subtle shadow overlay to distinguish drawer */
        box-shadow: 4px 0 16px rgba(15, 23, 42, 0.06); 
        overflow-y: auto;
        transform: translateX(-100%);
        transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    }
    
    /* When mobile drawer is toggled open by JS */
    .tthc-sidebar-filters.tthc-mobile-open {
        transform: translateX(0);
    }
    
    .tthc-sidebar-close {
        display: block;
    }
    
    /* Enable Trigger Button inside Results meta */
    .tthc-mobile-filter-btn-wrap {
        display: block;
    }
}

/* Phone Layout */
@media (max-width: 600px) {
    .tthc-container {
        width: min(calc(100% - 24px), var(--tthc-content-width, 1180px)) !important;
    }

    .tthc-main {
        padding: 1rem 0 2.5rem;
    }
    
    .tthc-topbar {
        padding: 0.5rem 0;
    }

    .tthc-topbar-inner {
        padding-inline: 0;
        gap: 10px;
    }
    
    .tthc-live-clock {
        display: none; /* Hide clock on small screens to save space */
    }
    
    .tthc-brand {
        flex: 1;
        min-width: 0;
        gap: 0.5rem;
    }
    
    .tthc-brand-logo {
        width: 36px;
        height: 36px;
    }
    
    .tthc-brand-title {
        font-size: 0.825rem;
        line-height: 1.3;
        font-weight: 700;
    }
    
    .tthc-brand-subtitle {
        font-size: 0.55rem;
        line-height: 1.2;
    }

    .tthc-mobile-filter-trigger {
        display: flex;
        flex-shrink: 0;
        white-space: nowrap;
        padding: 6px 10px;
        font-size: 0.775rem;
        gap: 4px;
        border-radius: 6px;
    }

    /* Ẩn thanh tìm kiếm header ở trạng thái tĩnh trên mobile để brand trải rộng */
    .tthc-header-search {
        display: none;
        margin: 0;
        max-width: none;
    }

    /* Khi cuộn (sticky): Ẩn brand, hiện ô tìm kiếm header cực kỳ tinh tế */
    .tthc-topbar.tthc-is-sticky .tthc-brand {
        display: none;
    }

    .tthc-topbar.tthc-is-sticky .tthc-header-search {
        display: block;
        opacity: 1;
        pointer-events: auto;
        transform: translateY(0);
        flex: 1;
        margin-right: 8px;
    }
    
    /* Segmented tabs above main column */
    .tthc-tabs-standalone {
        margin: 0.25rem 0 0.5rem;
        padding: 2px;
        border-radius: 6px;
    }

    .tthc-tabs-standalone .tthc-tab {
        padding: 6px 10px;
        font-size: 0.8rem;
        border-radius: 5px;
    }
    
    .tthc-search-card {
        padding: 1rem;
        border-radius: 10px;
    }
    
    .tthc-search-form {
        flex-direction: column;
        gap: 8px;
    }

    .tthc-search-input-wrap input {
        height: 42px;
        font-size: 0.85rem;
        padding-left: 38px;
    }

    .tthc-search-icon {
        left: 12px;
        width: 16px;
        height: 16px;
    }
    
    .tthc-search-button {
        width: 100% !important;
        height: 42px !important;
        justify-content: center;
        background-color: var(--tthc-primary) !important;
        color: #ffffff !important;
        font-size: 0.85rem;
        border-radius: 6px;
    }

    .tthc-search-hint {
        font-size: 0.7rem;
        margin-top: 6px;
        line-height: 1.35;
    }
    
    .tthc-result-card {
        padding: 0.85rem;
        border-radius: 10px;
    }
    
    .tthc-result-row {
        gap: 0.5rem;
    }
    
    .tthc-number-badge {
        width: 28px;
        height: 28px;
        flex: 0 0 28px;
        font-size: 0.75rem;
        border-radius: 6px;
        border: 1px solid #dbeafe;
    }
    
    .tthc-category {
        font-size: 0.675rem;
        margin-bottom: 0.15rem;
    }

    .tthc-result-title {
        font-size: 0.9rem;
        line-height: 1.35;
    }
    
    .tthc-actions {
        gap: 8px;
        margin-top: 0.75rem;
    }
    
    .tthc-action-pill {
        flex: 1 0 calc(50% - 4px);
        height: 34px;
        font-size: 0.75rem;
        border-radius: 6px;
    }
    
    .tthc-meta-box {
        grid-template-columns: 1fr 1fr;
        gap: 6px 12px;
        padding: 8px 10px;
        margin-top: 0.85rem;
        font-size: 0.725rem;
    }

    .tthc-meta-box > div {
        border-bottom: none;
        padding-bottom: 0;
        display: flex;
        justify-content: space-between;
        align-items: center;
    }

    .tthc-meta-box dt {
        font-weight: 500;
    }

    .tthc-meta-box dd {
        font-weight: 600;
    }
}
