/* ============================================
   랜딩 페이지 스타일
   ============================================ */

/* 페이드인 애니메이션 */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ============================================
   섹션 스타일
   ============================================ */

/* 사업 현장 목록 섹션 */
.projects-section {
    background: linear-gradient(180deg, #0f1419 0%, #1a2332 50%, #0f1419 100%);
    position: relative;
    padding: 100px 0 80px !important;
    overflow: hidden;
    display: flex;
    align-items: center;
    min-height: 100vh;
}

/* CSS 우선순위 강제 적용 */
#projects.projects-section {
    padding-top: 100px !important;
    padding-bottom: 80px !important;
}

.projects-section .bg-grid {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    opacity: 0.05;
    background-image: linear-gradient(rgba(102,126,234,0.3) 1px, transparent 1px), 
                      linear-gradient(90deg, rgba(102,126,234,0.3) 1px, transparent 1px);
    background-size: 60px 60px;
    pointer-events: none;
}

.projects-section .glow-1 {
    position: absolute;
    top: 20%;
    left: 10%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(102,126,234,0.12) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
    filter: blur(60px);
}

.projects-section .glow-2 {
    position: absolute;
    bottom: 10%;
    right: 15%;
    width: 350px;
    height: 350px;
    background: radial-gradient(circle, rgba(79,140,255,0.1) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
    filter: blur(60px);
}

.projects-container {
    position: relative;
    z-index: 1;
    width: 100%;
}

.projects-title {
    color: #ffffff;
    text-shadow: 0 2px 8px rgba(0,0,0,0.3);
}

.header-search-container {
    display: flex;
    background: #1e293b;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 14px;
    overflow: hidden;
    height: 40px;
    align-items: center;
}

.header-search-input {
    font-size: 13px;
    padding: 0 15px;
    height: 100%;
    border: none;
    background: transparent;
    color: #fff;
    outline: none;
    flex: 1;
}

.header-search-input::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

.header-search-btn {
    width: 40px;
    height: 40px;
    background: transparent;
    border: none;
    border-radius: 0;
    flex-shrink: 0;
    margin: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.header-search-btn .search-icon {
    font-size: 16px;
    color: rgba(255, 255, 255, 0.8);
    filter: none;
}

.count-text {
    color: rgba(255,255,255,0.9);
}

.count-number {
    color: #667eea;
    font-weight: 700;
}

/* 프로젝트 카드 공통 스타일 (PC & 모바일) */
.project-card-title {
    padding: 4px 8px;
    border-radius: 6px;
    color: #1e293b;
    font-weight: 700;
}

.project-card-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    font-size: 10px;
    padding: 4px 10px;
    background: rgba(220, 38, 38, 0.9);
    color: #ffffff;
    border-radius: 8px;
    z-index: 10;
    box-shadow: 0 2px 8px rgba(220, 38, 38, 0.4);
    border: 2px solid #ffffff;
}

.project-card-stat-value {
    color: #374151;
}

.project-card-stat-label {
    color: #6b7280;
}

.empty-state-text {
    color: rgba(255,255,255,0.8);
}

.project-card-image img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    display: block;
}

/* 페이징 컨트롤 */
.pagination-btn.prev-btn {
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.2);
    color: rgba(255,255,255,0.6);
}

.pagination-btn.next-btn {
    background: rgba(102,126,234,0.2);
    border: 1px solid rgba(102,126,234,0.4);
    color: #ffffff;
}

.pagination-info {
    color: rgba(255,255,255,0.9);
}

/* 광고 매체 섹션 */
.media-section {
    background: linear-gradient(135deg, #111827 0%, #1e293b 50%, #0f172a 100%);
    position: relative;
    padding: 100px 20px !important;
    overflow: hidden;
    display: flex;
    align-items: center;
    min-height: 100vh;
}

/* CSS 우선순위 강제 적용 */
#media.media-section {
    padding-top: 100px !important;
    padding-bottom: 100px !important;
}

.media-section .glow-1 {
    position: absolute;
    top: -100px;
    right: -50px;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(139,92,246,0.15) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
    filter: blur(80px);
}

