/* ============================================
   BLAUBERG LANDING PAGE - Final Design v2
   Target: /giai-phap-khi-tuoi/
   Fixed: Alignment, colors, timeline arrows
   ============================================ */

:root {
    --blauberg-navy: #0f2744;
    --blauberg-blue: #1a3d5c;
    --blauberg-red: #e63946;
    --blauberg-gold: #d4a853;
    --fresh-bg: #f0f5fb;
    --fresh-border: #d0dbe8;
    --fresh-text: #333;
    --fresh-radius: 12px;
    --fresh-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
    --content-max: 1140px;
}

/* ---- Base Reset ---- */
.blauberg-landing {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    color: var(--fresh-text);
    line-height: 1.6;
    background: #fff;
}

.blauberg-landing * {
    box-sizing: border-box;
}

/* ---- Full width sections (break out of container) ---- */
.blauberg-fullwidth {
    width: 100vw;
    position: relative;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
    overflow: hidden;
}

/* ---- Consistent Section Container ---- */
.blauberg-section {
    padding: 70px 30px;
    max-width: var(--content-max);
    margin: 0 auto;
}

.section-title {
    font-size: 1.8rem;
    font-weight: 800;
    text-transform: uppercase;
    text-align: center;
    margin-bottom: 45px;
    color: var(--blauberg-navy);
    letter-spacing: 0.01em;
}

/* ============================================
   1. HERO SECTION
   ============================================ */
.hero-section {
    background: linear-gradient(135deg, var(--blauberg-navy) 0%, var(--blauberg-blue) 100%);
    padding: 50px 30px 70px;
    text-align: center;
    color: #fff;
}

.hero-section .hero-title {
    font-size: 2.2rem;
    font-weight: 800;
    margin-bottom: 8px;
    line-height: 1.25;
    color: #fff;
}

.hero-section .hero-subtitle {
    font-size: 1rem;
    opacity: 0.85;
    margin-bottom: 20px;
    color: #fff;
}

.hero-section .hero-cta {
    display: inline-block;
    background: var(--blauberg-red);
    color: #fff !important;
    padding: 12px 30px;
    border-radius: 8px;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.9rem;
    text-decoration: none;
    margin-bottom: 35px;
    transition: transform 0.2s, box-shadow 0.2s;
}

.hero-section .hero-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(230, 57, 70, 0.4);
}

/* Video Frame - 16:9 Responsive */
.hero-video-wrap {
    max-width: 800px;
    margin: 0 auto;
    border-radius: var(--fresh-radius);
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.35);
    border: 4px solid rgba(255, 255, 255, 0.15);
}

.hero-video-wrap .video-responsive {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
}

.hero-video-wrap .video-responsive iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

/* ============================================
   2. PAIN POINTS SECTION
   ============================================ */
.pain-section {
    background: var(--fresh-bg);
    padding: 60px 30px;
}

.pain-container {
    max-width: var(--content-max);
    margin: 0 auto;
    padding: 40px 35px;
    background: #fff;
    border: 1px solid var(--fresh-border);
    border-radius: var(--fresh-radius);
    box-shadow: var(--fresh-shadow);
}

.pain-container .section-title {
    color: var(--blauberg-navy);
    margin-bottom: 35px;
}

.pain-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.pain-card {
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.06);
    border: 1px solid #eef2f7;
    transition: transform 0.2s;
}

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

.pain-card img {
    width: 100%;
    height: 140px;
    object-fit: cover;
}

.pain-card .pain-label {
    padding: 10px 12px;
    font-weight: 600;
    color: var(--blauberg-red);
    font-size: 0.85rem;
    text-align: center;
    background: #fef8f8;
}

/* ============================================
   3. DIFFERENCE SECTION
   ============================================ */
