/* ==========================================================================
   HOMEPAGE DCAFD NEW DESIGN STYLES (PORTAL V2)
   Tối ưu hóa nhận diện thương hiệu DCAFD - Tươi sáng, Hiện đại & Chuẩn mực
   ========================================================================== */

/* --- GENERAL HOME HELPERS --- */
.home-container {
    max-width: 1380px;
    margin: 0 auto;
    padding: 0 20px;
}

@media (min-width: 1200px) {
    .container,
    body.home .container,
    body.front-page .container {
        max-width: 1380px !important;
        padding-left: 20px !important;
        padding-right: 20px !important;
    }
}

.home-block {
    padding: 50px 0;
    position: relative;
}

.home-sec-indicator-wrap {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
}

.home-sec-bar {
    display: inline-block;
    width: 5px;
    height: 26px;
    background: #FFC928;
    border-radius: 4px;
}

.home-sec-subtitle {
    font-size: 20px;
    font-weight: 700;
    color: #072b61;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.home-sec-main-title {
    font-size: 28px;
    font-weight: 800;
    color: #0B4EA2;
    line-height: 1.35;
    margin-bottom: 16px;
}

.home-about-lead {
    font-size: 15px;
    line-height: 1.7;
    color: #475569;
    margin-bottom: 30px;
}

/* ==========================================================================
   SECTION 2: VỀ CHÚNG TÔI (ABOUT & 4 PILLARS)
   ========================================================================== */
.home-about-section {
    background: #ffffff;
}

.home-about-grid {
    display: grid;
    grid-template-columns: 1fr 1.15fr;
    gap: 48px;
    align-items: center;
}

/* 3-Image Collage */
.home-about-gallery {
    display: grid;
    grid-template-columns: 1.4fr 1fr;
    gap: 16px;
    position: relative;
}

.collage-main-img {
    position: relative;
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 14px 30px rgba(11, 78, 162, 0.12);
}

.collage-main-img img {
    width: 100%;
    height: 380px;
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease;
}

.collage-main-img:hover img {
    transform: scale(1.04);
}

