body {
    background-color: #f8fbff;
}

#main {
    width: 1000px;
    padding-top: 0px;
    padding-bottom: 60px;
    margin: 0 auto;
}

main > h1 {
    font-size: 2.3rem;
    font-weight: 800;
    color: #1a4fa0;
    margin: 0 0 48px 0;
    letter-spacing: -1.5px;
    text-align: left;
}

#section {
    display: flex;
    justify-content: center;
    gap: 36px;
    background: transparent;
    box-shadow: none;
    border-radius: 0;
    margin-top: 48px;
    margin-bottom: 48px;
    padding-left: 20px;
    padding-right: 20px;
    padding: 0;
}

.section1 {
    height: 600px;
    align-items: center;
    justify-content: center;
}

.section-left {
  flex: 1 1 0;
}

.card-container {
  display: flex;
  gap: 30px;
  width: 100%;
}

.card {
    flex: 1 1 0;
    background: #fff;
    border-radius: 20px;
    box-shadow: 0 6px 32px rgba(30,80,180,0.10), 0 1.5px 6px rgba(30,80,180,0.04);
    padding: 30px 20px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    min-width: 0;
    margin: 0;
    transition: box-shadow 0.18s, transform 0.18s;
    border: 1.5px solid #eaf3ff;

    opacity: 0;
    transform: rotateY(120deg) scale(0.98);
    transition: opacity 0.7s cubic-bezier(.4,0,.2,1), transform 0.7s cubic-bezier(.4,0,.2,1);
    transform-origin: center center;
}
  
.card.visible {
    opacity: 1;
    transform: rotateY(0deg) scale(1);
} 

.card:hover {
  box-shadow: 0 12px 36px rgba(30,80,180,0.16), 0 2px 8px rgba(30,80,180,0.08);
  transform: translateY(-6px) scale(1.025);
  border-color: #b5c9e6;
}

.card-title {
  font-size: 1.22rem;
  font-weight: 800;
  color: #1a4fa0;
  margin-bottom: 18px;
  letter-spacing: -0.5px;
}

.card-content {
  font-size: 1.08rem;
  color: #222;
  line-height: 1.7;
  margin: 0;
}

.card-content ul {
  padding-left: 18px;
  margin: 0;
}

.card-content ul li {
  margin-bottom: 8px;
  font-size: 1.08rem;
}

@media (max-width: 900px) {
  #main {
    width: 100%;
    padding: 0 16px;
    padding-top: 70px;
    padding-bottom: 24px;
  }

  #section {
    flex-direction: column;
    gap: 0;
    margin-bottom: 24px;
    padding: 0;
  }

  .content-container {
    padding: 24px 16px;
    border-radius: 12px;
    margin-bottom: 24px;
  }

  .content-title {
    font-size: 1.4rem;
    margin-bottom: 16px;
  }

  .p-content {
    font-size: 1rem;
    line-height: 1.6;
  }

  .profile-list {
    gap: 16px;
    justify-content: center;
  }

  .profile-card {
    min-width: 140px;
    max-width: 160px;
    padding: 20px 16px;
  }

  .profile-name {
    font-size: 1.1rem;
  }

  .profile-role {
    font-size: 0.9rem;
  }

  .profile-img {
    width: 60px;
    height: 60px;
    margin-bottom: 12px;
  }

  #main-section {
    height: 300px;
    margin-bottom: 32px;
  }

  .main-title {
    font-size: 2rem;
    margin-top: 60px;
  }
}

@media (max-width: 480px) {
  #main {
    padding: 0 12px;
  }

  .content-container {
    padding: 20px 12px;
  }

  .content-title {
    font-size: 1.2rem;
  }

  .profile-card {
    min-width: 120px;
    max-width: 140px;
    padding: 16px 12px;
  }

  .profile-img {
    width: 50px;
    height: 50px;
  }

  #main-section {
    height: 250px;
  }

  .main-title {
    font-size: 1.8rem;
    margin-top: 40px;
  }
}

#main-section {
  height: 500px;
  background-image: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)),
  url('https://images.unsplash.com/photo-1644325349124-d1756b79dd42?q=80&w=1475&auto=format&fit=crop&ixlib=rb-4.1.0&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D');
  background-size: cover;
  background-position: center center;
  border-radius: 0px;
  margin-bottom: 48px;
  display: grid;
  align-items: center;
  justify-content: center;
  padding-top: 40px;
}

.main-title {
  color: #fff;
  font-size: 2.8rem;
  font-weight: 800;
  text-shadow: 0 4px 24px rgba(30,80,180,0.13), 0 1px 0 #fff;
  letter-spacing: -1.5px;
  margin-top: 100px;
}

.content-container {
    width: 100%;
    background: #fff;
    border-radius: 18px;
    box-shadow: 0 2px 12px rgba(30,80,180,0.07);
    padding: 40px 36px 32px 36px;
    margin-bottom: 36px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    padding-top: 40px;
}

.content-title {
  font-size: 1.8rem;
  font-weight: 700;
  color: #1a4fa0;
  margin-bottom: 18px;
  letter-spacing: -0.5px;
  text-align: center;
  margin-left: auto;
  margin-right: auto;
}

