/*
 Theme Name:   GeneratePress Child
 Theme URI:    https://onthewayinfo.ibuykorea.com
 Description:  금동이 - 수익형 자동화 블로그 자식 테마
 Author:        금동이
 Author URI:   https://onthewayinfo.ibuykorea.com
 Template:     generatepress
 Version:      1.0.0
 License:      GNU General Public License v2 or later
 Text Domain:  generatepress-child
*/

/* ===== Pretendard 폰트 로드 ===== */
@import url('https://cdn.jsdelivr.net/gh/orioncactus/pretendard/dist/web/static/pretendard.css');

/* ===== 전체 기본 폰트 설정 ===== */
body {
    font-family: 'Pretendard', -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 17px;
    line-height: 1.85;
    color: #1a1a2e;
    background-color: #f8f9fa;
}

/* ===== 본문 컨텐츠 최대 너비 ===== */
.entry-content {
    max-width: 780px;
}

/* ===== 제목 스타일 (봇이 주로 쓰는 h2, h3) ===== */
.entry-content h2 {
    font-size: 1.5rem;
    font-weight: 700;
    margin: 2.2rem 0 0.8rem;
    padding: 0.5rem 0 0.5rem 1rem;
    border-left: 4px solid #4f46e5;
    color: #1a1a2e;
    line-height: 1.4;
}

.entry-content h3 {
    font-size: 1.2rem;
    font-weight: 700;
    margin: 1.8rem 0 0.6rem;
    padding: 0.3rem 0 0.3rem 0.8rem;
    border-left: 3px solid #818cf8;
    color: #2d2d44;
}

.entry-content h4 {
    font-size: 1.05rem;
    font-weight: 600;
    margin: 1.4rem 0 0.4rem;
    color: #3d3d5c;
}

/* ===== 본문 단락 ===== */
.entry-content p {
    margin-bottom: 1.2rem;
    word-break: keep-all;
}

/* ===== 표(Table) - 봇이 자주 사용 ===== */
.entry-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.5rem 0;
    font-size: 0.95rem;
    overflow-x: auto;
    display: block;
}

.entry-content table th {
    background-color: #4f46e5;
    color: #ffffff;
    padding: 0.7rem 1rem;
    text-align: left;
    font-weight: 600;
}

.entry-content table td {
    padding: 0.6rem 1rem;
    border-bottom: 1px solid #e2e8f0;
    color: #2d2d44;
}

.entry-content table tr:nth-child(even) td {
    background-color: #f1f5f9;
}

.entry-content table tr:hover td {
    background-color: #e0e7ff;
}

/* ===== 인용문(blockquote) ===== */
.entry-content blockquote {
    margin: 1.5rem 0;
    padding: 1rem 1.2rem;
    border-left: 4px solid #4f46e5;
    background-color: #eef2ff;
    border-radius: 0 8px 8px 0;
    color: #3730a3;
    font-style: normal;
}

/* ===== 목록(ul, ol) ===== */
.entry-content ul, .entry-content ol {
    padding-left: 1.5rem;
    margin-bottom: 1.2rem;
}

.entry-content ul li, .entry-content ol li {
    margin-bottom: 0.4rem;
    line-height: 1.7;
}

/* ===== 모바일 반응형 ===== */
@media (max-width: 768px) {
    body {
        font-size: 16px;
    }
    .entry-content h2 {
        font-size: 1.3rem;
    }
    .entry-content h3 {
        font-size: 1.1rem;
    }
    .entry-content table {
        font-size: 0.88rem;
    }
}

/* ===== 목차(TOC) 스타일 ===== */
#toc_container {
    background: #f8faff;
    border: 1px solid #e0e7ff;
    border-left: 4px solid #4f46e5;
    border-radius: 0 8px 8px 0;
    padding: 16px 20px;
    margin: 1.5rem 0;
    width: 100% !important;
    box-sizing: border-box;
}

#toc_container .toc_title {
    text-align: left !important;
    font-size: 1rem;
    font-weight: 700;
    color: #1a1a2e;
    margin-bottom: 10px;
}

#toc_container ul {
    margin: 0 !important;
    padding-left: 1.2rem !important;
}

#toc_container ul li {
    text-align: left !important;
    margin-bottom: 5px;
    font-size: 0.92rem;
    line-height: 1.5;
}

#toc_container ul li a {
    color: #4f46e5;
    text-decoration: none;
}

