/* ============================================================
   index.css - 메인 화면 전용 스타일
   피그마 스펙: 153 사회적 농복중앙회
   배경: #F3FFFC | 포인트: #0D9989 | 폰트: Paperlogy

   ※ 헤더/푸터 CSS는 common.css 에 있습니다.
   ============================================================ */

/* ============================================================
   메인 래퍼 (background: #F3FFFC)
============================================================ */
.main-wrap {
    background: var(--color-bg);
    position: relative;
    overflow: hidden;
}

/* 좌측 초록 배경 도형 (width는 ui.js가 --left-col-right CSS 변수로 주입) */
.left-green-bg {
    position: absolute;
    left: 0;
    top: 464px;
    width: calc(var(--left-col-right, 60%) + 39px);
    height: 530px;
    background: #E1FAF1;
    border-radius: 0 80px 80px 0;
    z-index: 0;
    pointer-events: none;
}

.content-container {
    max-width: 1480px;
    margin: 0 auto;
    padding: 11px 40px 0px;
    position: relative;
    z-index: 1;
}

/* ============================================================
   상단 2컬럼: 슬라이더(좌) + 우측패널
============================================================ */
.top-row {
    display: flex;
    gap: 92px;
    align-items: stretch;   /* 두 컬럼 높이를 동일하게 */
}

/* ── 좌측 컬럼: 슬라이더 + 현장스케치 ── */
.left-col {
    flex: 0 0 62%;
    max-width: 62%;
    display: flex;
    flex-direction: column;
    padding-top: 74px;
}

/* ── 슬라이더 (904x505 비율) ── */
.slide-area {
    width: 100%;
    position: relative;
}
.slide-wrap {
    position: relative;
    width: 100%;
    padding-top: 55.9%;  /* 505/904 */
    border-radius: 17px;
    overflow: hidden;
    background: #DDE1ED;
}
.slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 0.6s ease;
}
.slide.active { opacity: 1; }

.slide-bg {
    width: 100%;
    height: 100%;
    background: #DDE1ED;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}
.slide-bg--2 { background: #D5E8F0; }
.slide-bg--3 { background: #E0EDDF; }

/* 슬라이드 이미지 플레이스홀더 */
.slide-img-placeholder {
    position: absolute;
    right: 14%;
    top: 50%;
    transform: translateY(-60%);
    width: 80px;
    height: 120px;
    background: rgba(255,255,255,0.4);
    border-radius: 8px;
}

/* 슬라이드 텍스트 */
.slide-text-block {
    position: absolute;
    left: 0; right: 0;
    top: 50%;
    transform: translateY(-50%);
    text-align: center;
    padding: 0 20px;
}
/* 농인 어르신 점심나눔: SeoulNamsan, 60px, weight:400, color:#414141 */
.slide-title1 {
    font-family: 'SeoulNamsan CEB', var(--font-main);
    font-size: clamp(24px, 3.8vw, 60px);
    font-weight: 400;
    letter-spacing: -0.02em;
    color: #414141;
    margin-bottom: 6px;
    line-height: 1;
}
/* "함께 나누고 함께 행복": SeoulAlrim, 35px, weight:800, color:#837BFF */
.slide-quote {
    font-family: 'SeoulAlrim TTF', var(--font-main);
    font-size: clamp(16px, 2.2vw, 35px);
    font-weight: 800;
    letter-spacing: -0.02em;
    color: #837BFF;
    margin-bottom: 4px;
    line-height: 1.2;
}
/* 153 농인어르신 쉼터: SeoulAlrim, 43px, weight:800, color:#837BFF */
.slide-title2 {
    font-family: 'SeoulAlrim TTF', var(--font-main);
    font-size: clamp(18px, 2.7vw, 43px);
    font-weight: 800;
    letter-spacing: -0.02em;
    color: #837BFF;
    margin-bottom: 14px;
    line-height: 1.15;
}
/* 시간 : 11시 장소...: SeoulAlrim, 33px, weight:700, color:#5D5D5D */
.slide-info {
    font-family: 'SeoulAlrim TTF', var(--font-main);
    font-size: clamp(14px, 2vw, 33px);
    font-weight: 700;
    letter-spacing: -0.02em;
    color: #5D5D5D;
    line-height: 1.2;
}

/* 슬라이드 컨트롤 (Rectangle 1)
   145x67 | background:#AAAAAA | border-radius:15px 0 */
.slide-ctrl {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 145px;
    height: 67px;
    background: #AAAAAA;
    border-radius: 15px 0 15px 0;
    display: flex;
    align-items: center;
    justify-content: center;
}
.slide-prev,
.slide-next {
    background: none;
    border: none;
    padding: 0 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.15s;
    flex-shrink: 0;
}
.slide-prev:hover, .slide-next:hover { opacity: 0.6; }
.slide-counter {
    font-family: 'Paperlogy', sans-serif;
    font-size: 18px;
    font-weight: 700;
    font-style: normal;
    line-height: 1;
    letter-spacing: -0.02em;
    color: #716E6E;
    min-width: 36px;
    text-align: center;
    vertical-align: middle;
}

/* ── 우측 패널 ── */
.right-panel {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0;
    min-width: 0;
    padding-top: 186px;
}
.slogan-area    { margin-bottom: 19px; }
.quick-btn-area { margin-bottom: 28px; }

/* 슬로건 (함께하는 행복, 나누는 사랑)
   피그마: 40px, weight:600, letter:-0.04em, color:#0D9989 */
.slogan-area { text-align: center; }
.slogan-text {
    font-family: var(--font-main);
    font-size: clamp(22px, 2.4vw, 40px);
    font-weight: 600;
    letter-spacing: -0.04em;
    color: var(--color-main);
    line-height: 47px;
    margin-bottom: 14px;
}
/* 슬로건 이미지 래퍼 (566x119 비율) */
.slogan-img-wrap {
    width: 100%;
    aspect-ratio: 566 / 119;
    border-radius: 8px;
    overflow: hidden;
    background: transparent;
}
.slogan-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}
/* 이미지 없을 때 폴백 */
.slogan-fallback { display: none; }

.slogan-img-wrap.img-missing {
    aspect-ratio: unset;
    background: transparent;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 1;
}
.slogan-img-wrap.img-missing .slogan-fallback {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 7px;
}
.slogan-fallback-text1 {
    width: 476px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    font-family: var(--font-main);
    font-size: 20px;
    font-weight: 600;
    color: #828282;
    line-height: 1.2;
    letter-spacing: -0.02em;
}
.slogan-fallback-text2 {
    width: 399px;
    height: 72px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    font-family: var(--font-main);
    font-size: 20px;
    font-weight: 500;
    color: #414141;
    line-height: 1.2;
    letter-spacing: -0.02em;
    background: #F2F2F2;
    border: 1px solid #464646;
    border-radius: 40px;
}

/* 퀵버튼 4개 (4열 한 줄) */
.quick-btn-area {}
.quick-btn-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
}
.quick-btn-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    text-decoration: none;
}
.quick-btn-box {
    width: 100%;
    aspect-ratio: 1;
    background: #ffffff;
    border: 1.5px solid #e4e4e4;
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s;
}
.quick-btn-item:hover .quick-btn-box {
    border-color: var(--color-main);
    box-shadow: 0 4px 14px rgba(13,153,137,0.14);
    transform: translateY(-3px);
}

