@charset "utf-8";
@import url("/build/plugin/remixicon/fonts/remixicon.css");

/* ============================================================
   여수시 청년정책 플랫폼 - 공통 스타일시트
   ============================================================

   목차:
   1. Pretendard 폰트 설정
   2. CSS 변수 시스템 (Design Tokens)
   3. 기본 스타일 (Reset & Base)
   4. 웹 접근성
   5. 레이아웃 (Layout)
   6. 그리드 시스템
   7. 인쇄 스타일

   파일 구조:
   - common.css: 기본 스타일, CSS 변수, Reset
   - utility.css: 재사용 가능한 헬퍼 클래스 (Typography, Spacing, Scroll 등)
   - components.css: 컴포넌트 스타일
   - main.css: 메인 페이지 전용 스타일 (스크롤 애니메이션 포함)

   유지보수 가이드:
   - 반복 사용되는 값(3회 이상)은 CSS 변수로 정의
   - 웹 접근성(KWCAG 2.2) 준수 필수
   - 공공기관 웹사이트 UI/UX 가이드 준수

   ============================================================ */

/* ===================================
   1. Pretendard 폰트 설정 (Static Font)
   ===================================

   각 굵기별로 최적화된 폰트 파일 사용
   위치: /fonts/ 폴더
   font-display: swap - 폰트 로딩 중에도 텍스트 표시
   =================================== */

/* Pretendard Light (300) */
@font-face {
    font-family: 'Pretendard';
    src: url('../fonts/Pretendard-Light.woff') format('woff');
    font-weight: 300;
    font-style: normal;
    font-display: swap;
}

