.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

h3.gs-title {
    margin-bottom: 0px !important;
}

.gs-fileFormat {
    color: #b400ff !important;
}

.gs-fileFormatType {
    color: #b400ff !important;
}

.gsc-option-menu-container.gsc-inline-block {
    width: auto !important;
    min-width: fit-content !important;
    max-width: 100% !important;
}

.gsc-option-menu-container .gsc-selected-option {
    white-space: nowrap !important;
    overflow: visible !important;
}

.gsc-option-menu-container .gsc-option {
    white-space: nowrap !important;
    overflow: visible !important;
}

/* Breadcrumb navigation */
.breadcrumb-nav {
    margin-bottom: 16px;
}

.breadcrumb-nav ol {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    gap: 4px;
    font-size: 13px;
    color: #6c757d;
    overflow-x: auto;
    white-space: nowrap;
    scrollbar-width: none;
    /* Hide scrollbar for Firefox */
    -ms-overflow-style: none;
    /* Hide scrollbar for IE and Edge */
}

.breadcrumb-nav ol::-webkit-scrollbar {
    display: none;
    /* Hide scrollbar for Chrome, Safari and Opera */
}

.breadcrumb-nav ol li {
    display: flex;
    align-items: center;
}

.breadcrumb-nav ol li:not(:last-child)::after {
    content: "›";
    margin-left: 6px;
    color: #adb5bd;
}

.breadcrumb-nav ol li a {
    color: #0066cc;
    text-decoration: none;
}

.breadcrumb-nav ol li a:hover {
    text-decoration: underline;
}

.breadcrumb-nav ol li span[aria-current="page"] {
    color: #1a1a1a;
    font-weight: 500;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 250px;
    display: inline-block;
    vertical-align: bottom;
}

/* H1 editorial title */
.search-h1 {
    color: #004080;
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 16px;
    padding-bottom: 14px;
    border-bottom: 3px solid #0066cc;
    position: relative;
    text-shadow: 1px 1px 1px rgba(0, 0, 0, 0.1);
    letter-spacing: 0.3px;
    text-align: left;
    line-height: 1.3;
}

/* Editorial intro paragraphs */
.content-intro {
    margin-bottom: 20px;
    line-height: 1.7;
    color: #2c3e50;
    font-size: 15px;
}

.content-intro p {
    margin: 0 0 10px 0;
}

.content-intro p:last-child {
    margin-bottom: 0;
}

/* Document Guide (thay thế search-tips-box) */
.content-guide {
    background: #f8f9fa;
    padding: 16px 20px;
    border-radius: 8px;
    margin-bottom: 20px;
    border-left: 4px solid #004080;
}

.content-guide h2 {
    color: #004080;
    margin-top: 0;
    margin-bottom: 12px;
    font-size: 18px;
    font-weight: 600;
}

.content-guide ol {
    list-style: none;
    padding: 0;
    margin: 0;
    font-size: 14px;
    counter-reset: guide-step;
}