.media-section .glow-2 {
    position: absolute;
    bottom: -120px;
    left: -80px;
    width: 550px;
    height: 550px;
    background: radial-gradient(circle, rgba(59,130,246,0.12) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
    filter: blur(80px);
}

.media-section .glow-3 {
    position: absolute;
    top: 50%;
    right: 20%;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(236,72,153,0.08) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
    filter: blur(60px);
}

.media-section .sparkles {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: radial-gradient(2px 2px at 20% 30%, rgba(255,255,255,0.4), transparent), 
                      radial-gradient(2px 2px at 60% 70%, rgba(255,255,255,0.3), transparent), 
                      radial-gradient(1px 1px at 50% 50%, rgba(255,255,255,0.5), transparent), 
                      radial-gradient(1px 1px at 80% 10%, rgba(255,255,255,0.4), transparent), 
                      radial-gradient(2px 2px at 90% 60%, rgba(255,255,255,0.3), transparent), 
                      radial-gradient(1px 1px at 33% 80%, rgba(255,255,255,0.4), transparent), 
                      radial-gradient(1px 1px at 15% 60%, rgba(255,255,255,0.3), transparent);
    background-size: 200% 200%;
    opacity: 0.3;
    pointer-events: none;
}

.media-section .noise {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    opacity: 0.03;
    background-image: repeating-linear-gradient(0deg, transparent, transparent 2px, rgba(255,255,255,0.03) 2px, rgba(255,255,255,0.03) 4px);
    pointer-events: none;
}

.media-container {
    position: relative;
    z-index: 1;
    width: 100%;
}

.media-title {
    color: #ffffff;
    font-size: 2.5rem;
}

.media-subtitle {
    color: rgba(255, 255, 255, 0.8);
}

.media-stats .stat-number {
    color: #ffffff;
}

.media-stats .stat-label {
    color: rgba(255, 255, 255, 0.8);
}

/* 문의하기 섹션 */
.inquiry-section {
    padding: 100px 20px 80px;
    background: #000;
    position: relative;
    overflow: hidden;
}

/* index_section.css 상속 ::before 패턴 제거 (순수 검정 배경) */
.inquiry-section::before {
    display: none;
}

.inquiry-section .glow-1 {
    position: absolute;
    top: 10%;
    right: 10%;
    width: 450px;
    height: 450px;
    background: radial-gradient(circle, rgba(16,185,129,0.12) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
    filter: blur(90px);
}

.inquiry-section .glow-2 {
    position: absolute;
    bottom: 10%;
    left: 5%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(59,130,246,0.1) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
    filter: blur(90px);
}

.inquiry-section .glow-3 {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(102,126,234,0.08) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
    filter: blur(70px);
    transform: translate(-50%, -50%);
}

.inquiry-section .bg-grid {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    opacity: 0.04;
    background-image: linear-gradient(rgba(102,126,234,0.3) 1px, transparent 1px), 
                      linear-gradient(90deg, rgba(102,126,234,0.3) 1px, transparent 1px);
    background-size: 50px 50px;
    pointer-events: none;
}

.inquiry-section .sparkles {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: radial-gradient(1px 1px at 25% 20%, rgba(255,255,255,0.3), transparent), 
                      radial-gradient(1px 1px at 75% 40%, rgba(255,255,255,0.2), transparent), 
                      radial-gradient(1px 1px at 50% 70%, rgba(255,255,255,0.3), transparent), 
                      radial-gradient(1px 1px at 85% 80%, rgba(255,255,255,0.2), transparent);
    background-size: 300% 300%;
    opacity: 0.4;
    pointer-events: none;
}

.inquiry-container {
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
    width: 100%;
}

.inquiry-header {
    text-align: center;
    margin-bottom: 50px;
}

.inquiry-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 16px;
    letter-spacing: -0.5px;
    text-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

.inquiry-subtitle {
    font-size: 1.2rem;
    color: rgba(255,255,255,0.8);
    font-weight: 400;
}

.inquiry-content {
    display: flex;
    gap: 40px;
    align-items: start;
}

.inquiry-form-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    width: 100%;
}

.inquiry-form {
    background: linear-gradient(135deg, rgba(20, 20, 20, 0.95) 0%, rgba(40, 40, 40, 0.98) 100%);
    backdrop-filter: blur(15px);
    padding: 40px;
    border-radius: 20px;
    box-shadow: 
        0 20px 60px rgba(0, 0, 0, 0.5),
        0 0 0 2px rgba(255, 140, 0, 0.3) inset,
        0 0 30px rgba(255, 140, 0, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 2px solid rgba(255, 140, 0, 0.4);
    position: relative;
    overflow: hidden;
}

.inquiry-form::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, transparent, rgba(255, 140, 0, 0.8), transparent);
    box-shadow: 0 0 15px rgba(255, 140, 0, 0.6);
}

