/* Portal Specific Styles */
.portal-card-container {
    height: 100%;
    display: flex;
    flex-direction: column;
}

.portal-card {
    background: #fff;
    border: none;
    border-radius: 10px;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    border-top: 4px solid transparent;
    height: 100%;
    display: flex;
    flex-direction: column;
    margin-bottom: 0;
}

.portal-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
    border-top-color: var(--primary);
}

.portal-icon {
    width: 70px;
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border-radius: 50%;
    margin: 0 auto 20px;
    color: white;
    font-size: 28px;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.portal-card:hover .portal-icon {
    transform: scale(1.1) rotate(5deg);
}

.portal-card .card-body {
    padding: 30px 20px;
    text-align: center;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.portal-card .card-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 15px;
    min-height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.portal-card .card-text {
    color: #666;
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 0;
    flex-grow: 1;
    display: flex;
    align-items: center;
}

/* Equal height untuk row */
.row.g-4 {
    display: flex;
    flex-wrap: wrap;
}

.row.g-4>[class*='col-'] {
    display: flex;
    flex-direction: column;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .portal-card .card-title {
        min-height: auto;
        font-size: 1.1rem;
    }

    .portal-icon {
        width: 60px;
        height: 60px;
        font-size: 24px;
    }
}