/* Pretendard Regular (400) - 본문 기본 */
@font-face {
    font-family: 'Pretendard';
    src: url('../fonts/Pretendard-Regular.woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

/* Pretendard Medium (500) */
@font-face {
    font-family: 'Pretendard';
    src: url('../fonts/Pretendard-Medium.woff') format('woff');
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}

/* Pretendard SemiBold (600) */
@font-face {
    font-family: 'Pretendard';
    src: url('../fonts/Pretendard-SemiBold.woff') format('woff');
    font-weight: 600;
    font-style: normal;
    font-display: swap;
}

/* Pretendard Bold (700) - 제목 기본 */
@font-face {
    font-family: 'Pretendard';
    src: url('../fonts/Pretendard-Bold.woff') format('woff');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

/* Pretendard ExtraBold (800) */
@font-face {
    font-family: 'Pretendard';
    src: url('../fonts/Pretendard-ExtraBold.woff') format('woff');
    font-weight: 800;
    font-style: normal;
    font-display: swap;
}


/* ===================================
   2. CSS 변수 설정 (Design Token System)
   ===================================

   디자인 토큰 시스템으로 일관된 디자인 유지

   원칙:
   - 3회 이상 반복 사용되는 값만 변수로 정의
   - 명확하고 의미있는 변수명 사용
   - 카테고리별로 체계적으로 구성

   카테고리:
   - Color Palette (색상 시스템)
   - Typography (폰트 시스템)
   - Spacing (간격 시스템 - --space-*)
   - Layout (레이아웃)
   - Effects (그림자, 투명도)
   - Animation (애니메이션)
   - Z-Index (레이어 순서)
   - Component Specific (컴포넌트 전용)

   =================================== */
:root {
    /* ========== Color Palette ========== */
    /* Primary Colors - 메인 브랜드 컬러 */
    --color-primary: #036BAC;
    --color-primary-hover: #025a8f;
    --color-primary-dark: #202C38;
    --color-primary-light: #E0EEF6;

    /* Secondary Colors - 보조 컬러 */
    --color-secondary: #009456;
    --color-secondary-bright: #00A651;
    --color-accent: #FFCC02;
    --color-accent-yellow: #FFE900;
    --color-warning: #F15D3E;
    --color-error: #dc3545;
    --color-success: #28a745;
    --color-info: #17a2b8;

    /* Additional Background Colors */
    --color-dark-navy: #191B41;
    --color-dark-navy-hover: #1a252f;
    --color-light-bg: #F0F0F0;
    --color-separator: #D9D9D9;

    /* Grayscale - 회색조 */
    --color-gray-48: #F8F9FA;
    --color-gray-50: #F2F3F7;
    --color-gray-100: #E9ECEF;
    --color-gray-200: #DEE2E6;
    --color-gray-300: #CCCCCC;
    --color-gray-400: #999999;
    --color-gray-500: #666666;
    --color-gray-600: #495057;
    --color-gray-700: #343A40;
    --color-gray-800: #222222;
    --color-gray-900: #000000;

    /* Semantic Colors - 의미론적 컬러 */
    --color-white: #FFFFFF;
    --color-black: #000000;

    /* Text Colors - 텍스트 컬러 */
    --color-text: #333333;
    --color-text-secondary: #666666;
    --color-text-light: #999999;

    /* Background Colors - 배경 컬러 */
    --color-bg-sub: #F8F8F8;
    --color-bg-point: #E0EEF6;
    --color-bg-gray: #F5F5F5;
    --color-bg-gray-light: #FAFAFA;

    /* Component Colors - 컴포넌트 전용 색상 */
    --color-news-badge-bg: #E3EBFD;
    --color-news-badge-text: #1F63C9;
    --gradient-search: linear-gradient(135deg, #2C9DAD 0%, #046FD9 100%);

    /* Tag Colors - 태그 색상 팔레트 */
    --tag-red-bg: #FFE5E5;
    --tag-red-text: #D32F2F;
    --tag-blue-bg: #E3F2FD;
    --tag-blue-text: #1565C0;
    --tag-purple-bg: #E8D5FF;
    --tag-purple-text: #7B2CBF;
    --tag-violet-bg: #F0E5FF;
    --tag-violet-text: #9C27B0;
    --tag-yellow-bg: #FFF9C4;
    --tag-yellow-text: #F57F17;
    --tag-green-bg: #C8E6C9;
    --tag-green-text: #2E7D32;
    --tag-cyan-bg: #B2EBF2;
    --tag-cyan-text: #00838F;

    /* ========== Typography ========== */
    /* Font Family */
    --font-primary: 'Pretendard', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Malgun Gothic', 'Apple SD Gothic Neo', sans-serif;
    --font-mono: 'SF Mono', 'Monaco', 'Inconsolata', 'Fira Mono', 'Droid Sans Mono', 'Source Code Pro', monospace;

    /* Font Size - 16px 기준 */
    --font-12: 0.75rem;       /* 12px - Caption */
    --font-13: 0.8125rem;     /* 13px */
    --font-14: 0.875rem;      /* 14px - Small */
    --font-15: 0.9375rem;     /* 15px */
    --font-16: 1rem;          /* 16px - Body */
    --font-17: 1.0625rem;     /* 17px */
    --font-18: 1.125rem;      /* 18px - Body Large */
    --font-19: 1.1875rem;     /* 19px */
    --font-20: 1.25rem;       /* 20px - Subtitle */
    --font-22: 1.375rem;      /* 22px */
    --font-24: 1.5rem;        /* 24px - Title 3 */
    --font-28: 1.75rem;       /* 28px - Title 2 */
    --font-32: 2rem;          /* 32px */
    --font-36: 2.25rem;       /* 36px - Title 1 */
    --font-40: 2.5rem;        /* 40px */
    --font-48: 3rem;          /* 48px */
    --font-56: 3.5rem;        /* 56px */
    --font-60: 3.75rem;       /* 60px */
    --font-64: 4rem;          /* 64px */
    --font-72: 4.5rem;        /* 72px - Main Hero */
    --font-80: 5rem;          /* 80px - Extra Large */

    /* Fluid Typography - 반응형 폰트 */
    --fluid-min-width: 320;
    --fluid-max-width: 1920;
    --fluid-screen: 100vw;
    --fluid-bp: calc((var(--fluid-screen) - var(--fluid-min-width) / 16 * 1rem) / (var(--fluid-max-width) - var(--fluid-min-width)));

    /* Font Weight */
    --weight-light: 300;
    --weight-regular: 400;
    --weight-medium: 500;
    --weight-semibold: 600;
    --weight-bold: 700;
    --weight-extrabold: 800;

    /* Line Height */
    --leading-none: 1;
    --leading-tight: 1.25;
    --leading-snug: 1.375;
    --leading-compact: 1.4;
    --leading-normal: 1.5;
    --leading-relaxed: 1.6;
    --leading-loose: 1.75;

    /* Letter Spacing */
    --tracking-tighter: -0.05em;
    --tracking-tight: -0.025em;
    --tracking-normal: 0;
    --tracking-normal-kr: -0.01em;  /* 한글 최적화: 자연스러운 자간 */

    /* ========== Spacing ========== */
    --space-4: 0.25rem;       /* 4px */
    --space-6: 0.375rem;      /* 6px */
    --space-8: 0.5rem;        /* 8px */
    --space-10: 0.625rem;     /* 10px */
    --space-12: 0.75rem;      /* 12px */
    --space-14: 0.875rem;     /* 14px */
    --space-15: 0.9375rem;    /* 15px */
    --space-16: 1rem;         /* 16px */
    --space-20: 1.25rem;      /* 20px */
    --space-24: 1.5rem;       /* 24px */
    --space-25: 1.5625rem;    /* 25px */
    --space-30: 1.875rem;     /* 30px */
    --space-32: 2rem;         /* 32px */
    --space-36: 2.25rem;      /* 36px */
    --space-40: 2.5rem;       /* 40px */
    --space-48: 3rem;         /* 48px */
    --space-60: 3.75rem;      /* 60px */
    --space-64: 4rem;         /* 64px */
    --space-120: 7.5rem;      /* 120px */

    /* ========== Layout ========== */
    --layout-max-width: 1340px;
    --layout-container-margin: 260px;
    --layout-content-padding: 24px;
    --layout-header-height: 100px;
    --layout-footer-height: auto;

    /* Component Dimensions */
    --width-sidebar: 280px;
    --width-filter-mobile: 300px;
    --width-button-standard: 180px;
    --width-form-max: 700px;
    --height-button-default: 44px;
    --height-input-default: 48px;
    --height-card-image: 190px;
    --height-terms-box: 544px;
    --height-terms-box-mobile: 448px;
    --size-checkbox: 22px;
    --size-step-indicator: 50px;
    --size-auth-icon: 150px;
    --size-auth-icon-mobile: 120px;

    /* ========== Effects ========== */
    /* Box Shadow */
    --shadow-md: 0 4px 8px 0 rgba(0, 0, 0, 0.12);
    --shadow-lg: 0 8px 16px 0 rgba(0, 0, 0, 0.16);
    --shadow-xl: 0 12px 24px 0 rgba(0, 0, 0, 0.2);
    --shadow-card-hover: 0 8px 30px rgba(0, 0, 0, 0.12);
    --shadow-banner: 0 4px 20px rgba(0, 0, 0, 0.08);
    --shadow-dropdown: 0 4px 12px rgba(0, 0, 0, 0.1);

    /* RGBA Colors - 투명도 적용 색상 */
    --rgba-black-05: rgba(0, 0, 0, 0.05);
    --rgba-black-08: rgba(0, 0, 0, 0.08);
    --rgba-black-10: rgba(0, 0, 0, 0.1);
    --rgba-black-12: rgba(0, 0, 0, 0.12);
    --rgba-black-15: rgba(0, 0, 0, 0.15);
    --rgba-black-20: rgba(0, 0, 0, 0.2);
    --rgba-black-50: rgba(0, 0, 0, 0.5);
    --rgba-black-60: rgba(0, 0, 0, 0.6);
    --rgba-black-90: rgba(0, 0, 0, 0.9);
    --rgba-white-10: rgba(255, 255, 255, 0.1);
    --rgba-white-20: rgba(255, 255, 255, 0.2);

    /* Border Radius */
    --radius-xs: 2px;
    --radius-sm: 4px;
    --radius-md: 6px;
    --radius-lg: 8px;
    --radius-xl: 12px;
    --radius-3xl: 20px;
    --radius-pill: 24px;
    --radius-pill-sm: 50px;
    --radius-round-md: 30px;
    --radius-card-tag: 8px;
    --radius-card-white-bg: 16px;
    --radius-full: 9999px;
    --radius-circle: 50%;

    /* Card Sizes */
    --card-width: 426px;
    --card-height-active: 600px;
    --card-height-inactive: 500px;

    /* ========== Animation ========== */
    /* Duration */
    --duration-fast: 150ms;
    --duration-base: 300ms;
    --duration-smooth: 500ms;

    /* Easing */
    --ease-linear: linear;
    --ease-in: cubic-bezier(0.4, 0, 1, 1);
    --ease-out: cubic-bezier(0, 0, 0.2, 1);
    --ease-in-out: cubic-bezier(0.4, 0, 0.2, 1);

    /* ========== Z-Index ========== */
    --z-dropdown: 100;
    --z-sticky: 500;
    --z-fixed: 1000;
    --z-modal-backdrop: 1040;
    --z-modal: 1050;
    --z-popover: 1060;
    --z-tooltip: 1070;

    /* ========== Component Specific ========== */
    /* Pagination */
    --pagination-btn-size: 40px;
    --pagination-btn-size-tablet: 36px;
    --pagination-btn-size-mobile: 32px;
    --pagination-gap: 8px;
    --pagination-gap-tablet: 6px;
    --pagination-gap-mobile: 4px;
    --pagination-margin-top: 60px;
    --pagination-margin-top-tablet: 40px;
    --pagination-margin-top-mobile: 30px;

    /* Sub Navigation */
    --subnav-height: 70px;
    --subnav-height-tablet: 60px;
    --subnav-height-mobile: 50px;
    --subnav-bg: #2c3e50;
    --subnav-home-bg: var(--color-primary);

    /* Component Heights - 반복 사용되는 높이 */
    --height-search: 80px;       /* 3회 사용 */
    --height-cta-banner: 92px;   /* 2회 사용 */
    --height-sub-visual: 240px;  /* 4회 사용 */
    --height-header-min: 88px;
    --height-footer-min: 200px;  /* 5회 사용 */

    /* Button Sizes */
    --btn-height-sm: 36px;
    --btn-height-md: 40px;
    --btn-height-lg: 51px;
    --btn-height-xl: 60px;

    /* Icon Sizes */
    --icon-xs: 16px;
    --icon-sm: 18px;
    --icon-md: 20px;
    --icon-lg: 24px;
    --icon-xl: 30px;

    /* Borders */
    --border-color: var(--color-gray-200);
    --border-color-hover: var(--color-primary);
    --border-width-thin: 1px;
    --border-width: 1px;
    --border-width-thick: 2px;
    --border-width-bold: 3px;
    --border-width-extra-bold: 5px;

    /* ========== Responsive Breakpoints ========== */
    /* 미디어 쿼리에서 직접 사용 (CSS 변수는 미디어 쿼리에서 사용 불가) */
    /* 참고용으로 정의 - JavaScript에서 사용 가능 */
    --breakpoint-xxl: 1920px;
    --breakpoint-xl: 1440px;
    --breakpoint-lg: 1280px;  /* 1024px 이상 */
    --breakpoint-md: 768px;
    --breakpoint-sm: 576px;
    --breakpoint-xs: 425px;
    --breakpoint-xxs: 360px;
}


/* ===================================
   기본 스타일 (Base Styles)
   =================================== */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: var(--font-primary);
    font-size: var(--font-16);
    font-weight: var(--weight-regular);
    line-height: var(--leading-normal);
    color: var(--color-gray-800);
    background-color: var(--color-white);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* 반응형 줄바꿈 */
.mobile-br {
    display: none;
}


/* ===================================
   웹 접근성 (Accessibility)
   =================================== */
/* 스크린 리더 전용 */
.sr-only,
.a11y-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

.sr-only:focus,
.a11y-hidden:focus {
    position: static;
    width: auto;
    height: auto;
    margin: 0;
    overflow: visible;
    clip: auto;
    white-space: normal;
}

/* 건너뛰기 링크 */
#skipNav {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    z-index: var(--z-tooltip);
}

#skipNav a {
    position: absolute;
    top: -100px;
    left: 0;
    width: 100%;
    padding: var(--space-16);
    background-color: var(--color-primary);
    color: var(--color-white);
    text-align: center;
    text-decoration: none;
    font-weight: var(--weight-semibold);
    transition: top var(--duration-fast) var(--ease-out);
}

#skipNav a:focus {
    top: 0;
}

/* 포커스 아웃라인 관리 (마우스 vs 키보드) */
/* 마우스 클릭 시에만 포커스 아웃라인 제거 (키보드 네비게이션은 유지) */
button:focus:not(:focus-visible),
input:focus:not(:focus-visible),
select:focus:not(:focus-visible),
textarea:focus:not(:focus-visible),
a:focus:not(:focus-visible),
[role="button"]:focus:not(:focus-visible),
[role="tab"]:focus:not(:focus-visible) {
    outline: none;
}

/* 키보드 네비게이션 시 포커스 표시 */
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
a:focus-visible {
    outline: 2px solid var(--color-primary);
    outline-offset: 2px;
}

/* 모션 줄이기 선호 */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}


