/*
Theme Name: Astra Child
Theme URI: https://wpastra.com/
Description: Astra Child Theme
Author: Brainstorm Force
Author URI: https://wpastra.com/
Template: astra
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: astra-child
*/

/* CSS Reset */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    font-size: 100%;
    -webkit-text-size-adjust: 100%;
    -ms-text-size-adjust: 100%;
}

body {
    font-family: "Helvetica", Sans-serif;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

img,
picture,
video,
canvas,
svg {
    display: block;
    max-width: 100%;
    height: auto;
}

input,
button,
textarea,
select {
    font: inherit;
}

p,
h1,
h2,
h3,
h4,
h5,
h6 {
    overflow-wrap: break-word;
}

ul,
ol {
    list-style: none;
}

a {
    text-decoration: none;
    color: inherit;
}

table {
    border-collapse: collapse;
    border-spacing: 0;
}

/* Áp dụng font-family cho toàn bộ trang */
* {
    font-family: "Helvetica", Sans-serif;
}

.menu-item .menu-link {
    font-size: 20px;
    font-weight: 600;
    line-height: 57px!important;
    color: #fff!important;
    padding: 0 10px!important;
}

.menu-item:not(:first-of-type):hover .menu-link {
    color: #cf3c10!important;
}

.ast-builder-grid-row {
    margin-left: auto;
}

#masthead .ast-container {
    width: 70%;
}

.widget, .widget p {
    margin: 0!important;
}

.ast-builder-html-element p{
    display: flex;
    align-items: center;
    justify-content: center;
}

.ast-builder-html-element a {
    margin-right: 12px;
    text-decoration: underline;
}


/* menu */

.footer-container {
background-color: #1b3223;
}

.footer-content {
    display: flex;
    flex-direction: column;
    
    height: 630px;
}

.footer-menu {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    gap: 120px;
    padding-top: 89px;
    margin-bottom: 60px;
}

.footer-menu-list {
    display: flex;
    justify-content: flex-start;
    flex-direction: column;
    padding-top: 20px;
    border-top: 6px solid #fff;
    width: 169px;
}

.footer-menu-item {
    font-size: 14px;
    font-weight: 600;
    color: #fff;
}

.footer-menu-item-heading {
    margin-bottom: 18px;
}

.footer-logo {
    width:180px;
    transform: translateY(-20%);
}

.footer-logo img {
    height: 100%;
    width: 100%;
}

.footer-middle {
    display: flex;
    gap: 120px;
    justify-content: center;
    background-color: #fafafa;
    padding: 20px 0;
}

.footer-middle-content {
    display: flex;
    gap: 12px;
    align-items: center;
    width: 546px;   
}

.footer-middle-content a {
    color: #605e5e;
    font-size: 13px;
    text-decoration: underline;
}

/* Tablet (<= 1024px) */
@media (max-width: 1024px) {
    .footer-content {
        height: auto;
        max-width: 900px;      /* bề rộng chung cho cả phần top và phần link */
        margin: 0 auto;
    }

    .footer-menu {
        gap: 60px;
        padding-top: 60px;
        margin-bottom: 40px;
        flex-wrap: wrap;
    }

    .footer-middle {
        max-width: 900px;      /* bằng với .footer-content */
        padding: 16px 0;
        justify-content: center;
    }

    .footer-middle-content {
        justify-content: center;  /* giữ link về bên trái giống phần top */
    }
}

/* Mobile (<= 768px) */
@media (max-width: 768px) {
    .footer-content {
        height: auto;
        max-width: 100%;
        margin: 0 auto;
    }

    .footer-menu {
        flex-direction: column;
        align-items: center;
        gap: 32px;
        padding-top: 32px;
        margin-bottom: 24px;
    }

    .footer-middle {
        width: 100%;
        padding: 16px;
        justify-content: center !important;
    }

    .footer-middle-content {
        width: 100%;
        max-width: 260px;      /* gần bằng 1 cột phía trên */
        flex-direction: row;
        justify-content: center;
        align-items: center ;
        gap: 8px;
    }

    .footer-menu-list {
        display: flex;
        justify-content: center;
        align-items: center;
        flex-direction: column;
        padding-top: 20px;
        border-top: 6px solid #fff;
        width: 169px;
        margin: 0;
    }

}