/* ============================================
   CSS Reset & Base Styles
   ============================================ */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    -webkit-text-size-adjust: 100%;
    -ms-text-size-adjust: 100%;
}

html,
body {
    width: 100%;
    height: 100%;
}

body {
    font-family: var(--font-secondary);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
    line-height: 1.6;
}

article,
aside,
details,
figcaption,
figure,
footer,
header,
hgroup,
main,
nav,
section {
    display: block;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-size: inherit;
    font-weight: inherit;
}

ul,
ol {
    margin: 0;
    padding: 0;
    list-style: none;
}

ul, li, a {
    text-decoration: none;
    list-style: none;
    color: #333;
}

a {
    color: inherit;
    text-decoration: none;
}

button,
input,
select,
textarea {
    font-family: inherit;
    font-size: inherit;
    color: inherit;
    background: none;
    border: none;
    outline: none;
}

button {
    cursor: pointer;
}

img {
    max-width: 100%;
    height: auto;
    vertical-align: middle;
}

table {
    border-collapse: collapse;
    border-spacing: 0;
}

/* ============================================
   Font Face
   ============================================ */

@font-face {
    font-family: 'SourceHanSerifKR';
    src: url('../fonts/SourceHanSerifKR-ExtraLight.otf') format('opentype');
    font-weight: 200;
    font-display: swap;
}

@font-face {
    font-family: 'SourceHanSerifKR';
    src: url('../fonts/SourceHanSerifKR-Light.otf') format('opentype');
    font-weight: 300;
    font-display: swap;
}

@font-face {
    font-family: 'SourceHanSerifKR';
    src: url('../fonts/SourceHanSerifKR-Regular.otf') format('opentype');
    font-weight: 400;
    font-display: swap;
}

@font-face {
    font-family: 'SourceHanSerifKR';
    src: url('../fonts/SourceHanSerifKR-Medium.otf') format('opentype');
    font-weight: 500;
    font-display: swap;
}

@font-face {
    font-family: 'SourceHanSerifKR';
    src: url('../fonts/SourceHanSerifKR-SemiBold.otf') format('opentype');
    font-weight: 600;
    font-display: swap;
}

@font-face {
    font-family: 'SourceHanSerifKR';
    src: url('../fonts/SourceHanSerifKR-Bold.otf') format('opentype');
    font-weight: 700;
    font-display: swap;
}

@font-face {
    font-family: 'SourceHanSerifKR';
    src: url('../fonts/SourceHanSerifKR-Heavy.otf') format('opentype');
    font-weight: 900;
    font-display: swap;
}

@font-face {
    font-family: 'Pretendard';
    src: url('https://cdn.jsdelivr.net/gh/Project-Noonnu/noonfonts_2107@1.1/Pretendard-Light.woff') format('woff');
    font-weight: 300;
    font-display: swap;
}

@font-face {
    font-family: 'Pretendard';
    src: url('https://cdn.jsdelivr.net/gh/Project-Noonnu/noonfonts_2107@1.1/Pretendard-Regular.woff') format('woff');
    font-weight: 400;
    font-display: swap;
}

@font-face {
    font-family: 'Pretendard';
    src: url('https://cdn.jsdelivr.net/gh/Project-Noonnu/noonfonts_2107@1.1/Pretendard-Medium.woff') format('woff');
    font-weight: 500;
    font-display: swap;
}

@font-face {
    font-family: 'Pretendard';
    src: url('https://cdn.jsdelivr.net/gh/Project-Noonnu/noonfonts_2107@1.1/Pretendard-SemiBold.woff') format('woff');
    font-weight: 600;
    font-display: swap;
}

@font-face {
    font-family: 'Pretendard';
    src: url('https://cdn.jsdelivr.net/gh/Project-Noonnu/noonfonts_2107@1.1/Pretendard-Bold.woff') format('woff');
    font-weight: 700;
    font-display: swap;
}

@font-face {
    font-family: 'AmiriQuran';
    src: url('../fonts/AmiriQuran-Regular.ttf') format('truetype');
    font-weight: 400;
    font-display: swap;
}

@font-face {
    font-family: 'TokyoDreams';
    src: url('../fonts/TokyoDreams.otf') format('opentype');
    font-weight: 400;
    font-display: swap;
}

