/* 
Theme Name: Hello Ruby
Theme URI: https://github.com/elementor/hello-theme-child/
Description: Hello Elementor Child is a child theme of Hello Elementor, created by Elementor team
Author: Elementor Team
Author URI: https://elementor.com/
Template: hello-elementor
Version: 2.0.0
Text Domain: hello-elementor-child
License: GNU General Public License v3 or later.
License URI: https://www.gnu.org/licenses/gpl-3.0.html
Tags: flexible-header, custom-colors, custom-menu, custom-logo, editor-style, featured-images, rtl-language-support, threaded-comments, translation-ready
*/

/* Add your custom styles here */

.page-content a {
    text-decoration: none;
}
.custom-header {
    padding: 40px 20px 20px;
    height: 110px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.site-logo {
    flex-grow: 1;
}
.site-logo img {
    display: block;
    max-width: 160px;
}
.header-container {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 30px;
    align-items: center;
}
.custom-header .btn-tu-van {
    font-family: Poppins;
    font-weight: 500;
    font-size: 16px;
    line-height: 100%;
    color: #000080;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    border: solid 2px #000080;
    border-radius: 8px;
    padding: 4px 10px;
}
.custom-header .btn-tu-van img {
    max-width: 30px;
}
.custom-header .btn-tu-van:hover {
    color: #000080;
}

/* --- 4. MOBILE MENU & OVERLAY --- */
.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
}

.menu-toggle .bar {
    width: 25px;
    height: 3px;
    background: #000080;
    border-radius: 3px;
}

.menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 26, 0.7); /* Màu xanh đen mờ */
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease-in-out;
    z-index: 1001;
    backdrop-filter: blur(2px);
}

.menu-overlay.is-active {
    opacity: 1;
    visibility: visible;
}

.menu-close {
    background: none;
    border: none;
    font-size: 40px;
    color: #000080;
    position: absolute;
    top: 15px;
    left: 0;
    cursor: pointer;
    line-height: 1;
}

.custom-header button:focus, 
.custom-header button:hover {
    color: #000080;
    background: none;
}
.custom-header .site-navigation ul.menu li.menu-item-has-children:after {
    content: none;
}
.dropdown-icon svg {
    width: 18px;
    display: block;
}
.custom-header  .site-navigation ul.menu  > li {
    padding: 10px 0;
}
.custom-header  .site-navigation ul.menu li a {
    color: #000080;
    font-size: 20px;
    line-height: 1.2;
    font-weight: 500;
    position: relative;
}
.custom-header  .site-navigation ul.menu > li > a:after {
    content: '';
    height: 1px;
    background: #000080;
    position: absolute;
    left: 0;
    bottom: 0;
    width: 0%;
    transition: all .3s ease;
}
.custom-header  .site-navigation ul.menu > li:hover > a:after {
    width: 100%;
}
.custom-header  .site-navigation ul.menu ul li a {
    font-size: 18px;
    padding: 15px 20px;
    width: 100%;
    transition: all .3s ease;
}
.custom-header  .site-navigation ul.menu ul li a:hover {
    padding-left: 25px;
    background: none;
}
.custom-header .site-navigation ul.menu li.menu-item-has-children a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}
.custom-header .site-navigation ul.menu li.menu-item-has-children > a {
    padding-right: 35px;
}
.dropdown-icon {
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    top: 15px;
    right: 0;
}
.custom-header .site-navigation ul.menu li.menu-item-has-children {
    padding-inline-end: 0;
}
.custom-header .site-navigation ul.menu li ul {
    min-width: 300px;
    box-shadow: 0 15px 35px rgba(0, 0, 115, 0.1), 0 5px 15px rgba(0, 0, 0, 0.05);
}

/* Container chính của form */
.subscribe-form {
    display: flex;
    align-items: center;
    background-color: rgba(255, 255, 255, 0.7); /* Màu nền xám nhạt có độ trong suốt */
    border-radius: 50px; /* Bo tròn hoàn toàn */
    padding: 8px 10px; /* Khoảng cách giữa viền và nội dung bên trong */
    max-width: 600px; /* Bạn có thể điều chỉnh độ rộng tùy ý */
    margin: 0 auto;
    backdrop-filter: blur(5px); /* Hiệu ứng mờ nền nếu cần giống thiết kế */
}

/* Loại bỏ các khoảng trống mặc định của thẻ <p> do CF7 tự sinh ra */
.subscribe-form p {
    margin: 0;
    display: flex;
    width: 100%;
}

/* Style cho cột chứa ô Input */
.col-field {
    flex: 1;
    display: flex;
}

.col-field .wpcf7-form-control-wrap {
    width: 100%;
}

/* Style cho ô Input Email */
.subscribe-form input[type="email"] {
    width: 100%;
    background: transparent;
    border: none;
    padding: 10px 20px;
    font-size: 18px;
    color: #000080; /* Màu chữ xanh đậm */
    outline: none;
    box-shadow: none;
}

.subscribe-form input[type="email"]::placeholder {
    color: #000080;
    opacity: 0.8;
}

/* Style cho cột chứa nút bấm */
.col-btn {
    display: flex;
}