/* 퀵버튼 SVG 아이콘 - 기본 회색, 호버 시 검정 */
.quick-icon-svg {
    width: clamp(22px, 2vw, 32px);
    height: clamp(22px, 2vw, 32px);
    stroke: #b8b8b8;               /* 기본: 밝은 회색 */
    fill: none;
    transition: stroke 0.2s;
}
.quick-btn-item:hover .quick-icon-svg {
    stroke: #1E1E1E;               /* 호버: 검정 */
}
.quick-icon-img {
    width: clamp(22px, 2vw, 32px);
    height: clamp(22px, 2vw, 32px);
    object-fit: contain;
}
/* 퀵버튼 라벨 */
.quick-btn-label {
    font-family: var(--font-main);
    font-size: clamp(14px, 1.5vw, 20px);
    font-weight: 600;
    letter-spacing: -0.02em;
    color: var(--color-dark);
    text-align: center;
    line-height: 1;
    margin: 0;
}

/* 후원 신청하기 카드 (Rectangle 3)
   473x314 | #0D9989 | border-radius:15px */
.donation-btn-area {
    margin-top: calc(75px - 28px); /* 75px - right-panel gap(28px) */
}
.donation-card {
    display: block;
    width: 473px;
    height: 314px;
    background: #0D9989;                /* 기본: 포인트 컬러 */
    border-radius: 15px;
    text-decoration: none;
    overflow: hidden;
    transition: background 0.25s ease, transform 0.22s ease, box-shadow 0.22s ease;
    position: relative;
}
.donation-card:hover,
.donation-card:focus-visible {
    background: #0A7569;                /* 포커스·호버: 기본보다 진한 틸 */
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(13,153,137,0.35);
}
.donation-card-inner {
    padding: 36px 32px;
    height: 100%;
    position: relative;
    display: flex;
    flex-direction: column;
}
/* 후원 신청하기: 27px, weight:700, color:#fff */
.donation-title {
    font-family: var(--font-main);
    font-size: clamp(18px, 1.8vw, 27px);
    font-weight: 700;
    letter-spacing: -0.02em;
    color: #ffffff;
    line-height: 1;
    margin-bottom: 10px;
}
/* 베풀어 주신 소중한 정성...: 21px, weight:600, color:#fff */
.donation-sub {
    font-family: var(--font-main);
    font-size: clamp(13px, 1.3vw, 21px);
    font-weight: 600;
    letter-spacing: -0.02em;
    color: #ffffff;
    line-height: 25px;
    margin: 0;
}
/* 캐릭터 이미지 (212x174) ★ CHARACTER_IMG 변수로 관리 */
.donation-char-img {
    position: absolute;
    right: 20px;
    bottom: 0;
    width: 212px;
    height: 174px;
    object-fit: contain;
    object-position: bottom right;
    opacity: 0.92;
    pointer-events: none;
}

