﻿/* =========================================================
   Binhnam Aluminium - Homepage CSS
   Clean replacement version
   Purpose: standardize colors, typography, spacing, buttons,
   cards, section title underline, responsive behavior.
   ========================================================= */

:root {
    --bn-primary: #011673;
    --bn-deep: #010F4F;
    --bn-bg-navy: #010B3A;
    --bn-red: #E9272C;
    --bn-dark: #111C2D;
    --bn-dark-2: #252984;
    --bn-text: #1E232D;
    --bn-strong: #1D1D1F;
    --bn-muted: #5C667A;
    --bn-bg-light: #F5F7FB;
    --bn-border: #D9E1F2;
    --bn-white: #FFFFFF;

    --bn-radius: 8px;
    --bn-section-padding: 96px;
    --bn-section-padding-md: 72px;
    --bn-section-padding-sm: 48px;

    --bn-title-size: 32px;
    --bn-title-size-sm: 28px;
    --bn-title-line-height: 1.3;

    --bn-body-size: 16px;
    --bn-body-size-sm: 15px;
    --bn-body-line-height: 1.6;

    --bn-underline-width: 96px;
    --bn-underline-width-sm: 80px;
    --bn-underline-height: 3px;
}

/* Notes:
   - Section titles use --bn-primary blue.
   - Navy backgrounds/buttons use --bn-bg-navy for a slightly darker look.
   - Titles keep original casing from CMS content; no automatic uppercase.
*/

/* =========================================================
   Home-specific small fixes
   ========================================================= */

.home .certifications-bg {
    top: -215px;
}

.home .certifications-section {
    padding-bottom: 0;
}

/* =========================================================
   Shared homepage typography
   ========================================================= */

.home-intro-title,
.premium-title,
.why-title,
.comprehensive-title,
.featured-projects-title,
.partner-title,
.certifications-title,
.home-news-title {
    font-weight: 700;
    font-size: var(--bn-title-size);
    line-height: var(--bn-title-line-height);
    letter-spacing: -0.03em;
    color: var(--bn-primary);
    margin: 0 0 16px;
    text-transform: none;
}

.factory-title,
.home-faq-custom-title {
    font-weight: 700;
    font-size: var(--bn-title-size);
    line-height: var(--bn-title-line-height);
    letter-spacing: -0.03em;
    color: var(--bn-white);
    margin: 0 0 16px;
    text-transform: none;
}

.premium-desc,
.why-desc,
.comprehensive-desc,
.partner-desc,
.certifications-desc,
.home-news-desc,
.premium-card-desc,
.why-card-desc,
.comprehensive-card-desc,
.news-card-desc {
    font-weight: 500;
    font-size: var(--bn-body-size);
    line-height: var(--bn-body-line-height);
    color: var(--bn-text);
    margin: 0;
}

.factory-desc,
.factory-card-desc,
.home-faq-item-body {
    font-weight: 500;
    font-size: var(--bn-body-size);
    line-height: var(--bn-body-line-height);
    color: var(--bn-white);
    margin: 0;
}

/* Standard red underline */
.home-intro-line {
    display: block;
    width: var(--bn-underline-width);
    height: var(--bn-underline-height);
    background-color: var(--bn-red);
    border-radius: 0;
    margin: 0;
}

.premium-title::after,
.why-title::after,
.comprehensive-title::after,
.featured-projects-title::after,
.partner-title::after,
.certifications-title::after,
.home-news-title::after,
.factory-title::after,
.home-faq-custom-title::after {
    content: "";
    display: block;
    width: var(--bn-underline-width);
    height: var(--bn-underline-height);
    background-color: var(--bn-red);
    border-radius: 0;
    margin-top: 16px;
}

/* Center title underlines where headers are centered */
.premium-title::after,
.why-title::after,
.comprehensive-title::after,
.partner-title::after,
.certifications-title::after,
.factory-title::after {
    margin-left: auto;
    margin-right: auto;
}

/* =========================================================
   Shared buttons
   ========================================================= */

.swiper-slide--btn,
.btn-factory-tour {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    min-width: 240px;
    height: 56px;
    padding: 0 28px;
    background-color: var(--bn-red);
    border: 1px solid var(--bn-red);
    border-radius: var(--bn-radius);
    color: var(--bn-white) !important;
    font-weight: 600;
    font-size: 16px;
    line-height: 1;
    text-decoration: none !important;
    transition: background-color 0.3s ease, border-color 0.3s ease, transform 0.2s ease;
}

