.header-sec-gallery {
    height: 50vh;
}
.sec-gallery .title-sec-hero__website{
    max-width: 910px;
}
.sec-gallery .subtitle-sec-hero{
    max-width: 410px;
}
.cards {
    position: relative;
    display: flex;
    height: 40vh;
    perspective: 1000px;
    opacity: 0;
    margin-top: auto;
    margin-bottom: 0;
}

.card {
    position: absolute;
    max-width: 320px;
    min-width: 160px;
    width: 25%;
    aspect-ratio: 9/14;
    border-radius: clamp(20px, 2.5vw, 40px);
    background: #f0f0f0;
    left: 50%;
    top: 0;
    transform: translateX(-50%);
    box-shadow: 0px 16.5px 22.11px 0px #00000024;
}

.card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: clamp(20px, 2.5vw, 40px);
    overflow: hidden;
}

.card .tag {
    position: absolute;
    top: -30px;
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    background: linear-gradient(to right, #3b82f6, #06b6d4);
    color: white;
    font-size: 0.8rem;
    font-weight: 600;
    border-radius: 9999px;
    padding: 0.25rem 0.75rem;
    opacity: 0;
    transition: all 0.35s ease;
    pointer-events: none;
    z-index: 99999999999;
}

.card:hover img {
    filter: brightness(1.025);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.card:hover .tag {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}
.sec-gallery__inner{
    flex: 1;
}
/* Responsive */
@media (max-width: 768px) {
    .header-sec-gallery{
        height: auto;
    }

    .cards {
        height: auto;
    }
    .card .tag {
        font-size: 0.7rem;
        top: -24px;
    }
}

/* GRID 3-cols x 2-rows */
.solutions-grid {
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: auto auto;
    gap: 20px;
    align-items: stretch; /* đảm bảo card cao đều nhau */
}

/* card base */
.solution-card {
    border-radius: 20px;
    padding: var(--solution-pd);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.solution-card .union {
    position: absolute;
    top: 50%;
    left: 0;
    transform: translateY(-50%);
    height: 40%;
    width: auto;
    z-index: 2;
}

/* image layer nằm trên chữ */
.solution-img {
    pointer-events: none;
    position: relative;
    z-index: 4;
}

.solution-img img {
    width: 70%;
    height: auto;
}

/* content phía dưới ảnh */
.solution-content {
    position: relative;
    z-index: 3;
}

.solution-content h3 {
    font-weight: 700;
    font-size: clamp(1.25rem, 1.775vw, 1.625rem);
    line-height: 1.2;
    vertical-align: middle;
}

.solution-content p {
    font-weight: 300;
    font-size: clamp(0.875rem, 1.1vw, 1rem);
    vertical-align: middle;
}

/* màu / gradient giống mẫu */
.solution-card.concept {
    --solution-pd: 30px;
    background: linear-gradient(135deg, #E2E9FF 25%, #F3F4F6 60.36%, #E2E9FF 95.71%);
}

.solution-card.concept::before,
.solution-card.concept::after {
    background: #0143de;
    filter: blur(80px);
    width: 160px;
    height: 160px;
}

.solution-card::before,
.solution-card::after {
    content: "";
    position: absolute;
    border-radius: 50%;
    z-index: 1;
}

/* quầng trên trái */
.solution-card::before {
    top: -40px;
    left: -40px;
}

/* quầng dưới phải */
.solution-card::after {
    bottom: -40px;
    right: -40px;
}

.solution-card.library {
    background: linear-gradient(135deg, #F3F4F6 25%, #F7FEE7 60.36%, #DCFCE7 95.71%);
    --solution-pd: 20px;
    flex-direction: column-reverse;
}

.solution-card.library::before,
.solution-card.library::after {
    background: #CAF205;
    filter: blur(30px);
    width: 50%;
    height: 60%;
}

.light-square-pattern {
    position: absolute;
    right: 0;
    bottom: 0;
    z-index: 2;
}

.solution-card.communication {
    background: linear-gradient(135deg, #F3F4F6 25%, #F3F4F6 70.37%, #EEF0EC 95.71%);
    color: #07220f;
    --solution-pd: 20px;
}

.solution-card.communication .light-square-pattern {
    top: 0;
    left: 0;
    bottom: auto;
    right: auto;
}

.solution-card.communication::before {
    background: #CAF205;
    filter: blur(30px);
    width: 150%;
    height: 60%;
}

.solution-card.communication::before {
    top: -10px;
    left: 50%;
    transform: translateX(-50%);
}

.solution-card.execution {
    background: linear-gradient(135deg, #0C00DE 25%, #000000 60.36%, #003EFF 95.71%);
    --solution-pd: 30px;
}

.solution-card.execution .solution-content {
    padding-bottom: 20%;
}

.solution-card.execution .solution-img {
    position: absolute;
    display: flex;
    justify-content: flex-end;
    align-items: flex-end;
    width: 100%;
    bottom: 0;
    right: 0;
    z-index: 5;
}

.solution-card.execution .solution-svg {
    display: flex;
    justify-content: flex-end;
}

.solution-card.concept {
    grid-column: 1 / 3;
    grid-row: 1 / 2;
}

.solution-card.library {
    grid-column: 3 / 4;
    grid-row: 1 / 2;
}

.solution-card.communication {
    grid-column: 1 / 2;
    grid-row: 2 / 3;
}

.solution-card.execution {
    grid-column: 2 / 4;
    grid-row: 2 / 3;
}

/* Responsive: collapse thành 1 cột (giữ thứ tự hợp lý) */
@media (max-width: 992px) {
    .solutions-grid {
        grid-template-columns: 1fr;
        grid-auto-rows: auto;
        gap: 24px;
    }

    .solution-card {
        padding: 28px;
        grid-column: auto !important;
        grid-row: auto !important;
    }
    .solution-img img {
        width: 85%;
        height: auto;
    }
}
@media (max-width: 768px) {
    .card:nth-child(1),
    .card:nth-child(5) {
        display: none !important;
    }
    .sec-gallery__inner .cards{
        margin-top: 50px;
    }
    .solution-img img {
        width: 100%;
    }
}

