*{box-sizing:border-box} body{margin:0;background:#fff;color:#1f2937;font-family:Apple SD Gothic Neo,Malgun Gothic,Arial,sans-serif}.hero{text-align:center;padding:28px 16px 16px}.logo{width:min(520px,90vw);height:auto;display:block;margin:0 auto 8px}.hero h1{font-size:34px;margin:8px 0 24px;color:#111}nav{display:flex;gap:26px;justify-content:center;flex-wrap:wrap}.nav{border:0;background:white;color:#6b7280;font-weight:700;padding:10px 14px;cursor:pointer}.nav.active{color:#0f766e;border-bottom:3px solid #0f766e}.wrap{max-width:1180px;margin:0 auto;padding:10px 18px 40px}.calendar-card,.album-card{border:1px solid #e5e7eb;border-radius:10px;background:#fff;margin-top:22px;box-shadow:0 2px 12px rgba(0,0,0,.03)}.calendar-card{padding:18px}.month-bar{display:flex;align-items:center;justify-content:space-between;gap:12px}.month-bar h2{font-size:30px;margin:0}.month-bar button,.album-head button,.upload-box button{border:1px solid #dbe3e8;border-radius:8px;background:#fff;padding:10px 16px;font-weight:700;cursor:pointer}.calendar{display:grid;grid-template-columns:repeat(7,1fr);border:1px solid #e5e7eb;border-radius:8px;overflow:hidden;margin-top:16px}.day-name,.day{min-height:78px;border-right:1px solid #e5e7eb;border-bottom:1px solid #e5e7eb;padding:12px;text-align:center;font-weight:700}.day-name{min-height:38px;background:#fafafa}.day:nth-child(7n),.day-name:nth-child(7n){border-right:0}.sun{color:#dc2626}.sat{color:#2563eb}.day{cursor:pointer;position:relative;background:#fff}.day:hover,.day.selected{background:#ecfdf5}.empty{background:#fafafa;cursor:default}.photo-badge{display:block;margin-top:10px;color:#0f766e;font-size:13px}.hint{text-align:center;color:#6b7280}.album-card{padding:16px}.album-head{display:flex;justify-content:space-between;align-items:center;border-bottom:1px solid #eef2f7;padding-bottom:14px}.album-head>div{display:flex;align-items:center;gap:12px}.album-head h2{margin:0;font-size:26px}.back{font-size:24px;border:0!important}.album-head #toggleUpload,.upload-box button{background:#0f766e;color:white;border-color:#0f766e}.album-body{display:grid;grid-template-columns:260px 1fr;gap:28px;padding:18px 0}.upload-box{border:1px solid #e5e7eb;border-radius:8px;padding:18px;height:max-content}.upload-box h3{margin-top:0}.upload-box label{display:block;margin:14px 0 7px;font-weight:700}.upload-box input,.upload-box textarea{width:100%;border:1px solid #dbe3e8;border-radius:8px;padding:11px;font-family:inherit}.upload-box textarea{height:86px;resize:vertical}.upload-box button{width:100%;margin-top:16px}.gallery{display:grid;grid-template-columns:repeat(4,1fr);gap:16px}.photo-card{border:1px solid #e5e7eb;border-radius:8px;overflow:hidden;background:white}.photo-card img{width:100%;height:150px;object-fit:cover;display:block;cursor:pointer}.photo-info{padding:10px}.photo-info h4{margin:0 0 6px}.photo-info p{margin:0 0 8px;color:#4b5563;font-size:14px}.meta{font-size:12px;color:#6b7280;display:flex;gap:8px;flex-wrap:wrap}.delete{margin-top:8px;border:0;background:#fee2e2;color:#991b1b;padding:6px 8px;border-radius:6px;cursor:pointer}.empty-msg{color:#6b7280;text-align:center;padding:60px 0}.lightbox{display:none;position:fixed;inset:0;background:rgba(0,0,0,.82);z-index:10;align-items:center;justify-content:center;flex-direction:column;padding:24px}.lightbox.show{display:flex}.lightbox img{max-width:92vw;max-height:72vh;border-radius:10px}.lightbox button{position:absolute;top:22px;right:30px;font-size:42px;background:transparent;color:white;border:0;cursor:pointer}.lightbox div{color:white;margin-top:16px;text-align:center;max-width:720px}footer{text-align:center;color:#6b7280;padding:30px}@media(max-width:900px){.album-body{grid-template-columns:1fr}.gallery{grid-template-columns:repeat(2,1fr)}.day{min-height:64px;padding:8px}.month-bar h2{font-size:24px}.hero h1{font-size:28px}}@media(max-width:520px){.gallery{grid-template-columns:1fr 1fr}.photo-card img{height:120px}.month-bar button{padding:8px}.album-head{align-items:flex-start;gap:10px;flex-direction:column}}
.contact-card{border:1px solid #e5e7eb;border-radius:10px;background:#fff;margin-top:22px;box-shadow:0 2px 12px rgba(0,0,0,.03);padding:24px;text-align:center}.contact-card h2{margin-top:0}.contact-card p{color:#4b5563}
.day{border:0;font:inherit;text-align:center}.small-note{font-size:12px;color:#6b7280;line-height:1.4;margin:10px 0 0}


.comments{margin-top:10px;border-top:1px solid #eef2f7;padding-top:10px}
.comments b{font-size:13px;color:#374151}
.comment-list{margin:6px 0}
.comment-item{font-size:12px;color:#4b5563;margin:4px 0;line-height:1.35}
.comment-name{font-weight:700;color:#0f766e;margin-right:4px}
.comment-empty{font-size:12px;color:#9ca3af;margin:4px 0}
.comment-form{display:grid;grid-template-columns:70px 1fr 52px;gap:6px;margin-top:8px}
.comment-form input{border:1px solid #dbe3e8;border-radius:6px;padding:7px;font-size:12px;min-width:0}
.comment-form button{border:0;background:#0f766e;color:white;border-radius:6px;font-size:12px;font-weight:700;cursor:pointer}
@media(max-width:520px){.comment-form{grid-template-columns:1fr}.comment-form button{padding:8px}}


/* 앨범 슬라이더 기능 */
.thumb-wrap{position:relative;overflow:hidden;background:#f3f4f6}
.thumb-wrap img{width:100%;height:150px;object-fit:cover;display:block;cursor:pointer;transition:transform .2s ease}
.photo-card:hover .thumb-wrap img{transform:scale(1.03)}
.album-count{position:absolute;right:8px;bottom:8px;background:rgba(0,0,0,.72);color:#fff;border-radius:999px;padding:4px 9px;font-size:12px;font-weight:700}
.open-album{width:100%;margin-top:10px;border:0;background:#0f766e;color:white;padding:8px 10px;border-radius:7px;font-weight:700;cursor:pointer}
#slideCounter{color:white;margin-top:10px;font-size:15px;font-weight:800;background:rgba(0,0,0,.35);padding:4px 12px;border-radius:999px}
.lightbox{gap:0}
.lightbox .slide-btn{position:absolute;top:50%;transform:translateY(-50%);font-size:70px;line-height:1;background:rgba(255,255,255,.12);color:#fff;border:0;border-radius:12px;width:58px;height:86px;display:flex;align-items:center;justify-content:center;cursor:pointer;z-index:11}
.lightbox .slide-btn:hover{background:rgba(255,255,255,.22)}
.lightbox .slide-btn.prev{left:24px;right:auto}
.lightbox .slide-btn.next{right:24px;left:auto}
#closeLightbox{z-index:12}
@media(max-width:700px){.lightbox .slide-btn{font-size:48px;width:44px;height:64px}.lightbox .slide-btn.prev{left:8px}.lightbox .slide-btn.next{right:8px}.lightbox img{max-width:94vw;max-height:66vh}.thumb-wrap img{height:120px}}

/* 반별 사진첩 */
.class-card{border:1px solid #e5e7eb;border-radius:10px;background:#fff;margin-top:22px;box-shadow:0 2px 12px rgba(0,0,0,.03);padding:22px}
.class-card h2{margin:0;text-align:center;font-size:28px;color:#111827}
.class-list{display:grid;grid-template-columns:repeat(4,1fr);gap:12px;margin:20px 0 18px}
.class-btn{border:1px solid #dbe3e8;background:#fff;border-radius:12px;padding:16px 10px;cursor:pointer;font-weight:800;color:#374151;display:flex;flex-direction:column;gap:6px;align-items:center;justify-content:center;min-height:74px}
.class-btn:hover,.class-btn.active{background:#ecfdf5;border-color:#0f766e;color:#0f766e}
.class-btn small{font-size:12px;color:#6b7280;font-weight:700}
.class-gallery-head{display:flex;justify-content:space-between;align-items:center;border-top:1px solid #eef2f7;padding-top:16px;margin-top:12px}
.class-gallery-head h3{margin:0;font-size:22px}
.class-tag{display:inline-block;background:#ecfdf5;color:#0f766e;border-radius:999px;padding:3px 8px;font-size:12px;font-weight:800;margin-bottom:8px}
.upload-box select{width:100%;border:1px solid #dbe3e8;border-radius:8px;padding:11px;font-family:inherit;background:#fff}
@media(max-width:900px){.class-list{grid-template-columns:repeat(2,1fr)}}
@media(max-width:520px){.class-list{grid-template-columns:1fr 1fr}.class-gallery-head{align-items:flex-start;gap:8px;flex-direction:column}}

.class-hidden{display:none}

.card-actions{
  display:flex;
  gap:8px;
  margin-top:10px;
}
.card-actions button{
  flex:1;
}
.edit{
  border:0;
  border-radius:12px;
  padding:10px 12px;
  font-weight:700;
  cursor:pointer;
  background:#eef7f2;
  color:#1f7a4d;
}

/* 반별 사진첩 카테고리 추가 */
.add-class-box{
  display:flex;
  gap:10px;
  max-width:520px;
  margin:18px auto 6px;
}
.add-class-box input{
  flex:1;
  border:1px solid #dbe3e8;
  border-radius:10px;
  padding:12px 14px;
  font-family:inherit;
}
.add-class-box button{
  border:0;
  background:#0f766e;
  color:white;
  border-radius:10px;
  padding:12px 16px;
  font-weight:800;
  cursor:pointer;
}
@media(max-width:520px){.add-class-box{flex-direction:column}.add-class-box button{width:100%}}


/* 사진이 등록된 날짜는 연한 파란색으로 표시 */
.day.has-photos {
  background: #eaf4ff;
}

.day.has-photos:hover,
.day.has-photos.selected {
  background: #d9ecff;
}

.day.has-photos .photo-badge {
  color: #2563eb;
}


/* 오늘의 말씀 */
.word-card {
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  background: #fff;
  margin-top: 22px;
  padding: 20px;
  box-shadow: 0 2px 12px rgba(0,0,0,.03);
}

.word-head h2 {
  margin: 0 0 4px;
  font-size: 30px;
}

.word-layout {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 28px;
  margin-top: 18px;
}

.word-upload-box textarea {
  min-height: 120px;
}

.daily-word-area {
  min-width: 0;
}

.daily-word-card {
  border-radius: 22px;
  padding: 34px 28px;
  background: linear-gradient(135deg, #eaf4ff, #ffffff 55%, #ecfdf5);
  border: 1px solid #dbeafe;
  box-shadow: 0 16px 40px rgba(15, 118, 110, .10);
  min-height: 260px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.daily-word-card .word-card-label {
  display: inline-flex;
  width: max-content;
  padding: 7px 12px;
  border-radius: 999px;
  background: #0f766e;
  color: white;
  font-weight: 800;
  font-size: 13px;
  margin-bottom: 16px;
}

.daily-word-card .word-card-date {
  color: #64748b;
  font-weight: 700;
  margin-bottom: 10px;
}

.daily-word-card h3 {
  margin: 0 0 14px;
  font-size: 26px;
  color: #0f766e;
}

.daily-word-card p {
  margin: 0;
  font-size: 28px;
  line-height: 1.55;
  font-weight: 800;
  color: #111827;
  word-break: keep-all;
}

.word-card-footer {
  margin-top: 24px;
  color: #64748b;
  font-size: 13px;
}

.empty-word-card {
  align-items: center;
  text-align: center;
  color: #64748b;
  font-weight: 700;
}

.word-comments {
  margin-top: 18px;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  padding: 16px;
  background: #fff;
}

.word-comments h3 {
  margin: 0 0 12px;
}

.word-comment-list {
  display: grid;
  gap: 8px;
  margin-bottom: 12px;
}

.word-comment-item {
  border-radius: 10px;
  background: #f8fafc;
  padding: 10px 12px;
  display: grid;
  gap: 4px;
}

.word-comment-item small {
  color: #94a3b8;
}

.word-comment-form {
  display: grid;
  grid-template-columns: 120px 1fr auto;
  gap: 8px;
}

.word-comment-form input {
  border: 1px solid #dbe3e8;
  border-radius: 8px;
  padding: 10px;
  font-family: inherit;
}

.word-comment-form button {
  border: 0;
  border-radius: 8px;
  background: #0f766e;
  color: #fff;
  font-weight: 800;
  padding: 0 16px;
  cursor: pointer;
}

@media(max-width:900px){
  .word-layout{grid-template-columns:1fr}
  .daily-word-card p{font-size:24px}
  .word-comment-form{grid-template-columns:1fr}
  .word-comment-form button{padding:12px}
}


/* 교회소식 */
.church-news-card {
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  background: #fff;
  margin-top: 22px;
  padding: 20px;
  box-shadow: 0 2px 12px rgba(0,0,0,.03);
}

.church-news-head {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: center;
}

.church-news-head h2 {
  margin: 0 0 4px;
  font-size: 30px;
}

.church-news-head button {
  border: 1px solid #0f766e;
  border-radius: 8px;
  background: #0f766e;
  color: white;
  font-weight: 800;
  padding: 10px 16px;
  cursor: pointer;
  white-space: nowrap;
}

.news-upload-box {
  max-width: 560px;
  margin: 16px auto 20px;
}

.news-form-hidden {
  display: none;
}

.church-news-list {
  display: grid;
  gap: 14px;
  margin-top: 16px;
}

.news-card-item {
  border: 1px solid #e5e7eb;
  border-radius: 14px;
  padding: 18px;
  background: #f8fafc;
}

.news-card-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.news-badge {
  display: inline-flex;
  padding: 6px 10px;
  border-radius: 999px;
  background: #eaf4ff;
  color: #2563eb;
  font-weight: 900;
  font-size: 13px;
}

.news-card-item h3 {
  margin: 12px 0 8px;
  font-size: 22px;
}

.news-card-item p {
  margin: 0 0 12px;
  line-height: 1.65;
  color: #374151;
  white-space: pre-line;
}

.news-comments {
  margin-top: 14px;
}

@media(max-width:700px){
  .church-news-head{align-items:flex-start;flex-direction:column}
  .church-news-head button{width:100%}
}


/* 말씀 관리자 입력창 */
.word-admin-hidden {
  display: none;
}

.word-admin-bottom {
  margin-top: 22px;
  text-align: center;
}

.word-admin-bottom button {
  border: 1px solid #dbe3e8;
  border-radius: 999px;
  background: #ffffff;
  color: #475569;
  font-weight: 800;
  padding: 11px 18px;
  cursor: pointer;
}

.word-admin-bottom button:hover {
  background: #f8fafc;
  color: #0f766e;
  border-color: #0f766e;
}

.news-delete {
  margin-top: 10px;
}


/* 13기억절 */
.memory-card, .sermon-card {
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  background: #fff;
  margin-top: 22px;
  padding: 20px;
  box-shadow: 0 2px 12px rgba(0,0,0,.03);
}

.memory-head h2, .sermon-card h2 {
  margin: 0 0 4px;
  font-size: 30px;
}

.memory-buttons {
  display: grid;
  grid-template-columns: repeat(13, 1fr);
  gap: 8px;
  margin: 18px 0;
}

.memory-btn {
  border: 1px solid #dbe3e8;
  border-radius: 999px;
  background: #fff;
  padding: 10px 8px;
  font-weight: 900;
  cursor: pointer;
}

.memory-btn.active, .memory-btn:hover {
  background: #0f766e;
  border-color: #0f766e;
  color: #fff;
}

.memory-verse-card {
  border-radius: 22px;
  padding: 34px 28px;
  background: linear-gradient(135deg, #eaf4ff, #ffffff 58%, #ecfdf5);
  border: 1px solid #dbeafe;
  box-shadow: 0 16px 40px rgba(15, 118, 110, .10);
  min-height: 240px;
  text-align: center;
}

.memory-label {
  display: inline-flex;
  padding: 7px 12px;
  border-radius: 999px;
  background: #0f766e;
  color: white;
  font-weight: 900;
  margin-bottom: 16px;
}

.memory-verse-card h3 {
  margin: 0 0 14px;
  font-size: 25px;
  color: #0f766e;
}

.memory-verse-card p {
  margin: 0 auto;
  max-width: 820px;
  font-size: 28px;
  line-height: 1.55;
  font-weight: 900;
  color: #111827;
  word-break: keep-all;
}

.memory-verse-card small {
  display: block;
  margin-top: 18px;
  color: #64748b;
}

.memory-admin-box {
  max-width: 560px;
  margin: 18px auto 0;
}

/* 설교집 */
.sermon-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-top: 18px;
}

.sermon-card-item {
  border: 1px solid #e5e7eb;
  border-radius: 14px;
  overflow: hidden;
  background: #fff;
  cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease;
}

.sermon-card-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(15, 23, 42, .10);
}

.sermon-thumb {
  width: 100%;
  aspect-ratio: 16 / 9;
  border: 0;
  padding: 0;
  background: #e5e7eb;
  position: relative;
  cursor: pointer;
  display: block;
}

.sermon-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.play-mark {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%,-50%);
  background: rgba(0,0,0,.72);
  color: #fff;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 22px;
}

.sermon-no-thumb {
  height: 100%;
  display: grid;
  place-items: center;
  font-weight: 900;
  color: #475569;
}

.sermon-info {
  padding: 14px;
}

.sermon-info h3 {
  margin: 0 0 8px;
  font-size: 18px;
}

.sermon-info p {
  margin: 0;
  color: #64748b;
}

@media(max-width:900px){
  .memory-buttons{grid-template-columns: repeat(4, 1fr)}
  .memory-verse-card p{font-size:24px}
  .sermon-list{grid-template-columns: repeat(2, 1fr)}
}
@media(max-width:520px){
  .sermon-list{grid-template-columns: 1fr}
}


/* 52기 기억절 세부 버튼 */
.verse-mini-list {
  display: grid;
  grid-template-columns: repeat(13, 1fr);
  gap: 7px;
  margin: 8px auto 22px;
  max-width: 780px;
}

.verse-mini-btn {
  border: 1px solid #dbe3e8;
  border-radius: 999px;
  background: #fff;
  color: #334155;
  font-weight: 900;
  padding: 8px 6px;
  cursor: pointer;
}

.verse-mini-btn.active,
.verse-mini-btn:hover {
  background: #2563eb;
  border-color: #2563eb;
  color: #fff;
}

@media(max-width:900px){
  .memory-buttons{grid-template-columns: repeat(6, 1fr)}
  .verse-mini-list{grid-template-columns: repeat(4, 1fr)}
}
@media(max-width:520px){
  .memory-buttons{grid-template-columns: repeat(4, 1fr)}
}


/* 홈 최근 교회소식 배너 */
.latest-news-banner {
  display: flex;
  align-items: center;
  gap: 14px;
  border: 1px solid #dbeafe;
  background: linear-gradient(135deg, #eaf4ff, #ffffff 65%, #ecfdf5);
  border-radius: 16px;
  padding: 16px 18px;
  margin: 10px 0 18px;
  cursor: pointer;
  box-shadow: 0 8px 24px rgba(15, 118, 110, .08);
  transition: transform .15s ease, box-shadow .15s ease;
}

.latest-news-banner:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 30px rgba(15, 118, 110, .12);
}

.latest-news-icon {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: #0f766e;
  color: white;
  font-size: 22px;
  flex: 0 0 auto;
}

.latest-news-content {
  display: grid;
  gap: 4px;
  min-width: 0;
  flex: 1;
}

.latest-news-content strong {
  color: #0f766e;
  font-size: 14px;
}

.latest-news-content span {
  color: #111827;
  font-weight: 900;
  font-size: 18px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.latest-news-arrow {
  color: #0f766e;
  font-size: 34px;
  font-weight: 300;
}

.latest-news-banner.empty {
  opacity: .75;
}

@media(max-width:520px){
  .latest-news-banner{padding:14px}
  .latest-news-content span{font-size:16px}
}

.latest-news-content small {
  color: #64748b;
  font-weight: 600;
  font-size: 14px;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.sermon-actions {
  margin-top: 10px;
}
.sermon-actions button {
  margin-right: 6px;
}


/* 게시판 */
.board-card {
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  background: #fff;
  margin-top: 22px;
  padding: 20px;
  box-shadow: 0 2px 12px rgba(0,0,0,.03);
}

.board-list {
  display: grid;
  gap: 16px;
  margin-top: 18px;
}

.board-post-card {
  border: 1px solid #e5e7eb;
  border-radius: 16px;
  background: #fff;
  padding: 18px;
  box-shadow: 0 3px 16px rgba(0,0,0,.04);
}

.board-post-head h3 {
  margin: 0 0 8px;
  font-size: 22px;
}

.board-post-content {
  white-space: pre-line;
  line-height: 1.7;
  color: #374151;
  margin: 14px 0;
}

.board-photo-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin: 14px 0;
}

.board-photo-grid img {
  width: 100%;
  height: 130px;
  object-fit: cover;
  border-radius: 10px;
  cursor: pointer;
  border: 1px solid #e5e7eb;
}

.board-actions {
  margin-top: 10px;
}

.board-comments {
  margin-top: 16px;
}

@media(max-width:900px){
  .board-photo-grid{grid-template-columns: repeat(2, 1fr)}
}
@media(max-width:520px){
  .board-photo-grid img{height:110px}
}


/* 상단 메뉴 글자/아이콘 크게 */
header nav .nav,
nav .nav {
  font-size: 20px !important;
  font-weight: 800 !important;
  padding: 14px 18px !important;
}

@media (max-width: 768px){
  header nav .nav,
  nav .nav {
    font-size: 18px !important;
    padding: 12px 14px !important;
  }
}


/* 참여마당 목록형 보기 */
.board-list-item {
  border: 1px solid #e5e7eb;
  border-radius: 14px;
  background: #fff;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(0,0,0,.03);
}

.board-title-button {
  width: 100%;
  border: 0;
  background: #fff;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  align-items: center;
  padding: 18px;
  cursor: pointer;
  text-align: left;
}

.board-title-button:hover {
  background: #f8fafc;
}

.board-list-title {
  font-size: 20px;
  font-weight: 900;
  color: #111827;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.board-list-writer {
  color: #64748b;
  font-weight: 800;
  white-space: nowrap;
}

.board-list-item.open .board-title-button {
  border-bottom: 1px solid #e5e7eb;
  background: #f8fafc;
}

.board-detail {
  padding: 0;
}

.board-post-detail-card {
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

@media(max-width:640px){
  .board-title-button {
    grid-template-columns: 1fr;
    gap: 6px;
  }
  .board-list-title {
    font-size: 18px;
  }
}


/* 바이블가이드 바로가기 */
.guide-links {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 14px;
  margin-top: 18px;
}

.guide-btn {
  text-decoration: none;
  border-radius: 16px;
  background: linear-gradient(135deg, #0f766e, #2563eb);
  color: #fff;
  font-weight: 900;
  font-size: 19px;
  text-align: center;
  padding: 20px 14px;
  box-shadow: 0 8px 24px rgba(15, 118, 110, .15);
}

.guide-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 28px rgba(15, 118, 110, .22);
}


/* 홈 배너 더 크게 */
.latest-news-banner{
  padding:28px 22px !important;
  min-height:120px !important;
}

.latest-news-content strong{
  font-size:16px !important;
}

.latest-news-content span{
  font-size:22px !important;
}

.latest-news-content small{
  font-size:15px !important;
}

/* 달력 크기 축소 */
.calendar-card,
.calendar-wrap,
#calendarSection{
  max-width:700px !important;
  margin-left:auto !important;
  margin-right:auto !important;
}

.calendar-grid button,
.calendar-day{
  min-height:42px !important;
  font-size:14px !important;
}

@media(max-width:768px){
  .latest-news-banner{
    min-height:110px !important;
    padding:24px 18px !important;
  }
}


/* 교회소식 배너 슬라이드 */
.latest-news-banner {
  position: relative;
  min-height: 145px !important;
}

.banner-slide-btn {
  border: 0;
  width: 38px;
  height: 38px;
  border-radius: 999px;
  background: rgba(15, 118, 110, .12);
  color: #0f766e;
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
  font-weight: 300;
  flex: 0 0 auto;
}

.banner-slide-btn:hover {
  background: #0f766e;
  color: #fff;
}

.banner-dots {
  display: flex;
  gap: 6px;
  margin-top: 10px;
}

.banner-dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  border: 0;
  background: #cbd5e1;
  cursor: pointer;
  padding: 0;
}

.banner-dot.active {
  width: 22px;
  background: #0f766e;
}

.news-banner-toggle {
  background: #eaf4ff;
  color: #2563eb;
  border: 0;
  padding: 6px 8px;
  border-radius: 6px;
  cursor: pointer;
  margin-top: 8px;
}

@media(max-width:520px){
  .banner-slide-btn {
    width: 32px;
    height: 32px;
    font-size: 24px;
  }
}


/* 달력 더 축소 */
.calendar-card,
.calendar-wrap,
#calendarSection{
  max-width:560px !important;
  margin-left:auto !important;
  margin-right:auto !important;
}

.calendar-grid button,
.calendar-day{
  min-height:34px !important;
  font-size:12px !important;
}

/* 배너 더 크게 */
.latest-news-banner{
  min-height:190px !important;
  padding:34px 24px !important;
}

.latest-news-content span{
  font-size:26px !important;
  line-height:1.3 !important;
}

.latest-news-content small{
  font-size:17px !important;
  line-height:1.7 !important;
  -webkit-line-clamp:4 !important;
}

@media(max-width:768px){
  .latest-news-banner{
    min-height:170px !important;
  }

  .latest-news-content span{
    font-size:22px !important;
  }

  .latest-news-content small{
    font-size:15px !important;
    -webkit-line-clamp:4 !important;
  }
}


/* 모바일 달력 강제 축소 */
@media (max-width: 768px) {

  .calendar-card,
  .calendar-wrap,
  #calendarSection,
  .calendar-container {
    max-width: 100% !important;
    width: 100% !important;
    padding: 8px !important;
    margin: 0 auto !important;
  }

  .calendar-grid {
    gap: 1px !important;
  }

  .calendar-grid button,
  .calendar-day,
  .calendar-cell {
    min-height: 26px !important;
    height: 26px !important;
    font-size: 10px !important;
    padding: 0 !important;
  }

  .calendar-header,
  .calendar-title {
    font-size: 14px !important;
  }
}


/* 오늘의 말씀 이전 말씀 */
.daily-word-card p {
  white-space: normal;
}

.word-history {
  margin-top: 18px;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  padding: 16px;
  background: #fff;
}

.word-history h3 {
  margin: 0 0 12px;
}

.word-history-list {
  display: grid;
  gap: 8px;
}

.word-history-item {
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  background: #f8fafc;
  padding: 10px 12px;
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 8px;
  align-items: center;
  text-align: left;
  cursor: pointer;
  font-family: inherit;
}

.word-history-item:hover,
.word-history-item.active {
  background: #eaf4ff;
  border-color: #93c5fd;
}

.word-history-item b {
  color: #0f766e;
}

.word-history-item span {
  color: #334155;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

@media(max-width:520px){
  .word-history-item {
    grid-template-columns: 1fr;
  }
}


/* 교회소식 배너 높이 고정 */
.latest-news-banner{
  height:220px !important;
  min-height:220px !important;
  max-height:220px !important;
  overflow:hidden !important;
}

.latest-news-content{
  height:100% !important;
  display:flex !important;
  flex-direction:column !important;
  justify-content:center !important;
}

.latest-news-content span{
  min-height:68px !important;
  max-height:68px !important;
  overflow:hidden !important;
}

.latest-news-content small{
  min-height:92px !important;
  max-height:92px !important;
  overflow:hidden !important;
  display:-webkit-box !important;
  -webkit-line-clamp:4 !important;
  -webkit-box-orient:vertical !important;
}

@media(max-width:768px){
  .latest-news-banner{
    height:180px !important;
    min-height:180px !important;
    max-height:180px !important;
  }

  .latest-news-content span{
    min-height:56px !important;
    max-height:56px !important;
  }

  .latest-news-content small{
    min-height:70px !important;
    max-height:70px !important;
    -webkit-line-clamp:3 !important;
  }
}


/* 오늘의 말씀 좌우 슬라이드 */
.word-slider-controls {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 14px;
  margin: 14px 0 18px;
}

.word-slider-controls button {
  border: 1px solid #dbe3e8;
  border-radius: 999px;
  background: #fff;
  color: #0f766e;
  font-weight: 900;
  padding: 10px 16px;
  cursor: pointer;
}

.word-slider-controls button:hover {
  background: #0f766e;
  color: #fff;
}

#wordSlideInfo {
  color: #64748b;
  font-weight: 900;
  min-width: 70px;
  text-align: center;
}

.word-card-actions {
  margin-top: 18px;
  text-align: center;
}

.word-card-actions button {
  border: 0;
  border-radius: 999px;
  background: #fee2e2;
  color: #991b1b;
  font-weight: 900;
  padding: 9px 14px;
  cursor: pointer;
}

.word-history {
  display: none !important;
}

@media(max-width:520px){
  .word-slider-controls {
    gap: 8px;
  }
  .word-slider-controls button {
    padding: 9px 11px;
    font-size: 13px;
  }
}


/* 배너 여백/배열 여유 있게 */
.latest-news-banner{
  height:250px !important;
  min-height:250px !important;
  max-height:250px !important;
  padding:34px 42px !important;
  gap:22px !important;
  align-items:center !important;
}

.latest-news-icon{
  width:54px !important;
  height:54px !important;
  border-radius:18px !important;
  font-size:26px !important;
}

.latest-news-content{
  justify-content:center !important;
  gap:10px !important;
  padding:0 8px !important;
}

.latest-news-content strong{
  margin-bottom:2px !important;
}

.latest-news-content span{
  min-height:auto !important;
  max-height:72px !important;
  font-size:24px !important;
  line-height:1.4 !important;
  white-space:normal !important;
  display:-webkit-box !important;
  -webkit-line-clamp:2 !important;
  -webkit-box-orient:vertical !important;
  overflow:hidden !important;
}

.latest-news-content small{
  min-height:auto !important;
  max-height:96px !important;
  font-size:16px !important;
  line-height:1.65 !important;
  -webkit-line-clamp:3 !important;
}

.banner-dots{
  margin-top:8px !important;
}

.banner-slide-btn{
  flex:0 0 auto !important;
}

@media(max-width:768px){
  .latest-news-banner{
    height:230px !important;
    min-height:230px !important;
    max-height:230px !important;
    padding:28px 18px !important;
    gap:12px !important;
  }

  .latest-news-icon{
    width:44px !important;
    height:44px !important;
    font-size:22px !important;
  }

  .latest-news-content{
    gap:8px !important;
    padding:0 2px !important;
  }

  .latest-news-content span{
    font-size:20px !important;
    line-height:1.45 !important;
    max-height:58px !important;
  }

  .latest-news-content small{
    font-size:14px !important;
    line-height:1.55 !important;
    max-height:66px !important;
    -webkit-line-clamp:3 !important;
  }
}

/* 오늘의 말씀 관리자 버튼 강제 표시 */
.word-admin-bottom{
  display:block !important;
  margin:26px 0 12px !important;
  text-align:center !important;
}
.word-admin-bottom button{
  display:inline-block !important;
  border:1px solid #0f766e !important;
  border-radius:999px !important;
  background:#ffffff !important;
  color:#0f766e !important;
  font-weight:900 !important;
  padding:12px 20px !important;
  cursor:pointer !important;
}
.word-admin-hidden{
  display:none !important;
}
#wordForm{
  max-width:560px;
  margin:0 auto 20px;
}


/* PC 오늘의 말씀 넓게 표시 */
.daily-word-card{
    width:100% !important;
    max-width:1100px !important;
    margin:0 auto !important;
}

@media (min-width:1024px){

    .daily-word-card{
        max-width:1100px !important;
        width:100% !important;
        padding:40px !important;
        margin:0 auto !important;
    }

    .daily-word-card h3{
        text-align:center !important;
        font-size:42px !important;
        margin-bottom:24px !important;
    }

    .daily-word-card p{
        text-align:left !important;
        line-height:1.9 !important;
        font-size:22px !important;
    }
}


/* PC 오늘의 말씀 섹션 전체 폭 확장 */
@media (min-width: 1024px){

  #wordSection,
  #wordSection.word-card,
  .word-card{
    width:100% !important;
    max-width:1200px !important;
    margin-left:auto !important;
    margin-right:auto !important;
  }

  #wordSection .word-layout{
    display:block !important;
    width:100% !important;
    max-width:1100px !important;
    margin:24px auto 0 !important;
  }

  #wordSection .daily-word-area{
    width:100% !important;
    max-width:1100px !important;
    margin:0 auto !important;
  }

  #wordSection .daily-word-card{
    width:100% !important;
    max-width:1100px !important;
    margin:0 auto !important;
    padding:46px 60px !important;
    box-sizing:border-box !important;
  }

  #wordSection .daily-word-card h3{
    text-align:center !important;
    font-size:38px !important;
    line-height:1.25 !important;
    word-break:keep-all !important;
  }

  #wordSection .daily-word-card p{
    width:100% !important;
    max-width:950px !important;
    margin:26px auto 0 !important;
    text-align:left !important;
    font-size:24px !important;
    line-height:1.85 !important;
    word-break:keep-all !important;
  }

  #wordSection .word-slider-controls,
  #wordSection .word-admin-bottom,
  #wordSection #wordForm{
    max-width:1100px !important;
    margin-left:auto !important;
    margin-right:auto !important;
  }
}