/* ===================================
   타이포그래피 (Typography)
   =================================== */
/* Headings */
h1, h2, h3, h4, h5, h6 {
    margin: 0;
    font-weight: var(--weight-bold);
    line-height: var(--leading-tight);
    color: var(--color-gray-800);
    letter-spacing: var(--tracking-normal-kr);  /* 한글 최적화 */
    word-break: keep-all;
    overflow-wrap: break-word;
}

h1 {
    font-size: 3rem;  /* 48px */
    letter-spacing: var(--tracking-normal-kr);  /* 한글은 과도한 음수 자간 지양 */
    line-height: var(--leading-none);
}

h2 {
    font-size: 3.75rem;  /* 60px */
    font-weight: var(--weight-extrabold);
    letter-spacing: var(--tracking-normal-kr);  /* 통일성 */
}

h3 {
    font-size: 1.75rem;  /* 28px */
    font-weight: var(--weight-bold);
}

h4 {
    font-size: var(--font-20);  /* 20px */
    font-weight: var(--weight-regular);
}

h5 {
    font-size: var(--font-19);  /* 19px */
    font-weight: var(--weight-regular);
}

h6 {
    font-size: var(--font-18);
    font-weight: var(--weight-medium);
}

/* Body Text */
p {
    margin: 0 0 var(--space-16) 0;
    line-height: var(--leading-relaxed);
    letter-spacing: var(--tracking-normal);
    word-break: keep-all;
    overflow-wrap: break-word;
}

