/*
Theme Name: hd Theme
Author: Huy Nguyen <nguyenhuypcis@gmail.com>
Author URI: https://github.com/huydevtry
Description: Giao diện tùy chỉnh cho website Breath Arch
Version: 1.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: my-custom-theme
*/

/*COMMON*/
body {
    font-family: 'Montserrat', sans-serif !important;
    letter-spacing: 0.1rem;
}
.overlay-wrapper {
    position: relative;
    overflow: hidden;
}
.overlay-child {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}
.center-image {
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}
.bg-color-main {
    background-color: #12133D !important;
}
.btn-load-more {
    font-size: 0.8rem;
    border-radius: 30px;
    padding: 0.4rem 1rem;
    color: white;
    border: 0;
    background: #12133D;
    transition: opacity 0.3s ease;
}
.content-wrap {
    min-height: 70vh;
    padding: 3% 20% !important;
}
.aligncenter,
.wp-block-image .aligncenter {
    display: block;
    margin-left: auto;
    margin-right: auto;
}

/*HEADER*/
body.admin-bar .navbar.fixed-top {
    margin-top: 32px;
}

.header-logo {
    max-width: 100px;
    position: fixed;
    top: 50px;
    right: 0;
    left: 50px;
    z-index: 9999;
}
.header-menu {
    max-width: 100px;
    position: fixed;
    top: 50px;
    right: 50px;
    z-index: 9999;
}
@media (max-width: 576px) {
    .header-logo {
        position: absolute;
        left: 10px;
    }
    .header-menu {
        position: absolute;
        right: 10px;
    }

}


.nav-container {
    color: white;
}
.site-logo {
    width: 150px; /* hoặc phần trăm nếu dùng responsive layout */
}
.custom-logo {
    width: 100%;
    height: auto;
}
.site-name {
    color: white !important;
}
.nav-link {
    color: white !important;
}
.navbar-brand {
    color: white !important;
}
.nav-link.active::before,
.nav-link.active::after {
    content: "";
    display: inline-block;
    width: 1.5rem;
    height: 0.1rem;
    background-color: white;
    vertical-align: middle;
}
/*HOME*/

.carousel-item img {
    object-fit: cover;
    height: 100%;
}

.carousel-caption {
    background-color: rgb(0 0 0 / 30%);
    bottom: 40vh !important;
}

.btn-custom:hover {
    opacity: 0.8;
}

.btn-custom {
    font-size: 1rem;
    font-weight: 400;
    letter-spacing: 2px;
    border-radius: 30px;
    padding: 0.8rem 2rem;
    color: white;
    border: 0;
    background: #12133D;
    transition: opacity 0.3s ease;
}

.nav-item {
    font-size: 1.5rem;
    align-self: center;
    text-transform: uppercase;
}

/* Hiệu ứng làm chữ nổi bật */
.navbar-nav .nav-link {
    transition: color 0.3s ease, transform 0.3s ease;
}

.navbar-nav .nav-link:hover {
    transform: translateY(-4px); /* hover có nhún nhẹ lên cho mượt */
}
.navbar-toggler-icon.inverted {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='white' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e") !important;
}
.menu-toggler {
    font-size: 0.8rem;
    color: white;
    background-color: transparent;
    border: none;

}
.menu-wrap {
    padding: 11px;
    color: white;
    top: 0;
    left: 0;
    position: absolute;
    background-color: rgb(18, 19, 61);
    /*background-color: rgba(18, 19, 61, 0.05);*/
    height: 100vh;
    width: 100%;
    overflow: hidden;

    transform: translateY(-40px);
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s ease;
    z-index: 999;
}
.menu-wrap.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.menu-toggler {
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
    transition: all 0.2s ease;

}
.menu-toggler.active {
    visibility: hidden;
    transform: translateX(40px);
}
.navbar-brand {
    display: block;
    transition: all 0.1s linear;

}
.navbar-brand.hidden {
    visibility: hidden;
    transform: translateX(-40px);

}
#closeMenuBtn {
    margin-top: 0.6vw;
    margin-right: 0.6vw;
}

