/* theme/03 — Tailwind-first 보조 CSS v=20260529-r2 */

/* ─── 기본 폰트 / overflow 차단 ─── */
html, body {
    overflow-x: hidden;
    max-width: 100%;
}
html {
    font-family: 'Pretendard Variable', Pretendard, -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
}
body {
    word-break: keep-all;
    position: relative;
}

/* ─── 탑배너 세로 롤링 (좌측 vertical Swiper) ─── */
#topBanner03 {
    overflow: hidden;
    position: relative;
}
.top-banner-vert .swiper-slide {
    display: flex !important;   /* Swiper display:block 강제 보정 */
    align-items: center;
    height: 2.75rem;
}
.top-banner-pager .tb-dot {
    width: 0.375rem;
    height: 0.375rem;
    border-radius: 999rem;
    background: rgba(255, 255, 255, .4);
    transition: background .2s ease, width .2s ease;
}
.top-banner-pager .tb-dot.active {
    width: 1rem;
    background: #c8ff1b;
}

/* ─── 히어로 높이 ─── */
.hero-height {
    height: 32rem;
}
@media (min-width: 768px) {
    .hero-height {
        height: 38rem;
    }
}
@media (min-width: 1280px) {
    .hero-height {
        height: 42rem;
    }
}

/* ─── 히어로 슬라이드 공통 (full-bleed 배경) ─── */
.main-hero .swiper-slide {
    display: flex !important;   /* Swiper display:block 강제 보정 */
}
.hero-slide {
    position: relative;
    overflow: hidden;
    width: 100%;
    background-position: center 20%;
    background-size: cover;
}
/* 좌측 컨텐츠 가독을 위한 좌→우 밝은 그라데이션 */
.hero-shade {
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient(90deg,
        rgba(255,255,255,.96) 0%,
        rgba(255,255,255,.86) 28%,
        rgba(255,255,255,.45) 52%,
        rgba(255,255,255,0) 74%);
}
.hero-area { position: relative; z-index: 2; }
@media (max-width: 767.98px) {
    .hero-shade {
        background: linear-gradient(180deg,
            rgba(255,255,255,.95) 0%,
            rgba(255,255,255,.82) 32%,
            rgba(255,255,255,.35) 60%,
            rgba(255,255,255,0) 100%);
    }
}

/* 슬라이드 1 — 아동 */
.hero-slide-1 {
    background-image: url("https://images.unsplash.com/photo-1488521787991-ed7bbaae773c?auto=format&fit=crop&w=1800&q=80");
    background-position: left 15%;
}
/* 슬라이드 2 — 노인 돌봄 */
.hero-slide-2 {
    background-image: url("https://images.unsplash.com/photo-1516733725897-1aa73b87c8e8?auto=format&fit=crop&w=1800&q=80");
    background-position: left 20%;
}
/* 슬라이드 3 — 지역사회 */
.hero-slide-3 {
    background-image: url("https://images.unsplash.com/photo-1469571486292-0ba58a3f068b?auto=format&fit=crop&w=1800&q=80");
    background-position: left center;
}

/* ─── area-right-full ─── */
.area-right-full {
    width: calc(100vw - max(0.75rem, (100vw - 90rem) / 2));
    margin-left: max(0.75rem, (100vw - 90rem) / 2);
    overflow: hidden;
}
@media (min-width: 768px) {
    .area-right-full {
        width: calc(100vw - max(1.5rem, (100vw - 90rem) / 2));
        margin-left: max(1.5rem, (100vw - 90rem) / 2);
    }
}

/* ─── 나눔이야기 슬라이드 ─── */
.story-swiper {
    padding-right: 1.5rem;
    overflow: visible;
}
.story-swiper .swiper-slide {
    height: auto;
}
.story-swiper .swiper-slide > div:first-child {
    transition: transform 0.3s ease;
}
.story-swiper .swiper-slide:hover > div:first-child {
    transform: translateY(-4px);
}

