/* Header Navigation */
.header {
    background-color: #fff;
    padding: 15px 0;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.header-content {
    max-width: 1500px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
}

.logo-section {
    display: flex;
    align-items: center;
}

.logo {
    width: 150px;
    height: 116px;
    /* background-color: #4a5568; */
    border-radius: 50%;
    margin-right: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
}

.header-text {
    font-size: 22px;
    color: #333333;
    text-transform: uppercase;
    font-weight: 600;
}

.nav-links {
    display: flex;
    gap: 30px;
}

.nav-links a {
    text-decoration: none;
    color: #666;
    font-weight: 500;
}

.nav-links a:hover {
    color: #333;
}

/* Main Container */
.container {
    max-width: 1500px;
    margin: 0 auto;
    padding: 30px 20px;
}

/* University Header Section - Fixed Layout */
.university-header {
    background-color: #fff;
    border-radius: 10px;
    padding: 30px;
    margin-bottom: 30px;
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 30px;
    /* box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1); */
    align-items: start;
}

/* Left Column - University Info */
.university-info {
    display: flex;
    flex-direction: column;
}

.university-logo {
    width: 50px;
    height: 50px;
    margin-bottom: 15px;
    background-color: #4a5568;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 20px;
}

.university-name {
    font-size: 36px;
    font-weight: bold;
    color: #333;
    margin-bottom: 20px;
    line-height: 1.2;
    margin-left: 15%;
    margin-top: -16%;
}

.university-description {
    font-size: 14px;
    color: #666;
    margin-bottom: 20px;
    line-height: 1.5;
}

.location {
    font-weight: bold;
    color: #333;
    margin-bottom: 20px;
    font-size: 14px;
}

.apply-btn {
    background-color: #4a5568;
    color: white;
    padding: 12px 30px;
    border: none;
    border-radius: 5px;
    font-weight: bold;
    cursor: pointer;
    width: 100%;
    margin-bottom: 20px;
    font-size: 14px;
}

.apply-btn:hover {
    background-color: #2d3748;
}

/* Experience Team Badge */
.experience-badge {
    background-color: #ffd700;
    margin-top: 15px;
    padding: 28px 43px;
    border-radius: 20px;
    display: inline-flex;
    align-items: center;
    font-size: 25px;
    font-weight: bold;
    color: #333;
    width: fit-content;
}

.experience-badge .avatars {
    display: flex;
    margin-right: 10px;
}

.avatar {
    width: 25px;
    height: 25px;
    border-radius: 50%;
    margin-right: -5px;
    border: 2px solid white;
}

.avatar:nth-child(1) {
    background-color: #e53e3e;
}
.avatar:nth-child(2) {
    background-color: #3182ce;
}
.avatar:nth-child(3) {
    background-color: #38a169;
}

/* Middle Column - Main University Image */
.main-image-section {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column-reverse;
}

.main-university-image {
    width: 100%;
    height: 400px;
    border-radius: 10px;
    background: linear-gradient(135deg, #4299e1 0%, #3182ce 50%, #2b77cb 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 16px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.main-university-image::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 300 300"><defs><linearGradient id="skyGrad" x1="0%" y1="0%" x2="0%" y2="100%"><stop offset="0%" style="stop-color:%234299e1;stop-opacity:1" /><stop offset="100%" style="stop-color:%232b77cb;stop-opacity:1" /></linearGradient></defs><rect width="300" height="300" fill="url(%23skyGrad)"/><rect x="40" y="150" width="220" height="120" fill="%232d3748" rx="5"/><rect x="50" y="120" width="60" height="150" fill="%234a5568" rx="3"/><rect x="120" y="100" width="80" height="170" fill="%233182ce" rx="5"/><rect x="210" y="130" width="50" height="140" fill="%232b77cb" rx="3"/><circle cx="80" cy="80" r="15" fill="%23fff" opacity="0.8"/><circle cx="220" cy="70" r="12" fill="%23fff" opacity="0.6"/><polygon points="60,220 80,200 100,220" fill="%23fff" opacity="0.3"/></svg>')
        center/cover;
}

/* Right Column - Course Info and Second Image */
.right-section {
    display: flex;
    flex-direction: column;
}

.course-info {
    background-color: #4a5568;
    color: white;
    padding: 15px 20px;
    border-radius: 10px;
    text-align: center;
    margin-bottom: 20px;
    min-width: 120px;
}

.course-count {
    font-size: 24px;
    font-weight: bold;
    display: block;
}

.course-label {
    font-size: 12px;
    opacity: 0.9;
}

.secondary-university-image {
    width: 100%;
    height: 400px;
    border-radius: 10px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 16px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

/* Content Sections */
.content-section {
    background-color: #fff;
    border-radius: 10px;
    padding: 30px;
    margin-bottom: 30px;
    /* box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1); */
}

.section-title {
    font-size: 35px;
    font-weight: bold;
    color: #2d2d2d;
    margin-bottom: 20px;
}

.section-text {
    color: #666;
    line-height: 1.6;
    margin-bottom: 15px;
}

/* Rankings Section - Fixed Star Position */
.rankings-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.ranking-card {
    padding: 30px 20px 20px 20px;
    border-radius: 10px;
    text-align: center;
    position: relative;
}

.ranking-card.webometrics {
    background-color: #fef5e7;
}

.ranking-card.qs {
    background-color: #f0fff4;
}

.ranking-card.times {
    background-color: #e6fffa;
}

.ranking-card.usnews {
    background-color: #f5f0ff;
}

/* Star positioned at center top */
.ranking-star {
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    color: #ffd700;
    font-size: 30px;
    background-color: #fff;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.ranking-number {
    font-size: 36px;
    font-weight: bold;
    color: #333;
    margin-bottom: 10px;
    margin-top: 10px;
}

.ranking-label {
    font-size: 18px;
    color: #666;
    font-weight: 500;
}

/* Intakes Section */
.intake-item {
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    margin-bottom: 10px;
    overflow: hidden;
}

.intake-header {
    padding: 15px 20px;
    background-color: #f7fafc;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 500;
    color: #4a5568;
}

.intake-header:hover {
    background-color: #edf2f7;
}

.intake-arrow {
    transition: transform 0.3s ease;
}

.intake-content {
    padding: 20px;
    display: none;
    background-color: #fff;
    border-top: 1px solid #e2e8f0;
}

.intake-content.active {
    display: block;
}

.intake-arrow.active {
    transform: rotate(180deg);
}

/* Note styling */
.note {
    background-color: #fcf7f7;
    padding: 15px;
    border-radius: 8px;
    font-size: 14px;
    color: #4a5568;
    margin-bottom: 20px;
}

.note strong {
    color: #2d3748;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .university-header {
        grid-template-columns: 1fr;
        gap: 20px;
        text-align: center;
    }

    .right-section {
        align-items: center;
    }
}

@media (max-width: 768px) {
    .rankings-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .nav-links {
        display: none;
    }

    .main-university-image,
    .secondary-university-image {
        height: 200px;
    }
}

@media (max-width: 480px) {
    .rankings-grid {
        grid-template-columns: 1fr;
    }

    .university-header {
        padding: 20px;
    }

    .main-university-image,
    .secondary-university-image {
        height: 180px;
    }
}

.main-university-image {
    width: 100%;
    height: 400px;
    border-radius: 10px;
    object-fit: cover;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.secondary-university-image {
    width: 100%;
    height: 400px;
    border-radius: 10px;
    object-fit: cover;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

/* Remove the old pseudo-element styles */
.main-university-image::before,
.secondary-university-image::before {
    display: none;
}
