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

body {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f8f9fa;
}

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

/* Header Styles */
.header {
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
    color: white;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

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

.logo h1 {
    font-size: 2.5rem;
    font-weight: 700;
    letter-spacing: 2px;
}

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

.nav-menu a {
    color: white;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-menu a:hover {
    color: #ffd700;
}

/* Main Content */
.main {
    margin-top: 70px;
}

/* Hero Section */
.hero {
    background: linear-gradient(rgba(30, 60, 114, 0.8), rgba(42, 82, 152, 0.8)),
                url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1000 1000"><rect fill="%23e6f3ff" width="1000" height="1000"/><g fill="%23cce7ff"><circle cx="200" cy="200" r="50"/><circle cx="800" cy="200" r="75"/><circle cx="500" cy="500" r="100"/><circle cx="200" cy="800" r="60"/><circle cx="800" cy="800" r="80"/></g></svg>');
    background-size: cover;
    background-position: center;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
}

.hero-content {
    max-width: 800px;
    padding: 0 20px;
}

.hero-title {
    font-size: 5rem;
    font-weight: 900;
    margin-bottom: 20px;
    letter-spacing: 3px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.hero-subtitle {
    font-size: 1.5rem;
    margin-bottom: 40px;
    opacity: 0.9;
}

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

/* Button Styles */
.btn {
    padding: 15px 30px;
    border: none;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.btn-primary {
    background: #ffd700;
    color: #1e3c72;
}

.btn-primary:hover {
    background: #ffed4e;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 215, 0, 0.4);
}

.btn-secondary {
    background: transparent;
    color: white;
    border: 2px solid white;
}

.btn-secondary:hover {
    background: white;
    color: #1e3c72;
}

/* Fix for secondary buttons in filter panels */
.filters .btn-secondary {
    background: transparent;
    color: #1e3c72;
    border: 2px solid #1e3c72;
}

.filters .btn-secondary:hover {
    background: #1e3c72;
    color: white;
}

/* Section Styles */
.about, .programs, .contact {
    padding: 80px 0;
}

.about {
    background: white;
}

.programs {
    background: #f8f9fa;
}

.contact {
    background: white;
}

h2 {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 50px;
    color: #1e3c72;
    font-weight: 700;
}

.about p {
    font-size: 1.2rem;
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.8;
    color: #666;
}

/* Filters */
.filters {
    background: white;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    margin-bottom: 50px;
    display: flex;
    flex-direction: column;
    gap: 20px;
    max-width: 600px;
    position: relative;
}

.filter-header {
    border-bottom: 2px solid #e1e5e9;
    padding-bottom: 15px;
    margin-bottom: 5px;
}

.filter-header h3 {
    color: #1e3c72;
    font-size: 1.3rem;
    font-weight: 600;
    margin: 0;
}

.filter-row {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

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

.filter-group.full-width {
    width: 100%;
}

.filter-actions {
    display: flex;
    gap: 15px;
    justify-content: space-between;
    margin-top: 15px;
    padding-top: 20px;
    border-top: 1px solid #e1e5e9;
}

.checkbox-group {
    display: flex;
    align-items: center;
    gap: 10px;
}

.checkbox-group input[type="checkbox"] {
    width: 18px;
    height: 18px;
    margin: 0;
}

.checkbox-group label {
    margin: 0;
    color: #333;
    font-weight: 500;
    cursor: pointer;
}

.date-range-display {
    padding: 12px;
    border: 2px solid #e1e5e9;
    border-radius: 8px;
    background: #f8f9fa;
    color: #666;
    cursor: pointer;
    transition: all 0.3s ease;
}

.date-range-display:hover {
    border-color: #2a5298;
    background: #f0f7ff;
}

.date-inputs {
    display: flex;
    align-items: center;
    gap: 10px;
}

.date-inputs input[type="date"] {
    flex: 1;
    min-width: 120px;
}

.date-inputs span {
    color: #666;
    font-weight: 500;
    padding: 0 5px;
}

.filter-group label {
    font-weight: 600;
    color: #1e3c72;
    margin-bottom: 8px;
}

.filter-group select,
.filter-group input[type="date"],
.filter-group input[type="text"] {
    padding: 12px;
    border: 2px solid #e1e5e9;
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
    background: white;
    min-height: 40px;
}

.filter-group select[multiple] {
    min-height: 120px;
    resize: vertical;
}

.filter-group select:focus,
.filter-group input[type="date"]:focus,
.filter-group input[type="text"]:focus {
    outline: none;
    border-color: #2a5298;
    box-shadow: 0 0 0 3px rgba(42, 82, 152, 0.1);
}

.filter-group input[type="text"]::placeholder {
    color: #999;
    font-style: italic;
}

.filter-group input[type="date"]::-webkit-calendar-picker-indicator {
    cursor: pointer;
    border-radius: 4px;
    margin-right: 2px;
    opacity: 0.6;
    filter: invert(0.8);
}

.filter-group input[type="date"]::-webkit-calendar-picker-indicator:hover {
    opacity: 1;
}

/* Checkbox Filter Styles */
.checkbox-filter-container {
    max-height: 200px;
    overflow-y: auto;
    border: 2px solid #e1e5e9;
    border-radius: 8px;
    padding: 15px;
    background: #f8f9fa;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.checkbox-filter-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 5px 0;
}

.checkbox-filter-item input[type="checkbox"] {
    width: 18px;
    height: 18px;
    margin: 0;
    cursor: pointer;
    accent-color: #1e3c72;
}

.checkbox-filter-item label {
    margin: 0;
    color: #333;
    font-weight: 500;
    cursor: pointer;
    flex: 1;
    font-size: 0.95rem;
    line-height: 1.4;
}

.checkbox-filter-item label:hover {
    color: #1e3c72;
}

/* Collapsible Filter Styles */
.collapsible-filter {
    border: 2px solid #e1e5e9;
    border-radius: 8px;
    overflow: hidden;
}

.collapsible-toggle {
    width: 100%;
    padding: 15px;
    background: #f8f9fa;
    border: none;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 1rem;
    font-weight: 600;
    color: #1e3c72;
    transition: background-color 0.3s ease;
}

.collapsible-toggle:hover {
    background: #e9ecef;
}

.toggle-text {
    flex: 1;
    text-align: left;
}

.toggle-icon {
    font-size: 0.8rem;
    transition: transform 0.3s ease;
}

.collapsible-toggle.expanded .toggle-icon {
    transform: rotate(180deg);
}

.collapsible-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    background: white;
}

.collapsible-content.expanded {
    max-height: 300px;
    overflow-y: auto;
}

/* Filter Category Styles */
.filter-category {
    margin-bottom: 20px;
}

.filter-category:last-child {
    margin-bottom: 0;
}

.filter-category h4 {
    color: #1e3c72;
    font-size: 1rem;
    font-weight: 600;
    margin: 0 0 10px 0;
    padding: 10px 15px;
    background: #e9ecef;
    border-radius: 6px;
    border-left: 4px solid #1e3c72;
}

.filter-category .checkbox-filter-item {
    padding-left: 15px;
}

/* Bulk Selection Buttons */
.filter-actions-inline {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
    padding: 10px 15px;
    background: #f8f9fa;
    border-radius: 6px;
    border: 1px solid #e1e5e9;
}

.btn-select-all, .btn-clear-all {
    padding: 6px 12px;
    border: 1px solid #1e3c72;
    border-radius: 4px;
    background: white;
    color: #1e3c72;
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-select-all:hover {
    background: #1e3c72;
    color: white;
}

.btn-clear-all {
    border-color: #dc3545;
    color: #dc3545;
}

.btn-clear-all:hover {
    background: #dc3545;
    color: white;
}

/* Programs Grid */
.programs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.program-card {
    background: white;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    overflow: hidden;
    position: relative;
    min-height: 350px;
    display: flex;
    flex-direction: column;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.program-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

.course-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        to bottom,
        rgba(0, 0, 0, 0.1) 0%,
        rgba(0, 0, 0, 0.4) 70%,
        rgba(0, 0, 0, 0.8) 100%
    );
    z-index: 1;
}

.course-content {
    position: relative;
    z-index: 2;
    padding: 25px;
    color: white;
    display: flex;
    flex-direction: column;
    height: 100%;
    text-align: left;
}

.course-header {
    margin-bottom: 15px;
}

.course-header h3 {
    font-size: 1.4rem;
    margin-bottom: 8px;
    color: white;
    font-weight: 600;
    line-height: 1.3;
}

.course-code {
    background: rgba(255, 215, 0, 0.9);
    color: #1e3c72;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
}

.course-description {
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.5;
    margin-bottom: 15px;
    font-size: 0.95rem;
    flex-grow: 1;
}

.course-dates {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9rem;
    margin-bottom: 15px;
    font-weight: 500;
}

/* Cards without background images */
.program-card.no-image {
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
}

.program-card.no-image .course-overlay {
    display: none;
}

.program-card.no-image .course-content {
    color: white;
}

.program-card.no-image .course-description {
    color: rgba(255, 255, 255, 0.9);
}

/* Updated button styling for course cards */
.course-details-btn {
    margin-top: auto;
    align-self: flex-start;
    background: rgba(255, 215, 0, 0.9) !important;
    color: #1e3c72 !important;
    border: none !important;
    padding: 12px 20px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.course-details-btn:hover {
    background: #ffd700 !important;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 215, 0, 0.4);
}

/* Course Meta */
.course-meta {
    display: flex;
    gap: 8px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.course-level, .course-duration, .course-type {
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.course-level {
    background: rgba(255, 215, 0, 0.2);
    color: #ffd700;
    border-color: rgba(255, 215, 0, 0.5);
}

.course-duration {
    background: rgba(255, 255, 255, 0.2);
    color: rgba(255, 255, 255, 0.9);
}

/* No courses message */
.no-courses {
    grid-column: 1 / -1;
    text-align: center;
    padding: 60px 20px;
    background: white;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
}

.no-courses h3 {
    color: #1e3c72;
    margin-bottom: 10px;
}

.no-courses p {
    color: #666;
}

/* Loading message */
.loading-message {
    grid-column: 1 / -1;
    text-align: center;
    padding: 60px 20px;
    background: white;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.loading-message p {
    color: #1e3c72;
    font-size: 1.2rem;
    margin: 0;
}

/* Loading spinner */
.loading-spinner {
    width: 40px;
    height: 40px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #1e3c72;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Error message */
.error-message {
    grid-column: 1 / -1;
    text-align: center;
    padding: 60px 20px;
    background: white;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    border: 2px solid #ff6b6b;
}

.error-message h3 {
    color: #ff6b6b;
    font-size: 1.5rem;
    margin-bottom: 10px;
}

.error-message p {
    color: #666;
    font-size: 1.1rem;
    margin-bottom: 20px;
}

/* Pagination Controls */
.pagination-container {
    background: white;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    margin-top: 30px;
    display: flex;
    flex-direction: column;
    gap: 20px;
    align-items: center;
}

.pagination-info {
    color: #666;
    font-size: 1rem;
    font-weight: 500;
}

.pagination-controls {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: center;
}

.pagination-btn {
    padding: 10px 16px;
    border: 2px solid #e1e5e9;
    border-radius: 8px;
    background: white;
    color: #1e3c72;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 44px;
    text-align: center;
}

.pagination-btn:hover:not(:disabled) {
    border-color: #2a5298;
    background: #f8f9fa;
}

.pagination-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    color: #999;
}

.pagination-btn.active {
    background: #1e3c72;
    color: white;
    border-color: #1e3c72;
}

.page-numbers {
    display: flex;
    gap: 5px;
    margin: 0 10px;
}

.page-size-selector {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.9rem;
    color: #666;
}

.page-size-selector select {
    padding: 8px 12px;
    border: 2px solid #e1e5e9;
    border-radius: 6px;
    background: white;
    font-size: 0.9rem;
}

.page-size-selector select:focus {
    outline: none;
    border-color: #2a5298;
}

/* Contact Form */
.contact-form {
    max-width: 600px;
    margin: 0 auto;
}

.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #1e3c72;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 15px;
    border: 2px solid #e1e5e9;
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #2a5298;
}

/* Footer */
.footer {
    background: #1e3c72;
    color: white;
    text-align: center;
    padding: 30px 0;
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-container {
        flex-direction: column;
        padding: 20px;
        min-height: auto;
    }
    
    .nav-menu {
        margin-top: 20px;
        gap: 20px;
    }
    
    .main {
        margin-top: 120px;
    }
    
    .hero-title {
        font-size: 3rem;
    }
    
    .hero-subtitle {
        font-size: 1.2rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .btn {
        width: 200px;
    }
    
    h2 {
        font-size: 2rem;
    }
    
    .programs-grid {
        grid-template-columns: 1fr;
    }
    
    .filters {
        flex-direction: column;
        align-items: stretch;
    }
    
    .filter-group {
        min-width: auto;
    }
    
    .pagination-container {
        padding: 20px;
        gap: 15px;
    }
    
    .pagination-controls {
        gap: 5px;
    }
    
    .pagination-btn {
        padding: 8px 12px;
        font-size: 0.8rem;
        min-width: 36px;
    }
    
    .page-size-selector {
        font-size: 0.8rem;
    }
}

@media (max-width: 480px) {
    .logo h1 {
        font-size: 2rem;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .nav-menu {
        flex-direction: column;
        gap: 15px;
    }
}