@font-face {
    font-family: 'OPTIMA';
    src: local('Optima'), 
         local('Optima-Regular'),
         local('Optima Nova'),
         url('../fonts/Optima.TTF') format('truetype');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'OPTIMA';
    src: local('Optima Bold'),
         local('Optima-Bold'),
         local('Optima Nova Bold'),
         url('../fonts/Optima-Bold.TTF') format('truetype');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

/* ============================================
   CSS Variables
   ============================================ */

:root {
    --color-primary: #4a90e2;
    --color-white: #ffffff;
    --color-black: #000000;
    --color-gray-light: #f5f5f5;
    --color-gray: #d0cfcc;
    --color-gray-dark: #333333;
    --color-text: #ffffff;
    --color-bg: #000000;
    --color-bg-gnb: #fffcf7;
    
    --font-primary: 'Noto Serif KR', serif;
    --font-secondary: 'Pretendard', sans-serif;
    --font-accent: 'AmiriQuran', serif;
    --font-montserrat: 'Montserrat', sans-serif;
    --font-optima: 'OPTIMA', 'Optima', 'Optima Nova', sans-serif;
    
    --transition: 0.3s ease;
    
    --z-header: 10000;
    --z-gnb: 9999;
    --z-modal: 1000;
    --z-dropdown: 100;
}

.container {
    max-width: 1240px;
    margin: 0 auto;
    width: 100%;
    padding: 0 20px;
}

@media (max-width: 1200px) {
    .container {
        padding: 0 40px;
    }
}

@media (max-width: 768px) {
    .container {
        padding: 0 20px;
    }
}

/* ============================================
   반응형 클래스
   ============================================ */
.pc_cont_1024 {
    display: block;
    opacity: 1;
    visibility: visible;
}

.m_cont_1024 {
    display: none;
    opacity: 0;
    visibility: hidden;
}

br.pc_cont_1024 {
    display: block;
}

br.m_cont_1024 {
    display: none;
}

/* ============================================
   공통 애니메이션 스타일
   ============================================ */

/* 한 글자씩 애니메이션을 위한 letter 클래스 */
.header-1 .letter,
.header-2 .letter {
	display: inline-block;
}

/* section-animate 기본 스타일 */
.section-animate {
	opacity: 1;
}

/* fade-in 클래스가 있는 요소는 초기에 숨김 */
.section-animate.fade-in,
.fade-in {
	opacity: 0;
	visibility: hidden;
}


/* ============================================
   Section Header Styles
   ============================================ */

   .section-header-subtitle {
    font-size: 20px;
    font-weight: 500;
    text-align: center;
    margin: 0;
    line-height: 1.5;
}

.section-header-title-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 0;
}

.section-header-title-1,
.section-header-title-2 {
    font-family: 'Optima', sans-serif;
    color: #404040;
    text-align: center;
    font-size: 28px;
    font-style: normal;
    letter-spacing: 1px;
}

.section-header-desc {
    font-size: 16px;
    text-align: center;
    line-height: 1.5;
    padding-left: 20px;
    padding-right: 20px;
    margin: 0;
}

.section-header-desc p {
    margin: 0;
}

@media (max-width: 1024px) {
    .pc_cont_1024 {
        display: none !important;
        opacity: 0;
        visibility: hidden;
    }
    .m_cont_1024 {
        display: block !important;
        opacity: 1;
        visibility: visible;
    }
    br.pc_cont_1024 {
        display: none !important;
    }
    br.m_cont_1024 {
        display: block !important;
    }
    
    .section-header-title-1,
    .section-header-title-2 {
        font-size: 26px;
    }
}

@media (max-width: 767px) {
    .section-header-subtitle {
        font-size: 15px;
    }
    
    .section-header-title-1,
    .section-header-title-2 {
        font-size: 18px;
    }
    
    .section-header-desc {
        font-size: 14px;
    }
}

/* ============================================
   공통 서브페이지
   ============================================ */
.common-page {
	margin-top: 130px;
	padding: 70px 0 100px;
	text-align: center;
}

@media (max-width: 968px) {
	.common-page {
		padding: 77px 0 80px;
	}
}

@media (max-width: 768px) {
	.common-page {
		margin-top: 70px;
		padding: 36px 0 60px;
	}
}

@media (max-width: 480px) {
	.common-page {
		padding: 80px 0 50px;
	}
}

/* ============================================
   공통 타이틀 블록 — 반드시 순서: h4.tit → span.desc → hr
   (.container.about h4.tit 은 sub.css가 덮어씀)
   ============================================ */
h4.tit {
	font-size: 28px;
	font-weight: 600;
	margin-bottom: 15px;
	line-height: 1.4;
	text-align: center;
}

h4.tit + span.desc {
	display: block;
	font-size: 18px;
	font-weight: 300;
	margin-bottom: 30px;
	line-height: 1.6;
	text-align: center;
}

hr {
	width: 20px;
	height: 4px;
	background-color: #e0e6e6;
	border: 0;
	margin: 20px auto 60px;
	display: block;
}

@media (max-width: 968px) {
	h4.tit {
		font-size: 24px;
	}

	h4.tit + span.desc {
		font-size: 14px;
		margin-bottom: 35px;
	}
}

@media (max-width: 768px) {
	h4.tit {
		margin-bottom: 5px;
	}

	hr {
		display: none;
	}
}

@media (max-width: 480px) {
	h4.tit {
		font-size: 20px;
	}

	h4.tit + span.desc {
		font-size: 13px;
	}
}
