/* Greeting Page Styles */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Noto Sans KR", system-ui, sans-serif;
  background-color: #fafafa;
  color: #2a2a2a;
  line-height: 1.75;
  font-size: 15px;
}

.page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

main {
  flex: 1;
  margin-top: 70px;
}

.greeting-section {
  max-width: 1000px;
  margin: 0 auto;
  padding: 70px 40px 90px;
  background: #ffffff;
  border-radius: 24px;
  box-shadow: 0 4px 24px rgba(0,0,0,0.06);
  margin-top: 20px;
  margin-bottom: 20px;
}

.greeting-container {
  position: relative;
}

/* Decorative gradient line */
.gradient-line {
  width: 100%;
  height: 5px;
  background: linear-gradient(to right, #7c3aed 0%, #a855f7 25%, #ec4899 50%, #f472b6 75%, #a855f7 100%);
  margin-bottom: 45px;
  border-radius: 3px;
  box-shadow: 0 2px 12px rgba(124, 58, 237, 0.3);
  background-size: 200% 100%;
  animation: gradientShift 4s ease infinite;
}

@keyframes gradientShift {
  0%, 100% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
}

/* Title */
.greeting-title {
  font-size: 28px;
  font-weight: 700;
  text-align: center;
  color: #1a1a1a;
  margin-bottom: 45px;
  line-height: 1.5;
  letter-spacing: -0.02em;
}

/* Artwork Image */
.greeting-artwork {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 50px;
  width: 100%;
}

.artwork-image {
  width: 100%;
  max-width: 400px;
  height: auto;
  border-radius: 0;
  box-shadow: none;
  object-fit: contain;
  display: block;
  background: transparent;
}

/* Content wrapper */
.greeting-content {
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 40px;
  margin-bottom: 60px;
}

/* Text wrapper */
.greeting-text-wrapper {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.greeting-subtitle {
  font-size: 18px;
  font-weight: 600;
  color: #2a2a2a;
  text-align: center;
  margin-bottom: 20px;
  letter-spacing: 0.5px;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.greeting-subtitle.animate {
  opacity: 1;
  transform: translateY(0);
}

.greeting-quote {
  font-size: 18px;
  font-weight: 500;
  font-style: italic;
  color: #7c3aed;
  text-align: center;
  margin-bottom: 32px;
  line-height: 1.8;
  padding: 0 20px;
  text-shadow: 0 1px 3px rgba(124, 58, 237, 0.1);
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.greeting-quote.animate {
  opacity: 1;
  transform: translateY(0);
}

.greeting-section-title {
  font-size: 16px;
  font-weight: 600;
  color: #1a1a1a;
  margin-top: 30px;
  margin-bottom: 15px;
  line-height: 1.7;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.greeting-section-title.animate {
  opacity: 1;
  transform: translateY(0);
}

.greeting-paragraph {
  font-size: 15px;
  line-height: 1.9;
  color: #4a4a4a;
  text-align: justify;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.greeting-paragraph.animate {
  opacity: 1;
  transform: translateY(0);
}

.divider-line {
  width: 100%;
  height: 2px;
  background: linear-gradient(to right, transparent, #e0e0e0, transparent);
  margin: 12px 0;
}

/* Photo */
.greeting-photo {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  padding-top: 20px;
}

.president-image {
  width: 100%;
  max-width: 280px;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  object-fit: contain;
  display: block;
}

/* Placeholder for image if not available */
.president-image:not([src]),
.president-image[src=""] {
  background: linear-gradient(135deg, #f5f5f5 0%, #e0e0e0 100%);
  display: flex;
  align-items: center;
  justify-content: center;
}

.president-image:not([src])::after,
.president-image[src=""]::after {
  content: "이미지 준비 중";
  color: #999;
  font-size: 14px;
}

/* Signature */
.greeting-signature {
  text-align: right;
  margin-top: 60px;
  padding-top: 40px;
  border-top: 1px solid #e0e0e0;
}

.signature-date {
  font-size: 14px;
  color: #666666;
  margin-bottom: 20px;
}

.signature-title {
  font-size: 14px;
  color: #4a4a4a;
  line-height: 1.6;
  margin-bottom: 20px;
}

.signature-name {
  font-size: 28px;
  font-weight: 600;
  color: #1a1a1a;
  font-family: 'Noto Sans KR', sans-serif;
  letter-spacing: 0.05em;
}

/* Responsive Design */
@media (max-width: 860px) {
  .greeting-section {
    padding: 40px 24px 60px;
  }
  
  .greeting-title {
    font-size: 20px;
    margin-bottom: 30px;
  }
  
  .greeting-artwork {
    margin-bottom: 40px;
  }
  
  .artwork-image {
    max-width: 100%;
    border-radius: 0;
    box-shadow: none;
  }
  
  .greeting-content {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  
  .greeting-photo {
    justify-content: center;
    padding-top: 0;
  }
  
  .president-image {
    max-width: 240px;
  }
  
  .greeting-signature {
    text-align: center;
    margin-top: 40px;
  }
}

@media (max-width: 480px) {
  .greeting-section {
    padding: 30px 16px 50px;
  }
  
  .greeting-title {
    font-size: 18px;
    line-height: 1.5;
    margin-bottom: 24px;
  }
  
  .greeting-artwork {
    margin-bottom: 30px;
  }
  
  .artwork-image {
    max-width: 100%;
    border-radius: 0;
    box-shadow: none;
  }
  
  .greeting-subtitle {
    font-size: 16px;
    margin-bottom: 15px;
  }
  
  .greeting-quote {
    font-size: 15px;
    margin-bottom: 20px;
    padding: 0 10px;
  }
  
  .greeting-section-title {
    font-size: 15px;
    margin-top: 25px;
    margin-bottom: 12px;
  }
  
  .greeting-paragraph {
    font-size: 14px;
    line-height: 1.8;
  }
  
  .divider-line {
    margin: 8px 0;
  }
  
  .president-image {
    max-width: 200px;
  }
  
  .greeting-signature {
    margin-top: 30px;
    padding-top: 30px;
  }
  
  .signature-name {
    font-size: 22px;
  }
  
  .signature-date,
  .signature-title {
    font-size: 12px;
  }
}

/* Congratulatory Messages Section */
.congratulatory-section {
  max-width: 1200px;
  margin: 0 auto;
  padding: 80px 40px;
  background: #f8f8f8;
}

.congratulatory-container {
  position: relative;
}

.congratulatory-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  margin-top: 40px;
}

.congratulatory-card {
  background: #ffffff;
  border-radius: 12px;
  padding: 40px 32px 32px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.08);
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.congratulatory-header {
  font-size: 16px;
  font-weight: 600;
  color: #1a1a1a;
  text-align: center;
  line-height: 1.6;
  margin-bottom: 8px;
  padding-bottom: 16px;
  border-bottom: 2px solid #e0e0e0;
}

.congratulatory-photo {
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 0 auto;
  width: 200px;
  height: 200px;
  border-radius: 50%;
  overflow: hidden;
  background: linear-gradient(135deg, #e0e0e0 0%, #f5f5f5 100%);
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.congratulatory-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.congratulatory-image:not([src]),
.congratulatory-image[src=""] {
  background: linear-gradient(135deg, #f5f5f5 0%, #e0e0e0 100%);
  display: flex;
  align-items: center;
  justify-content: center;
}

.congratulatory-image:not([src])::after,
.congratulatory-image[src=""]::after {
  content: "이미지 준비 중";
  color: #999;
  font-size: 12px;
}

.congratulatory-text {
  display: flex;
  flex-direction: column;
  gap: 16px;
  flex: 1;
}

.congratulatory-paragraph {
  font-size: 14px;
  line-height: 1.9;
  color: #4a4a4a;
  text-align: justify;
}

.congratulatory-signature {
  text-align: center;
  margin-top: 24px;
  padding-top: 24px;
  border-top: 1px solid #e0e0e0;
}

.congratulatory-date {
  font-size: 13px;
  color: #666666;
  margin-bottom: 12px;
}

.congratulatory-title {
  font-size: 13px;
  color: #4a4a4a;
  line-height: 1.6;
  margin-bottom: 16px;
}

.congratulatory-name {
  font-size: 24px;
  font-weight: 600;
  color: #1a1a1a;
  font-family: 'Noto Sans KR', sans-serif;
  letter-spacing: 0.05em;
}

/* Responsive Design for Congratulatory Section */
@media (max-width: 960px) {
  .congratulatory-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  
  .congratulatory-section {
    padding: 60px 24px;
  }
}

@media (max-width: 720px) {
  .congratulatory-section {
    padding: 50px 20px;
  }
  
  .congratulatory-card {
    padding: 32px 24px 24px;
  }
  
  .congratulatory-header {
    font-size: 15px;
    padding-bottom: 14px;
    margin-bottom: 20px;
  }
  
  .congratulatory-photo {
    width: 180px;
    height: 180px;
  }
  
  .congratulatory-paragraph {
    font-size: 14px;
    line-height: 1.8;
  }
}

@media (max-width: 480px) {
  .congratulatory-section {
    padding: 40px 16px;
  }
  
  .congratulatory-card {
    padding: 28px 20px 20px;
    border-radius: 12px;
  }
  
  .congratulatory-header {
    font-size: 14px;
    padding-bottom: 12px;
    margin-bottom: 18px;
  }
  
  .congratulatory-photo {
    width: 160px;
    height: 160px;
  }
  
  .congratulatory-paragraph {
    font-size: 13px;
    line-height: 1.7;
    margin-bottom: 12px;
  }
  
  .congratulatory-name {
    font-size: 20px;
  }
  
  .congratulatory-date,
  .congratulatory-title {
    font-size: 12px;
  }
}

