/* university-styles.css */

/* --- Hero Section --- */
.university-hero {
    background: linear-gradient(to bottom right, #f8fafc, #dbeafe);
    padding: 6rem 0 4rem;
    padding-top: 8rem;
}

.university-header {
    display: flex;
    align-items: center;
    gap: 2rem;
    margin-bottom: 2rem;
    justify-content: center;
}

.university-logo {
    width: 100px;
    height: 100px;
    background: white;
    border-radius: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    font-weight: 700;
    /* Color is set inline in HTML for each university */
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.university-meta {
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
    font-size: 1rem;
    color: #6b7280;
    justify-content: center;
}

.university-meta span {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.university-meta svg {
    color: #2563eb;
}

/* --- Quick Stats Tiles --- */
.quick-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-top: 3rem;
}

.stat-box {
    background: white;
    padding: 1.5rem;
    border-radius: 0.75rem;
    text-align: center;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.stat-box h3 {
    font-size: 2rem;
    margin-bottom: 0.5rem;
    color: #2563eb;
    font-weight: 700;
}

.stat-box p {
    color: #4b5563;
}

/* --- Content Sections & Alternating Backgrounds --- */
.content-section {
    padding: 4rem 0;
}

/* 2nd Section (Why Study) - White */
.content-section:nth-of-type(2) {
    background: white;
}

/* 3rd Section (Programs) - Light Blue */
.content-section:nth-of-type(3) {
    background: linear-gradient(to bottom right, #f8fafc, #dbeafe);
}

/* 4th Section (Scholarships) - White */
.content-section:nth-of-type(4) {
    background: white;
}

/* 5th Section (Campus) - Light Blue */
.content-section:nth-of-type(5) {
    background: linear-gradient(to bottom right, #f8fafc, #dbeafe);
}

/* 6th Section (Research) - White */
.content-section:nth-of-type(6) {
    background: white;
}

/* 7th Section (Requirements) - Light Blue */
.content-section:nth-of-type(7) {
    background: linear-gradient(to bottom right, #f8fafc, #dbeafe);
}

/* 8th Section (FAQ) - White */
.content-section:nth-of-type(8) {
    background: white;
}

/* --- Feature Grids (Why Study, Facilities) --- */
.why-study-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.why-card {
    background: linear-gradient(to bottom right, #eff6ff, #dbeafe);
    padding: 2rem;
    border-radius: 0.75rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: all 0.3s;
}

.why-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.why-card-icon {
    width: 3rem;
    height: 3rem;
    color: #2563eb;
    margin-bottom: 1rem;
}

.why-card h3 {
    font-size: 1.5rem;
    color: #111827;
    margin-bottom: 1rem;
    font-weight: 700;
}

.why-card p {
    color: #4b5563;
    line-height: 1.6;
}

/* --- Program Tabs --- */
.program-tabs {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-bottom: 2rem;
}

.tab-btn {
    padding: 1rem 2rem;
    border: 2px solid #2563eb;
    background: white;
    color: #2563eb;
    border-radius: 0.5rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.tab-btn.active {
    background: #2563eb;
    color: white;
}

.program-content {
    display: none;
}

.program-content.active {
    display: block;
    animation: fadeIn 0.5s ease;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.program-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

.program-item {
    background: white;
    padding: 1.5rem;
    border-radius: 0.75rem;
    border-left: 4px solid #2563eb;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.program-item h4 {
    font-size: 1.125rem;
    color: #111827;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.program-item p {
    color: #6b7280;
    font-size: 0.875rem;
}

/* --- Requirements Section --- */
.requirements-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.requirement-card {
    background: white;
    padding: 2rem;
    border-radius: 0.75rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.requirement-card h3 {
    font-size: 1.75rem;
    color: #2563eb;
    margin-bottom: 1.5rem;
    font-weight: 700;
}

.requirement-card ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.requirement-card li {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    color: #4b5563;
}

.requirement-card li svg {
    width: 1.25rem;
    height: 1.25rem;
    color: #10b981;
    flex-shrink: 0;
    margin-top: 0.25rem;
}

/* --- FAQ Section --- */
.faq-section {
    max-width: 900px;
    margin: 0 auto;
}

.faq-item {
    background: white;
    margin-bottom: 1rem;
    border-radius: 0.75rem;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.faq-question {
    padding: 1.5rem;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 600;
    color: #111827;
    transition: all 0.3s;
}

.faq-question:hover {
    background: #f9fafb;
}

.faq-question svg {
    width: 1.5rem;
    height: 1.5rem;
    transition: transform 0.3s;
}

.faq-item.active .faq-question svg {
    transform: rotate(180deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.faq-item.active .faq-answer {
    max-height: 500px;
}

.faq-answer-content {
    padding: 0 1.5rem 1.5rem;
    color: #4b5563;
    line-height: 1.6;
}

/* --- CTA Section --- */
.cta-section {
    background: linear-gradient(135deg, #2563eb 0%, #4f46e5 100%);
    color: white;
    padding: 4rem 0;
    text-align: center;
}

.cta-section h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.cta-section p {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.cta-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .university-header {
        flex-direction: column;
        text-align: center;
    }
    
    .requirements-grid {
        grid-template-columns: 1fr;
    }
}