/* 제목 */
.page-title {
    margin: 60px 40px 40px;
    font-size: 36px;
    font-weight: bold;
}

/* 학습 섹션 */
.study-item {
    margin: 0 auto;
    max-width: 1100px;
    padding: 50px 40px;
    background: transparent;
    border: none;
    border-bottom: 1px solid #e5e7eb;
}

/* 마지막 항목만 선 제거 */
.study-item:last-child {
    border-bottom: none;
}

.study-item-inner {
    display: grid;
    grid-template-columns: 40% 1fr; 
    gap: 50px;                      
    align-items: start;                
    width: 100%;
}

.study-text {
    width: 100%;
    flex: none; 
    max-width: 100%;
}

.study-text h2 {
    margin-bottom: 15px;
    font-size: 28px;
}

.study-text p {
    line-height: 1.7;
    color: #444;
    margin-bottom: 20px;
}

.study-img-wrap {
    width: 100%;
    max-width: 600px; 
}

.study-img-wrap img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 10px;
}

/* 카테고리 버튼 */
.study-nav {
    margin: 0 40px 40px;
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    padding-bottom: 20px;
    border-bottom: 1px solid #e5e7eb;
}

.btn-common {
    padding: 6px 14px;
    font-size: 14px;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    background: white;
    color: #333;
    cursor: pointer;
    transition: 0.2s;
    text-align: center;
    text-decoration: none;
    display: inline-block;
}

.btn-common:hover {
    background: #f9fafb;
    border-color: #d1d5db;
    color: #111;
}

.about-links {
    display: flex;
    gap: 12px;
    margin-top: 15px;
}

/* 반응형 모바일 레이아웃 */
@media (max-width: 768px) {
    .page-title {
        font-size: 28px;
        margin: 40px 20px 20px;
    }

    .study-item {
        margin: 0;
        padding: 30px 20px;
    }

    .study-text {
        width: 100%;
    }

    .about-links {
        display: flex;
        flex-wrap: wrap;
        gap: 8px;
        margin-top: 10px;
        margin-bottom: 0px;
    }

    .about-links .btn-common {
        flex: 0 1 auto;
        width: max-content;
        padding: 6px 12px;
    }

    .study-img-wrap {
        width: 100%;
        max-width: 100%;
        margin-top: 5px;
    }

    .study-img-wrap img {
        width: 100%;
        height: auto;
    }
}