/* ==========================================================================
   hero4
   ========================================================================== */
.hero4-section {
    width:100%;
}

.hero4-inner {
    width:80%;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 50px;
}

.hero4-title {
    font-size: 38px;
    font-weight: 800;
    line-height: 1.05;
    margin: 0;
}

.hero4-body {
    display: flex;
    align-items: stretch;
    gap: 40px;
}

.hero4-body.right { flex-direction: row-reverse; }

.hero4-img-wrap {
    width:50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero4-img-wrap img {
    width: 100%;
    aspect-ratio: 16 / 9;
    border-radius: 25px;
    object-fit: cover;
    display: block;
}

.hero4-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 20px;
    padding: 10px 0;
}

.hero4-content h2,
.hero4-content h3 {
    font-size: 1.2rem;
    font-weight: 700;
    margin: 0;
    line-height: 1.3;
}

.hero4-text {
    font-size: 16px;
    color: #555;
    line-height: 1.7;
    font-weight: 300;
}

.hero4-compact {
    width: 90%;
    box-sizing: border-box;
    border-radius: 24px;
    overflow: hidden;
    margin: 20px auto;
}

.hero4-tags {
    display: flex;
    flex-wrap: wrap;
    justify-content: start;
    gap: 10px;
}

.hero4-tag-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background-color: #ffffff;
    color: #111111;
    font-weight: 600;
    font-size: 0.95rem;
    line-height: 1.2;
    padding: 10px 24px;
    border-radius: 50px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
    user-select: none;
}

.hero4-compact .hero4-tags {
    padding-left: 0;
    padding-right: 0;
}

@media (max-width: 800px) {
    .hero4-inner { width: 90%; gap: 30px; }
    .hero4-title { font-size: 28px; }
    .hero4-body,
    .hero4-body.right { flex-direction: column; min-height: auto; }
    .hero4-img-wrap { flex: none; height: 260px; }
    .hero4-content button { width: 100%; justify-content: center; }
    .hero4-compact {
        padding: 20px;
        border-radius: 18px;
    }

    .hero4-tags {
        gap: 8px;
    }

    .hero4-tag-pill {
        font-size: 0.85rem;
        padding: 8px 18px;
    }
}