/* Courses Page Styles - Modern & Responsive */
:root {
    --primary-color: #2563eb;
    --primary-dark: #1d4ed8;
    --primary-light: #3b82f6;
    --secondary-color: #f59e0b;
    --secondary-dark: #d97706;
    --dark-color: #1f2937;
    --light-color: #f9fafb;
    --text-color: #374151;
    --text-light: #6b7280;
    --border-color: #e5e7eb;
    --success-color: #10b981;
    --danger-color: #ef4444;
    --warning-color: #f59e0b;
    --info-color: #06b6d4;
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-md: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    --shadow-xl: 0 25px 50px -12px rgba(0, 0, 0, 0.15);
    --transition: all 0.3s ease;
    --transition-fast: all 0.2s ease;
}

/* Page Header */
.page-header {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: white;
    padding: 120px 20px 90px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.page-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 50%, rgba(255, 255, 255, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(255, 255, 255, 0.05) 0%, transparent 50%);
    z-index: 1;
}

.page-header .container {
    position: relative;
    z-index: 2;
}

.page-header h1 {
    font-size: clamp(2rem, 5vw, 3.5rem);
    margin-bottom: 1rem;
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.5px;
}

.page-header p {
    font-size: clamp(1rem, 3vw, 1.25rem);
    max-width: 700px;
    margin: 0 auto;
    opacity: 0.95;
    line-height: 1.6;
}

/* Courses Section */
.courses-section {
    padding: clamp(60px, 8vw, 100px) 20px;
    background: linear-gradient(180deg, #f8fafc 0%, #ffffff 100%);
}

.section-header {
    margin-bottom: clamp(40px, 6vw, 60px);
    text-align: center;
}

.section-header.center {
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.section-badge {
    display: inline-block;
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.15), rgba(59, 130, 246, 0.1));
    color: var(--primary-color);
    padding: 8px 18px;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 16px;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    border: 1px solid rgba(37, 99, 235, 0.2);
    transition: var(--transition-fast);
}

.section-badge:hover {
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.2), rgba(59, 130, 246, 0.15));
    border-color: rgba(37, 99, 235, 0.4);
}

.section-title {
    font-size: clamp(1.75rem, 5vw, 2.5rem);
    color: var(--dark-color);
    margin-bottom: 12px;
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.5px;
}

.section-subtitle {
    font-size: clamp(0.95rem, 2.5vw, 1.125rem);
    color: var(--text-light);
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.7;
}

/* Courses Filter */
.courses-filter {
    margin-bottom: clamp(40px, 6vw, 60px);
    display: flex;
    flex-direction: column;
    gap: clamp(16px, 3vw, 24px);
}

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

.search-box input {
    width: 100%;
    padding: 14px 20px 14px 48px;
    border: 2px solid var(--border-color);
    border-radius: 12px;
    font-size: 1rem;
    font-family: inherit;
    transition: var(--transition);
    box-shadow: var(--shadow-sm);
    background-color: white;
}

.search-box input::placeholder {
    color: var(--text-light);
}

.search-box input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.1);
    background-color: #f0f7ff;
}

.search-box i {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-light);
    font-size: 1.1rem;
    pointer-events: none;
}

.filter-options {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: clamp(8px, 2vw, 16px);
}

.filter-btn {
    padding: 10px 24px;
    background: white;
    border: 2px solid var(--border-color);
    border-radius: 50px;
    font-size: clamp(0.85rem, 2vw, 0.95rem);
    font-weight: 600;
    color: var(--text-color);
    cursor: pointer;
    transition: var(--transition-fast);
    box-shadow: var(--shadow-sm);
    white-space: nowrap;
}

.filter-btn:hover {
    background: #f3f4f6;
    border-color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

.filter-btn.active {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    color: white;
    border-color: var(--primary-color);
    box-shadow: 0 4px 15px rgba(37, 99, 235, 0.3);
}

/* Courses Grid */
.courses-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: clamp(24px, 4vw, 32px);
    margin-bottom: clamp(50px, 8vw, 80px);
}

