/* =========================
   HERO
========================= */

.universities-hero {
    position: relative;
    background: linear-gradient(135deg, #073B73 0%, #1a5fa0 100%);
    background-size: cover;
    background-position: center;
    min-height: 350px;
    display: flex;
    align-items: center;
}

.universities-hero .country-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.3);
}

.universities-hero .country-hero-content {
    position: relative;
    z-index: 2;
    color: #fff;
}

/* =========================
   UNIVERSITIES LIST SECTION
========================= */

.universities-list-section {
    padding: 80px 0;
    background: #f8f9fa;
}

.universities-list-section .section-title {
    margin-bottom: 40px;
}

.universities-list-section .section-title h2 {
    color: #073B73;
}

.universities-list-section .apply-btn {
    display: inline-block;
    padding: 12px 30px;
    background: #E5A12A;
    color: #fff;
    text-decoration: none;
    border-radius: 6px;
    font-weight: 600;
    transition: .3s;
}

.universities-list-section .apply-btn:hover {
    background: #c98b20;
    color: #fff;
}


/* =========================
   UNIVERSITIES GRID & CARD STYLES
 ========================= */

.university-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 20px;
    align-items: stretch;
}

.university-card {
    border: 1px solid var(--color-card-border);
    border-radius: 8px;
    padding: 14px;
    text-align: left;
    background: var(--color-card-bg);
    transition: .3s;
    height: 100%;
    display: flex;
    flex-direction: column;
    box-shadow: 0 4px 12px rgba(7, 59, 115, 0.05);
}

.university-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 24px rgba(7, 59, 115, 0.12);
}

.university-info {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.university-card h4 {
    color: #073B73;
    font-size: 18px;
    line-height: 1.25;
    margin-bottom: 0;
}

.university-card span {
    color: #073B73;
    font-size: 14px;
    font-weight: 600;
}

.university-card p {
    color: #666;
    font-size: 14px;
    line-height: 1.45;
    margin: 0;
}

.university-image {
    width: 100%;
    aspect-ratio: 16/9;
    height: auto;
    object-fit: cover;
    border-radius: 6px;
    margin-bottom: 12px;
}

.university-image-placeholder {
    width: 100%;
    aspect-ratio: 16/9;
    height: auto;
    border-radius: 6px;
    margin-bottom: 12px;
    background: linear-gradient(135deg, #073B73 0%, #E5A12A 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    font-weight: 600;
    color: #fff;
    text-transform: uppercase;
}

/* =========================
   RESPONSIVE
 ========================= */

@media (max-width: 1399px) {
    .university-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (max-width: 1199px) {
    .university-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .universities-list-section {
        padding: 56px 0;
    }

    .university-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
}

@media (max-width: 575.98px) {
    .universities-hero {
        min-height: 280px;
    }

    .universities-list-section {
        padding: 40px 0;
    }

    .university-grid {
        grid-template-columns: 1fr;
    }
}


/* Pagination Wrapper */
.nav-links {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 20px;
    flex-wrap: wrap;
}

/* Common Page Number Style */
.nav-links .page-numbers {
    display: inline-block;
    padding: 8px 14px;
    font-size: 14px;
    color: #073B73;
    background: #f5f7fa;
    border-radius: 6px;
    text-decoration: none;
    border: 1px solid #d6e0ea;
    transition: all 0.3s ease;
}

/* Hover Effect */
.nav-links a.page-numbers:hover {
    background: #073B73;
    color: #fff;
    border-color: #073B73;
}

/* Current Page */
.nav-links .current {
    background: #073B73;
    color: #fff;
    font-weight: 600;
    border-color: #073B73;
    cursor: default;
}

/* Dots (...) */
.nav-links .dots {
    background: transparent;
    color: #999;
    border: none;
    padding: 8px 6px;
    cursor: default;
}

/* Next Button */
.nav-links .next {
    background: #073B73;
    color: #fff;
    font-weight: 500;
    border-color: #073B73;
}

.nav-links .next:hover {
    background: #052c56;
    border-color: #052c56;
}

/* Optional: Previous button (if exists) */
.nav-links .prev {
    background: #073B73;
    color: #fff;
    border-color: #073B73;
}

.nav-links .prev:hover {
    background: #052c56;
}

/* Responsive */
@media (max-width: 576px) {
    .nav-links {
        justify-content: center;
    }

    .nav-links .page-numbers {
        padding: 6px 10px;
        font-size: 13px;
    }
}