@import url('https://cdn.jsdelivr.net/gh/orioncactus/pretendard/dist/web/variable/pretendardvariable.css');

:root {
    /* 색상 팔레트 - 신뢰감 있는 딥 그린 + 코랄 포인트 (컨셉 A) */
    --primary-color: #047857;  /* 딥 그린 (메인) */
    --primary-dark: #065F46;   /* 더 진한 그린 (호버) */
    --secondary-color: #F97316; /* 코랄 오렌지 (포인트/버튼 등) */
    --secondary-dark: #EA580C;  /* 더 진한 코랄 */
    --accent-gold: #FCD34D;     /* 따뜻한 옐로우/골드 */

    /* 그레이 스케일 (모던한 차가움과 따뜻함의 중간) */
    --gray-100: #F3F4F6;
    --gray-200: #E5E7EB;
    --gray-300: #D1D5DB;
    --gray-400: #9CA3AF;
    --gray-500: #6B7280;
    --gray-600: #4B5563;
    --gray-700: #374151;
    --gray-800: #1F2937;
    --gray-900: #111827;

    /* 텍스트 색상 */
    --text-primary: #1F2937;
    --text-secondary: #4B5563;
    --text-light: #9CA3AF;

    /* 배경 색상 */
    --bg-white: #FFFFFF;
    --bg-light: #F9FAFB;
    --bg-section: #F2FDF8; /* 은은하고 아주 연한 민트/그린빛 감성 스킨 */

    /* 상태 색상 */
    --success: #10B981;
    --error: #EF4444;
    --warning: #F59E0B;
    --info: #3B82F6;

    /* 그림자 - 훨씬 크고 부드러운 고급 그림자 통일 */
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.03);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
    --shadow-lg: 0 10px 25px -5px rgba(0, 0, 0, 0.05), 0 8px 10px -6px rgba(0, 0, 0, 0.01);
    --shadow-xl: 0 20px 35px -5px rgba(4, 120, 87, 0.08); /* 딥그린 살짝 섞인 거대 그림자 */

    /* 반경 - 요즘 트렌드에 맞는 둥글둥글한 모서리 */
    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 24px;

    /* 폰트 - 프리텐다드 적용 */
    --font-family: 'Pretendard Variable', Pretendard, -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Noto Sans KR', sans-serif;
}

/* 리셋 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-family);
    color: var(--text-primary);
    background-color: var(--bg-white);
    line-height: 1.6;
}

a {
    text-decoration: none;
    color: inherit;
}

button {
    cursor: pointer;
    border: none;
    background: none;
    font-family: inherit;
}

/* 컨테이너 */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* 헤더 */
header {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-top {
    background: var(--bg-section);
    padding: 10px 0;
    font-size: 14px;
    color: var(--text-secondary);
}

.header-top .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header-contact {
    display: flex;
    gap: 20px;
}

.header-contact span {
    display: flex;
    align-items: center;
    gap: 5px;
}

.header-auth a {
    margin-left: 15px;
    color: var(--primary-color);
    font-weight: 500;
}

.header-auth a:hover {
    color: var(--primary-dark);
}

.header-main {
    padding: 15px 0;
}

.header-main .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: nowrap;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

.logo img {
    height: 50px;
    flex-shrink: 0;
}

.logo-text h1 {
    font-size: 18px;
    color: var(--text-primary);
    margin-bottom: 3px;
    white-space: nowrap;
}

.logo-text p {
    font-size: 11px;
    color: var(--text-secondary);
    white-space: nowrap;
}

/* 네비게이션 */
nav {
    flex-shrink: 0;
}

nav ul {
    display: flex;
    list-style: none;
    gap: 20px;
    flex-wrap: nowrap;
}

nav a {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-primary);
    padding: 10px 0;
    position: relative;
    transition: color 0.3s;
    white-space: nowrap;
}

nav a:hover {
    color: var(--primary-color);
}

nav a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 3px;
    background: var(--primary-color);
    transition: width 0.3s;
}

nav a:hover::after,
nav a.active::after {
    width: 100%;
}