/* ===================================
   Typography 유틸리티 → utility.css로 이동됨
   =================================== */
/* .text-display, .text-hero, .text-title-*, .text-bold 등은 utility.css 참조 */

/* Selection */
::selection {
    background-color: var(--color-primary);
    color: var(--color-white);
}

::-moz-selection {
    background-color: var(--color-primary);
    color: var(--color-white);
}


/* ===================================
   링크 (Links)
   =================================== */
a {
    color: var(--color-primary);
    text-decoration: none;
    transition: color var(--duration-fast) var(--ease-out);
}

a:hover {
    color: var(--color-primary-dark);
}

a:focus-visible {
    outline: 2px solid var(--color-primary);
    outline-offset: 2px;
    border-radius: var(--radius-sm);
}


/* ===================================
   리스트 (Lists)
   =================================== */
ul, ol {
    list-style: none;
}


/* ===================================
   이미지 (Images)
   =================================== */
img {
    max-width: 100%;
    height: auto;
    vertical-align: middle;
    border-style: none;
}


/* ===================================
   버튼 (Buttons)
   =================================== */
button {
    font-family: var(--font-primary);
    cursor: pointer;
    border: none;
    background: none;
    transition: all var(--duration-base) var(--ease-out);
}

button:focus-visible {
    outline: 2px solid var(--color-primary);
    outline-offset: 2px;
}

