.section-main {
    margin: 0;
    padding: 0;
    font-family: 'Inter', sans-serif;
    background-color: #f9fafb; /* soft background */
    color: #1a1a1a;
}

.swiper-container {
    overflow: hidden;
    position: relative;
    width: 100%;
    padding: 30px 10px;
}

.swiper-wrapper {
    display: flex;
    width: max-content;
    animation: scrollLoop 30s linear infinite;
}

.swiper-slide {
    flex: 0 0 auto;
    width: 350px;
    margin-right: 20px;
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    transition: transform 0.3s ease;
}

.swiper-slide:hover {
    transform: translateY(-5px);
}

.card-image-container {
    position: relative;
    height: 180px;
    overflow: hidden;
}

.card-background-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.university-logo {
    position: absolute;
    top: 10px;
    left: 10px;
    background: #dc2626; /* modern red */
    color: #fff;
    padding: 5px 12px;
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    border-radius: 6px;
    font-size: 13px;
}

.ranking-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background: #2563eb; /* blue-600 */
    color: #fff;
    padding: 5px 12px;
    font-family: 'Poppins', sans-serif;
    border-radius: 6px;
    font-size: 13px;
}

.card-content {
    padding: 18px 16px 20px;
}

.university-name {
    font-family: 'Poppins', sans-serif;
    font-size: clamp(18px, 2.8vw, 22px);
    line-height: 1.3;
    font-weight: 700;
    color: #111827; /* gray-900 */
    margin-bottom: 0.4rem;
}

.university-location {
    font-family: 'Inter', sans-serif;
    font-size: 13px;
    color: #6b7280; /* gray-500 */
    margin-bottom: 1.2rem;
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

.info-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 16px;
}

.info-grid > div {
    background-color: #f3f4f6; /* gray-100 */
    padding: 10px 12px;
    border-radius: 10px;
    border: 1px solid #e5e7eb; /* subtle border */
    transition: background-color 0.2s ease;
}

.info-grid > div:hover {
    background-color: #e0e7ff; /* hover effect */
}

.info-label {
    color: #6b7280; /* gray-500 */
    font-size: 12px;
    font-family: 'Poppins', sans-serif;
    margin-bottom: 4px;
    display: block;
}

.info-value {
    font-weight: 600;
    font-size: 13px;
    font-family: 'Inter', sans-serif;
    color: #1f2937; /* gray-800 */
}

.specialties-title {
    font-size: 14px;
    margin-bottom: 6px;
    font-weight: 600;
    font-family: 'Poppins', sans-serif;
    color: #1f2937; /* gray-800 */
}

.specialty-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.specialty-tag {
    font-size: 12px;
    background-color: #f3f4f6; /* gray-100 */
    color: #1f2937; /* gray-800 */
    padding: 6px 12px;
    border-radius: 9999px;
    font-family: 'Poppins', sans-serif;
    border: 1px solid #e5e7eb; /* subtle border */
    transition: all 0.2s ease;
    cursor: default;
}

.specialty-tag:hover {
    background-color: #e0e7ff; /* light blue on hover */
    border-color: #c7d2fe;     /* blue-200 border */
    color: #1e40af;            /* blue-800 text */
}
.cta-button {
    display: block !important;
    margin: 14px auto 0 !important;
    padding: 10px 15px !important;
    font-size: 14px !important;
    line-height: 1.2 !important;
    max-width: 200px !important;
    background-color: #2563eb !important;
    color: white !important;
    border: none !important;
    border-radius: 5px !important;
    font-weight: 600 !important;
    font-family: 'Poppins', sans-serif !important;
    cursor: pointer !important;
    transition: background-color 0.2s ease !important;
    box-sizing: border-box !important;
    text-align: center !important;
}

.cta-button:hover {
    background-color: #1d4ed8 !important;
}


/* Optional: Add padding to card-content to ensure spacing */
.card-content {
    padding: 10px; /* Adjust as needed */
}
@keyframes scrollLoop {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

@media (max-width: 768px) {
    .swiper-slide {
        width: 60vw;
    }
}

@media (max-width: 480px) {
    .swiper-slide {
        width: 90vw;
    }
}