.course-card {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    position: relative;
    display: flex;
    flex-direction: column;
    height: 100%;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.course-card:hover {
    transform: translateY(-12px);
    box-shadow: var(--shadow-xl);
    border-color: rgba(37, 99, 235, 0.1);
}

.course-badge {
    position: absolute;
    top: 16px;
    right: 16px;
    background: linear-gradient(135deg, var(--secondary-color), var(--secondary-dark));
    color: white;
    padding: 6px 14px;
    border-radius: 50px;
    font-size: 0.7rem;
    font-weight: 700;
    z-index: 2;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 12px rgba(245, 158, 11, 0.3);
}

.course-icon {
    width: 90px;
    height: 90px;
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.15), rgba(59, 130, 246, 0.1));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 36px auto 28px;
    color: var(--primary-color);
    font-size: 40px;
    transition: var(--transition);
    border: 2px solid rgba(37, 99, 235, 0.1);
}

.course-card:hover .course-icon {
    transform: scale(1.15) rotate(8deg);
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    color: white;
    border-color: var(--primary-color);
    box-shadow: 0 8px 20px rgba(37, 99, 235, 0.3);
}

.course-card h3 {
    font-size: clamp(1.25rem, 3vw, 1.5rem);
    color: var(--dark-color);
    margin: 0 24px 8px;
    text-align: center;
    font-weight: 700;
    line-height: 1.3;
}

.course-fullname {
    font-size: 0.9rem;
    color: var(--primary-color);
    text-align: center;
    margin: 0 24px 16px;
    font-weight: 600;
}

.course-desc {
    color: var(--text-light);
    margin: 0 24px 24px;
    line-height: 1.7;
    flex-grow: 1;
    font-size: 0.95rem;
}

.course-meta {
    display: flex;
    justify-content: center;
    gap: clamp(12px, 3vw, 20px);
    margin: 0 24px 24px;
    padding-top: 20px;
    border-top: 2px solid var(--border-color);
    flex-wrap: wrap;
}

.course-meta span {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.85rem;
    color: var(--text-light);
    font-weight: 500;
}

.course-meta i {
    color: var(--primary-color);
    font-size: 1rem;
}

.course-card .btn {
    margin: 0 24px 28px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    color: white;
    border: none;
    border-radius: 10px;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.25);
}

.course-card .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(37, 99, 235, 0.4);
}

.course-card .btn i {
    font-size: 0.8rem;
    transition: var(--transition-fast);
}

.course-card .btn:hover i {
    transform: translateX(4px);
}

/* CTA Section */
.cta-section {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: white;
    padding: clamp(40px, 8vw, 80px) clamp(20px, 5vw, 60px);
    border-radius: 20px;
    text-align: center;
    position: relative;
    overflow: hidden;
    margin-top: clamp(50px, 8vw, 80px);
}

.cta-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 50%, rgba(255, 255, 255, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(255, 255, 255, 0.05) 0%, transparent 50%);
    z-index: 1;
}

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

.cta-section h3 {
    font-size: clamp(1.5rem, 5vw, 2.25rem);
    margin-bottom: 16px;
    font-weight: 700;
    line-height: 1.3;
}

.cta-section p {
    font-size: clamp(0.95rem, 2.5vw, 1.125rem);
    margin-bottom: 32px;
    opacity: 0.95;
    line-height: 1.7;
}

.cta-section .btn {
    background: white;
    color: var(--primary-color);
    font-weight: 700;
    padding: 14px 36px;
    border-radius: 50px;
    border: none;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
    font-size: 1rem;
    display: inline-block;
}

.cta-section .btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.2);
    background: #f0f7ff;
}

/* Responsive Styles */
@media (max-width: 1199px) {
    .courses-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 991px) {
    .courses-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 24px;
    }
}

@media (max-width: 768px) {
    .page-header {
        padding: 80px 20px 60px;
    }
    
    .page-header h1 {
        font-size: 2rem;
    }
    
    .section-title {
        font-size: 1.75rem;
    }
    
    .courses-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .course-card {
        width: 100%;
    }
    
    .course-icon {
        width: 80px;
        height: 80px;
        font-size: 36px;
        margin: 28px auto 24px;
    }
    
    .course-card h3 {
        font-size: 1.25rem;
    }
    
    .course-desc {
        font-size: 0.9rem;
    }
    
    .course-meta {
        gap: 12px;
        margin: 0 20px 20px;
        padding-top: 16px;
    }
    
    .course-card .btn {
        margin: 0 20px 24px;
        padding: 11px 20px;
        font-size: 0.9rem;
    }
    
    .cta-section {
        padding: 40px 24px;
        margin-top: 50px;
    }
    
    .cta-section h3 {
        font-size: 1.5rem;
    }
    
    .cta-section p {
        font-size: 1rem;
        margin-bottom: 24px;
    }
    
    .filter-options {
        gap: 8px;
    }
    
    .filter-btn {
        padding: 9px 18px;
        font-size: 0.85rem;
    }
}

