.search-info{
    margin-bottom:10px;
    font-size:16px;
}
.dashboard-wrapper {
    max-width: 1400px;
    margin: 0 auto;
    padding: 40px 20px 70px 20px;
    background: #fff;
    border-radius: 20px 20px 0 0px;
}

.dashboard-wrapper h4{
    margin-bottom: 20px;
    font-family: 'Gilroy Medium';
}
.dashboard-header {
    display: flex;
    gap: 60px;
    width: 100%;
    align-items: center;
}

.dashboard-search-bar {
    flex: 0 0 70%;
    max-width: 70%;
}

.dashboard-welcome {
    font-size: 32px;
    font-weight: 600;
    margin-bottom: 20px;
    color: #333;
    flex: 0 0 30%;
    max-width: 30%;
    margin: 0;
}

.dashboard-search-bar {
    margin-bottom: 30px;
}

.dashboard-search-bar .dashboard-search-input {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #e0e0e0;
    border-radius: 20px;
    font-size: 14px;
    transition: border-color 0.3s;
}

.dashboard-search-bar .dashboard-search-input::placeholder{
    color:#333;
}

.dashboard-search-input:focus {
    outline: none;
    border-color: #20d4af;
    box-shadow: 0 0 0 3px rgba(76, 175, 80, 0.1);
}

.dashboard-controls {
    margin-bottom: 20px;
    padding-bottom: 0px;
    border-bottom: 1px solid #000;
}

.dashboard-nav-buttons {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 20px;
}

.nav-btn {
    padding: 5px 16px;
    background-color: #f0f0f0;
    border: 1px solid #ddd;
    border-radius: 20px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.3s;
}

.nav-btn:hover,
.nav-btn.active {
    background-color: #20d4af;
    color: #000;
    border-color: #20d4af;
}


.dashboard-nav-buttons .nav-dropdown {
    display: none;
    position: absolute;
    left: 0;
    background: #fff;
    border: 1px solid #ddd;
    padding: 10px;
    min-width: 220px;
    z-index: 999;
    /* vertical layout */
    flex-direction: column;
    gap: 8px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    border-radius: 15px;
    top: calc(100% + 10px);
}

.dashboard-nav-buttons .nav-item{
    position:relative;
}

.dashboard-nav-buttons .nav-item::after {
    content: "";
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    height: 12px; /* same as your gap */
}

/* show on hover */
.dashboard-nav-buttons .nav-item:hover .nav-dropdown {
    display: flex;
}

.dashboard-nav-buttons .nav-dropdown label {
    font-size: 14px;
    cursor: pointer;
}

.dashboard-nav-buttons .nav-dropdown input {
    margin-right: 6px;
}

.dashboard-nav-buttons .nav-item.open .nav-dropdown {
    display: flex;
}

.dashboard-filters {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.filter-checkbox {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    font-size: 13px;
}

.filter-checkbox input {
    cursor: pointer;
}

.dashboard-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 1px 20px;
    width: 100%;
}

.dashboard-card {
    overflow: hidden;
    transition: transform 0.3s, box-shadow 0.3s;
    cursor: pointer;
    width: calc(50% - 10px);
    position: relative;
    margin-bottom: 24px;
}

.dashboard-card:hover {
    transform: translateY(-4px);
    /*box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);*/
}

.card-image-wrapper {
    position: relative;
    width: 100%;
    padding-top: 80%;
    background-color: #f5f5f5;
    border-radius: 20px;
    overflow: hidden;
}

.card-image-wrapper img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height:100%;
    object-fit: cover;
    filter: brightness(55%);
}

.card-image-placeholder {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #f5f5f5, #e0e0e0);
    /*background-image:url('../assets/logo-blue.png');*/
}


.card-date-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    background-color: #eee;
    color: #000;
    padding: 0px 16px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
}

.card-favorite-btn {
    position: absolute;
    top: 12px;
    right: 12px;
    background-color: #eee;
    color: #000;
    border: none;
    border-radius: 50%;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 18px;
    transition: background-color 0.3s;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.2);
}

.card-favorite-btn:hover, .card-favorite-btn.active {
    background-color: #30d0b8;
}

.card-favorite-btn.liked {
    background-color: #30d0b8;
}

.card-favorite-btn .icon{
    width: 18px;
    height: 18px;
    padding-top: 0;
    color:#453f3f;
}

.card-favorite-btn.active .icon, .card-favorite-btn:hover .icon{
    color:#fff;
    fill: #fff;
}

