/* ============================================
   GLOBAL STYLES & VARIABLES
   ============================================ */

:root {
    --primary-color: #1a73e8;
    --primary-dark: #1557c0;
    --secondary-color: #34a853;
    --accent-color: #fbbc04;
    --bg-light: #f8f9fa;
    --text-dark: #202124;
    --text-light: #5f6368;
    --border-color: #dadce0;
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.12);
    --shadow-md: 0 2px 8px rgba(0, 0, 0, 0.15);
    --shadow-lg: 0 8px 16px rgba(0, 0, 0, 0.2);
    --border-radius: 8px;
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    color: var(--text-dark);
    background-color: #fff;
    line-height: 1.6;
}

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

/* ============================================
   NAVBAR STYLES
   ============================================ */

.navbar {
    background: #fff;
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 24px;
    font-weight: bold;
    color: var(--primary-color);
    text-decoration: none;
    cursor: pointer;
}

.logo-icon {
    font-size: 32px;
}

.logo-text {
    font-size: 18px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 30px;
    align-items: center;
}

.nav-menu a {
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 500;
    transition: var(--transition);
    position: relative;
}

.nav-menu a:hover,
.nav-menu a.active {
    color: var(--primary-color);
}

.nav-menu a.active::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 100%;
    height: 3px;
    background: var(--primary-color);
    border-radius: 2px;
}

.btn-login {
    background: var(--primary-color);
    color: white !important;
    padding: 10px 25px;
    border-radius: var(--border-radius);
    transition: var(--transition);
}

.btn-login:hover {
    background: var(--primary-dark);
    box-shadow: var(--shadow-md);
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: var(--text-dark);
    margin: 5px 0;
    border-radius: 2px;
    transition: var(--transition);
}

/* ============================================
   BUTTONS
   ============================================ */

.btn {
    display: inline-block;
    padding: 12px 28px;
    border-radius: var(--border-radius);
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
    border: none;
    cursor: pointer;
    font-size: 16px;
}

.btn-primary {
    background: var(--primary-color);
    color: white;
}

