/*
============================================================================
AI 블로그 CSS - 2025년 9월 16일 사용자 제공 CSS로 교체
============================================================================
위치: /home/optigeo.kr/public/assets/css/blog.css
백업: /home/optigeo.kr/public/assets/css/blog.css.backup.[timestamp]
용도: OptiGEO 프로덕션 블로그와 일치하는 AI 생성 콘텐츠 스타일
============================================================================
*/

@import url("https://fonts.googleapis.com/css2?family=Noto+Sans+KR:wght@300;400;500;600;700&display=swap");
@import url("https://cdnjs.cloudflare.com/ajax/libs/tailwindcss/2.2.19/tailwind.min.css");

html {
    font-family: 'Pretendard';
    scroll-behavior: smooth;
}


/*--------------------------------------------------------------
# 블로그 상세 페이지 ai 발행 컨텐츠 css
--------------------------------------------------------------*/
.blog_ai_body main article{
    padding:0!important;
}


.nxt_content-section {
  scroll-margin-top: 80px;
}

#nxt_page-toc-nav ol {
  list-style-type: none;
  padding-left: 0;
  counter-reset: toc-counter-page;
}

#nxt_page-toc-nav ol>li {
  counter-increment: toc-counter-page;
  display: flex;
  align-items: flex-start;
  margin-bottom: 8px;
}

#nxt_page-toc-nav ol>li::before {
    content: counter(toc-counter-page) ". ";
    font-weight: 600;
    min-width: 20px;
    margin-right: 6px;
    color: #2C8842;
    font-size: 14px;
}

#nxt_page-toc-nav ol>li a {
        text-decoration: none !important;
  color: #4b3869;
  transition-property: color;
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
  transition-duration: 150ms;
  display: block;
  font-size: 14px;
  line-height: 1.5;
}

#nxt_page-toc-nav ol>li a:hover {
  text-decoration: underline;
  color: #6366f1;
}

.info-box {
  border-left-width: 4px;
  padding: 24px;
  border-radius: 8px;
  margin-top: 16px;
  margin-bottom: 24px;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}
.info-box h3 {
    margin-top: 0!important;
    font-size: 20px!important;
    font-weight: 600!important;
    margin-bottom: 16px!important;
}

.info-box-default {
  border-color: #2C8842;
  background-color: #e3f7e9;
}

.info-box-default h3 {
  color: #2C8842!important;
}
.info-box-default h4 {
  color: #2C8842!important;
}
.info-box ul li strong{
  color:#111!important;
}

.info-box-green {
  border-color: #22c55e;
  background-color: #f0fdf4;
}

.info-box-green h3 {
  color: #15803d!important;
}
.info-box-green h4 {
  color: #15803d!important;
}

.info-box-blue {
  border-color: #3b82f6;
  background-color: #eff6ff;
}

.info-box-blue h3 {
  color: #1d4ed8!important;
}
.info-box-blue h4 {
  color: #1d4ed8!important;
}

.info-box-red {
  border-color: #ef4444;
  background-color: #fef2f2;
}

.info-box-red h3 {
  color: #b91c1c!important;
}
.info-box-red h4 {
  color: #b91c1c!important;
}

.custom-table {
  width: 100%;
  border-collapse: collapse;
}

.custom-table th {
  background-color: #eaf5ee;
  color: #2C8842;
  padding: 12px 16px;
  text-align: left;
  font-weight: 600;
  border: 1px solid #e5e7eb;
}

.custom-table td {
  padding: 12px 16px;
  border: 1px solid #e5e7eb;
}

.custom-table tr:hover {
  background-color: #f9fafb;
}



#nxt_blog-content {
  background-color: transparent !important;
  box-shadow: none !important;
  border-radius: 0 !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
}

#nxt_blog-content h2 {
  font-size: 30px;
  font-weight: 700;
  margin-bottom: 32px;
  margin-top: 80px;
  color: #111;
  padding-bottom: 8px;
  border-bottom: 2px solid #cbd5e1;
}

#nxt_blog-content h3 {
  font-size: 24px;
  font-weight: 600;
  margin-bottom: 24px;
  margin-top: 40px;
  color: #2C8842;
}

#nxt_blog-content h4 {
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 16px;
}

#nxt_blog-content p {
  line-height: 1.75;
  margin-bottom: 16px;
}

#nxt_blog-content ul {
  list-style-type: disc;
  padding-left: 24px;
  margin-bottom: 16px;
}

#nxt_blog-content ul li {
  margin-bottom: 8px;
}

#nxt_blog-content ol {
  list-style-type: decimal;
  padding-left: 24px;
  margin-bottom: 16px;
}

#nxt_blog-content ol li {
  margin-bottom: 8px;
}

#nxt_blog-content strong {
  color: #2C8842;
}

