/* 전체 스타일 */
body,
html {
  margin: 0;
  padding: 0;
  font-family: 'Roboto', 'Noto Sans KR', sans-serif;
  background-attachment: fixed;
  background-size: cover;
  color: #333;
}

body {
  background: linear-gradient(to bottom, #003366, #666666, #CC9900);
  background-attachment: fixed;
  background-size: cover;
}


/* 헤더 스타일 */
header {
  text-align: center;
  padding: 20px 10px;
  background-color: #ffffff;
  border-bottom: 2px solid #e0e0e0;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

header h1 {
  font-size: 24px;
  font-weight: 700;
  margin: 0;
}

header a {
  text-decoration: none;
  color: #007acc;
  font-size: 14px;
}

header img {
  width: 20px;
  height: 20px;
  margin-left: 5px;
}

/* 카드 컨테이너 */
.container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  padding: 20px;
  max-width: 1200px;
  margin: 0 auto;
}

/* 카드 스타일 */
.card {
  border-radius: 8px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  text-align: center;
  transition: transform 0.2s, box-shadow 0.2s;
  color: #333;
  overflow: hidden;
  background-color: #ffffff;
  justify-content: space-between;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 10px rgba(0, 0, 0, 0.2);
}

/* 로고 컨테이너 */
.logo-container {
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  height: auto;
  /* 높이는 JS에서 동기화 */
}

/* 로고 이미지 */
.logo-container img {
  max-width: 100px;
  height: auto;
  object-fit: contain;
}

/* 슬로건 */
.slogan-container {
  text-align: center;
  overflow: hidden;
  height: auto;
  /* 높이는 JS에서 동기화 */
}

.slogan-container p {
  font-size: 16px;
  font-weight: 400;
  color: #555;
  line-height: 1.4;
  text-align: center;
}

/* 말씀 */
.bible-container {
  text-align: left;
  overflow: hidden;
  height: auto;
  /* 높이는 JS에서 동기화 */
}

.bible-container blockquote {
  font-size: 14px;
  font-style: italic;
  color: #555;
  line-height: 1.6;
  border-left: 4px solid #007acc;
  padding-left: 15px;
  margin: 0;
  white-space: pre-line;
  /* 개행 허용 */
}

/* 학번 스타일 */
.card h2 {
  font-size: 20px;
  font-weight: 600;
  margin: 0 0 10px;
}

/* 세대명 스타일 */
.card h3 {
  font-size: 18px;
  font-weight: 500;
  margin: 0 0 20px;
}

/* 성경 구절의 참고 구절 개행 처리 */
.bible-container blockquote::after {
  content: attr(data-reference);
  display: block;
  /* 블록으로 표시해 항상 개행 */
  font-size: 13px;
  font-weight: bold;
  margin-top: 5px;
  color: #007acc;
  text-align: right;
}

/* 반응형 스타일 */
@media screen and (max-width: 768px) {
  .container {
    grid-template-columns: 1fr;
    gap: 15px;
    padding: 10px;
  }

  .card {
    padding: 15px;
  }

  .logo-container img {
    max-width: 80px;
    /* 모바일에서 로고 크기 조정 */
  }

  .slogan-container p {
    font-size: 14px;
  }

  .bible-container blockquote {
    font-size: 13px;
  }

  .card h2 {
    font-size: 18px;
  }

  .card h3 {
    font-size: 16px;
  }
}