/* ============================================================
   농•복 현장 스케치 (메인 배너 바로 아래)
============================================================ */
.sketch-section {
    margin-top: 56px;
}
.sketch-section .sketch-arrows {
    margin-top: 28px;
}

/* 섹션 타이틀 공통 */
.section-title-row {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    margin-bottom: 20px;
}
.section-title-col {
    display: flex;
    flex-direction: column;
    gap: 6px;
}
/* 27px, weight:600, color:#1E1E1E */
.section-ttl {
    font-family: var(--font-main);
    font-size: 27px;
    font-weight: 600;
    letter-spacing: -0.02em;
    color: var(--color-dark);
    line-height: 1;
    margin: 0;
}
/* 17px, weight:600, color:#727272 */
.section-sub {
    font-family: var(--font-main);
    font-size: 17px;
    font-weight: 600;
    letter-spacing: -0.02em;
    color: var(--color-lgray);
    line-height: 1;
    margin: 0;
}
.sketch-arrows {
    display: flex;
    align-items: center;
    margin-left: auto;
    border-radius: 999px;
    background: #EBEBEB;
    overflow: hidden;
    width: 76px;
    height: 31px;
    gap: 0;
}
.sketch-prev, .sketch-next {
    width: 50%;
    height: 100%;
    border: none;
    background: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.15s;
    flex-shrink: 0;
}
.sketch-prev:hover, .sketch-next:hover { opacity: 0.6; }
.sketch-divider {
    width: 2px;
    height: 10px;
    background: #716E6E;
    flex-shrink: 0;
    border-radius: 2px;
}

/* 현장스케치 슬라이더 래퍼 */
.sketch-photos-wrap {
    overflow: hidden;
    width: 100%;
}
.sketch-photos-track {
    display: flex;
    gap: 20px;
    will-change: transform;
}
.sketch-photo {
    flex-shrink: 0;
    aspect-ratio: 282 / 188;
    border-radius: 15px;
    overflow: hidden;
    background: #DDE1ED;
}
.photo-placeholder {
    width: 100%; height: 100%;
    display: flex; align-items: center; justify-content: center;
    color: #aaa;
    font-size: 14px;
    font-family: var(--font-main);
}

/* ============================================================
   후원해 주신 분들 바 (footer-top-bar 바로 위, 한 줄)
============================================================ */
.donor-bar {
    background: #ffffff;
    padding: 24px 0;
}
.donor-bar-inner {
    max-width: 1480px;
    margin: 0 auto;
    padding: 0 40px;
    display: flex;
    align-items: center;
    gap: 8px;
}
.donor-bar-ttl {
    font-family: var(--font-main);
    font-size: 27px;
    font-weight: 600;
    letter-spacing: -0.02em;
    color: var(--color-dark);
    line-height: 1;
    white-space: nowrap;
    margin: 0;
}
/* ── 후원 로고 슬라이더 ── */
.donor-logo-strip {
    flex: 1;
    min-width: 0;
    overflow: hidden;
}
.donor-logo-track {
    display: flex;
    gap: 0;
    transition: transform 0.35s ease;
    will-change: transform;
}
.donor-logo-item {
    flex-shrink: 0;
    height: 64px;
    border-radius: 0;
    border: none;
    border-right: 1px solid var(--color-border);
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}
.donor-logo-item:last-child {
    border-right: none;
}

.donor-logo-item img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

/* ============================================================
   반응형 (메인 컨텐츠 전용)
============================================================ */
@media (max-width: 1200px) {
    .content-container { padding: 11px 24px 60px; }
    .top-row { gap: 28px; }
    .left-col { flex: 0 0 58%; max-width: 58%; }
    .left-green-bg { width: calc(58vw + 35px); } /* 24px padding + 58% left-col + 39px overhang */
    .quick-btn-grid { gap: 10px; }
    .donor-bar-inner { padding: 0 24px; }
}
@media (max-width: 900px) {
    .top-row { flex-direction: column; }
    .left-col { flex: none; max-width: 100%; width: 100%; }
    .right-panel { width: 100%; }
    .left-green-bg { display: none; }
    .donor-bar-inner { flex-direction: column; align-items: flex-start; gap: 12px; }
    /* 로고 스트립 전체폭 확보 (세로 정렬 시 왼쪽 쏠림 방지) */
    .donor-logo-strip { width: 100%; }
}
@media (max-width: 640px) {
    .quick-btn-grid { gap: 6px; }
    .sketch-photos { grid-template-columns: 1fr; }
    .donor-bar { padding: 16px 0; }
    .donor-bar-ttl { font-size: 16px; }
}