/* 푸터 */
footer {
    background: var(--gray-900);
    color: var(--gray-300);
    padding: 60px 0 30px;
    margin-top: 80px;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-info h3 {
    color: var(--bg-white);
    margin-bottom: 20px;
    font-size: 20px;
}

.footer-info p {
    margin-bottom: 10px;
    font-size: 14px;
}

.footer-links h4 {
    color: var(--bg-white);
    margin-bottom: 15px;
    font-size: 16px;
}

.footer-links ul {
    list-style: none;
}

.footer-links a {
    color: var(--gray-400);
    font-size: 14px;
    line-height: 2;
    transition: color 0.3s;
}

.footer-links a:hover {
    color: var(--accent-gold);
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid var(--gray-700);
    font-size: 14px;
    color: var(--gray-500);
}

/* 버튼 */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 28px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 15px;
    letter-spacing: 0.3px;
    text-align: center;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: var(--shadow-sm);
}

.btn-primary {
    background: var(--primary-color);
    color: white;
    border: 2px solid var(--primary-color);
}

.btn-primary:hover {
    background: var(--primary-dark);
    border-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 8px 15px rgba(4, 120, 87, 0.25);
}

.btn-secondary {
    background: var(--secondary-color);
    color: white;
    border: 2px solid var(--secondary-color);
}

.btn-secondary:hover {
    background: var(--secondary-dark);
    border-color: var(--secondary-dark);
    transform: translateY(-2px);
    box-shadow: 0 8px 15px rgba(249, 115, 22, 0.25);
}

.btn-outline {
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
}

.btn-outline:hover {
    background: var(--primary-color);
    color: white;
}

/* 폼 요소 */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: var(--text-primary);
}

.form-control {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid var(--gray-300);
    border-radius: var(--radius-md);
    font-size: 14px;
    transition: border-color 0.3s;
}

.form-control:focus {
    outline: none;
    border-color: var(--primary-color);
}

textarea.form-control {
    resize: vertical;
    min-height: 150px;
}