.inquiry-form:hover {
    box-shadow: 
        0 25px 70px rgba(0, 0, 0, 0.6),
        0 0 0 2px rgba(255, 140, 0, 0.5) inset,
        0 0 40px rgba(255, 140, 0, 0.3);
}

/* 문의 폼 스타일 */
.inquiry-type-group {
    margin-bottom: 30px;
}

.inquiry-type-label {
    display: block;
    font-size: 1rem;
    font-weight: 600;
    color: #ff8c00;
    margin-bottom: 16px;
    text-shadow: 0 0 10px rgba(255, 140, 0, 0.3);
}

.inquiry-type-options {
    display: flex;
    gap: 16px;
}

.inquiry-type-radio {
    flex: 1;
    position: relative;
    cursor: pointer;
    display: flex;
    align-items: center;
    padding: 16px 20px;
    background: rgba(40, 40, 40, 0.6);
    border: 2px solid rgba(255, 165, 0, 0.3);
    border-radius: 12px;
    transition: all 0.3s ease;
}

.inquiry-type-radio input[type="radio"] {
    position: absolute;
    opacity: 0;
    cursor: pointer;
}

.radio-custom {
    width: 24px;
    height: 24px;
    border: 2px solid rgba(255, 165, 0, 0.5);
    border-radius: 50%;
    margin-right: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(20, 20, 20, 0.8);
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.radio-label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.95rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.8);
}

.radio-label i {
    font-size: 1.2rem;
    color: #ff8c00;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-size: 0.95rem;
    font-weight: 600;
    color: #ff8c00;
    margin-bottom: 8px;
    text-shadow: 0 0 10px rgba(255, 140, 0, 0.2);
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 14px 16px;
    border: 2px solid rgba(255, 165, 0, 0.3);
    border-radius: 10px;
    font-size: 1rem;
    color: #ffffff;
    background: rgba(20, 20, 20, 0.6);
    transition: all 0.3s ease;
    font-family: inherit;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: rgba(255, 140, 0, 0.6);
    background: rgba(30, 30, 30, 0.8);
    box-shadow: 0 0 15px rgba(255, 140, 0, 0.2);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: rgba(255, 255, 255, 0.4);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

/* 문의 폼 — 개인정보 수집·이용 안내 */
.inquiry-privacy-agreement.form-group {
    margin-bottom: 16px;
}

.inquiry-privacy-header {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.inquiry-privacy-agreement label.inquiry-privacy-check {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin: 0;
    font-size: 0.95rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.92);
    cursor: pointer;
    line-height: 1.4;
}

.inquiry-privacy-agreement label.inquiry-privacy-check abbr {
    text-decoration: none;
    color: #ff8c00;
    font-weight: 700;
}

.inquiry-privacy-agreement label.inquiry-privacy-check input[type="checkbox"] {
    width: auto;
    min-width: 18px;
    height: 18px;
    margin-top: 3px;
    flex-shrink: 0;
    accent-color: #ff8c00;
    cursor: pointer;
}

.inquiry-privacy-toggle {
    flex-shrink: 0;
    padding: 8px 14px;
    font-size: 0.85rem;
    font-weight: 600;
    color: #ff8c00;
    background: rgba(255, 140, 0, 0.12);
    border: 1px solid rgba(255, 165, 0, 0.45);
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.2s ease, border-color 0.2s ease;
}

.inquiry-privacy-toggle:hover {
    background: rgba(255, 140, 0, 0.22);
    border-color: rgba(255, 165, 0, 0.7);
}

/* 개인정보 동의 — 전문 모달 */
.inquiry-privacy-modal {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 10050;
    align-items: center;
    justify-content: center;
    padding: 16px;
    box-sizing: border-box;
}

.inquiry-privacy-modal.is-open {
    display: flex;
}

.inquiry-privacy-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.72);
    backdrop-filter: blur(4px);
    cursor: pointer;
}