.btn-primary:hover {
    background: var(--primary-dark);
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.btn-secondary {
    background: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.btn-secondary:hover {
    background: var(--primary-color);
    color: white;
}

.btn-small {
    padding: 8px 16px;
    font-size: 14px;
}

.btn-large {
    padding: 16px 40px;
    font-size: 18px;
}

.btn-save {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    transition: var(--transition);
}

.btn-save:hover {
    transform: scale(1.2);
}

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

.hero {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    padding: 120px 20px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.hero h1 {
    font-size: 52px;
    font-weight: 700;
    margin-bottom: 20px;
    line-height: 1.2;
}

.hero p {
    font-size: 20px;
    margin-bottom: 40px;
    opacity: 0.95;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.hero-buttons .btn-primary,
.hero-buttons .btn-secondary {
    font-size: 18px;
    padding: 15px 35px;
}

.hero-buttons .btn-secondary {
    color: white;
    border-color: white;
    background: rgba(255, 255, 255, 0.2);
}

.hero-buttons .btn-secondary:hover {
    background: white;
    color: var(--primary-color);
}

/* ============================================
   QUICK SEARCH SECTION
   ============================================ */

.quick-search {
    padding: 60px 20px;
    background: var(--bg-light);
}

.quick-search h2 {
    text-align: center;
    font-size: 36px;
    margin-bottom: 40px;
    color: var(--text-dark);
}

.search-filters {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.filter-group {
    display: flex;
    flex-direction: column;
}

.filter-group label {
    font-weight: 600;
    margin-bottom: 10px;
    color: var(--text-dark);
}

.filter-group select {
    padding: 12px;
    border: 2px solid var(--border-color);
    border-radius: var(--border-radius);
    font-size: 14px;
    background: white;
    cursor: pointer;
    transition: var(--transition);
}

.filter-group select:hover,
.filter-group select:focus {
    border-color: var(--primary-color);
    outline: none;
    box-shadow: 0 0 0 3px rgba(26, 115, 232, 0.1);
}

.search-filters .btn {
    grid-column: 1 / -1;
    max-width: 200px;
    margin: 20px auto 0;
}

/* ============================================
   FEATURED UNIVERSITIES SECTION
   ============================================ 
   
   This section shows university cards in a grid
*/

.featured-unis {
    padding: 80px 20px;
}

.featured-unis h2 {
    font-size: 36px;
    text-align: center;
    margin-bottom: 50px;
    color: var(--text-dark);
}

/* Grid layout for university cards */
.uni-grid {
    /* 3 columns responsive */
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-bottom: 50px;
}

/* Individual university card */
.uni-card {
    background: white;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    overflow: hidden;
    transition: var(--transition);
    box-shadow: var(--shadow-sm);
    display: flex;
    flex-direction: column;
}

/* Card hover effect - lift up and add shadow */
.uni-card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-8px);
}

/* Card header with gradient background */
.uni-card-header {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    padding: 20px;
    color: white;
}

/* Rank and QS badge container */
.uni-rank {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Rank badge (medal emoji) */
.rank-badge {
    font-size: 24px;
    font-weight: bold;
}

/* QS ranking display */
.qs-rank {
    background: rgba(255, 255, 255, 0.3);
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
}

/* Card body - main content */
.uni-card-body {
    padding: 25px;
    flex-grow: 1;
}

/* University name (English) */
.uni-card-body h3 {
    font-size: 22px;
    margin-bottom: 5px;
    color: var(--text-dark);
}

/* University name (Chinese) */
.uni-chinese {
    color: var(--text-light);
    font-size: 14px;
    margin-bottom: 15px;
}

/* University information list */
.uni-info {
    margin: 15px 0;
    font-size: 14px;
}

.uni-info p {
    margin: 8px 0;
    color: var(--text-light);
}

/* Rating section */
.uni-rating {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 15px 0;
    padding: 15px 0;
    border-top: 1px solid var(--border-color);
}

.stars {
    font-size: 16px;
}

.rating {
    font-weight: 600;
    color: var(--primary-color);
}

/* Card footer - buttons */
.uni-card-footer {
    padding: 15px 25px;
    background: var(--bg-light);
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
}

/* Center button container */
.center-button {
    display: flex;
    justify-content: center;
    margin: 40px 0;
}

/* ============================================
   STATS SECTION
   ============================================ 
   
   Display key statistics about the portal
*/

.stats {
    background: var(--bg-light);
    padding: 60px 20px;
}

/* Stats grid - 4 columns */
.stats .container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
}

/* Individual stat card */
.stat-card {
    text-align: center;
}

.stat-card h3 {
    font-size: 42px;
    color: var(--primary-color);
    font-weight: 700;
    margin-bottom: 10px;
}

.stat-card p {
    font-size: 16px;
    color: var(--text-light);
}

/* ============================================
   FOOTER
   ============================================ */

.footer {
    background: var(--text-dark);
    color: white;
    padding: 30px 20px;
    text-align: center;
}

.footer p {
    opacity: 0.8;
}

/* ============================================
   MOBILE RESPONSIVE STYLES
   ============================================ */

@media (max-width: 768px) {
    
    /* Show hamburger menu */
    .hamburger {
        display: flex;
    }
    
    /* Hide nav menu by default */
    .nav-menu {
        display: none;
        position: absolute;
        top: 70px;
        left: 0;
        width: 100%;
        background: white;
        flex-direction: column;
        gap: 0;
        box-shadow: var(--shadow-md);
    }
    
    /* Show menu when active */
    .nav-menu.active {
        display: flex;
    }
    
    /* Menu items full width */
    .nav-menu li {
        width: 100%;
        border-bottom: 1px solid var(--border-color);
    }
    
    .nav-menu a {
        display: block;
        padding: 15px 20px;
    }
    
    /* Hero text smaller */
    .hero h1 {
        font-size: 36px;
    }
    
    .hero p {
        font-size: 16px;
    }
    
    /* Stack buttons */
    .hero-buttons {
        flex-direction: column;
    }
    
    .hero-buttons .btn {
        width: 100%;
    }
    
    /* Filter buttons stack */
    .search-filters {
        grid-template-columns: 1fr;
    }
    
    .search-filters .btn {
        grid-column: 1;
        width: 100%;
        max-width: none;
    }
    
    /* University cards 1 column */
    .uni-grid {
        grid-template-columns: 1fr;
    }
    
    /* Stats 2 columns */
    .stats .container {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
    
    .stat-card h3 {
        font-size: 32px;
    }
}

@media (max-width: 480px) {
    
    /* Very small hero */
    .hero {
        padding: 60px 15px;
    }
    
    .hero h1 {
        font-size: 28px;
    }
    
    /* Navigation smaller */
    .nav-container {
        height: 60px;
    }
    
    .logo-text {
        font-size: 14px;
    }
    
    /* Padding reductions */
    .featured-unis,
    .quick-search {
        padding: 40px 15px;
    }
    
    .featured-unis h2,
    .quick-search h2 {
        font-size: 24px;
        margin-bottom: 30px;
    }
    
    /* Stats 1 column */
    .stats .container {
        grid-template-columns: 1fr;
    }
}

/* ============================================
   PAGE HERO (For all inner pages)
   ============================================ */

.page-hero {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    padding: 60px 20px;
    text-align: center;
}

.page-hero-content h1 {
    font-size: 42px;
    font-weight: 700;
    margin-bottom: 15px;
}

.page-hero-content p {
    font-size: 18px;
    opacity: 0.95;
}

/* ============================================
   ADVANCED FILTERS (Search page)
   ============================================ */

.advanced-filters {
    padding: 60px 20px;
    background: var(--bg-light);
}

.advanced-filters h2 {
    text-align: center;
    font-size: 32px;
    margin-bottom: 40px;
}

.filters-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.filter-box {
    display: flex;
    flex-direction: column;
}

.filter-box label {
    font-weight: 600;
    margin-bottom: 10px;
}

.filter-box select {
    padding: 12px;
    border: 2px solid var(--border-color);
    border-radius: var(--border-radius);
    font-size: 14px;
    transition: var(--transition);
}

.filter-box select:focus {
    border-color: var(--primary-color);
    outline: none;
}

.filter-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin-top: 20px;
}

/* ============================================
   UNIVERSITIES LIST (Search page)
   ============================================ */

.universities-list {
    padding: 60px 20px;
}

.universities-list h2 {
    font-size: 32px;
    margin-bottom: 40px;
    color: var(--text-dark);
}

.uni-list-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 25px;
    margin-bottom: 50px;
}

.uni-list-card {
    background: white;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}

.uni-list-card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-5px);
}