/* 카드 */
.card {
    background: var(--bg-white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    border: 1px solid rgba(0, 0, 0, 0.03);
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.card:hover {
    box-shadow: var(--shadow-xl);
    transform: translateY(-8px);
}

.card-header {
    padding: 20px;
    border-bottom: 1px solid var(--gray-200);
}

.card-body {
    padding: 20px;
}

/* 페이징 */
.pagination {
    display: flex;
    justify-content: center;
    margin-top: 40px;
}

.pagination ul {
    display: flex;
    list-style: none;
    gap: 5px;
}

.pagination a {
    display: block;
    padding: 8px 12px;
    border: 1px solid var(--gray-300);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    transition: all 0.3s;
}

.pagination a:hover {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.pagination .active a {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

/* 테이블 */
.table {
    width: 100%;
    border-collapse: collapse;
    background: var(--bg-white);
}

.table th,
.table td {
    padding: 15px;
    text-align: left;
    border-bottom: 1px solid var(--gray-200);
}

.table th {
    background: var(--bg-section);
    font-weight: 600;
    color: var(--text-primary);
}

.table tr:hover {
    background: var(--bg-light);
}

/* 유틸리티 클래스 */
.text-center {
    text-align: center;
}

.text-right {
    text-align: right;
}

.mt-1 {
    margin-top: 10px;
}

.mt-2 {
    margin-top: 20px;
}

.mt-3 {
    margin-top: 30px;
}

.mb-1 {
    margin-bottom: 10px;
}

.mb-2 {
    margin-bottom: 20px;
}

.mb-3 {
    margin-bottom: 30px;
}

/* 애니메이션 */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes bounce {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }
}

/* 애니메이션 클래스 */
.animate-fade-in {
    animation: fadeIn 0.8s ease-out forwards;
}

.animate-slide-left {
    animation: slideInLeft 0.8s ease-out forwards;
}

.animate-slide-right {
    animation: slideInRight 0.8s ease-out forwards;
}

.animate-scale {
    animation: scaleIn 0.6s ease-out forwards;
}

/* 스크롤 애니메이션 준비 */
.scroll-animate {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.scroll-animate.active {
    opacity: 1;
    transform: translateY(0);
}

/* 카드 호버 효과 강화 */
.card {
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.15);
}

/* 버튼 애니메이션 */
.btn {
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn:hover::before {
    width: 300px;
    height: 300px;
}

/* 링크 언더라인 애니메이션 */
.footer-links a {
    position: relative;
}

.footer-links a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent-gold);
    transition: width 0.3s ease;
}

.footer-links a:hover::after {
    width: 100%;
}

/* 로고 확대 효과 */
.logo img {
    transition: transform 0.3s ease-in-out;
}

.logo:hover img {
    transform: scale(1.08);
}

/* 메뉴 아이템 애니메이션 */
nav li {
    animation: fadeIn 0.5s ease-out forwards;
    animation-delay: calc(var(--i) * 0.1s);
    opacity: 0;
}

nav li:nth-child(1) {
    --i: 1;
}

nav li:nth-child(2) {
    --i: 2;
}

nav li:nth-child(3) {
    --i: 3;
}

nav li:nth-child(4) {
    --i: 4;
}

nav li:nth-child(5) {
    --i: 5;
}

nav li:nth-child(6) {
    --i: 6;
}

/* Pulse 애니메이션 */
@keyframes pulse {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.7;
    }
}

.pulse {
    animation: pulse 2s infinite;
}

/* 반응형 */
@media (max-width: 1024px) {
    .header-main .container {
        flex-direction: column;
        gap: 15px;
    }
    nav ul {
        flex-wrap: wrap;
        justify-content: center;
        gap: 10px 20px;
    }
}
/* ==========================================================================
   전 기기 반응형 시스템 (CSS-Only)
   - PC 레이아웃은 100% 보존
   - index.php 등 PHP 파일은 일절 수정하지 않음
   - 드로워 메뉴는 HTML inline style로 display:none 처리됨
   ========================================================================== */

/* 햄버거 메뉴 버튼: PC에서 절대 안 보임 */
.mobile-menu-toggle {
    display: none;
}

/* ====== 768px 이하: 모바일 ====== */
@media (max-width: 768px) {

    /* --- 가로 스크롤 완전 차단 --- */
    html, body {
        overflow-x: hidden !important;
        max-width: 100vw !important;
    }
    * {
        max-width: 100% !important;
        box-sizing: border-box !important;
    }
    /* 예외: SVG, iframe, 비디오는 비율 유지 */
    svg, iframe, video, canvas {
        max-width: 100% !important;
    }

    /* --- 헤더 --- */
    .header-top {
        display: none !important;
    }
    .header-main .container {
        flex-direction: row !important;
        justify-content: space-between !important;
        align-items: center !important;
        gap: 0 !important;
        padding: 8px 15px !important;
    }
    .logo img {
        height: 40px !important;
    }
    .logo-text h1 {
        font-size: 17px !important;
    }

    /* PC 메뉴·로그인 숨기기 */
    .nav-menu, .gnb-bg, .header-auth {
        display: none !important;
    }
    /* nav 래퍼 div 축소 (드로워가 이 안에 있으므로 숨기면 안 됨) */
    .header-main .container > div:nth-child(2) {
        flex: 0 !important;
        padding: 0 !important;
        overflow: visible !important;
    }

    /* 햄버거 버튼 보이기 */
    .mobile-menu-toggle {
        display: flex !important;
        flex-direction: column;
        gap: 5px;
        cursor: pointer;
        padding: 8px;
        z-index: 100;
    }
    .mobile-menu-toggle span {
        display: block;
        width: 24px;
        height: 3px;
        background: var(--text-primary);
        border-radius: 2px;
        transition: 0.3s;
    }

    /* --- 모든 컨테이너 유연화 --- */
    .container {
        width: 100% !important;
        max-width: 100% !important;
        padding: 0 16px !important;
    }
    section {
        padding: 40px 0 !important;
        overflow: hidden !important;
    }

    /* --- 모든 고정 너비 그리드 강제 전환 --- */
    [style*="grid-template-columns"] {
        grid-template-columns: 1fr !important;
    }
    /* 통계 카드는 2열 유지 */
    [style*="grid-template-columns:repeat(4"] {
        grid-template-columns: repeat(2, 1fr) !important;
    }
    /* 고정 너비/높이 가진 div 유연화 */
    [style*="max-width: 1560px"],
    [style*="max-width: 1840px"] {
        max-width: 100% !important;
        width: 100% !important;
        padding: 0 16px !important;
    }
    /* 고정 flex 배치 세로로 전환 */
    [style*="flex-wrap: nowrap"] {
        flex-wrap: wrap !important;
    }

    /* --- ① 히어로 슬라이더 --- */
    #hero-slider {
        height: auto !important;
        min-height: auto !important;
        flex-direction: column !important;
        border-radius: 16px !important;
    }
    .hero-left-area {
        width: 100% !important;
        min-height: 300px !important;
        padding: 30px 20px !important;
    }
    #hero-title {
        font-size: 26px !important;
        line-height: 1.3 !important;
    }
    #hero-subtitle {
        font-size: 14px !important;
    }
    .hero-images-area {
        width: 100% !important;
        height: 250px !important;
    }

    /* --- ② 3대 핵심 사업 패널 --- */
    .pillar-panel {
        flex-direction: column !important;
        gap: 25px !important;
        min-height: auto !important;
    }
    .pillar-panel > div {
        width: 100% !important;
        max-width: 100% !important;
        height: auto !important;
        flex: none !important;
    }
    .pillar-tab {
        padding: 8px 14px !important;
        font-size: 13px !important;
    }

    /* --- ④ 성과 통계 카드 (4칸→2칸) --- */
    [style*="grid-template-columns:repeat(4"] {
        grid-template-columns: repeat(2, 1fr) !important;
    }
    [style*="min-height: 820px"] {
        min-height: auto !important;
    }
    .counter {
        font-size: 32px !important;
    }

    /* --- ⑥ 아치 슬라이더 --- */
    #arch-wrap {
        height: 300px !important;
        overflow: hidden !important;
    }
    .arch-card {
        width: 80% !important;
        max-width: 350px !important;
        height: 220px !important;
        border-radius: 16px !important;
    }

    /* --- 협력기관 로고 --- */
    .partner-logo {
        padding: 10px 16px !important;
        font-size: 13px !important;
    }

    /* --- 그리드 레이아웃 강제 1열 --- */
    [style*="grid-template-columns: repeat(3"] {
        grid-template-columns: 1fr !important;
    }
    [style*="grid-template-columns: 1fr 1fr"] {
        grid-template-columns: 1fr !important;
    }
    [style*="display: grid"] {
        gap: 20px !important;
    }

    /* --- 글로벌 타이포그래피 축소 --- */
    h1, [style*="font-size: 56px"],
    [style*="font-size: 52px"],
    [style*="font-size: 48px"],
    [style*="font-size: 46px"] {
        font-size: 26px !important;
        line-height: 1.3 !important;
    }
    h2, [style*="font-size: 42px"],
    [style*="font-size: 38px"],
    [style*="font-size: 36px"] {
        font-size: 22px !important;
        line-height: 1.3 !important;
    }
    h3, [style*="font-size: 30px"],
    [style*="font-size: 28px"] {
        font-size: 20px !important;
    }

    /* --- 이미지 반응형 --- */
    img {
        max-width: 100% !important;
        height: auto !important;
    }

    /* --- ⑤ 협력기관 수상내역 어워드 카드 --- */
    [style*="grid-template-columns: repeat(auto-fit, minmax(220px"] {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 12px !important;
    }

    /* --- ⑥ 기부 이야기 섹션 (좌우 그리드 → 세로) --- */
    [style*="grid-template-columns: 520px 1fr"] {
        grid-template-columns: 1fr !important;
        gap: 30px !important;
    }
    /* 기부 이야기 하단 링크 그리드도 1열로 */
    [style*="grid-template-columns: 520px 1fr"] + [style*="grid-template-columns: 520px 1fr"] {
        grid-template-columns: 1fr !important;
    }
    /* 개인기부 카드 최소높이 조정 */
    .personal-donation-card {
        min-height: 250px !important;
        border-radius: 16px !important;
    }
    /* 기업기부 가로 카드 세로 전환 */
    .donation-card {
        flex-direction: column !important;
        height: auto !important;
    }
    .donation-card > div:first-child {
        width: 100% !important;
        height: 200px !important;
    }
    .donation-card > div:last-child {
        padding: 20px !important;
    }

    /* --- 투명성 안내 파란색 배너 (도넛 차트) --- */
    [style*="background-color: #0060b5"][style*="border-radius: 32px"] {
        flex-direction: column !important;
        padding: 40px 20px !important;
        gap: 30px !important;
        align-items: center !important;
        text-align: center !important;
        border-radius: 20px !important;
    }
    /* 도넛 차트 크기 조절 + 네거티브 마진 제거 */
    [style*="background-color: #0060b5"][style*="border-radius"] > div:first-child {
        width: 180px !important;
        height: 180px !important;
        margin: 0 auto !important;
        margin-top: 0 !important;
        margin-bottom: 0 !important;
        margin-left: 0 !important;
        flex-shrink: 0 !important;
    }
    /* 도넛 구멍 안 숫자 */
    [style*="background-color: #0060b5"] [style*="font-size: 82px"] {
        font-size: 36px !important;
    }
    [style*="background-color: #0060b5"] [style*="font-size: 46px"] {
        font-size: 20px !important;
    }
    [style*="background-color: #0060b5"] [style*="font-size: 22px"][style*="color: rgba(255,255,255"] {
        font-size: 13px !important;
        margin-top: 8px !important;
    }
    /* 오른쪽 텍스트 영역 */
    [style*="background-color: #0060b5"][style*="border-radius"] > div:last-child {
        padding-right: 0 !important;
        text-align: center !important;
    }
    /* 투명성 배너 제목 */
    [style*="background-color: #0060b5"] [style*="font-size: 42px"] {
        font-size: 22px !important;
    }
    /* 투명성 배너 본문 */
    [style*="background-color: #0060b5"] [style*="font-size: 20px"][style*="line-height: 1.65"] {
        font-size: 15px !important;
    }
    /* 버튼 영역 세로로 쌓기 + 중앙 정렬 */
    [style*="background-color: #0060b5"] [style*="display: flex"][style*="gap: 16px"] {
        flex-direction: column !important;
        align-items: center !important;
        gap: 12px !important;
    }
    [style*="background-color: #0060b5"] [style*="gap: 16px"] a {
        width: 100% !important;
        text-align: center !important;
        padding: 14px 24px !important;
        font-size: 15px !important;
    }
    /* 투명성 배너 감싸는 섹션 패딩 조절 */
    [style*="padding: 120px 0 140px"] {
        padding: 40px 0 !important;
    }

    /* --- ⑦ 최근 소식 섹션 (좌우 → 세로) --- */
    [style*="grid-template-columns: 540px 1fr"] {
        grid-template-columns: 1fr !important;
        gap: 30px !important;
    }
    /* 좌측 sticky 해제 */
    [style*="position: sticky"][style*="top: 120px"] {
        position: static !important;
    }
    /* 유튜브 영상 비율 유지 */
    [style*="aspect-ratio: 4/3"] {
        aspect-ratio: 16/9 !important;
    }
    /* 2x2 뉴스 카드 → 1열 */
    .news-card-9 {
        min-height: auto !important;
    }
    [style*="grid-template-columns: 1fr 1fr"][style*="grid-template-rows: repeat(2"] {
        grid-template-columns: 1fr !important;
        grid-template-rows: auto !important;
    }

    /* --- ⑧ 임팩트 섹션 (손 이미지 배경) --- */
    #foundation-section {
        padding: 60px 0 120px 0 !important;
    }
    #foundation-section [style*="display: flex"][style*="gap: 60px"] {
        flex-direction: column !important;
        gap: 20px !important;
    }
    #foundation-section [style*="min-width: 320px"] {
        min-width: auto !important;
        padding: 30px 20px !important;
        width: 100% !important;
    }
    #foundation-section [style*="font-size: 64px"] {
        font-size: 40px !important;
    }
    /* count-up 숫자 축소 */
    .count-up {
        font-size: 40px !important;
    }

    /* --- 푸터 --- */
    footer {
        padding: 30px 0 40px 0 !important;
    }
    footer > .container,
    footer .container {
        flex-direction: column !important;
        gap: 24px !important;
        align-items: flex-start !important;
    }
    /* 푸터 로고 크기 확실하게 제한 */
    footer img {
        height: 36px !important;
        width: auto !important;
        max-width: 160px !important;
        object-fit: contain !important;
    }
    /* 국세청 로고 더 작게 */
    footer a[href*="nts.go.kr"] img {
        height: 28px !important;
        max-width: 120px !important;
    }
    /* 오른쪽 정보 블록 */
    footer .container > div:last-child,
    footer .container > div {
        width: 100% !important;
        min-width: unset !important;
    }
    /* SNS + 국세청 배너 행 */
    footer [style*="justify-content: flex-end"] {
        justify-content: flex-start !important;
        flex-wrap: wrap !important;
        gap: 12px !important;
    }
    /* SNS 아이콘 크기 */
    footer a[style*="width: 44px"] {
        width: 36px !important;
        height: 36px !important;
    }
    /* 약관 링크 줄바꿈 */
    footer [style*="gap: 36px"] {
        gap: 12px 20px !important;
        flex-wrap: wrap !important;
        font-size: 13px !important;
    }
    /* 기관 정보 줄바꿈 대응 */
    footer [style*="color: #666"][style*="line-height: 1.85"],
    footer [style*="color: #666"][style*="line-height: 1.85"] p {
        font-size: 12px !important;
        word-break: keep-all !important;
        line-height: 1.6 !important;
    }
    /* 구분선 | 제거 (모바일에서는 줄바꿈이 나으므로) */
    footer [style*="margin:0 8px"],
    footer span[style*="margin:0 8px"] {
        display: none !important;
    }
    footer [style*="color: #666"] p {
        margin-bottom: 2px !important;
        display: block !important;
    }
    /* Copyright */
    footer [style*="font-family: 'Helvetica"] {
        font-size: 11px !important;
    }

    /* --- 게시글 본문 --- */
    #post-content img {
        max-width: 100% !important;
        height: auto !important;
    }
    #post-content table {
        display: block !important;
        overflow-x: auto !important;
        width: 100% !important;
    }
}