.inquiry-privacy-modal__panel {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: min(92vw, 440px);
    max-height: min(85vh, 520px);
    display: flex;
    flex-direction: column;
    background: linear-gradient(145deg, #1a1a1c 0%, #252528 100%);
    border: 1px solid rgba(255, 165, 0, 0.45);
    border-radius: 14px;
    box-shadow:
        0 24px 48px rgba(0, 0, 0, 0.55),
        0 0 0 1px rgba(255, 140, 0, 0.15) inset;
    overflow: hidden;
}

.inquiry-privacy-modal__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-shrink: 0;
    padding: 14px 16px;
    border-bottom: 1px solid rgba(255, 165, 0, 0.28);
    background: rgba(0, 0, 0, 0.25);
}

.inquiry-privacy-modal__title {
    margin: 0;
    font-size: 1rem;
    font-weight: 700;
    color: #ffad42;
    line-height: 1.3;
}

.inquiry-privacy-modal__close {
    flex-shrink: 0;
    width: 36px;
    height: 36px;
    padding: 0;
    border: none;
    border-radius: 8px;
    background: rgba(255, 140, 0, 0.15);
    color: #ffcc80;
    font-size: 1.5rem;
    line-height: 1;
    cursor: pointer;
    transition: background 0.2s ease;
}

.inquiry-privacy-modal__close:hover {
    background: rgba(255, 140, 0, 0.28);
}

.inquiry-privacy-modal__body {
    padding: 14px 16px 18px;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    font-size: 0.82rem;
    color: rgba(255, 255, 255, 0.88);
    line-height: 1.55;
}

.inquiry-privacy-modal__lead {
    margin: 0 0 12px;
    color: rgba(255, 255, 255, 0.75);
}

.inquiry-privacy-modal__table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 12px;
    font-size: 0.78rem;
}

.inquiry-privacy-modal__table th,
.inquiry-privacy-modal__table td {
    border: 1px solid rgba(255, 165, 0, 0.28);
    padding: 8px 10px;
    text-align: left;
    vertical-align: top;
}

.inquiry-privacy-modal__table th {
    width: 30%;
    min-width: 72px;
    background: rgba(255, 140, 0, 0.12);
    color: #ffad42;
    font-weight: 600;
}

.inquiry-privacy-modal__list {
    margin: 0 0 12px;
    padding-left: 1.1em;
    color: rgba(255, 255, 255, 0.78);
}

.inquiry-privacy-modal__list li {
    margin-bottom: 6px;
}

.inquiry-privacy-modal__list li:last-child {
    margin-bottom: 0;
}

.inquiry-privacy-modal__note {
    margin: 0;
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.55);
    line-height: 1.45;
}

.form-submit-wrapper {
    margin-top: 30px;
}