.diff-section {
    background: linear-gradient(180deg, #e8f1fa 0%, #f5f8fc 100%);
    padding: 70px 30px;
}

.diff-container {
    max-width: var(--content-max);
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.diff-content .section-title {
    text-align: left;
    margin-bottom: 25px;
    font-size: 1.6rem;
}

.diff-checklist {
    list-style: none;
    padding: 0;
    margin: 0 0 25px 0;
}

.diff-checklist li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 14px;
    font-size: 0.95rem;
    line-height: 1.5;
}

.diff-checklist li .check-icon {
    flex-shrink: 0;
    width: 22px;
    height: 22px;
    background: var(--blauberg-blue);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    margin-top: 2px;
}

.diff-image {
    text-align: center;
}

.diff-image img {
    max-width: 100%;
    height: auto;
    /* For transparent PNG products */
    filter: drop-shadow(0 10px 30px rgba(0, 0, 0, 0.15));
}

/* ============================================
   4. COMPONENTS GRID
   ============================================ */
.comp-section {
    background: #fff;
    padding: 70px 30px;
}

.comp-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
    max-width: var(--content-max);
    margin: 0 auto;
}

.comp-card {
    background: #fff;
    border-radius: var(--fresh-radius);
    padding: 20px;
    text-align: center;
    box-shadow: var(--fresh-shadow);
    border: 1px solid #eef2f7;
    transition: transform 0.2s;
}

.comp-card:hover {
    transform: translateY(-5px);
}

.comp-card img {
    width: 70px;
    height: 70px;
    object-fit: contain;
    margin-bottom: 12px;
}

.comp-card .comp-name {
    font-weight: 700;
    font-size: 0.85rem;
    color: var(--blauberg-navy);
    line-height: 1.4;
}

/* ============================================
   5. PRINCIPLE TIMELINE - ARROW FLOW STYLE
   ============================================ */
.principle-section {
    background: var(--fresh-bg);
    padding: 70px 30px;
    text-align: center !important;
}

.principle-section .section-title,
h2.blauberg-timeline-title,
.blauberg-landing .blauberg-timeline-title {
    color: var(--blauberg-navy);
    text-align: center !important;
    margin-left: auto !important;
    margin-right: auto !important;
    display: block !important;
    width: 100% !important;
}

.timeline-flow {
    max-width: var(--content-max);
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: flex-start;
    gap: 20px;
    position: relative;
}

.timeline-card {
    background: #fff;
    border-radius: var(--fresh-radius);
    box-shadow: var(--fresh-shadow);
    padding: 25px 20px;
    width: 260px;
    text-align: center !important;
    position: relative;
    border: 1px solid #eef2f7;
}

.timeline-card .step-num {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--blauberg-blue);
    color: #fff;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 0.9rem;
}

.timeline-card .step-img {
    width: 80px;
    height: 80px;
    object-fit: contain;
    margin: 10px auto 15px;
    display: block;
}

.timeline-card .step-title {
    font-weight: 700;
    font-size: 1rem;
    color: var(--blauberg-navy);
    margin-bottom: 8px;
    text-align: center !important;
}

.timeline-card .step-desc {
    font-size: 0.85rem;
    color: #666;
    line-height: 1.5;
    text-align: center !important;
}

/* Arrows between cards */
.timeline-arrow {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--blauberg-blue);
}

.timeline-arrow svg {
    width: 30px;
    height: 30px;
}

/* ============================================
   5b. MODERN PRINCIPLE STEPS V2 - STITCH DESIGN
   ============================================ */
.fresh-principle-steps-v2 {
    background: #fff;
    font-family: 'Roboto', 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    /* Technical grid background */
    background-size: 100px 100px;
    background-image:
        linear-gradient(to right, rgba(0, 74, 153, 0.03) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(0, 74, 153, 0.03) 1px, transparent 1px);
}

.fresh-principle-steps-v2 .steps-header {
    padding-top: 60px;
    padding-bottom: 10px;
    text-align: center;
}

.fresh-principle-steps-v2 .steps-title {
    font-size: 2.2rem;
    font-weight: 900;
    text-transform: uppercase;
    text-align: center;
    margin-bottom: 16px;
    color: var(--blauberg-navy);
    letter-spacing: -0.02em;
}