.content-guide li {
    margin-bottom: 8px;
    color: #1a1a1a;
    line-height: 1.5;
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.content-guide li:last-child {
    margin-bottom: 0;
}

.content-guide li i {
    color: #004080;
    margin-top: 4px;
    flex-shrink: 0;
}

/* Available Formats */
.content-formats {
    margin-bottom: 20px;
}

.content-formats h3 {
    color: #004080;
    font-size: 16px;
    font-weight: 600;
    margin: 0 0 8px 0;
}

.content-formats p {
    font-size: 14px;
    color: #495057;
    margin: 0 0 12px 0;
    line-height: 1.6;
}

.format-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.format-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.5px;
    color: var(--text, #333);
    /* Glassmorphism Effect */
    background: rgba(255, 255, 255, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.6);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

/* Share buttons */
.share-buttons {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
}

.share-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    color: white;
    text-decoration: none;
    transition: all 0.2s;
}

.share-btn:hover {
    transform: translateY(-2px);
}

.share-btn-facebook {
    background: #1877f2;
}

.share-btn-facebook:hover {
    box-shadow: 0 4px 12px rgba(24, 119, 242, 0.3);
}

.share-btn-twitter {
    background: #1da1f2;
}

.share-btn-twitter:hover {
    box-shadow: 0 4px 12px rgba(29, 161, 242, 0.3);
}

.share-btn-linkedin {
    background: #0077b5;
}

.share-btn-linkedin:hover {
    box-shadow: 0 4px 12px rgba(0, 119, 181, 0.3);
}

.share-btn-email {
    background: #ea4335;
}

.share-btn-email:hover {
    box-shadow: 0 4px 12px rgba(234, 67, 53, 0.3);
}

.share-btn-copy {
    background: #34a853;
}

.share-btn-copy:hover {
    box-shadow: 0 4px 12px rgba(52, 168, 83, 0.3);
}

/* FAQ Section */
.faq-section {
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid #e9ecef;
}

.faq-section h2 {
    color: #004080;
    font-size: 20px;
    font-weight: 600;
    margin: 0 0 16px 0;
}

.faq-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.faq-item {
    border: 1px solid #e9ecef;
    border-radius: 8px;
    overflow: hidden;
    transition: border-color 0.2s;
}

.faq-item[open] {
    border-color: #0066cc;
}

.faq-item summary {
    padding: 12px 16px;
    font-weight: 600;
    font-size: 15px;
    color: #1a1a1a;
    cursor: pointer;
    background: #f8f9fa;
    list-style: none;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: background-color 0.2s;
}

.faq-item summary:hover {
    background: #e9ecef;
}

.faq-item summary::before {
    content: "▸";
    font-size: 14px;
    color: #0066cc;
    transition: transform 0.2s;
    flex-shrink: 0;
}

.faq-item[open] summary::before {
    transform: rotate(90deg);
}

.faq-item summary::-webkit-details-marker {
    display: none;
}

.faq-item p {
    padding: 12px 16px;
    margin: 0;
    font-size: 14px;
    line-height: 1.7;
    color: #495057;
    background: #fff;
}

/* Noscript content */
.noscript-content {
    padding: 20px;
    color: #495057;
    line-height: 1.7;
    font-size: 15px;
}

.noscript-content p {
    margin: 0 0 12px 0;
}

.noscript-content a {
    color: #0066cc;
    text-decoration: underline;
}

/* Related Resources */
.related-resources h2 {
    color: #004080;
    font-size: 18px;
    font-weight: 600;
    margin: 0 0 12px 0;
}

.related-documents-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 12px;
}

.related-document-link {
    text-decoration: none;
    display: inline-block;
    padding: 6px 12px;
    background: rgba(0, 64, 128, 0.1);
    border: 1px solid rgba(0, 64, 128, 0.3);
    border-radius: 6px;
    color: #004080;
    font-size: 14px;
    transition: all 0.2s;
}

.related-document-link:hover {
    background: rgba(0, 64, 128, 0.15);
    border-color: rgba(0, 64, 128, 0.4);
}

/* Responsive */
@media (max-width: 768px) {
    .search-h1 {
        font-size: 22px !important;
        padding-bottom: 12px !important;
    }

    .breadcrumb-nav ol {
        flex-wrap: wrap;
        white-space: normal;
    }

    .breadcrumb-nav ol li span[aria-current="page"] {
        white-space: normal;
        word-break: break-word;
        max-width: 100%;
    }

    .content-guide {
        padding: 12px 16px;
    }

    .faq-item summary {
        padding: 10px 14px;
        font-size: 14px;
    }

    .faq-item p {
        padding: 10px 14px;
    }

    .format-badges {
        gap: 6px;
    }
}

@media (max-width: 480px) {
    .search-h1 {
        font-size: 18px !important;
    }

    .content-intro {
        font-size: 14px;
    }
}