
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&display=swap');
html {
    font-size: 16px;
}

/* Custom styles for Invoice70tt */

.hero-bg {
    background-image: url('/wp-content/themes/bb-theme-child/custom/tonghop-nd70/img/hinh-bg-top.jpg');
}

/* Collapsible sections */
.collapsible {
    cursor: pointer;
    transition: all 0.3s ease;
}

.collapsible:hover {
    background-color: rgba(0, 0, 0, 0.05);
}

.collapsible-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.collapsible-content.open {
    max-height: 2000px; /* Adjust based on content */
}

.chevron-icon {
    transition: transform 0.3s ease;
}

.collapsible.open .chevron-icon {
    transform: rotate(180deg);
}

/* Category tabs */
.category-tab.active {
    background-color: #2563eb !important;
    color: white !important;
    border-color: #2563eb !important;
}

.category-tab:not(.active) {
    background-color: white !important;
    color: #2563eb !important;
    border-color: #2563eb !important;
}

/* Sub-category tabs */
.sub-category-tab.active {
    background-color: #2563eb !important;
    color: white !important;
    border-color: #2563eb !important;
}

.sub-category-tab:not(.active) {
    background-color: white !important;
    color: #171717 !important;
    border-color: #e5e5e5 !important;
}

/* Search results highlight */
.search-highlight {
    background-color: #fef3c7;
    padding: 2px 4px;
    border-radius: 3px;
}

/* Content sections */
.content-section {
    display: block;
}

.content-section.hidden {
    display: none;
}

/* Card styles */
.card {
    background: white;
    border-radius: 8px;
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
    overflow: hidden;
}

.card-content {
    padding: 1.5rem;
}

/* QA Item styles */
.qa-item {
    background-color: #f0fdf4;
    border: 1px solid #bbf7d0;
    border-radius: 12px;
    overflow: hidden;
}

.qa-item .card-content {
    background-color: #f0fdf4;
    padding: 2rem;
}

/* Decree section styles */
.decree-section {
    background: white;
    border-radius: 16px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    border: 1px solid #f5f5f5;
    overflow: hidden;
}

.decree-section-header {
    background-color: #fafafa;
    padding: 1.5rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: background-color 0.2s ease;
}

.decree-section-header:hover {
    background-color: #f5f5f5;
}

.decree-section-header h2 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #171717;
    margin: 0;
}

.decree-section-icon {
    width: 2rem;
    height: 2rem;
    margin-right: 1rem;
}

.decree-subsection {
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    margin-bottom: 1rem;
    overflow: hidden;
}

.decree-subsection-header {
    background-color: #f9fafb;
    padding: 1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: background-color 0.2s ease;
}

.decree-subsection-header:hover {
    background-color: #f3f4f6;
}

.decree-subsection h3 {
    font-size: 1.125rem;
    font-weight: 600;
    color: #171717;
    margin: 0;
}

.citation {
    border-left: 4px solid;
    padding: 1rem;
    margin-top: 1rem;
    font-size: 0.875rem;
    font-style: italic;
}

/* Color-specific styles for different sections */
.section-users .decree-section-icon { color: #2563eb; }
.section-users .citation { border-left-color: #2563eb; background-color: #dbeafe; color: #1e40af; }

.section-principles .decree-section-icon { color: #7c3aed; }
.section-principles .citation { border-left-color: #7c3aed; background-color: #ede9fe; color: #6b21a8; }
.section-principles .decree-subsection { border-color: #c4b5fd; }
.section-principles .decree-subsection-header { background-color: #f3f0ff; }
.section-principles .decree-subsection-header:hover { background-color: #e9d5ff; }

.section-prohibited .decree-section-icon { color: #dc2626; }
.section-prohibited .citation { border-left-color: #dc2626; background-color: #fee2e2; color: #991b1b; }

.section-invoice-types .decree-section-icon { color: #4f46e5; }
.section-invoice-types .citation { border-left-color: #4f46e5; background-color: #e0e7ff; color: #3730a3; }
.section-invoice-types .decree-subsection { border-color: #a5b4fc; }
.section-invoice-types .decree-subsection-header { background-color: #e0e7ff; }
.section-invoice-types .decree-subsection-header:hover { background-color: #c7d2fe; }

.section-timing .decree-section-icon { color: #059669; }
.section-timing .citation { border-left-color: #059669; background-color: #d1fae5; color: #047857; }
.section-timing .decree-subsection { border-color: #6ee7b7; }
.section-timing .decree-subsection-header { background-color: #d1fae5; }
.section-timing .decree-subsection-header:hover { background-color: #a7f3d0; }

.section-content .decree-section-icon { color: #d97706; }
.section-content .citation { border-left-color: #d97706; background-color: #fef3c7; color: #92400e; }
.section-content .decree-subsection { border-color: #fcd34d; }
.section-content .decree-subsection-header { background-color: #fef3c7; }
.section-content .decree-subsection-header:hover { background-color: #fde68a; }

.section-pos .decree-section-icon { color: #10b981; }
.section-pos .citation { border-left-color: #10b981; background-color: #d1fae5; color: #047857; }
.section-pos .decree-subsection { border-color: #6ee7b7; }
.section-pos .decree-subsection-header { background-color: #d1fae5; }
.section-pos .decree-subsection-header:hover { background-color: #a7f3d0; }

.section-adjustment .decree-section-icon { color: #ec4899; }
.section-adjustment .citation { border-left-color: #ec4899; background-color: #fce7f3; color: #be185d; }
.section-adjustment .decree-subsection { border-color: #f9a8d4; }
.section-adjustment .decree-subsection-header { background-color: #fce7f3; }
.section-adjustment .decree-subsection-header:hover { background-color: #fbcfe8; }

/* Responsive adjustments */
@media (max-width: 768px) {
    .decree-section-header {
        padding: 1rem;
    }
    
    .decree-section-header h2 {
        font-size: 1.25rem;
    }
    
    .decree-section-icon {
        width: 1.5rem;
        height: 1.5rem;
    }
}
#searchInput, #searchInput:focus {
    background: none !important;
    border: none !important;
    font-size: 18px !important;
    padding: 12px 16px 12px 48px !important;
}
#loadMoreBtn, #loadMoreBtn:focus {
    background: none !important;
    border: none !important;
}
input[type=button] {
    background-image: linear-gradient(to bottom, #16a34a, #166534) !important;
    border: none !important;
}
input[type=button]:active, input[type=button]:focus  {
    border: none !important;
}