.swiper-slide--btn:hover,
.btn-factory-tour:hover {
    background-color: var(--bn-bg-navy);
    border-color: var(--bn-bg-navy);
    color: var(--bn-white) !important;
    transform: translateY(-2px);
}

.btn-all-projects,
.btn-all-news {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    min-width: 180px;
    height: 56px;
    padding: 0 28px;
    background-color: var(--bn-bg-navy);
    border: 1px solid var(--bn-bg-navy);
    border-radius: var(--bn-radius);
    color: var(--bn-white) !important;
    font-weight: 600;
    font-size: 16px;
    line-height: 1;
    text-decoration: none !important;
    white-space: nowrap;
    transition: background-color 0.3s ease, border-color 0.3s ease, transform 0.2s ease;
}

.btn-all-projects:hover,
.btn-all-news:hover {
    background-color: var(--bn-red);
    border-color: var(--bn-red);
    color: var(--bn-white) !important;
    transform: translateY(-2px);
}

/* Secondary outline button */
.home-intro-btn {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 240px;
    height: 56px;
    padding: 0 24px;
    border: 1px solid var(--bn-deep);
    border-radius: var(--bn-radius);
    background-color: transparent;
    color: var(--bn-deep);
    font-weight: 600;
    font-size: 16px;
    line-height: 1;
    text-decoration: none;
    transition: background-color 0.3s ease, border-color 0.3s ease, color 0.3s ease, transform 0.2s ease;
}

.home-intro-btn:hover {
    background-color: var(--bn-deep);
    border-color: var(--bn-deep);
    color: var(--bn-white);
    transform: translateY(-2px);
}

.home-intro-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
}

/* =========================================================
   Slider Banner
   ========================================================= */

.swiper-slider-main {
    position: relative;
    width: 100%;
    overflow: hidden;
}

.swiper-slider-main .swiper-slide {
    position: relative;
    height: 860px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.swiper-slider-main .swiper-slide--img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
}

.swiper-slider-main .swiper-slide--overlay,
.swiper-slider-main.swiper-slide--overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(rgba(1, 15, 79, 0.45), rgba(1, 15, 79, 0.45));
    z-index: 2;
    pointer-events: none;
}

.swiper-slide--glow {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 946px;
    height: 181px;
    transform: translate(-50%, -50%);
    background: rgba(17, 28, 45, 0.75);
    filter: blur(150px);
    z-index: 3;
    pointer-events: none;
}

.swiper-slider-main .swiper-slide--wrap {
    position: relative;
    z-index: 4;
    width: 100%;
    padding: 0 240px;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.swiper-slider-main .swiper-slide--content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 24px;
    max-width: 1040px;
}

.swiper-slider-main .swiper-slide--title {
    font-weight: 700;
    font-size: 64px;
    line-height: 1.1;
    color: var(--bn-white);
    text-shadow: 0 0 20px rgba(0, 0, 0, 0.28);
    margin: 0;
    white-space: pre-line;
}

.swiper-slider-main .swiper-slide--description {
    max-width: 860px;
    margin: 0;
    color: var(--bn-white);
    font-weight: 500;
    font-size: 20px;
    line-height: 1.5;
}

.swiper-scroll-down {
    position: absolute;
    bottom: 39px;
    left: 50%;
    z-index: 10;
    width: 32px;
    height: 32px;
    display: flex;
    justify-content: center;
    align-items: center;
    transform: translateX(-50%);
    animation: bounce 2s infinite;
}

@keyframes bounce {

    0%,
    20%,
    50%,
    80%,
    100% {
        transform: translate(-50%, 0);
    }

    40% {
        transform: translate(-50%, -10px);
    }

    60% {
        transform: translate(-50%, -5px);
    }
}

/* =========================================================
   Home Intro Section
   ========================================================= */

.home-intro-section {
    position: relative;
    min-height: 420px;
    padding: 72px 0;
    display: flex;
    align-items: center;
    overflow: hidden;
    background-color: var(--bn-bg-light);
}

.home-intro-bg {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    width: 58%;
    height: 100%;
    z-index: 1;
    overflow: hidden;
    pointer-events: none;
}

