/* Modern Courses Archive Styles */

/* Hero Section */
.courses-hero {
    position: relative;
    padding: 120px 0 80px;
    background: linear-gradient(135deg, #2E5C8A 0%, #4A90C2 100%);
    overflow: hidden;
    color: white;
}

.courses-hero .hero-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    opacity: 0.1;
    background-image: url('data:image/svg+xml,<svg width="100" height="100" viewBox="0 0 100 100" xmlns="http://www.w3.org/2000/svg"><circle cx="50" cy="50" r="40" fill="none" stroke="white" stroke-width="1"/></svg>');
    background-size: 80px 80px;
    animation: float 20s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(180deg); }
}

.hero-content {
    text-align: center;
    position: relative;
    z-index: 2;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.hero-subtitle {
    font-size: 1.4rem;
    margin-bottom: 3rem;
    opacity: 0.9;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 60px;
    margin-top: 3rem;
}

.stat-item {
    text-align: center;
}

.stat-number {
    display: block;
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: #FFD700;
}

.stat-label {
    font-size: 1rem;
    opacity: 0.9;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Course Filters */
.course-filters-section {
    padding: 60px 0 40px;
    text-align: center;
}

.filter-title {
    font-size: 2rem;
    color: #2E5C8A;
    margin-bottom: 2rem;
    font-weight: 600;
}

.course-filters {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 2rem;
}

.filter-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    background: white;
    border: 2px solid #e0e0e0;
    border-radius: 25px;
    color: #666;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    cursor: pointer;
    font-size: 0.95rem;
}

.filter-btn:hover,
.filter-btn.active {
    background: #2E5C8A;
    border-color: #2E5C8A;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(46, 92, 138, 0.3);
}

.filter-btn .count {
    background: rgba(255,255,255,0.2);
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 0.8rem;
    margin-left: 5px;
}

.filter-btn.active .count {
    background: rgba(255,255,255,0.3);
}

/* Courses Grid */
.courses-listing {
    padding: 20px 0 60px;
}

.courses-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(380px, 1fr));
    gap: 30px;
    margin-bottom: 60px;
}

.course-card {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    position: relative;
}

.course-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 50px rgba(0,0,0,0.15);
}

/* Card Image */
.card-image {
    position: relative;
    height: 240px;
    overflow: hidden;
}

.course-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.placeholder-image {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #f5f5f5 0%, #e0e0e0 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #999;
    font-size: 3rem;
}

.image-link {
    display: block;
    position: relative;
    height: 100%;
}

.image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(46, 92, 138, 0.9);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: white;
    opacity: 0;
    transition: all 0.3s ease;
}

.image-overlay i {
    font-size: 2rem;
    margin-bottom: 8px;
}

.image-overlay span {
    font-weight: 600;
    font-size: 1.1rem;
}

.course-card:hover .image-overlay {
    opacity: 1;
}

.course-card:hover .course-image {
    transform: scale(1.1);
}

.featured-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: #FFD700;
    color: #2E5C8A;
    padding: 5px 12px;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 5px;
    z-index: 5;
}

/* Card Content */
.card-content {
    padding: 25px;
}

.course-meta {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
    flex-wrap: wrap;
}

.course-category,
.course-duration {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 0.85rem;
    color: #666;
    background: #f8f9fa;
    padding: 4px 10px;
    border-radius: 12px;
}

.course-category i,
.course-duration i {
    color: #2E5C8A;
}

.course-title {
    margin-bottom: 15px;
    line-height: 1.4;
}

.course-title a {
    color: #2E5C8A;
    text-decoration: none;
    font-size: 1.4rem;
    font-weight: 600;
    transition: color 0.3s ease;
}

.course-title a:hover {
    color: #1e4c7a;
}

.course-excerpt {
    color: #666;
    line-height: 1.6;
    margin-bottom: 20px;
}

.course-highlights {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 20px;
}

.highlight-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
    color: #555;
}

.highlight-item i {
    color: #4CAF50;
    font-size: 0.8rem;
}

