@charset "UTF-8";

#main div:before,
#main div:after,
section:before,
section:after,
figure:before,
figure:after,
article:before,
article:after,
ul:before,
ul:after,
ol:before,
ol:after,
dl:before,
dl:after {
  display: none;
}

#box1 .flexbox {
  margin-bottom: 25px;
}

#box1 .flexbox p {
  width: 100%;
  margin-bottom: 15px;
}

#box1 .flexbox figure {
  width: 100%;
  margin-bottom: 15px;
}

#box1 .flexbox figure img {
  width: 100%;
  height: auto;
}

#box1 .card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
  margin-top: 20px;
}

#box1 .card {
  background: white;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid #e0e0e0;
  border-radius: 10px;
}

#box1 .card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

#box1 .card-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  background: linear-gradient(45deg, #f0f0f0, #e8e8e8);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #666;
  font-size: 14px;
}

#box1 .card-content {
  padding: 10px;
}

#box1 .card-title {
  font-size: 18px;
  font-weight: bold;
  color: #333;
  margin-bottom: 8px;
  border-left: none;
  padding-left: 0px;
  background: none;
  font-size: 1.8rem;
}

.cmnbox h3:before,
.cmnbox h3:after {
  display: none;
}

#box1 .card-description {
  font-size: 14px;
  color: #555;
  line-height: 1.5;
}

@media screen and (min-width: 481px) {
  #box1 .flexbox {
    display: flex;
    justify-content: space-between;
    flex-direction: row-reverse;
  }

  #box1 .flexbox p {
    width: 65%;
  }

  #box1 .flexbox figure {
    width: 30%;
  }
}

#box1 p {
  margin-bottom: 15px;
}