* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

:root {
    /* Professional Color Palette */
    --primary-color: #2c3e50;
    --secondary-color: #34495e;
    --accent-color: #3498db;
    --accent-light: #5dade2;
    --success-color: #27ae60;
    --warning-color: #f39c12;
    --danger-color: #e74c3c;
    --info-color: #17a2b8;
    --self-funded-color: #9b59b6;

    /* Neutral Colors */
    --light-bg: #f8f9fa;
    --light-border: #e9ecef;
    --medium-gray: #95a5a6;
    --dark-gray: #7b8a8b;

    /* Text Colors */
    --text-dark: #2c3e50;
    --text-medium: #34495e;
    --text-light: #7f8c8d;

    /* White & Shadow */
    --white: #ffffff;
    --shadow: 0 2px 20px rgba(0, 0, 0, 0.08);
    --shadow-hover: 0 5px 30px rgba(0, 0, 0, 0.12);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

body {
    background: linear-gradient(135deg, #f5f7fa 0%, #e4e9f2 100%);
    color: var(--text-dark);
    transition: var(--transition);
    direction: ltr;
    min-height: 100vh;
}

/* Improved Scroll */
::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}

::-webkit-scrollbar-track {
    background: var(--light-bg);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb {
    background: var(--accent-color);
    border-radius: 5px;
    transition: var(--transition);
}

::-webkit-scrollbar-thumb:hover {
    background: var(--accent-light);
}

/* Main Container */
.scholarship-container {
    max-width: 1400px;
    margin: 20px auto;
    background: var(--white);
    border-radius: 16px;
    box-shadow: var(--shadow);
    overflow: hidden;
    animation: fadeInUp 0.8s ease;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Page Header */
.page-header {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    padding: 25px 40px;
    color: var(--white);
    position: relative;
    overflow: hidden;
}

.page-header::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 1000 100" opacity="0.1"><path d="M0,50 Q250,0 500,50 T1000,50 V100 H0 Z" fill="white"/></svg>');
    background-size: cover;
}

.header-content {
    position: relative;
    z-index: 1;
}

.header-content h1 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 15px;
}

.header-content h1 i {
    color: var(--accent-light);
    font-size: 2.2rem;
}

.header-subtitle {
    font-size: 1rem;
    opacity: 0.9;
    font-weight: 400;
}

/* Search Section */
.search-section {
    background: var(--white);
    padding: 20px 40px;
    border-bottom: 1px solid var(--light-border);
}

.search-group {
    display: flex;
    gap: 20px;
    align-items: center;
}

.search-input-container {
    flex: 1;
    position: relative;
}

.search-input-container i {
    position: absolute;
    left: 18px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--medium-gray);
    font-size: 1.1rem;
}

.search-input-container input {
    width: 100%;
    padding: 14px 20px 14px 50px;
    border: 2px solid var(--light-border);
    border-radius: 12px;
    background: var(--light-bg);
    color: var(--text-dark);
    font-size: 16px;
    outline: none;
    transition: var(--transition);
}

.search-input-container input:focus {
    border-color: var(--accent-color);
    background: var(--white);
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.1);
}

.view-select {
    padding: 14px 20px;
    border: 2px solid var(--light-border);
    border-radius: 12px;
    background: var(--white);
    color: var(--text-dark);
    font-size: 15px;
    font-weight: 500;
    outline: none;
    cursor: pointer;
    transition: var(--transition);
    min-width: 200px;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2334495e' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 18px center;
    background-size: 16px;
    padding-right: 50px;
}

.view-select:hover {
    border-color: var(--accent-color);
}

/* Main Content */
.main-content {
    display: flex;
    min-height: 500px;
    position: relative;
}

/* Filter Section */
.filter-section {
    width: 280px;
    background: var(--light-bg);
    padding: 25px;
    border-right: 1px solid var(--light-border);
    transition: var(--transition);
    position: relative;
    flex-shrink: 0;
}

.filter-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 2px solid var(--accent-color);
}

.filter-header i {
    color: var(--accent-color);
    font-size: 1.2rem;
}

.filter-header h3 {
    color: var(--text-dark);
    font-size: 1.2rem;
    font-weight: 600;
}