/*Invert logo color*/
#smart-logo.inverted {
    filter: invert(1);
    transition: filter 0.5s ease;
}
#menu-toggler.inverted {
    color:black;
}

/*CAROUSEL*/
.logo-carousel {
    animation: fadeInScale 1s ease-out forwards;
}
.logo-carousel img {
    width: 30vh
}
@keyframes fadeInScale {
    0% {
        opacity: 0;
        top: 30%;
    }
    100% {
        opacity: 1;
        top: 50%;
    }
}
.post-wrap-carousel {
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}
.post-wrap-carousel .wrap-content {
    color: white;
    background-color: rgba(0, 0, 0, 0.4);
    display: inline-block;
    padding: 0.125em 0.5em 0.125em 0.625em;
}
.post-wrap-carousel h1 {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    animation: scaleOut 0.8s ease forwards;
    animation-delay: 0.2s;
}
.post-wrap-carousel a {
    cursor: pointer;
    text-decoration: none;
    margin-bottom: 1rem;
    opacity: 0;
}
.post-wrap-carousel button {
    min-width: 8rem;
    padding: 1rem 1.5rem;
    border-radius: 40px;
    font-size: 10px;
}
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
@keyframes scaleOut {
    from {
        opacity: 0;
        transform: scale(1.5);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}
.post-wrap-carousel a,
.post-wrap-carousel button {
    opacity: 0;
    animation: fadeInUp 0.8s ease forwards;

}
.post-wrap-carousel a {
    animation-delay: 0.2s;
}
.post-wrap-carousel button {
    animation-delay: 0.5s;
}
@media (max-width: 992px) {
    .post-wrap-carousel h1 {
        font-size: 2.2rem;
        text-align: center;
    }

    .post-wrap-carousel .wrap-content {
        font-size: 0.9rem;
        text-align: center;
        padding: 0.25em 0.75em;
    }

    .post-wrap-carousel button {
        font-size: 0.75rem;
        padding: 0.75rem 1.25rem;
        min-width: 7rem;
    }

    .logo-carousel img {
        width: 20vh;
    }
}
@media (max-width: 768px) {
    .post-wrap-carousel {
        width: 90%;
    }
    .post-wrap-carousel h1 {
        font-size: 1.8rem;
    }

    .post-wrap-carousel .wrap-content {
        font-size: 0.85rem;
        padding: 0.2em 0.5em;
    }

    .post-wrap-carousel button {
        font-size: 0.7rem;
        padding: 0.5rem 1rem;
    }

    .logo-carousel img {
        width: 18vh;
    }
}
@media (max-width: 576px) {
    .carousel-indicators [data-bs-target] {
        width: 15px !important;
    }
    .btn-custom {
        font-size: 0.6rem;
        padding: 0.5rem 1rem;
    }
    .post-wrap-carousel {
        width: 80%;
    }
    .post-wrap-carousel .wrap-content  {
        font-size: 1rem;
    }
    .logo-carousel img {
        width: 15vh;
    }
}


/*SHOWCASE*/
.project-showcase {
    font-size: 1.5rem;
    font-weight: 400;
}
.sc-item {
   text-decoration: none;
}
.sc-img-wrap {
    width: 100%;
    height: 0;
    padding-top: 66.66%;
    position: relative;
    overflow: hidden;
}
.sc-img-wrap img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 0;
    transition: opacity 0.3s ease;
}
.sc-item:hover .sc-img-wrap img {
    opacity: 0.7;
}
/*BLOG POST*/
#carousel-blog .post-wrap-carousel {
    top: 0;
    left: 50%;
    transform: translateX(-50%);
}

/*PROJECT POST*/
.prj-info {
    margin-bottom: 5%;
    font-size: 0.8rem;
    letter-spacing: 0;
}