#toc_container ul li a:hover {
    color: #ef4444;
    text-decoration: underline;
}

/* ===== 목차 강제 스타일 덮어쓰기 ===== */
#toc_container {
    background: #f8faff !important;
    border: 1px solid #e0e7ff !important;
    border-left: 4px solid #4f46e5 !important;
    border-radius: 0 8px 8px 0 !important;
    padding: 14px 18px !important;
    margin: 1.5rem 0 !important;
    width: auto !important;
    display: inline-block !important;
    min-width: 280px;
    max-width: 100%;
}

#toc_container .toc_title {
    text-align: left !important;
    font-size: 0.95rem !important;
    font-weight: 700 !important;
    color: #1a1a2e !important;
    margin-bottom: 8px !important;
}

#toc_container .toc_list,
#toc_container .toc_list ul {
    margin: 0 !important;
    padding-left: 1rem !important;
    list-style: none !important;
    counter-reset: none !important;
}

#toc_container .toc_list > li {
    text-align: left !important;
    margin-bottom: 4px !important;
    font-size: 0.9rem !important;
    padding-left: 0 !important;
}

#toc_container .toc_list > li > ul {
    padding-left: 1rem !important;
    margin-top: 3px !important;
}

#toc_container .toc_list li a {
    color: #4f46e5 !important;
    text-decoration: none !important;
}

#toc_container .toc_list li a:hover {
    color: #ef4444 !important;
    text-decoration: underline !important;
}

/* ===== 목차 왼쪽 정렬 완전 수정 ===== */
div#toc_container {
    float: none !important;
    display: block !important;
    width: 100% !important;
    max-width: 500px !important;
    margin: 1.5rem 0 !important;
    text-align: left !important;
}
div#toc_container p.toc_title {
    text-align: left !important;
}
div#toc_container ul.toc_list {
    text-align: left !important;
}
div#toc_container ul.toc_list li {
    text-align: left !important;
}

