.ir-container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 80px 20px 100px;
  box-sizing: border-box;
}

.ir-tabs {
  background: #fff;
  border: 1px solid #e5e5e5;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.04);
  margin: 15px auto;
  width: 100%;
}

.ir-tab-nav {
  display: flex;
  justify-content: flex-start;
  align-items: flex-end;
  gap: 0;
  padding: 0;
  background: #fff;
  border-bottom: 1px solid #e5e5e5;
}

.ir-tab-btn {
  flex: 1;
  padding: 20px 30px;
  border: none;
  border-radius: 0;
  background: transparent;
  color: #666;
  font-family: "Pretendard", -apple-system, BlinkMacSystemFont, system-ui,
    Roboto, sans-serif;
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  border-bottom: 3px solid transparent;
}

.ir-tab-btn:hover {
  background: #fff;
  color: #333;
}

.ir-tab-btn.active {
  background: #fff;
  color: #6026f4;
  border-bottom-color: #6026f4;
}

.ir-tab-content {
  display: none;
  padding: 16px;
}

.ir-tab-content.active {
  display: block;
}

.ir-frame-wrapper {
  border-radius: 12px;
  overflow: hidden;
  background: #fafafa;
  border: 1px solid #e5e5e5;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 6px;
  margin: 0 auto;
}

.ir-frame-wrapper iframe {
  width: 72%;
  max-width: 100%;
  height: 80vh;
  border: none;
  background: #fff;
  display: block;
  margin: 0 auto;
}

.ir-mobile-fallback {
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 80px 20px;
  text-align: center;
  min-height: 400px;
}

.ir-mobile-icon {
  position: relative;
  width: 120px;
  height: 120px;
  margin-bottom: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.ir-mobile-icon::before {
  content: "";
  position: absolute;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: #e8e8e8;
}

.ir-mobile-icon .fa-file-alt {
  position: relative;
  font-size: 3.5rem;
  color: #999;
  z-index: 1;
}

.ir-mobile-icon .fa-search {
  position: absolute;
  bottom: 10px;
  right: 10px;
  font-size: 1.5rem;
  color: #999;
  z-index: 2;
  background: #fff;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

.ir-mobile-link {
  display: inline-block;
  padding: 14px 32px;
  border: 1px solid #ddd;
  border-radius: 4px;
  background: #fff;
  color: #333;
  text-decoration: none;
  font-size: 1rem;
  font-weight: 500;
  transition: all 0.3s ease;
}

.ir-mobile-link:hover {
  border-color: #999;
  color: #333;
  background: #f8f9fa;
}

/* Newsroom Section */
.ir-newsroom {
  padding: 30px 24px;
}

.newsroom-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 24px;
  padding-bottom: 20px;
  border-bottom: 2px solid #e8e8e8;
}

.admin-info {
  display: flex;
  gap: 10px;
  align-items: center;
}

.admin-username {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.9rem;
  color: #6b6b6b;
}

.btn-logout {
  padding: 10px 22px;
  background-color: #6b6b6b;
  color: white !important;
  border-radius: 6px;
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 600;
  white-space: nowrap;
  transition: background-color 0.2s;
}

.btn-logout:hover {
  background-color: #525252;
}

.news-image-placeholder {
  object-fit: contain;
  padding: 20px;
  background: #f5f5f5;
}

.newsroom-title-section h2 {
  font-size: 1.75rem;
  font-weight: 700;
  color: #1a1a1a;
  margin: 0 0 8px 0;
}

.newsroom-title-section p {
  font-size: 0.95rem;
  color: #6b6b6b;
  margin: 0;
}

.btn-write {
  display: inline-block;
  padding: 10px 22px;
  background-color: #2563eb;
  color: white !important;
  border-radius: 6px;
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 600;
  transition: background-color 0.2s;
  white-space: nowrap;
}

.btn-write:hover {
  background-color: #1d4ed8;
}

.newsroom-info {
  margin-bottom: 20px;
  padding: 0 4px;
}

.total-count {
  font-size: 0.9rem;
  color: #525252;
}

.total-count strong {
  color: #1a1a1a;
  font-weight: 700;
}

.news-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px 20px;
  margin-bottom: 48px;
}

.news-card {
  background: #fff;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid #e0e0e0;
  transition: all 0.2s;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
  height: 100%;
}

.news-card:visited {
  color: inherit;
}

.news-card:hover {
  border-color: #b0b0b0;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.news-image {
  position: relative;
  width: 100%;
  height: 180px;
  overflow: hidden;
  background: #fafafa;
  flex-shrink: 0;
}

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

.news-category {
  position: absolute;
  top: 10px;
  left: 10px;
  padding: 5px 12px;
  border-radius: 4px;
  font-size: 0.8rem;
  font-weight: 600;
  color: white;
  background: #525252;
}

/* 카테고리 기본 색상 (DB에 색상이 없을 경우) */
.news-category {
  background: #6b7280; /* 기본 회색 */
}

.news-content {
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
}

.news-title {
  font-size: 1.05rem;
  font-weight: 600;
  color: #1a1a1a;
  line-height: 1.45;
  margin: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  min-height: 3em;
  flex: 1;
}

.news-date {
  font-size: 0.85rem;
  color: #888;
  font-weight: 400;
  margin-top: auto;
}

.news-meta,
.news-tag,
.news-excerpt {
  display: none;
}

.empty-state {
  grid-column: 1 / -1;
  text-align: center;
  padding: 60px 20px;
  color: #999;
}

/* Pagination */
.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  margin-top: 48px;
}

.pagination-btn {
  padding: 8px 16px;
  border: 1px solid #d4d4d4;
  border-radius: 6px;
  background: white;
  color: #525252;
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  transition: all 0.2s;
}

.pagination-btn:hover:not(.disabled) {
  background: #f5f5f5;
  border-color: #a3a3a3;
}

.pagination-btn.disabled {
  opacity: 0.4;
  cursor: not-allowed;
  pointer-events: none;
}

.pagination-numbers {
  display: flex;
  gap: 6px;
}

.pagination-number {
  min-width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  background: white;
  color: #525252;
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  border: 1px solid #e5e5e5;
  transition: all 0.2s;
}

.pagination-number:hover:not(.active) {
  background: #f5f5f5;
  border-color: #d4d4d4;
}

.pagination-number.active {
  background: #2563eb;
  color: white;
  border-color: #2563eb;
  font-weight: 600;
}

@media (max-width: 1024px) {
  .news-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px 16px;
  }
}

@media (max-width: 768px) {
  .ir-tab-nav {
    flex-wrap: wrap;
  }

  .ir-tab-btn {
    flex: 1 1 50%;
    padding: 15px 20px;
    font-size: 1rem;
    min-width: calc(50% - 1px);
  }

  .ir-frame-wrapper {
    display: none;
  }

  .ir-mobile-fallback {
    display: flex;
  }

  .ir-frame-wrapper iframe {
    height: 70vh;
  }

  .ir-newsroom {
    padding: 20px 16px;
  }

  .newsroom-header {
    flex-direction: column;
    gap: 16px;
    align-items: stretch;
  }

  .newsroom-title-section h2 {
    font-size: 1.5rem;
  }

  .btn-write {
    width: 100%;
    text-align: center;
  }

  .news-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .pagination {
    flex-wrap: wrap;
    gap: 6px;
  }

  .pagination-btn {
    padding: 6px 12px;
    font-size: 0.85rem;
  }

  .pagination-number {
    min-width: 32px;
    height: 32px;
    font-size: 0.85rem;
  }
}