.inquiry-submit-btn {
    width: 100%;
    padding: 16px 32px;
    background: linear-gradient(135deg, #ff8c00 0%, #ff6b1a 100%);
    color: #ffffff;
    border: 2px solid rgba(255, 140, 0, 0.5);
    border-radius: 12px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    box-shadow: 0 4px 15px rgba(255, 140, 0, 0.4);
}

.inquiry-submit-btn:hover {
    background: linear-gradient(135deg, #ff6b1a 0%, #ff8c00 100%);
    box-shadow: 0 6px 25px rgba(255, 140, 0, 0.6);
    transform: translateY(-2px);
}

.submit-icon {
    font-size: 1.3rem;
}

/* 실시간 접수 현황 */
.recent-requests {
    background: linear-gradient(135deg, rgba(20, 20, 20, 0.95) 0%, rgba(40, 40, 40, 0.98) 100%);
    backdrop-filter: blur(15px);
    padding: 30px;
    border-radius: 16px;
    box-shadow: 
        0 20px 60px rgba(0, 0, 0, 0.5),
        0 0 0 2px rgba(255, 140, 0, 0.3) inset,
        0 0 30px rgba(255, 140, 0, 0.2);
    transition: all 0.3s ease;
    border: 2px solid rgba(255, 140, 0, 0.4);
    position: relative;
    overflow: hidden;
}

.recent-requests::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, transparent, rgba(255, 140, 0, 0.8), transparent);
    box-shadow: 0 0 15px rgba(255, 140, 0, 0.6);
}

.recent-requests:hover {
    box-shadow: 
        0 25px 70px rgba(0, 0, 0, 0.6),
        0 0 0 2px rgba(255, 140, 0, 0.5) inset,
        0 0 40px rgba(255, 140, 0, 0.3);
}

.recent-requests h3 {
    font-size: 1.3rem;
    font-weight: 700;
    color: #ff8c00;
    margin-bottom: 12px;
    text-align: center;
    text-shadow: 0 0 15px rgba(255, 140, 0, 0.4);
}

.recent-requests > p {
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 20px;
    text-align: center;
}

.requests-header {
    background: rgba(40, 40, 40, 0.6);
    padding: 12px;
    border-radius: 8px;
    margin-bottom: 16px;
    border: 1px solid rgba(255, 165, 0, 0.3);
}

.request-info {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 10px;
    font-size: 0.85rem;
    font-weight: 600;
    color: #ff8c00;
}

.request-name,
.request-phone,
.request-time {
    text-align: center;
}

.requests-list {
    height: 400px;
    overflow-y: auto;
}

.requests-list .loading {
    text-align: center;
    padding: 40px;
    color: rgba(255, 255, 255, 0.6);
}

.requests-list .loading i {
    font-size: 1.5rem;
    margin-right: 8px;
    color: #ff8c00;
}

.requests-footer {
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid rgba(255, 165, 0, 0.3);
}

.update-info {
    text-align: center;
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.6);
}

.update-info i {
    margin-right: 4px;
}

/* PC: 신청·접수현황 카드 — 같은 높이 정렬, 폼 내부 스크롤 없음, 접수 목록만 400px 스크롤 */
@media (min-width: 769px) {
    .inquiry-content {
        align-items: stretch;
    }

    .inquiry-form-wrapper {
        align-items: stretch;
    }

    .inquiry-form-slide {
        display: flex;
        flex-direction: column;
        min-height: 0;
        align-self: stretch;
    }

    /* 슬라이드 높이 = 두 열 중 더 높은 쪽에 맞춤 */
    .inquiry-form-slide > .inquiry-form,
    .inquiry-form-slide > .recent-requests {
        flex: 1 1 auto;
        min-height: 0;
        width: 100%;
        display: flex;
        flex-direction: column;
    }

    .inquiry-form {
        overflow: visible;
        box-sizing: border-box;
    }

    /* 폼이 카드보다 짧을 때 제출 버튼을 아래로 붙임 */
    .inquiry-form .form-submit-wrapper {
        margin-top: auto;
    }

    .recent-requests {
        overflow: hidden;
        box-sizing: border-box;
    }

    .recent-requests h3,
    .recent-requests > p,
    .recent-requests .requests-header {
        flex-shrink: 0;
    }

    /* 접수 내역만 세로 스크롤 (고정 높이) */
    #inquiry .requests-list {
        flex: 0 0 400px;
        width: 100%;
        height: 400px !important;
        min-height: 400px;
        max-height: 400px;
        overflow-y: auto !important;
        overflow-x: hidden;
        -webkit-overflow-scrolling: touch;
        scrollbar-color: rgba(255, 140, 0, 0.45) rgba(0, 0, 0, 0.2);
        scrollbar-width: thin;
    }

    #inquiry .requests-list::-webkit-scrollbar {
        width: 6px;
    }

    #inquiry .requests-list::-webkit-scrollbar-thumb {
        background: rgba(255, 140, 0, 0.45);
        border-radius: 3px;
    }

    .requests-footer {
        flex-shrink: 0;
        margin-top: auto;
    }
}

