/* Portal Page Specific Styles */

/* 1. Hero Section - "Connected Health" Theme */
.portal-hero {
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    padding: 120px 0 80px;
    position: relative;
    overflow: hidden;
}

.portal-hero::before {
    /* Subtle background texture */
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 100%;
    height: 200%;
    background-image: radial-gradient(#cbd5e1 1px, transparent 1px);
    background-size: 40px 40px;
    opacity: 0.3;
    transform: rotate(15deg);
    z-index: 0;
}

.portal-hero .container {
    position: relative;
    z-index: 1;
}

.portal-hero-img {
    border-radius: 20px;
    box-shadow: 0 25px 60px -15px rgba(0, 0, 0, 0.2);
    border: 8px solid #fff;
    transition: transform 0.4s ease;
}

.portal-hero-img:hover {
    transform: translateY(-8px) scale(1.01);
}

.portal-hero .badge {
    letter-spacing: 1px;
    font-weight: 700;
    font-size: 0.8rem;
    padding: 0.6em 1.25em;
    background-color: #e0f2fe !important;
    /* Light sky blue */
    color: #0284c7 !important;
    /* Deep sky blue */
    border: none !important;
}

/* 2. Feature Cards - "Clean & Easy" */
.feature-icon-circle {
    width: 60px;
    height: 60px;
    background: #e0f2fe;
    border-radius: 16px;
    /* Soft square */
    display: flex;
    align-items: center;
    justify-content: center;
    color: #0284c7;
    font-size: 1.75rem;
    margin-bottom: 25px;
    transition: all 0.3s ease;
}

.cm-card.custom-hover {
    background: #fff;
    padding: 35px;
    border-radius: 20px;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
    /* Subtle start */
}

.cm-card.custom-hover:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

.cm-card.custom-hover:hover .feature-icon-circle {
    background: #0284c7;
    color: #fff;
    transform: rotate(5deg);
}

.cm-card h4 {
    font-weight: 700;
    font-size: 1.25rem;
}

/* 3. Floating Decoration Element */
.hero-floating-card {
    background: #fff;
    padding: 1.25rem;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    position: absolute;
    bottom: -30px;
    left: -30px;
    max-width: 240px;
    border-left: 5px solid #0ea5e9;
    /* Sky Blue accent */
    animation: float 4s ease-in-out infinite;
    z-index: 2;
}

@keyframes float {
    0% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-10px);
    }

    100% {
        transform: translateY(0px);
    }
}

/* 4. Mobile App Section */
.portal-app-section {
    background: #0f172a;
    /* Slate 900 */
    position: relative;
    overflow: hidden;
    color: #fff;
}

.portal-app-circle-bg {
    position: absolute;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(56, 189, 248, 0.15) 0%, transparent 70%);
    border-radius: 50%;
    top: 50%;
    right: -10%;
    transform: translateY(-50%);
    z-index: 0;
}

.app-store-btn {
    display: inline-flex;
    align-items: center;
    background: #000;
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    padding: 10px 20px;
    transition: all 0.3s ease;
    text-decoration: none;
}

.app-store-btn:hover {
    background: #334155;
    transform: translateY(-3px);
    color: #fff;
    border-color: #fff;
}

.app-store-icon {
    font-size: 2rem;
    margin-right: 12px;
}

.app-store-text span {
    display: block;
    font-size: 0.7rem;
    opacity: 0.8;
    line-height: 1;
}

.app-store-text h6 {
    margin: 0;
    font-size: 1rem;
    font-weight: 600;
}

/* 5. Security Section */
.security-card {
    text-align: center;
    padding: 40px 30px;
    background: #f8fafc;
    border-radius: 20px;
    border: 1px solid #e2e8f0;
    transition: all 0.3s ease;
}

.security-card:hover {
    background: #fff;
    box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.08);
    transform: translateY(-5px);
    border-color: #cbd5e1;
}

.security-icon {
    font-size: 3rem;
    color: #64748b;
    margin-bottom: 20px;
}