
.container2 {
    max-width: 1200px;
    margin: 0 auto;
}

.header {
    text-align: center;
    margin-bottom: 50px;
}

.header h1 {
    font-size: 2.5rem;
    color: #2c3e50;
    margin-bottom: 15px;
}

.header p {
    color: #7f8c8d;
    font-size: 1.1rem;
    max-width: 700px;
    margin: 0 auto;
}

.courses-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 20px;
}

.course-card {
    background: white;
    overflow: hidden;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    position: relative;
}

.course-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

.course-image {
    height: 200px;
    overflow: hidden;
    position: relative;
}

.course-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.course-card:hover .course-image img {
    transform: scale(1.05);
}

.course-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: #ff6b6b;
    color: white;
    padding: 5px 12px;
    font-size: 0.8rem;
    font-weight: 500;
}

.course-content {
    padding: 25px;
}

.course-faculty {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
    color: #ff6b6b;
    font-weight: 500;
}

.course-faculty i {
    margin-right: 8px;
    font-size: 1.1rem;
}

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

.course-stats {
    display: flex;
    justify-content: space-between;
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid #eee;
}

.stat {
    display: flex;
    align-items: center;
    color: #7f8c8d;
}

.stat i {
    margin-right: 5px;
    color: #ff6b6b;
}

.course-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.students-count {
    display: flex;
    align-items: center;
    color: #7f8c8d;
    font-weight: 500;
}

.students-count i {
    margin-right: 5px;
    color: #e74c3c;
}

.apply-btn {
    background: #ff2811;
    color: white;
    padding: 10px 20px;
    text-decoration: none;
    font-weight: 500;
    display: flex;
    align-items: center;
    transition: all 0.3s ease;
}

.apply-btn:hover {
    background: #d2220f;
    color: white;
    transform: translateX(5px);
}

.apply-btn i {
    margin-left: 8px;
    font-size: 0.9rem;
}

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

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