.home-intro-bg-img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: right center;
}

.home-intro-wrap {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 1440px;
}

.home-intro-content {
    display: flex;
    flex-direction: column;
    gap: 24px;
    width: 100%;
    max-width: 1196px;
}

.home-intro-header {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.home-intro-desc {
    max-width: 820px;
    color: var(--bn-text);
    font-weight: 500;
    font-size: var(--bn-body-size);
    line-height: var(--bn-body-line-height);
    margin: 0;
    white-space: pre-wrap;
}

/* =========================================================
   Home Highlight Section
   ========================================================= */

.home-highlight-section {
    position: relative;
    min-height: 430px;
    padding: 64px 0;
    display: flex;
    align-items: center;
    background-image: url('../img/bg_highlight.png');
    background-size: cover;
    background-position: center;
    overflow: hidden;
}

.home-highlight-section::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(75deg,
            rgba(1, 15, 79, 0.98) 0%,
            rgba(1, 11, 58, 0.94) 45%,
            rgba(1, 15, 79, 0.72) 62%,
            rgba(1, 15, 79, 0.12) 100%);
    z-index: 1;
}

.home-highlight-section>.container {
    position: relative;
    z-index: 2;
}

.highlight-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
}

.highlight-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 24px;
    border-radius: var(--bn-radius);
}

.highlight-number {
    margin-bottom: 8px;
    color: var(--bn-white);
    font-weight: 800;
    font-size: 56px;
    line-height: 1;
    letter-spacing: 0.02em;
}

.highlight-text {
    color: var(--bn-white);
    font-weight: 600;
    font-size: 18px;
    line-height: 1.4;
}

/* =========================================================
   Home Premium Solutions Section
   ========================================================= */
.premium-solutions-section>.container>.row>div {
    margin-bottom: 3rem;
}

.premium-solutions-section {
    padding: var(--bn-section-padding) 0;
    background-color: var(--bn-bg-light);
}

.premium-solutions-header {
    max-width: 940px;
    margin: 0 auto 72px;
    text-align: center;
}

.premium-card {
    height: 100%;
    overflow: hidden;
    background: var(--bn-white);
    border: 1px solid var(--bn-border);
    border-radius: var(--bn-radius);
    box-shadow: 0 4px 14px rgba(1, 22, 115, 0.04);
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.premium-card:hover {
    transform: translateY(-4px);
    border-color: rgba(1, 22, 115, 0.35);
    box-shadow: 0 12px 28px rgba(1, 22, 115, 0.12);
}

.premium-card-img-wrap {
    width: 100%;
    height: 342px;
    overflow: hidden;
}

.premium-card-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.premium-card:hover .premium-card-img {
    transform: scale(1.05);
}

.premium-card-body {
    display: flex;
    flex-direction: column;
    gap: 16px;
    padding: 24px;
}

.premium-card-title {
    margin: 0;
    color: var(--bn-strong);
    font-weight: 700;
    font-size: 20px;
    line-height: 1.3;
}

.premium-card-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--bn-red) !important;
    font-weight: 600;
    font-size: 16px;
    line-height: 1.2;
    text-decoration: none !important;
    transition: color 0.25s ease;
}

.premium-card-link:hover {
    color: var(--bn-primary) !important;
}

.premium-card-icon {
    display: inline-flex;
    align-items: center;
    transition: transform 0.3s ease;
}

.premium-card-link:hover .premium-card-icon {
    transform: translateX(4px);
}

/* =========================================================
   Home Why Customers Section
   ========================================================= */

.why-customers-section {
    padding: var(--bn-section-padding) 0;
    background-color: var(--bn-white);
}

.why-customers-header {
    max-width: 896px;
    margin: 0 auto 72px;
    text-align: center;
}