/* Filters Container */
.filters-container {
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Advanced Filter Dropdown */
.filter-dropdown {
    position: relative;
    margin-bottom: 20px;
}

.filter-dropdown-btn {
    width: 100%;
    padding: 14px 18px;
    border: 2px solid var(--light-border);
    border-radius: 10px;
    background: var(--white);
    color: var(--text-dark);
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 600;
    font-size: 14px;
}

.filter-dropdown-btn:hover {
    border-color: var(--accent-color);
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

.filter-dropdown-btn.active {
    border-color: var(--accent-color);
    background: var(--accent-color);
    color: var(--white);
}

.filter-dropdown-btn.active .dropdown-icon {
    transform: rotate(180deg);
}

.dropdown-btn-content {
    display: flex;
    align-items: center;
    gap: 10px;
}

.dropdown-btn-content i {
    font-size: 1rem;
    color: var(--accent-color);
}

.filter-dropdown-btn.active .dropdown-btn-content i {
    color: var(--white);
}

.dropdown-icon {
    transition: var(--transition);
    color: var(--medium-gray);
}

.filter-dropdown-btn.active .dropdown-icon {
    color: var(--white);
}

.dropdown-buttons {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: var(--white);
    border: 2px solid var(--accent-color);
    border-radius: 0 0 10px 10px;
    border-top: none;
    box-shadow: var(--shadow-hover);
    z-index: 1000;
    display: none;
    padding: 12px;
    flex-direction: column;
    gap: 6px;
    animation: slideDown 0.3s ease;
    max-height: 350px;
    overflow-y: auto;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.dropdown-buttons.show {
    display: flex;
}

.filter-button {
    padding: 12px 14px;
    border: 1px solid var(--light-border);
    border-radius: 8px;
    background: var(--white);
    color: var(--text-dark);
    cursor: pointer;
    transition: var(--transition);
    font-size: 13px;
    font-weight: 500;
    text-align: left;
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 180px;
}

.filter-button:hover {
    border-color: var(--accent-light);
    background: rgba(52, 152, 219, 0.05);
    transform: translateX(5px);
}

.filter-button.active {
    background: var(--accent-color);
    color: var(--white);
    border-color: var(--accent-color);
    box-shadow: 0 2px 8px rgba(52, 152, 219, 0.3);
}

.filter-button i {
    width: 16px;
    text-align: center;
    font-size: 0.9rem;
}

.clear-filters-btn {
    width: 100%;
    padding: 12px 18px;
    border: 2px solid var(--light-border);
    border-radius: 10px;
    background: var(--white);
    color: var(--text-light);
    cursor: pointer;
    transition: var(--transition);
    font-weight: 600;
    font-size: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 20px;
}

.clear-filters-btn:hover {
    border-color: var(--danger-color);
    color: var(--danger-color);
    background: rgba(231, 76, 60, 0.05);
}

/* Content Section */
.content-section {
    flex: 1;
    padding: 0;
    overflow: hidden;
}

/* Programs Content */
.programs-content,
.self-funded-content {
    display: none;
    padding: 25px;
    animation: slideInLeft 0.5s ease;
    height: 100%;
}

.programs-content.active,
.self-funded-content.active {
    display: block;
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Universities Content */
.universities-content {
    display: none;
    padding: 25px;
    height: 100%;
}

.universities-content.active {
    display: block;
    animation: slideInRight 0.5s ease;
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(20px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.content-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid var(--light-border);
}

.content-header h3 {
    color: var(--text-dark);
    font-size: 1.3rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
}

.content-header h3 i {
    color: var(--accent-color);
}

#selfFundedView .content-header h3 i {
    color: var(--self-funded-color);
}

.results-count {
    color: var(--text-light);
    font-size: 13px;
    font-weight: 500;
    background: var(--light-bg);
    padding: 6px 14px;
    border-radius: 20px;
}

/* Universities Container */
.universities-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 25px;
    padding: 10px 0;
}

/* University Card */
.university-card {
    background: var(--white);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    border: 1px solid var(--light-border);
    position: relative;
}

.university-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-hover);
    border-color: var(--accent-light);
}

.university-header {
    padding: 20px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: var(--white);
    position: relative;
    overflow: hidden;
    min-height: 180px;
    display: flex;
    align-items: center;
    gap: 20px;
}

.university-logo {
    width: 80px;
    height: 80px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    flex-shrink: 0;
}

.university-title {
    flex: 1;
}

.university-title h4 {
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 5px;
    line-height: 1.3;
}

.university-location {
    opacity: 0.9;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
}

.university-location i {
    font-size: 0.9rem;
}

.university-rating {
    display: flex;
    align-items: center;
    gap: 5px;
    margin-top: 8px;
}

.stars {
    color: #ffc107;
    font-size: 0.9rem;
}

.rating-number {
    font-size: 0.9rem;
    opacity: 0.9;
    margin-left: 5px;
}

.university-content {
    padding: 20px;
}

.university-brief {
    color: var(--text-medium);
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 15px;
    max-height: 100px;
    overflow: hidden;
    transition: max-height 0.5s ease;
}

.university-brief.expanded {
    max-height: 500px;
}

.read-more-btn {
    background: var(--accent-color);
    color: var(--white);
    border: none;
    padding: 8px 16px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.85rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: var(--transition);
    margin-bottom: 20px;
}

.read-more-btn:hover {
    background: var(--accent-light);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(52, 152, 219, 0.3);
}

.university-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin-bottom: 20px;
    background: var(--light-bg);
    padding: 15px;
    border-radius: 10px;
    border: 1px solid var(--light-border);
}

.stat-item {
    text-align: center;
}

.stat-value {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--accent-color);
    display: block;
}

