/* רביע מיוחד לקורסי אוגוסט */
.august-courses-container {
    background: linear-gradient(135deg, #ffecb3 0%, #fff8e1 100%);
    border: 2px solid #ff9800;
    border-radius: 15px;
    padding: 30px;
    margin: 30px auto;
    max-width: 900px;
    box-shadow: 0 6px 15px rgba(255, 152, 0, 0.2);
    position: relative;
    overflow: hidden;
}

.august-courses-container::before {
    content: "";
    position: absolute;
    top: -50%;
    right: -50%;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(255, 193, 7, 0.1) 0%, transparent 70%);
    animation: pulse 3s ease-in-out infinite alternate;
}

@keyframes pulse {
    0% { opacity: 0.3; }
    100% { opacity: 0.7; }
}

.august-header {
    text-align: center;
    margin-bottom: 25px;
    position: relative;
    z-index: 1;
}

.august-header h2 {
    color: #e65100;
    font-size: 2.2em;
    font-weight: bold;
    margin-bottom: 10px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.1);
}

.august-header p {
    color: #bf360c;
    font-size: 1.3em;
    font-weight: 500;
    margin: 0;
}

/* עיצוב רשימת הקורסים */
.courses-schedule {
    text-align: right;
    max-width: 900px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.course-item {
    margin-bottom: 30px;
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    padding: 25px;
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    box-shadow: 0 4px 8px rgba(0,0,0,0.08);
    transition: transform 0.2s ease;
}

.course-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0,0,0,0.12);
}

.course-header {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid #e8f5e9;
}

.course-header img {
    width: 90px;
    height: 90px;
    border-radius: 12px;
    margin-left: 20px;
    object-fit: cover;
    border: 3px solid #2e7d32;
}

.course-info h3 {
    color: #1b5e20;
    margin: 0;
    font-size: 1.5em;
    font-weight: bold;
    margin-bottom: 8px;
}

.course-info p {
    margin: 0;
    color: #424242;
    font-size: 1.1em;
    line-height: 1.4;
}

.course-schedule h4 {
    color: #1b5e20;
    margin-bottom: 15px;
    font-size: 1.2em;
    font-weight: bold;
    display: flex;
    align-items: center;
}

.course-schedule h4:before {
    content: "📅";
    margin-left: 8px;
    font-size: 1.1em;
}

.schedule-item {
    background: white;
    padding: 18px;
    border-radius: 8px;
    margin-bottom: 12px;
    border-right: 5px solid #2e7d32;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    transition: all 0.2s ease;
}

.schedule-item:hover {
    border-right-color: #1b5e20;
    box-shadow: 0 3px 6px rgba(0,0,0,0.1);
}

.schedule-item strong {
    color: #1b5e20;
    font-weight: bold;
    font-size: 1.05em;
    display: block;
    margin-bottom: 8px;
}

.schedule-details {
    color: #424242;
    font-size: 1em;
    margin-bottom: 12px;
    padding: 8px 12px;
    background: #f1f8e9;
    border-radius: 5px;
    border-right: 3px solid #8bc34a;
}

.schedule-item .btn {
    font-size: 0.95em;
    padding: 8px 16px;
    margin-top: 5px;
    margin-left: 8px;
    border-radius: 6px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.schedule-item .btn-primary {
    background: #2e7d32;
    border-color: #2e7d32;
}

.schedule-item .btn-primary:hover {
    background: #1b5e20;
    border-color: #1b5e20;
    transform: translateY(-1px);
}

.schedule-item .btn-secondary {
    background: #424242;
    border-color: #424242;
}

.schedule-item .btn-secondary:hover {
    background: #212121;
    border-color: #212121;
    transform: translateY(-1px);
}

/* התאמה למכשירים ניידים */
@media (max-width: 768px) {
    .august-courses-container {
        margin: 10px auto;
        padding: 15px;
        max-width: 95%;
        border-radius: 10px;
    }
    
    .august-header h2 {
        font-size: 1.4em;
        line-height: 1.3;
        margin-bottom: 8px;
    }
    
    .august-header p {
        font-size: 1em;
        line-height: 1.4;
    }
    
    .courses-schedule {
        max-width: 100%;
        padding: 0 5px;
    }
    
    .course-item {
        padding: 15px;
        margin-bottom: 20px;
    }
    
    .course-header {
        flex-direction: column;
        text-align: center;
        margin-bottom: 15px;
        padding-bottom: 10px;
    }
    
    .course-header img {
        margin: 0 0 10px 0;
        width: 70px;
        height: 70px;
    }
    
    .course-info h3 {
        font-size: 1.2em;
        margin-bottom: 5px;
    }
    
    .course-info p {
        font-size: 0.9em;
    }
    
    .course-schedule h4 {
        font-size: 1.1em;
        margin-bottom: 10px;
    }
    
    .schedule-item {
        padding: 12px;
        margin-bottom: 8px;
    }
    
    .schedule-item strong {
        font-size: 0.95em;
    }
    
    .schedule-details {
        font-size: 0.9em;
        padding: 6px 10px;
    }
    
    .schedule-item .btn {
        font-size: 0.85em;
        padding: 6px 12px;
        margin-top: 3px;
        margin-left: 5px;
    }
}

/* התאמה למכשירים קטנים מאוד */
@media (max-width: 480px) {
    .august-courses-container {
        margin: 5px auto;
        padding: 12px;
        max-width: 98%;
    }
    
    .august-header h2 {
        font-size: 1.2em;
        line-height: 1.2;
    }
    
    .august-header p {
        font-size: 0.9em;
    }
    
    .course-header img {
        width: 60px;
        height: 60px;
    }
    
    .course-info h3 {
        font-size: 1.1em;
    }
    
    .course-info p {
        font-size: 0.85em;
    }
    
    .schedule-item .btn {
        font-size: 0.8em;
        padding: 5px 10px;
        margin-left: 3px;
        display: block;
        width: 100%;
        margin-bottom: 5px;
    }
}