/* ============================================
   섹션 네비게이션 스타일 (제거됨)
   ============================================ */

/* 검색 모달 스타일 */
.search-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
    z-index: 9999;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.search-modal-content {
    background: #ffffff;
    border-radius: 20px;
    width: 100%;
    max-width: 700px;
    max-height: 90vh;
    overflow: hidden;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.3);
    animation: modalFadeIn 0.3s ease;
}

@keyframes modalFadeIn {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.search-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px 30px;
    border-bottom: 1px solid #e9ecef;
}

.search-modal-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #2c3e50;
    margin: 0;
}

.search-modal-close {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #f8f9fa;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.search-modal-close:hover {
    background: #e9ecef;
    transform: rotate(90deg);
}

.close-icon {
    font-size: 24px;
    color: #6c757d;
    line-height: 1;
}

.search-modal-body {
    padding: 30px;
}

.search-input-container {
    display: flex;
    gap: 12px;
    margin-bottom: 30px;
}

.search-input {
    flex: 1;
    padding: 16px 20px;
    border: 2px solid #e9ecef;
    border-radius: 12px;
    font-size: 1rem;
    color: #2c3e50;
    transition: all 0.3s ease;
}

.search-input:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.1);
}

.search-submit-btn {
    padding: 16px 24px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.search-submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
}

.search-results {
    max-height: 400px;
    overflow-y: auto;
}

.search-result-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px;
    border-bottom: 1px solid #f1f3f4;
    transition: all 0.3s ease;
}

.search-result-item:hover {
    background: #f8f9fa;
}

.result-content {
    flex: 1;
}

.result-title {
    font-size: 1rem;
    font-weight: 600;
    color: #2c3e50;
    margin: 0;
}

.search-highlight {
    background: #fff3cd;
    color: #856404;
    padding: 2px 4px;
    border-radius: 3px;
}