button:disabled {
    cursor: not-allowed;
    opacity: 0.6;
}


/* ===================================
   레이아웃 (Layout)
   =================================== */
.wrap {
    position: relative;
    width: 100%;
    min-height: 100vh;
    overflow-x: hidden;
}

/* 헤더/푸터 플리커링 방지 */
#header {
    min-height: 88px;
}

#footer {
    min-height: 200px;
}

.sections {
    position: relative;
    padding: var(--space-64) 0;
}

.width_con {
    position: relative;
    max-width: var(--layout-max-width);
    margin: 0 auto;
    padding: 0 var(--space-24);
}

@media (min-width: 1024px) {
    .width_con {
        /*padding: 0 50px;*/
    }
}

@media (min-width: 1440px) {
    .width_con {
        padding: 0;
    }
}


/* ===================================
   그리드 시스템 (Grid System)
   =================================== */
/* Flex Grid */
.v_con {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-24);
}

.cells {
    flex: 1 1 0%;
    min-width: 0;
}

/* Column Count Variations */
.one_con > .cells {
    flex: 0 0 100%;
}

.two_con > .cells {
    flex: 0 0 calc(50% - var(--space-24) / 2);
}

.three_con > .cells {
    flex: 0 0 calc(33.333% - var(--space-24) * 2 / 3);
}

.four_con > .cells {
    flex: 0 0 calc(25% - var(--space-24) * 3 / 4);
}