.stat-label {
    font-size: 0.75rem;
    color: var(--text-light);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-top: 3px;
}

/* University Gallery */
.university-gallery {
    position: relative;
    margin-top: 15px;
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid var(--light-border);
}

.gallery-title {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.gallery-slider {
    display: flex;
    overflow-x: auto;
    gap: 10px;
    padding: 10px;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
}

.gallery-slider::-webkit-scrollbar {
    display: none;
}

.gallery-item {
    flex: 0 0 auto;
    width: 120px;
    height: 80px;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    transition: var(--transition);
    position: relative;
}

.gallery-item:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.gallery-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.6);
    color: var(--white);
    border: none;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
    opacity: 0;
    z-index: 2;
}

.university-gallery:hover .gallery-nav {
    opacity: 1;
}

.gallery-nav.prev {
    left: 10px;
}

.gallery-nav.next {
    right: 10px;
}

.gallery-nav:hover {
    background: rgba(0, 0, 0, 0.8);
}

/* University Gallery Modal */
.gallery-modal-container {
    background: var(--white);
    width: 95%;
    max-width: 800px;
    max-height: 90vh;
    overflow-y: auto;
    border-radius: 20px;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.25);
    animation: modalSlideIn 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.gallery-modal-header {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: var(--white);
    padding: 30px 35px;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    border-radius: 20px 20px 0 0;
    position: relative;
    overflow: hidden;
}

.gallery-modal-header::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 150px;
    height: 150px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    transform: translate(30%, -30%);
}

.gallery-modal-content {
    margin-top: -12%;
    transform: scale(0.6);
    transform-origin: center center;
    height: 500px;
}

.main-gallery-image {
    position: relative;
    width: 100%;
    height: 400px;
    border-radius: 16px;
    overflow: hidden;
    margin-bottom: 25px;
    box-shadow: var(--shadow);
    border: 1px solid var(--light-border);
}

.main-gallery-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.main-gallery-image:hover img {
    transform: scale(1.02);
}

.gallery-fullscreen-btn {
    position: absolute;
    top: 20px;
    right: 20px;
    background: rgba(0, 0, 0, 0.7);
    color: var(--white);
    border: none;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
    font-size: 1.2rem;
    z-index: 10;
}

.gallery-fullscreen-btn:hover {
    background: rgba(0, 0, 0, 0.9);
    transform: scale(1.1);
}

.gallery-thumbnails {
    display: flex;
    gap: 15px;
    overflow-x: auto;
    padding: 15px 5px;
    margin-bottom: 25px;
    scrollbar-width: thin;
}

.gallery-thumbnails::-webkit-scrollbar {
    height: 8px;
}

.gallery-thumbnails::-webkit-scrollbar-track {
    background: var(--light-bg);
    border-radius: 4px;
}

.gallery-thumbnails::-webkit-scrollbar-thumb {
    background: var(--accent-color);
    border-radius: 4px;
}

.gallery-thumbnail {
    flex: 0 0 auto;
    width: 100px;
    height: 70px;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    transition: var(--transition);
    border: 3px solid transparent;
    opacity: 0.7;
}

.gallery-thumbnail:hover {
    transform: translateY(-3px);
    opacity: 0.9;
}

.gallery-thumbnail.active {
    border-color: var(--accent-color);
    opacity: 1;
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(52, 152, 219, 0.3);
}

.gallery-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.gallery-nav-buttons {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid var(--light-border);
}

.gallery-nav-btn {
    background: var(--accent-color);
    color: var(--white);
    border: none;
    padding: 12px 24px;
    border-radius: 10px;
    cursor: pointer;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: var(--transition);
    font-size: 14px;
    min-width: 140px;
}

.gallery-nav-btn:hover:not(:disabled) {
    background: var(--accent-light);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(52, 152, 219, 0.3);
}

.gallery-nav-btn:disabled {
    background: var(--medium-gray);
    cursor: not-allowed;
    opacity: 0.6;
}

.gallery-counter {
    font-size: 16px;
    font-weight: 700;
    color: var(--text-dark);
    background: var(--light-bg);
    padding: 8px 20px;
    border-radius: 20px;
    border: 1px solid var(--light-border);
}

/* Fullscreen Gallery */
.fullscreen-gallery {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    z-index: 99999;
    display: none;
    flex-direction: column;
}

.fullscreen-gallery.active {
    display: flex;
}

.fullscreen-header {
    background: rgba(0, 0, 0, 0.8);
    padding: 20px 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--white);
    position: relative;
    z-index: 100;
}

.fullscreen-close-btn {
    background: rgba(255, 255, 255, 0.1);
    color: var(--white);
    border: none;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
    font-size: 1.5rem;
}

.fullscreen-close-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: rotate(90deg);
}

.fullscreen-title {
    font-size: 1.2rem;
    font-weight: 600;
}