.collage-badge-pill {
    position: absolute;
    bottom: 16px;
    left: 16px;
    background: rgba(7, 43, 97, 0.88);
    backdrop-filter: blur(8px);
    color: #ffffff;
    font-size: 12px;
    font-weight: 600;
    padding: 6px 14px;
    border-radius: 30px;
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

.badge-dot {
    width: 8px;
    height: 8px;
    background: #10b981;
    border-radius: 50%;
    box-shadow: 0 0 8px #10b981;
}

.collage-sub-imgs {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.collage-sub-item {
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
}

.collage-sub-item img {
    width: 100%;
    height: 182px;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}

.collage-sub-item:hover img {
    transform: scale(1.05);
}

/* 4 Value Pillars */
.home-pillars-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.pillar-card {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 16px;
    background: #f8fafc;
    border-radius: 14px;
    border: 1px solid #edf2f7;
    transition: all 0.3s ease;
}

.pillar-card:hover {
    background: #ffffff;
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(11, 78, 162, 0.08);
    border-color: #cbd5e1;
}

.pillar-icon-box {
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.pillar-blue  { background: #e0f2fe; color: #0284c7; }
.pillar-cyan  { background: #e0e7ff; color: #4f46e5; }
.pillar-green { background: #dcfce7; color: #16a34a; }
.pillar-gold  { background: #fef3c7; color: #d97706; }

.pillar-title {
    font-size: 15px;
    font-weight: 700;
    color: #1e293b;
    margin: 0 0 4px 0;
}

.pillar-desc {
    font-size: 13px;
    color: #64748b;
    line-height: 1.5;
    margin: 0;
}

/* ==========================================================================
   SECTION 3: CONCEPT HAI MẢNH GHÉP TẦM NHÌN & SỨ MỆNH (PUZZLE)
   ========================================================================== */
.home-puzzle-section {
    background: #f1f5f9;
    padding: 60px 0;
}

.puzzle-stage-container {
    display: flex;
    gap: 32px;
    position: relative;
    align-items: stretch;
    transition: all 0.45s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.puzzle-card {
    flex: 1;
    border-radius: 20px;
    position: relative;
    padding: 40px;
    box-shadow: 0 12px 35px rgba(11, 78, 162, 0.1);
    transition: all 0.45s cubic-bezier(0.34, 1.56, 0.64, 1);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

/* Mảnh Trái: Tầm nhìn */
.puzzle-left-piece {
    background: linear-gradient(135deg, #0B4EA2 0%, #072b61 100%);
    color: #ffffff;
    z-index: 2;
}

/* Mảnh Phải: Sứ mệnh */
.puzzle-right-piece {
    background: #ffffff;
    border: 2px solid #e2e8f0;
    color: #1e293b;
    z-index: 1;
}

/* HIỆU ỨNG HOVER KÉO GẦN NHAU (INTERLOCKING) */
.puzzle-stage-container:hover .puzzle-left-piece {
    transform: translateX(14px);
    box-shadow: 0 16px 45px rgba(11, 78, 162, 0.28);
}

.puzzle-stage-container:hover .puzzle-right-piece {
    transform: translateX(-14px);
    box-shadow: 0 16px 45px rgba(255, 201, 40, 0.22);
    border-color: #FFC928;
}

.puzzle-stage-container:hover .puzzle-pulse-dot {
    opacity: 0;
    transform: scale(0.5);
}

/* Mấu lồi Puzzle (Male Connector) */
.puzzle-connector-male {
    position: absolute;
    right: -24px;
    top: 50%;
    transform: translateY(-50%);
    width: 48px;
    height: 64px;
    background: #08346e;
    border-radius: 0 32px 32px 0;
    box-shadow: 4px 0 12px rgba(0, 0, 0, 0.15);
    z-index: 5;
    pointer-events: none;
    transition: all 0.45s ease;
}

/* Rãnh khuyết Puzzle (Female Notch) */
.puzzle-connector-female {
    position: absolute;
    left: -2px;
    top: 50%;
    transform: translateY(-50%);
    width: 26px;
    height: 70px;
    background: #f1f5f9;
    border-radius: 0 35px 35px 0;
    box-shadow: inset 4px 0 8px rgba(0, 0, 0, 0.08);
    z-index: 3;
    pointer-events: none;
    border-right: 2px solid #e2e8f0;
}

/* Chỉ dẫn hover */
.puzzle-connection-indicator {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    z-index: 10;
    pointer-events: none;
}

.puzzle-pulse-dot {
    display: block;
    width: 14px;
    height: 14px;
    background: #FFC928;
    border-radius: 50%;
    box-shadow: 0 0 0 rgba(255, 201, 40, 0.6);
    animation: puzzlePulse 1.8s infinite;
    transition: all 0.3s ease;
}

@keyframes puzzlePulse {
    0% { box-shadow: 0 0 0 0 rgba(255, 201, 40, 0.8); }
    70% { box-shadow: 0 0 0 16px rgba(255, 201, 40, 0); }
    100% { box-shadow: 0 0 0 0 rgba(255, 201, 40, 0); }
}

.puzzle-hint-text {
    text-align: center;
    margin-top: 24px;
    font-size: 13px;
    color: #64748b;
}

/* Nội dung bên trong thẻ Puzzle */
.puzzle-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(6px);
    color: #FFC928;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.8px;
    padding: 6px 16px;
    border-radius: 30px;
    margin-bottom: 20px;
}

.puzzle-badge.badge-blue {
    background: #e0f2fe;
    color: #0B4EA2;
}

.puzzle-heading {
    font-size: 22px;
    font-weight: 800;
    line-height: 1.45;
    margin-bottom: 16px;
}

.puzzle-heading.text-navy {
    color: #072b61;
}

.puzzle-desc {
    font-size: 14px;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.88);
    margin-bottom: 24px;
}

.puzzle-mission-list {
    list-style: none;
    padding: 0;
    margin: 0 0 24px 0;
}

.puzzle-mission-list li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    font-size: 14px;
    color: #334155;
    line-height: 1.6;
    margin-bottom: 12px;
}

.mission-check {
    color: #10b981;
    font-weight: 900;
    font-size: 16px;
    line-height: 1.2;
}

/* Nút CTA trong Puzzle */
.puzzle-btn-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 22px;
    border-radius: 30px;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.3s ease;
}

.btn-gold {
    background: #FFC928;
    color: #072b61;
    box-shadow: 0 4px 14px rgba(255, 201, 40, 0.4);
}

.btn-gold:hover {
    background: #ffb703;
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(255, 201, 40, 0.55);
    color: #000000;
}

.btn-navy {
    background: #0B4EA2;
    color: #ffffff;
    box-shadow: 0 4px 14px rgba(11, 78, 162, 0.25);
}

.btn-navy:hover {
    background: #072b61;
    transform: translateY(-2px);
    color: #ffffff;
}

.puzzle-bg-graphic {
    position: absolute;
    right: 20px;
    bottom: 20px;
    width: 130px;
    opacity: 0.2;
    pointer-events: none;
}

/* ==========================================================================
   SECTION 4: QUY TRÌNH CẤP VỐN (TIMELINE 4 BƯỚC)
   ========================================================================== */
.home-process-section {
    background: #ffffff;
    padding: 60px 0;
}

.process-timeline-wrap {
    position: relative;
    margin-top: 30px;
}

.process-track-line {
    position: absolute;
    top: 36px;
    left: 8%;
    right: 8%;
    height: 3px;
    background: #e2e8f0;
    z-index: 1;
}

.process-steps-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    position: relative;
    z-index: 2;
}

.process-step-item {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.process-step-badge {
    position: relative;
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background: #ffffff;
    border: 3px solid #0B4EA2;
    box-shadow: 0 6px 18px rgba(11, 78, 162, 0.12);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    transition: all 0.3s ease;
}

.process-step-item:hover .process-step-badge {
    transform: scale(1.08);
    background: #0B4EA2;
    border-color: #FFC928;
    box-shadow: 0 8px 24px rgba(11, 78, 162, 0.25);
}

.process-step-item:hover .step-icon-wrap {
    color: #ffffff;
}

.step-number {
    position: absolute;
    top: -8px;
    right: -8px;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: #FFC928;
    color: #072b61;
    font-size: 12px;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 6px rgba(0,0,0,0.15);
}

.step-icon-wrap {
    color: #0B4EA2;
    transition: color 0.3s ease;
}

.step-title {
    font-size: 16px;
    font-weight: 700;
    color: #072b61;
    margin-bottom: 8px;
}

.step-desc {
    font-size: 13px;
    color: #64748b;
    line-height: 1.55;
    max-width: 230px;
    margin: 0 auto;
}

/* ==========================================================================
   SECTION 5: ĐỐI TÁC ĐỒNG HÀNH (PARTNER LOGOS)
   ========================================================================== */
.home-partners-section {
    background: #f8fafc;
    border-top: 1px solid #edf2f7;
    border-bottom: 1px solid #edf2f7;
}

.partners-logo-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 16px;
}

.partner-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 10px 14px;
    min-height: 85px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    box-shadow: 0 2px 8px rgba(0,0,0,0.03);
    transition: all 0.3s ease;
    text-decoration: none !important;
}

.partner-card-img {
    max-width: 100%;
    max-height: 60px;
    width: auto;
    height: auto;
    object-fit: contain;
    display: block;
    margin: 0 auto;
    transition: transform 0.25s ease;
}

.partner-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(11, 78, 162, 0.1);
    border-color: #0B4EA2;
}

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

.partner-seal-icon {
    flex-shrink: 0;
}

.seal-gold { color: #d97706; }
.seal-navy { color: #0B4EA2; }

.partner-info {
    text-align: left;
    display: flex;
    flex-direction: column;
}

.partner-dept {
    font-size: 11px;
    font-weight: 800;
    color: #072b61;
    line-height: 1.2;
}

.partner-sub {
    font-size: 9px;
    color: #64748b;
    font-weight: 600;
    line-height: 1.2;
}

.partner-brand-text {
    font-size: 15px;
    font-weight: 800;
    letter-spacing: 0.3px;
}

.vcb    { color: #007a33; font-family: sans-serif; }
.agri   { color: #800000; font-family: serif; letter-spacing: 1px; }
.bidv   { color: #005a9e; font-family: sans-serif; font-weight: 900; }
.vietin { color: #004b87; font-family: sans-serif; }

/* ==========================================================================
   SECTION 6: CÂU HỎI THƯỜNG GẶP (FAQ 2x2)
   ========================================================================== */
.home-faq-section {
    background: #ffffff;
    padding: 60px 0;
}

.faq-header-flex {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 28px;
}

.faq-view-all-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    font-weight: 700;
    color: #0B4EA2;
    text-decoration: none;
    border: 1px solid #bfdbfe;
    padding: 8px 18px;
    border-radius: 30px;
    transition: all 0.3s ease;
}

.faq-view-all-btn:hover {
    background: #0B4EA2;
    color: #ffffff;
    border-color: #0B4EA2;
}

.faq-accordion-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.faq-item {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.faq-item:hover,
.faq-item.active {
    border-color: #0B4EA2;
    background: #ffffff;
    box-shadow: 0 4px 16px rgba(11, 78, 162, 0.08);
}

.faq-question-btn {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 20px;
    background: transparent;
    border: none;
    cursor: pointer;
    text-align: left;
    font-size: 15px;
    font-weight: 700;
    color: #072b61;
}

.faq-q-indicator {
    color: #FFC928;
    font-size: 12px;
    flex-shrink: 0;
}

.faq-q-text {
    flex: 1;
}

.faq-q-toggle {
    font-size: 18px;
    font-weight: 700;
    color: #0B4EA2;
    flex-shrink: 0;
}

.faq-answer-panel {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.faq-answer-body {
    padding: 0 20px 18px 44px;
    font-size: 13.5px;
    line-height: 1.65;
    color: #475569;
}

/* ==========================================================================
   RESPONSIVE DESIGN (TABLET & MOBILE)
   ========================================================================== */
@media (max-width: 991px) {
    .home-about-grid {
        grid-template-columns: 1fr;
        gap: 36px;
    }

    .puzzle-stage-container {
        flex-direction: column;
        gap: 24px;
    }

    .puzzle-connector-male,
    .puzzle-connector-female,
    .puzzle-connection-indicator {
        display: none;
    }

    .puzzle-stage-container:hover .puzzle-left-piece,
    .puzzle-stage-container:hover .puzzle-right-piece {
        transform: none;
    }

    .partners-logo-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .faq-accordion-grid {
        grid-template-columns: 1fr;
    }

    .process-steps-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
    }

    .process-track-line {
        display: none;
    }
}

@media (max-width: 600px) {
    .home-about-gallery {
        grid-template-columns: 1fr;
    }

    .collage-main-img img {
        height: 260px;
    }

    .collage-sub-imgs {
        flex-direction: row;
    }

    .collage-sub-item img {
        height: 120px;
    }

    .home-pillars-grid {
        grid-template-columns: 1fr;
    }

    .partners-logo-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .process-steps-grid {
        grid-template-columns: 1fr;
    }

    .puzzle-card {
        padding: 24px 20px;
    }

    .faq-header-flex {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }
}


/* ==========================================================================
   MODERN 4-COLUMN FOOTER
   ========================================================================== */
.dcafd-modern-footer {
    background: #072b61;
    color: #cbd5e1;
    position: relative;
    border-top: 3px solid #FFC928;
}

.dcafd-modern-footer .footer-top {
    padding: 50px 0 35px 0;
}

.footer-grid-4col {
    display: grid;
    grid-template-columns: 1.2fr 1.4fr 1fr 1.1fr;
    gap: 36px;
    align-items: start;
}

.footer-col-title {
    color: #ffffff;
    font-size: 15px;
    font-weight: 700;
    margin-bottom: 16px;
    border-left: 3px solid #FFC928;
    padding-left: 10px;
    letter-spacing: 0.3px;
}

.footer-slogan-text {
    color: #FFC928;
    font-weight: 700;
    font-size: 15px;
    margin-bottom: 8px;
}

.footer-brand-desc {
    color: #94a3b8;
    font-size: 13px;
    line-height: 1.6;
}

.footer-quick-links {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-quick-links a {
    color: #cbd5e1;
    text-decoration: none;
    font-size: 13.5px;
    transition: all 0.2s ease;
    display: inline-block;
}

.footer-quick-links a:hover {
    color: #FFC928;
    transform: translateX(4px);
}

.footer-social-icons {
    display: flex;
    gap: 10px;
    margin-bottom: 14px;
}

.social-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    font-weight: 700;
    font-size: 13px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.social-btn:hover {
    transform: translateY(-3px) scale(1.08);
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}

.social-fb   { background: #1877f2; }
.social-yt   { background: #ff0000; }
.social-zalo { background: #0068ff; font-size: 11px; }
.social-in   { background: #0a66c2; }
.social-web  {
    background: #0284c7;
    width: auto !important;
    padding: 0 16px !important;
    border-radius: 20px !important;
    gap: 8px;
    font-size: 13px !important;
    font-weight: 600 !important;
    display: inline-flex !important;
}
.social-web:hover {
    background: #0369a1;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(2, 132, 199, 0.35);
}

.footer-portal-note {
    font-size: 12px;
    color: #94a3b8;
    line-height: 1.55;
}

.footer-bottom-links {
    display: flex;
    align-items: center;
    gap: 10px;
}

.footer-bottom-links a {
    color: #94a3b8;
    text-decoration: none;
    font-size: 13px;
    transition: color 0.2s ease;
}

.footer-bottom-links a:hover {
    color: #FFC928;
}

@media (max-width: 991px) {
    .footer-grid-4col {
        grid-template-columns: repeat(2, 1fr);
        gap: 28px;
    }
}

@media (max-width: 600px) {
    .footer-grid-4col {
        grid-template-columns: 1fr;
        gap: 24px;
    }
    .footer-bottom-inner {
        flex-direction: column;
        align-items: center !important;
        justify-content: center !important;
        text-align: center !important;
        gap: 8px;
    }
}

/* ================================================================
   HERO BANNER TRANG GIỚI THIỆU DCAFD (BRAND BANNER)
   ================================================================ */
.about-hero-banner-wrap {
    position: relative;
    width: 100%;
    background-color: transparent;
    padding: 0 !important;
    margin: 0 !important;
    box-sizing: border-box;
    display: block;
    overflow: hidden;
}

.about-hero-media {
    position: relative;
    width: 100%;
    max-width: 100% !important;
    margin: 0 !important;
    overflow: hidden;
    border-radius: 0 !important;
    box-shadow: none !important;
    background: #ffffff;
}

.about-hero-banner-img {
    width: 100%;
    max-width: 100% !important;
    height: auto !important;
    display: block;
    aspect-ratio: 2170 / 515;
    object-fit: contain;
    margin: 0 !important;
}

.about-hero-action-box {
    position: absolute;
    bottom: 24%;
    left: 6.6%;
    z-index: 5;
    line-height: normal;
}

.about-hero-btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, #FFC928 0%, #f59e0b 100%);
    color: #072b61;
    font-weight: 800;
    font-size: clamp(12px, 1.1vw, 16px);
    padding: clamp(8px, 1vw, 13px) clamp(16px, 1.8vw, 26px);
    border-radius: 9999px;
    text-decoration: none !important;
    box-shadow: 0 4px 15px rgba(245, 158, 11, 0.4), 0 2px 4px rgba(0,0,0,0.1);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.about-hero-btn-primary:hover {
    background: linear-gradient(135deg, #ffd447 0%, #fbbf24 100%);
    color: #041d44;
    transform: translateY(-2px);
    box-shadow: 0 8px 22px rgba(245, 158, 11, 0.55);
}

.about-hero-btn-primary .btn-arrow {
    transition: transform 0.25s ease;
    font-size: 1.15em;
    line-height: 1;
}

.about-hero-btn-primary:hover .btn-arrow {
    transform: translateX(4px);
}

@media (max-width: 768px) {
    .about-hero-action-box {
        bottom: 22%;
        left: 5%;
    }
    .about-hero-btn-primary {
        padding: 6px 14px;
        font-size: 11px;
    }
}

@media (max-width: 480px) {
    .about-hero-action-box {
        bottom: 20%;
        left: 5%;
    }
    .about-hero-btn-primary {
        padding: 4px 10px;
        font-size: 10px;
        gap: 4px;
    }
}
