/* 블로그 페이지 스타일 */
.blog-list {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem 1rem;
}
body {
  padding: 0;
  margin: 0;
}

.blog-header {
  text-align: center;
  margin-bottom: 3rem;
  padding: 3rem 0;
  background: linear-gradient(
    135deg,
    var(--color-background) 0%,
    var(--color-background-alt) 100%
  );
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow-sm);
  z-index: 2;
}

.blog-header h1 {
  font-size: var(--font-size-xxl);
  color: var(--color-text);
  margin-bottom: 1rem;
  font-weight: bold;
}

.blog-header p {
  color: var(--color-text-light);
  font-size: var(--font-size-lg);
}

.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: 2rem;
  margin-bottom: 3rem;
}

.blog-card {
  background: white;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
  border: 1px solid #ddd;
  height: 100%;
}

.card-link {
  text-decoration: none !important;
  color: inherit;
  display: block;
  height: 100%;
}

.blog-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
}

.blog-card img {
  width: 100%;
  height: 220px;
  object-fit: cover;
}

.blog-card-content {
  padding: 1.8rem;
}

.blog-card h2 {
  font-size: var(--font-size-xl);
  margin-bottom: 1rem;
  color: var(--color-text);
  font-weight: var(--font-weight-bold);
  line-height: 1.4;
}

.blog-card p {
  color: var(--color-text-light);
  line-height: 1.6;
  margin-bottom: 1.2rem;
  font-size: var(--font-size-base);
}

.blog-card .date {
  color: var(--color-text-muted);
  font-size: var(--font-size-sm);
  display: block;
  margin-bottom: 1rem;
}

.blog-card .read-more {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.7rem 1.5rem;
  background: var(--color-primary);
  color: var(--color-white);
  text-decoration: none;
  border-radius: var(--border-radius-full);
  font-weight: var(--font-weight-medium);
  transition: var(--transition-all);
}

.blog-card .read-more:hover {
  background: var(--color-primary-dark);
  transform: translateX(5px);
}

.blog-categories {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 3rem;
}

.category-btn {
  padding: 0.8rem 1.5rem;
  border: none;
  background: var(--color-white);
  border-radius: var(--border-radius-full);
  cursor: pointer;
  transition: var(--transition-all);
  font-weight: var(--font-weight-medium);
  color: var(--color-text-light);
  border: 1px solid var(--color-border);
}

.category-btn:hover,
.category-btn.active {
  background: var(--color-primary);
  color: var(--color-white);
  border-color: var(--color-primary);
}

/* 추가 스타일 */

