/**
 * Hello Elementor Child Theme - Custom Styles
 * 
 * This file contains all custom styles for the child theme.
 * Add your custom CSS here to override parent theme styles.
 */

/* ==========================================================================
   GLOBAL STYLES
   ========================================================================== */

/* Custom color variables */
:root {
    --primary-color: #0065B3;
    --secondary-color: #005a87;
    --accent-color: #00a0d2;
    --text-color: #333333;
    --light-gray: #f5f5f5;
    --border-color: #e0e0e0;
    --success-color: #28a745;
    --warning-color: #ffc107;
    --error-color: #dc3545;
}

/* ==========================================================================
   TYPOGRAPHY
   ========================================================================== */

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    line-height: 1.3;
    margin-bottom: 1rem;
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.75rem; }
h4 { font-size: 1.5rem; }
h5 { font-size: 1.25rem; }
h6 { font-size: 1rem; }

/* ==========================================================================
   HEADER STYLES
   ========================================================================== */

.site-header {
    background: #ffffff;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.site-header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 0;
}

.site-branding {
    display: flex;
    align-items: center;
}

.site-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0;
}

.site-title a {
    color: var(--primary-color);
    text-decoration: none;
}

.site-title a:hover {
    color: var(--secondary-color);
}

/* ==========================================================================
   NAVIGATION STYLES
   ========================================================================== */

.main-navigation {
    display: flex;
    align-items: center;
}

.main-navigation ul {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
}

.main-navigation li {
    margin-left: 2rem;
}

.main-navigation a {
    color: var(--text-color);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.main-navigation a:hover {
    color: var(--primary-color);
}

.main-navigation .current-menu-item a {
    color: var(--primary-color);
}

/* Mobile menu toggle */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--text-color);
}

/* ==========================================================================
   CONTENT STYLES
   ========================================================================== */

.site-content {
    padding: 2rem 0;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

.entry-content {
    line-height: 1.8;
}

.entry-content p {
    margin-bottom: 1.5rem;
}

.entry-content img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

/* ==========================================================================
   BUTTON STYLES
   ========================================================================== */

.button, .btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    background: var(--primary-color);
    color: #ffffff;
    text-decoration: none;
    border-radius: 4px;
    font-weight: 500;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.button:hover, .btn:hover {
    background: var(--secondary-color);
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

.button-secondary {
    background: var(--light-gray);
    color: var(--text-color);
}

.button-secondary:hover {
    background: #e0e0e0;
    color: var(--text-color);
}

/* ==========================================================================
   FORM STYLES
   ========================================================================== */

input, textarea, select {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

input:focus, textarea:focus, select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px rgba(0, 123, 255, 0.25);
}

label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

/* ==========================================================================
   SIDEBAR STYLES
   ========================================================================== */

/* ==========================================================================
   FOOTER STYLES
   ========================================================================== */

/* ==========================================================================
   RESPONSIVE STYLES
   ========================================================================== */

@media (max-width: 768px) {
    .site-header .container {
        flex-direction: column;
        text-align: center;
    }
    
    .main-navigation {
        margin-top: 1rem;
    }
    
    .main-navigation ul {
        flex-direction: column;
        text-align: center;
    }
    
    .main-navigation li {
        margin: 0.5rem 0;
    }
    
    .menu-toggle {
        display: block;
        margin-top: 1rem;
    }
    
    h1 { font-size: 2rem; }
    h2 { font-size: 1.75rem; }
    h3 { font-size: 1.5rem; }
    
    .site-footer .container {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 0.5rem;
    }
    
    .site-content {
        padding: 1rem 0;
    }
    
    h1 { font-size: 1.75rem; }
    h2 { font-size: 1.5rem; }
    h3 { font-size: 1.25rem; }
    
    .button, .btn {
        padding: 0.5rem 1rem;
        font-size: 0.9rem;
    }
}

/* ==========================================================================
   UTILITY CLASSES
   ========================================================================== */

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

.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }

.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }

.p-1 { padding: 0.5rem; }
.p-2 { padding: 1rem; }
.p-3 { padding: 1.5rem; }
.p-4 { padding: 2rem; }

.d-none { display: none; }
.d-block { display: block; }
.d-flex { display: flex; }
.d-grid { display: grid; }

.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }
.align-center { align-items: center; }

/* ==========================================================================
   ANIMATIONS
   ========================================================================== */

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.fade-in {
    animation: fadeIn 0.6s ease-out;
}