.why-card {
    position: relative;
    height: 100%;
    padding: 24px 16px;
    overflow: hidden;
    background: transparent;
    border-radius: var(--bn-radius);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.why-card::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 0;
    background-image:
        linear-gradient(rgba(1, 11, 58, 0.92), rgba(1, 11, 58, 0.92)),
        url('https://cdn12127.cdn4s2.com/media/anh_trang_chu/rectangle-23-2.png');
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.why-card:hover {
    transform: translateY(-4px);
}

.why-card:hover::before {
    opacity: 1;
}

.why-card>* {
    position: relative;
    z-index: 1;
}

.why-icon-wrap {
    width: 180px;
    height: 180px;
    margin: 0 auto 24px;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    border-radius: 50%;
    background-image: url('https://cdn12127.cdn4s2.com/media/anh_trang_chu/decor_124.png');
    background-size: cover;
    background-position: center bottom;
    transition: transform 0.35s ease;
}

.why-card:hover .why-icon-wrap {
    transform: scale(1.04);
}

.why-icon-img {
    width: 104px;
    height: 104px;
    object-fit: cover;
}

.why-icon-placeholder {
    width: 104px;
    height: 104px;
    background-color: var(--bn-bg-light);
    border-radius: 50%;
}

.why-card-content {
    display: flex;
    flex-direction: column;
    gap: 16px;
    text-align: center;
}

.why-card-title {
    min-height: 43px;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    margin: 0;
    color: var(--bn-primary);
    font-weight: 700;
    font-size: 20px;
    line-height: 1.3;
    transition: color 0.3s ease;
}

.why-card-desc {
    transition: color 0.3s ease;
}

.why-card:hover .why-card-title,
.why-card:hover .why-card-desc {
    color: var(--bn-white);
}

/* =========================================================
   Home Factory Capability Section
   ========================================================= */

.factory-capability-section {
    position: relative;
    padding: var(--bn-section-padding) 0;
    overflow: hidden;
    color: var(--bn-white);
    background-color: var(--bn-dark);
    background-image: url('../media/about-us/breadcrumb-hero.jpg');
    background-size: cover;
    background-position: center;
}

.factory-capability-section::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    background:
        linear-gradient(rgba(1, 11, 58, 0.86), rgba(1, 11, 58, 0.86));
}

.factory-capability-section>.container {
    position: relative;
    z-index: 2;
}

.factory-capability-header {
    max-width: 940px;
    margin: 0 auto 72px;
    text-align: center;
}

.factory-card {
    height: 100%;
    display: flex;
    flex-direction: column;
    gap: 24px;
    background: transparent;
    transition: transform 0.3s ease;
}

.factory-card:hover {
    transform: translateY(-4px);
}

.factory-card-img-wrap {
    width: 100%;
    height: 225px;
    overflow: hidden;
    border-radius: var(--bn-radius);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.22);
}

.factory-card-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.factory-card:hover .factory-card-img {
    transform: scale(1.06);
}

.factory-card-body {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.factory-card-title {
    margin: 0;
    color: var(--bn-white);
    font-weight: 700;
    font-size: 20px;
    line-height: 1.3;
    text-transform: none;
}

.factory-action {
    margin-top: 48px;
    text-align: center;
}

/* =========================================================
   Home Comprehensive Section
   ========================================================= */

.comprehensive-section {
    padding: var(--bn-section-padding) 0;
    background-color: var(--bn-white);
}

.comprehensive-header {
    max-width: 940px;
    margin: 0 auto 72px;
    text-align: center;
}

.comprehensive-card {
    width: 100%;
    max-width: 342px;
    min-height: 322px;
    height: 100%;
    margin: 0 auto;
    padding: 16px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 24px;
    text-align: center;
    background: transparent;
    transition: transform 0.3s ease;
}

.comprehensive-card:hover {
    transform: translateY(-4px);
}

.comprehensive-icon-wrap {
    width: 128px;
    height: 128px;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: var(--bn-white);
    border: 2px solid var(--bn-primary);
    border-radius: 50%;
    transition: background-color 0.35s ease, border-color 0.35s ease;
}

.comprehensive-card:hover .comprehensive-icon-wrap {
    background-color: var(--bn-bg-navy);
    border-color: var(--bn-bg-navy);
}

.comprehensive-icon-img {
    width: 80px;
    height: 80px;
    object-fit: contain;
    transition: filter 0.3s ease;
}

.comprehensive-card:hover .comprehensive-icon-img {
    filter: brightness(0) invert(1);
}

.comprehensive-card-title {
    margin: 0 0 8px;
    color: var(--bn-strong);
    font-weight: 700;
    font-size: 20px;
    line-height: 1.3;
}

/* =========================================================
   Home Custom FAQs Section
   ========================================================= */

.home-faq-custom-section {
    position: relative;
    padding: var(--bn-section-padding) 0;
    overflow: hidden;
    background-color: #040C31;
    color: var(--bn-white);
}

.home-faq-img-wrap {
    width: 100%;
    height: 570px;
    overflow: hidden;
    border-radius: var(--bn-radius);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.28);
}