.html2pdf {
  table {
    margin: 8px 0;
  }

  td {
    vertical-align: middle !important;
    text-align: center;
  }

  /* 블로그 전용 스타일 */
  .blog-container {
    max-width: 800px;
    margin: 2rem auto;
    padding: 0 1rem;
    background: white;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  }
  .blog-header {
    padding: 2rem;
    border-bottom: 1px solid #eee;
  }
  .blog-title {
    font-size: 2rem;
    color: #333;
    margin-bottom: 1rem;
    line-height: 1.4;
  }
  .blog-meta {
    color: #666;
    font-size: 0.9rem;
    margin-bottom: 1rem;
  }
  .blog-tags {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
  }
  .tag {
    background: #e3f2fd;
    color: #1976d2;
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
  }
  .blog-content {
    padding: 2rem;
  }

  @media (max-width: 768px) {
    .main-content {
      padding: 0.5rem;
    }
    .blog-container {
      margin: 0;
      max-width: 100%;
      padding: 0;
    }
    .blog-header,
    .blog-content {
      padding: 1rem 1.2rem;
    }
    .blog-title {
      font-size: 1.4rem;
      line-height: 1.3;
    }
    .blog-meta {
      font-size: 0.8rem;
    }
    .tag {
      font-size: 0.7rem;
      padding: 0.2rem 0.6rem;
    }
  }

  /* --- Brochure Styles --- */
  .blog-content {
    line-height: normal;
  } /* 브로셔 스타일과 충돌 방지 */
  .brochure-container {
    /* max-width: 720px; */
    margin: 0px auto;
    font-family: "Nanum Gothic", sans-serif;
  }

  /* 웹(블로그) 뷰 기본 스타일 */
  .a4-page {
    background: #fff;
    width: 100%;
    /* margin-top: 2px; */
    /* height: auto; */
    /* max-height: 1020px; */

    /* min-height: 1080px; */
    min-height: calc(10.8in);
    height: calc(10.8in);
    overflow: hidden;

    border: 1px solid #ccc;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    position: relative;
  }
  .a4-page {
    margin-top: 0.3in;
    margin-bottom: 0.1in;
  }
  /* .a4-page:not(:last-child) {
        margin-top: 10px;
      } */
  .page-content {
    flex-grow: 1;
    overflow: visible;
    height: calc(9.8in);
  }
  .pdf-page-break {
    display: none;
  } /* 웹에서는 페이지 나누기 숨김 */

  /* PDF 생성을 위한 전용 스타일 (JS로 클래스 토글) */
  .pdf-export-mode .brochure-container {
    max-width: none;
  }
  .pdf-export-mode .a4-page {
    height: 1020px;
    overflow: hidden;
    border: 1px solid #ccc;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    margin-bottom: 0;
  }
  .pdf-export-mode .page-content {
    overflow: hidden;
  }
  .html2pdf__page-break {
    display: block;
    page-break-before: always;
    /* margin-top: 20px; */
  }

  .footer-text-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
  }

  /* 2페이지 콘텐츠를 위한 압축 스타일 */
  #page2 .spec-section {
    padding: 10px 30px 20px;
  } /* 상단여백축소 */
  #page2 .spec-header {
    margin-bottom: 10px;
  }
  #page2 .spec-header p {
    padding-bottom: 8px;
    margin-bottom: 0;
    font-size: 11px;
  }
  #page2 .spec-title-bar {
    padding-top: 6px;
    padding-bottom: 6px;
  }
  #page2 .spec-title-bar h3 {
    font-size: 20px;
  }
  #page2 .spec-table-group {
    margin-top: 5px;
  }
  #page2 .spec-table-group h4 {
    padding: 5px 15px;
    font-size: 14px;
  }
  #page2 .spec-table-group th,
  #page2 .spec-table-group td {
    padding: 4px 10px;
    font-size: 11.5px;
  }

  #pdf-download-btn {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background-color: #c00000;
    color: white;
    border: none;
    border-radius: 50px;
    width: 60px;
    height: 60px;
    font-size: 13px;
    font-weight: bold;
    cursor: pointer;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    z-index: 1000;
    transition: background-color 0.2s;
  }
  #pdf-download-btn:hover {
    background-color: #e04444;
  }
  .brochure-container header {
    padding: 10px 30px;
  }
  .header-models {
    text-align: right;
    font-size: 11px;
    color: #555;
    margin-bottom: 5px;
  }
  .header-models span {
    margin-left: 10px;
  }
  .brochure-container header h1 {
    font-size: 36px;
    font-weight: 800;
    margin: 0;
    color: #222;
  }
  .main-section {
    padding: 20px 30px;
  }
  .top-content {
    display: flex;
    gap: 20px;
    align-items: center;
    margin-bottom: 20px;
  }
  .product-image-area {
    flex: 0 0 280px;
    text-align: center;
  }
  .product-image-area img {
    /* width: 100%; */
    /* background-color: #f0f0f0; */
    height: 280px;
    background-color: #ffffff;
  } /* 이미지가 없을 경우를 대비 */
  .product-desc-area h2 {
    font-size: 24px;
    font-weight: 800;
    margin: 0 0 15px 0;
    display: flex;
    align-items: center;
  }
  .square-bullet {
    width: 8px;
    height: 8px;
    background-color: #777;
    margin-right: 8px;
  }
  .product-desc-area p {
    font-size: 16px;
    line-height: 2.0;
    margin: 15px 0;
  }
  .feature-title-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #c00000;
    color: white;
    padding: 6px 15px;
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 20px;
  }
  .bar-left {
    background-color: #fff;
    color: #c00000;
    padding: 3px 10px;
    margin-left: -15px;
    border-top-right-radius: 5px;
    border-bottom-right-radius: 5px;
  }
  .key-features {
    display: flex;
    align-items: center;
    /* gap: 15px; */
    gap: 45px;
    margin-bottom: 30px;
  }
  .key-features-left {
    flex-grow: 1;
  }
  .key-features-left h3 {
    font-size: 22px;
    font-weight: 700;
    margin: 0 0 5px 0;
  }
  .key-features-left .large-text {
    font-size: 20px;
    font-weight: 700;
    margin: 5px 0;
  }
  .curly-brace {
    width: 20px;
    height: 80px;
    border: 3px solid #777;
    border-left: none;
    border-radius: 0 20px 20px 0;
  }

  .support-box {
    border: 2px solid #ccc;
    padding: 10px 20px;
    text-align: center;
  }
  /* .support-box .map5000-text {
    font-size: 20px;
    font-weight: 800;
    display: block;
  }
  .support-box .MAP9200-text {
    font-size: 20px;
    font-weight: 800;
    display: block;
  }
  .support-box .MAP9200-MESH-text {
    font-size: 20px;
    font-weight: 800;
    display: block;
  } */
  .support-box .fa-check {
    color: #28a745;
    font-size: 24px;
    vertical-align: middle;
  }
  .support-box p {
    margin: 2px 0;
    font-size: 14px;
    font-weight: 700;
  }
  .category-features .feature-row {
    display: flex;
    align-items: stretch;
    margin-bottom: 16px;
  }
  
  .category-label {
    background-color: #dce6f2;
    color: #365f91;
    font-weight: 700;
    padding: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    writing-mode: horizontal-tb;
    flex: 0 0 30px;
  }
  .feature-list {
    flex-grow: 1;
    padding: 10px 15px;
    background-color: #f2f2f2;

    display: flex;
    flex-direction: column;
    justify-content: center;
  }
  .feature-list ul {
    list-style-type: none;
    margin: 0;
    padding: 0;
  }
  .feature-list li {
    font-size: 13px;
    padding: 2px 0;
  }
  .feature-list li::before {
    content: "○";
    margin-right: 8px;
  }
  .vertical-bar {
    width: 8px;
    background-color: #4f81bd;
  }
  .spec-section {
    padding: 20px 30px;
  }
  .spec-header h2 {
    font-size: 28px;
    font-weight: 700;
    margin: 0;
  }
  .spec-header h2 sup {
    font-size: 14px;
    vertical-align: top;
  }
  .spec-header p {
    font-size: 12px;
    border-bottom: 2px solid #ccc;
    padding-bottom: 10px;
  }
  .spec-title-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #002060;
    color: white;
    padding: 8px 15px;
    font-weight: 700;
  }
  .spec-title-bar h3 {
    font-size: 22px;
    margin: 0;
  }
  .spec-table-group {
    margin-top: 10px;
  }
  .spec-table-group h4 {
    background-color: #003366;
    color: white;
    font-size: 16px;
    padding: 8px 15px;
    margin: 0;
  }
  .spec-table-group table {
    width: 100%;
    border-collapse: collapse;
    background-color: #f2f2f2;
  }
  .spec-table-group th,
  .spec-table-group td {
    border: 1px solid #ddd;
    padding: 6px 10px;
    font-size: 12.5px;
    text-align: left;
  }
  .spec-table-group th {
    background-color: #e7e6e6;
    font-weight: 700;
    width: 25%;
  }
  .brochure-footer {
    width: 100%;
    box-sizing: border-box;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #f2f2f2;
    padding: 10px 30px;
    font-size: 11px;
    border-top: 2px solid #ddd;
    flex-shrink: 0;
  }
  .brochure-footer img {
    height: 30px;
  }

  #brochure-footer {
    height: 1in;
  }

  @media print {
    body {
      margin: 0 !important;
      padding: 0 !important;
      background-color: #fff;
    }
    #pdf-download-btn,
    #header_html,
    #footer_html,
    .blog-header {
      display: none;
    }
    .main-content {
      padding: 0 !important;
    }
    .blog-container {
      max-width: none;
      width: 100%;
      margin: 0;
      padding: 0 !important;
      box-shadow: none;
      border-radius: 0;
    }
    .blog-content {
      padding: 0 !important;
    }
    .brochure-container {
      margin: 0;
      max-width: none;
    }
    .a4-page {
      border: none;
      box-shadow: none;
      overflow: visible;
      height: auto;
    }
  }

  /* 반응형 스타일 */
  @media (max-width: 768px) {
    .blog-grid {
      grid-template-columns: 1fr;
      padding: 0 1rem;
    }

    .blog-header {
      padding: 2rem 1rem;
      margin: 0 1rem 2rem 1rem;
    }

    .blog-header h1 {
      font-size: var(--font-size-xl);
    }

    .blog-categories {
      padding: 0 1rem;
    }

    .category-btn {
      padding: 0.6rem 1.2rem;
      font-size: var(--font-size-sm);
    }
   
  }
}