.fullscreen-content {
    transform: scale(0.5);
    transform-origin: center center;
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.fullscreen-content img {
    max-width: 90%;
    max-height: 50%;
    object-fit: contain;
    border-radius: 10px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
    animation: zoomIn 0.3s ease;
}

@keyframes zoomIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

.fullscreen-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.2);
    color: var(--white);
    border: none;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
    font-size: 1.5rem;
    z-index: 100;
}

.fullscreen-nav:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-50%) scale(1.1);
}

.prev-fullscreen {
    left: 30px;
}

.next-fullscreen {
    right: 30px;
}

/* Table Wrapper without vertical scrollbar */
.table-wrapper {
    border: 1px solid var(--light-border);
    border-radius: 12px;
    background: var(--white);
    box-shadow: var(--shadow);
    overflow: auto;
    position: relative;
}

/* Remove vertical scrollbar */
.table-wrapper::-webkit-scrollbar {
    display: none;
}

.table-wrapper {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.table-container {
    width: 100%;
    min-width: 100%;
    display: table;
}

.table-header {
    display: flex;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: var(--white);
    position: sticky;
    top: 0;
    z-index: 10;
    font-size: 12px;
}

.table-row {
    display: flex;
    border-bottom: 1px solid var(--light-border);
    transition: var(--transition);
    background: var(--white);
    min-height: 60px;
    align-items: center;
}

.table-row:hover {
    background: rgba(52, 152, 219, 0.03);
    transform: translateY(-1px);
}

.table-row.expired {
    background: rgba(243, 156, 18, 0.05);
    opacity: 0.8;
}

.table-row.near-deadline {
    background: rgba(231, 76, 60, 0.05);
    border-left: 3px solid var(--danger-color);
}

.header-cell,
.table-cell {
    padding: 12px 10px;
    text-align: center;
    font-weight: 600;
    font-size: 12px;
    white-space: nowrap;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 50px;
    border-right: 1px solid rgba(255, 255, 255, 0.1);
    flex-direction: column;
}

.table-cell {
    font-weight: 500;
    color: var(--text-medium);
    border-right: 1px solid var(--light-border);
    justify-content: center;
}

.header-cell:last-child,
.table-cell:last-child {
    border-right: none;
}

/* Column width adjustments */
.header-cell.serial,
.table-cell.serial-number {
    flex: 0.1;
    min-width: 40px;
    max-width: 50px;
}

.serial-number {
    color: var(--accent-color);
    font-weight: 700;
    font-size: 13px;
}

/* Modified column dimensions */
.header-cell:nth-child(2),
.table-cell:nth-child(2) {
    flex: 0.4;
    min-width: 90px;
    max-width: 100px;
}

.header-cell:nth-child(3),
.table-cell:nth-child(3) {
    flex: 1.5;
    min-width: 250px;
    max-width: 300px;
    text-align: left;
    align-items: flex-start;
    padding-left: 15px;
}

.header-cell:nth-child(4),
.table-cell:nth-child(4) {
    flex: 0.3;
    min-width: 70px;
    max-width: 80px;
}

.header-cell:nth-child(5),
.table-cell:nth-child(5) {
    flex: 0.4;
    min-width: 80px;
    max-width: 90px;
}

.header-cell:nth-child(6),
.table-cell:nth-child(6) {
    flex: 0.3;
    min-width: 60px;
    max-width: 70px;
}

.header-cell:nth-child(7),
.table-cell:nth-child(7) {
    flex: 0.5;
    min-width: 90px;
    max-width: 100px;
}

.header-cell:nth-child(8),
.table-cell:nth-child(8) {
    flex: 0.3;
    min-width: 70px;
    max-width: 80px;
}

.header-cell:nth-child(9),
.table-cell:nth-child(9) {
    flex: 0.3;
    min-width: 70px;
    max-width: 80px;
}

/* Improve program and university display */
.table-cell:nth-child(3) strong {
    font-size: 12px;
    color: var(--text-dark);
    display: block;
    margin-bottom: 4px;
    line-height: 1.3;
}

.table-cell:nth-child(3) .university-name {
    font-size: 10px;
    color: var(--text-light);
    line-height: 1.2;
    font-style: italic;
}

/* Improve badges */
.specialization-badge {
    display: inline-block;
    padding: 3px 8px;
    background: rgba(52, 152, 219, 0.1);
    color: var(--accent-color);
    border-radius: 10px;
    font-size: 10px;
    font-weight: 600;
    text-align: center;
    min-width: 70px;
}

.degree-badge {
    display: inline-block;
    padding: 3px 6px;
    background: rgba(39, 174, 96, 0.1);
    color: var(--success-color);
    border-radius: 6px;
    font-size: 10px;
    font-weight: 600;
    min-width: 60px;
}

/* Table Buttons */
.details-btn-table,
.apply-btn-table {
    padding: 6px 10px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 10px;
    font-weight: 600;
    transition: var(--transition);
    min-width: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    letter-spacing: 0.3px;
}

.details-btn-table {
    background: var(--secondary-color);
    color: var(--white);
}

.details-btn-table:hover {
    background: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(44, 62, 80, 0.2);
}

.apply-btn-table {
    background: var(--success-color);
    color: var(--white);
    position: relative;
}

.apply-btn-table:hover:not(:disabled) {
    background: #219a52;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(39, 174, 96, 0.3);
}

.apply-btn-table:disabled {
    background: var(--medium-gray);
    cursor: not-allowed;
    opacity: 0.7;
}

/* Pagination */
.pagination-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 25px;
    padding: 18px;
    background: var(--light-bg);
    border-radius: 12px;
    border: 1px solid var(--light-border);
}

