.portal-page {
	display: flex;
	justify-content: center;
	flex-wrap: wrap;
}

/* Portal grid layout */
.portal-layout {
    --portal-gap: 14px;
    display: grid;
    grid-template-columns: 185px 520px 185px;
    gap: var(--portal-gap);
    justify-content: center;
}

.portal-main::before {
    left: calc(var(--portal-gap) / -2);
}

.portal-main::after {
    right: calc(var(--portal-gap) / -2);
}

/* left strip */
.portal-main::before,
.portal-main::after {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    width: 4px;
    background: url(../assets/template/sidebar_bg.jpg) repeat-y;
}

/* Sidebars */
.portal-sidebar {
    display: flex;
    flex-direction: column;
}
.portal-sidebar.left {
    grid-column: 1;
}
.portal-sidebar.right {
    grid-column: 3;
}

/* Main content */
.portal-main {
	position: relative;
    display: flex;
    flex-direction: column;
    grid-column: 2;
}

/* Rows of boxes inside main */
.portal-row {
    display: grid;
    grid-template-columns: auto;
	padding-bottom: 10px;
}

/* Boxes styling */
.portal-box {
    border: 2px solid #333;
    background: #fff url('../template/box_bg.gif') repeat-x;
    padding: 8px;
}
.portal-box h3 {
    margin-bottom: 6px;
    font-size: 14px;
    border-bottom: 1px solid #000;
    padding-bottom: 4px;
}

/* Lists inside boxes */
.portal-box ul,
.portal-box .online-users {
    list-style: none;
    padding: 0;
    margin: 0;
}
.portal-box li,
.online-users li {
    font-size: 12px;
    padding: 3px 0;
}
.online-users li .group-icon {
    width: 16px;
    height: 16px;
    vertical-align: middle;
    margin-right: 4px;
}

li {
   margin:0 0 10px 0;   
}

.card {
    max-width: 100%;
    width: 380px;
    margin: 40px auto;
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.12);
  }

  .card img {
    width: 100%;
    height: 220px;
    object-fit: cover;           /* or contain – your choice */
    display: block;
  }

  .card-body {
    padding: 24px;
  }
  
  
  .tabcontent {
	width: 100%;  
  }
  

/* Responsive */
@media (max-width: 1000px) {
    .portal-layout {
        grid-template-columns: 1fr;
    }
    .portal-row {
        grid-template-columns: 1fr;
    }
}
