/**
 * 온라인 게시판 전용 스타일
 * online 폴더의 디자인을 완전히 반영
 */

:root {
  --primary: #F37021;
  --primary-light: #FF9A3D;
  --chats-color: #3b82f6;
  --board-color: #f59e0b;
  --approvals-color: #10b981;
  --clubs-color: #8b5cf6;
}

body {
  background: repeating-linear-gradient(0deg, #fbfbfb 0, #fbfbfb 24px, #ffffff 24px, #ffffff 48px);
}

/* ===== 칠판 스타일 - 오픈채팅방 ===== */
.chalkboard-container {
  background: linear-gradient(135deg, #2d4a2b 0%, #1a2e1a 100%);
  border: 4px solid #4a5d48;
  border-radius: 12px;
  box-shadow: 0 15px 35px rgba(0, 0, 0, .4), inset 0 0 0 3px #5a6d58;
  position: relative;
  margin: 2rem 0;
  padding: 2rem;
}

.chalkboard-header {
  border-bottom: 3px solid #5a6d58;
  padding-bottom: 1.5rem;
  margin-bottom: 2rem;
}

.chalk-title {
  color: #ffffff;
  font-family: 'Courier New', monospace;
  font-size: 1.8rem;
  font-weight: 700;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, .7);
  margin-bottom: 0.5rem;
}

.chalk-subtitle {
  color: #cbd5e0;
  font-family: 'Courier New', monospace;
  font-style: italic;
  font-size: 1rem;
}

.chalk-notices-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 1.5rem;
}

/* 오픈채팅방 카드 기본 스타일 */
.chalk-notice {
  background: #ffffff;
  border: 2px solid #e2e8f0;
  border-radius: 12px;
  margin-bottom: 0;
  padding: 1.5rem;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  transition: all 0.3s ease;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  min-height: 180px;
}

.chalk-notice:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