.home-faq-side-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.home-faq-custom-header {
    margin-bottom: 32px;
}

.home-faq-accordion {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.home-faq-item {
    overflow: hidden;
    background: transparent;
    border: 1px solid rgba(217, 225, 242, 0.35);
    border-radius: var(--bn-radius);
    transition: border-color 0.3s ease, background-color 0.3s ease;
}

.home-faq-item:hover {
    border-color: rgba(255, 255, 255, 0.7);
}

.home-faq-item-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    padding: 16px 24px;
    cursor: pointer;
    user-select: none;
    background: transparent;
    transition: background-color 0.3s ease;
}

.home-faq-item-header:not(.collapsed) {
    background-color: var(--bn-white);
}

.home-faq-item-title-wrap {
    flex-grow: 1;
}

.home-faq-item-title {
    margin: 0;
    color: var(--bn-white);
    font-weight: 600;
    font-size: 16px;
    line-height: 1.5;
    text-align: left;
    transition: color 0.3s ease;
}

.home-faq-item-header:not(.collapsed) .home-faq-item-title {
    color: var(--bn-strong);
}

.home-faq-item-btn-wrap {
    flex-shrink: 0;
}

.home-faq-item-btn {
    position: relative;
    width: 28px;
    height: 28px;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: var(--bn-red);
    border-radius: 50%;
}

.faq-icon-line {
    position: absolute;
    background-color: var(--bn-white);
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.faq-icon-line.horizontal {
    width: 12px;
    height: 2px;
}

.faq-icon-line.vertical {
    width: 2px;
    height: 12px;
}

.home-faq-item-header:not(.collapsed) .faq-icon-line.vertical {
    transform: rotate(90deg);
    opacity: 0;
}

.home-faq-item-body {
    padding: 24px;
    background: transparent;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
}

/* =========================================================
   Home Featured Projects Section
   ========================================================= */

.featured-projects-section {
    padding: var(--bn-section-padding) 0;
    background-color: var(--bn-bg-light);
}

.featured-projects-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 32px;
    margin-bottom: 72px;
}

.featured-projects-title {
    margin: 0;
    white-space: pre-line;
}

.project-card {
    position: relative;
    width: 100%;
    height: 528px;
    padding: 24px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    overflow: hidden;
    border-radius: var(--bn-radius);
    box-shadow: 0 4px 14px rgba(1, 22, 115, 0.06);
}

.project-card-img {
    position: absolute;
    inset: 0;
    z-index: 1;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.project-card:hover .project-card-img {
    transform: scale(1.05);
}

.project-card-overlay {
    position: absolute;
    left: 0;
    bottom: 0;
    z-index: 2;
    width: 100%;
    height: 55%;
    background: linear-gradient(0deg, rgba(1, 11, 58, 0.94) 0%, rgba(1, 15, 79, 0) 100%);
    pointer-events: none;
}

.project-card-content {
    position: absolute;
    left: 24px;
    right: 24px;
    bottom: 24px;
    z-index: 3;
}

.project-card-title {
    margin: 0;
    color: var(--bn-white);
    font-weight: 700;
    font-size: 28px;
    line-height: 1.3;
    text-transform: none;
    word-break: normal;
    overflow-wrap: anywhere;
}

/* =========================================================
   Home Strategic Partners Section
   ========================================================= */

.partner-section {
    position: relative;
    padding: var(--bn-section-padding) 0;
    overflow: hidden;
    background-color: var(--bn-white);
}

.partner-bg-wrap {
    position: absolute;
    top: 15px;
    left: 0;
    z-index: 1;
    width: 100%;
    height: 522px;
    pointer-events: none;
}

.partner-bg-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: blur(7.5px);
}

.partner-bg-overlay {
    position: absolute;
    inset: 0;
    background-color: rgba(255, 255, 255, 0.42);
}

.partner-section>.container {
    position: relative;
    z-index: 2;
}