.five_con > .cells {
    flex: 0 0 calc(20% - var(--space-24) * 4 / 5);
}

.six_con > .cells {
    flex: 0 0 calc(16.666% - var(--space-24) * 5 / 6);
}

/* CSS Grid Alternative */
.grid {
    display: grid;
    gap: var(--space-24);
}

.grid-cols-1 { grid-template-columns: repeat(1, minmax(0, 1fr)); }
.grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.grid-cols-5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.grid-cols-6 { grid-template-columns: repeat(6, minmax(0, 1fr)); }
.grid-cols-12 { grid-template-columns: repeat(12, minmax(0, 1fr)); }

/* Auto-fit Grid */
.grid-auto-fill {
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
}

.grid-auto-fit {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

/* Gap Utilities */
.gap-8 { gap: var(--space-8); }
.gap-12 { gap: var(--space-12); }
.gap-16 { gap: var(--space-16); }
.gap-24 { gap: var(--space-24); }
.gap-32 { gap: var(--space-32); }
.gap-48 { gap: var(--space-48); }

/* Column Span */
.col-span-1 { grid-column: span 1 / span 1; }
.col-span-2 { grid-column: span 2 / span 2; }
.col-span-3 { grid-column: span 3 / span 3; }
.col-span-4 { grid-column: span 4 / span 4; }
.col-span-5 { grid-column: span 5 / span 5; }
.col-span-6 { grid-column: span 6 / span 6; }
.col-span-full { grid-column: 1 / -1; }

/* Alignment */
.items-start { align-items: flex-start; }
.items-center { align-items: center; }
.items-end { align-items: flex-end; }
.items-stretch { align-items: stretch; }

.justify-start { justify-content: flex-start; }
.justify-center { justify-content: center; }
.justify-end { justify-content: flex-end; }
.justify-between { justify-content: space-between; }
.justify-around { justify-content: space-around; }
.justify-evenly { justify-content: space-evenly; }


/* ===================================
   박스 스타일 (Box Styles)
   =================================== */
.box {
    position: relative;
    background-color: var(--color-gray-50);
    border-radius: var(--radius-md);
    overflow: hidden;
    transition: transform var(--duration-base) var(--ease-out),
                box-shadow var(--duration-base) var(--ease-out);
}

.box:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

/* 비율 유지 박스 */
.ratio_1x1 { padding-bottom: 100%; }
.ratio_3x4 { padding-bottom: 133.333%; }
.ratio_4x3 { padding-bottom: 75%; }
.ratio_16x9 { padding-bottom: 56.25%; }
.ratio_9x16 { padding-bottom: 177.777%; }


/* ===================================
   타이틀 영역 (Title Section)
   =================================== */
.title_con {
    margin-bottom: var(--space-48);
}

.title_con.center {
    text-align: center;
}

.title_con.center p {
    margin-bottom: 0;
}

.title_con h2 {
    margin-bottom: 0;
    color: var(--color-gray-800);
}

.title_con h3 {
    margin-bottom: var(--space-8);
    color: var(--color-primary);
    font-size: var(--font-18);
    font-weight: var(--weight-semibold);
}

.title_con h4,
.title_con p {
    margin-bottom: var(--space-8);
    color: var(--color-gray-500);
    font-size: var(--font-16);
    font-weight: var(--weight-regular);
}

.title_con h5 {
    color: var(--color-gray-400);
    font-size: var(--font-14);
    font-weight: var(--weight-regular);
}


/* ===================================
   텍스트 영역 (Text Area)
   =================================== */
.text_con {
    position: absolute;
    top: 50%;
    left: 0;
    width: 100%;
    padding: var(--space-24);
    transform: translateY(-50%);
}

.text_con.center {
    text-align: center;
}

.text_con.dark {
    color: var(--color-white);
}


/* ===================================
   구분선 (Dividers)
   =================================== */
hr,
.line {
    width: 100%;
    height: 1px;
    margin: var(--space-48) 0;
    background-color: var(--color-gray-300);
    border: none;
}


/* ===================================
   유틸리티 클래스 → utility.css로 이동됨
   =================================== */
/* Spacing, Performance, Accessibility 유틸리티는 utility.css 참조 */


/* ===================================
   카드 컴포넌트 → components.css로 이동됨
   =================================== */
/* Policy Card, News Card, Review Card는 components.css 참조 */


/* ===================================
   스크롤 애니메이션 → main.css로 이동됨
   =================================== */
/* .wait_scroll, .sections 애니메이션은 main.css 참조 (메인 페이지 전용) */


/* ===================================
   인쇄 스타일 (Print Styles)
   =================================== */

@media print {
    /* 페이지 여백 및 크기 설정 */
    @page {
        size: A4 portrait;
        margin-top: 0;
        margin-right: 1cm;
        margin-bottom: 1cm;
        margin-left: 1cm;
    }

    /* body 스타일 초기화 */
    body {
        width: 1024px;
        margin: 0;
        padding: 20px;
        padding-top: 15px;
    }

    /* 인쇄 시 모든 요소 숨김 */
    body * {
        visibility: hidden;
    }

    /* 불필요한 요소 완전히 제거 */
    #header,
    #footer,
    #sub-visual,
    #sub-nav,
    .sub_visual,
    .sub_nav_section,
    .btn_top,
    .filter_actions,
    .sub_sidebar,
    #skipNav,
    .filter_toggle_btn,
    .view_btn,
    .btn_bookmark,
    .sort_select,
    .btn_apply {
        display: none !important;
    }

    /* 인쇄할 영역과 컨테이너 표시 */
    .wrap,
    #content,
    .sub_content_section,
    .width_con,
    .youth_policy_promise,
    .counseling_section,
    .sub_layout,
    .sub_main_content,
    #sub-info,
    .sub_info_text,
    .smain-top-wrap,
    .smain-top-total,
    .job-tabs-wrapper,
    .job_tabs,
    #hot-issue,
    .hot-issue-section,
    .policy_grid {
        display: block !important;
        visibility: visible !important;
    }

    /* 인쇄할 영역의 모든 자식 요소 표시 */
    .wrap *,
    #content *,
    .sub_content_section *,
    .width_con *,
    .youth_policy_promise *,
    .counseling_section *,
    .sub_layout *,
    .sub_main_content *,
    #sub-info *,
    .sub_info_text *,
    .smain-top-wrap *,
    .smain-top-total *,
    .job-tabs-wrapper *,
    .job_tabs *,
    #hot-issue *,
    .hot-issue-section *,
    .policy_grid * {
        visibility: visible !important;
    }

    /* 그리드 레이아웃 유지 */
    .policy_grid,
    .counseling_cards {
        display: grid !important;
    }

    /* 일자리 페이지 카드 그리드 2열 (1024px 레이아웃과 동일) */
    .policy_grid.grid-3col:not(.list-view) {
        grid-template-columns: repeat(2, 1fr) !important;
    }

    /* 종합상담 페이지 카드 그리드 3열 (1024px 레이아웃과 동일) */
    .counseling_cards {
        grid-template-columns: repeat(3, 1fr) !important;
        gap: 0 !important;
    }

    /* HOT ISSUE 그리드 형태로 표시 (2x2) */
    .hot-issue-cards {
        display: grid !important;
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 20px !important;
    }

    /* 슬라이더 관련 요소 제거 */
    .hot-issue-cards .slick-dots,
    .hot-issue-cards .slick-arrow {
        display: none !important;
    }

    /* slick-slide를 일반 카드처럼 표시 */
    .hot-issue-cards .slick-slide {
        width: auto !important;
        float: none !important;
    }

    /* Flex 레이아웃 유지 */
    .smain-top-total,
    .job_tabs {
        display: flex !important;
    }

    /* 인쇄 영역 여백 설정 */
    .wrap {
        margin: 0;
        padding: 0;
    }

    #content {
        margin: 0;
        padding: 0;
    }

    .sub_content_section {
        margin: 0 !important;
        padding: 0 !important;
    }

    .width_con {
        margin: 0 !important;
        padding: 0 !important;
    }

    .sub_layout {
        display: block;
        margin: 0;
        padding: 0;
    }

    .sub_main_content {
        width: 100%;
        max-width: 100%;
        margin: 0;
        padding: 0;
    }

    .sub_info_text {
        margin: 0 0 20px 0;
        padding: 0;
    }

    .filter_toggle_btn {
        margin: 0 0 20px 0;
    }

    /* 서브페이지별 특정 섹션 여백 제거 */
    .youth_policy_promise,
    .counseling_section,
    .promise_header {
        margin-top: 0;
        padding-top: 0;
    }

    /* 종합상담 섹션 패딩 재조정 */
    .counseling_section {
        padding: 0 20px 20px 20px;
    }

    /* 인쇄 시 색상 유지 */
    * {
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
    }

    /* 페이지 나누기 방지 */
    .policy_item {
        page-break-inside: avoid;
        break-inside: avoid;
    }

    /* 링크 URL 표시 숨김 */
    a[href]:after {
        content: none;
    }

    /* 링크 스타일 */
    a {
        text-decoration: none;
        color: inherit;
    }
}


