/* Basic Styles */
body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    color: #333;
    line-height: 1.6;
    background-color: #f8f9fa;
    padding-top: 70px;
}
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.text-orange { color: #F47A1F; }
/* --- 공통 헤더/푸터 --- */
header { background-color: #fff; padding: 15px 0; border-bottom: 1px solid #eee; position: fixed; width: 100%; top: 0; left: 0; z-index: 1000; box-shadow: 0 2px 5px rgba(0,0,0,0.05); }
header .container { display: flex; justify-content: space-between; align-items: center; }
header .logo img { height: 40px; }
header nav ul { list-style: none; margin: 0; padding: 0; display: flex; }
header nav ul li { margin-left: 30px; }
header nav ul li a { text-decoration: none; color: #333; font-weight: 500; }
.hamburger-menu { display: none; }
footer { background-color: #333; color: #fff; padding: 40px 0; text-align: center; }
footer p { margin: 5px 0; font-size: 0.9em; }
/* --- 메인 페이지 스타일 --- */
#main-visual { height: 85vh; background: url('main-visual.jpg') no-repeat center center/cover; display: flex; justify-content: center; align-items: center; flex-direction: column; gap: 8px; color: #fff; text-align: center; text-shadow: 2px 2px 4px rgba(0,0,0,0.5); }
#main-visual .slogan { font-size: 3.2em; font-weight: bold; }
#main-visual .slogan, #main-visual p { margin: 0; }
.section { padding: 80px 0; text-align: center; background-color: #fff; border-bottom: 1px solid #eee; }
.section:last-of-type { border-bottom: none; }
.section h2 { 
    font-size: 2.5em; 
    margin-bottom: 0;
    position: relative; 
    display: inline-block; 
}
.section h2::after { content: ''; display: block; width: 60px; height: 3px; background-color: #F47A1F; margin: 10px auto 0; }
.section-subtitle {
    text-align: center;
    margin-bottom: 50px;
    color: #555;
}
.card-container { display: flex; flex-wrap: wrap; justify-content: center; gap: 30px; }
.card { background-color: #fff; border: 1px solid #eee; border-radius: 8px; box-shadow: 0 4px 12px rgba(0,0,0,0.08); text-align: left; display: flex; flex-direction: column; width: calc(50% - 20px); transition: transform 0.3s ease, box-shadow 0.3s ease; }
.card:hover { transform: translateY(-5px); box-shadow: 0 8px 16px rgba(0,0,0,0.12); }
.card img { width: 100%; height: 250px; object-fit: cover; border-top-left-radius: 8px; border-top-right-radius: 8px; }
.card .card-content { padding: 25px; display: flex; flex-direction: column; flex-grow: 1; }
.card h3 { font-size: 1.5em; color: #222; margin: 0 0 15px 0; line-height: 1.4; }
.card p { font-size: 1em; color: #555; margin-bottom: 20px; flex-grow: 1; }
.card a { text-decoration: none; color: inherit; }
.card a[href]:not(.card-content a) { display: block; }
.card .card-content a { color: #F47A1F; font-weight: bold; margin-top: auto; }
/* --- 상세 페이지 스타일 --- */
.article-main { padding-top: 60px; padding-bottom: 60px; }
.article-container { max-width: 800px; margin: 0 auto; padding: 50px 60px; background-color: #fff; border: 1px solid #e9ecef; border-radius: 8px; box-shadow: 0 4px 20px rgba(0,0,0,0.05); }
.article-title-box { text-align: center; border-bottom: 1px solid #dee2e6; margin-bottom: 40px; padding-bottom: 30px; }
.article-title-box h1 { font-size: 2.5em; font-weight: 700; color: #333; margin: 0 0 10px 0; line-height: 1.3; }
.article-title-box h2 { font-size: 1.3em; color: #6c757d; font-weight: 400; margin: 0; }
.article-content { font-size: 1.1em; line-height: 1.9; color: #212529; text-align: left; }
.article-content p { margin: 0 0 25px 0; }
.article-content strong { color: #000; font-weight: 600; }
.article-content img.article-image {
    width: 100%;
    height: 550px;
    object-fit: cover;
    display: block;
    margin: 40px auto;
    border-radius: 8px;
}
.back-to-list-button { display: inline-block; text-align: center; background-color: #F47A1F; color: white !important; padding: 12px 25px; border-radius: 5px; text-decoration: none; font-weight: bold; }
.article-content h2 { font-size: 1.8em; margin-top: 0; margin-bottom: 15px; padding-bottom: 10px; border-bottom: 2px solid #333; }
.article-content h3 { font-size: 1.5em; font-weight: 700; color: #333; margin-top: 0; margin-bottom: 20px; padding-bottom: 10px; border-bottom: 2px solid #333; }
.intro-serif-font { font-family: 'Noto Serif KR', serif; margin: 0 0 25px 0; text-align: left; }
.intro-serif-font p { font-size: 1.1em; line-height: 2.0; color: #343a40; font-weight: 400; margin: 0; padding: 0; }
.info-box { background-color: #f1f3f5; padding: 20px; margin: 20px 0; border-radius: 5px; }
.info-box p { margin: 0; }
.info-box p:last-child { margin-bottom: 0; }
.highlight-box { background-color: #fdf2e2; border: 1px solid #fbe8d1; border-radius: 12px; padding: 20px 30px; margin: 40px 0; }
.highlight-box p { margin: 10px 0; font-size: 1em; color: #333; }
.highlight-text { font-weight: bold; color: #333; border-bottom: 2px solid #F47A1F; padding-bottom: 2px; }
.guideline-box { background-color: #fff; border-left: 4px solid #F47A1F; padding: 20px; margin: 20px 0; }
.info-box ul, .guideline-box ul, .final-choice ul { padding-left: 20px; margin: 15px 0 0 0; list-style-position: outside; }
.info-box li, .guideline-box li, .final-choice li { margin-bottom: 10px; padding-left: 5px; }
.image-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; margin: 40px 0; }
.dilemma-section { margin-top: 60px; padding-top: 40px;}
.final-choice { background-color: #e9f5ff; border: 1px solid #bde0fe; border-radius: 8px; padding: 25px 30px; margin: 40px 0; }
blockquote { border-left: 4px solid #F47A1F; padding: 10px 20px; margin: 30px 0; font-style: italic; font-size: 1em; color: #555; background-color: #f8f9fa; }

/* --- Figure 및 캡션 스타일 (최종 수정) --- */
.article-content figure {
  margin: 40px 0; /* Figure가 위아래 여백을 담당 */
}
.article-content figure img {
  margin-top: 0;
  margin-bottom: 0;
}
.article-content figure figcaption {
  text-align: center;
  margin-top: 1px; /* 이미지와 캡션 사이 간격 (이 값을 조절하세요) */
  color: #555;
  font-size: 0.9em;
  line-height: 1.4;
}

/* --- 반응형 디자인 --- */
@media (max-width: 768px) {
    body { padding-top: 70px; }
    .container { padding: 0 15px; }
    header nav { display: none; position: fixed; top: 70px; left: 0; width: 100%; height: calc(100% - 70px); background-color: rgba(255, 255, 255, 0.98); backdrop-filter: blur(4px); }
    header nav.is-active { display: flex; align-items: center; justify-content: center; }
    header nav ul { flex-direction: column; align-items: center; padding: 0; margin: 0; }
    header nav ul li { margin: 25px 0; }
    header nav ul li a { font-size: 1.6em; font-weight: bold; }
    header .hamburger-menu {
        display: block;
        width: 30px;
        height: 22px;
        position: relative;
        background: transparent;
        border: none;
        cursor: pointer;
        padding: 0;
    }
    header .hamburger-menu span {
        display: block;
        width: 100%;
        height: 3px;
        background-color: #333;
        border-radius: 3px;
        position: absolute;
        left: 0;
    }
    header .hamburger-menu span:nth-child(1) { top: 0; }
    header .hamburger-menu span:nth-child(2) { top: 9px; }
    header .hamburger-menu span:nth-child(3) { bottom: 0; }
    #main-visual { height: 60vh; background-size: cover; }
    #main-visual .slogan { font-size: 1.6em; }
    .section h2 { font-size: 2em; margin-bottom: 40px; }
    .card { width: 100%; }
    .image-grid { grid-template-columns: 1fr; }
    .article-main { padding-top: 30px; padding-bottom: 30px; }
    .article-container { padding: 25px 20px; margin: 0; }
    .article-title-box h1 { font-size: 1.8em; }
    .article-title-box h2 { font-size: 1.1em; }
    .article-content { font-size: 1em; line-height: 1.8; }
    .article-content h2 { font-size: 1.5em; margin-bottom: 15px; }
    .article-content h3 { font-size: 1.3em; }
    .intro-serif-font { margin-bottom: 20px; }
    .intro-serif-font p { font-size: 1.1em; }
    .info-box, .highlight-box, .final-choice { padding: 20px; margin: 30px 0; }

    /* --- [최종 수정] 모바일 모든 이미지 잘림 방지 --- */
    .article-content img {
        height: auto !important;
    }
}
/* --- 웹진 소개글 스타일 --- */
#intro {
    background-color: #f8f9fa;
}
.intro-text {
    max-width: 800px;
    margin: 0 auto;
    font-size: 1.15em;
    line-height: 2.0;
    color: #495057;
}
.intro-text p {
    margin-bottom: 2em;
}
.intro-text p:last-child {
    margin-bottom: 0;
}
.intro-last-line {
    font-weight: 500;
    color: #343a40;
}

/* ============================================= */
/* 디자인 인용문 스타일 (따옴표 1개 버전)       */
/* ============================================= */

.stylish-quote {
  position: relative; /* 큰 따옴표 위치의 기준점 */
  max-width: 700px; /* 가독성을 위한 최대 너비 */
  margin: 50px auto; /* 위아래 여백 및 좌우 중앙 정렬 */
  padding: 2em 3em; /* 텍스트와 박스 테두리 사이의 여백 */
  
  background-color: #f9f9f9; /* 은은한 배경색 */
  border-left: 5px solid #F47A1F; /* 왼쪽 강조선 */
  font-style: normal; /* 브라우저 기본 기울임꼴 제거 */
}

/* 인용문 안의 문단(<p>) 스타일 */
.stylish-quote p {
  margin: 0; /* 불필요한 여백 제거 */
  font-size: 1.1em; /* 기본 텍스트보다 살짝 크게 */
  line-height: 1.8; /* 줄 간격 */
  color: #333; /* 텍스트 색상 */
}

/* 여는 따옴표 (디자인 핵심) */
.stylish-quote::before {
  content: '“'; /* 화면에 따옴표 표시 */
  position: absolute; /* 자유롭게 위치시키기 */
  
  /* --- 따옴표 위치 --- */
  top: 0.1em;
  left: 0.1em;
  
  /* --- 따옴표 디자인 --- */
  font-size: 6em; /* 따옴표 크기 */
  font-family: Georgia, serif; /* 따옴표에 어울리는 폰트 */
  color: rgba(0, 0, 0, 0.16); /* 텍스트를 방해하지 않는 연한 색 */
  
  line-height: 1; /* 불필요한 줄 간격 제거 */
}
