@import url('https://fonts.googleapis.com/css2?family=Vazirmatn:wght@300;400;500;600;700&display=swap');

/* * {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
} */

.courses-grid {
    font-family: 'Vazirmatn', sans-serif;
    /* background: linear-gradient(135deg, #783476 0%, #a23d9f 100%); */
    /* min-height: 100vh; */
    padding: 20px;
    direction: rtl;
}

.header {
    text-align: center;
    margin-bottom: 40px;
    color: white;
}

.header h1 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 10px;
    text-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

.header p {
    font-size: 1.2rem;
    opacity: 0.9;
}

.courses-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

.course-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 6px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

.course-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: linear-gradient(90deg, #783476, #4ecdc4, #a23d9f, #96ceb4);
    background-size: 400% 100%;
    animation: gradient-shift 3s ease infinite;
}

@keyframes gradient-shift {
    0%, 100% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
}

.course-icon {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #a23d9f, #764ba2);
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 10px;
    font-size: 1.2rem;
}

.course-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 15px;
    line-height: 1.4;
}

.course-description {
    color: #7f8c8d;
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 25px;
}

.course-details {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-bottom: 25px;
}

.detail-item {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.95rem;
}

.detail-icon {
    width: 35px;
    height: 35px;
    background: linear-gradient(135deg, #74b9ff, #0984e3);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1rem;
}

.detail-text {
    color: #2c3e50;
    font-weight: 500;
    font-family: 'fanum', sans-serif;
}

.card-header {
    padding: 20px;
    background-color: #efefef;
}

.card-body {
    padding: 16px;
}

.price-section {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px;
    background: linear-gradient(135deg, #00b894, #00a085);
    border-radius: 8px;
    margin-bottom: 10px;
}

.courses-grid .price {
    color: white!important;
    font-size: 0.95rem;
    font-weight: 700;
    font-family: 'fanum', sans-serif;
}

.price-label {
    color: #00b894;
    font-size: 0.95rem;
}

.enroll-btn {
    width: 100%;
    /* padding: 10px; */
    background: linear-gradient(135deg, #783476, #783476);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Vazirmatn', sans-serif;
}

.enroll-btn:hover {
    transform: scale(1.02);
    box-shadow: 0 8px 25px rgba(253, 121, 168, 0.4);
}

.summer-badge {
    position: absolute;
    top: 20px;
    left: 20px;
    background: linear-gradient(135deg, #fd79a8, #fdcb6e);
    color: white;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 0.7rem;
    font-weight: 600;
    box-shadow: 0 4px 15px rgba(253, 121, 168, 0.3);
}

@media (max-width: 768px) {
    .courses-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .header h1 {
        font-size: 2rem;
    }
}