.page-hero {
    padding: 6rem 0 4rem;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: var(--white);
    text-align: center;
}

.page-hero h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: var(--white);
}

.page-hero p {
    font-size: 1.25rem;
    opacity: 0.9;
}

.courses-section {
    padding: 4rem 0;
}

.courses-list {
    display: grid;
    gap: 3rem;
}

.course-item {
    display: grid;
    grid-template-columns: 400px 1fr;
    gap: 2rem;
    background: var(--white);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
    cursor: pointer;
}

.course-item:hover {
    box-shadow: var(--shadow-hover);
    transform: translateY(-5px);
}

.course-item-image {
    height: 300px;
    overflow: hidden;
}

.course-item-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.course-item:hover .course-item-image img {
    transform: scale(1.05);
}

.course-item-content {
    padding: 2rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.course-badge {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: var(--secondary-color);
    color: var(--white);
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 1rem;
    width: fit-content;
}

.course-badge.intermediate {
    background: #ff9800;
}

.course-badge.advanced {
    background: #f44336;
}

.course-item-content h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.course-item-content p {
    color: var(--text-light);
    margin-bottom: 1.5rem;
    line-height: 1.8;
}

.course-details {
    display: flex;
    gap: 2rem;
    margin-bottom: 1.5rem;
    color: var(--text-light);
    font-size: 0.95rem;
}

.course-details span {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.course-details i {
    color: var(--secondary-color);
}

.modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 2000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.modal.active {
    display: flex;
}

.modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.8);
    backdrop-filter: blur(5px);
}

.modal-content {
    position: relative;
    background: var(--white);
    border-radius: 20px;
    max-width: 800px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    z-index: 2001;
    animation: modalSlideIn 0.3s ease;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--white);
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    color: var(--text-dark);
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
    z-index: 2002;
}

.modal-close:hover {
    background: var(--primary-color);
    color: var(--white);
    transform: rotate(90deg);
}

.modal-body {
    padding: 2rem;
}

.modal-body img {
    width: 100%;
    border-radius: 15px;
    margin-bottom: 2rem;
}

.modal-body h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.modal-meta {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
    align-items: center;
}

.modal-meta span {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-light);
}

.modal-meta i {
    color: var(--secondary-color);
}

.modal-body p {
    color: var(--text-light);
    line-height: 1.8;
    margin-bottom: 2rem;
}

.modal-body h3 {
    font-size: 1.75rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.modal-body ul {
    list-style: none;
    margin-bottom: 2rem;
}

.modal-body ul li {
    padding: 0.75rem 0;
    padding-left: 2rem;
    position: relative;
    color: var(--text-dark);
}

.modal-body ul li::before {
    content: '\f00c';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    left: 0;
    color: var(--secondary-color);
}

.modal-price {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 2rem;
    border-top: 2px solid var(--border-color);
}

.price {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-color);
}

@media (max-width: 968px) {
    .course-item {
        grid-template-columns: 1fr;
    }

    .course-item-image {
        height: 250px;
    }

    .modal-content {
        margin: 1rem;
    }

    .modal-body {
        padding: 1.5rem;
    }

    .modal-price {
        flex-direction: column;
        gap: 1.5rem;
        align-items: stretch;
    }

    .price {
        text-align: center;
    }
}

@media (max-width: 768px) {
    .page-hero h1 {
        font-size: 2.5rem;
    }

    .course-item-content h2 {
        font-size: 1.5rem;
    }

    .modal-body h2 {
        font-size: 2rem;
    }
}