@media (max-width: 640px) {
    .page-header {
        padding: 60px 16px 50px;
    }
    
    .page-header h1 {
        font-size: 1.75rem;
        margin-bottom: 0.75rem;
    }
    
    .section-badge {
        font-size: 0.75rem;
        padding: 6px 14px;
    }
    
    .section-title {
        font-size: 1.5rem;
        margin-bottom: 10px;
    }
    
    .section-subtitle {
        font-size: 0.95rem;
    }
    
    .courses-filter {
        margin-bottom: 32px;
        gap: 16px;
    }
    
    .search-box input {
        padding: 12px 16px 12px 40px;
        font-size: 0.95rem;
    }
    
    .filter-options {
        flex-direction: column;
        gap: 10px;
    }
    
    .filter-btn {
        width: 100%;
        padding: 10px 16px;
        font-size: 0.85rem;
    }
    
    .courses-grid {
        gap: 16px;
        margin-bottom: 40px;
    }
    
    .course-card {
        border-radius: 12px;
    }
    
    .course-badge {
        top: 12px;
        right: 12px;
        padding: 5px 12px;
        font-size: 0.65rem;
    }
    
    .course-icon {
        width: 70px;
        height: 70px;
        font-size: 32px;
        margin: 24px auto 20px;
    }
    
    .course-card h3 {
        font-size: 1.1rem;
        margin: 0 16px 6px;
    }
    
    .course-fullname {
        font-size: 0.85rem;
        margin: 0 16px 12px;
    }
    
    .course-desc {
        font-size: 0.85rem;
        margin: 0 16px 16px;
        line-height: 1.6;
    }
    
    .course-meta {
        margin: 0 16px 16px;
        padding-top: 12px;
        gap: 10px;
        font-size: 0.8rem;
    }
    
    .course-meta span {
        font-size: 0.8rem;
    }
    
    .course-card .btn {
        margin: 0 16px 20px;
        padding: 10px 18px;
        font-size: 0.85rem;
    }
    
    .cta-section {
        padding: 32px 16px;
        margin-top: 40px;
        border-radius: 16px;
    }
    
    .cta-section h3 {
        font-size: 1.25rem;
        margin-bottom: 12px;
    }
    
    .cta-section p {
        font-size: 0.9rem;
        margin-bottom: 20px;
    }
    
    .cta-section .btn {
        padding: 12px 28px;
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .page-header {
        padding: 50px 12px 40px;
    }
    
    .page-header h1 {
        font-size: 1.5rem;
    }
    
    .section-title {
        font-size: 1.35rem;
    }
    
    .courses-grid {
        gap: 14px;
        margin-bottom: 32px;
    }
    
    .course-icon {
        width: 65px;
        height: 65px;
        font-size: 28px;
        margin: 20px auto 16px;
    }
    
    .course-card h3 {
        font-size: 1rem;
        margin: 0 14px 4px;
    }
    
    .course-desc {
        font-size: 0.8rem;
        margin: 0 14px 14px;
    }
    
    .course-meta {
        margin: 0 14px 12px;
        padding-top: 10px;
        gap: 8px;
    }
    
    .course-card .btn {
        margin: 0 14px 16px;
        padding: 9px 16px;
        font-size: 0.8rem;
    }
    
    .cta-section {
        padding: 24px 12px;
        margin-top: 32px;
    }
    
    .cta-section h3 {
        font-size: 1.1rem;
    }
    
    .cta-section p {
        font-size: 0.85rem;
        margin-bottom: 16px;
    }
    
    .cta-section .btn {
        padding: 10px 24px;
        font-size: 0.85rem;
    }
}

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

.course-card {
    animation: fadeInUp 0.6s ease-out forwards;
    opacity: 0;
}

.course-card:nth-child(1) { animation-delay: 0.1s; }
.course-card:nth-child(2) { animation-delay: 0.2s; }
.course-card:nth-child(3) { animation-delay: 0.3s; }
.course-card:nth-child(4) { animation-delay: 0.4s; }
.course-card:nth-child(5) { animation-delay: 0.5s; }
.course-card:nth-child(6) { animation-delay: 0.6s; }
.course-card:nth-child(7) { animation-delay: 0.7s; }