.result-btn {
    padding: 8px 16px;
    background: #667eea;
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.result-btn:hover {
    background: #5568d3;
    transform: translateX(4px);
}

.arrow-icon {
    font-size: 1.2rem;
}

.no-results {
    text-align: center;
    padding: 60px 20px;
    color: #6c757d;
    font-size: 1rem;
}

/* 검색 결과 인라인 스타일 */
.search-result-item-inline {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px;
    border-bottom: 1px solid #f1f3f4;
    transition: all 0.3s ease;
}

.search-result-item-inline:hover {
    background: #f8f9fa;
}

.more-results {
    text-align: center;
    padding: 16px;
    color: #667eea;
    font-weight: 600;
    cursor: pointer;
}

.more-results:hover {
    background: #f8f9fa;
}

/* 스크롤바 스타일 */
.search-results::-webkit-scrollbar {
    width: 8px;
}

.search-results::-webkit-scrollbar-track {
    background: #f1f3f4;
    border-radius: 10px;
}

.search-results::-webkit-scrollbar-thumb {
    background: #667eea;
    border-radius: 10px;
}

.search-results::-webkit-scrollbar-thumb:hover {
    background: #5568d3;
}

/* 반응형 디자인 */
@media (max-width: 768px) {
    .search-modal-content {
        max-width: 100%;
        border-radius: 0;
    }
    
    .search-modal-header {
        padding: 20px;
    }
    
    .search-modal-title {
        font-size: 1.2rem;
    }
    
    .search-modal-body {
        padding: 20px;
    }
    
    .search-input-container {
        flex-direction: column;
    }
    
    .search-submit-btn {
        width: 100%;
    }
    
    /* 사업지 섹션 모바일 최적화 */
    .projects-section {
        height: 100vh;
        min-height: 100vh;
        padding: 15px;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    .projects-container {
        width: 100%;
        height: 100%;
        display: flex;
        flex-direction: column;
        justify-content: flex-start;
    }
    
    .projects-header {
        flex-shrink: 0;
        margin-bottom: 15px;
        flex-direction: column;
        gap: 10px;
    }
    
    .projects-title {
        font-size: 22px;
        margin-bottom: 10px;
    }
    
    .projects-header-right {
        width: 100%;
        justify-content: space-between;
        gap: 10px;
    }
    
    .header-search-container {
        flex: 1;
    }
    
    .header-search-input {
        font-size: 12px;
        padding: 8px 12px;
    }
    
    .projects-count {
        flex-shrink: 0;
    }
    
    .count-text {
        font-size: 12px;
    }
    
    .projects-grid {
        flex: 1;
        grid-template-columns: 1fr;
        gap: 12px;
        overflow-y: auto;
        max-height: calc(100vh - 200px);
        padding-right: 5px;
    }
    
    .projects-grid::-webkit-scrollbar {
        width: 4px;
    }
    
    .projects-grid::-webkit-scrollbar-thumb {
        background: rgba(79, 140, 255, 0.5);
        border-radius: 2px;
    }
    
    .project-card {
        flex-direction: column;
        height: auto;
    }
    
    .project-card-image {
        width: 100%;
        height: 150px;
    }
    
    .project-card-body {
        padding: 12px;
    }
    
    .project-card-title {
        font-size: 15px;
        margin-bottom: 8px;
    }
    
    .project-card-badge {
        font-size: 10px;
        padding: 3px 8px;
    }
    
    .project-card-stats {
        gap: 8px;
        margin: 10px 0;
    }
    
    .project-card-stat-value {
        font-size: 16px;
    }
    
    .project-card-stat-label {
        font-size: 10px;
    }
    
    .project-card-btn {
        padding: 8px 16px;
        font-size: 12px;
    }
    
    .pagination-controls {
        flex-shrink: 0;
        margin-top: 15px;
    }
    
    .pagination-btn {
        width: 35px;
        height: 35px;
        font-size: 16px;
    }
    
    .pagination-info {
        font-size: 13px;
    }
    
    /* 광고 매체 섹션 모바일 최적화 */
    .media-section {
        height: 100vh;
        min-height: 100vh;
        padding: 15px;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    .media-container {
        width: 100%;
        height: 100%;
        display: flex;
        flex-direction: column;
        justify-content: center;
    }
    
    .media-header {
        flex-shrink: 0;
        margin-bottom: 15px;
    }
    
    .media-title {
        font-size: 22px;
        margin-bottom: 8px;
    }
    
    .media-subtitle {
        font-size: 11px;
    }
    
    .media-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
        flex: 1;
        overflow-y: auto;
        max-height: calc(100vh - 300px);
        padding-right: 5px;
    }
    
    .media-grid::-webkit-scrollbar {
        width: 4px;
    }
    
    .media-grid::-webkit-scrollbar-thumb {
        background: rgba(139, 92, 246, 0.5);
        border-radius: 2px;
    }
    
    .media-card {
        padding: 15px;
    }
    
    .media-icon {
        font-size: 32px;
        margin-bottom: 8px;
    }
    
    .media-name {
        font-size: 14px;
        margin-bottom: 6px;
    }
    
    .media-description {
        font-size: 10px;
    }
    
    .media-stats {
        flex-shrink: 0;
        margin-top: 15px;
        gap: 15px;
    }
    
    .stat-number {
        font-size: 24px;
    }
    
    .stat-label {
        font-size: 11px;
    }
    
    /* 문의하기 섹션 모바일 최적화 */
    .inquiry-section {
        height: 100vh;
        min-height: 100vh;
        padding: 15px;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    .inquiry-container {
        width: 100%;
        height: 100%;
        display: flex;
        flex-direction: column;
        justify-content: flex-start;
    }
    
    .inquiry-header {
        flex-shrink: 0;
        margin-bottom: 15px;
    }
    
    .inquiry-title {
        font-size: 22px;
        margin-bottom: 8px;
    }
    
    .inquiry-subtitle {
        font-size: 11px;
    }
    
    .inquiry-content {
        flex: 1;
        overflow-y: auto;
        max-height: calc(100vh - 150px);
    }
    
    .inquiry-form-wrapper {
        grid-template-columns: 1fr;
        gap: 15px;
    }
}

/* ==========================================================================
   광고 매체 — PC/MO 정적 이미지 + 하단 통계 숫자 오버레이 (index.php)
   PC: 각 열의 다크 플레이스홀더(둥근 박스) 정중앙에 숫자 정렬.
   ========================================================================== */
#media.media-section.media-section--ad-image {
    min-height: 0 !important;
    height: auto !important;
    padding: 0 !important;
    display: block !important;
    align-items: unset !important;
    justify-content: unset !important;
    background: #000;
    overflow: hidden;
}

#media.media-section.media-section--ad-image .media-ad-wrap {
    position: relative;
    width: 100%;
    line-height: 0;
}

#media.media-section.media-section--ad-image .media-ad-img {
    width: 100%;
    max-width: 100%;
    height: auto;
    display: block;
    object-fit: contain;
}

