.portal-page {
    overflow-x: hidden;
}

.portal-page section[id] {
    scroll-margin-top: 76px;
}

/* Navbar */
.portal-page .navbar > .container {
    min-height: 70px;
}

.portal-page .navbar-brand {
    flex-shrink: 0;
}

.portal-page .navbar-nav {
    align-items: center;
    gap: 2px;
}

.portal-page .navbar-nav .nav-link {
    padding: 10px 12px;
}

.portal-page .navbar-nav .btn {
    min-height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

/* Hero and statistics */
.portal-page #hero {
    padding: 88px 0 64px !important;
}

.portal-page #hero h1 {
    max-width: 720px;
    margin-bottom: 0;
    font-size: clamp(2.25rem, 4vw, 3rem) !important;
}

.portal-page #hero .col-lg-7 > p {
    max-width: 690px;
    margin-top: 18px !important;
    line-height: 1.7 !important;
}

.portal-page #hero .col-lg-7 > div:last-child {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 26px !important;
}

.portal-page #hero .col-lg-7 > div:last-child .btn {
    margin: 0 !important;
}

.portal-page #hero .col-lg-5 > div {
    width: min(100%, 300px);
    margin-inline: auto;
    padding: 28px !important;
}

.portal-page #hero .col-lg-5 > div > i {
    font-size: 64px !important;
}

.portal-page #stats {
    padding: 30px 0 !important;
}

.portal-page #stats .row > [class*="col-"] > div {
    min-height: 92px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 12px 8px !important;
}

.portal-page #stats h3 {
    font-size: 30px !important;
}

.portal-page #stats p {
    line-height: 1.45;
}

/* Shared landing section rhythm */
.portal-page #announcement {
    padding: 48px 0 !important;
}

.portal-page #about,
.portal-page #services,
.portal-page #info-layanan,
.portal-page #flow,
.portal-page #faq,
.portal-page #contact {
    padding: 64px 0 !important;
}

.portal-page #services > .container > p,
.portal-page #flow > .container > p,
.portal-page #faq > .container > p {
    margin-bottom: 36px !important;
}

/* Announcement */
.portal-page #announcement .row {
    --bs-gutter-y: 16px;
}

.portal-page #announcement .row > [class*="col-"] {
    display: flex;
    margin-bottom: 0 !important;
}

.portal-page #announcement .row > [class*="col-"] > div {
    width: 100%;
    padding: 16px 20px !important;
    border: 1px solid #e9ecef;
    border-left-width: 4px;
    box-shadow: 0 3px 14px rgba(0, 0, 0, .04);
}

/* About */
.portal-page #about .row.align-items-xl-center {
    --bs-gutter-y: 32px;
}

.portal-page #about .content {
    padding-right: 32px;
}

.portal-page #about .content h2 {
    font-size: 30px !important;
}

.portal-page #about .content h3 {
    margin-bottom: 16px !important;
    font-size: 20px !important;
}

.portal-page #about .content p {
    margin-bottom: 0;
    line-height: 1.7 !important;
}

.portal-page #about .icon-boxes {
    --bs-gutter-y: 20px;
}

.portal-page #about .icon-box-item {
    padding: 22px 20px;
}

.portal-page #about .icon-box-item:hover {
    transform: translateY(-5px);
}

/* Service and information cards */
.portal-page #services .row,
.portal-page #info-layanan .row,
.portal-page #flow .row {
    --bs-gutter-y: 16px;
}

.portal-page #services .row > [class*="col-"],
.portal-page #info-layanan .row > [class*="col-"],
.portal-page #flow .row > [class*="col-"] {
    display: flex;
    margin-bottom: 0 !important;
}

.portal-page #services .row > [class*="col-"] > div {
    width: 100%;
    padding: 26px !important;
}

.portal-page #services h6,
.portal-page #info-layanan h6,
.portal-page #flow h5 {
    line-height: 1.4;
}

.portal-page #services p,
.portal-page #info-layanan p,
.portal-page #flow p {
    line-height: 1.6 !important;
}

.portal-page #info-layanan > .container > div:first-child {
    margin-bottom: 32px !important;
}

.portal-page #info-layanan .row > [class*="col-"] > div {
    width: 100%;
    padding: 24px 20px !important;
}

.portal-page #info-layanan .row > [class*="col-"] > div > div:first-child {
    width: 62px !important;
    height: 62px !important;
}

.portal-page #info-layanan .row > [class*="col-"] > div > div:first-child i {
    font-size: 27px !important;
}

