/* 기본 설정 */
body {
    font-family: 'Malgun Gothic', 'Arial', sans-serif;
    line-height: 1.6;
    margin: 0;
    padding: 0;
    background-color: #f4f7f6;
    color: #333;
}

h1, h2 {
    color: #a30000; /* 태국 연관 색상 (붉은색 계열) */
    text-align: center;
    margin-bottom: 20px;
}

/* 상단 제목 섹션 */
.title-header {
    background-color: #fff;
    padding: 5px 20px;
    text-align: center;
    border-bottom: 3px solid #a30000;
}

.title-header h1 {
    font-size: 2em;
    color: #a30000;
    margin: 0;
}

/* 썸네일 섹션 */
.latest-issues-section {
    padding: 40px 20px;
    background-color: #fcfcfc;
}

.thumbnails-container {
    display: flex;
    justify-content: center;
    gap: 30px; /* 썸네일 간격 증가 */
    max-width: 1200px; /* 최대 너비 확장 */
    margin: 0 auto;
    flex-wrap: wrap;
}

.thumbnail-item {
    width: calc(33.333% - 20px); /* 3개 항목에 맞게 너비 조정 */
    max-width: 250px; /* 개별 썸네일 최대 너비 (조정 가능) */
    text-align: center;
    background-color: #fff;
    padding: 10px;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.thumbnail-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15);
}

/* 이미지 비율 유지를 위한 래퍼 */
.image-wrapper {
    width: 100%;
    /* 가로 210 : 세로 280 = 3 : 4 비율 */
    padding-top: calc(280 / 210 * 100%); /* 세로 / 가로 * 100% (4/3 = 133.333%) */
    position: relative;
    margin-bottom: 10px;
    border: 1px solid #ddd;
    background-color: #eee;
}

.cover-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* 이미지가 잘리지 않고 전체가 보이도록 (3:4 비율) */
    object-fit: contain; 
    border-radius: 4px;
}

.issue-title {
    font-weight: bold;
    color: #555;
    font-size: 1em;
    margin: 10px 0;
}

.view-button {
    display: inline-block;
    background-color: #5e7995;
    color: white;
    padding: 8px 15px;
    border-radius: 4px;
    text-decoration: none;
    font-size: 0.9em;
    transition: background-color 0.3s;
}

.view-button:hover {
    background-color: #5e7995;
}

/* 메인 콘텐츠 섹션 (이전 코드 유지) */
.content-section {
    max-width: 800px;
    margin: 40px auto;
    padding: 0 20px;
}

.value-proposition ul {
    list-style: none;
    padding: 0;
    margin-top: 30px;
}

.value-proposition li {
    background-color: #fff3cd; /* 태국스러운 노란색 계열로 변경 */
    padding: 15px;
    margin-bottom: 10px;
    border-left: 5px solid #a30000;
    border-radius: 4px;
    font-size: 1.1em;
}

/* 구독 폼 섹션 (이전 코드 유지) */
.subscribe-form-section {
    margin-top: 50px;
    padding: 30px;
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.1);
}

.subscribe-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
}

.form-group input[type="text"],
.form-group input[type="email"] {
    width: 100%;
    padding: 12px;
    border: 1px solid #ccc;
    border-radius: 5px;
    box-sizing: border-box;
    font-size: 1em;
}

.cta-button {
    background-color: #a30000; /* 메인 브랜드 색상 사용 */
    color: white;
    padding: 15px 25px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1.2em;
    font-weight: bold;
    transition: background-color 0.3s ease;
}

.cta-button:hover {
    background-color: #7b0000;
}

.privacy-note {
    text-align: center;
    margin-top: 20px;
    font-size: 0.9em;
    color: #777;
}

/* 푸터 (이전 코드 유지) */
footer {
    text-align: center;
    padding: 20px;
    background-color: #333;
    color: #fff;
    margin-top: 50px;
}

/* 반응형 디자인 */
@media (max-width: 950px) {
    .thumbnails-container {
        gap: 15px;
    }
    .thumbnail-item {
        width: calc(50% - 10px); /* 화면이 좁아지면 2단으로 배열 */
        max-width: none;
    }
}

@media (max-width: 600px) {
    .thumbnail-item {
        width: 100%; /* 더 좁아지면 1단으로 배열 */
        max-width: 300px;
        margin: 0 auto 20px;
    }
    .title-header h1 {
        font-size: 2.5em;
    }
}