.uni-list-header {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.uni-list-rank {
    font-size: 20px;
    font-weight: bold;
}

.uni-list-rating {
    font-size: 14px;
    background: rgba(255, 255, 255, 0.3);
    padding: 5px 10px;
    border-radius: 20px;
}

.uni-list-body {
    padding: 20px;
    flex-grow: 1;
}

.uni-list-body h3 {
    font-size: 20px;
    margin-bottom: 5px;
    color: var(--text-dark);
}

.uni-list-chinese {
    color: var(--text-light);
    font-size: 13px;
    margin-bottom: 15px;
}

.uni-list-details {
    margin: 15px 0;
    font-size: 13px;
    line-height: 1.8;
}

.uni-list-details p {
    margin: 5px 0;
    color: var(--text-light);
}

.uni-list-tags {
    display: flex;
    gap: 8px;
    margin: 15px 0;
    flex-wrap: wrap;
}

.tag {
    background: var(--bg-light);
    color: var(--primary-color);
    padding: 5px 12px;
    border-radius: 15px;
    font-size: 12px;
    font-weight: 600;
}

.uni-list-footer {
    padding: 15px 20px;
    background: var(--bg-light);
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
}

/* ============================================
   COMPARISON SECTION (Compare page)
   ============================================ */

.comparison-section {
    padding: 60px 20px;
}

.comparison-section h2 {
    text-align: center;
    font-size: 32px;
    margin-bottom: 40px;
}

.compare-controls {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
    margin-bottom: 40px;
}

.compare-select {
    display: flex;
    flex-direction: column;
}

.compare-select label {
    font-weight: 600;
    margin-bottom: 10px;
    font-size: 16px;
}

.compare-select select {
    padding: 15px;
    border: 2px solid var(--border-color);
    border-radius: var(--border-radius);
    font-size: 14px;
    background: white;
    cursor: pointer;
    transition: var(--transition);
}

.compare-select select:hover,
.compare-select select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(26, 115, 232, 0.1);
    outline: none;
}

