/* Navigation */
@media (max-width: 768px) {
    .nav {
        flex-direction: column;
        gap: 1rem;
        padding: 1rem 0;
    }
    
    .nav-links {
        flex-wrap: wrap;
        justify-content: center;
        gap: 1rem;
    }
    
    .nav-links a {
        font-size: 0.9rem;
    }
    
    .logo {
        font-size: 1.5rem;
        text-align: center;
        margin: 0 auto;
    }
}

.header {
    background: rgba(10, 10, 10, 0.8);
    backdrop-filter: blur(10px);
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 1px solid rgba(0, 255, 157, 0.1);
}

.nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 0;
}

.logo {
    font-size: 1.8rem;
    font-weight: 700;
    color: #fff;
    text-decoration: none;
    transition: all 0.3s ease;
}

.logo span {
    color: #00ff9d;
}

.logo:hover {
    text-shadow: 0 0 10px rgba(0, 255, 157, 0.5);
}

.nav-links {
    display: flex;
    gap: 2rem;
}

.nav-links a {
    color: #b0b0b0;
    text-decoration: none;
    font-weight: 500;
    position: relative;
    transition: color 0.3s ease;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: #00ff9d;
    transition: width 0.3s ease;
}

.nav-links a:hover,
.nav-links a.active {
    color: #fff;
}

.nav-links a:hover::after,
.nav-links a.active::after {
    width: 100%;
}

/* PDF Page Specific Styles */
.pdf-page .main-content {
    padding: 40px 0;
    min-height: calc(100vh - 180px);
}

/* Search and Filter */
.programs-controls {
    margin: 3rem 0;
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.search-box {
    position: relative;
    max-width: 600px;
    margin: 0 auto;
    width: 100%;
}

.search-box input {
    width: 100%;
    padding: 1rem 1rem 1rem 3rem;
    background: rgba(30, 30, 30, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    color: #fff;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.search-box input:focus {
    outline: none;
    border-color: #00ff9d;
    box-shadow: 0 0 0 2px rgba(0, 255, 157, 0.2);
}

.search-icon {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: #666;
    pointer-events: none;
    transition: color 0.3s ease;
}

.search-box:focus-within .search-icon {
    color: #00ff9d;
}

/* Filters */
.filters {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    justify-content: center;
}

.filter-btn {
    padding: 0.5rem 1.25rem;
    background: rgba(30, 30, 30, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    color: #b0b0b0;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.filter-btn:hover {
    background: rgba(60, 60, 60, 0.9);
    color: #fff;
}

.filter-btn.active {
    background: #00ff9d;
    color: #000;
    border-color: #00ff9d;
    font-weight: 500;
}

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

/* Mobile card styles */
@media (max-width: 767px) {
    .programs-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .program-card {
        flex-direction: row;
        padding: 15px;
        height: auto;
    }
    
    .program-card__image-container {
        width: 120px;
        height: 120px;
        min-width: 120px;
        margin-right: 15px;
        margin-bottom: 0;
    }
    
    .program-card__content {
        flex: 1;
        padding: 0;
    }
    
    .program-card__title {
        font-size: 1rem;
        margin-bottom: 0.5rem;
    }
    
    .program-card__desc {
        display: none; /* Hide description on mobile */
    }
    
    .program-card__footer {
        flex-direction: column;
        gap: 5px;
    }
    
    .program-card__meta-item {
        font-size: 0.7rem;
    }
    
    .programs-controls {
        margin: 1.5rem 0;
    }
    
    .filters {
        overflow-x: auto;
        padding-bottom: 0.5rem;
        justify-content: flex-start;
        -webkit-overflow-scrolling: touch;
    }
    
    .filters::-webkit-scrollbar {
        height: 4px;
    }
    
    .filters::-webkit-scrollbar-thumb {
        background: rgba(0, 255, 157, 0.3);
        border-radius: 2px;
    }
    
    .filter-btn {
        white-space: nowrap;
        font-size: 0.8rem;
        padding: 0.4rem 0.8rem;
    }
}

/* Card styles moved to css/cards.css */

/* No Results */
.no-results {
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
    text-align: center;
    color: #666;
}

.no-results i {
    font-size: 3rem;
    margin-bottom: 15px;
    color: #00ff9d;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .programs-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
        gap: 20px;
    }
    
    .program-card__overlay {
        opacity: 1;
        background: rgba(0, 0, 0, 0.6);
    }
    
    .program-card__desc {
        -webkit-line-clamp: 2;
        line-clamp: 2;
        display: -webkit-box;
        -webkit-box-orient: vertical;
        overflow: hidden;
        text-overflow: ellipsis;
        max-height: 2.8em;
    }
}

@media (min-width: 768px) and (max-width: 1024px) {
    .programs-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
        gap: 20px;
    }
    
    .program-card {
        padding: 15px;
    }
    
    .program-card__title {
        font-size: 1rem;
    }
    
    .program-card__desc {
        font-size: 0.85rem;
    }
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 1000;
    overflow-y: auto;
    padding: 20px;
    box-sizing: border-box;
}

.modal.show {
    display: flex;
    align-items: flex-start;
    justify-content: center;
}

.modal-content {
    background: #1a1a1a;
    border-radius: 12px;
    width: 100%;
    max-width: 800px;
    margin: 40px 0;
    position: relative;
    border: 1px solid rgba(255, 255, 255, 0.1);
    overflow: hidden;
}

.close-modal {
    position: absolute;
    top: 15px;
    right: 15px;
    font-size: 1.8rem;
    color: #888;
    cursor: pointer;
    background: none;
    border: none;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.close-modal:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
}

.modal-body {
    padding: 40px;
}

.modal-header {
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.modal-title {
    margin: 0 0 10px 0;
    color: #fff;
    font-size: 1.8rem;
}

.modal-meta {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    margin-bottom: 15px;
    color: #888;
    font-size: 0.9rem;
}

.modal-meta span {
    display: flex;
    align-items: center;
    gap: 5px;
}

.modal-meta i {
    color: #00ff9d;
}

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

.tag {
    display: inline-block;
    background: rgba(0, 255, 157, 0.1);
    color: #00ff9d;
    padding: 4px 12px;
    border-radius: 15px;
    font-size: 0.8rem;
    border: 1px solid rgba(0, 255, 157, 0.2);
}

.modal-section {
    margin: 25px 0;
}

.section-title {
    color: #fff;
    font-size: 1.3rem;
    margin: 0 0 15px 0;
    position: relative;
    padding-bottom: 8px;
}

.section-title::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 50px;
    height: 2px;
    background: #00ff9d;
}

.modal-description {
    color: #ccc;
    line-height: 1.6;
    margin: 0;
}

.modal-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.modal-stats {
    display: flex;
    gap: 15px;
    color: #666;
    font-size: 0.9rem;
}

.modal-stats span {
    display: flex;
    align-items: center;
    gap: 5px;
}

.modal-stats i {
    color: #00ff9d;
}

/* Responsive Modal */
@media (max-width: 768px) {
    .modal-body {
        padding: 30px 20px;
    }
    
    .modal-title {
        font-size: 1.5rem;
    }
    
    .modal-meta {
        gap: 10px;
        font-size: 0.85rem;
    }
    
    .modal-footer {
        flex-direction: column;
        gap: 15px;
        align-items: flex-start;
    }
    
    .modal-stats {
        width: 100%;
        justify-content: space-between;
    }
    
    .btn--outline {
        width: 100%;
        text-align: center;
    }
}