/* ====== 480px 이하: 초소형 모바일 ====== */
@media (max-width: 480px) {
    .hero-left-area {
        min-height: 260px !important;
        padding: 25px 16px !important;
    }
    #hero-title {
        font-size: 22px !important;
    }
    .hero-images-area {
        height: 200px !important;
    }
    #arch-wrap {
        height: 250px !important;
    }
    .arch-card {
        height: 180px !important;
    }
    .counter {
        font-size: 26px !important;
    }

    /* 수상내역 1열 전환 */
    [style*="grid-template-columns: repeat(auto-fit, minmax(220px"] {
        grid-template-columns: 1fr !important;
    }

    /* 기부카드 썸네일 높이 축소 */
    .donation-card > div:first-child {
        height: 160px !important;
    }

    /* 도넛 차트 더 축소 */
    [style*="background-color: #0060b5"][style*="border-radius"] > div:first-child {
        width: 150px !important;
        height: 150px !important;
    }

    /* 임팩트 섹션 */
    #foundation-section {
        padding: 40px 0 80px 0 !important;
    }
    .count-up {
        font-size: 32px !important;
    }
    #foundation-section [style*="font-size: 64px"] {
        font-size: 32px !important;
    }

    /* 푸터 더 축소 */
    footer [style*="gap: 36px"] {
        font-size: 12px !important;
    }
}