/* ============================================
   COMPARISON TABLE
   ============================================ */

.comparison-table-section {
    padding: 60px 20px;
    background: var(--bg-light);
}

.comparison-table-section h2 {
    text-align: center;
    font-size: 32px;
    margin-bottom: 40px;
}

.comparison-table-wrapper {
    overflow-x: auto;
}

.comparison-table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    box-shadow: var(--shadow-sm);
    border-radius: var(--border-radius);
    overflow: hidden;
}

.comparison-table thead {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
}

.comparison-table th {
    padding: 20px;
    text-align: left;
    font-weight: 600;
}

.comparison-table td {
    padding: 15px 20px;
    border-bottom: 1px solid var(--border-color);
}

.comparison-table tbody tr:hover {
    background: var(--bg-light);
}

.comparison-table tbody tr:last-child td {
    border-bottom: none;
}

/* ============================================
   DASHBOARD SECTION
   ============================================ */

.dashboard-section {
    padding: 60px 20px;
}

.dashboard-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 25px;
    margin-bottom: 60px;
}

.dash-stat {
    background: white;
    border: 2px solid var(--border-color);
    border-radius: var(--border-radius);
    padding: 30px;
    text-align: center;
    transition: var(--transition);
}

.dash-stat:hover {
    border-color: var(--primary-color);
    box-shadow: var(--shadow-md);
}

.dash-stat h3 {
    font-size: 16px;
    margin-bottom: 10px;
    color: var(--text-light);
}

.stat-number {
    font-size: 42px;
    font-weight: 700;
    color: var(--primary-color);
}

.dashboard-section h2 {
    font-size: 28px;
    margin: 50px 0 30px 0;
    color: var(--text-dark);
}

/* ============================================
   SAVED UNIVERSITIES GRID
   ============================================ */

.saved-unis-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    margin-bottom: 60px;
}

.no-data {
    grid-column: 1 / -1;
    text-align: center;
    padding: 40px;
    background: var(--bg-light);
    border-radius: var(--border-radius);
    color: var(--text-light);
}

.no-data p {
    margin: 10px 0;
}

.no-data a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
}

/* ============================================
   APPLICATIONS TABLE
   ============================================ */

.applications-section {
    background: white;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    margin-bottom: 60px;
}

.applications-table {
    width: 100%;
    border-collapse: collapse;
}

.applications-table thead {
    background: var(--bg-light);
}

.applications-table th {
    padding: 15px;
    text-align: left;
    font-weight: 600;
    color: var(--text-dark);
    border-bottom: 2px solid var(--border-color);
}

.applications-table td {
    padding: 15px;
    border-bottom: 1px solid var(--border-color);
}

.applications-table tbody tr:hover {
    background: var(--bg-light);
}

/* ============================================
   DOCUMENTS SECTION
   ============================================ */

.documents-section {
    margin-bottom: 60px;
}

.document-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

.document-item {
    background: white;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: var(--transition);
}

.document-item:hover {
    box-shadow: var(--shadow-md);
    border-color: var(--primary-color);
}

/* ============================================
   SETTINGS SECTION
   ============================================ */

.settings-section {
    margin-bottom: 60px;
}

.settings-form {
    background: white;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    padding: 30px;
    max-width: 500px;
}

.form-group {
    margin-bottom: 20px;
    display: flex;
    flex-direction: column;
}

.form-group label {
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--text-dark);
}

.form-group input {
    padding: 12px;
    border: 2px solid var(--border-color);
    border-radius: var(--border-radius);
    font-size: 14px;
    transition: var(--transition);
}

.form-group input:focus {
    border-color: var(--primary-color);
    outline: none;
    box-shadow: 0 0 0 3px rgba(26, 115, 232, 0.1);
}