#nxt_blog-content a:not(.toc-link) {
  color: #6366f1;
  text-decoration: underline;
}

#nxt_blog-content a:not(.toc-link):hover {
  color: #2C8842;
}

#nxt_blog-content blockquote {
  border-left: 4px solid #a78bfa;
  padding-left: 16px;
  margin-left: 0;
  font-style: italic;
  color: #556677;
}

#nxt_blog-content img {
  border-radius: 8px;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  margin-top: 16px;
  margin-bottom: 8px;
  max-width: 100%;
  height: auto;
}

#nxt_blog-content figcaption {
  text-align: center;
  font-size: 14px;
  color: #6b7280;
  margin-top: 4px;
  margin-bottom: 24px;
  font-style: italic;
}

.nxt_process-step-number {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  background-color: #2C8842;
  color: white;
  border-radius: 9999px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  font-size: 20px;
  margin-right: 16px;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

.nxt_process-step-title {
  font-size: 18px;
  font-weight: 600;
  color: #111;
  margin-top: 0;
  margin-bottom: 4px;
}

/* 목차 숨김 버튼 스타일 */
#nxt_toggle-toc-button {
    cursor: pointer;
    padding: 6px 10px;
    border-radius: 6px;
    font-size: 12px;
    margin-left: 8px;
}

.nxt_card {
    margin:10px 0 0 0!important;
    background-color: white;
    border-radius: 12px;
    font-size: 18px;
    font-weight: 700;
    color: #111;
    border: 1px solid #eee;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.nxt_card:hover {
    background: #e3f7e9;
}
.nxt_card .border-blue-200{
    border-color:#eee;
}

.nxt_card button{
    padding-right: 50px;
    position:relative;
    display:block;
}
.nxt_accordion-button:hover {
    background-color: #e3f7e9 !important;
}
.nxt_card button.nxt_accordion-button.active{
    background: #e3f7e9;
}
.nxt_card button svg {
    top: 22px;
    right: 15px;
    position: absolute;
}
.nxt_card button.active svg{
    transform: rotate(180deg);
}

.nxt_accordion-content {
    background-color: #ffffff;
    margin: 0px;
    color : black;
    font-weight: 400;
    border-radius: 0 0 16px 16px;
}
.nxt_accordion-arrow {
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), color 0.3s;
    color: #e11d48;
}

.nxt_accordion-button.active .nxt_accordion-arrow {
  transform: rotate(180deg);
  color: #e11d48;
}

/* ai_blog.css 추가 아래 추가 */
.h-\[400px\]{
  height:400px;
}
@media (max-width: 767px) {
    html .blog_ai_body *{
        /* font-size: 100%; */
        font-size: 16px;
    }
    
    #nxt_blog-content h2 {
        font-size: 24px;
        margin-bottom: 30px;
        margin-top: 80px;
        padding-bottom: 8px;
    }
    #nxt_blog-content h3 {
        font-size: 20px;
        margin-bottom: 20px;
        margin-top: 30px;
    }
    #nxt_blog-content h4 {
        font-size: 18px;
        margin-bottom: 14px;
    }
    
    
    #nxt_blog-content ul {
        padding-left: 14px;
        margin-bottom: 16px;
    }
    
    
    .nxt_process-step-number {
        width: 28px;
        height: 28px;
        font-size: 14px;
        margin-right: 10px;
    }
    
    
    .nxt_card button {
        line-height: 22px;
    }
}
@media (max-width: 600px) {
    table.custom-table {
        width: 700px;
    }
    
    
}

/* ======================================
   이전 콘텐츠 호환성을 위한 스타일
   (백업에서 가져온 스타일, 향후 제거 가능)
   ====================================== */

/* blog-table 스타일 (백업에서 가져옴) */
.blog-table {
    width: 100%;
    margin: 0;
    border-collapse: separate;
    border-spacing: 0;
    background: white;
    border-radius: 0.5rem;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    border: none;
}

.blog-table th {
    background: #f8fafc;
    padding: 1rem;
    text-align: left;
    font-weight: 600;
    color: #1e293b;
    border-bottom: 2px solid #e2e8f0;
}

.blog-table th:first-child {
    border-top-left-radius: 0.5rem;
}

.blog-table th:last-child {
    border-top-right-radius: 0.5rem;
}

.blog-table td {
    padding: 1rem;
    border-bottom: 1px solid #e2e8f0;
    color: #475569;
}

.blog-table tbody tr:last-child td {
    border-bottom: none !important;
}

.blog-table tbody tr:last-child {
    border-bottom: none !important;
}

.blog-table tr:last-child td {
    border-bottom: none !important;
}

/* 추가 강제 스타일 - 테이블 하단 보더 완전 제거 */
.blog-table tbody tr:last-child td,
.blog-table tbody tr:last-of-type td,
.blog-table tr:last-child td,
.blog-table tr:last-of-type td {
    border-bottom: none !important;
    border-bottom-width: 0 !important;
    border-bottom-style: none !important;
}

