* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Inter', 'Segoe UI', sans-serif;
    background: #ffffff;
    overflow-x: hidden;
}

.courses-section {
    padding: 100px 20px;
    background: linear-gradient(135deg, #ffffff 0%, #f8faf9 50%, #ffffff 100%);
    position: relative;
    overflow: hidden;
}

.courses-section::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    background-image: 
        linear-gradient(rgba(0, 119, 122, 0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 119, 122, 0.04) 1px, transparent 1px);
    background-size: 50px 50px;
    pointer-events: none;
}

.courses-container {
    max-width: 1400px;
    margin: 0 auto;
    position: relative;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-label {
    font-size: 0.85rem;
    font-weight: 500;
    color: #00777a;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 15px;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 300;
    color: #06402b;
    margin-bottom: 15px;
    letter-spacing: 1px;
}

.section-subtitle {
    font-size: 1.1rem;
    font-weight: 300;
    color: rgba(6, 64, 43, 0.7);
    max-width: 700px;
    margin: 0 auto;
    line-height: 1.7;
}

.slider-wrapper {
    position: relative;
    margin-bottom: 40px;
}

/* Desktop: Grid layout */
.courses-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    padding: 20px 0;
}

.course-card {
    background: white;
    border: 1px solid rgba(0, 119, 122, 0.2);
    padding: 40px 35px;
    position: relative;
    transition: all 0.4s ease;
}

.course-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, #06402b, #00777a);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s ease;
}

.course-card:hover::before {
    transform: scaleX(1);
}

.course-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 40px rgba(0, 119, 122, 0.15);
    border-color: #00777a;
}

.course-icon {
    width: 60px;
    height: 60px;
    background: rgba(0, 119, 122, 0.08);
    border: 1px solid rgba(0, 119, 122, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 25px;
    transition: all 0.3s ease;
}

.course-card:hover .course-icon {
    background: rgba(0, 119, 122, 0.15);
    border-color: #00777a;
}

.course-icon svg {
    width: 28px;
    height: 28px;
    stroke: #00777a;
    fill: none;
    stroke-width: 1.5;
}

.course-title {
    font-size: 1.4rem;
    font-weight: 400;
    color: #06402b;
    margin-bottom: 15px;
    line-height: 1.4;
}

.course-description {
    font-size: 0.95rem;
    font-weight: 300;
    color: rgba(6, 64, 43, 0.7);
    line-height: 1.7;
    margin-bottom: 25px;
}

.course-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #00777a;
    font-size: 0.85rem;
    font-weight: 500;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
}

.course-link:hover {
    gap: 12px;
    color: #06402b;
}

.course-link svg {
    width: 16px;
    height: 16px;
    stroke: currentColor;
    fill: none;
    stroke-width: 2;
    transition: transform 0.3s ease;
}

.course-link:hover svg {
    transform: translateX(4px);
}

/* Hide slider controls on desktop */
.slider-controls {
    display: none;
}

.slider-dots {
    display: none;
}

.slider-btn {
    width: 45px;
    height: 45px;
    border: 1px solid rgba(0, 119, 122, 0.3);
    background: white;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.slider-btn:hover:not(:disabled) {
    border-color: #00777a;
    background: rgba(0, 119, 122, 0.05);
}

.slider-btn:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

.slider-btn svg {
    width: 20px;
    height: 20px;
    stroke: #00777a;
    fill: none;
    stroke-width: 2;
}

.dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(0, 119, 122, 0.3);
    cursor: pointer;
    transition: all 0.3s ease;
}

.dot.active {
    background: #00777a;
    width: 24px;
    border-radius: 4px;
}

.cta-container {
    text-align: center;
    margin-top: 50px;
}

.cta-button {
    display: inline-block;
    padding: 16px 45px;
    background: linear-gradient(135deg, #06402b, #00777a);
    color: white;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.85rem;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    transition: all 0.3s ease;
    border: 1px solid #00777a;
    position: relative;
    overflow: hidden;
}

.cta-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #00777a, #06402b);
    transition: all 0.3s ease;
    z-index: -1;
}

.cta-button:hover::before {
    left: 0;
}

.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(0, 119, 122, 0.4);
}

/* Tablet */
@media (max-width: 1024px) {
    .courses-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 25px;
    }
}

/* Mobile: Slider layout */
@media (max-width: 768px) {
    .courses-section {
        padding: 60px 20px;
    }

    .section-header {
        margin-bottom: 40px;
    }

    .section-title {
        font-size: 1.8rem;
    }

    .section-subtitle {
        font-size: 0.95rem;
    }

    .slider-wrapper {
        margin-bottom: 30px;
    }

    /* Switch to vertical slider on mobile */
    .courses-grid {
        display: flex;
        flex-direction: column;
        gap: 0;
        overflow: hidden;
        padding: 0;
        grid-template-columns: none;
        position: relative;
        min-height: 400px;
    }

    .course-card {
        width: 100%;
        flex-shrink: 0;
        padding: 35px 25px;
        position: absolute;
        top: 0;
        left: 0;
        opacity: 0;
        transform: translateY(20px);
        transition: opacity 0.4s ease, transform 0.4s ease;
        pointer-events: none;
    }

    .course-card.active {
        opacity: 1;
        transform: translateY(0);
        position: relative;
        pointer-events: auto;
    }

    .course-icon {
        width: 55px;
        height: 55px;
        margin-bottom: 20px;
    }

    .course-icon svg {
        width: 26px;
        height: 26px;
    }

    .course-title {
        font-size: 1.3rem;
        margin-bottom: 12px;
    }

    .course-description {
        font-size: 0.92rem;
        margin-bottom: 20px;
        line-height: 1.65;
    }

    /* Show slider controls on mobile */
    .slider-controls {
        display: flex;
        justify-content: center;
        gap: 15px;
        margin-top: 25px;
    }

    .slider-dots {
        display: flex;
        justify-content: center;
        gap: 10px;
        margin-top: 20px;
    }

    .cta-container {
        margin-top: 40px;
    }

    .cta-button {
        width: 100%;
        max-width: 320px;
        padding: 15px 40px;
        font-size: 0.8rem;
    }
}

@media (max-width: 480px) {
    .courses-section {
        padding: 50px 15px;
    }

    .section-title {
        font-size: 1.6rem;
    }

    .section-subtitle {
        font-size: 0.9rem;
        line-height: 1.6;
    }

    .courses-grid {
        padding: 10px 2px;
    }

    .course-card {
        min-width: calc(100% - 5px);
        padding: 30px 22px;
    }

    .course-icon {
        width: 50px;
        height: 50px;
    }

    .course-icon svg {
        width: 24px;
        height: 24px;
    }

    .course-title {
        font-size: 1.25rem;
        line-height: 1.35;
    }

    .course-description {
        font-size: 0.9rem;
        line-height: 1.6;
    }

    .course-link {
        font-size: 0.8rem;
    }

    .cta-button {
        max-width: 100%;
        padding: 14px 35px;
        font-size: 0.75rem;
    }
}