/* Complaint flow */
.portal-page #flow .row > [class*="col-"] > div {
    width: 100%;
    padding: 24px !important;
}

.portal-page #flow .row > [class*="col-"] > div > div:first-child {
    width: 60px !important;
    height: 60px !important;
    margin-bottom: 16px !important;
    font-size: 24px !important;
}

/* FAQ */
.portal-page #faq .accordion {
    width: min(100%, 800px);
}

.portal-page #faq .accordion-button {
    min-height: 56px;
    line-height: 1.5;
}

.portal-page #faq .accordion-body {
    padding: 16px 20px 20px;
    line-height: 1.65;
}

/* Contact and footer */
.portal-page #contact > .container > .row {
    --bs-gutter-x: 48px;
    --bs-gutter-y: 32px;
    align-items: center;
}

.portal-page #contact .col-lg-6 > p {
    margin-bottom: 24px !important;
}

.portal-page #contact .col-lg-6:last-child > div {
    padding: 26px !important;
}

.portal-page footer {
    padding: 24px 0 !important;
}

.portal-page footer .row {
    align-items: center;
    row-gap: 8px;
}

@media (max-width: 1199.98px) {
    .portal-page #about .content {
        padding-right: 0;
    }
}

@media (max-width: 991.98px) {
    .portal-page .navbar > .container {
        min-height: 64px;
    }

    .portal-page .navbar-collapse {
        max-height: calc(100vh - 70px);
        padding: 12px 0 18px;
        overflow-y: auto;
    }

    .portal-page .navbar-nav {
        align-items: stretch;
        gap: 4px;
    }

    .portal-page .navbar-nav .nav-item {
        margin-left: 0 !important;
    }

    .portal-page .navbar-nav .btn {
        width: 100%;
    }

    .portal-page #hero {
        padding: 72px 0 58px !important;
    }
}

@media (max-width: 767.98px) {
    .portal-page #announcement,
    .portal-page #about,
    .portal-page #services,
    .portal-page #info-layanan,
    .portal-page #flow,
    .portal-page #faq,
    .portal-page #contact {
        padding: 52px 0 !important;
    }

    .portal-page #stats .row > [class*="col-"] > div {
        min-height: 84px;
    }

    .portal-page #stats .row > [class*="col-"]:last-child {
        margin-inline: auto;
    }

    .portal-page #services > .container > p,
    .portal-page #flow > .container > p,
    .portal-page #faq > .container > p {
        margin-bottom: 30px !important;
    }
}

@media (max-width: 575.98px) {
    .portal-page {
        padding-top: 64px;
    }

    .portal-page .navbar-brand {
        gap: 9px !important;
        font-size: 19px !important;
    }

    .portal-page .navbar-brand img,
    .portal-page .navbar-brand > div:first-child:not(:last-child) {
        max-width: 40px;
        height: 40px !important;
    }

    .portal-page .navbar-brand small {
        font-size: 10px !important;
    }

    .portal-page #hero {
        padding: 58px 0 50px !important;
    }

    .portal-page #hero h1 {
        font-size: clamp(2rem, 10vw, 2.45rem) !important;
    }

    .portal-page #hero .col-lg-7 > p {
        font-size: 16px !important;
        line-height: 1.65 !important;
    }

    .portal-page #hero .col-lg-7 > div:last-child .btn {
        width: 100%;
        padding-inline: 20px !important;
    }

    .portal-page #stats {
        margin-top: -20px !important;
        padding: 24px 0 !important;
    }

    .portal-page #stats h3 {
        font-size: 27px !important;
    }

    .portal-page #stats p {
        font-size: 13px !important;
    }

    .portal-page #announcement,
    .portal-page #about,
    .portal-page #services,
    .portal-page #info-layanan,
    .portal-page #flow,
    .portal-page #faq,
    .portal-page #contact {
        padding: 44px 0 !important;
    }

    .portal-page #about .content h2,
    .portal-page #services h2,
    .portal-page #flow h2,
    .portal-page #faq h2,
    .portal-page #contact h2 {
        font-size: 27px !important;
    }

    .portal-page #services .row > [class*="col-"] > div,
    .portal-page #flow .row > [class*="col-"] > div {
        padding: 22px !important;
    }

    .portal-page #contact > .container > .row {
        --bs-gutter-x: 24px;
    }

    .portal-page footer {
        padding: 20px 0 !important;
        text-align: center;
    }

    .portal-page footer .text-md-end {
        text-align: center !important;
    }
}
