/* ========================================
   Programs Section Styles
   ======================================== */
.programs {
  padding: 80px 0;
  background: #f8f6f3;
  text-align: center;
}

.programs h2 {
  font-family: "Playfair Display", serif;
  font-size: 1.5rem;
  margin-bottom: 30px;
  color: #8b6f47;
  text-align: center;
  font-weight: 400;
  background: #f5ede4;
  padding: 15px 30px;
  border-radius: 30px;
  display: inline-block;
}

.programs-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-template-rows: repeat(2, 280px);
  gap: 15px;
  height: 575px;
}

.program-card {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  cursor: pointer;
  transition: all 0.3s ease;
}

/* Specific positioning for 7 cards in 4x2 grid - optimized layout */
.program-card:nth-child(1) {
  grid-column: 1;
  grid-row: 1;
}

.program-card:nth-child(2) {
  grid-column: 2;
  grid-row: 1;
}

.program-card:nth-child(3) {
  grid-column: 3;
  grid-row: 1;
}

.program-card:nth-child(4) {
  grid-column: 4;
  grid-row: 1;
}

.program-card:nth-child(5) {
  grid-column: 1;
  grid-row: 2;
}

.program-card:nth-child(6) {
  grid-column: 2 / 4;
  grid-row: 2;
}

/* Last card goes to the end */
.program-card:nth-child(7) {
  grid-column: 4;
  grid-row: 2;
}

.program-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.program-card:hover img {
  transform: scale(1.1);
}

.card-content {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: none;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: center;
  padding: 20px;
  color: white;
  text-align: center;
}

.card-content h3 {
  font-family: "Roboto", sans-serif;
  font-size: 1rem;
  font-weight: 400;
  margin-bottom: 10px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.signature-badge {
  position: absolute;
  top: 20px;
  left: 20px;
  background: rgba(139, 111, 71, 0.9);
  color: white;
  padding: 8px 15px;
  border-radius: 15px;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.card-overlay {
  position: absolute;
  top: 50%;
  right: 20px;
  transform: translateY(-50%);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.program-card:hover .card-overlay {
  opacity: 1;
}

.plus-icon {
  display: inline-block;
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.9);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  color: #8b6f47;
  font-weight: bold;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
  transition: all 0.3s ease;
}

.plus-icon:hover {
  transform: scale(1.1);
  background: rgba(255, 255, 255, 1);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

/* ========================================
   Special Programs Section
   ======================================== */
.special-programs {
  padding: 80px 0;
  background: #f8f6f3;
  text-align: center;
}

.special-programs h2 {
  font-family: "Playfair Display", serif;
  font-size: 1.3rem;
  margin-bottom: 50px;
  color: #e8a5a5;
  text-align: center;
  font-weight: 400;
  background: #f9f0f0;
  padding: 15px 30px;
  border-radius: 30px;
  display: inline-block;
}

.special-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  grid-template-rows: repeat(2, 180px);
  gap: 15px;
}

.special-card {
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
  transition: all 0.3s ease;
  position: relative;
}

/* Specific positioning for 5 special cards in 2x2 grid with 3 small cards on bottom */
.special-card:nth-child(1) {
  grid-column: 1 / 4;
  grid-row: 1;
}

.special-card:nth-child(2) {
  grid-column: 4 / 7;
  grid-row: 1;
}

.special-card:nth-child(3) {
  grid-column: 1 / 3;
  grid-row: 2;
}

.special-card:nth-child(4) {
  grid-column: 3 / 5;
  grid-row: 2;
}

.special-card:nth-child(5) {
  grid-column: 5 / 7;
  grid-row: 2;
}

.special-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.special-card:hover img {
  transform: scale(1.1);
}

.special-card .card-overlay {
  position: absolute;
  bottom: 20px;
  right: 20px;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.special-card .plus-icon {
  display: inline-block;
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.9);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  color: #8b6f47;
  font-weight: bold;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
  transition: all 0.3s ease;
}

.special-card .plus-icon:hover {
  transform: scale(1.1);
  background: rgba(255, 255, 255, 1);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

/* Special Programs Section에 대한 card-content 스타일도 추가 */
.special-card .card-content {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: none;
  padding: 15px;
  color: white;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
}

.special-card .card-content h3 {
  margin: 0;
}