.pagination-info {
    color: var(--text-light);
    font-size: 13px;
    font-weight: 500;
}

.pagination-buttons {
    display: flex;
    gap: 6px;
    align-items: center;
}

.pagination-btn {
    padding: 8px 14px;
    border: 1px solid var(--light-border);
    background: var(--white);
    color: var(--text-medium);
    border-radius: 8px;
    cursor: pointer;
    transition: var(--transition);
    font-size: 13px;
    font-weight: 600;
    min-width: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.pagination-btn:hover:not(:disabled) {
    background: var(--accent-color);
    color: var(--white);
    border-color: var(--accent-color);
    transform: translateY(-2px);
}

.pagination-btn.active {
    background: var(--accent-color);
    color: var(--white);
    border-color: var(--accent-color);
}

.pagination-btn:disabled {
    background: var(--light-bg);
    color: var(--dark-gray);
    cursor: not-allowed;
    opacity: 0.6;
}

/* Program Details Modal - Modern Redesign */
.modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(44, 62, 80, 0.95);
    z-index: 9999;
    justify-content: center;
    align-items: center;
    padding: 20px;
    animation: fadeIn 0.3s ease;
    backdrop-filter: blur(5px);
}

@keyframes fadeIn {
    from {
        opacity: 0;
        backdrop-filter: blur(0);
    }

    to {
        opacity: 1;
        backdrop-filter: blur(5px);
    }
}

.modal-overlay.active {
    display: flex;
}

.program-modal-container {
    background: var(--white);
    width: 95%;
    max-width: 1000px;
    max-height: 90vh;
    overflow-y: auto;
    border-radius: 20px;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.25);
    animation: modalSlideIn 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-30px) scale(0.95);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* Modal Header Redesign */
.program-modal-header {
    color: var(--white);
    padding: 30px 35px;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    border-radius: 20px 20px 0 0;
    position: relative;
    overflow: hidden;
}

#programDetailsModal .program-modal-header {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
}

#selfFundedDetailsModal .program-modal-header {
    background: linear-gradient(135deg, var(--self-funded-color), #8e44ad);
}

.program-modal-header::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 150px;
    height: 150px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    transform: translate(30%, -30%);
}

.modal-header-content {
    display: flex;
    align-items: flex-start;
    gap: 25px;
    position: relative;
    z-index: 2;
    flex: 1;
}

.modal-icon-container {
    background: rgba(255, 255, 255, 0.15);
    width: 80px;
    height: 80px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.modal-icon {
    font-size: 2.8rem;
    color: var(--white);
}

.modal-title-section {
    flex: 1;
}

.modal-title-section h2 {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 8px;
    line-height: 1.3;
}

.modal-subtitle {
    opacity: 0.9;
    font-size: 1.1rem;
    margin-bottom: 15px;
    font-weight: 400;
}

.modal-tags {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.modal-tag {
    padding: 6px 14px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.3px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.program-modal-close {
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: var(--white);
    font-size: 28px;
    cursor: pointer;
    padding: 5px;
    transition: var(--transition);
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    position: relative;
    z-index: 2;
    backdrop-filter: blur(10px);
}

.program-modal-close:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: rotate(90deg) scale(1.1);
}

.program-modal-content {
    padding: 35px;
}

/* Summary Cards */
.summary-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 35px;
}

.summary-card {
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    padding: 20px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    gap: 18px;
    transition: var(--transition);
    border: 1px solid var(--light-border);
    position: relative;
    overflow: hidden;
}

.summary-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
    border-color: var(--accent-light);
}

.summary-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: var(--accent-color);
}

.summary-card:nth-child(2)::before {
    background: var(--info-color);
}

.summary-card:nth-child(3)::before {
    background: var(--warning-color);
}

.summary-card:nth-child(4)::before {
    background: var(--success-color);
}

.card-icon {
    width: 50px;
    height: 50px;
    background: var(--white);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--accent-color);
    flex-shrink: 0;
    box-shadow: var(--shadow);
}

.summary-card:nth-child(2) .card-icon {
    color: var(--info-color);
}

.summary-card:nth-child(3) .card-icon {
    color: var(--warning-color);
}

.summary-card:nth-child(4) .card-icon {
    color: var(--success-color);
}

