/* Courses Landing Page Styles */

.courses-page {
    min-height: 100vh;
    padding-bottom: 32px;
}

/* Hero Section */
.courses-hero {
    background: linear-gradient(135deg, var(--accent-color) 0%, var(--accent-color-hover) 100%);
    padding: 48px 24px 32px;
    text-align: center;
    border-bottom-left-radius: 32px;
    border-bottom-right-radius: 32px;
    margin-bottom: 24px;
}

.courses-hero-content {
    max-width: 400px;
    margin: 0 auto;
}

.courses-title {
    color: var(--on-accent-color);
    font-size: 32px;
    font-weight: 700;
    margin: 0 0 8px 0;
    min-width: auto;
    width: auto;
}

.courses-subtitle {
    color: var(--on-accent-color);
    opacity: 0.9;
    font-size: 16px;
    margin: 0;
    min-width: auto;
    width: auto;
}

/* Courses List */
.courses-list {
    padding: 0 16px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* Course Card */
.course-card {
    background: var(--popover-bg-color);
    border-radius: 24px;
    overflow: hidden;
    box-shadow: var(--card-shadow);
    position: relative;
}

.course-badge {
    position: absolute;
    top: 16px;
    left: 16px;
    background: linear-gradient(45deg, #ff6b6b, #ff5722);
    color: white;
    font-size: 12px;
    font-weight: 600;
    padding: 6px 12px;
    border-radius: 12px;
    z-index: 2;
    box-shadow: 0 2px 8px rgba(255, 107, 107, 0.3);
}

.course-badge-new {
    background: linear-gradient(45deg, #4caf50, #66bb6a);
    box-shadow: 0 2px 8px rgba(76, 175, 80, 0.3);
}

.course-image-wrapper {
    width: 100%;
    height: 180px;
    overflow: hidden;
}

.course-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.course-image-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #6b5b95 0%, #9b8bb8 50%, #c4b6db 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}

.course-image-placeholder-2 {
    background: linear-gradient(135deg, #4a7c59 0%, #7cb890 50%, #a8d5ba 100%);
}

.course-icon {
    font-size: 64px;
    opacity: 0.9;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.2));
}

.course-content {
    padding: 20px;
}

.course-name {
    font-size: 20px;
    font-weight: 600;
    margin: 0 0 12px 0;
    color: var(--text-color);
    min-width: auto;
    width: auto;
}

.course-description {
    font-size: 14px;
    line-height: 1.5;
    color: var(--secondary-text-color);
    margin: 0 0 16px 0;
    opacity: 1;
    min-width: auto;
    width: auto;
}

.course-features {
    list-style: none;
    padding: 0;
    margin: 0 0 20px 0;
}

.course-features li {
    font-size: 13px;
    color: var(--text-color);
    padding: 8px 0;
    border-bottom: 1px solid var(--divider-color);
    display: flex;
    align-items: center;
}

.course-features li:last-child {
    border-bottom: none;
}

.course-features li::before {
    content: "✓";
    color: var(--success-color);
    font-weight: 700;
    margin-right: 10px;
    font-size: 14px;
}

.course-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 16px;
    border-top: 1px solid var(--divider-color);
}

.course-price-block {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.course-price {
    font-size: 24px;
    font-weight: 700;
    color: var(--accent-color);
}

.course-price-old {
    font-size: 14px;
    color: var(--secondary-text-color);
    text-decoration: line-through;
}

.course-btn {
    background: linear-gradient(135deg, var(--accent-color) 0%, var(--accent-color-hover) 100%);
    color: var(--on-accent-color);
    border: none;
    border-radius: 16px;
    padding: 14px 24px;
    font-size: 15px;
    font-weight: 600;
    font-family: 'Rubik', sans-serif;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    box-shadow: 0 4px 12px rgba(107, 91, 149, 0.3);
}

.course-btn:active {
    transform: scale(0.96);
}

/* Contact Section */
.courses-contact {
    margin: 32px 16px 0;
    padding: 24px;
    background: var(--popover-bg-color);
    border-radius: 24px;
    text-align: center;
    box-shadow: var(--card-shadow);
}

.courses-contact h3 {
    font-size: 18px;
    font-weight: 600;
    margin: 0 0 8px 0;
    color: var(--text-color);
}

.courses-contact p {
    font-size: 14px;
    color: var(--secondary-text-color);
    margin: 0 0 20px 0;
    opacity: 1;
    min-width: auto;
    width: auto;
}

.courses-contact-btn {
    background: transparent;
    color: var(--accent-color);
    border: 2px solid var(--accent-color);
    border-radius: 16px;
    padding: 12px 24px;
    font-size: 15px;
    font-weight: 600;
    font-family: 'Rubik', sans-serif;
    cursor: pointer;
    transition: all 0.2s ease;
}

.courses-contact-btn:active {
    background: var(--accent-color);
    color: var(--on-accent-color);
}

/* Dark theme adjustments */
:root.dark .course-card {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4);
}

:root.dark .course-btn {
    box-shadow: 0 4px 12px rgba(139, 122, 184, 0.3);
}