.blog-post {
    height: 50vh;
}
.btn-read {
    text-align: center;
    width: 150px;
    font-size: 0.8rem;
    letter-spacing: 1px;
    border-radius: 30px;
    padding: 0.6rem 1.2rem;
    color: #12133D;
    border: 0;
    background: white;
    transition: opacity 0.3s ease;
}
.btn-read:hover {
    opacity: 0.7 !important;
}
@media (max-width: 576px) {
    .btn-read {
        font-size: 0.6rem;
        width: 100px;
        padding: 0.5rem 1rem;

    }
    .blog-title {
        font-size: 0.8rem;
    }
}
.blog-title {
    letter-spacing: 2px;
}
.blog-post-title {
    color: white;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 1.4em;
}
@media (max-width: 992px) {
    .blog-post-title {
        font-size: 1em;
    }
}
@media (max-width: 576px) {
    .blog-post-title {
        font-size: 0.8em;

    }
}

/*FOOTER*/
.footer {
    color: white;
    min-height: 25vh;
    background-color: #12133D;
    padding: 50px 0;

}
.footer .container {
    font-size: 0.75rem;
    /*padding: 50px 300px;*/
}
.footer ul {
    gap: 5px;
    padding: 0;
    display: flex;
    justify-content: flex-start;
    list-style: none;
}
.footer ul a {
    text-decoration: none;
    color: inherit;
}

/*CATEGORY PAGE*/
.category-head {
    height: 20vh;
}
.category-head h1 {
    font-size: 4rem;
    font-weight: 600;
    opacity: 0;
    animation: scaleOut 1s ease forwards;
    animation-delay: 0.1s;

}
.category-head p {
    opacity: 0;
    animation: fadeInUp 0.8s ease forwards;
    animation-delay: 0.5s;
}
.category-content-wrapper {
    min-height: 75vh;
}

.category-filter {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.5rem;
    transition: background 0.3s, color 0.3s, box-shadow 0.3s;
    -webkit-tap-highlight-color: transparent;

}
.category-button {
    font-size: 0.6rem;
    text-transform: uppercase;
    padding: 0.4rem 0.8rem;
    background: #eee;
    border: none;
    cursor: pointer;
    border-radius: 4px;
    color: #000;
}
.category-button:focus,
.category-button:active {
    outline: none;
    color: #12133D;
}.category-button:hover {
     box-shadow: 0 2px 4px rgba(0, 0, 0, 0.15);
 }
.category-button.active:hover {
    box-shadow: none;
}
.category-button.active {
    background: #12133D;
    color: white;
}
.animated-category {
    animation: fadeInUp 0.3s linear forwards;}


/*GALLERY*/
.mgl-img-container {
    transition: opacity 0.3s ease;
}

.mgl-img-container:hover {
    opacity: 0.9;
}

/*ABOUT US*/
.about-head {
    line-height: 1.5;
}
@keyframes bounce {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(10px);
    }
}

.bounce {
    animation: bounce 3s infinite;
}
.bounce:hover {
    cursor: pointer;
}
.img-team {
    height: 50vh !important;
}
.about-team-title-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap; /* để khi không đủ chiều ngang, dòng sẽ tự xuống */
    text-align: center;
}

.about-team-title {
    letter-spacing: 0;
}

.line {
    flex: 1;
    height: 1px;
    background-color: #12133D;
    opacity: 0.3;
    min-width: 40px;
}

.about-team-mem {
    padding: 0 4.6%;
}
.content_about_col {
    padding: 0 10%;
}

.members {
    width: 15vw;
}
.avatar-wrap {
    width: 100%;
    height: 0;
    padding-top: 133%;
    position: relative;
    overflow: hidden;
}
.avatar-wrap img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 0;
    transition: opacity 0.3s ease;
}

@media (max-width: 576px) {
    .members {
        width: 45%;
    }
}
/*CONTACT*/
.contact-content {
    letter-spacing: 0 !important;
}
.contact-form {
    letter-spacing: 0 !important;
}