.card-content {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.card-label {
    font-size: 12px;
    color: var(--text-light);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.card-value {
    font-size: 16px;
    font-weight: 700;
    color: var(--text-dark);
}

.card-value.deadline {
    color: var(--danger-color);
}

/* Scholarship Features Section Modern */
.scholarship-features-section {
    background: linear-gradient(135deg, rgba(52, 152, 219, 0.05), rgba(52, 152, 219, 0.02));
    padding: 25px;
    border-radius: 16px;
    border-left: 4px solid var(--accent-color);
    margin-bottom: 35px;
    position: relative;
    overflow: hidden;
}

#selfFundedDetailsModal .scholarship-features-section {
    background: linear-gradient(135deg, rgba(155, 89, 182, 0.05), rgba(155, 89, 182, 0.02));
    border-left: 4px solid var(--self-funded-color);
}

.scholarship-features-section::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 100px;
    height: 100px;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><path d="M20,20 Q50,0 80,20 T100,80" fill="none" stroke="%233498db" stroke-width="2" stroke-opacity="0.1"/></svg>');
    opacity: 0.3;
}

#selfFundedDetailsModal .scholarship-features-section::before {
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><path d="M20,20 Q50,0 80,20 T100,80" fill="none" stroke="%239b59b6" stroke-width="2" stroke-opacity="0.1"/></svg>');
}

.section-title {
    color: var(--text-dark);
    margin-bottom: 25px;
    display: flex;
    align-items: center;
    gap: 12px;
    border-bottom: 2px solid;
    padding-bottom: 12px;
    font-size: 1.3rem;
    font-weight: 600;
    position: relative;
}

.scholarship-features-section .section-title {
    border-bottom-color: var(--accent-color);
}

#selfFundedDetailsModal .scholarship-features-section .section-title {
    border-bottom-color: var(--self-funded-color);
}

.section-title i {
    font-size: 1.3rem;
}

.scholarship-features-section .section-title i {
    color: var(--accent-color);
}

#selfFundedDetailsModal .scholarship-features-section .section-title i {
    color: var(--self-funded-color);
}

.features-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 15px;
    margin-top: 20px;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px 18px;
    background: var(--white);
    border-radius: 12px;
    font-weight: 500;
    color: var(--text-medium);
    border: 1px solid var(--light-border);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.feature-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    width: 4px;
    height: 100%;
    background: var(--accent-color);
    opacity: 0;
    transition: var(--transition);
}

.feature-item:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow);
    border-color: var(--accent-light);
}

.feature-item:hover::before {
    opacity: 1;
}

.feature-item i {
    color: var(--accent-color);
    font-size: 1.2rem;
    flex-shrink: 0;
}

/* Modal Two Columns Layout */
.modal-two-columns {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 25px;
    margin-bottom: 35px;
}

/* Program Information Modern */
.program-info-section {
    background: linear-gradient(135deg, rgba(52, 152, 219, 0.05), rgba(52, 152, 219, 0.02));
    padding: 25px;
    border-radius: 16px;
    border-left: 4px solid var(--accent-color);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

#selfFundedDetailsModal .program-info-section {
    background: linear-gradient(135deg, rgba(155, 89, 182, 0.05), rgba(155, 89, 182, 0.02));
    border-left: 4px solid var(--self-funded-color);
}

.program-info-section:hover {
    transform: translateX(5px);
}

.program-info-section .section-title {
    border-bottom-color: var(--accent-color);
}

#selfFundedDetailsModal .program-info-section .section-title {
    border-bottom-color: var(--self-funded-color);
}

.program-info-section .section-title i {
    color: var(--accent-color);
}

#selfFundedDetailsModal .program-info-section .section-title i {
    color: var(--self-funded-color);
}

.info-grid {
    display: grid;
    gap: 16px;
    margin-top: 20px;
}

.info-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 16px;
    background: var(--white);
    border-radius: 10px;
    border: 1px solid var(--light-border);
    transition: var(--transition);
}

.info-item:hover {
    background: rgba(52, 152, 219, 0.03);
    border-color: var(--accent-light);
    transform: translateX(3px);
}

.info-label {
    font-weight: 600;
    color: var(--text-dark);
    font-size: 13px;
}

.info-value {
    color: var(--text-medium);
    font-weight: 500;
    font-size: 14px;
    text-align: right;
    max-width: 60%;
}

/* University Fees Modern - Dynamic */
.program-fees-section {
    background: linear-gradient(135deg, rgba(39, 174, 96, 0.05), rgba(39, 174, 96, 0.02));
    padding: 25px;
    border-radius: 16px;
    border-left: 4px solid var(--success-color);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.program-fees-section:hover {
    transform: translateX(5px);
}

.program-fees-section .section-title {
    border-bottom-color: var(--success-color);
}

.program-fees-section .section-title i {
    color: var(--success-color);
}

.fees-grid {
    display: grid;
    gap: 14px;
    margin-top: 20px;
}

.fee-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 16px;
    background: var(--white);
    border-radius: 10px;
    border: 1px solid var(--light-border);
    transition: var(--transition);
}