/* 탭 공통 */
.story-tabs,
.news-tabs {
    scrollbar-width: none;
}
.story-tabs::-webkit-scrollbar,
.news-tabs::-webkit-scrollbar {
    display: none;
}
.story-tab-btn,
.news-tab-btn {
    background: #fff;
    color: #64748b;
    border: 1px solid #e2e8f0;
}
.story-tab-btn.active,
.news-tab-btn.active {
    background: #0452ff;
    color: #fff;
    border-color: #0452ff;
}

/* ─── 스토리 이미지 ─── */
.story-img-1 { background-image: url("https://images.unsplash.com/photo-1488521787991-ed7bbaae773c?auto=format&fit=crop&w=800&q=80"); }
.story-img-2 { background-image: url("https://images.unsplash.com/photo-1517048676732-d65bc937f952?auto=format&fit=crop&w=800&q=80"); }
.story-img-3 { background-image: url("https://images.unsplash.com/photo-1509099836639-18ba1795216d?auto=format&fit=crop&w=800&q=80"); }
.story-img-4 { background-image: url("https://images.unsplash.com/photo-1521791136064-7986c2920216?auto=format&fit=crop&w=800&q=80"); }
.story-img-5 { background-image: url("https://images.unsplash.com/photo-1469571486292-0ba58a3f068b?auto=format&fit=crop&w=800&q=80"); }
.story-img-6 { background-image: url("https://images.unsplash.com/photo-1559027615-cd4628902d4a?auto=format&fit=crop&w=800&q=80"); }

/* ─── 투명경영 소개 섹션 배경 ─── */
.intro-full {
    background-image:
        linear-gradient(rgba(4, 82, 255, .92), rgba(4, 82, 255, .94)),
        url("https://images.unsplash.com/photo-1469571486292-0ba58a3f068b?auto=format&fit=crop&w=1800&q=80");
    background-position: center;
    background-size: cover;
}

/* ─── 사업안내 이미지 카드 ─── */
.biz-card {
    background-size: cover;
    background-position: center;
    transition: transform 0.3s ease;
}
.biz-card:hover {
    transform: translateY(-4px);
}
.biz-domestic {
    background-image: url("https://images.unsplash.com/photo-1488521787991-ed7bbaae773c?auto=format&fit=crop&w=1200&q=80");
}
.biz-global {
    background-image: url("https://images.unsplash.com/photo-1559027615-cd4628902d4a?auto=format&fit=crop&w=1200&q=80");
}

/* ─── 캠페인 카드 ─── */
.campaign-swiper {
    padding: 0 0.75rem 0 0;
    overflow: visible;
}
@media (min-width: 768px) {
    .campaign-swiper {
        padding: 0 1.5rem 0 0;
    }
}
.campaign-card {
    position: relative;
    overflow: hidden;
    background-position: center;
    background-size: cover;
    min-height: 18rem;
    border-radius: 1.25rem;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}
@media (min-width: 768px) {
    .campaign-card {
        min-height: 20rem;
        border-radius: 1.75rem;
    }
}
.campaign-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 30%, rgba(0,0,0,.75) 100%);
    z-index: 1;
}
.campaign-content {
    position: relative;
    z-index: 2;
    padding: 1.25rem;
    color: #fff;
}
@media (min-width: 768px) {
    .campaign-content {
        padding: 1.5rem;
    }
}
.campaign-content > span {
    display: inline-flex;
    width: fit-content;
    border-radius: 999rem;
    background: rgba(255,255,255,.2);
    border: 1px solid rgba(255,255,255,.35);
    color: #fff;
    padding: 0.25rem 0.75rem;
    font-weight: 900;
    font-size: 0.7rem;
    backdrop-filter: blur(4px);
}
.campaign-content h3 {
    margin-top: 0.6rem;
    font-size: 1rem;
    line-height: 1.4;
    font-weight: 900;
    letter-spacing: -0.03em;
}
@media (min-width: 768px) {
    .campaign-content h3 {
        font-size: 1.15rem;
    }
}