/* ===================================
   반응형 스타일 (Responsive)
   =================================== */

/* ===================================
   초대형 화면 (1920px 이상)
   =================================== */
@media screen and (min-width: 1920px) {
    /* 폰트 크기 확대 */
    :root {
        --font-36: 2.75rem;     /* 44px */
    }

    .width_con {
        max-width: var(--layout-max-width);
    }
}


/* ===================================
   대형 화면 (1400px 이상)
   =================================== */
@media screen and (min-width: 1400px) {
    .width_con {
        max-width: var(--layout-max-width);
    }
}


/* ===================================
   데스크톱 (1299px 이하)
   =================================== */
@media screen and (max-width: 1299px) {
    /* 폰트 크기 재조정 */
    :root {
        --font-36: 2rem;        /* 32px */
    }

    /* 레이아웃 */
    .width_con {
        width: 100%;
    }

    .sections {
        padding: var(--space-48) 0;
    }

    /* 그리드 시스템 */
    .two_con > .cells,
    .three_con > .cells {
        flex: 0 0 100%;
    }

    .four_con > .cells {
        flex: 0 0 calc(50% - var(--space-24) / 2);
    }

    .six_con > .cells {
        flex: 0 0 calc(33.333% - var(--space-24) * 2 / 3);
    }
}


