/* Notice Board Section */
.triple-notice-section {
  padding: 4rem 0;
  background: linear-gradient(135deg, var(--bg-secondary) 0%, var(--bg-tertiary) 100%);
  position: relative;
  overflow: visible;
}

.notice-section {
  padding: clamp(1.5rem, 4vw, 4rem) 0;
  background: linear-gradient(135deg, var(--bg-secondary) 0%, var(--bg-tertiary) 100%);
  position: relative;
  overflow: visible;
}

.notice-board-wrapper {
  flex: 1;
  min-width: 280px;
  max-width: 350px;
  width: 100%;
}

.triple-notice-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent-primary), var(--accent-secondary), var(--accent-primary), transparent);
}

.section-title {
  text-align: center;
  font-size: clamp(1.6rem, 5vw, 2.8rem);
  margin-bottom: clamp(1.5rem, 4vw, 3.5rem);
  background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  position: relative;
  letter-spacing: -0.5px;
}

.section-title::after {
  content: '';
  display: block;
  width: clamp(60px, 15vw, 100px);
  height: clamp(2px, 0.2vw, 4px);
  background: linear-gradient(90deg, var(--accent-primary), var(--accent-secondary));
  margin: clamp(0.8rem, 2vw, 1.2rem) auto 0;
  border-radius: 2px;
}

.notice-board-container {
  margin: 0 auto;
  position: relative;
  aspect-ratio: 9 / 16;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(20px);
  /* Responsive sizing using clamp for smooth scaling */
  width: clamp(280px, 45vw, 600px);
  height: clamp(400px, 60vh, 900px);
}

.notice-hero {
  position: relative;
  width: 100%;
  height: 100%;
}

.notice-image-container {
  width: 100%;
  height: 100%;
}

.notice-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.notice-image.active {
  opacity: 1;
}

.notice-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  display: block;
}

.notice-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(transparent 0%, rgba(0, 0, 0, 0.85) 30%);
  padding: clamp(1.2rem, 3vw, 3.5rem) clamp(1rem, 3vw, 2.5rem) clamp(0.8rem, 2vw, 2rem);
  color: white;
}

.notice-content h3 {
  font-size: clamp(1.1rem, 3vw, 2rem);
  margin: 0 0 clamp(0.3rem, 1vw, 0.8rem);
  font-weight: 700;
  line-height: 1.2;
}

.notice-content p {
  font-size: clamp(0.8rem, 2vw, 1rem);
  margin: 0;
  opacity: 0.9;
  font-weight: 500;
  line-height: 1.4;
}

.notice-nav {
  display: none;
}

.nav-btn {
  pointer-events: auto;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, 0.2);
  color: white;
  font-size: 1.8rem;
  font-weight: bold;
  cursor: pointer;
  backdrop-filter: blur(10px);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.nav-btn:hover:not(:disabled) {
  background: rgba(255, 255, 255, 0.3);
  transform: scale(1.1);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.4);
}

.notice-indicators {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 12px;
  pointer-events: none;
}

.indicator {
  pointer-events: auto;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.4);
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.indicator.active,
.indicator:hover {
  background: var(--accent-primary);
  transform: scale(1.2);
  box-shadow: 0 4px 12px rgba(99, 102, 241, 0.5);
}

.pause-btn {
  display: none;
}

.pause-btn:hover {
  background: rgba(255, 255, 255, 0.3);
  transform: scale(1.1);
}

.empty-notice {
  text-align: center;
  color: var(--text-secondary);
  font-size: 1.1rem;
  padding: 4rem 2rem;
  font-style: italic;
}

/* Large Desktop (1920px and above) */
@media (min-width: 1920px) {
  .notice-board-container {
    width: clamp(500px, 45vw, 700px);
    height: clamp(700px, 65vh, 1050px);
    border-radius: 28px;
  }

  .section-title {
    font-size: 2.8rem;
  }

  .notice-overlay {
    padding: 3.5rem 2.5rem 2.5rem;
  }

  .nav-btn {
    width: 64px;
    height: 64px;
    font-size: 2rem;
  }

  .indicator {
    width: 14px;
    height: 14px;
  }
}

