body {
  margin: 0;
  font-family: 'Segoe UI', Roboto, sans-serif;

  color: #333;
  background-image: linear-gradient(to bottom right, #ffffff, #999999);
  background-repeat: no-repeat;
  background-size: cover;
  background-attachment: fixed;
}

.card-color-1 { background-color: #a460bd; }  
.card-color-2 { background-color: #f1634f; }  
.card-color-3 { background-color: #439bd4; }  
.card-color-4 { background-color: #439bd4; }  
.card-color-5 { background-color: #14b666; }  
.card-color-6 { background-color: #d4b9d5; }  

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 30px;
  padding: 40px 20px;
  max-width: 1400px;
  margin: auto;
}

.card-container-1 {
  display: flex;
  width: 100%;
  height: 0;
  padding-top: 81%;
  position: relative;
  border-radius: 20px;
  background: transparent;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0);
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card-container-1:hover {
  transform: scale(1.02);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.card-main, .card-side {
  position: absolute;
  top: 0;
  bottom: 0;
}

.card-main {
  top: 0;
  left: 0;
  width: 75%;
  background-size: cover;
  background-position: center;
  border-right: 1px solid #ddd;
  border-radius: 5%; 
}

.card-side {
  right: 0;
  width: 25%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: stretch;
  background: none;
  border-left: none;
  padding: 5px;
  box-sizing: border-box;
  border-radius: 5%; 
}

.side-button {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  background: #f2ae4c;
  color: white;
  text-decoration: none;
  font-weight: bold;
  font-size: 0.9em;
  border: none;
  border-radius: 5%; 
  margin: 3%; 
  transition: background 0.3s ease, transform 0.2s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.side-button:hover {
  background: #d99135;
  transform: scale(1.05);
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.15);
}

.overlay {
  position: absolute;
  bottom: 0;
  top: 0;
  width: 100%;
  background: rgba(0, 0, 0, 0.25);
  color: white;
  padding: 5%;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  border-radius: 5%; 
}

.overlay h3 {
  margin: 0 0 5px 0;
  font-size: 2.3em;
  font-weight: 700;
  text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.overlay h4 {
  margin: 3px 0;
  font-size: 1.0em;
  font-weight: normal;
  line-height: 1.1;
  color: #f8f8f8;
  text-shadow: 0 1px 2px rgba(0,0,0,0.2);
}

.overlay1 {
  position: absolute;
  bottom: 20px;
  left: 4%;
}

.button {
  background: #f2ae4c;
  color: white;
  padding: 10px 20px;
  text-decoration: none;
  border-radius: 30px;
  font-weight: bold;
  font-size: 1.2em;
  transition: background 0.3s ease, transform 0.2s ease;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.button:hover {
  background: #FDD835;
  transform: scale(1.05);
}

.card-container {
  display: flex;
  background: white;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  transition: transform 0.2s ease;
}

.card {
  position: relative;
  flex: 1;
  background-size: cover;
  background-position: center;
}