.p-content {
  font-size: 1.08rem;
  color: #222;
  line-height: 1.7;
  margin: 0;
}

.profile-list {
  display: flex;
  gap: 24px;
  margin-top: 18px;
  justify-content: flex-start;
  align-items: center;
  flex-wrap: wrap;
  margin-left: auto;
  margin-right: auto;
}

.profile-card {
    background: linear-gradient(135deg, #f8fbff 0%, #eaf3ff 100%);
    border-radius: 16px;
    box-shadow: 0 4px 16px rgba(30, 80, 180, 0.08);
    padding: 28px 24px;
    min-width: 180px;
    max-width: 220px;
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: box-shadow 0.3s, transform 0.3s;
    border: 1px solid rgba(30, 80, 180, 0.1);
}

.profile-card:hover {
    box-shadow: 0 8px 32px rgba(30, 80, 180, 0.15);
    transform: translateY(-6px) scale(1.05);
}

.profile-name {
    font-size: 1.2rem;
    font-weight: 700;
    color: #1a4fa0;
    margin-bottom: 8px;
    letter-spacing: -0.5px;
}

.profile-role {
    font-size: 1rem;
    color: #555;
    font-weight: 500;
}

.profile-img-container {
    position: relative;
    width: 80px;
    height: 80px;
    margin-bottom: 16px;
    cursor: pointer;
}

.profile-img {
    width: 100%;
    height: 100%;
    font-size: 80px;
    color: #1a4fa0;
    background: #eaf3ff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(30, 80, 180, 0.1);
    border: 3px solid #fff;
    transition: all 0.3s ease;
}

.profile-img-container:hover .profile-img {
    transform: scale(1.05);
    box-shadow: 0 6px 16px rgba(30, 80, 180, 0.15);
}

.profile-img-container input[type="file"] {
    display: none;
}

.profile-img-container .upload-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.profile-img-container:hover .upload-overlay {
    opacity: 1;
}

.profile-img-container .upload-overlay i {
    color: white;
    font-size: 24px;
}

.profile-img-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    border: 3px solid #fff;
    box-shadow: 0 4px 12px rgba(30, 80, 180, 0.1);
}

/* 편집 가능한 요소 스타일 */
.editable {
    position: relative;
}

/* 관리자 전용 편집 UI 스타일 */
.admin-editable {
    transition: background-color 0.2s;
}

.admin-editable:hover {
    background-color: rgba(0, 0, 0, 0.05);
    border-radius: 4px;
}

.admin-editable[contenteditable="true"] {
    outline: 2px solid #1976d2;
    padding: 5px;
    border-radius: 4px;
    background-color: rgba(25, 118, 210, 0.05);
}

/* 편집 컨트롤 스타일 */
.edit-controls {
    position: absolute;
    top: -40px;
    right: 0;
    display: flex;
    gap: 8px;
    background: white;
    padding: 8px;
    border-radius: 4px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    z-index: 100;
}

.edit-controls button {
    width: 32px;
    height: 32px;
    padding: 0;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.edit-controls button i {
    font-size: 14px;
}

.edit-controls .save-btn {
    background-color: #1976d2;
    color: white;
}

.edit-controls .save-btn:hover {
    background-color: #1565c0;
}

.edit-controls .cancel-btn {
    background-color: #f5f5f5;
    color: #333;
}

.edit-controls .cancel-btn:hover {
    background-color: #e0e0e0;
}

/* 알림 스타일 */
.notification {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    padding: 15px 25px;
    border-radius: 8px;
    color: white;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
    animation: fadeInOut 3s ease-in-out;
}

.notification.success {
    background-color: #4CAF50;
}

.notification.error {
    background-color: #f44336;
}

@keyframes fadeInOut {
    0% { opacity: 0; }
    10% { opacity: 1; }
    90% { opacity: 1; }
    100% { opacity: 0; }
}

.main-title.editable,
.content-title.editable {
    position: relative;
    transition: background-color 0.2s;
}

.main-title.editable:hover,
.content-title.editable:hover {
    background-color: rgba(0, 0, 0, 0.05);
    border-radius: 4px;
}

.main-title.editable[contenteditable="true"],
.content-title.editable[contenteditable="true"] {
    outline: 2px solid #1976d2;
    padding: 5px 10px;
    border-radius: 4px;
    background-color: rgba(25, 118, 210, 0.05);
}

.main-title.editable .edit-controls,
.content-title.editable .edit-controls {
    top: -40px;
    right: 0;
}

/* 프로필 이미지 편집 스타일 */
.profile-img-container {
    position: relative;
}

.admin-editable.profile-img-container {
    cursor: pointer;
}

.profile-img-container .upload-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.admin-editable.profile-img-container:hover .upload-overlay {
    opacity: 1;
}

.admin-editable.profile-img-container .upload-overlay i {
    color: white;
    font-size: 24px;
}

.admin-editable.profile-img-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    border: 3px solid #fff;
    box-shadow: 0 4px 12px rgba(30, 80, 180, 0.1);
} 