/* Custom Gallery for Ngoc Minh Hy */
.nmh-gallery {
    padding: 100px 0;
    background-color: #fff;
}
.nmh-gallery__container {
    max-width: 1440px;
    margin: 0 auto;
    padding: 0 5%;
}
.nmh-gallery__grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-bottom: 100px;
}
.nmh-gallery__grid img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    border-radius: 20px;
    display: block;
    box-shadow: 0 15px 40px rgba(0,0,0,0.08);
}
.nmh-gallery__text {
    text-align: center;
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}
.nmh-gallery__text img {
    width: 100%;
    height: auto;
}
/* Hero text color to white */
.dlf-hero__info * {
    color: #fff !important;
}

@media (max-width: 1024px) {
    .nmh-gallery {
        padding: 60px 0;
    }
    .nmh-gallery__grid {
        gap: 15px;
        margin-bottom: 60px;
    }
}
@media (max-width: 768px) {
    .nmh-gallery__grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
        margin-bottom: 40px;
    }
    .nmh-gallery {
        padding: 40px 0;
    }
}

/* Story Section */
.nmh-story {
    padding: 120px 0;
    background-color: #f4f9f4;
    text-align: center;
}
.nmh-story__container {
    max-width: 1440px;
    margin: 0 auto;
    padding: 0 5%;
}
.nmh-story__top-text p {
    font-size: 18px;
    line-height: 1.8;
    color: #333;
    margin-bottom: 80px;
    max-width: 850px;
    margin-left: auto;
    margin-right: auto;
}
.nmh-story__image {
    margin-bottom: 80px;
}
.nmh-story__image img {
    width: 100%;
    height: auto;
    display: block;
}
.nmh-story__bottom-text p {
    font-size: 24px;
    line-height: 1.5;
    color: #111;
    font-weight: 400;
    max-width: 850px;
    margin-left: auto;
    margin-right: auto;
}
@media (max-width: 768px) {
    .nmh-story {
        padding: 60px 0;
    }
    .nmh-story__top-text p {
        font-size: 16px;
    }
    .nmh-story__bottom-text p {
        font-size: 18px;
    }
}

/* Padded Image */
.nmh-padded-img {
    padding: 12rem 15%;
    background-color: #fff;
}
.nmh-padded-img img {
    width: 100%;
    height: auto;
    display: block;
}

/* Full-screen Video */
.nmh-video {
    width: 100%;
    height: 100vh;
    padding: 0 !important;
    background-color: #000;
}
.nmh-video iframe {
    width: 100%;
    height: 100%;
    border-radius: 0 !important;
}

@media (max-width: 1024px) {
    .nmh-padded-img {
        padding: 80px 10%;
    }
    .nmh-video {
        height: 60vh;
    }
}
@media (max-width: 768px) {
    .nmh-padded-img {
        padding: 60px 5%;
    }
    .nmh-video {
        height: 40vh;
    }
}

/* Identity Section */
.nmh-identity {
    width: 100%;
    background-color: #fff;
    padding: 240px 0 80px;
}
.nmh-identity__full img {
    width: 100%;
    height: auto;
    display: block;
}
.nmh-identity__row {
    display: grid;
    grid-template-columns: 1.51407fr 1fr;
    gap: 20px;
    width: 100%;
    padding: 0 10%;
    box-sizing: border-box;
    align-items: start;
}
.nmh-identity__row img {
    width: 100%;
    height: auto;
    display: block;
}
.nmh-identity__row img:nth-child(1) {
    border-bottom-left-radius: 10px;
    border-bottom-right-radius: 10px;
}
@media (max-width: 1024px) {
    .nmh-identity {
        padding: 120px 0 40px;
    }
    .nmh-identity__row {
        padding: 0 5%;
    }
}
@media (max-width: 768px) {
    .nmh-identity__row {
        grid-template-columns: 1fr;
        padding: 0 20px;
    }
}

/* Meaning Section */
.nmh-meaning {
    background-color: #004300;
    width: 100%;
    padding: 100px 0;
    display: flex;
    justify-content: center;
    color: #fff;
}
.nmh-meaning__container {
    display: flex;
    align-items: center;
    width: 100%;
    gap: 6rem;
    padding-left: 0;
    box-sizing: border-box;
}
.nmh-meaning__logo {
    flex: 0 0 45%;
}
.nmh-meaning__text {
    flex: 1;
    padding-right: 15%;
    box-sizing: border-box;
}
.nmh-meaning__text h3 {
    font-size: 1.2rem;
    font-weight: 300;
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 2px;
}
.nmh-meaning__text h2 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 30px;
    text-transform: uppercase;
}
.nmh-meaning__text ul {
    list-style: none;
    padding: 0;
}
.nmh-meaning__text li {
    position: relative;
    padding-left: 25px;
    margin-bottom: 20px;
    font-size: 1.1rem;
    line-height: 1.6;
    font-weight: 300;
}
.nmh-meaning__text li::before {
    content: "•";
    position: absolute;
    left: 0;
    color: #fff;
}
.nmh-meaning__logo {
    flex: 1;
}
.nmh-meaning img {
    width: 100%;
    height: auto;
    display: block;
}
@media (max-width: 1024px) {
    .nmh-meaning {
        padding: 60px 0;
    }
    .nmh-meaning__text h2 {
        font-size: 2.2rem;
    }
}
@media (max-width: 768px) {
    .dlf-hero {
        background-color: #004300;
    }
    .nmh-meaning__container {
        flex-direction: column;
        gap: 40px;
        padding-left: 0;
        align-items: flex-start;
    }
    .nmh-meaning__logo {
        width: 80%;
        padding-left: 0;
    }
    .nmh-meaning__text {
        padding: 0 20px;
    }
}