.fee-item:hover {
    background: rgba(39, 174, 96, 0.03);
    border-color: rgba(39, 174, 96, 0.3);
    transform: translateX(3px);
}

.fee-label {
    font-weight: 600;
    color: var(--text-dark);
    font-size: 13px;
}

.fee-value {
    font-weight: 600;
    font-size: 14px;
    color: var(--text-medium);
}

.fee-value.scholarship {
    color: var(--success-color);
    font-size: 15px;
    font-weight: 700;
}

/* Required Documents Modern */
.program-documents-section {
    background: linear-gradient(135deg, rgba(44, 62, 80, 0.05), rgba(44, 62, 80, 0.02));
    padding: 25px;
    border-radius: 16px;
    border-left: 4px solid var(--primary-color);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.program-documents-section:hover {
    transform: translateX(5px);
}

.program-documents-section .section-title {
    border-bottom-color: var(--primary-color);
}

.program-documents-section .section-title i {
    color: var(--primary-color);
}

.documents-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 16px;
    margin-top: 20px;
}

.document-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 18px 20px;
    background: var(--white);
    border-radius: 12px;
    border: 1px solid var(--light-border);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.document-item:hover {
    background: rgba(52, 152, 219, 0.03);
    transform: translateY(-3px);
    box-shadow: var(--shadow);
    border-color: var(--accent-light);
}

.document-item.downloadable {
    background: rgba(39, 174, 96, 0.05);
    border-color: rgba(39, 174, 96, 0.3);
}

.document-icon {
    width: 50px;
    height: 50px;
    background: rgba(52, 152, 219, 0.1);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    color: var(--accent-color);
    flex-shrink: 0;
}

.document-item.downloadable .document-icon {
    background: rgba(39, 174, 96, 0.15);
    color: var(--success-color);
}

.document-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.document-name {
    color: var(--text-dark);
    font-weight: 600;
    font-size: 14px;
}

.document-required {
    font-size: 11px;
    color: var(--text-light);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.download-btn {
    background: var(--success-color);
    color: var(--white);
    border: none;
    padding: 10px 18px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 12px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: var(--transition);
    letter-spacing: 0.3px;
    white-space: nowrap;
}

.download-btn:hover {
    background: #219a52;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(39, 174, 96, 0.3);
}

/* Modal Actions Modern */
.program-modal-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 25px 35px;
    border-top: 1px solid var(--light-border);
    background: var(--light-bg);
    border-radius: 0 0 20px 20px;
    gap: 15px;
}

.modal-close-btn {
    background: var(--secondary-color);
    color: var(--white);
    border: none;
    padding: 14px 28px;
    border-radius: 12px;
    cursor: pointer;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: var(--transition);
    font-size: 15px;
    min-width: 140px;
    justify-content: center;
}

.modal-close-btn:hover {
    background: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(44, 62, 80, 0.2);
}

.modal-download-btn {
    background: var(--accent-color);
    color: var(--white);
    border: none;
    padding: 14px 28px;
    border-radius: 12px;
    cursor: pointer;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: var(--transition);
    font-size: 15px;
    min-width: 140px;
    justify-content: center;
}

.modal-download-btn:hover {
    background: var(--accent-light);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(52, 152, 219, 0.3);
}

.modal-apply-btn {
    background: linear-gradient(135deg, var(--success-color), #219a52);
    color: var(--white);
    border: none;
    padding: 14px 28px;
    border-radius: 12px;
    cursor: pointer;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: var(--transition);
    font-size: 15px;
    min-width: 160px;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.modal-apply-btn:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(39, 174, 96, 0.3);
}

.modal-apply-btn:disabled {
    background: var(--medium-gray);
    cursor: not-allowed;
    opacity: 0.7;
    transform: none;
    box-shadow: none;
}

.modal-apply-btn:disabled:hover {
    background: var(--medium-gray);
    cursor: not-allowed;
    opacity: 0.7;
    transform: none;
    box-shadow: none;
}

.modal-apply-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: 0.5s;
}

.modal-apply-btn:not(:disabled):hover::before {
    left: 100%;
}

/* Responsive Design */
@media (max-width: 1200px) {
    .scholarship-container {
        margin: 15px;
    }

    .main-content {
        flex-direction: column;
    }

    .filter-section,
    .content-section {
        width: 100%;
    }

    .filter-section {
        border-right: none;
        border-bottom: 1px solid var(--light-border);
        padding: 20px;
    }

    .universities-container {
        grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    }

    .main-gallery-image {
        height: 350px;
    }
}

@media (max-width: 992px) {
    .header-content h1 {
        font-size: 1.6rem;
    }

    .header-subtitle {
        font-size: 0.95rem;
    }

    .search-group {
        flex-direction: column;
        gap: 12px;
    }

    .search-input-container {
        width: 100%;
    }

    .view-select {
        width: 100%;
        min-width: auto;
    }

    .universities-container {
        grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
        gap: 20px;
    }

    .main-gallery-image {
        height: 300px;
    }

    .modal-two-columns {
        grid-template-columns: 1fr;
    }

    .summary-cards {
        grid-template-columns: repeat(2, 1fr);
    }

    .documents-grid {
        grid-template-columns: 1fr;
    }

    .table-container {
        min-width: 1000px;
    }
}