/* ============================================
   MOBILE RESPONSIVE - NEW PAGES
   ============================================ */

@media (max-width: 768px) {
    .page-hero-content h1 {
        font-size: 28px;
    }
    
    .uni-list-grid {
        grid-template-columns: 1fr;
    }
    
    .comparison-table-wrapper {
        font-size: 12px;
    }
    
    .comparison-table th,
    .comparison-table td {
        padding: 10px;
    }
    
    .dashboard-stats {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .page-hero {
        padding: 40px 15px;
    }
    
    .page-hero-content h1 {
        font-size: 22px;
    }
    
    .dashboard-stats {
        grid-template-columns: 1fr;
    }
    
    .compare-controls {
        grid-template-columns: 1fr;
    }
}


/* ============================================
   UNIVERSITY PROFILE PAGE STYLES
   ============================================ */

.uni-profile-section {
    padding: 60px 20px;
}

.uni-profile-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    background: white;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    padding: 30px;
    margin-bottom: 40px;
    box-shadow: var(--shadow-sm);
}

.uni-profile-left h1 {
    font-size: 36px;
    margin-bottom: 10px;
    color: var(--text-dark);
}

.uni-chinese-large {
    font-size: 20px;
    color: var(--text-light);
    margin-bottom: 15px;
}

.uni-profile-rating {
    display: flex;
    gap: 10px;
    align-items: center;
    font-size: 18px;
}

.uni-profile-right {
    display: flex;
    gap: 15px;
    flex-direction: column;
}

.uni-profile-quick-facts {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 60px;
}

.quick-fact {
    background: white;
    border: 2px solid var(--border-color);
    border-radius: var(--border-radius);
    padding: 25px;
    text-align: center;
    transition: var(--transition);
}

.quick-fact:hover {
    border-color: var(--primary-color);
    box-shadow: var(--shadow-md);
    transform: translateY(-5px);
}

.quick-fact h3 {
    font-size: 14px;
    color: var(--text-light);
    margin-bottom: 10px;
}

.quick-fact p {
    font-size: 20px;
    font-weight: 700;
    color: var(--primary-color);
}

/* ============================================
   TAB NAVIGATION
   ============================================ */

.uni-profile-tabs {
    background: white;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
}

.tab-buttons {
    display: flex;
    border-bottom: 2px solid var(--border-color);
    overflow-x: auto;
}

.tab-btn {
    flex: 1;
    padding: 20px;
    background: none;
    border: none;
    cursor: pointer;
    font-size: 16px;
    font-weight: 600;
    color: var(--text-light);
    transition: var(--transition);
    border-bottom: 3px solid transparent;
    white-space: nowrap;
}

.tab-btn:hover {
    background: var(--bg-light);
    color: var(--primary-color);
}

.tab-btn.active {
    color: var(--primary-color);
    border-bottom-color: var(--primary-color);
}

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

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

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.tab-content h2 {
    font-size: 28px;
    margin-bottom: 20px;
    color: var(--text-dark);
}

.tab-content h3 {
    font-size: 18px;
    margin: 20px 0 10px 0;
    color: var(--text-dark);
}

.tab-content p {
    line-height: 1.8;
    color: var(--text-light);
    margin-bottom: 15px;
}

.tab-content ul {
    list-style: none;
    padding-left: 0;
}

.tab-content ul li {
    padding: 10px 0;
    padding-left: 25px;
    position: relative;
    color: var(--text-light);
    line-height: 1.6;
}

.tab-content ul li:before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--primary-color);
    font-weight: bold;
}

/* ============================================
   PROGRAMS GRID
   ============================================ */

.programs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin: 20px 0;
}

.program-card {
    background: var(--bg-light);
    border: 2px solid var(--border-color);
    border-radius: var(--border-radius);
    padding: 20px;
    transition: var(--transition);
}

.program-card:hover {
    border-color: var(--primary-color);
    box-shadow: var(--shadow-md);
}

.program-card h3 {
    margin-bottom: 10px;
    color: var(--primary-color);
}

.program-card p {
    font-size: 14px;
    color: var(--text-light);
    margin-bottom: 15px;
}