/* 캠페인 프로그레스 */
.camp-progress {
    margin-top: 0.85rem;
}
.camp-bar {
    width: 100%;
    height: 4px;
    background: rgba(255,255,255,.25);
    border-radius: 999rem;
    overflow: hidden;
}
.camp-fill {
    height: 100%;
    background: #c8ff1b;
    border-radius: 999rem;
    transition: width 0.6s ease;
}
.camp-meta {
    display: flex;
    justify-content: space-between;
    margin-top: 0.5rem;
    font-size: 0.7rem;
    font-weight: 700;
    color: rgba(255,255,255,.8);
}
.camp-pct {
    color: #c8ff1b;
    font-weight: 900;
}

/* 캠페인 배경 이미지 */
.campaign-img-1 { background-image: url("https://images.unsplash.com/photo-1576091160550-2173dba999ef?auto=format&fit=crop&w=800&q=80"); }
.campaign-img-2 { background-image: url("https://images.unsplash.com/photo-1579684385127-1ef15d508118?auto=format&fit=crop&w=800&q=80"); }
.campaign-img-3 { background-image: url("https://images.unsplash.com/photo-1519340241574-2cec6aef0c01?auto=format&fit=crop&w=800&q=80"); }
.campaign-img-4 { background-image: url("https://images.unsplash.com/photo-1509099836639-18ba1795216d?auto=format&fit=crop&w=800&q=80"); }
.campaign-img-5 { background-image: url("https://images.unsplash.com/photo-1488521787991-ed7bbaae773c?auto=format&fit=crop&w=800&q=80"); }

/* ─── 후원가이드 아이콘 카드 ─── */
.guide-icon-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 0.6rem;
    padding: 1rem 0.5rem;
    border-radius: 1.25rem;
    background: #fff;
    text-decoration: none;
    color: inherit;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    box-shadow: 0 1px 4px rgba(0,0,0,.05);
}
.guide-icon-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(4,82,255,.12);
}
.guide-icon-wrap {
    width: 3rem;
    height: 3rem;
    border-radius: 0.875rem;
    display: grid;
    place-items: center;
    transition: transform 0.2s ease;
}
.guide-icon-card:hover .guide-icon-wrap {
    transform: scale(1.1);
}
.guide-icon-card b {
    font-size: 0.75rem;
    font-weight: 900;
    color: #07111f;
    line-height: 1.3;
}
.guide-icon-card p {
    font-size: 0.7rem;
    line-height: 1.55;
    font-weight: 600;
    color: #64748b;
}
@media (min-width: 768px) {
    .guide-icon-wrap {
        width: 3.5rem;
        height: 3.5rem;
        border-radius: 1rem;
    }
    .guide-icon-card b {
        font-size: 0.8125rem;
    }
    .guide-icon-card p {
        font-size: 0.75rem;
    }
}

/* ─── 뉴스 목록 ─── */
.news-row {
    display: grid;
    grid-template-columns: 6rem minmax(0, 1fr) 5.5rem;
    gap: 0.75rem 1rem;
    align-items: center;
    padding: 0.9rem 0;
    border-bottom: 1px solid #e8eef9;
    cursor: pointer;
    transition: background 0.15s ease;
}
.news-row:last-child { border-bottom: none; }
.news-row:hover { background: #f8fbff; }
.news-row b {
    color: #0452ff;
    font-weight: 900;
    font-size: 0.75rem;
    white-space: nowrap;
}
.news-row span {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-weight: 600;
    font-size: 0.875rem;
    color: #1e293b;
}
.news-row em {
    color: #94a3b8;
    font-style: normal;
    font-size: 0.75rem;
    text-align: right;
    white-space: nowrap;
}
.news-row.hidden-row {
    display: none;
}

/* ─── 모바일 드로어 ─── */
#mobileDrawer03 {
    display: none !important;
    position: fixed;
    inset: 0;
    z-index: 9000;
}
#mobileDrawer03.is-open {
    display: block !important;
}
#mobileDrawer03 aside {
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    z-index: 9001;
    transform: translateX(-100%);
    transition: transform 0.28s cubic-bezier(0.4, 0, 0.2, 1);
}
#mobileDrawer03.is-open aside {
    transform: translateX(0);
}