/* 테이블 전체에 대한 하단 보더 제거 */
.blog-table tbody:last-child tr:last-child td {
    border-bottom: none !important;
}

.blog-table tbody tr:last-child td:first-child {
    border-bottom-left-radius: 0.5rem;
}

.blog-table tbody tr:last-child td:last-child {
    border-bottom-right-radius: 0.5rem;
}

.blog-table tr:hover {
    background: #f8fafc;
}

/* 단계별 가이드 스타일 (백업에서 가져옴) */
.step-guide {
    counter-reset: step-counter;
    margin: 2rem 0;
}

.step-item {
    counter-increment: step-counter;
    margin-bottom: 1.5rem;
    padding: 1.25rem;
    background: #f8fafc;
    border-left: 4px solid #6366f1;
    border-radius: 0 0.5rem 0.5rem 0;
    position: relative;
}

.step-item::before {
    content: counter(step-counter);
    position: absolute;
    left: -20px;
    top: 50%;
    transform: translateY(-50%);
    background: #6366f1;
    color: white;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 0.875rem;
}

.step-title {
    font-weight: 600;
    font-size: 1.125rem;
    color: #1e293b;
    margin-bottom: 0.5rem;
}

/* CTA 박스 스타일 (백업에서 가져옴) */
.cta-box {
    margin: 2rem 0;
    padding: 2rem;
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    color: white;
    border-radius: 1rem;
    text-align: center;
}

.cta-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.cta-description {
    font-size: 1.125rem;
    margin-bottom: 1.5rem;
    opacity: 0.9;
}

.cta-button {
    display: inline-flex;
    align-items: center;
    padding: 0.875rem 2rem;
    background: white;
    color: #6366f1;
    border-radius: 0.5rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

/* FAQ 스타일 (백업에서 가져옴) */
.faq-container {
    margin: 1.5rem 0 0 0; /* 상단만 여백, 하단 여백 제거 */
    padding-top: 1.5rem;
    border-top: 1px solid #e2e8f0; /* 콘텐츠와 구분선 */
}

.faq-container h3 {
    margin-bottom: 1.5rem;
    font-size: 1.25rem;
    font-weight: 700;
    color: #1e293b;
    text-align: left; /* 왼쪽 정렬로 변경 */
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #6366f1;
    display: block;
    width: 100%;
}

.faq-item {
    margin-bottom: 1rem;
    border: 1px solid #e2e8f0;
    border-radius: 0.5rem;
    overflow: hidden;
}

.faq-question {
    padding: 1rem 1.25rem;
    background: #f8fafc;
    font-weight: 600;
    color: #1e293b;
    cursor: pointer;
    position: relative;
    transition: background-color 0.2s ease;
}

.faq-question:hover {
    background: #f1f5f9;
}

.faq-answer {
    padding: 1rem 1.25rem;
    background: white;
    border-top: 1px solid #e2e8f0;
    line-height: 1.6;
    color: #475569;
    display: block;
}

/* 모바일 조정 (이전 콘텐츠 호환성) */
@media (max-width: 600px) {
    /* 모바일용 blog-table 스타일 */
    .blog-table {
        font-size: 0.875rem;
    }
    
    .blog-table th,
    .blog-table td {
        padding: 0.75rem 0.5rem;
    }
    
    /* 모바일 단계별 가이드 조정 */
    .step-item {
        margin-left: 20px;
        padding: 1rem;
    }
    
    /* 모바일 CTA 조정 */
    .cta-box {
        padding: 1.5rem 1rem;
    }
    
    .cta-title {
        font-size: 1.25rem;
    }
    
    .cta-description {
        font-size: 1rem;
    }
    
    /* 모바일 FAQ 조정 */
    .faq-container {
        margin-top: 1rem;
        padding-top: 1rem;
    }
    
    .faq-container h3 {
        font-size: 1.125rem;
        margin-bottom: 1rem;
    }
    
    .faq-question {
        padding: 0.75rem 1rem;
        font-size: 0.9rem;
    }
    
    .faq-answer {
        padding: 0.75rem 1rem;
        font-size: 0.875rem;
    }
}

/* faq 컨텐츠 */
.faqContentBox{
   position:relative;
}
.faqContentBox h3.font-bold {
    margin: 10px 0 14px 0!important;
}
@media (max-width: 767px) {
   .faqContentBox .border-l-4 {
      padding-right: 1rem;
   }
   .faqContentBox .leading-relaxed{
      padding:0 0 0 22px;
   }
   .faqContentBox h3.font-bold {
      margin: 10px 0 10px 0!important;
   }
   .faqContentBox h3.font-bold span{
      font-size:18px;
   }
}