/*overwrite bootstrap*/
.search-extra *, ::after, ::before {
    box-sizing: content-box;
}

.invisible {
    visibility: inherit !important;
}


.textbox-search div {
    padding: 10px;
}

.textbox-search input {
    width: 350px;
}

@media (max-width:600px) {
    .textbox-search input {
        width: 250px;
    }
}

/* Blog posts section */
/*.blog-post-item {
    padding: 15px;
    border: 1px solid #ddd;
    border-radius: 8px;
    transition: all 0.3s ease;
    height: 100%;
    display: flex;
    align-items: center;
}

.blog-post-item:hover {
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    transform: translateY(-2px);
}

.blog-post-item a {
    color: #333;
    text-decoration: none;
    font-size: 14px;
    line-height: 1.4;
}

.blog-post-item a:hover {
    color: #007bff;
}

@media (max-width: 768px) {
    .blog-post-item {
        margin-bottom: 15px;
    }
}*/

/* Two-column layout for Latest Blog Posts and FAQ */
.container {
    max-width: 1200px;
    margin: 0 auto;
}

.row {
    display: flex;
    flex-wrap: wrap;
    margin-right: -15px;
    margin-left: -15px;
}

.col-md-6 {
    position: relative;
    width: 100%;
    padding-right: 15px;
    padding-left: 15px;
}

@media (min-width: 768px) {
    .col-md-6 {
        flex: 0 0 50%;
        max-width: 50%;
    }
}

.faq-question {
    cursor: pointer;
    padding: 10px 15px;
    background-color: #f8f9fa;
    border-radius: 5px;
    border: 1px solid #dee2e6;
    transition: all 0.3s ease;
}

    .faq-question h5 {
        font-size: 1em;
        margin-bottom: 0;
    }
    
    .faq-question:hover {
        color: #007bff;
    }

.faq-answer {
    padding: 15px;
    background-color: #fff;
    border: 1px solid #dee2e6;
    border-top: none;
    border-radius: 0 0 5px 5px;
}

#sub-section ul li a {
    font-size: 14px !important;
    color: #333333 !important;
}

#sub-section h3 {
    font-size: 23px !important;
}

@media (min-width: 800px) {
    .home-mode #qInput {
        height: 30px;
        font-size: 18px;
    }
}


#sub-section {
    font-size: 15px;
}

#form-search-icon-submit {
    padding-top: 4px;
}

@media (min-width: 800px) {
    /*.blog-post-item a {
        justify-content: flex-start !important;
    }

    .blog-post-title {
        flex: 0 0 460px; 
        padding-right: 10px;
    }

    .blog-post-item i {
        flex-shrink: 0;
        margin-top: 2px;
    }*/

}


#sub-section .container {
    border: solid 1px #efefef;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    padding-top: 15px;
    padding-bottom: 10px;
}

#sub-section ol {
    padding-left: 20px;
    padding-right: 10px;
}
    #sub-section ol li {
        padding-left: 5px;
        /*border: solid thin red;*/
    }


    #sub-section ol a:hover {
        color: #007bff !important;
    }

/* [Codex]: Banner thông tin kỳ công báo mới nhất tại trang chủ (đầu #sub-section) */
.home-congbao-container {
    margin-bottom: 24px;
}

.home-congbao-banner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px 20px;
    background: linear-gradient(135deg, rgba(239, 246, 255, 0.95) 0%, rgba(248, 250, 252, 0.98) 100%);
    border: 1px solid #bfdbfe;
    border-left: 4px solid #2563eb;
    border-radius: 10px;
    padding: 12px 20px;
    box-shadow: 0 1px 4px rgba(37, 99, 235, 0.08);
    text-decoration: none !important;
    color: inherit;
    transition: all 0.2s ease;
}

.home-congbao-banner:hover {
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.15);
    border-color: #93c5fd;
    transform: translateY(-1px);
    color: inherit;
}

.home-congbao-banner:focus-visible {
    outline: 2px solid #2563eb;
    outline-offset: 2px;
}

.home-congbao-info {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    flex-wrap: nowrap;
}

.home-congbao-pulse-dot {
    width: 9px;
    height: 9px;
    background-color: #10b981;
    border-radius: 50%;
    display: inline-block;
    flex-shrink: 0;
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
    animation: homeCongbaoPulse 2s infinite cubic-bezier(0.66, 0, 0, 1);
}

@keyframes homeCongbaoPulse {
    0% {
        box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
    }
    70% {
        box-shadow: 0 0 0 6px rgba(16, 185, 129, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(16, 185, 129, 0);
    }
}

@media (prefers-reduced-motion: reduce) {
    .home-congbao-pulse-dot {
        animation: none;
    }
}

.home-congbao-text {
    font-size: 15px;
    color: #1e293b;
    line-height: 1.5;
}

.home-congbao-text strong {
    color: #0f172a;
    font-weight: 600;
}

.home-congbao-action {
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

.home-congbao-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #2563eb;
    color: #ffffff !important;
    padding: 7px 16px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none !important;
    box-shadow: 0 1px 2px rgba(37, 99, 235, 0.2);
    transition: all 0.2s ease;
    white-space: nowrap;
}

.home-congbao-banner:hover .home-congbao-btn,
.home-congbao-btn:hover {
    background: #1d4ed8;
    color: #ffffff !important;
    box-shadow: 0 2px 6px rgba(37, 99, 235, 0.3);
}

.home-congbao-btn i {
    font-size: 13px;
    transition: transform 0.2s ease;
}

.home-congbao-banner:hover .home-congbao-btn i {
    transform: translateX(3px);
}

@media (max-width: 768px) {
    .home-congbao-banner {
        flex-direction: column;
        align-items: flex-start;
        padding: 12px 14px;
        gap: 10px;
    }

    .home-congbao-text {
        font-size: 14px;
    }

    .home-congbao-action {
        width: 100%;
    }

    .home-congbao-btn {
        width: 100%;
        justify-content: center;
        padding: 8px 14px;
    }
}
