﻿.ad_section { margin-bottom: 50px; }
.ad_label { font-size: 1.3rem; font-weight: 700; margin-bottom: 15px; }
.ad_list { display: flex; flex-wrap: wrap; gap: 20px; }

/* =========================
   플래티넘 (4개)
========================= */
.ad_type_3 .ad_item {
    width: calc(25% - 15px); /* 4개 */
    border: 1px solid #ddd;
    border-radius: 10px;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 3px 10px rgba(0,0,0,0.08);
}

/* =========================
   스페셜 (4개)
========================= */
.ad_type_2 .ad_item {
    width: calc(25% - 15px); /* 4개 */
    border: 1px solid #e5e5e5;
    border-radius: 8px;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 2px 6px rgba(0,0,0,0.05);
}

/* =========================
   일반형 (2개 / 썸네일 제거)
========================= */
.ad_type_1 .ad_item {
    width: calc(50% - 10px);
    border: 1px solid #eee;
    border-radius: 6px;
    padding: 8px 15px;
	margin-bottom: -10px; /* 카드간 세로 간격 */
    background: #fafafa;
    display: flex;
    justify-content: space-between; /* 정보와 버튼 좌우로 */
    align-items: center;
}

.ad_type_1 .ad_thumb { display: none; }

.ad_type_1 .ad_info {
    display: flex;            
    justify-content: space-between; /* 좌우 균등 */
    align-items: center;      /* 세로 중앙 */
    padding: 0;
    font-size: 14px;
    flex: 1;                  
}

.ad_type_1 .ad_info > div {
    flex: 1; /* 글 영역 넓이 */
}

.ad_type_1 .ad_btn {
    margin-top: 0;
    align-self: auto;
    margin-left: 10px; /* 글과 버튼 사이 공간 */
}

/* 공통 */
.ad_thumb {
    position: relative;
    aspect-ratio: 4 / 2; 
    overflow: hidden;
}

.ad_thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.ad_type_label {
    position: absolute;
    top: 6px;
    left: 6px;
    background: gold;
    color: #fff;
    padding: 3px 7px;
    font-size: 0.75rem;
    border-radius: 4px;
    font-weight: 600;
}

.ad_area1 {
    position: absolute;
    top: 6px;
    right: 6px;
    background: rgba(0,0,0,0.6);
    color: #fff;
    padding: 3px 7px;
    font-size: 0.75rem;
    border-radius: 4px;
}

/* 플래티넘 / 스페셜 정보 영역 */
.ad_type_2 .ad_info,
.ad_type_3 .ad_info {
    display: flex;
    flex-direction: column; 
    justify-content: space-between;
    padding: 14px;
    font-size: 0.9rem;
}

.ad_type_2 .ad_info .ad_btn,
.ad_type_3 .ad_info .ad_btn {
    align-self: flex-end; /* 오른쪽 */
    margin-top: 0;
}

.ad_subject {
    font-weight: 600;
    margin-bottom: 5px;
    
    /* 2줄로 제한하고 넘으면 ... 처리 */
    display: -webkit-box;
    -webkit-line-clamp: 2;  /* 최대 2줄 */
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    word-break: break-word; /* 너무 긴 단어 줄바꿈 */
}
.ad_location,
.ad_category,
.ad_pay,
.ad_antecedents { margin-bottom: 3px; color: #555; }

.ad_btn {
    display: inline-block;
    padding: 6px 12px;
    background: #007bff;
    color: #fff;
    border-radius: 4px;
    text-decoration: none;
    font-size: 0.85rem;
}

@media (max-width: 768px) {
    .ad_type_3 .ad_item,
    .ad_type_2 .ad_item {
        width: calc(50% - 10px); /* 모바일 2개 */
    }
    .ad_type_1 .ad_item {
        width: 100%;
    }
}

.highlight-underline {
    text-decoration: underline;
    text-decoration-color: #ff6600; /* 원하는 색상 */
    text-decoration-thickness: 2px; /* 밑줄 두께 */
    text-underline-offset: 3px; /* 밑줄과 글자 간격 */
}

/* 접이식 SEO 스타일 - 가로 100%, 배경 강조 */
.content-info {
    width: 100%;
    box-sizing: border-box;
    padding: 20px 30px; /* 좌우 여유 */
    background-color: #f9f9f9; /* 살짝 연한 회색 배경 */
    border: 1px solid #eee;
    margin: 20px 0;
    border-radius: 8px; /* 모서리 둥글게 */
}

.content-info summary {
    cursor: pointer;
    font-weight: 700;
    font-size: 16px;
    color: #333;
    outline: none; /* 기본 포커스 제거 */
}

.content-info summary::-webkit-details-marker {
    display: none; /* 기본 삼각형 제거 */
}

.content-info summary::before {
    content: "▶ "; /* 삼각형 아이콘 대체 */
    display: inline-block;
    transition: transform 0.2s ease;
}

.content-info[open] summary::before {
    transform: rotate(90deg);
}

.desc-text {
    margin-top: 15px;
    font-size: 15px;
    color: #555;
    line-height: 1.7;
}

.desc-text p {
    margin-bottom: 12px;
}