/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    color: #374151;
    background-color: #f9fafb;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

/* Header Styles */
.header {
    /* background: linear-gradient(135deg, #3b82f6 0%, #6366f1 100%); */
    background: linear-gradient(135deg, #2f83b6d4 0%, #47ae69c4 100%);
    color: white;
    padding: 2rem 0;
}

.header-content {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.university-logo {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid rgba(255, 255, 255, 0.2);
    flex-shrink: 0;
}

.university-info {
    flex: 1;
    min-width: 300px;
}

.university-name {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    line-height: 1.2;
}

.university-address {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
    color: rgba(255, 255, 255, 0.9);
}

.university-meta {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.rating {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.stars {
    display: flex;
    gap: 0.125rem;
}

.stars i {
    color: #fbbf24;
    font-size: 1rem;
}

.rating-value {
    font-weight: 600;
    font-size: 1.1rem;
}

.type-badge {
    background: rgba(255, 255, 255, 0.2);
    padding: 0.5rem 1rem;
    border-radius: 9999px;
    font-size: 0.875rem;
    font-weight: 500;
    backdrop-filter: blur(10px);
}

/* Navigation Tabs */
.nav-tabs {
    background: white;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 100;
}

.tabs {
    display: flex;
    overflow-x: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.tabs::-webkit-scrollbar {
    display: none;
}

.tab-button {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 1.5rem;
    border: none;
    background: none;
    cursor: pointer;
    font-size: 0.875rem;
    font-weight: 500;
    color: #6b7280;
    border-bottom: 2px solid transparent;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.tab-button:hover {
    color: #374151;
    border-bottom-color: #d1d5db;
}

.tab-button.active {
    color: #3b82f6;
    border-bottom-color: #3b82f6;
}

.tab-button i {
    font-size: 1rem;
}

/* Main Content */
.main-content {
    padding: 2rem 0;
}

.content-grid {
    /* display: grid; */
    grid-template-columns: 1fr 300px;
    gap: 2rem;
}

/* .tab-content-area {
    min-height: 400px;
} */

.tab-content {
    display: none;
    animation: fadeIn 0.3s ease-in-out;
}

.tab-content.active {
    display: block;
}

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

/* Overview Tab Styles */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.stat-card {
    padding: 1.5rem;
    border-radius: 12px;
    border: 1px solid;
    background: linear-gradient(135deg, var(--bg-from), var(--bg-to));
}

.stat-card.blue {
    --bg-from: #eff6ff;
    --bg-to: #dbeafe;
    border-color: #bfdbfe;
}

.stat-card.green {
    --bg-from: #f0fdf4;
    --bg-to: #dcfce7;
    border-color: #bbf7d0;
}

.stat-card.purple {
    --bg-from: #faf5ff;
    --bg-to: #f3e8ff;
    border-color: #e9d5ff;
}

.stat-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
}

.stat-header i {
    font-size: 1.5rem;
}

.blue .stat-header i { color: #3b82f6; }
.green .stat-header i { color: #10b981; }
.purple .stat-header i { color: #8b5cf6; }

.stat-header h3 {
    font-size: 1rem;
    font-weight: 600;
    color: #374151;
}

.stat-value {
    font-size: 2rem;
    font-weight: 700;
}

.blue .stat-value { color: #3b82f6; }
.green .stat-value { color: #10b981; }
.purple .stat-value { color: #8b5cf6; }

.description-card {
    background: white;
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    border: 1px solid #e5e7eb;
}

.description-card h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: #111827;
}

.description-card p {
    color: #6b7280;
    line-height: 1.7;
}

/* Courses Tab Styles */
.courses-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1rem;
}

.course-card {
    background: white;
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    border: 1px solid #e5e7eb;
    transition: all 0.3s ease;
}

.course-card:hover {
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

.course-header {
    display: flex;
    justify-content: between;
    align-items: flex-start;
    margin-bottom: 1rem;
    gap: 1rem;
}

.course-header h3 {
    font-size: 1.125rem;
    font-weight: 600;
    color: #111827;
    flex: 1;
}

.degree-badge {
    background: #eff6ff;
    color: #3b82f6;
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 500;
    white-space: nowrap;
}

.course-details {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.course-detail {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    color: #6b7280;
}

.course-detail i {
    width: 16px;
    color: #9ca3af;
}

/* Fees Tab Styles */
.fees-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

.fees-section h3,
.financial-aid h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: #111827;
}

.fee-items {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.fee-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    background: #f9fafb;
    border-radius: 8px;
}

.fee-type {
    font-weight: 500;
    color: #374151;
    text-transform: capitalize;
}

.fee-amount {
    font-size: 1.125rem;
    font-weight: 700;
    color: #3b82f6;
}

.financial-aid {
    background: linear-gradient(135deg, #eff6ff, #dbeafe);
    padding: 1.5rem;
    border-radius: 12px;
    border: 1px solid #bfdbfe;
}

.aid-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.aid-list p {
    color: #6b7280;
    line-height: 1.5;
}

/* Gallery Tab Styles */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 12px;
    aspect-ratio: 4/3;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.gallery-item:hover {
    transform: scale(1.02);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.gallery-item:hover img {
    transform: scale(1.1);
}

/* Sidebar Styles */
.sidebar {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.contact-card,
.map-card {
    background: white;
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    border: 1px solid #e5e7eb;
}

.contact-card h3,
.map-card h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: #111827;
}

.contact-items {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.contact-item i {
    width: 20px;
    color: #3b82f6;
    font-size: 1.125rem;
}

.contact-item a {
    color: #3b82f6;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: color 0.3s ease;
}

.contact-item a:hover {
    color: #1d4ed8;
    text-decoration: underline;
}

.map-placeholder {
    width: 100%;
    height: 200px;
    background: #f3f4f6;
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #6b7280;
}

.map-placeholder i {
    font-size: 2rem;
    margin-bottom: 0.5rem;
    color: #9ca3af;
}

.coordinates {
    font-size: 0.75rem;
    color: #9ca3af;
    margin-top: 0.25rem;
}

/* Related Universities Section */
.related-universities {
    background: white;
    padding: 3rem 0;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.section-header h2 {
    font-size: 2rem;
    font-weight: 700;
    color: #111827;
}

.carousel-controls {
    display: flex;
    gap: 0.5rem;
}

.carousel-btn {
    width: 40px;
    height: 40px;
    border: none;
    background: #f3f4f6;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.carousel-btn:hover {
    background: #e5e7eb;
    transform: scale(1.05);
}

.carousel-container {
    overflow: hidden;
    border-radius: 12px;
}

.carousel-track {
    display: flex;
    transition: transform 0.3s ease;
    gap: 1rem;
}

.university-card {
    flex: 0 0 calc(33.333% - 0.667rem);
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    border: 1px solid #e5e7eb;
    transition: all 0.3s ease;
}

.university-card:hover {
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

.university-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.card-content {
    padding: 1.5rem;
}

.card-content h3 {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: #111827;
}

.card-location {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
    font-size: 0.875rem;
    color: #6b7280;
}

.card-location i {
    color: #9ca3af;
}

.card-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.75rem;
}

.card-rating {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.card-rating .stars {
    display: flex;
    gap: 0.125rem;
}

.card-rating .stars i {
    color: #fbbf24;
    font-size: 0.875rem;
}

.card-rating span {
    font-size: 0.875rem;
    font-weight: 500;
}

.student-count {
    font-size: 0.75rem;
    color: #6b7280;
}

.type-badge.private {
    background: #faf5ff;
    color: #8b5cf6;
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 500;
}

.type-badge.public {
    background: #f0fdf4;
    color: #10b981;
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 500;
}

/* Footer */
.footer {
    background: #111827;
    color: white;
    padding: 2rem 0;
    text-align: center;
}

.footer p {
    color: #9ca3af;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .content-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .sidebar {
        order: -1;
    }
    
    .university-card {
        flex: 0 0 calc(50% - 0.5rem);
    }
}

@media (max-width: 768px) {
    .container {
        padding: 0 0.75rem;
    }
    
    .header {
        padding: 1.5rem 0;
    }
    
    .header-content {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }
    
    .university-name {
        font-size: 2rem;
    }
    
    .university-address {
        justify-content: center;
    }
    
    .university-meta {
        justify-content: center;
    }
    
    .stats-grid {
        /* grid-template-columns: 1fr; */
        gap: 1rem;
    }
    
    .courses-grid {
        grid-template-columns: 1fr;
    }
    
    .fees-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .gallery-grid {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    }
    
    .section-header {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
    
    .section-header h2 {
        font-size: 1.5rem;
    }
    
    .university-card {
        flex: 0 0 100%;
    }
    
    .carousel-track {
        gap: 0.5rem;
    }
}

@media (max-width: 480px) {
    .university-logo {
        width: 60px;
        height: 60px;
    }
    
    .university-name {
        font-size: 1.5rem;
    }
    
    .tab-button {
        padding: 0.75rem 1rem;
        font-size: 0.8rem;
    }
    
    .tab-button i {
        font-size: 0.875rem;
    }
    
    .main-content {
        padding: 1rem 0;
    }
    
    .stat-card,
    .course-card,
    .contact-card,
    .map-card {
        padding: 1rem;
    }
    
    .course-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
    
    .gallery-grid {
        grid-template-columns: 1fr;
    }
    
    .related-universities {
        padding: 2rem 0;
    }
}










.card-container {
  display: flex;
  flex-direction: column; /* default for mobile */
  gap: 1rem;
}

@media (min-width: 768px) {
  .card-container {
    flex-direction: row;
  }

  .contact-card,
  .map-card {
    flex: 1; /* equal width */
  }
}
