/* Page Header */
.anlab-qna-page-header {
  position: relative;
  width: 100vw;
  height: 300px;
  background-image: url('../images/anlab_qna_default_header_backgorund.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.anlab-qna-page-header::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.4);
  z-index: 1;
}

.anlab-qna-page-header__title {
  position: relative;
  z-index: 2;
  box-sizing: border-box;
  color: rgb(255, 255, 255);
  font-size: 30px;
  font-weight: 700;
  height: 48px;
  letter-spacing: 2px;
  line-height: 48px;
  overflow: visible;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
  text-align: left;
  padding: 0 20px;
  transform: translateY(2vw);
}

@media (max-width: 992px) {
  .anlab-qna-page-header__title {
    margin-bottom: 0px !important;
  }
}

@media (max-width: 768px) {
  .anlab-qna-page-header {
    height: 200px;
  }
  
  .anlab-qna-page-header__title {
    font-size: 24px;
    height: 36px;
    line-height: 36px;
  }
}

/* Main Content */
.anlab-qna-main {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem 20px;
}

/* Archive specific styles */
.anlab-qna-archive {
  width: 100%;
}

/* Single page specific styles */
.anlab-qna-single {
  width: 100%;
  max-width: 800px;
  margin: 0 auto 2rem auto;
  border-top: 2px solid #000;
}

.anlab-qna-single__title {
  font-size: calc(2.2rem);
  line-height: 3rem;
  font-weight: bold;
  margin-bottom: 2rem;
  color: #333;
}

.anlab-qna-single__content {
  line-height: 1.6;
  color: #555;
}

.anlab-qna-archive__header {
  text-align: center;
  margin: 2rem 0 3rem 0;
}

.anlab-qna-archive__title {
  font-size: 2.5rem;
  font-weight: bold;
}

.anlab-qna-archive__desc {
  font-size: 1.3rem;
  color: #888;
}

.anlab-qna-archive__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-bottom: 2.5rem;
}

@media (max-width: 900px) {
  .anlab-qna-single__title {
    font-size: calc(1.5rem);
    line-height: 2rem;
    margin-bottom: 2rem;
  }
  .anlab-qna-archive__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .anlab-qna-archive__grid {
    grid-template-columns: 1fr;
  }
}

.anlab-qna-archive__pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 3rem;
}

.anlab-qna-pagination__nav {
  display: flex;
  align-items: center;
  gap: 0.2rem;
  list-style: none;
  padding: 0;
  margin: 0;
}

.anlab-qna-pagination__numbers {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.anlab-qna-pagination__nav li {
  display: flex;
  align-items: center;
}

.anlab-qna-pagination__link {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  min-width: 38px;
  min-height: 38px;
  margin: 0 0.2rem;
  padding: 0.5rem 1.1rem;
  border-radius: 7px;
  background: #f3f3f3;
  color: #483d33;
  font-size: 1.13rem;
  font-family: inherit;
  text-decoration: none;
  font-weight: 400;
  transition: background 0.18s, color 0.18s, box-shadow 0.13s;
  border: 0;
  box-shadow: none;
  cursor: pointer;
  outline: none;
  line-height: 1;
}

.anlab-qna-pagination__link--current,
.anlab-qna-pagination__link:hover {
  background: #66533F;
  color: #fff;
  font-weight: 600;
}

.anlab-qna-pagination__prev,
.anlab-qna-pagination__next {
  background: none;
  border: none;
  box-shadow: none;
  color: #66533F;
  padding: 0 0.45em;
  min-width: unset;
  min-height: unset;
  font-size: 1.35rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.17s, background 0.17s;
  text-decoration: none;
}

.anlab-qna-pagination__prev svg,
.anlab-qna-pagination__next svg {
  display: block;
  vertical-align: middle;
  width: 22px;
  height: 22px;
}

.anlab-qna-pagination__prev-container,
.anlab-qna-pagination__next-container {
  display: flex;
  align-items: center;
  margin: 0 2px;
}

.anlab-qna-pagination__dots {
  background: none;
  color: #9c9489;
  font-size: 1.2em;
  cursor: default;
  pointer-events: none;
  padding: 0 0.55em;
  min-width: unset;
}

@media (max-width: 580px) {
  .anlab-qna-pagination__link {
    min-width: 30px;
    min-height: 30px;
    font-size: .96rem;
    padding: 0.3rem 0.5rem;
  }
  
  .pages-few .anlab-qna-pagination__numbers {
    display: flex;
    justify-content: center;
    gap: 0.4rem;
    margin: 0 auto;
    width: 100%;
  }
  
  .pages-many .anlab-qna-pagination__numbers {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    grid-template-rows: repeat(2, auto);
    gap: 0.4rem;
    margin: 0 auto;
    width: 100%;
  }
}

.anlab-qna-archive__noresult {
  grid-column: 1 / -1;
  text-align: center;
  color: #a00;
  font-size: 1.1rem;
}

.anlab-qna-card {
  width: 100%;
  height: 360px;
  background: #483D33;
  border-radius: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.anlab-qna-card__image-link {
  width: 100%;
  height: 252px;
  display: block;
  overflow: hidden;
  text-decoration: none;
}

.anlab-qna-card__image-frame {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #222;
  overflow: hidden;
  margin: 0;
  padding: 0;
  position: relative;
}

.anlab-qna-card__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.33s cubic-bezier(0.4,0,0.2,1);
}

.anlab-qna-card__image-text-overlay {
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  color: #fff;
  background: rgba(0,0,0,0.3);
  font-size: 1.3em;
  font-weight: 600;
  text-align: center;
  z-index: 2;
}

.anlab-qna-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  flex-direction: column;
}

.anlab-qna-inner div {
  font-size: 32px;
  line-height: 36px;
}

.anlab-qna-inner div.yellow {
  color: #F2F609;
}

@media screen and (max-width: 992px) {
  .anlab-qna-inner div {
    font-size: 28px;
    line-height: 32px;
  }
}

.anlab-qna-card__image-frame.anlab-qna-text-only .anlab-qna-card__image-text-overlay {
  background: rgba(0,0,0,0.5);
}

.anlab-qna-card__image-link:hover .anlab-qna-card__image,
.anlab-qna-card__image-link:focus .anlab-qna-card__image {
  transform: scale(1.05);
}

.anlab-qna-card__body {
  flex: 1;
  height: 100%;
  width: 100%;
  background: #66533F;
  padding: 15px 20px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  gap: 7px;
}

.anlab-qna-card__title-wrapper {
  flex: 1 1 auto;
  min-height: 30px;
  width: 100%;
  overflow: hidden;
  display: flex;
  align-items: flex-start;
}

.anlab-qna-card__title {
  width: 100%;
  color: #fff;
  font-size: 18px;
  font-weight: 300;
  line-height: 24.62px;
  letter-spacing: -.01em;
  word-break: break-word;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: normal;
  text-decoration: none;
}

.anlab-qna-card__title:hover {
  color: white;
}

.anlab-qna-card__meta-row {
  width: 100%;
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: flex-start;
  gap: 0;
}

.anlab-qna-card__date,
.anlab-qna-card__views {
  color: #C1B3A5;
  font-size: 17px;
  font-weight: 100;
  word-wrap: break-word;
  white-space: nowrap;
}

.anlab-qna-card__views {
  visibility: hidden;
}