#media.media-section.media-section--ad-image .media-ad-img-mo {
    display: none;
}

#media.media-section.media-section--ad-image .media-ad-stat-layer {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

#media.media-section.media-section--ad-image .media-ad-stat-slot {
    position: absolute;
}

#media.media-section.media-section--ad-image .media-ad-stat-value {
    display: block;
    font-weight: 800;
    font-variant-numeric: tabular-nums;
    font-size: clamp(1.25rem, 2.6vw, 2.85rem);
    line-height: 1;
    color: #ffcc33;
    text-shadow:
        0 0 10px rgba(255, 140, 66, 0.95),
        0 0 22px rgba(255, 87, 34, 0.55),
        0 1px 2px rgba(0, 0, 0, 0.9);
}

/* PC (769px+): 통계 숫자 — 각 컬럼 플레이스홀더 중앙 */
@media (min-width: 769px) {
    #media.media-section.media-section--ad-image .media-ad-stat-slot {
        width: auto;
        max-width: none;
    }

    /* 3열 동일 너비 기준 열 중심: ~16.67% / 50% / 83.33% */
    #media.media-section.media-section--ad-image .media-ad-stat-slot--1 {
        left: 16.67%;
        top: 86.75%;
        transform: translate(-50%, -50%);
        text-align: center;
    }

    #media.media-section.media-section--ad-image .media-ad-stat-slot--2 {
        left: 50%;
        top: 86.75%;
        transform: translate(-50%, -50%);
        text-align: center;
    }

    #media.media-section.media-section--ad-image .media-ad-stat-slot--3 {
        left: 83.33%;
        top: 86.75%;
        transform: translate(-50%, -50%);
        text-align: center;
    }
}

@media (max-width: 768px) {
    #media.media-section.media-section--ad-image .media-ad-img-pc {
        display: none;
    }

    #media.media-section.media-section--ad-image .media-ad-img-mo {
        display: block;
    }

    #media.media-section.media-section--ad-image .media-ad-stat-value {
        font-size: clamp(0.88rem, 4.5vw, 1.45rem);
    }

    #media.media-section.media-section--ad-image .media-ad-stat-slot {
        width: 20%;
        max-width: 220px;
        transform: translate(-50%, -50%);
        text-align: center;
    }

    /* 모바일 세로형: 3열 슬롯 중앙 유지 */
    #media.media-section.media-section--ad-image .media-ad-stat-slot--1 {
        left: 16.67%;
        top: 91.5%;
    }

    #media.media-section.media-section--ad-image .media-ad-stat-slot--2 {
        left: 50%;
        top: 91.5%;
    }

    #media.media-section.media-section--ad-image .media-ad-stat-slot--3 {
        left: 83.33%;
        top: 91.5%;
    }
}