@keyframes slideIn {
    from { transform: translateX(-100%); }
    to { transform: translateX(0); }
}

.slide-in {
    animation: slideIn 0.5s ease-out;
}

/* ==========================================================================
   PRINT STYLES
   ========================================================================== */

@media print {
    .site-header,
    .site-footer,
    .sidebar,
    .menu-toggle {
        display: none;
    }
    
    body {
        font-size: 12pt;
        line-height: 1.4;
    }
    
    h1, h2, h3, h4, h5, h6 {
        page-break-after: avoid;
    }
    
    img {
        max-width: 100% !important;
        page-break-inside: avoid;
    }
}

.tab-img .e-n-tabs-heading {
    position: relative;
}

.tab-img .e-n-tabs-heading:before {
    content: '';
    position: absolute;
    bottom: -6px;
    background: #A2090C;
    width: 76px;
    height: 3px;
    max-width: 100%;
    left: 0;
}

.tab-img .e-n-tabs:before {
    content: "Đa phương tiện";
    color: #0065B3;
    font-size: 18px;
    font-style: normal;
    font-weight: 700;
    line-height: 30.8px;
    text-transform: uppercase;
    position: absolute;
}

.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: #007cba;
    color: #fff;
    border: none;
    border-radius: 50%;
    font-size: 20px;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 1000;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}
.back-to-top.visible {
    opacity: 1;
    visibility: visible;
}
.back-to-top:hover {
    background: #005a87;
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0,0,0,0.3);
}

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

.header-menu a {
    color: #FFF;
    font-size: 16px;
    font-style: normal;
    font-weight: 500;
    line-height: 26px; /* 162.5% */
    text-transform: uppercase;
}

.header-menu .divider {
    color: white;
    margin: 0 23px;
    font-size: 16px;
}

.header-menu a:hover {
    color: #A2090C;
}

.style-line .elementor-heading-title:before {
    content: '';
    position: absolute;
    width: 76px;
    height: 2px;
    background: #A2090C;
    bottom: 0;
}

.style-line .elementor-heading-title {
    margin-bottom: 12px;
    position: relative;
}

.blog-loop-1, .vbpl-loop-1 {
    max-height: 558px;
    overflow-x: hidden;
    overflow-y: auto;
    position: relative;
}

.blog-loop-1 .elementor-element.e-grid.e-con-boxed.e-con.e-parent:hover .elementor-heading-title {
    color: #ffffff;
}

.blog-loop-1 .e-loop-item {
    border-bottom: 1px solid #EBEBEB;
    padding-bottom: 8px;
}

.blog-loop-1 .e-loop-item:last-child {
    border-bottom: 0;
}

.vbpl-loop-1 .e-loop-item:last-child .e-con-boxed.e-con.e-parent {
    border-bottom: 0;
}

.blog-loop-1 .elementor-element.e-grid.e-con-boxed.e-con.e-parent a {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.vbpl-loop-1 .e-loop-item .e-con-boxed.e-con.e-parent:hover rect {
    stroke: #a2080b;
}

.loop-slider .e-loop-item:hover .elementor-heading-title a {
    color: #ffffff;
}

.loop-slider .swiper-pagination-bullet {
    width: 25px !important;
    height: 10px !important;
    border-radius: 5px;
    border: 1px solid #FFF;
}

.loop-slider .swiper-pagination-bullet-active {
    background: #A2090C!important;
    width: 15px !important;
    height: 15px !important;
    border-radius: 100%;
    border: 1px solid #FFF;
}

.blog-loop-1,
.vbpl-loop-1 {
    /* Chrome, Edge, Safari */
    -ms-overflow-style: none;  /* IE và Edge */
    scrollbar-width: none;     /* Firefox */
}

.blog-loop-1::-webkit-scrollbar,
.vbpl-loop-1::-webkit-scrollbar {
    display: none;             /* Chrome, Safari, Opera */
}

.tb-home .elementor-loop-container.elementor-grid > *:nth-child(-n+3) .elementor-heading-title a {
    position: relative;
    display: inline;
}

.tb-home .elementor-loop-container.elementor-grid > *:nth-child(-n+3) .elementor-heading-title a:before {
    content: '';
    background: url(/wp-content/uploads/2025/08/icon-new.png) no-repeat center;
    width: 21.998px;
    height: 21.878px;
    background-size: cover;
    position: absolute;
    bottom: 0;
    right: -25px;
}

@keyframes nudge {
    0%   { transform: translateY(0); }
    30%  { transform: translateY(-3px); }
    60%  { transform: translateY(3px); }
    100% { transform: translateY(0); }
}

.vbpl-loop-1.tb-home .elementor-loop-container.animate-nudge,
.blog-loop-1.tnb .elementor-loop-container.animate-nudge {
    animation: nudge 0.6s ease;
}

.breadcrumbs {
    color: #DE3A37;
    font-size: 16px;
    font-style: normal;
    font-weight: 700;
    line-height: 22.4px;
    display: flex;
    align-items: center;
    gap: 10px;
}

/*.lists-banner .elementor-widget-icon-box {*/
/*    display: none;*/
/*}*/

/*.lists-banner .elementor-widget-icon-box.active {*/
/*    display: block;*/
/*}*/

/* Form Container */
.wpcf7 form {
    background: #fff;
    border-radius: 8px;
    padding: 20px;
    border: 1px solid #eee;
}

/* Label */
.wpcf7 form label {
    font-weight: 500;
    display: block;
    margin-bottom: 6px;
}

/* Required field asterisk */
.wpcf7 form label:has(input[required]),
.wpcf7 form label:has(textarea[required]) {
    color: #000;
}
.wpcf7 form label:has(input[required])::after,
.wpcf7 form label:has(textarea[required])::after {
    content: "*";
    color: red;
    margin-left: 3px;
}

/* Inputs & Textareas */
.wpcf7 form input[type="text"],
.wpcf7 form input[type="email"],
.wpcf7 form input[type="tel"],
.wpcf7 form textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    background: #f9f9f9;
    font-size: 14px;
    margin-top: 10px;
}