.fresh-principle-steps-v2 .steps-accent-line {
    width: 80px;
    height: 6px;
    background: #E30613;
    margin: 0 auto;
}

.fresh-principle-steps-v2 .steps-subtitle {
    text-align: center;
    color: #666;
    font-size: 1rem;
    margin-bottom: 30px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    padding: 0 20px;
}

.fresh-principle-steps-v2 .steps-wrapper {
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Step Arrow connector */
.step-arrow {
    display: flex;
    justify-content: center;
    padding: 10px 0;
}

/* Individual Step - Zigzag Layout */
.principle-step {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    padding: 50px 30px;
    width: 100%;
    max-width: 1100px;
}

/* Even steps - reverse layout (image left, content right) */
.principle-step.step-reverse .step-content {
    order: 2;
}

.principle-step.step-reverse .step-image-wrap {
    order: 1;
}

/* Step Content with number + text inline */
.principle-step .step-content-inner {
    display: flex;
    gap: 24px;
    align-items: flex-start;
}

.principle-step .step-number {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    min-width: 56px;
    font-weight: 900;
    font-size: 1.5rem;
    color: #fff;
    flex-shrink: 0;
}

.principle-step .step-text {
    flex: 1;
}

.principle-step .step-title {
    font-size: 1.2rem;
    font-weight: 700;
    text-transform: uppercase;
    line-height: 1.3;
    margin: 0 0 14px 0;
    letter-spacing: -0.02em;
}

.principle-step .step-description {
    font-size: 1.05rem;
    color: #64748b;
    line-height: 1.7;
    margin: 0;
    font-weight: 400;
}

/* Step Image */
.principle-step .step-image-wrap {
    position: relative;
}

.principle-step .step-image-wrap img {
    width: 100%;
    height: auto;
    border: 1px solid #e2e8f0;
    filter: grayscale(100%);
    transition: filter 0.5s ease, transform 0.3s ease;
}

.principle-step .step-image-wrap:hover img {
    filter: grayscale(0%);
    transform: scale(1.01);
}

/* Placeholder for images not yet uploaded */
.step-image-placeholder {
    width: 100%;
    aspect-ratio: 4 / 3;
    background: linear-gradient(135deg, #e2e8f0 0%, #cbd5e1 50%, #94a3b8 100%);
    border: 1px solid #e2e8f0;
}

/* ============================================
   6. DEPLOYMENT GALLERY (HÌNH ẢNH TRIỂN KHAI)
   ============================================ */
.deploy-gallery-section {
    background: linear-gradient(160deg, var(--blauberg-navy) 0%, var(--blauberg-blue) 100%) !important;
    padding: 70px 30px !important;
    max-width: 100% !important;
    width: 100vw !important;
    margin-left: calc(-50vw + 50%) !important;
    margin-right: calc(-50vw + 50%) !important;
    text-align: center !important;
}

.deploy-gallery-section .section-title {
    color: #fff !important;
    text-align: center !important;
    width: 100% !important;
    display: block !important;
}

.deploy-subtitle {
    text-align: center !important;
    color: rgba(255, 255, 255, 0.8) !important;
    font-size: 0.95rem;
    margin-bottom: 40px;
    max-width: 700px;
    margin-left: auto !important;
    margin-right: auto !important;
}

.projects-gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    max-width: var(--content-max);
    margin: 0 auto;
}

.gallery-item {
    position: relative;
    border-radius: var(--fresh-radius);
    overflow: hidden;
    aspect-ratio: 4 / 3;
    cursor: pointer;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.gallery-item:hover img {
    transform: scale(1.08);
}

.gallery-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.7));
    padding: 40px 15px 12px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

.gallery-overlay span {
    color: #fff;
    font-size: 0.8rem;
    font-weight: 600;
}

/* ============================================
   7. PROJECT PORTFOLIO (CÔNG TRÌNH THỰC TẾ)
   ============================================ */
