.portal-card {
    position: relative;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border-radius: 15px;
    cursor: pointer;
    height: 250px;
    background: #fff;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 2rem;
    border-bottom: 5px solid transparent;
}

/* Colorful Themes (Even Darker Base - 0.7 Opacity) */
.theme-0 { border-bottom-color: #00446D; background: rgba(0, 68, 109, 0.9); }
.theme-1 { border-bottom-color: #667eea; background: rgba(102, 126, 234, 0.9); }
.theme-2 { border-bottom-color: #764ba2; background: rgba(118, 75, 162, 0.9); }
.theme-3 { border-bottom-color: #00bcd4; background: rgba(0, 188, 212, 0.9); }
.theme-4 { border-bottom-color: #ffcc00; background: rgba(255, 204, 0, 0.9); }
.theme-5 { border-bottom-color: #e91e63; background: rgba(233, 30, 99, 0.9); }
.theme-6 { border-bottom-color: #4caf50; background: rgba(76, 175, 80, 0.9); }
.theme-7 { border-bottom-color: #ff5722; background: rgba(255, 87, 34, 0.9); }
.theme-8 { border-bottom-color: #2196f3; background: rgba(33, 150, 243, 0.9); }
.theme-9 { border-bottom-color: #9c27b0; background: rgba(156, 39, 176, 0.9); }
.theme-10 { border-bottom-color: #ff9800; background: rgba(255, 152, 0, 0.9); }
.theme-11 { border-bottom-color: #3f51b5; background: rgba(63, 81, 181, 0.9); }

/* Hover Effects */
.portal-card.theme-0:hover { background: #00446D !important; }
.portal-card.theme-1:hover { background: #667eea !important; }
.portal-card.theme-2:hover { background: #764ba2 !important; }
.portal-card.theme-3:hover { background: #00bcd4 !important; }
.portal-card.theme-4:hover { background: #ffcc00 !important; }
.portal-card.theme-5:hover { background: #e91e63 !important; }
.portal-card.theme-6:hover { background: #4caf50 !important; }
.portal-card.theme-7:hover { background: #ff5722 !important; }
.portal-card.theme-8:hover { background: #2196f3 !important; }
.portal-card.theme-9:hover { background: #9c27b0 !important; }
.portal-card.theme-10:hover { background: #ff9800 !important; }
.portal-card.theme-11:hover { background: #3f51b5 !important; }

.portal-card:hover {
    transform: translateY(-12px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2) !important;
}

.portal-icon {
    font-size: 4rem;
    margin-bottom: 1.5rem;
    transition: all 0.4s ease;
}

/* Specific Icon Colors based on theme */
.theme-0 .portal-icon { color: #fff; }
.theme-1 .portal-icon { color: #667eea; }
.theme-2 .portal-icon { color: #764ba2; }
.theme-3 .portal-icon { color: #00bcd4; }
.theme-4 .portal-icon { color: #fcc200; }
.theme-5 .portal-icon { color: #e91e63; }
.theme-6 .portal-icon { color: #4caf50; }
.theme-7 .portal-icon { color: #ff5722; }
.theme-8 .portal-icon { color: #2196f3; }
.theme-9 .portal-icon { color: #9c27b0; }
.theme-10 .portal-icon { color: #ff9800; }
.theme-11 .portal-icon { color: #3f51b5; }

.portal-title {
    font-weight: 800;
    margin-bottom: 0;
    transition: all 0.4s ease;
    text-align: center;
    color: #fff;
    font-size: 1.5rem;
    letter-spacing: -0.5px;
}

.portal-description {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    padding: 0.8rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transform: scale(0.9);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    text-align: center;
    z-index: 2;
    border-radius: 12px;
}
.portal-description h5{ color:#fff;font-weight:700;
}
/* Theme-specific Overlays */
.theme-0 .portal-description { background: linear-gradient(135deg, #16324A 0%, #17334B 100%); }
.theme-1 .portal-description { background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); }
.theme-2 .portal-description { background: linear-gradient(135deg, #764ba2 0%, #667eea 100%); }
.theme-3 .portal-description { background: linear-gradient(135deg, #00bcd4 0%, #00acc1 100%); }
.theme-4 .portal-description { background: linear-gradient(135deg, #fcc200 0%, #ff9800 100%); }
.theme-5 .portal-description { background: linear-gradient(135deg, #e91e63 0%, #c2185b 100%); }
.theme-6 .portal-description { background: linear-gradient(135deg, #4caf50 0%, #388e3c 100%); }
.theme-7 .portal-description { background: linear-gradient(135deg, #ff5722 0%, #e64a19 100%); }
.theme-8 .portal-description { background: linear-gradient(135deg, #2196f3 0%, #1976d2 100%); }
.theme-9 .portal-description { background: linear-gradient(135deg, #9c27b0 0%, #7b1fa2 100%); }
.theme-10 .portal-description { background: linear-gradient(135deg, #ff9800 0%, #f57c00 100%); }
.theme-11 .portal-description { background: linear-gradient(135deg, #3f51b5 0%, #303f9f 100%); }

.portal-card:hover .portal-description {
    opacity: 1;
    transform: scale(1);
}

.portal-card:hover .portal-icon,
.portal-card:hover .portal-title,
.portal-card:hover .front-desc {
    opacity: 0;
    transform: translateY(-20px);
}

.desc-text {
    color: #fff;
    font-size: 0.90rem;
    line-height: 1.4;
    margin-bottom: 1.5rem;
    font-weight: 500;
}
.p-text {
    color: #fff;
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
    font-weight: 500;
}
.portal-btn {
    background: #fff;
    color: #000;
    border: none;
    padding: 10px 25px;
    border-radius: 30px;
    font-weight: 700;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    text-decoration: none;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.portal-btn:hover {
    background: #000;
    color: #fff;
    transform: scale(1.1);
}
#main-content{
 background-image: url('/assets/img/contentbg.png');
background-size: cover;
background-position: center;
background-attachment: fixed; /* Keeps background still while scrolling */
background-repeat: no-repeat;}