.wpcf7 form textarea {
    height: 120px;
    resize: vertical;
}

/* Row Layout */
.cf7-row {
    display: flex;
    gap: 15px;
}
.cf7-col {
    flex: 1;
}

/* File Upload */
.wpcf7 form input[type="file"] {
    border: 1px solid #ddd;
    padding: 10px;
    width: 100%;
    cursor: pointer;
    margin-top: 10px;
}

/* Submit Button */
.wpcf7 form input[type="submit"] {
    background: #e26d09;
    color: #fff;
    padding: 10px 20px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 500;
    transition: 0.2s;
}
.wpcf7 form input[type="submit"]:hover {
    background: #c85e07;
}

/* Popup ẩn */
.search-popup {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.6);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

/* Nội dung popup */
.search-popup-content {
    background: #fff;
    padding: 20px;
    border-radius: 8px;
    position: relative;
    max-width: 400px;
    width: 90%;
}

.search-popup-content form {
    display: flex;
    gap: 10px;
}

.search-popup-content input[type="text"] {
    flex: 1;
    padding: 8px;
    border: 1px solid #ccc;
}

.search-popup-content button {
    padding: 8px 14px;
    background: #004FA0;
    color: #fff;
    border: none;
    cursor: pointer;
}

.search-popup-content button:hover {
    background: #004FA0;
}

.search-popup-close {
    position: absolute;
    top: 8px;
    right: 12px;
    font-size: 20px;
    cursor: pointer;
    color: #333;
}

.search-popup-content span.error-message {
    display: none;
}

.search-popup-content form {
    padding: 30px 0;
}

@media (max-width: 992px) {
    .header-menu a {
        font-size: 12px;
    }

    .header-menu .divider {
        margin: 0 5px;
    }
}

@media (max-width: 768px) {
    .back-to-top {
        bottom: 20px;
        right: 20px;
        width: 40px;
        height: 40px;
        font-size: 16px;
    }

    .gov-top-bar-widget .gov-top-info {

    }

    .tab-img .e-n-tabs:before {
        font-size: 16px;
    }

    .tab-img .e-n-tabs:before, .tab-img .e-n-tabs-heading:before, .tab-img .e-n-tabs-heading:after {
        /*content: none;*/
    }
}

.elementor-element-1bf9af5 {
	overflow: hidden !important
}
.elementor-element-1bf9af5 .e-con-inner {
	display: inline-flex;
    align-items: center;
    white-space: nowrap;
    animation: scrollText 25s linear infinite;
    color: var(--color-text-accent-active);
    font-weight: 500;
    font-size: 14px;
    width: 100%;
}
 @keyframes scrollText {
	 0% { transform: translateX(90%); }
	 100% { transform: translateX(-90%); }
 }
.elementor-element-dd5cb0f {
	display: none
}