/* ============================================
   ADMISSION BOXES
   ============================================ */

.admission-box {
    background: var(--bg-light);
    border-left: 4px solid var(--primary-color);
    padding: 20px;
    margin: 20px 0;
    border-radius: var(--border-radius);
}

.admission-box h3 {
    margin-bottom: 15px;
    color: var(--primary-color);
}

.admission-box ul {
    list-style: none;
    padding-left: 0;
}

.admission-box ul li {
    padding: 8px 0;
    padding-left: 25px;
    position: relative;
    color: var(--text-light);
}

.admission-box ul li:before {
    content: "→";
    position: absolute;
    left: 0;
    color: var(--primary-color);
    font-weight: bold;
}

/* ============================================
   CAMPUS FEATURES
   ============================================ */

.campus-feature {
    background: white;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    padding: 25px;
    margin: 20px 0;
    transition: var(--transition);
}

.campus-feature:hover {
    box-shadow: var(--shadow-md);
    border-color: var(--primary-color);
}

.campus-feature h3 {
    color: var(--primary-color);
    margin-bottom: 10px;
}

.campus-feature p {
    color: var(--text-light);
    line-height: 1.8;
}

/* ============================================
   CONTACT INFO
   ============================================ */

.contact-info {
    background: var(--bg-light);
    border-radius: var(--border-radius);
    padding: 25px;
    margin: 20px 0;
}

.contact-info h3 {
    color: var(--primary-color);
    margin-bottom: 15px;
}

.contact-info p {
    margin: 10px 0;
    color: var(--text-light);
    line-height: 1.8;
}

.contact-info a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
}

.contact-info a:hover {
    text-decoration: underline;
}

/* ============================================
   ACCREDITATIONS
   ============================================ */

.accreditations {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    margin: 20px 0;
}

.accred-badge {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    padding: 10px 20px;
    border-radius: 25px;
    font-weight: 600;
    font-size: 14px;
}

/* ============================================
   CTA SECTION
   ============================================ */

.cta-section {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    padding: 60px 20px;
    text-align: center;
    border-radius: var(--border-radius);
    margin: 60px 0;
}

.cta-section h2 {
    font-size: 36px;
    margin-bottom: 10px;
}

.cta-section p {
    font-size: 18px;
    margin-bottom: 30px;
    opacity: 0.9;
}

.cta-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

.center-button {
    text-align: center;
    margin: 40px 0;
}

/* ============================================
   FILTER STATUS MESSAGE
   ============================================ */

.filter-status {
    background: linear-gradient(135deg, rgba(40, 200, 68, 0.1), rgba(40, 200, 68, 0.05));
    border-left: 4px solid #28c844;
    padding: 20px;
    border-radius: var(--border-radius);
    color: #155724;
    font-weight: 500;
}

.filter-status p {
    margin: 0;
}

/* ============================================
   MOBILE RESPONSIVE - PROFILE PAGE
   ============================================ */

@media (max-width: 768px) {
    .uni-profile-header {
        flex-direction: column;
        gap: 20px;
    }
    
    .uni-profile-left h1 {
        font-size: 28px;
    }
    
    .uni-profile-right {
        flex-direction: row;
        width: 100%;
    }
    
    .uni-profile-right .btn {
        flex: 1;
    }
    
    .tab-buttons {
        overflow-x: auto;
        flex-wrap: wrap;
    }
    
    .tab-btn {
        flex: 0 1 auto;
        padding: 15px;
        font-size: 14px;
    }
    
    .tab-content {
        padding: 20px;
    }
}

@media (max-width: 480px) {
    .uni-profile-left h1 {
        font-size: 22px;
    }
    
    .quick-fact {
        padding: 15px;
    }
    
    .cta-section {
        padding: 40px 15px;
    }
    
    .cta-section h2 {
        font-size: 24px;
    }
    
    .cta-buttons {
        flex-direction: column;
    }
}


/* ========== LOGO STYLING ========== */
.logo-img {
    height: 40px;
    width: auto;
    margin-right: 10px;
    vertical-align: middle;
}

.logo-text {
    font-size: 20px;
    font-weight: bold;
    color: #1B5E9B;
}

