.hero-section {
    padding-top: 100px;
}

.hero-section .hero-message {
    padding: 80px 0 90px;
    max-width: 610px;
}

.homepage-2 .banner-section.hero-section h1 {
    font-size: 2.55em;
    font-weight: 800;
    line-height: 1.2;
    text-align: left;
    padding-top: 0;
    margin-bottom: 0;
}

.hero-subtitle {
    font-size: 1em;
    color: rgba(31, 31, 57, 0.85);
    line-height: 1.65;
    margin: 24px 0 34px;
}

.hero-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    background-color: #0E7DFF;
    color: #fff;
    font-size: 0.9em;
    font-weight: 700;
    text-decoration: none;
    min-height: 62px;
    padding: 0 32px;
    transition: background-color 0.2s ease-in-out, transform 0.2s ease-in-out;
}

.hero-cta:hover {
    background-color: #005fcf;
    transform: translateY(-2px);
}

.hero-section .banner-img {
    display: flex;
    justify-content: center;
}

.how-tabs-section {
    margin-top: 130px;
}

.how-tabs-section .section-title {
    margin-bottom: 28px;
}

.how-tabs {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
    margin-bottom: 26px;
    position: relative;
    z-index: 2;
}

.how-tab-btn {
    border: 2px solid rgba(31, 31, 57, 0.2);
    background-color: #fff;
    color: #1F1F39;
    border-radius: 14px;
    font-size: 0.82em;
    font-weight: 700;
    line-height: 1.3;
    min-height: 58px;
    padding: 0 24px;
    cursor: pointer;
    transition: all 0.2s ease-in-out;
}

.how-tab-btn.active {
    border-color: #0E7DFF;
    background-color: #0E7DFF;
    color: #fff;
}

.how-tab-panels {
    background-color: #FFF0E9;
    border-radius: 24px;
    padding: 42px 50px;
    margin-top: 8px;
    position: relative;
    z-index: 1;
}

.how-tab-panel {
    display: block;
}

.how-tab-panel[hidden] {
    display: none !important;
}

.how-tab-title {
    font-size: 1.45em;
    line-height: 1.35;
    margin-bottom: 20px;
}

.how-steps {
    margin: 0;
    padding-left: 24px;
}

.how-steps li {
    margin-bottom: 14px;
    color: rgba(31, 31, 57, 0.85);
    font-size: 0.92em;
    line-height: 1.55;
}

.how-steps li strong {
    color: #1F1F39;
}

.how-copy p {
    margin: 0 0 14px;
    color: rgba(31, 31, 57, 0.85);
    font-size: 0.92em;
    line-height: 1.55;
}

.how-copy p:last-child {
    margin-bottom: 0;
}

.how-copy p strong {
    color: #1F1F39;
}

.digital-id-visual {
    background-color: #fff;
    border-radius: 18px;
    padding: 18px;
    text-align: center;
    box-shadow: 0 15px 30px rgba(31, 31, 57, 0.08);
}

.digital-id-visual img {
    border-radius: 12px;
    max-width: 260px;
}

.digital-id-visual span {
    display: block;
    margin-top: 14px;
    color: rgba(31, 31, 57, 0.82);
    font-size: 0.8em;
    font-weight: 600;
}

.why-rufa-section {
    margin-top: 440px !important;
    /* Fixed overlap and reached 120px gap */
}

.why-rufa-section .why-onir-content {
    padding: 80px 60px 0;
    /* Reverted excessive padding here */
}

.why-rufa-section {
    padding-bottom: 60px !important;
    /* Balanced for 120px total gap */
}

section.faq {
    padding-top: 60px !important;
    /* Balanced for 120px total gap */
}

.why-rufa-section .why-cards {
    margin: 55px 0 0;
}

.why-rufa-section .why-cards p {
    padding: 0 22px;
}

.why-rufa-section .why-cards .row {
    row-gap: 20px;
}

.why-rufa-section .why-cards .why-feature {
    margin-left: 0;
    width: 100%;
    height: auto;
    min-height: 220px;
    padding: 40px 25px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    border: 2px solid #FFF0E9;
    border-radius: 20px;
    background-color: #fff;
    transition: transform 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
    text-align: center;
}

.why-feature:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(31, 31, 57, 0.08);
}

.why-feature img {
    margin-bottom: 20px;
}

.why-feature h3 {
    font-size: 1.2em !important;
    font-weight: 700 !important;
    margin: 0 0 12px 0 !important;
    color: #1F1F39;
}

.why-feature div {
    font-size: 0.82em;
    line-height: 1.5;
    color: rgba(31, 31, 57, 0.85);
    padding: 0 10px;
}

.footer-legal {
    margin-top: 32px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.24);
    text-align: center;
    font-size: 0.75em;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.88);
}

@media screen and (max-width: 1199px) {
    .homepage-2 .banner-section.hero-section h1 {
        font-size: 2em;
    }

    .hero-section .hero-message {
        padding: 60px 0;
    }

    .how-tab-panels {
        padding: 34px 34px;
    }

    .why-rufa-section .why-onir-content {
        padding: 70px 32px 0;
    }
}

@media screen and (max-width: 991px) {
    .hero-section {
        padding-top: 80px;
    }

    .hero-section .hero-message {
        max-width: 100%;
        padding: 45px 0 25px;
        text-align: center;
    }

    .homepage-2 .banner-section.hero-section h1 {
        text-align: center;
        font-size: 1.8em;
    }

    .hero-subtitle {
        margin-bottom: 28px;
    }

    .hero-section .banner-img {
        margin-top: 10px;
    }

    .how-tabs-section {
        margin-top: 90px;
    }

    .how-tab-title {
        font-size: 1.2em;
    }

    .digital-id-visual {
        margin-top: 22px;
    }

    .why-rufa-section {
        margin-top: 150px;
    }

    .why-rufa-section .why-cards {
        margin-top: 35px;
    }

    .why-rufa-section .why-cards .row {
        row-gap: 20px;
    }
}

@media screen and (max-width: 767px) {
    .homepage-2 .banner-section.hero-section h1 {
        font-size: 1.5em;
    }

    .hero-subtitle {
        font-size: 0.84em;
        line-height: 1.55;
    }

    .hero-cta {
        width: 100%;
    }

    .how-tab-btn {
        width: 100%;
        min-height: 52px;
    }

    .how-tab-panels {
        padding: 24px 20px;
    }

    .how-tab-title {
        font-size: 1em;
        margin-bottom: 14px;
    }

    .how-steps {
        padding-left: 18px;
    }

    .how-steps li {
        font-size: 0.8em;
        margin-bottom: 10px;
    }

    .how-copy p {
        font-size: 0.8em;
        margin-bottom: 10px;
    }

    .why-rufa-section .why-onir-content {
        padding: 45px 18px 0;
    }

    .why-rufa-section .why-cards .row {
        row-gap: 20px;
    }

    .why-rufa-section .why-cards p {
        padding: 0;
    }
}
