.portal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(5px);
    z-index: 2000;
    animation: portalFadeIn 0.3s ease;
}

.portal-overlay.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

.portal-box {
    background: white;
    border-radius: 20px;
    max-width: 600px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    animation: portalSlideUp 0.4s ease;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.portal-header {
    background: linear-gradient(135deg, #2563eb 0%, #0074D9 100%);
    padding: 30px;
    border-radius: 20px 20px 0 0;
    text-align: center;
    position: relative;
}

.portal-logo {
    width: 80px;
    height: 80px;
    margin: 0 auto 15px;
    background: rgba(255, 255, 255, 0.486);
    border-radius: 50%;
    padding: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.portal-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.portal-header h2 {
    color: white;
    font-size: 26px;
    margin-bottom: 8px;
    font-weight: 700;
}

.portal-header p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 14px;
}

.portal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    font-size: 24px;
    cursor: pointer;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.portal-close:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: rotate(90deg);
}

.portal-body {
    padding: 35px;
}

.portal-features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 15px;
    margin-bottom: 30px;
}

.portal-feature {
    display: flex;
    align-items: start;
    gap: 12px;
    padding: 15px;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    border-radius: 12px;
    transition: all 0.3s ease;
}

.portal-feature:hover {
    transform: translateX(5px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.portal-feature i {
    color: #0074D9;
    font-size: 20px;
    margin-top: 2px;
}

.portal-feature span {
    font-size: 14px;
    color: #333;
    font-weight: 500;
}

.portal-contact {
    background: linear-gradient(135deg, #2563eb 0%, #0074D9 100%);
    padding: 25px;
    border-radius: 15px;
    margin-bottom: 25px;
}

.portal-contact h3 {
    color: white;
    font-size: 20px;
    margin-bottom: 20px;
    text-align: center;
}

.portal-contact-options {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.portal-contact-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 18px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 10px;
    color: white;
    text-decoration: none;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.portal-contact-item:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: translateX(5px);
}

.portal-contact-item i {
    font-size: 18px;
    width: 25px;
    text-align: center;
}

.portal-contact-item span {
    font-size: 14px;
}

.portal-cta {
    display: block;
    width: 100%;
    padding: 16px;
    background: linear-gradient(135deg, #2563eb 0%, #0074D9 100%);
    color: white;
    text-align: center;
    text-decoration: none;
    border-radius: 12px;
    font-weight: 600;
    font-size: 16px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 116, 217, 0.4);
}

.portal-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 116, 217, 0.5);
}

.portal-cta i {
    margin-right: 8px;
}

/* Portal Footer Styling */
.portal-footer {
    background: #ffffff;
    color: #f1f5f9;
    text-align: center;
    padding: 1rem 0 0.5rem 0;
    border-top: 1px solid rgba(255,255,255,0.08);
    font-size: 0.95rem;
    border-radius: 0 0 18px 18px;
    box-shadow: 0 -2px 16px rgba(30,41,59,0.08);
}

.portal-footer a {
    color: #38bdf8;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.2s;
}

.portal-footer a:hover {
    color: #02297e;
    text-decoration: underline;
}

.portal-feature-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 15px;
    margin-bottom: 30px;
}

.portal-feature {
    display: flex;
    align-items: start;
    gap: 12px;
    padding: 15px;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    border-radius: 12px;
    transition: all 0.3s ease;
    cursor: pointer;
}

.portal-feature:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.portal-feature i {
    color: #004080;
    font-size: 20px;
    margin-top: 2px;
}

.portal-feature span {
    font-size: 14px;
    color: #222;
    font-weight: 500;
}

/* Feature Description Modal */
.portal-feature-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 20, 40, 0.8);
    backdrop-filter: blur(5px);
    align-items: center;
    justify-content: center;
    z-index: 2000;
}

.portal-feature-modal.active {
    display: flex;
    animation: fadeIn 0.3s ease;
}

.portal-feature-box {
    background: white;
    max-width: 450px;
    width: 90%;
    padding: 30px;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
    animation: slideUp 0.4s ease;
}

.portal-feature-box h3 {
    color: #002b5b;
    font-size: 20px;
    margin-bottom: 12px;
    font-weight: 700;
}

.portal-feature-box p {
    color: #333;
    font-size: 15px;
    line-height: 1.5;
}

.portal-feature-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: rgba(0, 43, 91, 0.1);
    border: none;
    color: #002b5b;
    font-size: 20px;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
}

.portal-feature-close:hover {
    background: rgba(0, 43, 91, 0.2);
    transform: rotate(90deg);
}


@media (max-width: 600px) {
    .portal-footer {
        font-size: 0.85rem;
        padding: 0.7rem 0 0.3rem 0;
    }
}

@keyframes portalFadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes portalSlideUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 768px) {
    .portal-box { width: 95%; }
    .portal-body { padding: 25px; }
    .portal-features { grid-template-columns: 1fr; }
}