/* ========== FOOTER STYLING ========== */
.footer {
    background-color: #1B5E9B;
    color: white;
    padding: 40px 0 20px;
    margin-top: 60px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-bottom: 30px;
}

.footer-section h4 {
    color: #90EE90;
    margin-bottom: 15px;
    font-size: 18px;
}

.footer-section ul {
    list-style: none;
    padding: 0;
}

.footer-section ul li {
    margin-bottom: 10px;
}

.footer-section a {
    color: #ffffff;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section a:hover {
    color: #90EE90;
}

.contact-list {
    font-size: 14px;
}

.social-links {
    display: flex;
    gap: 15px;
}

.social-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    font-size: 18px;
    transition: all 0.3s ease;
}

.social-links a:hover {
    background-color: #90EE90;
    color: #1B5E9B;
    transform: translateY(-3px);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    padding-top: 20px;
    text-align: center;
    font-size: 14px;
}

/* ========== ABOUT SECTION ========== */
.about {
    padding: 60px 0;
    background-color: #f9f9f9;
}

.about h2 {
    text-align: center;
    font-size: 36px;
    margin-bottom: 50px;
    color: #1B5E9B;
}

.about-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.about-card {
    background: white;
    padding: 30px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.about-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 20px rgba(27, 94, 155, 0.2);
}

.about-card i {
    font-size: 40px;
    color: #1B5E9B;
    margin-bottom: 15px;
}

.about-card h3 {
    font-size: 20px;
    color: #1B5E9B;
    margin-bottom: 10px;
}

.about-card p {
    color: #666;
    line-height: 1.6;
}


/* ========== ABOUT SECTION ========== */
.about {
    padding: 60px 0;
    background-color: #f9f9f9;
}

.about h2 {
    text-align: center;
    font-size: 36px;
    margin-bottom: 50px;
    color: #1B5E9B;
}

.about-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.about-card {
    background: white;
    padding: 30px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.about-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 20px rgba(27, 94, 155, 0.2);
}

.about-card i {
    font-size: 40px;
    color: #1B5E9B;
    margin-bottom: 15px;
}

.about-card h3 {
    font-size: 20px;
    color: #1B5E9B;
    margin-bottom: 10px;
}

.about-card p {
    color: #666;
    line-height: 1.6;
}


/* ========== FOOTER SECTION ========== */
.footer {
  background: linear-gradient(135deg, #1B5E9B 0%, #0d3a5c 100%);
  color: white;
  padding: 60px 0 0;
  margin-top: 80px;
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 40px;
  padding: 60px 0 40px;
}

.footer-column {
  animation: fadeInUp 0.6s ease-out;
}

.footer-title {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 20px;
  color: #fff;
  text-transform: uppercase;
  letter-spacing: 1px;
  border-bottom: 2px solid #FFD700;
  padding-bottom: 10px;
  display: inline-block;
}

.footer-description {
  font-size: 14px;
  line-height: 1.8;
  color: rgba(255, 255, 255, 0.85);
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links li {
  margin-bottom: 12px;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  font-size: 14px;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
}

.footer-links a:hover {
  color: #FFD700;
  transform: translateX(5px);
}

.footer-contact {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 14px;
}

.contact-item a {
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  transition: color 0.3s ease;
}

.contact-item a:hover {
  color: #FFD700;
}

.social-links {
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
}

.social-btn {
  width: 45px;
  height: 45px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: white;
  text-decoration: none;
  font-size: 20px;
  transition: all 0.3s ease;
  border: 2px solid rgba(255, 255, 255, 0.3);
}

.social-btn:hover {
  transform: translateY(-5px);
  border-color: #FFD700;
}

.social-btn.whatsapp:hover {
  background-color: #25D366;
  border-color: #25D366;
}

.social-btn.wechat:hover {
  background-color: #09B83E;
  border-color: #09B83E;
}

.footer-bottom {
  background-color: rgba(0, 0, 0, 0.2);
  padding: 20px;
  text-align: center;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.7);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

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

@media (max-width: 768px) {
  .footer-content {
    grid-template-columns: 1fr;
    gap: 30px;
  }
}
