:root {
    --bg-color: #f8fafc;
    --card-bg: #ffffff;
    --text-main: #3c5174;
    --text-sub: #64748b;
    --accent-bg: #f1f5f9;
    --shadow: 0 4px 6px -1px rgb(0 0 0 / 0.07), 0 2px 4px -2px rgb(0 0 0 / 0.05);
    --shadow-hover: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
}

.cards-container {
    width: calc(100% - 40px);
    padding-top: 50px;
    padding-bottom: 50px;
    padding-left: 20px;
    padding-right: 20px;
    margin: 0;
    z-index: 1;
    text-align: center;
    overflow-x: hidden;
    display: block;
}
.card {
    border: 1px solid rgb(52, 49, 63);
    background-color:  var(--card-bg); 
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow);
    display: inline-block;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    margin:10px;
    width: 300px;
    height: 380px;
    box-shadow: 3px 4px 7px 5px #a7a2a2;
    transition: transform 0.2s ease, box-shadow 0.2s ease;

}

.card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-hover);
}

.image-container {
    width: 100%;
    height: 280px;
    background-color: #e2e8f0; /* Fallback background */
}

.card-image {
    width: 100%;
    height: 280px;
    object-fit: cover;
}

.card-info-container {
    display: flex;
    flex-direction: column;
    margin: auto;
    height: auto;
    padding: 10px;
    gap: 10px;
}



.card-title {
    text-align: left;
    font-size: 20px;
    font-weight: bold;
    font-family: "Source Sans Pro Topnav", sans-serif;
    color: var(--text-main);
}

/* .sub-cat-advisor-container {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: auto; 
} */

.advisor-count-container {
    position: relative;
    display: flex;
    flex-direction: row;
    text-align: left;
    gap: 20px;
}

.advisor-count {
    width: fit-content;
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-main);
    background-color: var(--accent-bg);
    border: 1px solid #cbd5e1;
    border-radius: 20px;
    padding: 4px 10px;
}

.advisor-count-text {
    width: 50%;
    line-height: 1.75rem;
    font-size: 1rem;
    color: var(--text-sub);
    font-weight: 500;
}



.account-tooltip {
    position: absolute;
    top:-30px;
    left: -100px;
    opacity: .9;
    font-size: small;
    color: #eff3f7;
    background-color: #282c34;
    width: 120px;
    border-radius: 5px;
    display: none;
    padding: 4px;
    text-align: center;
    transition: 2s;
}

.tooltip-link-text {
    font-size: 13px;
    font-weight: bold;
    cursor: pointer;

}

.tooltip-link-text:hover {
    font-size: 14px;
    font-weight: bold;

}

.login-icon:hover > .account-tooltip {
    display: inline;
}

.login-icon {
    position: absolute;
    z-index: 2;
    top:0px;
    right: 5px;
    width: 18px;
    height:18px;
    background-color: rgb(191, 216, 224);
    padding: 7px 7px;
    border-radius: 50%;     
}



.sign-in-icon {
    width: auto;
    height: auto;
}

@media (max-width: 600px) {
    .cards-container {
        gap: 16px;
    }
    .card {
        width: 100%;
        max-width: 340px;
    }
}

