:root {
    --portal-primary: #b71c1c;
    --portal-primary-dark: #8e0000;
    --portal-accent: #f6c344;
    --portal-surface: #fff8f8;
    --portal-text: #281515;
}

body.portal-landing {
    background: #ffffff;
    color: var(--portal-text);
}

.portal-navbar {
    min-height: 82px;
    border-bottom: 1px solid #f2e4e4;
    background: rgba(255, 255, 255, 0.96);
}

.portal-logo {
    max-height: 52px;
    width: auto;
}

.portal-brand {
    color: inherit;
    text-decoration: none;
}

.portal-brand-name {
    color: var(--portal-primary-dark);
    font-size: 1.15rem;
    font-weight: 800;
    line-height: 1.15;
}

.portal-brand-region {
    color: #6d4a4a;
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    line-height: 1.3;
}

.portal-login-button,
.portal-primary-button {
    background: var(--portal-primary);
    border-color: var(--portal-primary);
    color: #fff;
}

.portal-login-button:hover,
.portal-login-button:focus,
.portal-primary-button:hover,
.portal-primary-button:focus {
    background: var(--portal-primary-dark);
    border-color: var(--portal-primary-dark);
    color: #fff;
}

.portal-hero {
    position: relative;
    overflow: hidden;
    padding: 92px 0 104px;
    background: var(--portal-surface);
}

.portal-hero::after {
    position: absolute;
    right: -220px;
    bottom: -260px;
    width: 570px;
    height: 570px;
    border: 82px solid rgba(183, 28, 28, 0.08);
    border-radius: 50%;
    content: "";
}

.portal-eyebrow {
    color: var(--portal-primary);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.portal-title {
    max-width: 730px;
    color: var(--portal-primary-dark);
    font-size: clamp(2.45rem, 5vw, 4.6rem);
    font-weight: 800;
    letter-spacing: -0.045em;
    line-height: 1.04;
}

.portal-lead {
    max-width: 570px;
    color: #6d4a4a;
    font-size: 1.12rem;
    line-height: 1.75;
}

.portal-primary-button {
    box-shadow: 0 12px 24px rgba(183, 28, 28, 0.2);
}

.portal-hero-panel {
    position: relative;
    z-index: 1;
    min-height: 330px;
}

.portal-hero-image {
    display: block;
    width: 100%;
    height: auto;
}

.portal-panel-number {
    color: rgba(255, 255, 255, 0.14);
    font-size: 7.5rem;
    font-weight: 800;
    letter-spacing: -0.08em;
    line-height: 0.8;
}

.portal-services {
    padding: 96px 0;
}

.portal-section-title {
    color: var(--portal-primary-dark);
    font-size: clamp(2rem, 3vw, 2.8rem);
    font-weight: 800;
    letter-spacing: -0.035em;
}

.portal-service-card {
    height: 100%;
    padding: 30px;
    border: 1px solid #f0e5e5;
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 8px 22px rgba(43, 16, 16, 0.04);
    transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.portal-service-card:hover {
    transform: translateY(-5px);
    border-color: #e6b6b6;
    box-shadow: 0 16px 32px rgba(94, 15, 15, 0.1);
}

.portal-service-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 54px;
    height: 54px;
    border-radius: 14px;
    background: #fce8e8;
    color: var(--portal-primary);
}

.portal-service-image {
    width: 54px;
    height: 54px;
    object-fit: contain;
}

.portal-service-description {
    display: -webkit-box;
    overflow: hidden;
    color: #735a5a;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
}

.portal-service-link {
    color: var(--portal-primary);
    font-size: 0.9rem;
    font-weight: 700;
    text-decoration: none;
}

.portal-service-link:hover {
    color: var(--portal-primary-dark);
}

.portal-footer {
    background-color: #361010;
    background-image: linear-gradient(rgba(54, 16, 16, .88), rgba(54, 16, 16, .88)),
        url('../uploads/beranda/footer.png');
    background-position: center;
    background-size: cover;
    padding: 30px 0;
    color: rgba(255, 255, 255, 0.7);
}

@media (max-width: 991.98px) {
    .portal-hero {
        padding: 68px 0 78px;
    }

    .portal-hero-panel {
        min-height: 260px;
    }
}

@media (max-width: 575.98px) {
    .portal-navbar {
        min-height: 70px;
    }

    .portal-logo {
        max-height: 42px;
    }

    .portal-brand-name {
        font-size: 0.95rem;
    }

    .portal-brand-region {
        font-size: 0.65rem;
    }

    .portal-hero {
        padding: 54px 0 64px;
    }

    .portal-hero-panel {
        min-height: 225px;
    }

    .portal-services {
        padding: 64px 0;
    }
}