/* 운영진 공지 스타일 */
.chalk-notice.admin-notice {
  background: linear-gradient(135deg, #fff5f5 0%, #ffffff 100%) !important;
  border: 2px solid #ff6b6b !important;
  box-shadow: 0 4px 15px rgba(255, 107, 107, 0.15) !important;
}

/* 커뮤니티 공지 스타일 */
.chalk-notice.community-notice {
  background: linear-gradient(135deg, #f0f9ff 0%, #ffffff 100%);
  border: 2px solid #3b82f6;
  box-shadow: 0 4px 15px rgba(59, 130, 246, 0.15);
}

/* 헤더 영역 */
.chalk-notice-header {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  margin-bottom: 1rem;
}

/* 배지 스타일 */
.chalk-notice-badge {
  padding: 0.35rem 0.85rem;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
}

.chalk-notice-badge.admin {
  background: linear-gradient(135deg, #ff6b6b, #ee5a24) !important;
  color: white !important;
  font-weight: 600;
  box-shadow: 0 2px 8px rgba(255, 107, 107, 0.3);
}

.chalk-notice-badge.community {
  background: linear-gradient(135deg, #3b82f6, #1d4ed8);
  color: white;
  box-shadow: 0 2px 8px rgba(59, 130, 246, 0.3);
}

/* 콘텐츠 영역 */
.chalk-notice-content {
  flex: 1;
  margin-bottom: 1rem;
  overflow: hidden;
}

.chalk-notice-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: #1f2937;
  margin-bottom: 0.75rem;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.chalk-notice-desc {
  color: #6b7280;
  line-height: 1.6;
  margin: 0;
  word-wrap: break-word;
  overflow-wrap: break-word;
  font-size: 0.95rem;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  white-space: normal;
}

/* 오픈채팅방 카드 이미지와 텍스트 레이아웃 */
.chalk-notice-body {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}

/* 이미지 컨테이너 - 적당한 크기 (!important로 강제) */
.chalk-notice-image-container {
  flex-shrink: 0 !important;
  width: 150px !important;
  min-width: 150px !important;
  max-width: 150px !important;
  height: 150px !important;
  min-height: 150px !important;
  max-height: 150px !important;
  overflow: hidden !important;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.chalk-notice-image-container img {
  width: 100% !important;
  height: 100% !important;
  object-fit: contain !important;
  max-width: 150px !important;
  max-height: 150px !important;
  display: block !important;
}

/* 캐러셀 컨테이너 - 적당한 크기 (!important로 강제) */
.chalk-notice .carousel {
  flex-shrink: 0 !important;
  width: 150px !important;
  min-width: 150px !important;
  max-width: 150px !important;
  height: 150px !important;
  min-height: 150px !important;
  max-height: 150px !important;
  border-radius: 8px;
  overflow: hidden !important;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.chalk-notice .carousel-inner {
  width: 100% !important;
  height: 100% !important;
  border-radius: 8px;
}

.chalk-notice .carousel-item {
  width: 100% !important;
  height: 100% !important;
}

.chalk-notice .carousel-item img {
  width: 100% !important;
  height: 100% !important;
  object-fit: contain !important;
  margin-bottom: 0 !important;
  max-width: 150px !important;
  max-height: 150px !important;
  display: block !important;
}

/* 캐러셀 컨트롤 작게 - !important로 우선순위 강제 */
.chalk-notice .carousel-control-prev,
.chalk-notice .carousel-control-next {
  width: 25px !important;
  opacity: 0.7 !important;
}

.chalk-notice .carousel-control-prev-icon,
.chalk-notice .carousel-control-next-icon {
  width: 15px !important;
  height: 15px !important;
  padding: 0 !important;
}

.chalk-notice .carousel-indicators {
  margin-bottom: 3px !important;
}

.chalk-notice .carousel-indicators button {
  width: 5px !important;
  height: 5px !important;
  border-radius: 50% !important;
  margin: 0 2px !important;
}

/* 푸터 영역 */
.chalk-notice-footer {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  margin-top: auto;
  padding-top: 1rem;
}

/* 버튼 스타일 */
.chalk-enter-btn {
  padding: 0.75rem 1.5rem;
  border: none;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.875rem;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 100px;
  white-space: nowrap;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.chalk-enter-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  text-decoration: none;
}

.chalk-enter-btn.admin {
  background: linear-gradient(135deg, #ff6b6b, #ee5a24) !important;
  color: white !important;
  border: none;
  font-weight: 600;
  box-shadow: 0 2px 8px rgba(255, 107, 107, 0.3);
}

.chalk-enter-btn.admin:hover {
  background: linear-gradient(135deg, #ee5a24, #d63031) !important;
  color: white !important;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(255, 107, 107, 0.4);
}

.chalk-enter-btn.community {
  background: linear-gradient(135deg, #3b82f6, #1d4ed8);
  color: white;
  box-shadow: 0 2px 8px rgba(59, 130, 246, 0.3);
}

.chalk-enter-btn.community:hover {
  background: linear-gradient(135deg, #1d4ed8, #1e40af);
  color: white;
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.4);
}

/* 운영진 크라운 아이콘 */
.admin-crown {
  color: #fbbf24;
  margin-left: 0.5rem;
  font-size: 1rem;
  animation: crownGlow 2s ease-in-out infinite alternate;
}

@keyframes crownGlow {
  0% {
    color: #fbbf24;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
  }

  100% {
    color: #ffed4e;
    text-shadow: 0 2px 6px rgba(255, 215, 0, 0.5);
  }
}

/* 빈 상태 스타일 */
.empty-notice {
  text-align: center;
  padding: 3rem 2rem;
  background: linear-gradient(135deg, #f8fafc 0%, #ffffff 100%);
  border: 2px dashed #cbd5e1;
  cursor: default;
}

.empty-notice:hover {
  transform: none;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

.empty-notice .chalk-notice-title {
  color: #64748b;
  margin-bottom: 1rem;
}

.empty-notice .chalk-notice-desc {
  color: #94a3b8;
}

/* ===== 코르크보드 스타일 - 게시판 ===== */
.corkboard-container {
  background: linear-gradient(135deg, #d2b48c 0%, #cd853f 100%);
  border: 3px solid #8b4513;
  border-radius: 15px;
  box-shadow: 0 15px 30px rgba(139, 69, 19, .3);
  position: relative;
  margin: 2rem 0;
  padding: 2rem;
}

.corkboard-header {
  border-bottom: 3px solid #8b4513;
  padding-bottom: 1.5rem;
  margin-bottom: 2rem;
}

.cork-title {
  color: #3e2723;
  font-family: 'Noto Sans KR', sans-serif;
  font-size: 1.8rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.cork-subtitle {
  color: #5d4037;
  font-size: 1rem;
}

.cork-tab-navigation {
  display: flex;
  gap: 1rem;
  margin-bottom: 2rem;
}

.cork-tab-btn {
  background: rgba(255, 255, 255, .9);
  border: 2px solid #8b4513;
  color: #3e2723;
  padding: 0.8rem 1.5rem;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

.cork-tab-btn.active {
  background: #ffffff;
  box-shadow: 0 4px 12px rgba(0, 0, 0, .2);
}

.cork-tab-btn:hover {
  background: #ffffff;
  transform: translateY(-1px);
}

.tab-content-panel {
  display: block;
}

.cork-notices-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.5rem;
}

.cork-notice-card {
  background: #ffffff;
  border: 2px solid #d7ccc8;
  border-radius: 12px;
  padding: 1.5rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, .1);
  transition: all 0.3s ease;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  min-height: 180px;
  max-width: 100%;
}

.cork-notice-card::before {
  content: '📌';
  position: absolute;
  top: -10px;
  right: 20px;
  font-size: 1.5rem;
  z-index: 1;
}

.cork-notice-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, .15);
}

.cork-notice-card .notice-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: #2c3e50;
  margin-bottom: 1rem;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.cork-notice-card .notice-content {
  color: #6b7280;
  font-size: 0.9rem;
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: 1rem;
  flex: 1;
  white-space: normal;
}

.cork-notice-card .notice-image {
  width: 100%;
  max-width: 100%;
  height: 150px;
  max-height: 150px;
  object-fit: contain;
  border-radius: 8px;
  margin-bottom: 1rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  display: block;
}

.cork-notice-card .notice-images-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.cork-notice-card .notice-images-grid img {
  width: 100%;
  height: 100px;
  object-fit: contain;
  border-radius: 6px;
}

.cork-notice-card .notice-more-images {
  text-align: center;
  color: #6b7280;
  font-size: 0.85rem;
  margin-top: 0.5rem;
}

.cork-notice-card .ad-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  background: linear-gradient(135deg, #fef3c7, #fde68a);
  color: #92400e;
  padding: 0.4rem 0.8rem;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
  border: 1px solid #fbbf24;
  margin-top: auto;
}

/* ===== 메모장 스타일 - 광고 승인 ===== */
.notepad-container {
  background: #ffffff;
  border: 2px solid #e0e0e0;
  border-radius: 8px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, .1);
  position: relative;
  margin: 2rem 0;
  padding: 2rem;
}

.notepad-header {
  border-bottom: 2px solid #e0e0e0;
  padding-bottom: 1.5rem;
  margin-bottom: 2rem;
  position: relative;
}

.notepad-header::before {
  content: '';
  position: absolute;
  top: -2rem;
  left: 0;
  right: 0;
  height: 30px;
  background: repeating-linear-gradient(90deg,
      transparent,
      transparent 40px,
      #e0e0e0 40px,
      #e0e0e0 42px);
}

.notepad-title {
  color: #2c3e50;
  font-size: 1.8rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.notepad-subtitle {
  color: #7f8c8d;
  font-size: 1rem;
}

.ad-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.5rem;
}

.ad-card {
  background: #ffffff;
  border: 2px solid #e0e0e0;
  border-radius: 12px;
  padding: 1.5rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, .08);
  transition: all 0.3s ease;
  cursor: pointer;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  min-height: 250px;
}

.ad-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, .12);
  border-color: #10b981;
}

.ad-card h3 {
  font-size: 1.2rem;
  font-weight: 700;
  color: #2c3e50;
  margin-bottom: 1rem;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.ad-card img {
  width: 100%;
  max-height: 150px;
  object-fit: contain;
  border-radius: 8px;
  margin-bottom: 1rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.ad-content {
  color: #6b7280;
  font-size: 0.9rem;
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: 1rem;
  flex: 1;
  white-space: normal;
}

.ad-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  background: linear-gradient(135deg, #d1fae5, #a7f3d0);
  color: #065f46;
  padding: 0.4rem 0.8rem;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
  border: 1px solid #10b981;
  margin-right: 0.5rem;
  margin-bottom: 0.5rem;
}

/* ===== 섹션 액션 버튼 ===== */
.section-action-btn {
  padding: 0.75rem 1.5rem;
  border: none;
  border-radius: 10px;
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
  white-space: nowrap;
}

.section-action-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  text-decoration: none;
}

.section-action-btn.openchat-btn {
  background: linear-gradient(135deg, #3b82f6, #1d4ed8);
  color: white;
}

.section-action-btn.openchat-btn:hover {
  background: linear-gradient(135deg, #1d4ed8, #1e40af);
  color: white;
}

.section-action-btn.community-btn {
  background: linear-gradient(135deg, #f59e0b, #f97316);
  color: white;
}

.section-action-btn.community-btn:hover {
  background: linear-gradient(135deg, #f97316, #ea580c);
  color: white;
}

.section-action-btn.club-btn {
  background: linear-gradient(135deg, #8b5cf6, #7c3aed);
  color: white;
}

.section-action-btn.club-btn:hover {
  background: linear-gradient(135deg, #7c3aed, #6d28d9);
  color: white;
}

.section-action-btn.ad-btn {
  background: linear-gradient(135deg, #10b981, #059669);
  color: white;
}

.section-action-btn.ad-btn:hover {
  background: linear-gradient(135deg, #059669, #047857);
  color: white;
}

.section-action-btn.events-btn {
  background: linear-gradient(135deg, #0ea5e9, #0284c7);
  color: white;
}

.section-action-btn.events-btn:hover {
  background: linear-gradient(135deg, #0284c7, #0369a1);
  color: white;
}

/* ===== 날짜별 이벤트 리스트 모달 ===== */
.day-event-list-item {
  background: #fff7ed;
  padding: 1rem;
  margin: 0.5rem;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
  border-left: 4px solid #f97316;
}

.day-event-list-item:hover {
  background: #ffedd5;
  transform: translateX(4px);
  box-shadow: 0 2px 8px rgba(249, 115, 22, 0.2);
}

.event-list-free-badge {
  display: inline-block;
  background: linear-gradient(135deg, #10b981, #059669);
  color: white;
  padding: 0.25rem 0.6rem;
  border-radius: 12px;
  font-size: 0.75rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.event-list-title {
  font-size: 1rem;
  font-weight: 600;
  color: #1f2937;
  margin-bottom: 0.5rem;
  line-height: 1.4;
}

.event-list-tags {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.event-list-tag {
  background: white;
  color: #6b7280;
  padding: 0.25rem 0.6rem;
  border-radius: 12px;
  font-size: 0.75rem;
  border: 1px solid #e5e7eb;
}

/* ===== 모바일 이벤트 리스트 ===== */
.mobile-events-list {
  display: none;
}

.mobile-event-day {
  background: white;
  border-radius: 12px;
  margin-bottom: 1rem;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.mobile-day-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 1.5rem;
  background: linear-gradient(135deg, #0ea5e9, #0284c7);
  color: white;
  cursor: pointer;
  transition: all 0.3s ease;
}

.mobile-day-header:hover {
  background: linear-gradient(135deg, #0284c7, #0369a1);
}

.mobile-day-header.active {
  background: linear-gradient(135deg, #0369a1, #075985);
}

.mobile-day-info {
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
}

.mobile-day-number {
  font-size: 1.5rem;
  font-weight: 700;
}

.mobile-day-weekday {
  font-size: 1rem;
  opacity: 0.9;
}

.mobile-event-count {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.count-badge {
  background: rgba(255, 255, 255, 0.3);
  padding: 0.25rem 0.75rem;
  border-radius: 20px;
  font-size: 0.9rem;
  font-weight: 600;
}

.toggle-icon {
  font-size: 1.2rem;
  transition: transform 0.3s ease;
}

.mobile-day-events {
  padding: 0.5rem;
}

.mobile-event-item {
  background: #f8f9fa;
  padding: 1rem;
  margin: 0.5rem;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
  border-left: 4px solid #0ea5e9;
}

.mobile-event-item:hover {
  background: #e9ecef;
  transform: translateX(4px);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.mobile-event-free-badge {
  display: inline-block;
  background: linear-gradient(135deg, #10b981, #059669);
  color: white;
  padding: 0.25rem 0.6rem;
  border-radius: 12px;
  font-size: 0.75rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.mobile-event-title {
  font-size: 1rem;
  font-weight: 600;
  color: #1f2937;
  margin-bottom: 0.5rem;
  line-height: 1.4;
}

.mobile-event-tags {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.mobile-event-tag {
  background: white;
  color: #6b7280;
  padding: 0.25rem 0.6rem;
  border-radius: 12px;
  font-size: 0.75rem;
  border: 1px solid #e5e7eb;
}

/* ===== 반응형 디자인 ===== */
@media (max-width: 768px) {

  /* 모바일에서 달력 유지하되 이벤트 아이템 숨기기 */
  .calendar-day .day-events {
    display: none !important;
  }

  /* 날짜에 이벤트 개수만 표시 */
  .calendar-day.has-events {
    position: relative;
  }

  .calendar-day.has-events::after {
    content: attr(data-event-count);
    position: absolute;
    top: 5px;
    right: 5px;
    background: linear-gradient(135deg, #f97316, #ea580c);
    color: white;
    font-size: 0.7rem;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: 10px;
    min-width: 18px;
    text-align: center;
    box-shadow: 0 2px 4px rgba(249, 115, 22, 0.3);
  }

  /* 모바일 리스트 숨기기 (달력 유지) */
  .mobile-events-list {
    display: none;
  }

  .chalk-notices-grid,
  .cork-notices-grid,
  .ad-grid {
    grid-template-columns: 1fr;
  }

  .chalkboard-container,
  .corkboard-container,
  .notepad-container {
    padding: 1.5rem;
  }

  .chalk-title,
  .cork-title,
  .notepad-title {
    font-size: 1.5rem;
  }

  .cork-tab-navigation {
    flex-direction: column;
  }

  .cork-tab-btn {
    width: 100%;
  }

  .chalk-notice {
    min-height: 150px;
    padding: 1.25rem;
  }

  .chalk-notice-title {
    font-size: 1.1rem;
  }

  .chalk-notice-desc {
    font-size: 0.9rem;
  }

  .chalk-enter-btn {
    padding: 0.6rem 1.2rem;
    font-size: 0.8rem;
    min-width: 80px;
  }

  /* 모바일에서 이미지 크기 조정 */
  .chalk-notice-image-container,
  .chalk-notice .carousel {
    width: 120px !important;
    height: 120px !important;
  }

  .chalk-notice-image-container img,
  .chalk-notice .carousel-item img {
    max-width: 120px !important;
    max-height: 120px !important;
  }

  .cork-notice-card .notice-image {
    height: 120px;
    max-height: 120px;
  }

  .cork-notice-card .notice-images-grid img {
    height: 80px;
  }
}

@media (max-width: 576px) {

  .chalkboard-container,
  .corkboard-container,
  .notepad-container {
    padding: 1rem;
    margin: 1rem 0;
  }

  .chalk-title,
  .cork-title,
  .notepad-title {
    font-size: 1.3rem;
  }

  .chalk-subtitle,
  .cork-subtitle,
  .notepad-subtitle {
    font-size: 0.9rem;
  }

  .section-action-btn {
    font-size: 0.85rem;
    padding: 0.6rem 1.2rem;
  }

  /* 작은 화면에서 이미지 컨테이너 크기 조정 */
  .chalk-notice-image-container,
  .chalk-notice .carousel {
    width: 100% !important;
    height: 120px !important;
  }

  .chalk-notice-image-container img,
  .chalk-notice .carousel-item img {
    max-width: 100% !important;
    max-height: 120px !important;
  }

  .cork-notice-card .notice-image {
    height: 100px;
    max-height: 100px;
  }

  .cork-notice-card .notice-images-grid img {
    height: 60px;
  }

  .ad-card {
    min-height: 180px;
  }

  .ad-card img {
    max-height: 120px;
  }
}