index.html
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Hancie e-Learning Studio</title>
<link href="https://cdn.jsdelivr.net/npm/bootstrap@5.1.3/dist/
css/bootstrap.min.css" rel="stylesheet">
<script src="https://cdn.jsdelivr.net/npm/bootstrap@5.1.3/dist/
js/bootstrap.bundle.min.js"></script>
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/
bootstrap-icons@1.9.1/font/bootstrap-icons.css">
</head>
<body><br><br>
<div class="container">
<div class="row">
<div class="col-md-3 col-sm-6">
<div class="serviceBox yellow">
<div class="service-icon">
<span><i class="bi bi-app-indicator"></i></span>
</div>
<h3 class="title">Web Design</h3>
<p class="description">Lorem ipsum dolor sit amet conse ctetur
adipisicing elit. Qui quaerat fugit quas veniam perferendis
repudiandae sequi, dolore quisquam illum.</p>
</div>
</div>
<div class="col-md-3 col-sm-6">
<div class="serviceBox green">
<div class="service-icon">
<span><i class="bi bi-cpu"></i></span>
</div>
<h3 class="title">Responsive Design</h3>
<p class="description">Lorem ipsum dolor sit amet conse ctetur
adipisicing elit. Qui quaerat fugit quas veniam perferendis
repudiandae sequi, dolore quisquam illum.</p>
</div>
</div>
<div class="col-md-3 col-sm-6">
<div class="serviceBox blue">
<div class="service-icon">
<span><i class="bi bi-cpu"></i></span>
</div>
<h3 class="title">Brand Building</h3>
<p class="description">Lorem ipsum dolor sit amet conse ctetur
adipisicing elit. Qui quaerat fugit quas veniam perferendis
repudiandae sequi, dolore quisquam illum.</p>
</div>
</div>
<div class="col-md-3 col-sm-6">
<div class="serviceBox">
<div class="service-icon">
<span><i class="bi bi-app-indicator"></i></span>
</div>
<h3 class="title">Web Development</h3>
<p class="description">Lorem ipsum dolor sit amet conse ctetur
adipisicing elit. Qui quaerat fugit quas veniam perferendis
repudiandae sequi, dolore quisquam illum.</p>
</div>
</div>
</div>
</div>
<style>
:root{ --main-color: #0E6880; }
.serviceBox{
color: var(--main-color);
background-color: #fff;
font-family: 'Raleway', sans-serif;
text-align: center;
padding: 0 25px 30px;
position: relative;
z-index: 1;
}
.serviceBox:before,
.serviceBox:after{
content: "";
background: #fff;
border-radius: 15px 15px;
box-shadow: 0 0 15px rgba(0,0,0,0.2);
position: absolute;
top: 10px;
bottom: 10px;
left: 10px;
right: 10px;
z-index: -1;
}
.serviceBox:after{
background-color: var(--main-color);
height: 50%;
top: auto;
left: 0;
right: 0;
bottom: 0;
z-index: -2;
}
.serviceBox .service-icon{
color:#fff;
background: var(--main-color);
font-size: 45px;
width: 75%;
margin: 0 auto 35px;
border-radius:0 0 50px 50px;
position: relative;
}
.serviceBox .service-icon:before,
.serviceBox .service-icon:after{
content: "";
background: linear-gradient(to top left, var
(--main-color) 49%, transparent 50%);
width: 10px;
height: 10px;
position: absolute;
top: 0;
left: -10px;
}
.serviceBox .service-icon:after{
background: linear-gradient(to top right, var
(--main-color) 49%, transparent 50%);
left: auto;
right: -10px;
}
.serviceBox .title{
font-size: 18px;
font-weight: 600;
text-transform: uppercase;
margin: 0 0 10px;
}
.serviceBox .description{
color: #555;
font-size: 14px;
letter-spacing: 0.5px;
line-height: 25px;
}
.serviceBox.yellow{ --main-color: #FFB90D; }
.serviceBox.green{ --main-color: #60B361; }
.serviceBox.blue{ --main-color: #016FCE; }
@media only screen and (max-width: 1199px){
.serviceBox{ margin: 0 0 40px; }
}
</style>
</body>
</html>