.bookmark-btn.loading{
    opacity:.6;
    pointer-events:none;
    /*position:relative;*/
}

.bookmark-btn.loading:after{
    content:'';
    width:14px;
    height:14px;
    border:2px solid #ccc;
    border-top-color:#000;
    border-radius:50%;
    display:inline-block;
    animation:spin .6s linear infinite;
    margin-left:1px;
}

.bookmark-btn.loading .icon{
    display:none;
}

@keyframes spin{
    to{transform:rotate(360deg);}
}

.card-content {
    padding: 16px;
    position: absolute;
    /*bottom: 35px;*/
    top: 68%;
    color: #fff;
}

.card-content h3.card-title {
    font-size: 1.3rem !important;
    font-weight: 600;
    color: #fff;
    line-height: 1.4;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
}

.card-title a {
    color: #fff;
    text-decoration: none;
}

.card-tags {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin: 15px 10px;
}

.tag {
    display: inline-block;
    background-color: #9be7de;
    color: #1c302d;
    padding: 0px 10px;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 500;
}

.dashboard-grid .divider{
    flex: 0 0 100%;
    height: 1px;
    background: #757272;
    margin-top: -10px;
    margin-bottom: 30px;
}

/* overlay container */
.card-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    
    display: flex;
    flex-direction: column;
    justify-content: flex-end;

    padding: 12px;
    gap: 8px;

    /* gradient for readability */
    background: linear-gradient(
        to top,
        rgba(0,0,0,0.7),
        rgba(0,0,0,0.3),
        transparent
    );
}

/* remove old positioning */
.card-content {
    position: static; /* 🔥 important */
    padding: 0;
}

/* Show search/filter tags*/
.member-portal-dashboard .active-tags {
    margin-bottom: 15px;
}

.member-portal-dashboard .active-tags .tag {
    display: inline-flex;
    align-items: center;
    background: #1c302d;
    padding: 0 8px;
    margin: 5px 5px 0 0;
    border-radius: 20px;
    font-size: 13px;
    color:#9be7de;
}

.member-portal-dashboard .active-tags .tag .remove-tag {
    margin-left: 8px;
    cursor: pointer;
    font-weight: bold;
}


@media (max-width: 768px) {
    
    .dashboard-welcome {
        font-size: 24px;
    }
    .dashboard-grid .dashboard-card {
        width: calc(50% - 10px);
    }
    .menucol-member-portal{
        overflow:visible !important;
    }
    .menucol-member-portal .et_pb_menu_0_tb_body.et_pb_menu ul li a,
    .menucol-member-portal .et_pb_menu_0.et_pb_menu ul li a{
        line-height:8px;
    }
    .menucol-member-portal .icon{
        display:inline-flex;
        min-width: 100%;
        padding: 10px 0;
    }
    .menucol-member-portal.et_pb_column .et_pb_text{
        margin-bottom:0;
    }
    #member-portal-left-menu .et_pb_menu_inner_container{
        width: 100%;
    }
    .menucol-member-portal #member-portal-left-menu .mobile_menu_bar:before{
        color:#020b4e;
    }
    #member-portal-left-menu{
        top: -30px;
        background: transparent;
    }
    .card-content{
        top:40%;
    }
    .card-image-wrapper{
        padding-top:100%;
    }
     .menucol-member-portal{
      position: relative;
      top:auto;
   }

}

@media only screen and (min-device-width: 768px) and (max-device-width: 1024px){
    .dashboard-welcome {
        font-size: 24px;
    }
    .dashboard-grid .dashboard-card {
        width: calc(50% - 10px);
    }
    .menucol-member-portal{
        overflow:visible !important;
    }
    .menucol-member-portal .et_pb_menu_0.et_pb_menu ul li a{
        line-height:8px;
    }
    .menucol-member-portal .icon{
        display:inline-flex;
        min-width: 100%;
        padding: 10px 0;
    }
    .menucol-member-portal.et_pb_column .et_pb_text{
        margin-bottom:0;
    }
    #member-portal-left-menu .et_pb_menu_inner_container{
        width: 100%;
    }
    .menucol-member-portal #member-portal-left-menu .mobile_menu_bar:before{
        color:#020b4e;
    }
    #member-portal-left-menu{
        top: -30px;
        background: transparent;
    }
    .card-content{
        top:40%;
    }
    .card-image-wrapper{
        padding-top:100%;
    }
     .menucol-member-portal{
      position: relative;
      top:auto;
   }
}

/* Mobile */
@media (max-width: 480px) {
    .dashboard-grid .dashboard-card {
        width: 100%;
    }
}