/* Medium Desktop (1200px to 1919px) */
@media (max-width: 1919px) {
  .notice-board-container {
    width: clamp(380px, 45vw, 600px);
    height: clamp(550px, 60vh, 900px);
    border-radius: 24px;
  }
}

/* Tablet Landscape (1024px to 1199px) */
@media (max-width: 1199px) {
  .notice-board-container {
    width: clamp(340px, 50vw, 500px);
    height: clamp(480px, 65vh, 800px);
    border-radius: 20px;
  }

  .section-title {
    font-size: 2.2rem;
    margin-bottom: 2.5rem;
  }

  .notice-overlay {
    padding: 2.5rem 2rem 1.5rem;
  }

  .notice-content h3 {
    font-size: clamp(1.3rem, 2.5vw, 1.8rem);
  }

  .nav-btn {
    width: 52px;
    height: 52px;
    font-size: 1.6rem;
  }
}

/* Tablet Portrait (769px to 1023px) */
@media (max-width: 1023px) {
  .notice-board-container {
    width: clamp(300px, 65vw, 480px);
    height: clamp(430px, 70vh, 750px);
    border-radius: 18px;
  }

  .triple-notice-section {
    padding: 3rem 0;
  }

  .section-title {
    font-size: 2.1rem;
    margin-bottom: 2.3rem;
  }

  .notice-overlay {
    padding: 2.2rem 1.8rem 1.5rem;
  }

  .notice-content h3 {
    font-size: clamp(1.2rem, 3vw, 1.6rem);
  }

  .nav-btn {
    width: 50px;
    height: 50px;
    font-size: 1.5rem;
  }

  .indicator {
    width: 10px;
    height: 10px;
  }
}

/* Tablet/Large Mobile (600px to 768px) */
@media (max-width: 768px) {
  .notice-board-container {
    width: clamp(280px, 90vw, 500px);
    height: clamp(400px, 110vw, 720px);
    border-radius: 16px;
  }

  .triple-notice-section {
    padding: 2.5rem 0;
  }

  .section-title {
    margin-bottom: 1.8rem;
    font-size: 1.9rem;
  }

  .notice-overlay {
    padding: 2rem 1.5rem 1.3rem;
  }

  .notice-content h3 {
    font-size: clamp(1.1rem, 3vw, 1.5rem);
  }

  .notice-content p {
    font-size: clamp(0.85rem, 2vw, 1rem);
  }

  .notice-nav {
    padding: 0 1.2rem;
  }

  .nav-btn {
    width: 46px;
    height: 46px;
    font-size: 1.3rem;
  }

  .pause-btn {
    width: 42px;
    height: 42px;
    font-size: 0.95rem;
    top: 12px;
    right: 12px;
  }

  .indicator {
    width: 10px;
    height: 10px;
    gap: 10px;
  }
}

/* Medium Mobile (481px to 599px) */
@media (max-width: 599px) {
  .notice-board-container {
    width: clamp(260px, 92vw, 480px);
    height: clamp(370px, 125vw, 650px);
    border-radius: 14px;
  }

  .triple-notice-section {
    padding: 2rem 0;
  }

  .section-title {
    margin-bottom: 1.5rem;
    font-size: 1.6rem;
  }

  .notice-overlay {
    padding: 1.8rem 1.3rem 1.2rem;
  }

  .notice-content h3 {
    font-size: clamp(1rem, 2.8vw, 1.3rem);
  }

  .notice-content p {
    font-size: clamp(0.8rem, 1.8vw, 0.95rem);
  }

  .nav-btn {
    width: 42px;
    height: 42px;
    font-size: 1.1rem;
  }

  .pause-btn {
    width: 36px;
    height: 36px;
    font-size: 0.85rem;
    top: 10px;
    right: 10px;
  }

  .indicator {
    width: 8px;
    height: 8px;
    gap: 8px;
  }

  .notice-indicators {
    bottom: 15px;
  }
}