/* Style cho nút Subscribe */
.subscribe-form input[type="submit"] {
    background-color: #000080; /* Màu xanh đậm của nút */
    color: #ffffff;
    border: solid 2px #000080;
    padding: 12px 35px;
    border-radius: 40px; /* Bo tròn nút */
    font-size: 18px;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.3s ease;
}

.subscribe-form input[type="submit"]:hover {
    background-color: #ffffff;
    color: #000080;
}

/* Ẩn spinner mặc định của CF7 để không làm lệch layout */
.wpcf7-spinner {
    position: absolute;
}

.subscribe-form .wpcf7-not-valid-tip {
    color: #dc3232;
    font-size: 12px;
    font-weight: normal;
    display: block;
    position: absolute;
    bottom: -8px;
    left: 20px;
}

.subscribe-form .wpcf7-spinner {
    position: absolute;
    right: -5px;
    top: 24px;
}

/* Style thông báo lỗi/thành công bên dưới form */
.subscribe-form + .wpcf7-response-output {
    margin: 10px 0 0 0;
    border: none;
    color: #fff;
    text-align: center;
} 

.custom-footer-container { 


}
.footer-top {
    display: flex;
    justify-content: space-between;
    margin: 0 auto 20px;
    border-bottom: 1px solid #E6E6F2;
    padding-bottom: 40px;
    color: #B2BBC6;
    align-items: center;
}
.footer-menu h4 {
    font-family: Poppins;
    font-weight: 600;
    font-size: 25px;
    line-height: 1.2;
    margin-bottom: 20px;
    color: #B2BBC6;
}
.footer-menu ul {
    list-style: none;
    margin: 0;
    padding: 0;
}
.footer-menu ul a {
    color: #B2BBC6;
}
.footer-menu ul a:hover {
    text-decoration: underline;
}
.footer-bottom {
    text-align: center;
    color: #E6E6F2;
}
.footer-logo {
    text-align: center;
    display: flex;
    justify-content: center;
    margin-bottom: 15px;
}
.footer-logo img {
    display: block;
    max-width: 154px;
}
.footer-copy {
    margin-bottom: 15px;
}
.footer-socials {
    display: flex;
    align-items: center;
    gap: 15px;
    justify-content: center;
}
.footer-socials img {
    display: block;
    max-width: 24px;
}
.footer-socials a {
    transition: all .3s ease;
}
.footer-socials a:hover {
    transform: translateY(-4px);
}
@media screen and (min-width: 768px) {
    .footer-top .footer-logo {
        display: none;
    }
    .custom-footer-container .footer-info {
        max-width: 376px;
    }
}
@media screen and (min-width: 992px) {
    .menu-close { 
        display: none;
    }
    .header-cta-wrapper.mobile {
        display: none;
    }
}
@media screen and (max-width: 991.98px) {
    .dropdown-icon {
        top: 12px;
        right: 15px;
    }
    .header-cta-wrapper.desktop {
        display: none;
    }
    .custom-header .site-navigation ul.menu li a {
        padding: 15px;
        font-size: 18px;
        width: 100%;
    }
    .custom-header .site-navigation ul.menu li.menu-item-has-children a {
        justify-content: space-between;
    }
    .custom-header .site-navigation ul.menu li.menu-item-has-children,
    .custom-header .site-navigation ul.menu > li {
        padding: 0;
    }
    .custom-header .site-navigation ul.menu li.menu-item-has-children:after {
        position: absolute;
        
    }
    .site-navigation {
        position: fixed;
        top: 0;
        right: -100%; /* Ẩn menu bên phải */
        width: 320px;
        height: 100vh;
        background: #ffffff;
        z-index: 1002;
        padding: 70px 0 30px;
        transition: all .6s ease;
        display: block !important;
        box-shadow: -5px 0 25px rgba(0,0,0,0.1);
    }

    .site-navigation.is-active {
        right: 0;
    }

    .menu-toggle {
        display: flex;
        order: 2;
    }

    .header-cta-wrapper {
        margin: 30px 15px 0;
    }

    .site-navigation ul {
        flex-direction: column;
        gap: 0;
    }

    .site-navigation ul li a {
        padding: 18px 30px;
        border-bottom: 1px solid #f0f0f0;
        display: block;
        font-size: 17px;
    }

    .site-navigation ul li a:hover {
        background: #f8f9ff;
        padding-left: 35px;
    }
    .site-navigation ul.menu li {
        display: block;
    }
    .custom-header .site-navigation ul.menu > li > a:after {
        content: none;
    }
    .custom-header .site-navigation ul.menu li ul {
        display: none;
        position: static;
        box-shadow: none;
    }
    .custom-header .site-navigation ul.menu ul li a {
        font-size: 16px;
        padding: 15px 25px;
    }
}
@media screen and (max-width: 767.98px) {

    .subscribe-form input[type="submit"] {
        padding: 12px 20px;
        font-size: 14px;
    }
    .subscribe-form input[type="email"] {
        padding: 10px 15px !important;
        font-size: 16px;
    }
    .footer-bottom .footer-logo {
        display: none;
    }
    .footer-top {
        display: grid;
        grid-template-columns: 1fr;
        gap: 20px;
    }
    .footer-copy {
        font-size: 14px;
    }
    .footer-menu h4 {
        font-size: 20px;
        margin-bottom: 12px;
    }
}