/* ============================= */
/* 새로 추가된 CSS */
/* ============================= */

/* 카드 비교 */
.compare-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  max-width: 1100px;
  margin: 2rem auto;
}
.compare-card {
  perspective: 1000px;
  cursor: pointer;
  height: 150px;
  position: relative;
  border-radius: 12px;
}
.card-front,
.card-back {
  position: absolute;
  width: 100%;
  height: 100%;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  font-weight: bold;
  backface-visibility: hidden;
  transition: transform 0.6s;
}
.card-front {
  background: linear-gradient(135deg, #ffc1cc, #ffd6e0);
  color: #fff;
}
.card-back {
  background: #fff0f5;
  color: #444;
  transform: rotateY(180deg);
}
.compare-card.flipped .card-front {
  transform: rotateY(180deg);
}
.compare-card.flipped .card-back {
  transform: rotateY(360deg);
}

/* 모달 */
.compare-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  align-items: center;
  justify-content: center;
}
.modal-content {
  background: #fff;
  padding: 2rem;
  border-radius: 16px;
  max-width: 600px;
  width: 90%;
  border: 3px solid #ffc1cc;
}
.modal-close {
  float: right;
  font-size: 1.5rem;
  cursor: pointer;
  color: #ff5c8a;
}

/* 비교 테이블 */
.table-section {
  margin: 3rem auto;
  max-width: 95%;
  text-align: center;
}
.table-wrapper {
  overflow-x: auto;
  border-radius: 12px;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.06);
}
.compare-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 700px;
  font-size: 0.95rem;
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
}
.compare-table thead {
  background: linear-gradient(90deg, #ffc1cc, #ffd6e0);
  color: #fff;
}
.compare-table thead th {
  padding: 1rem;
  text-align: center;
  font-weight: 600;
  font-size: 1rem;
}
.compare-table tbody td {
  padding: 0.9rem 1rem;
  border-bottom: 1px solid #f0f0f0;
  color: #444;
  text-align: center;
}
/* 첫 열 강조 */
.compare-table tbody td:first-child {
  font-weight: 600;
  color: #ff5c8a;
  background: #fff8fa;
  width: 30%;
}
/* 오피스타 열 강조 */
.compare-table tbody td:nth-child(2) {
  color: #2e7d32;
  font-weight: 600;
}
/* 업체명 열 부정적 */
.compare-table tbody td:nth-child(3) {
  color: #b71c1c;
}
.compare-table tbody tr:hover {
  background: #fff0f5;
  transition: background 0.3s;
}
/* 반응형 */
@media (max-width: 768px) {
  .compare-table {
    font-size: 0.85rem;
    min-width: 100%;
  }
  .compare-table thead th,
  .compare-table tbody td {
    padding: 0.7rem;
  }
}

/* 장점/단점 카드 */
.advantages-disadvantages {
  display: flex;
  gap: 1rem;
  justify-content: space-between;
  align-items: flex-start;
  margin: 2rem auto;
  max-width: 95%;
}
.adv-card,
.disadv-card {
  flex: 1;
  padding: 1.5rem;
  border-radius: 12px;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.06);
  background: #fff;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.adv-card:hover,
.disadv-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.12);
}
/* 장점 카드 */
.adv-title {
  font-size: 2rem;
  color: #2e7d32;
  margin-bottom: 0.8rem;
}
.adv-intro {
  color: #555;
  margin-bottom: 1rem;
}
.adv-list {
  list-style: none;
  padding: 0;
}
.adv-list li {
  font-size: 1.1rem;
  font-weight: 600;
  margin: 0.5rem 0;
  padding-left: 1.5rem;
  position: relative;
  color: #333;
}
.adv-list li::before {
  content: "✔";
  position: absolute;
  left: 0;
  color: #2e7d32;
  font-weight: bold;
}
/* 단점 카드 */
.disadv-title {
  font-size: 2rem;
  color: #c62828;
  margin-bottom: 0.8rem;
  text-align: right;
}
.disadv-list {
  list-style: none;
  padding: 0;
}
.disadv-list li {
  font-size: 1.1rem;
  font-weight: 600;
  margin: 0.5rem 0;
  padding-right: 1.5rem;
  position: relative;
  color: #444;
  text-align: right;
}
.disadv-list li::after {
  content: "✖";
  position: absolute;
  right: 0;
  color: #c62828;
  font-weight: bold;
}
/* 반응형 */
@media (max-width: 768px) {
  .advantages-disadvantages {
    flex-direction: column;
  }
}