/* Small Mobile (max 480px) */
@media (max-width: 480px) {
  .notice-board-container {
    width: clamp(240px, 95vw, 400px);
    height: clamp(340px, 150vw, 600px);
    border-radius: 12px;
    margin: 0 auto;
  }

  .triple-notice-section {
    padding: 1.8rem 0;
  }

  .section-title {
    font-size: clamp(1.4rem, 2.5vw, 1.6rem);
    margin-bottom: 1.2rem;
  }

  .section-title::after {
    width: 60px;
    height: 2px;
  }

  .notice-overlay {
    padding: 1.5rem 1rem 1rem;
  }

  .notice-content h3 {
    font-size: clamp(0.95rem, 2.5vw, 1.2rem);
    margin: 0 0 0.3rem;
  }

  .notice-content p {
    font-size: clamp(0.75rem, 1.6vw, 0.9rem);
  }

  .notice-nav {
    padding: 0 1rem;
  }

  .nav-btn {
    width: 38px;
    height: 38px;
    font-size: 1rem;
  }

  .nav-btn:disabled {
    opacity: 0.5;
  }

  .pause-btn {
    width: 32px;
    height: 32px;
    font-size: 0.75rem;
    top: 8px;
    right: 8px;
  }

  .indicator {
    width: 6px;
    height: 6px;
    gap: 6px;
  }

  .notice-indicators {
    bottom: 12px;
  }

  .empty-notice {
    padding: 2rem 1rem;
    font-size: 0.95rem;
  }
}

/* Ultra Small Mobile (max 360px) */
@media (max-width: 360px) {
  .section-title {
    font-size: 1.3rem;
    margin-bottom: 1rem;
  }

  .notice-board-container {
    width: clamp(220px, 96vw, 360px);
    height: clamp(320px, 160vw, 540px);
  }

  .notice-overlay {
    padding: 1.3rem 0.8rem 0.8rem;
  }

  .notice-content h3 {
    font-size: clamp(0.9rem, 2.3vw, 1rem);
    margin: 0 0 0.2rem;
  }

  .nav-btn {
    width: 34px;
    height: 34px;
    font-size: 0.9rem;
  }

  .indicator {
    width: 5px;
    height: 5px;
  }
}

/* Loading state */
.notice-board-container.loading::after {
  content: 'Loading notices...';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: var(--text-secondary);
  font-size: clamp(0.9rem, 2vw, 1.1rem);
  z-index: 10;
  text-align: center;
  letter-spacing: 0.5px;
}

/* Final responsive overrides */
.notice-board-container {
  width: min(100%, 600px);
  max-width: 100%;
}

.notice-image img {
  max-width: 100%;
}

@media (max-width: 1024px) {
  .notice-board-container {
    width: min(100%, 500px);
  }
}

@media (max-width: 768px) {
  .notice-section {
    padding: 1.8rem 0 2.1rem;
  }

  .notice-board-container {
    width: min(100%, 520px);
    height: clamp(360px, 108vw, 720px);
  }

  .notice-overlay {
    padding: 1.5rem 1.1rem 1rem;
  }
}

@media (max-width: 600px) {
  .notice-board-container {
    width: min(100%, 420px);
    height: clamp(320px, 122vw, 620px);
  }

  .section-title {
    font-size: 1.6rem;
    margin-bottom: 1.3rem;
  }

  .notice-content h3 {
    font-size: 1rem;
    line-height: 1.25;
  }

  .notice-content p {
    font-size: 0.78rem;
    line-height: 1.35;
  }

  .notice-indicators {
    bottom: 14px;
    gap: 8px;
  }
}

@media (max-width: 420px) {
  .notice-board-container {
    width: min(100%, 340px);
    height: clamp(290px, 128vw, 560px);
  }

  .notice-overlay {
    padding: 1.15rem 0.85rem 0.9rem;
  }

  .notice-content h3 {
    font-size: 0.94rem;
  }

  .notice-content p {
    font-size: 0.72rem;
  }
}