.portfolio-section {
    background: var(--fresh-bg);
    padding: 70px 30px;
}

.portfolio-section .section-title {
    color: var(--blauberg-navy);
}

.portfolio-subtitle {
    text-align: center;
    color: #666;
    font-size: 0.95rem;
    margin-bottom: 40px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
    max-width: var(--content-max);
    margin: 0 auto;
}

.portfolio-card {
    background: #fff;
    border-radius: var(--fresh-radius);
    overflow: hidden;
    box-shadow: var(--fresh-shadow);
    border: 1px solid #eef2f7;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.portfolio-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.12);
}

.portfolio-img {
    position: relative;
    height: 200px;
    overflow: hidden;
}

.portfolio-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

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

.portfolio-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    background: var(--blauberg-blue);
    color: #fff;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.portfolio-info {
    padding: 18px 20px;
}

.portfolio-title {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--blauberg-navy);
    margin: 0 0 10px;
    line-height: 1.3;
}

.portfolio-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 8px;
}

.portfolio-meta .meta-item {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 0.78rem;
    color: #888;
}

.portfolio-meta .meta-item svg {
    flex-shrink: 0;
}

.portfolio-client {
    font-size: 0.78rem;
    color: var(--blauberg-blue);
    font-weight: 600;
}

.btn-portfolio {
    display: inline-block;
    background: transparent;
    color: var(--blauberg-navy) !important;
    padding: 12px 35px;
    border-radius: 8px;
    border: 2px solid var(--blauberg-navy);
    font-weight: 700;
    text-transform: uppercase;
    text-decoration: none;
    font-size: 0.85rem;
    transition: all 0.2s;
}

.btn-portfolio:hover {
    background: var(--blauberg-navy);
    color: #fff !important;
}

/* CTA Button */
.btn-red {
    display: inline-block;
    background: var(--blauberg-red);
    color: #fff !important;
    padding: 14px 40px;
    border-radius: 8px;
    font-weight: 700;
    text-transform: uppercase;
    text-decoration: none;
    transition: all 0.2s;
}

.btn-red:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(230, 57, 70, 0.3);
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 1000px) {

    .projects-gallery-grid,
    .portfolio-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .timeline-flow {
        flex-direction: column;
        align-items: center;
    }

    .timeline-arrow {
        transform: rotate(90deg);
    }

    /* Modern Steps V2 - Stack on tablet */
    .principle-step,
    .principle-step.step-reverse {
        grid-template-columns: 1fr;
        gap: 30px;
        padding: 40px 20px;
    }

    .principle-step.step-reverse .step-content,
    .principle-step.step-reverse .step-image-wrap {
        order: unset;
    }

    .step-arrow {
        display: none;
    }
}

@media (max-width: 768px) {

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

    .diff-container {
        grid-template-columns: 1fr;
    }

    .hero-section .hero-title {
        font-size: 1.6rem;
    }

    .section-title {
        font-size: 1.4rem;
    }

    /* Modern Steps V2 - Mobile adjustments */
    .fresh-principle-steps-v2 .steps-title {
        font-size: 1.6rem;
    }

    .principle-step .step-content-inner {
        gap: 16px;
    }

    .principle-step .step-number {
        width: 44px;
        height: 44px;
        min-width: 44px;
        font-size: 1.2rem;
    }

    .principle-step .step-title {
        font-size: 1.05rem;
    }

    .principle-step .step-description {
        font-size: 0.95rem;
    }
}

@media (max-width: 500px) {

    .pain-grid,
    .comp-grid,
    .projects-gallery-grid,
    .portfolio-grid {
        grid-template-columns: 1fr;
    }

    .timeline-card {
        width: 100%;
    }

    /* Modern Steps V2 - Small mobile */
    .principle-step {
        padding: 30px 15px;
    }

    .principle-step .step-content-inner {
        flex-direction: column;
        gap: 12px;
    }
}