/* ─── top 버튼 ─── */
#topBtn03.show {
    opacity: 1;
    visibility: visible;
}

/* ─── 모바일 하단 후원 바 ─── */
.mobile-donate-bar {
    padding-bottom: env(safe-area-inset-bottom, 0);
}

/* ─── 모바일 body 하단 패딩 (하단 버튼 가림 방지) ─── */
@media (max-width: 767.98px) {
    body {
        padding-bottom: 3.5rem;
    }

    .area-right-full {
        width: calc(100vw - 0.75rem);
        margin-left: 0.75rem;
    }

    .news-row {
        grid-template-columns: 5rem minmax(0, 1fr);
        grid-template-rows: auto auto;
        gap: 0.25rem 0.5rem;
    }
    .news-row span {
        grid-column: 1 / -1;
        white-space: normal;
        overflow: visible;
        text-overflow: unset;
        font-size: 0.8125rem;
        line-height: 1.5;
    }
    .news-row em {
        text-align: left;
        font-size: 0.7rem;
    }
    .news-row b {
        font-size: 0.7rem;
    }
}

/* ─── 스크롤바 숨김 ─── */
.swiper-wrapper {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

/* ─── 푸터 패밀리 사이트 셀렉트 ─── */
.family-select-wrap {
    position: relative;
}
.family-select {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    width: 100%;
    height: 2.5rem;
    border: 1px solid #e2e8f0;
    border-radius: 999rem;
    padding: 0 2.5rem 0 1rem;
    background: #fff;
    font-size: 0.875rem;
    font-weight: 700;
    color: #64748b;
    cursor: pointer;
    transition: border-color 0.2s ease;
}
.family-select:hover,
.family-select:focus {
    border-color: #0452ff;
    outline: none;
}
.family-select-arrow {
    position: absolute;
    top: 50%;
    right: 1rem;
    transform: translateY(-50%);
    color: #64748b;
    font-size: 1rem;
    pointer-events: none;
}

/* ─── 진입 레이어 팝업 ─── */
.popup-layer {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 9500;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}
.popup-layer.is-open {
    display: flex;
}
.popup-dim {
    position: absolute;
    inset: 0;
    background: rgba(7, 17, 31, .58);
    border: 0;
    cursor: pointer;
}
.popup-card {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 24rem;
    background: #fff;
    border-radius: 1.5rem;
    overflow: hidden;
    box-shadow: 0 1.5rem 4rem rgba(7, 17, 31, .35);
    animation: popupIn .32s cubic-bezier(.22, 1, .36, 1);
}
@keyframes popupIn {
    from { opacity: 0; transform: translateY(1.25rem) scale(.97); }
    to   { opacity: 1; transform: translateY(0) scale(1); }
}
.popup-visual {
    position: relative;
    padding: 1.75rem 1.5rem 1.5rem;
    background:
        linear-gradient(140deg, rgba(4, 82, 255, .82), rgba(4, 82, 255, .92)),
        url("https://images.unsplash.com/photo-1488521787991-ed7bbaae773c?auto=format&fit=crop&w=900&q=80");
    background-size: cover;
    background-position: center;
}
.popup-foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 0.875rem 1.25rem;
    background: #fff;
    border-top: 1px solid #eef2f9;
}
.popup-hide-label {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.8125rem;
    font-weight: 700;
    color: #64748b;
    cursor: pointer;
}
.popup-hide-label input {
    width: 1rem;
    height: 1rem;
    accent-color: #0452ff;
    cursor: pointer;
}
.popup-close-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    height: 2.25rem;
    padding: 0 1rem;
    border-radius: 999rem;
    background: #f2f6ff;
    color: #0452ff;
    font-size: 0.8125rem;
    font-weight: 800;
    border: 0;
    cursor: pointer;
    transition: background 0.2s ease;
}
.popup-close-btn:hover {
    background: #dce9ff;
}
@media (max-width: 480px) {
    .popup-card {
        max-width: 20rem;
    }
    .popup-foot {
        flex-direction: column;
        align-items: stretch;
    }
    .popup-close-btn {
        justify-content: center;
    }
}
