/* Courses Page Specific Styles - SystemsWay Inspired */

/* Hero Section */
.courses-hero {
    background: white;
    color: #1f2937;
    padding: 2rem 0 4rem;
    position: relative;
    overflow: hidden;
}

.courses-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('/images/pattern.svg') repeat;
    opacity: 0.1;
    z-index: 1;
}

.courses-hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.courses-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: #3b82f6;
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 50px;
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 2rem;
}

.courses-main-title {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 1rem;
    line-height: 1.1;
}

.courses-subtitle {
    font-size: 1.25rem;
    margin-bottom: 1.5rem;
    font-weight: 600;
    opacity: 0.9;
}

.courses-description {
    font-size: 1.125rem;
    margin-bottom: 1.5rem;
    line-height: 1.6;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    opacity: 0.9;
}

/* Courses Listing Section */
.courses-listing-section {
    padding: 4rem 0;
    background: #f8fafc;
}

html[data-theme="dark"] .courses-listing-section {
    background: #0f172a;
}

.courses-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-bottom: 3rem;
}

.course-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    border: 1px solid #e5e7eb;
    display: flex;
    flex-direction: column;
}

html[data-theme="dark"] .course-card {
    background: #1e293b;
    border-color: #475569;
    color: #f1f5f9;
}

.course-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

.course-image {
    position: relative;
    width: 100%;
    height: 220px;
    overflow: hidden;
}

.course-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.course-card:hover .course-image img {
    transform: scale(1.05);
}

.course-category {
    position: absolute;
    top: 1rem;
    left: 1rem;
    background: #3b82f6;
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.025em;
}

.course-content {
    padding: 1.5rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.course-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 1rem;
    line-height: 1.4;
}

html[data-theme="dark"] .course-title {
    color: #f1f5f9;
}

.course-description {
    color: #6b7280;
    line-height: 1.6;
    margin-bottom: 1.5rem;
    flex-grow: 1;
}

html[data-theme="dark"] .course-description {
    color: #d1d5db;
}

.course-meta {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
    font-size: 0.875rem;
    color: #6b7280;
}

html[data-theme="dark"] .course-meta {
    color: #9ca3af;
}

.course-duration,
.course-lectures {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.course-duration::before {
    content: '🕒';
}

.course-lectures::before {
    content: '📚';
}

.course-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: #3b82f6;
    font-weight: 600;
    text-decoration: none;
    font-size: 0.875rem;
    transition: all 0.2s;
    margin-top: auto;
}

.course-link:hover {
    color: #2563eb;
    text-decoration: none;
    transform: translateX(2px);
}

html[data-theme="dark"] .course-link {
    color: #60a5fa;
}

html[data-theme="dark"] .course-link:hover {
    color: #93c5fd;
}

.courses-cta {
    text-align: center;
    padding: 2rem;
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    border: 1px solid #e5e7eb;
}

html[data-theme="dark"] .courses-cta {
    background: #1e293b;
    border-color: #475569;
}

.courses-cta-text {
    font-size: 1.125rem;
    color: #374151;
    margin: 0;
}

html[data-theme="dark"] .courses-cta-text {
    color: #d1d5db;
}

.contact-email {
    color: #3b82f6;
    text-decoration: none;
    font-weight: 600;
}

.contact-email:hover {
    color: #2563eb;
    text-decoration: underline;
}

html[data-theme="dark"] .contact-email {
    color: #60a5fa;
}

html[data-theme="dark"] .contact-email:hover {
    color: #93c5fd;
}

/* Section Dividers */
.courses-section-divider {
    border: none;
    height: 1px;
    background: linear-gradient(90deg, transparent, #e2e8f0, transparent);
    margin: 0;
}

/* Success Stories Section */
.success-stories-section {
    padding: 6rem 0;
    background: transparent;
}

/* Related Courses Section */
.related-courses-section {
    padding: 6rem 0;
    background: transparent;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-header h2 {
    font-size: 2.5rem;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 1rem;
}

.section-header p {
    font-size: 1.125rem;
    color: #6b7280;
    max-width: 600px;
    margin: 0 auto;
}

/* CTA Section */
.courses-cta-section {
    padding: 6rem 0;
    background: linear-gradient(135deg,
            rgba(59, 130, 246, 0.05) 0%,
            rgba(147, 197, 253, 0.05) 100%);
}

.courses-cta-content {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.courses-cta-content h2 {
    font-size: 2.5rem;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 1.5rem;
}

.courses-cta-content p {
    font-size: 1.25rem;
    color: #6b7280;
    margin-bottom: 2.5rem;
    line-height: 1.6;
}

.courses-cta-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.courses-btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: linear-gradient(135deg, #3b82f6, #1d4ed8);
    color: white;
    padding: 1rem 2rem;
    border-radius: 0.75rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s;
    box-shadow: 0 4px 14px 0 rgba(59, 130, 246, 0.3);
}

.courses-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px 0 rgba(59, 130, 246, 0.4);
    text-decoration: none;
    color: white;
}

.courses-btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: transparent;
    color: #3b82f6;
    padding: 1rem 2rem;
    border: 2px solid #3b82f6;
    border-radius: 0.75rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s;
}

.courses-btn-secondary:hover {
    background: #3b82f6;
    color: white;
    transform: translateY(-2px);
    text-decoration: none;
}

/* Newsletter Wrapper */
.newsletter-wrapper {
    background: transparent;
}

/* Dark Mode Support */
html[data-theme="dark"] .courses-hero-section {
    background: linear-gradient(135deg,
            rgba(15, 23, 42, 0.95) 0%,
            rgba(30, 41, 59, 0.95) 100%);
}

html[data-theme="dark"] .courses-main-title {
    color: #f1f5f9;
}

html[data-theme="dark"] .courses-subtitle,
html[data-theme="dark"] .courses-description,
html[data-theme="dark"] .courses-highlight {
    color: #94a3b8;
}

html[data-theme="dark"] .section-header h2 {
    color: #f3f4f6;
}

html[data-theme="dark"] .section-header p {
    color: #d1d5db;
}

html[data-theme="dark"] .courses-cta-content h2 {
    color: #f3f4f6;
}

html[data-theme="dark"] .courses-cta-content p {
    color: #d1d5db;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .courses-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
}

@media (max-width: 768px) {
    .courses-hero {
        padding: 4rem 0 3rem;
    }

    .courses-main-title {
        font-size: 2.5rem;
    }

    .courses-subtitle {
        font-size: 1.125rem;
    }

    .courses-listing-section {
        padding: 3rem 0;
    }

    .courses-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .course-card {
        margin: 0 1rem;
    }

    .course-content {
        padding: 1.25rem;
    }

    .course-title {
        font-size: 1.125rem;
    }

    .course-meta {
        flex-direction: column;
        gap: 0.5rem;
    }

    .courses-cta {
        margin: 0 1rem;
        padding: 1.5rem;
    }

    .courses-cta-text {
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .courses-main-title {
        font-size: 2rem;
    }

    .courses-grid {
        grid-template-columns: 1fr;
    }

    .course-card {
        margin: 0;
    }

    .course-image {
        height: 180px;
    }

    .course-content {
        padding: 1rem;
    }
}