.partner-header {
    max-width: 940px;
    margin: 0 auto 56px;
    text-align: center;
}

.partner-swiper {
    padding: 20px 0 40px;
}

.partner-logo-card {
    width: 210px;
    height: 70px;
    display: flex;
    justify-content: center;
    align-items: center;
    background: transparent;
    transition: transform 0.3s ease;
}

.partner-logo-card:hover {
    transform: scale(1.06);
}

.partner-logo-img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    transition: transform 0.3s ease;
}

/* =========================================================
   Home Certifications Section
   ========================================================= */

.certifications-section {
    padding: var(--bn-section-padding) 0;
    overflow: hidden;
    background-color: var(--bn-bg-light);
}

.certifications-header {
    max-width: 940px;
    margin: 0 auto 72px;
    text-align: center;
}

.certifications-swiper {
    padding: 10px 0 50px;
}

.certification-card {
    width: 389px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 24px;
    text-align: center;
    transition: transform 0.3s ease;
}

.certification-card:hover {
    transform: translateY(-4px);
}

.certification-img-wrap {
    width: 389px;
    height: 508px;
    overflow: hidden;
    background: var(--bn-white);
    border: 1px solid var(--bn-border);
    border-radius: var(--bn-radius);
    box-shadow: 0 4px 14px rgba(1, 22, 115, 0.06);
}

.certification-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.certification-name {
    margin: 0;
    color: var(--bn-strong);
    font-weight: 700;
    font-size: 20px;
    line-height: 1.3;
}

/* Shared Swiper navigation */
.partner-swiper .swiper-button-next,
.partner-swiper .swiper-button-prev,
.certifications-swiper .swiper-button-next,
.certifications-swiper .swiper-button-prev {
    width: 44px;
    height: 44px;
    color: var(--bn-primary);
    background: var(--bn-white);
    border: 1px solid var(--bn-border);
    border-radius: 50%;
    box-shadow: 0 4px 14px rgba(1, 22, 115, 0.08);
    transition: background-color 0.3s ease, color 0.3s ease;
}

.partner-swiper .swiper-button-next::after,
.partner-swiper .swiper-button-prev::after,
.certifications-swiper .swiper-button-next::after,
.certifications-swiper .swiper-button-prev::after {
    font-size: 18px;
}

.partner-swiper .swiper-button-next:hover,
.partner-swiper .swiper-button-prev:hover,
.certifications-swiper .swiper-button-next:hover,
.certifications-swiper .swiper-button-prev:hover {
    background: var(--bn-bg-navy);
    color: var(--bn-white);
}

/* =========================================================
   Home Articles List Section
   ========================================================= */

.home-news-section {
    position: relative;
    padding: var(--bn-section-padding) 0;
    background-color: var(--bn-white);
}

.home-news-header {
    gap: 24px;
    margin-bottom: 72px;
}

.home-news-title-wrap {
    flex: 1;
    min-width: 280px;
}

.home-news-desc {
    max-width: 952px;
}

.home-news-action {
    display: flex;
    align-items: flex-end;
}

.news-card {
    display: flex;
    flex-direction: column;
    gap: 24px;
    height: 100%;
    background: transparent;
    transition: transform 0.3s ease;
}

.news-card:hover {
    transform: translateY(-4px);
}

.news-card-img-wrap {
    position: relative;
    width: 100%;
    height: 300px;
    overflow: hidden;
    border-radius: var(--bn-radius);
    background-color: var(--bn-bg-light);
}

.news-card-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.news-card:hover .news-card-img {
    transform: scale(1.05);
}

.news-card-body {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 8px 4px;
}

