body { margin: 0; font-family: var(--font-family-main); background-color: var(--brand-background); color: var(--brand-white); } .welcome-header { text-align: center; margin: 60px 20px 40px 20px; } .welcome-heading { font-size: 50px; font-weight: 500; color: var(--brand-primary); margin-bottom: 20px; } .welcome-subheading { font-size: 28px; font-weight: bold; color: white; text-align: left; max-width: 1000px; margin-bottom: 30px; } .course-grid { display: flex; flex-wrap: wrap; gap: 40px; margin-left: 20px; } @media screen and (max-width: 765px) { .course-grid{ margin-left: 0; } } .course-card { background: var(--brand-white); border-radius: 12px; overflow: hidden; box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2); min-height: 300px; display: flex; flex-direction: column; } .course-image { background-color: #ddd; height: 180px; width: 100%; } .course-content { background-color: var(--brand-primary); color: var(--brand-white); padding: 20px; font-size: 16px; display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; } .course-left, .course-right { display: flex; flex-direction: column; font-size: 14px; line-height: 1.4; } .course-left div:first-child, .course-right div:first-child { font-weight: bold; font-size: 16px; } .course-right { text-align: right; } @media screen and (max-width: 1024px) { .course-card { flex: 0 0 calc(50% - 20px); } } @media screen and (max-width: 640px) { .course-card { flex: 0 0 100%; } .welcome-heading { font-size: 36px; } .welcome-subheading { font-size: 20px; text-align: center; } }