/* Full Image Section */
.nmh-full-img {
    width: 100%;
    display: block;
}
.nmh-full-img img {
    width: 100%;
    height: auto;
    display: block;
}

/* Conclusion Section */
.nmh-conclusion {
    background-color: #E8F5E9;
    background-image: url('../../prj_ngocminhhy/NGOCMINHHY_13.svg');
    background-repeat: no-repeat;
    background-position: right center;
    background-size: auto 100%; /* Spans exactly top to bottom without cropping */
    width: 100%;
    padding: 120px 0;
    display: flex;
    justify-content: center;
    position: relative;
}
.nmh-conclusion__container {
    max-width: 1440px;
    width: 100%;
    padding: 0 5%;
}
.nmh-conclusion__text {
    max-width: 60%; /* Allow text to spread and overlap the background pattern */
    color: #004D00;
    position: relative;
    z-index: 2;
    text-align: justify;
}
.nmh-conclusion__text h2 {
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 30px;
    text-transform: uppercase;
    letter-spacing: 1px;
}
.nmh-conclusion__text p {
    font-size: 1.1rem;
    line-height: 1.8;
    font-weight: 300;
    margin-bottom: 30px;
}
.nmh-conclusion__text strong {
    font-weight: 900;
}
@media (max-width: 1024px) {
    .nmh-conclusion {
        padding: 80px 0;
        background-size: cover; /* Adjust for tablet if needed */
    }
    .nmh-conclusion__text {
        max-width: 80%;
    }
}
@media (max-width: 768px) {
    .nmh-conclusion {
        padding: 60px 20px;
        background-image: none; /* Simplify on mobile if it gets too busy */
        background-color: #E8F5E9;
    }
    .nmh-conclusion__text {
        max-width: 100%;
    }
}

/* Marquee Section */
.nmh-marquee {
    background-color: #000;
    padding: 240px 0;
    overflow: hidden;
    width: 100%;
}
.nmh-marquee__track {
    display: flex;
    gap: 50px;
    width: max-content;
    margin-left: calc(-12.5vw + 25px); /* Adjusted for 50px gap */
    animation: marquee-paged 40s ease-in-out infinite;
}
.nmh-marquee__item {
    flex: 0 0 calc(25vw - 50px); /* 4 units = 100vw with 50px gap */
    width: calc(25vw - 50px);
    height: auto;
}
.nmh-marquee__item img {
    width: 100%;
    height: auto;
    border-radius: 15px;
    display: block;
}
@keyframes marquee-paged {
    0%, 4.25% { transform: translateX(0); }
    6.25%, 10.5% { transform: translateX(-3.125%); }
    12.5%, 16.75% { transform: translateX(-6.25%); }
    18.75%, 23% { transform: translateX(-9.375%); }
    25%, 29.25% { transform: translateX(-12.5%); }
    31.25%, 35.5% { transform: translateX(-15.625%); }
    37.5%, 41.75% { transform: translateX(-18.75%); }
    43.75%, 48% { transform: translateX(-21.875%); }
    50%, 54.25% { transform: translateX(-25%); }
    56.25%, 60.5% { transform: translateX(-28.125%); }
    62.5%, 66.75% { transform: translateX(-31.25%); }
    68.75%, 73% { transform: translateX(-34.375%); }
    75%, 79.25% { transform: translateX(-37.5%); }
    81.25%, 85.5% { transform: translateX(-40.625%); }
    87.5%, 91.75% { transform: translateX(-43.75%); }
    93.75%, 98% { transform: translateX(-46.875%); }
    100% { transform: translateX(-50%); }
}
@media (max-width: 768px) {
    .nmh-marquee {
        padding: 60px 0;
    }
    .nmh-marquee__track {
        gap: 20px;
        margin-left: calc(-25vw + 10px);
    }
    .nmh-marquee__item {
        flex: 0 0 calc(50vw - 20px);
        width: calc(50vw - 20px);
    }
}