@media (max-width: 768px) {

    .page-header,
    .search-section,
    .filter-section,
    .programs-content,
    .self-funded-content,
    .universities-content {
        padding: 15px;
    }

    .header-content h1 {
        font-size: 1.4rem;
    }

    .universities-container {
        grid-template-columns: 1fr;
    }

    .university-header {
        flex-direction: column;
        text-align: center;
        gap: 15px;
        padding: 15px;
    }

    .university-logo {
        margin: 0 auto;
    }

    .university-stats {
        grid-template-columns: repeat(3, 1fr);
        padding: 12px;
    }

    .main-gallery-image {
        height: 250px;
    }

    .gallery-thumbnail {
        width: 80px;
        height: 60px;
    }

    .gallery-nav-btn {
        min-width: 120px;
        padding: 10px 16px;
        font-size: 13px;
    }

    .program-modal-header {
        flex-direction: column;
        gap: 20px;
        padding: 25px;
    }

    .modal-header-content {
        flex-direction: column;
        text-align: center;
        gap: 20px;
    }

    .modal-icon-container {
        margin: 0 auto;
    }

    .summary-cards {
        grid-template-columns: 1fr;
    }

    .features-content {
        grid-template-columns: 1fr;
    }

    .program-modal-actions {
        flex-direction: column;
    }

    .modal-close-btn,
    .modal-download-btn,
    .modal-apply-btn {
        width: 100%;
    }

    .table-container {
        min-width: 800px;
    }

    .header-cell,
    .table-cell {
        padding: 10px 6px;
        font-size: 11px;
    }

    .specialization-badge {
        font-size: 10px;
        padding: 3px 8px;
        min-width: 70px;
    }

    .degree-badge {
        font-size: 10px;
        padding: 3px 6px;
        min-width: 60px;
    }

    .details-btn-table,
    .apply-btn-table {
        padding: 6px 10px;
        font-size: 10px;
        min-width: 60px;
    }

    .content-header {
        flex-direction: column;
        gap: 12px;
        align-items: flex-start;
    }

    .results-count {
        font-size: 12px;
    }
}

@media (max-width: 480px) {
    .header-content h1 {
        font-size: 1.2rem;
    }

    .header-content h1 i {
        font-size: 1.5rem;
    }

    .filter-header h3 {
        font-size: 1.1rem;
    }

    .university-stats {
        grid-template-columns: 1fr;
        gap: 8px;
    }

    .main-gallery-image {
        height: 200px;
    }

    .gallery-thumbnail {
        width: 70px;
        height: 50px;
    }

    .gallery-nav-buttons {
        flex-direction: column;
        gap: 15px;
    }

    .gallery-nav-btn {
        width: 100%;
    }

    .table-container {
        min-width: 700px;
    }

    .program-modal-content {
        padding: 20px;
    }

    .modal-header-content h2 {
        font-size: 1.4rem;
    }

    .modal-subtitle {
        font-size: 1rem;
    }
}

/* Loading animation */
@keyframes pulse {
    0% {
        opacity: 1;
    }

    50% {
        opacity: 0.5;
    }

    100% {
        opacity: 1;
    }
}

.loading {
    animation: pulse 1.5s ease-in-out infinite;
}

/* Focus styles for accessibility */
button:focus,
input:focus,
select:focus {
    outline: 2px solid var(--accent-color);
    outline-offset: 2px;
}

/* Print styles */
@media print {

    .search-section,
    .filter-section,
    .pagination-container,
    .program-modal-actions {
        display: none;
    }

    .scholarship-container {
        box-shadow: none;
        margin: 0;
    }

    .table-wrapper {
        box-shadow: none;
        border: 1px solid #000;
    }
}

/* No programs message */
.no-programs-message {
    text-align: center;
    padding: 60px 20px;
    color: var(--text-light);
    grid-column: 1 / -1;
}

.no-programs-message i {
    font-size: 3rem;
    color: var(--light-border);
    margin-bottom: 15px;
}

.no-programs-message h3 {
    color: var(--text-dark);
    margin-bottom: 10px;
    font-size: 1.2rem;
}

.no-programs-message p {
    color: var(--text-light);
    font-size: 0.95rem;
}

/* No universities message */
.no-universities-message {
    text-align: center;
    padding: 60px 20px;
    color: var(--text-light);
    grid-column: 1 / -1;
}

.no-universities-message i {
    font-size: 3rem;
    color: var(--light-border);
    margin-bottom: 15px;
}

.no-universities-message h3 {
    color: var(--text-dark);
    margin-bottom: 10px;
    font-size: 1.2rem;
}

.no-universities-message p {
    color: var(--text-light);
    font-size: 0.95rem;
}