.news-card-title {
    min-height: 51px;
    display: -webkit-box;
    margin: 0;
    overflow: hidden;
    color: var(--bn-strong);
    font-weight: 700;
    font-size: 20px;
    line-height: 1.3;
    text-overflow: ellipsis;
    transition: color 0.3s ease;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.news-card:hover .news-card-title {
    color: var(--bn-primary);
}

.news-card-desc {
    min-height: 50px;
    display: -webkit-box;
    overflow: hidden;
    color: var(--bn-text);
    font-weight: 400;
    font-size: 15px;
    line-height: 1.5;
    text-overflow: ellipsis;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.news-card-footer {
    margin-top: 8px;
}

.news-card-link {
    padding-bottom: 2px;
    color: var(--bn-strong);
    border-bottom: 1px solid var(--bn-strong);
    font-weight: 600;
    font-size: 16px;
    text-decoration: none;
    transition: color 0.3s ease, border-color 0.3s ease;
}

.news-card:hover .news-card-link {
    color: var(--bn-red);
    border-color: var(--bn-red);
}

.news-card-date {
    color: var(--bn-strong);
    font-weight: 500;
    font-size: 15px;
}

/* =========================================================
   Responsive
   ========================================================= */

@media (max-width: 1399px) {
    .premium-card-img-wrap {
        height: 280px;
    }
}

@media (max-width: 1199px) {
    .swiper-slider-main .swiper-slide {
        height: 700px;
    }

    .swiper-slider-main .swiper-slide--wrap {
        padding: 0 100px;
    }

    .swiper-slider-main .swiper-slide--title {
        font-size: 56px;
    }

    .swiper-slider-main .swiper-slide--description {
        font-size: 18px;
    }

    .home-intro-section,
    .premium-solutions-section,
    .why-customers-section,
    .factory-capability-section,
    .comprehensive-section,
    .home-faq-custom-section,
    .featured-projects-section,
    .partner-section,
    .certifications-section,
    .home-news-section {
        padding-top: var(--bn-section-padding-md);
        padding-bottom: var(--bn-section-padding-md);
    }

    .premium-solutions-header,
    .why-customers-header,
    .factory-capability-header,
    .comprehensive-header,
    .featured-projects-header,
    .certifications-header,
    .home-news-header {
        margin-bottom: 56px;
    }

    .home-intro-bg {
        top: -100px;
        right: -100px;
        width: 800px;
        height: 800px;
    }

    .home-intro-desc {
        max-width: 640px;
    }

    .premium-card-img-wrap {
        height: 240px;
    }

    .factory-card-img-wrap {
        height: 210px;
    }

    .project-card {
        height: 420px;
    }

    .project-card-title {
        font-size: 24px;
    }

    .certification-card,
    .certification-img-wrap {
        width: 320px;
    }

    .certification-img-wrap {
        height: 420px;
    }

    .news-card-img-wrap {
        height: 260px;
    }
}

@media (max-width: 991px) {
    .swiper-slider-main .swiper-slide {
        height: 600px;
    }

    .swiper-slider-main .swiper-slide--wrap {
        padding: 0 40px;
    }

    .swiper-slider-main .swiper-slide--title {
        font-size: 48px;
    }

    .swiper-slider-main .swiper-slide--description {
        font-size: 16px;
    }

    .swiper-slide--glow {
        width: 600px;
        height: 150px;
    }

    .home-intro-bg {
        width: 600px;
        height: 600px;
        opacity: 0.28;
    }

    .home-intro-desc {
        max-width: 100%;
    }

    .home-highlight-section::before {
        background: rgba(1, 15, 79, 0.88);
    }

    .highlight-grid {
        gap: 30px;
    }

    .premium-solutions-header,
    .why-customers-header,
    .factory-capability-header,
    .comprehensive-header,
    .featured-projects-header,
    .partner-header,
    .certifications-header,
    .home-news-header {
        margin-bottom: 40px;
    }

    .why-card-title {
        min-height: auto;
    }

    .factory-card-img-wrap {
        height: 200px;
    }

    .comprehensive-card {
        width: 100%;
        max-width: 100%;
        min-height: auto;
    }

    .home-faq-img-wrap {
        height: 380px;
    }

    .home-faq-custom-header {
        text-align: center;
    }

    .home-faq-custom-title::after {
        margin-left: auto;
        margin-right: auto;
    }

    .project-card {
        height: 380px;
    }

    .project-card-title {
        font-size: 22px;
    }

    .partner-header {
        text-align: center;
    }

    .certification-card,
    .certification-img-wrap {
        width: 280px;
    }

    .certification-img-wrap {
        height: 360px;
    }

    .certification-name {
        font-size: 18px;
    }

    .news-card-img-wrap {
        height: 240px;
    }

    .news-card-title,
    .news-card-desc {
        min-height: auto;
    }
}

@media (max-width: 767px) {
    .swiper-slider-main .swiper-slide {
        height: 500px;
    }

    .swiper-slider-main .swiper-slide--wrap {
        padding: 0 20px;
    }

    .swiper-slider-main .swiper-slide--title {
        font-size: 36px;
    }

    .swiper-slider-main .swiper-slide--description {
        font-size: 15px;
    }

    .swiper-slide--glow {
        width: 300px;
        height: 100px;
    }

    .home-intro-section,
    .premium-solutions-section,
    .why-customers-section,
    .factory-capability-section,
    .comprehensive-section,
    .home-faq-custom-section,
    .featured-projects-section,
    .partner-section,
    .certifications-section,
    .home-news-section {
        padding-top: var(--bn-section-padding-sm);
        padding-bottom: var(--bn-section-padding-sm);
    }

    .home-intro-title,
    .premium-title,
    .why-title,
    .comprehensive-title,
    .featured-projects-title,
    .partner-title,
    .certifications-title,
    .home-news-title,
    .factory-title,
    .home-faq-custom-title {
        font-size: var(--bn-title-size-sm);
        line-height: 1.3;
    }

    .home-intro-line,
    .premium-title::after,
    .why-title::after,
    .comprehensive-title::after,
    .featured-projects-title::after,
    .partner-title::after,
    .certifications-title::after,
    .home-news-title::after,
    .factory-title::after,
    .home-faq-custom-title::after {
        width: var(--bn-underline-width-sm);
        height: var(--bn-underline-height);
        margin-top: 12px;
    }

    .home-intro-bg {
        display: none;
    }

    .home-intro-desc,
    .premium-desc,
    .why-desc,
    .comprehensive-desc,
    .partner-desc,
    .certifications-desc,
    .home-news-desc,
    .premium-card-desc,
    .why-card-desc,
    .comprehensive-card-desc,
    .news-card-desc,
    .factory-desc,
    .factory-card-desc,
    .home-faq-item-body {
        font-size: var(--bn-body-size-sm);
        line-height: 1.6;
    }

    .swiper-slide--btn,
    .btn-factory-tour,
    .btn-all-projects,
    .btn-all-news,
    .home-intro-btn {
        min-width: 0;
        width: 100%;
        max-width: 240px;
        height: 48px;
        font-size: 16px;
    }

    .home-intro-actions {
        width: 100%;
        max-width: 240px;
        gap: 12px;
    }

    .highlight-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .highlight-number {
        font-size: 48px;
    }

    .highlight-text {
        font-size: 16px;
    }

    .premium-card-title,
    .why-card-title,
    .comprehensive-card-title,
    .factory-card-title,
    .news-card-title {
        font-size: 18px;
    }

    .premium-card-img-wrap {
        height: 220px;
    }

    .why-icon-wrap {
        width: 140px;
        height: 140px;
        margin-bottom: 16px;
    }

    .factory-card-img-wrap {
        height: 180px;
    }

    .factory-action {
        margin-top: 32px;
    }

    .comprehensive-icon-wrap {
        width: 100px;
        height: 100px;
    }

    .comprehensive-icon-img {
        width: 60px;
        height: 60px;
    }

    .home-faq-img-wrap {
        display: none;
    }

    .home-faq-item-header {
        padding: 14px 16px;
    }

    .home-faq-item-title {
        font-size: 15px;
    }

    .home-faq-item-body {
        padding: 16px;
    }

    .featured-projects-header,
    .home-news-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 20px;
    }

    .project-card {
        height: 320px;
        padding: 20px;
    }

    .project-card-content {
        left: 20px;
        right: 20px;
        bottom: 20px;
    }

    .project-card-title {
        font-size: 18px;
    }

    .partner-desc,
    .certifications-desc {
        font-size: 15px;
    }

    .certification-card,
    .certification-img-wrap {
        width: 240px;
    }

    .certification-img-wrap {
        height: 320px;
    }

    .certification-name {
        font-size: 16px;
    }

    .news-card {
        gap: 16px;
    }

    .news-card-img-wrap {
        height: 220px;
    }

    .news-card-desc {
        font-size: 14px;
    }
}

@media (max-width: 575px) {
    .swiper-slider-main .swiper-slide {
        height: 450px;
    }

    .swiper-slider-main .swiper-slide--title {
        font-size: 28px;
    }

    .swiper-slider-main .swiper-slide--description {
        font-size: 14px;
    }
}