/* Card Footer */
.card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 20px;
    border-top: 1px solid #f0f0f0;
    gap: 15px;
}

.price-section {
    flex: 1;
}

.course-price {
    display: flex;
    align-items: baseline;
    gap: 5px;
}

.price-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: #2E5C8A;
}

.price-label {
    font-size: 0.85rem;
    color: #666;
}

.price-contact {
    font-size: 1.2rem;
    font-weight: 600;
    color: #ff9800;
}

.course-actions {
    display: flex;
    gap: 10px;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 16px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.btn-outline {
    background: transparent;
    border: 1px solid #ddd;
    color: #666;
}

.btn-outline:hover {
    background: #f8f9fa;
    border-color: #2E5C8A;
    color: #2E5C8A;
}

.btn-primary {
    background: #2E5C8A;
    color: white;
}

.btn-primary:hover {
    background: #1e4c7a;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(46, 92, 138, 0.3);
}

.btn-white {
    background: white;
    color: #2E5C8A;
    border: 1px solid white;
}

.btn-white:hover {
    background: transparent;
    color: white;
}

/* Pagination */
.pagination-wrapper {
    display: flex;
    justify-content: center;
    margin: 40px 0;
}

.modern-pagination {
    display: flex;
    align-items: center;
    gap: 10px;
}

.modern-pagination .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    background: white;
    border: 1px solid #ddd;
    border-radius: 8px;
    color: #666;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
}

.modern-pagination .page-numbers:hover,
.modern-pagination .page-numbers.current {
    background: #2E5C8A;
    border-color: #2E5C8A;
    color: white;
}

/* No Courses Section */
.no-courses-section {
    padding: 80px 0;
    text-align: center;
}

.no-content-message {
    max-width: 500px;
    margin: 0 auto;
}

.no-content-message i {
    font-size: 4rem;
    color: #ddd;
    margin-bottom: 2rem;
}

.no-content-message h2 {
    font-size: 2rem;
    color: #666;
    margin-bottom: 1rem;
}

.no-content-message p {
    color: #999;
    margin-bottom: 2rem;
    line-height: 1.6;
}

/* CTA Section */
.courses-cta-section {
    background: linear-gradient(135deg, #2E5C8A 0%, #4A90C2 100%);
    padding: 60px 40px;
    border-radius: 20px;
    margin: 40px 0;
    color: white;
}

.cta-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
    max-width: 1000px;
    margin: 0 auto;
}

.cta-text h3 {
    font-size: 1.8rem;
    margin-bottom: 10px;
    font-weight: 600;
}

.cta-text p {
    opacity: 0.9;
    line-height: 1.6;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .courses-grid {
        grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
        gap: 25px;
    }
    
    .hero-stats {
        gap: 40px;
    }
}

@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.2rem;
    }
    
    .hero-stats {
        flex-direction: column;
        gap: 20px;
    }
    
    .courses-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .course-filters {
        justify-content: center;
    }
    
    .filter-btn {
        font-size: 0.9rem;
        padding: 10px 20px;
    }
    
    .card-footer {
        flex-direction: column;
        align-items: stretch;
        gap: 15px;
    }
    
    .course-actions {
        justify-content: center;
    }
    
    .cta-content {
        flex-direction: column;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .courses-hero {
        padding: 80px 0 60px;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .card-content {
        padding: 20px;
    }
    
    .course-actions {
        flex-direction: column;
    }
    
    .btn {
        justify-content: center;
        width: 100%;
    }
}

/* Filter Animation */
.course-card {
    transition: all 0.3s ease, opacity 0.3s ease, transform 0.3s ease;
}

.course-card.hidden {
    opacity: 0;
    transform: scale(0.8);
    pointer-events: none;
}

/* Loading Animation */
@keyframes shimmer {
    0% { background-position: -468px 0; }
    100% { background-position: 468px 0; }
}

.loading-placeholder {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 400% 100%;
    animation: shimmer 1.2s ease-in-out infinite;
}