/* agency.css - 안전관리대행 페이지 스타일 */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Pretendard', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    max-width: 900px;
    margin: 0 auto;
    padding: 50px 20px;
    color: #333;
    line-height: 1.6;
    background-color: #f9fafb;
}

.agency-wrap {
    background: #ffffff;
    border-radius: 16px;
    padding: 40px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    border: 1px solid #eaeeef;
}

.agency-title {
    font-size: 32px;
    font-weight: 700;
    color: #1e293b;
    text-align: center;
    margin-bottom: 30px;
    padding-bottom: 15px;
    border-bottom: 3px solid #0056b3;
}

.text-box {
    text-align: center;
    margin-bottom: 40px;
}

.subtitle {
    font-size: 20px;
    font-weight: 600;
    color: #0056b3;
    margin-bottom: 12px;
}

.desc {
    font-size: 16px;
    color: #475569;
    word-break: keep-all;
    max-width: 750px;
    margin: 0 auto;
}

.card-section {
    margin-top: 40px;
}

.card-section h2, .info-box h2 {
    font-size: 22px;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 20px;
}

.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 20px;
}

.card {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 24px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.08);
}

.card-icon {
    font-size: 32px;
    margin-bottom: 12px;
}

.card h3 {
    font-size: 18px;
    font-weight: 600;
    color: #0f172a;
    margin-bottom: 8px;
}

.card p {
    font-size: 14px;
    color: #64748b;
}

.info-box {
    margin-top: 40px;
    background: #eff6ff;
    border-left: 5px solid #0056b3;
    border-radius: 8px;
    padding: 25px;
}

.info-box ul {
    list-style-type: disc;
    padding-left: 20px;
}

.info-box li {
    font-size: 15px;
    color: #334155;
    margin-bottom: 8px;
}

.footer-nav {
    text-align: center;
    margin-top: 40px;
}

.home-link {
    display: inline-block;
    padding: 12px 28px;
    background-color: #0056b3;
    color: #ffffff;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    transition: background-color 0.2s ease;
}

.home-link:hover {
    background-color: #003d82;
}

/* 주요 법령 이동 버튼 스타일 */
.law-btn-box {
    text-align: center;
    margin: 30px 0;
}

.law-btn {
    display: inline-block;
    padding: 16px 32px;
    background-color: #0056b3;
    color: #ffffff;
    font-size: 18px;
    font-weight: 700;
    text-decoration: none;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0, 86, 179, 0.25);
    transition: all 0.3s ease;
}

.law-btn:hover {
    background-color: #003d82;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 86, 179, 0.35);
}

.law-link-info {
    font-size: 14px;
    color: #64748b;
    margin-top: 10px;
}

@media (max-width: 600px) {
    .agency-wrap {
        padding: 24px 16px;
    }
    
    .agency-title {
        font-size: 24px;
    }
    
    .subtitle {
        font-size: 17px;
    }
}
