:root {
    --primary: #5b4bdb;
    --primary-dark: #4134a7;
    --text-dark: #202333;
    --soft-bg: #f6f7fb;
}

body {
    font-family: "Inter", "Segoe UI", Arial, sans-serif;
    background: var(--soft-bg);
    color: var(--text-dark);
}

.portal-navbar {
    background: linear-gradient(135deg, #302b63, #5b4bdb);
    min-height: 70px;
    box-shadow: 0 4px 20px rgba(48, 43, 99, .18);
}

.navbar-brand {
    letter-spacing: .8px;
}

.hero-section {
    background:
        radial-gradient(circle at 15% 20%, rgba(255,255,255,.15), transparent 30%),
        radial-gradient(circle at 85% 80%, rgba(255,255,255,.12), transparent 30%),
        linear-gradient(135deg, #302b63, #5b4bdb 55%, #7b6ee8);
    color: white;
    padding: 70px 20px 85px;
}

.hero-icon {
    width: 70px;
    height: 70px;
    margin: 0 auto 20px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255,255,255,.14);
    border: 1px solid rgba(255,255,255,.22);
    font-size: 30px;
}

.section-label {
    color: var(--primary);
    font-size: .78rem;
    font-weight: 800;
    letter-spacing: 2px;
}

.portal-card {
    background: #fff;
    border: 0;
    border-radius: 22px;
    overflow: hidden;
    box-shadow: 0 10px 35px rgba(34, 36, 60, .08);
    transition: transform .25s ease, box-shadow .25s ease;
}

.portal-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 18px 45px rgba(34, 36, 60, .15);
}

.card-image-wrapper {
    height: 245px;
    position: relative;
    overflow: hidden;
    background: #e9eaf2;
}

.card-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .4s ease;
}

.portal-card:hover .card-image-wrapper img {
    transform: scale(1.06);
}

.image-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(32, 30, 75, .15);
    opacity: 0;
    transition: opacity .25s ease;
    color: #fff;
    font-size: 48px;
}

.portal-card:hover .image-overlay {
    opacity: 1;
}

.card-title {
    color: #252638;
}

.btn-portal {
    border: 0;
    border-radius: 12px;
    padding: 12px 18px;
    color: #fff;
    font-weight: 700;
    background: linear-gradient(135deg, var(--primary), #7668e9);
    box-shadow: 0 7px 18px rgba(91, 75, 219, .22);
}

.btn-portal:hover {
    color: #fff;
    background: linear-gradient(135deg, var(--primary-dark), var(--primary));
    transform: translateY(-1px);
}

.portal-footer {
    margin-top: 50px;
    padding: 35px 0;
    background: #20213a;
    color: rgba(255,255,255,.75);
}

@media (max-width: 576px) {
    .hero-section {
        padding: 50px 18px 65px;
    }

    .hero-section h1 {
        font-size: 2rem;
    }

    .card-image-wrapper {
        height: 210px;
    }
}