/* ===== 복사/공유 버튼 ===== */
.gd-share-wrap {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 1.5rem 0;
}
.gd-share-btn {
    display: inline-flex;
    align-items: center;
    padding: 9px 16px;
    border-radius: 8px;
    font-size: 0.88rem;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    border: none;
    transition: opacity 0.2s;
}
.gd-share-btn:hover { opacity: 0.85; }
.gd-copy   { background:#f1f5f9; color:#1a1a2e; }
.gd-fb     { background:#1877f2; color:#fff; }
.gd-x      { background:#000;    color:#fff; }
.gd-naver  { background:#03c75a; color:#fff; }
.gd-threads{ background:#000;    color:#fff; }
.gd-kakao  { background:#fee500; color:#3c1e1e; }
@media (max-width: 600px) {
    .gd-share-btn { padding: 8px 12px; font-size: 0.82rem; }
}

/* ===== 공유 버튼 섹션 ===== */
.gd-share-section {
    margin: 2rem 0;
    padding: 1.2rem;
    background: #f8faff;
    border-radius: 12px;
    border: 1px solid #e0e7ff;
}
.gd-share-msg {
    text-align: center;
    font-size: 0.95rem;
    color: #4f46e5;
    font-weight: 600;
    margin-bottom: 1rem;
}
.gd-share-wrap {
    display: flex;
    gap: 10px;
    justify-content: center;
    flex-wrap: wrap;
}
.gd-btn {
    padding: 11px 22px;
    border-radius: 8px;
    font-size: 0.92rem;
    font-weight: 700;
    cursor: pointer;
    border: none;
    transition: opacity 0.2s;
    text-decoration: none;
}
.gd-btn:hover { opacity: 0.85; }
.gd-copy   { background: #4f46e5; color: #fff; }
.gd-like   { background: #fff; color: #ef4444; border: 2px solid #fca5a5; min-width: 80px; }
.gd-share-toggle { background: #f97316; color: #fff; }

/* 소셜 목록 */
.gd-share-toggle-wrap { position: relative; }
.gd-social-list {
    position: absolute;
    top: calc(100% + 8px);
    left: 50%;
    transform: translateX(-50%);
    background: #fff;
    border: 1px solid #e0e7ff;
    border-radius: 10px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.12);
    z-index: 100;
    flex-direction: column;
    min-width: 160px;
    overflow: hidden;
}
.gd-social {
    display: block;
    padding: 10px 16px;
    font-size: 0.9rem;
    font-weight: 600;
    text-decoration: none;
    color: #1a1a2e;
    transition: background 0.15s;
}
.gd-social:hover { background: #f1f5f9; }

/* ===== 소셜 버튼 색상 수정 ===== */
.gd-social.gd-fb     { background: #1877f2; color: #fff; }
.gd-social.gd-x      { background: #1d9bf0; color: #fff; }
.gd-social.gd-naver  { background: #03c75a; color: #fff; }
.gd-social.gd-threads{ background: #7c3aed; color: #fff; }
.gd-social.gd-kakao  { background: #fee500; color: #3c1e1e; }
.gd-social:hover     { filter: brightness(1.1); }

/* ===== 이전글/다음글 ===== */
.gd-post-nav {
    display: flex;
    gap: 10px;
    margin: 1.5rem 0;
}
.gd-post-nav__item {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 14px 16px;
    background: #f8faff;
    border: 1px solid #e0e7ff;
    border-radius: 10px;
    text-decoration: none;
    transition: background 0.2s, border-color 0.2s;
}
.gd-post-nav__item:hover {
    background: #e0e7ff;
    border-color: #4f46e5;
}
.gd-post-nav__empty {
    flex: 1;
}
.gd-post-nav__prev { align-items: flex-start; }
.gd-post-nav__next { align-items: flex-end; text-align: right; }
.gd-post-nav__label {
    font-size: 0.78rem;
    font-weight: 700;
    color: #4f46e5;
}
.gd-post-nav__title {
    font-size: 0.9rem;
    font-weight: 500;
    color: #1a1a2e;
    line-height: 1.4;
    word-break: keep-all;
}
@media (max-width: 600px) {
    .gd-post-nav { flex-direction: column; }
    .gd-post-nav__next { align-items: flex-start; text-align: left; }
}

/* ===== 이번 주 인기글 ===== */
.gd-popular {
    margin: 1.5rem 0;
    background: #f8faff;
    border: 1px solid #e0e7ff;
    border-radius: 12px;
    padding: 16px 20px;
}
.gd-popular__title {
    font-size: 1rem;
    font-weight: 700;
    color: #1a1a2e;
    margin-bottom: 12px;
    padding-bottom: 10px;
    border-bottom: 2px solid #e0e7ff;
}
.gd-popular__list {
    list-style: none;
    padding: 0;
    margin: 0;
}
.gd-popular__item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 8px 0;
    border-bottom: 1px solid #f1f5f9;
}
.gd-popular__item:last-child { border-bottom: none; }
.gd-popular__num {
    min-width: 24px;
    height: 24px;
    background: #4f46e5;
    color: #fff;
    border-radius: 50%;
    font-size: 0.78rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    margin-top: 1px;
}
.gd-popular__item:nth-child(1) .gd-popular__num { background: #ef4444; }
.gd-popular__item:nth-child(2) .gd-popular__num { background: #f97316; }
.gd-popular__item:nth-child(3) .gd-popular__num { background: #eab308; }
.gd-popular__link {
    font-size: 0.92rem;
    color: #1a1a2e;
    text-decoration: none;
    line-height: 1.5;
    word-break: keep-all;
}
.gd-popular__link:hover { color: #4f46e5; text-decoration: underline; }

/* ===== 참고글 ===== */
.gd-reference {
    margin: 1.5rem 0;
    padding: 16px 20px;
    background: #fff;
    border: 1px solid #e0e7ff;
    border-radius: 10px;
}
.gd-reference__title {
    font-size: 0.95rem;
    font-weight: 700;
    color: #1a1a2e;
    margin-bottom: 10px;
    padding-bottom: 8px;
    border-bottom: 1px solid #e0e7ff;
}
.gd-reference__list {
    list-style: none;
    padding: 0;
    margin: 0;
}
.gd-reference__item {
    padding: 6px 0;
    border-bottom: 1px dashed #f1f5f9;
    font-size: 0.9rem;
}
.gd-reference__item:last-child { border-bottom: none; }
.gd-reference__item::before {
    content: "▶ ";
    color: #4f46e5;
    font-size: 0.7rem;
}
.gd-reference__link {
    color: #1a1a2e;
    text-decoration: none;
}
.gd-reference__link:hover {
    color: #4f46e5;
    text-decoration: underline;
}
.gd-reference__cat {
    color: #888;
    font-size: 0.82rem;
    font-weight: 400;
}

/* ===== 푸터 프로필 ===== */
.gd-profile {
    margin: 1.5rem 0;
    padding: 20px 24px;
    background: linear-gradient(135deg, #fef9f0 0%, #fff0f5 100%);
    border: 1px solid #fde8d8;
    border-radius: 16px;
}
.gd-profile__inner {
    display: flex;
    align-items: center;
    gap: 18px;
}
.gd-profile__img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid #fff;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    flex-shrink: 0;
}
.gd-profile__info {
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.gd-profile__name {
    font-size: 1.05rem;
    font-weight: 700;
    color: #1a1a2e;
    margin: 0;
}
.gd-profile__desc {
    font-size: 0.9rem;
    color: #555;
    line-height: 1.6;
    margin: 0;
    word-break: keep-all;
}
@media (max-width: 480px) {
    .gd-profile__inner { flex-direction: column; text-align: center; }
    .gd-profile__img { width: 70px; height: 70px; }
}

/* ===== 홈 레이아웃 ===== */
.gd-home-wrap {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 16px;
}
.gd-home-section {
    margin: 2.5rem 0;
}
.gd-home-section__title {
    font-size: 1.3rem;
    font-weight: 800;
    color: #1a1a2e;
    padding-bottom: 10px;
    border-bottom: 2px solid #1a1a2e;
    margin-bottom: 1.2rem;
}
.gd-home-section__title a {
    color: inherit;
    text-decoration: none;
}
.gd-home-section__title a:hover { color: #4f46e5; }

/* 카테고리 배지 */
.gd-cat-badge {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 700;
    color: #4f46e5;
    background: #eef2ff;
    padding: 2px 8px;
    border-radius: 4px;
    text-decoration: none;
    margin-bottom: 6px;
}

/* featured 레이아웃 */
.gd-featured-wrap {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}
.gd-featured-main__img {
    width: 100%;
    padding-top: 56%;
    background-size: cover;
    background-position: center;
    border-radius: 10px;
    margin-bottom: 12px;
}
.gd-featured-main__title {
    display: block;
    font-size: 1.2rem;
    font-weight: 700;
    color: #1a1a2e;
    text-decoration: none;
    line-height: 1.5;
    margin-bottom: 6px;
    word-break: keep-all;
}
.gd-featured-main__title:hover { color: #4f46e5; }
.gd-featured-main__date {
    font-size: 0.82rem;
    color: #888;
    margin-bottom: 8px;
}
.gd-featured-main__excerpt {
    font-size: 0.9rem;
    color: #555;
    line-height: 1.6;
    margin-bottom: 10px;
    word-break: keep-all;
}

/* sub featured */
.gd-featured-sub-wrap {
    display: flex;
    flex-direction: column;
    gap: 16px;
}
.gd-featured-sub {
    display: grid;
    grid-template-columns: 120px 1fr;
    gap: 12px;
}
.gd-featured-sub__img {
    width: 120px;
    height: 80px;
    background-size: cover;
    background-position: center;
    border-radius: 8px;
    flex-shrink: 0;
}
.gd-featured-sub__title {
    display: block;
    font-size: 0.92rem;
    font-weight: 700;
    color: #1a1a2e;
    text-decoration: none;
    line-height: 1.4;
    word-break: keep-all;
}
.gd-featured-sub__title:hover { color: #4f46e5; }
.gd-featured-sub__date {
    font-size: 0.78rem;
    color: #888;
    margin-top: 4px;
}

/* 카드 그리드 */
.gd-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}
.gd-card__img {
    width: 100%;
    padding-top: 65%;
    background-size: cover;
    background-position: center;
    border-radius: 8px;
    margin-bottom: 10px;
}
.gd-card__title {
    display: block;
    font-size: 0.92rem;
    font-weight: 700;
    color: #1a1a2e;
    text-decoration: none;
    line-height: 1.4;
    margin-bottom: 4px;
    word-break: keep-all;
}
.gd-card__title:hover { color: #4f46e5; }
.gd-card__date {
    font-size: 0.78rem;
    color: #888;
    margin-bottom: 4px;
}
.gd-card__excerpt {
    font-size: 0.85rem;
    color: #555;
    line-height: 1.5;
    word-break: keep-all;
}
.gd-more-link {
    display: inline-block;
    font-size: 0.82rem;
    color: #4f46e5;
    text-decoration: none;
    margin-top: 6px;
    font-weight: 600;
}
.gd-more-link:hover { text-decoration: underline; }

/* 반응형 */
@media (max-width: 900px) {
    .gd-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
    .gd-featured-wrap { grid-template-columns: 1fr; }
    .gd-grid { grid-template-columns: 1fr; }
    .gd-featured-sub { grid-template-columns: 100px 1fr; }
}

/* ===== 홈 레이아웃 v2 ===== */
.gd-home-wrap {
    max-width: 860px;
    margin: 0 auto;
    padding: 0 16px;
}
.gd-home-section { margin: 2rem 0 2.5rem; }
.gd-home-section__title {
    font-size: 1.2rem;
    font-weight: 800;
    color: #1a1a2e;
    padding-bottom: 8px;
    border-bottom: 2px solid #1a1a2e;
    margin-bottom: 1.2rem;
}
.gd-home-section__title a { color: inherit; text-decoration: none; }
.gd-home-section__title a:hover { color: #4f46e5; }
.gd-cat-badge {
    display: inline-block;
    font-size: 0.72rem;
    font-weight: 700;
    color: #4f46e5;
    background: #eef2ff;
    padding: 2px 7px;
    border-radius: 4px;
    text-decoration: none;
    margin-bottom: 5px;
}
.gd-meta-date { font-size: 0.8rem; color: #999; margin: 3px 0 5px; }
.gd-more-link {
    font-size: 0.82rem;
    color: #4f46e5;
    text-decoration: none;
    font-weight: 600;
}
.gd-more-link:hover { text-decoration: underline; }

/* 최신글 - featured 첫번째 */
.gd-latest-wrap { display: flex; flex-direction: column; gap: 0; }
.gd-latest-featured { margin-bottom: 1.5rem; }
.gd-latest-featured__img {
    width: 100%;
    padding-top: 52%;
    background-size: cover;
    background-position: center;
    border-radius: 10px;
    margin-bottom: 12px;
}
.gd-latest-featured__title {
    display: block;
    font-size: 1.25rem;
    font-weight: 800;
    color: #1a1a2e;
    text-decoration: none;
    line-height: 1.45;
    margin-bottom: 4px;
    word-break: keep-all;
}
.gd-latest-featured__title:hover { color: #4f46e5; }
.gd-latest-featured__excerpt {
    font-size: 0.9rem;
    color: #555;
    line-height: 1.6;
    margin-bottom: 6px;
    word-break: keep-all;
}

/* 리스트 아이템 (최신글 2~5번, 카테고리 전체) */
.gd-latest-list { display: flex; flex-direction: column; gap: 0; }
.gd-cat-list { display: flex; flex-direction: column; gap: 0; }
.gd-list-item {
    display: grid;
    grid-template-columns: 110px 1fr;
    gap: 14px;
    padding: 14px 0;
    border-bottom: 1px solid #f1f5f9;
    align-items: flex-start;
}
.gd-list-item:last-child { border-bottom: none; }
.gd-list-item__img {
    width: 110px;
    height: 76px;
    background-size: cover;
    background-position: center;
    border-radius: 8px;
    flex-shrink: 0;
}
.gd-list-item__title {
    display: block;
    font-size: 0.95rem;
    font-weight: 700;
    color: #1a1a2e;
    text-decoration: none;
    line-height: 1.45;
    word-break: keep-all;
    margin-bottom: 2px;
}
.gd-list-item__title:hover { color: #4f46e5; }
.gd-list-item__excerpt {
    font-size: 0.85rem;
    color: #666;
    line-height: 1.5;
    word-break: keep-all;
}

@media (max-width: 480px) {
    .gd-list-item { grid-template-columns: 90px 1fr; gap: 10px; }
    .gd-list-item__img { width: 90px; height: 62px; }
    .gd-list-item__title { font-size: 0.88rem; }
}

/* ===== 카테고리 첫글 큰 이미지 ===== */
.gd-featured-first__img {
    width: 100%;
    padding-top: 52%;
    background-size: cover;
    background-position: center;
    border-radius: 10px;
    margin-bottom: 12px;
    display: block;
}
.gd-featured-first__title {
    display: block;
    font-size: 1.1rem;
    font-weight: 800;
    color: #1a1a2e;
    text-decoration: none;
    line-height: 1.45;
    margin-bottom: 6px;
    word-break: keep-all;
}
.gd-featured-first__title:hover { color: #4f46e5; }
.gd-featured-first__excerpt {
    font-size: 0.9rem;
    color: #555;
    line-height: 1.6;
    margin-bottom: 8px;
    word-break: keep-all;
}

/* ===== 홈 레이아웃 v3 반응형 ===== */
.gd-home-wrap { max-width: 1100px; margin: 0 auto; padding: 0 20px; }
.gd-home-section { margin: 2.5rem 0; }
.gd-home-section__title {
    font-size: 1.25rem; font-weight: 800; color: #1a1a2e;
    padding-bottom: 10px; border-bottom: 2px solid #1a1a2e; margin-bottom: 1.2rem;
}
.gd-home-section__title a { color: inherit; text-decoration: none; }
.gd-home-section__title a:hover { color: #4f46e5; }
.gd-meta-date { font-size: 0.8rem; color: #999; margin: 4px 0 6px; }
.gd-more-link { font-size: 0.82rem; color: #4f46e5; text-decoration: none; font-weight: 600; display: inline-block; margin-top: 4px; }
.gd-more-link:hover { text-decoration: underline; }

/* 최신글 PC: 왼쪽 크게 + 우측 2x2 */
.gd-latest-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}
.gd-latest-main__img {
    width: 100%; padding-top: 62%;
    background-size: cover; background-position: center;
    border-radius: 10px; margin-bottom: 12px;
}
.gd-latest-main__title {
    display: block; font-size: 1.3rem; font-weight: 800;
    color: #1a1a2e; text-decoration: none; line-height: 1.4;
    margin-bottom: 4px; word-break: keep-all;
}
.gd-latest-main__title:hover { color: #4f46e5; }
.gd-latest-main__excerpt { font-size: 0.9rem; color: #555; line-height: 1.6; word-break: keep-all; }

/* 우측 2x2 서브 그리드 */
.gd-latest-sub-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}
.gd-sub-card__img {
    width: 100%; padding-top: 65%;
    background-size: cover; background-position: center;
    border-radius: 8px; margin-bottom: 8px;
}
.gd-sub-card__title {
    display: block; font-size: 0.92rem; font-weight: 700;
    color: #1a1a2e; text-decoration: none; line-height: 1.4;
    word-break: keep-all; margin-bottom: 2px;
}
.gd-sub-card__title:hover { color: #4f46e5; }
.gd-sub-card__excerpt { font-size: 0.82rem; color: #666; line-height: 1.5; word-break: keep-all; }

/* 카테고리 4컬럼 그리드 */
.gd-cat-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}
.gd-cat-card__img {
    width: 100%; padding-top: 65%;
    background-size: cover; background-position: center;
    border-radius: 8px; margin-bottom: 8px;
}
.gd-cat-card__title {
    display: block; font-size: 0.92rem; font-weight: 700;
    color: #1a1a2e; text-decoration: none; line-height: 1.4;
    word-break: keep-all; margin-bottom: 2px;
}
.gd-cat-card__title:hover { color: #4f46e5; }
.gd-cat-card__excerpt { font-size: 0.82rem; color: #666; line-height: 1.5; word-break: keep-all; }

/* 태블릿 */
@media (max-width: 900px) {
    .gd-cat-grid { grid-template-columns: repeat(2, 1fr); }
    .gd-latest-grid { grid-template-columns: 1fr; }
    .gd-latest-sub-grid { grid-template-columns: repeat(2, 1fr); }
}

/* 모바일 */
@media (max-width: 600px) {
    .gd-home-wrap { padding: 0 14px; }
    .gd-latest-sub-grid { grid-template-columns: 1fr; }
    /* 모바일에서 서브카드는 가로형 리스트로 */
    .gd-sub-card {
        display: grid;
        grid-template-columns: 100px 1fr;
        gap: 12px;
        align-items: flex-start;
    }
    .gd-sub-card__img {
        width: 100px; height: 70px;
        padding-top: 0; margin-bottom: 0;
    }
    .gd-cat-grid { grid-template-columns: 1fr; }
    .gd-cat-card {
        display: grid;
        grid-template-columns: 100px 1fr;
        gap: 12px;
        align-items: flex-start;
    }
    .gd-cat-card__img {
        width: 100px; height: 70px;
        padding-top: 0; margin-bottom: 0;
    }
}
