.tabs-container {
    margin-bottom: 40px;
}
.tabs-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    justify-content: center;
    margin-bottom: 20px;
}
.tab {
    padding: 11px 25px;
    line-height: 1.5;
    border-radius: 7px;
    border: none;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.3s ease;
    border: transparent solid 2px;
    /* box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1); */
}

.tab:focus{
    border: transparent solid 2px;
}

.tab:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
    border: transparent solid 2px;
}
.tab.active {
    transform: scale(1.05);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}
.tab-blue {
    background:rgb(0 0 255 / 30%);    
    color: black;
    border: transparent solid 2px;
}
.tab-blue.active{
   background:rgb(0 0 255 / 1);  
   color: white;
   border: #fff solid 2px;
}
.tab-yellow {
    background:rgb(254 245 116 / 50%);    
    color: black;
     border: transparent solid 2px;
}
.tab-yellow.active {
    background: #FED44B;
    color:white;
    border: #fff solid 2px;

}
.tab-pink {
    background: #FFE1DF;
    color: black;
     border: transparent solid 2px;
}
.tab-pink.active {
    background: #F8ADB1;
    color: white;
    border: #fff solid 2px;
}
.tab-gray {
    background:rgb(0 150 136 / 50%);
    color: black;
    border: transparent solid 2px;
}
.tab-gray.active {
    background: #009688;
    color: white;
    border: #fff solid 2px;
}
.tab-lavender {
    background: #F3D6F3;
    color: black;
    border: transparent solid 2px;
}
.tab-lavender.active {
    background:#A964B7;
    color:white;
    border: #fff solid 2px;
}
.tab-light-yellow {
    background: #fff1d1;
    color: black;
    border: transparent solid 2px;
}
.tab-light-yellow.active {
    background:#c5a763;
    color: white;
    border: #fff solid 2px;
}
.content-area {
    background: #e8f0f7;
    /* min-height: 400px; */
    /* border-radius: 20px; */
    padding: 0;
    overflow: hidden;
    /* box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1); */
}
.content-section {
    display: none;
    opacity: 0;
    transition: opacity 0.5s ease;
}
.content-section.active {
    display: block;
    opacity: 1;
    animation: fadeIn 0.5s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.cards_container {
    padding: 40px;
    display: flex;
    justify-content: center;
}

.card {
    background: white;
    border-radius: 15px;
    padding: 35px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease;
    min-height: 270px;
    position: relative;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.12);
}

.card h2 {
    font-size: 22px;
    margin: 0 0 3px;
    color: #000;
    line-height: 1.5;
    font-weight: 600;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
}

.card p {
    color: #333;
    line-height: 1.5;
    margin-bottom: 15px;
    font-size: 15px;
}

.location {
    font-size: 13px;
    color: #020202;
    margin-bottom: 5px; 
}
.location i {
    color: red;
}

.read-more-btn {
    background: #ff0000;
    color: white;
    border: none;
    padding: 10px 22px;
    font-size: 14px;
    font-weight: 500;
    border-radius: 5px;
    cursor: pointer;
    width: fit-content;
    text-decoration: none;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.read-more-btn:hover {
    background: #cc0000;
    transform: translateX(5px);
    color:#fff;
}

.read-more-btn::after {
    content: ' ↘';
    margin-left: 5px;
}

.university-info span.location{
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
}
.university-info span.subjects{
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
}

.cards_container .card a.read-more-btn {
    position: absolute;
    bottom: 30px;
}
.card .university-info br {
    display: none;
}

@media (max-width:991px){
    .card{
        min-height: 100%;
    }
    .cards_container .card a.read-more-btn{
        position: unset;
    }
    .card h2{
        display: block;
    }
    .university-info span.location{
        display: block;
    }
    .university-info span.subjects{
        display:block;
    }
}

@media (max-width: 768px) {
    .cards_container {
        grid-template-columns: 1fr;
        padding: 20px;
    }

    .tabs-container {
        padding: 20px;
        margin-bottom:0;
    }

    .tab {
        padding: 12px 20px;
        font-size: 13px;
    }
}