/* ===================================
   가로 모드 (992px 이하)
   =================================== */
@media screen and (max-width: 992px) and (orientation: landscape) {
    :root {
        --layout-header-height: 60px;
    }
}


/* ===================================
   중간 태블릿 (900px 이하)
   =================================== */
@media screen and (max-width: 900px) {
    /* 레이아웃 */
    .width_con {
        width: 100%;
    }
}


/* ===================================
   태블릿 (768px 이하)
   =================================== */
@media screen and (max-width: 768px) {
    /* 레이아웃 */
    .width_con {
        width: 100%;
        max-width: 100%;
        padding: 0 15px;
    }
}


/* ===================================
   모바일 (576px 이하)
   =================================== */
@media screen and (max-width: 576px) {
    /* 폰트 및 간격 재조정 */
    :root {
        --font-36: 1.75rem;     /* 28px */
        --layout-header-height: 100px;
    }

    /* 레이아웃 */
    .width_con {
        width: calc(100% - 30px);
        max-width: 100%;
        padding: 0 15px;
    }

    .sections {
        padding: var(--space-32) 0;
    }

    /* 그리드 시스템 */
    .four_con > .cells,
    .six_con > .cells {
        flex: 0 0 100%;
    }
}


/* ===================================
   초소형 모바일 (400px 이하)
   =================================== */
@media screen and (max-width: 400px) {
    /* 폰트 크기 추가 감소 */
    :root {
        --font-36: 1.5rem;      /* 24px */
    }

    /* 유틸리티 메뉴 */
    .util_menu {
        gap: var(--space-4);
    }

    /* 버튼 */
    .btn_con {
        gap: var(--space-8);
    }
}


/* ===================================
   프린트
   =================================== */
@media print {
    #header {
        position: static;
    }

    .btn_open_nav,
    .nav_cover,
    .btn_top,
    .btn_popup_close {
        display: none;
    }

    .sections {
        background-color: transparent;
        padding: var(--space-16) 0;
        page-break-inside: avoid;
    }

    .box,
    .gov_card,
    #header {
        box-shadow: none;
    }

    a[href]:after {
        content: none;
    }
}


/* ===================================
   고대비 모드
   =================================== */
@media (prefers-contrast: high) {
    .gov_form_input,
    .gov_form_select,
    .gov_form_textarea,
    .nav_btn,
    .btn_today,
    .btn_clear {
        border-width: 2px;
    }

    .box,
    .gov_card,
    #header {
        box-shadow: none;
        border: 2px solid var(--color-gray-800);
    }

    a {
        text-decoration: underline;
    }
}
