/* =======================
   MATERIAL PAGE (소재)
   ======================= */

:root {
    --material-red: #e11d2e;
    --material-gray: #555;
    --material-black: #111;
}

/* ===== 배경 전체 래퍼 ===== */
.materials-content-wrap {
    position: relative;
    width: 100%;
    overflow: hidden;
    background: #fff;
}

/* 배경 이미지 */
.materials-content-wrap .bg-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: auto;
    z-index: 0;
    object-fit: cover;
}

/* ===== 실제 콘텐츠 ===== */
.materials-content {
    width: min(1200px, 92%);
    margin: 0 auto;
    text-align: center;
    padding: clamp(4rem, 6vw, 6rem) 0 clamp(6rem, 8vw, 8rem);
    position: relative;
    z-index: 1; /* 배경 위 */
    font-family: "Noto Sans KR", system-ui, sans-serif;
}

/* ===== 소재 섹션 ===== */
.material-section {
    margin-bottom: clamp(3rem, 6vw, 5rem);
}
.business-title {
    font-size: clamp(1.2rem, 2.4vw, 1.6rem);
    font-weight: 800;
    color: var(--material-black);
    margin-bottom: clamp(0.5rem, 1vw, 1rem);
}
.business-intro .content-sub {
    font-size: clamp(0.9rem, 1.3vw, 1rem);
    opacity: 0.8;
    color: black;
    margin-bottom: clamp(3rem, 6vw, 5rem);
    line-height: 1.6;
}
.business-intro .highlight {
    font-size: clamp(1rem, 1.8vw, 1.2rem);
    font-weight: 700;
    color: var(--comp-black);
    margin-bottom: clamp(0.6rem, 1.2vw, 1rem);
}

/* ===== 소재 이미지 ===== */
.material-images {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    gap: clamp(4rem, 8vw, 5rem);
    margin-bottom: clamp(3rem, 6vw, 5rem);
    margin-top: clamp(3rem, 6vw, 5rem);
}
.material-images img {
    width: clamp(280px, 40vw, 700px);
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    object-fit: cover;
    transition: transform 0.3s ease;
}
.material-images img:hover {
    transform: scale(1.03);
}

/* ===== 태그 ===== */
.material-tags {
    margin: clamp(1rem, 2vw, 1.5rem) 0;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: clamp(1rem, 3vw, 3rem);
}
.material-tags .tag {
    background: var(--material-red);
    color: #fff;
    font-size: clamp(0.8rem, 1.2vw, 0.9rem);
    font-weight: 600;
    padding: clamp(0.4rem, 1vw, 0.6rem) clamp(1rem, 2vw, 1.2rem);
    border-radius: 30px;
    transition: background 0.25s ease, transform 0.2s ease;
}
.material-tags .tag:hover {
    background: #c00;
    transform: translateY(-2px);
}

/* ===== 테이블 ===== */
.material-table {
    width: 100%;
    max-width: 1200px;
    margin: clamp(3rem, 6vw, 5rem) auto;
    border-collapse: collapse;
    text-align: center;
    font-size: clamp(0.85rem, 1.2vw, 0.95rem);
    border: 1px solid #ddd;
}
.material-table th,
.material-table td {
    border: 1px solid #ddd;
    padding: clamp(0.6rem, 1.2vw, 0.8rem) clamp(0.8rem, 1.5vw, 1rem);
}
.material-table th {
    background: #f5f5f5;
    font-weight: 700;
}
.material-table td {
    color: #333;
}

/* =========================================================
   RESPONSIVE BREAKPOINTS (1200px / 800px / 600px)
   ========================================================= */

/* --- 1200px 이하 --- */
@media (max-width: 1200px) {
    .business-content {
        width: 95%;
    }
    .material-images {
        gap: clamp(2rem, 5vw, 3rem);
    }
}

/* --- 800px 이하 --- */
@media (max-width: 800px) {
    .material-images {
        flex-direction: column;
        align-items: center;
    }

    .material-images img {
        width: 90%;
    }

    .material-tags {
        gap: 1rem;
    }

    .material-table {
        font-size: 0.9rem;
    }
}

/* --- 600px 이하 --- */
@media (max-width: 600px) {
    .material-title {
        font-size: 1.2rem;
    }

    .material-sub {
        font-size: 0.85rem;
    }

    .material-images img {
        width: 100%;
        margin-bottom: 1.5rem;
    }

    .material-tags {
        flex-direction: column;
        align-items: center;
        gap: 0.8rem;
    }

    .material-tags .tag {
        width: 80%;
        text-align: center;
        font-size: 0.9rem;
    }

    .material-table {
        overflow-x: auto;
        white-space: nowrap;
        border: none;
    }

    .material-table th,
    .material-table td {
        padding: 0.6rem;
    }
}
