:root {
    /* 브랜드 컬러 */
    --primary-orange: #FF8C00;
    --primary-orange-light: #FFA500;
    --primary-orange-dark: #E67E00;
    --accent-green: #00A86B;

    /* 중성 컬러 */
    --white: #FFFFFF;
    --light-gray: #F5F5F5;
    --medium-gray: #E0E0E0;
    --dark-gray: #666666;
    --text-dark: #333333;

    /* 타이포그래피 */
    --font-main: 'Noto Sans KR', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

    /* 간격 */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 2rem;
    --spacing-lg: 3rem;
    --spacing-xl: 4rem;

    /* 그림자 */
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 10px 25px rgba(0, 0, 0, 0.12);

    /* 전환 효과 */
    --transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Scroll Reveal Base - 초기 가시성 절대 보장 */
[class*="reveal-"] {
    opacity: 1 !important;
    transform: none !important;
    transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-main);
    color: var(--text-dark);
    line-height: 1.6;
    background-color: var(--white);
    opacity: 0;
    /* 초기 상태 투명 */
    animation: pageFadeIn 0.8s ease forwards;
    /* 페이지 로드 시 페이드 인 */
}

@keyframes pageFadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fadeInUp {
    opacity: 0;
    animation: fadeInUp 0.8s ease forwards;
}

/* ==========================================
   헤더 & 네비게이션
   ========================================== */

header {
    background-color: var(--white);
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    /* 모바일 메뉴의 기준점 */
}

.logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: var(--text-dark);
}

.logo-image {
    height: 50px;
    width: auto;
    transition: var(--transition);
}

.logo:hover .logo-image {
    transform: scale(1.05);
}

nav ul {
    display: flex;
    list-style: none;
    gap: 2rem;
}

nav a {
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 500;
    transition: var(--transition);
    padding: 0.5rem 0;
    position: relative;
}

nav a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary-orange);
    transition: var(--transition);
}

nav a:hover::after,
nav a.active::after {
    width: 100%;
}

nav a:hover,
nav a.active {
    color: var(--primary-orange);
}

/* 관리자 접속 버튼 (플로팅 스타일) */
.admin-access-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 9999;
    text-decoration: none;
    color: #bbb;
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(0, 0, 0, 0.05);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    transition: var(--transition);
}

.admin-access-btn .admin-text {
    display: none;
    /* 플로팅 버튼에서는 텍스트 숨김 */
}

.admin-access-btn:hover {
    transform: translateY(-5px);
    background: var(--white);
    color: var(--primary-orange);
    box-shadow: 0 12px 40px rgba(255, 140, 0, 0.2);
    border-color: var(--primary-orange-light);
}

@media (max-width: 768px) {
    .admin-access-btn {
        bottom: 20px;
        right: 20px;
        width: 40px;
        height: 40px;
        font-size: 0.9rem;
    }
}

/* 모바일 메뉴 버튼 */
.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--text-dark);
    z-index: 1002;
    /* 메뉴보다 위에 표시 */
}

/* ==========================================
   히어로 섹션 & 페이지 타이틀 (브랜드 아이덴티티)
   ========================================== */

.hero,
.page-title-section {
    position: relative;
    padding: 5rem 2rem;
    text-align: center;
    overflow: hidden;
}

/* 대교에이스의 상징: 주황색 상단 띠 */
.hero::before,
.page-title-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 6px;
    background: linear-gradient(90deg, var(--primary-orange), #ffae42);
    z-index: 10;
}

.hero {
    background: linear-gradient(135deg, var(--primary-orange-light) 0%, var(--primary-orange) 100%);
    color: var(--white);
}

.hero-content h2,
.page-title-section h1 {
    font-size: 2.8rem;
    margin-bottom: 1rem;
    font-weight: 700;
}

.hero-content p,
.page-title-section p {
    font-size: 1.2rem;
    opacity: 0.9;
}

.page-title-section {
    background-color: #f8f9fa;
    color: #333;
    border-bottom: 1px solid #eee;
}

.hero::after {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 500px;
    height: 500px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
}

.btn {
    display: inline-block;
    padding: 1rem 2rem;
    background-color: var(--white);
    color: var(--primary-orange);
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    transition: var(--transition);
    box-shadow: var(--shadow-md);
    border: 2px solid transparent;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-outline {
    background-color: transparent;
    color: var(--white);
    border: 2px solid var(--white);
}

.btn-outline:hover {
    background-color: var(--white);
    color: var(--primary-orange);
}

/* ==========================================
   페이지 타이틀 섹션 (홈/서브 공용 스타일)
   ========================================== */
.page-title-section {
    background-color: #f8f9fa;
    padding: 5rem 0;
    text-align: center;
    border-bottom: 1px solid #eee;
    position: relative;
}

/* 대교에이스의 상징: 주황색 상단 띠 */
.page-title-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 6px;
    background: linear-gradient(90deg, var(--primary-orange), #ffae42);
    z-index: 10;
}

.page-title-section h1 {
    font-size: 2.8rem;
    margin-bottom: 1.5rem;
    color: #222;
    font-weight: 700;
}

.page-title-section p {
    font-size: 1.25rem;
    color: #555;
    max-width: 800px;
    margin: 0 auto;
}

/* ==========================================
   컨테이너 & 섹션
   ========================================== */

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: var(--spacing-lg) var(--spacing-md);
}

.section {
    padding: var(--spacing-lg) 0;
}

.section-title {
    text-align: center;
    margin-bottom: 4rem;
}

.section-title.text-left {
    text-align: left;
}

.section-title.text-left h2 {
    display: block;
}

.section-title h2 {
    font-size: 2.5rem;
    color: var(--text-dark);
    margin-bottom: var(--spacing-sm);
}

.section-title p {
    color: var(--dark-gray);
    font-size: 1.15rem;
    line-height: 1.6;
}

.bg-light {
    background-color: var(--light-gray) !important;
}

/* 프리미엄 분할 섹션 (좌측 이미지, 우측 블랙 패널) */
.split-premium-section {
    display: flex;
    width: 96%;
    /* 좌우 여백을 조금만 남기고 확장 */
    max-width: 1400px;
    /* 더 넓은 화면에서도 시원하게 보이도록 제한 상한 상향 */
    margin: 3rem auto;
    min-height: 320px;
    background-color: #0d0d0d;
    overflow: hidden;
    border-radius: 20px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
    position: relative;
}

.split-premium-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-orange), #ffae42);
    z-index: 5;
}

.split-left-image {
    flex: 1.2;
    /* 사진의 비율을 1.5배 이상 대폭 확대 */
    position: relative;
    overflow: hidden;
}

.split-left-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 25%;
    /* 건물의 세련된 윗부분 강조 */
    display: block;
}

.split-right-content {
    flex: 0.8;
    /* 사진이 커진 만큼 컨텐츠 영역 비율 축소 */
    background-color: #111111;
    padding: 2.5rem 3.5rem;
    /* 여백 밸런스 조정 */
    display: flex;
    flex-direction: column;
    justify-content: center;
    color: var(--pure-white, #ffffff);
    position: relative;
}

/* 블랙 패널용 텍스트 스타일 */
.split-right-content .section-title {
    margin-bottom: 1.2rem;
    /* 간격 대폭 축소 */
    text-align: left !important;
}

.split-right-content .section-title h2 {
    font-size: 1.8rem;
    /* 세련된 작은 크기로 변경 */
    color: #ffffff;
    line-height: 1.3;
}

.split-right-content .section-title p {
    color: #aaaaaa;
    font-size: 0.95rem;
    /* 텍스트 크기 축소 */
}

.feature-list {
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
    /* 특징들 사이의 간격 복구 */
}

.feature-item-modern {
    display: flex;
    gap: 1rem;
    align-items: center;
    padding: 0.6rem 0;
    /* 패딩을 줄여 압축감 제공 */
    background: transparent;
    border: none;
    transition: var(--transition);
}

.feature-icon-circle {
    flex-shrink: 0;
    width: 44px;
    /* 살짝 크기 최적화 */
    height: 44px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.02));
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: inset 0 0 10px rgba(255, 255, 255, 0.05);
    transition: all 0.4s ease;
}

/* 듀오톤 아이콘 컬러 테마 */
.feature-item-modern:nth-child(1) .feature-icon-circle {
    background: linear-gradient(135deg, rgba(255, 140, 0, 0.2), rgba(255, 140, 0, 0.05));
    border-color: rgba(255, 140, 0, 0.2);
}

.feature-item-modern:nth-child(2) .feature-icon-circle {
    background: linear-gradient(135deg, rgba(46, 213, 115, 0.2), rgba(46, 213, 115, 0.05));
    border-color: rgba(46, 213, 115, 0.2);
}

.feature-item-modern:nth-child(3) .feature-icon-circle {
    background: linear-gradient(135deg, rgba(74, 144, 226, 0.2), rgba(74, 144, 226, 0.05));
    border-color: rgba(74, 144, 226, 0.2);
}

.feature-item-modern:nth-child(4) .feature-icon-circle {
    background: linear-gradient(135deg, rgba(167, 116, 255, 0.2), rgba(167, 116, 255, 0.05));
    border-color: rgba(167, 116, 255, 0.2);
}

.feature-item-modern:hover .feature-icon-circle {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 0 20px rgba(255, 140, 0, 0.3);
}

.feature-item-modern:nth-child(2):hover .feature-icon-circle {
    box-shadow: 0 0 20px rgba(46, 213, 115, 0.3);
}

.feature-item-modern:nth-child(3):hover .feature-icon-circle {
    box-shadow: 0 0 20px rgba(74, 144, 226, 0.3);
}

.feature-item-modern:nth-child(4):hover .feature-icon-circle {
    box-shadow: 0 0 20px rgba(167, 116, 255, 0.3);
}

.feature-text-modern h3 {
    font-size: 1.05rem;
    /* 글씨 크기 축소 */
    margin-bottom: 0.1rem;
    color: #ffffff;
}

.feature-text-modern p {
    color: #999999;
    font-size: 0.88rem;
    /* 텍스트 크기 축소 */
}

@media (max-width: 1024px) {
    .split-premium-section {
        flex-direction: column;
        min-height: auto;
    }

    .split-left-image {
        height: 400px;
    }

    .split-right-content {
        padding: 4rem 2rem;
    }
}

@media (max-width: 768px) {
    .split-left-image {
        height: 300px;
    }

    .split-right-content .section-title h2 {
        font-size: 2rem;
    }
}

/* ==========================================
   카드 그리드
   ========================================== */

.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: var(--spacing-md);
    align-items: start;
}

/* 민영 전용: PC 4열 */
.product-grid-private {
    grid-template-columns: repeat(4, 1fr);
}

/* 통합박스 그룹 내 서브 그리드 */
.product-subgrid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: var(--spacing-md);
    margin-bottom: 0.5rem;
}

.card {
    background-color: var(--white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    cursor: pointer;
    position: relative;
    /* 시그니처 바를 위한 기준점 */
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-orange), #ffae42);
    z-index: 2;
}

.card:hover {
    transform: translateY(-12px) scale(1.02);
    box-shadow: var(--shadow-lg);
}

.card:active {
    transform: translateY(-8px) scale(1.0);
}

/* 주요 제품 슬라이더 스타일 (무한 롤링) */
.slider-container {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    overflow-x: auto;
    overflow-y: hidden;
    padding: 20px 0;
    -webkit-overflow-scrolling: touch;
    /* 스크롤바 숨기기 */
    scrollbar-width: none;
    -ms-overflow-style: none;
    touch-action: pan-x;
    /* 모바일에서 가로 스와이프 부드럽게 */
}

.slider-container::-webkit-scrollbar {
    display: none;
}

.marquee-wrapper {
    display: flex;
    width: max-content;
    gap: var(--spacing-md);
}

.slider-item {
    width: 300px;
    flex-shrink: 0;
}

@media (max-width: 768px) {
    .slider-item {
        width: 260px;
    }
}

/* 대분류 카드 전용 스타일 */
.category-card {
    position: relative;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.category-card .card-content {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    transition: var(--transition);
}

/* 중분류 호버 리스트 */
.sub-category-hover-list {
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    margin-top: 0;
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

@media (hover: hover) {
    .category-card:hover .sub-category-hover-list {
        max-height: 500px;
        opacity: 1;
        margin-top: 1.2rem;
        padding-top: 1rem;
        border-top: 1px solid var(--light-gray);
    }
}

.category-card.active .sub-category-hover-list {
    max-height: 500px;
    opacity: 1;
    margin-top: 1.2rem;
    padding-top: 1rem;
    border-top: 1px solid var(--medium-gray);
}

.sub-cat-item {
    padding: 0.6rem 1rem;
    border-radius: 8px;
    font-size: 0.9rem;
    color: var(--text-dark);
    transition: var(--transition);
    background: var(--light-gray);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.sub-cat-item::after {
    content: '→';
    opacity: 0;
    transform: translateX(-10px);
    transition: var(--transition);
}

.sub-cat-item:hover {
    background-color: var(--primary-orange);
    color: var(--white);
    transform: translateX(5px);
}

.sub-cat-item:hover::after {
    opacity: 1;
    transform: translateX(0);
}

.card-image {
    width: 100%;
    height: 200px;
    background-color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border-bottom: 1px solid var(--light-gray);
    position: relative;
}

.card-image::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.03);
    /* 아주 미세한 어두운 필터로 이질감 완화 */
    pointer-events: none;
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.card-content {
    padding: var(--spacing-md);
}

.card-title {
    font-size: 15px;
    font-weight: 600;
    margin-bottom: var(--spacing-xs);
    color: var(--text-dark);
}

.card-description {
    color: var(--dark-gray);
    font-size: 0.95rem;
    line-height: 1.5;
}

.card-badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    background-color: var(--primary-orange);
    color: var(--white);
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
    margin-bottom: var(--spacing-xs);
}

/* ==========================================
   카테고리 네비게이션
   ========================================== */

.category-nav {
    display: flex;
    gap: var(--spacing-sm);
    margin-bottom: var(--spacing-md);
    flex-wrap: wrap;
    justify-content: center;
}

.category-btn {
    padding: 0.75rem 1.5rem;
    background-color: var(--light-gray);
    color: var(--text-dark);
    border: none;
    border-radius: 25px;
    cursor: pointer;
    font-weight: 500;
    transition: var(--transition);
}

.category-btn:hover,
.category-btn.active {
    background-color: var(--primary-orange);
    color: var(--white);
}

/* ==========================================
   브레드크럼
   ========================================== */

.breadcrumb {
    display: flex;
    gap: 0.5rem;
    margin-bottom: var(--spacing-md);
    font-size: 0.9rem;
    color: var(--dark-gray);
}

.breadcrumb a {
    color: var(--primary-orange);
    text-decoration: none;
}

.breadcrumb a:hover {
    text-decoration: underline;
}

.breadcrumb span {
    color: var(--dark-gray);
}

/* ==========================================
   제품 상세
   ========================================== */

.product-detail {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-lg);
    margin-bottom: var(--spacing-lg);
}

.product-gallery {
    display: flex;
    flex-direction: column;
}

.product-image-main {
    width: 100%;
    height: 500px;
    background-color: var(--white);
    border: 1px solid var(--medium-gray);
    border-radius: 12px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.product-image-main img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.product-thumb-list {
    display: flex;
    gap: 12px;
    margin-top: 15px;
    overflow-x: auto;
    padding: 5px 2px;
    scrollbar-width: thin;
    scrollbar-color: var(--primary-orange) #eee;
}

.product-thumb-list::-webkit-scrollbar {
    height: 4px;
}

.product-thumb-list::-webkit-scrollbar-thumb {
    background: var(--primary-orange);
    border-radius: 10px;
}

.thumb-item {
    width: 80px;
    height: 80px;
    flex-shrink: 0;
    cursor: pointer;
    border-radius: 8px;
    border: 2px solid #eee;
    overflow: hidden;
    transition: all 0.2s ease;
    background: white;
}

.thumb-item:hover {
    border-color: var(--primary-orange-light);
    transform: translateY(-2px);
}

.thumb-item.active {
    border-color: var(--primary-orange);
    box-shadow: 0 4px 10px rgba(255, 140, 0, 0.2);
}

.thumb-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.product-info h1 {
    font-size: 2rem;
    margin-bottom: var(--spacing-sm);
}

.product-meta {
    display: flex;
    gap: var(--spacing-sm);
    margin-bottom: var(--spacing-md);
}

.product-specs {
    background-color: var(--light-gray);
    padding: var(--spacing-md);
    border-radius: 8px;
    margin-bottom: var(--spacing-md);
}

.product-specs h3 {
    margin-bottom: var(--spacing-sm);
}

.spec-item {
    display: flex;
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--medium-gray);
}

.spec-item:last-child {
    border-bottom: none;
}

.spec-label {
    font-weight: 600;
    width: 150px;
    color: var(--text-dark);
}

.spec-value {
    color: var(--dark-gray);
}

/* ==========================================
   자료실
   ========================================== */

.resource-list {
    display: grid;
    gap: var(--spacing-sm);
}

.resource-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--spacing-md);
    background-color: var(--light-gray);
    border-radius: 8px;
    transition: var(--transition);
}

.resource-item:hover {
    background-color: var(--medium-gray);
}

.resource-info {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
}

.resource-icon {
    width: 48px;
    height: 48px;
    background-color: var(--primary-orange);
    color: var(--white);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

.resource-details h3 {
    font-size: 1.1rem;
    margin-bottom: 0.25rem;
}

.resource-details p {
    font-size: 0.9rem;
    color: var(--dark-gray);
}

.download-btn {
    padding: 0.75rem 1.5rem;
    background-color: var(--primary-orange);
    color: var(--white);
    text-decoration: none;
    border-radius: 25px;
    font-weight: 500;
    transition: var(--transition);
}

.download-btn:hover {
    background-color: var(--primary-orange-dark);
}

/* ==========================================
   타임라인 (연혁)
   ========================================== */

.timeline {
    position: relative;
    padding-left: 2rem;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background-color: var(--primary-orange);
}

.timeline-item {
    position: relative;
    margin-bottom: var(--spacing-md);
    padding-left: var(--spacing-md);
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: -2.5rem;
    top: 0;
    width: 20px;
    height: 20px;
    background-color: var(--primary-orange);
    border: 4px solid var(--white);
    border-radius: 50%;
    box-shadow: var(--shadow-sm);
}

.timeline-year {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-orange);
    margin-bottom: var(--spacing-xs);
}

.timeline-content {
    background-color: var(--light-gray);
    padding: var(--spacing-md);
    border-radius: 8px;
}

/* ==========================================
   인증서 갤러리
   ========================================== */

.certificate-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: var(--spacing-md);
}

.certificate-item {
    background-color: var(--white);
    border: 2px solid var(--medium-gray);
    border-radius: 8px;
    padding: var(--spacing-sm);
    text-align: center;
    transition: var(--transition);
    cursor: pointer;
}

.certificate-item:hover {
    border-color: var(--primary-orange);
    box-shadow: var(--shadow-md);
}

.certificate-image {
    width: 100%;
    height: 300px;
    background-color: var(--light-gray);
    border-radius: 4px;
    margin-bottom: var(--spacing-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.certificate-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/* ==========================================
   지도 & 연락처
   ========================================== */

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-lg);
}

.map-container {
    width: 100%;
    height: 400px;
    background-color: var(--light-gray);
    border-radius: 12px;
    overflow: hidden;
}

.contact-info {
    background-color: var(--light-gray);
    padding: var(--spacing-md);
    border-radius: 12px;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: var(--spacing-sm);
    margin-bottom: var(--spacing-md);
}

.contact-icon {
    width: 40px;
    height: 40px;
    background-color: var(--primary-orange);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.contact-details h3 {
    font-size: 1.1rem;
    margin-bottom: 0.25rem;
}

.contact-details p {
    color: var(--dark-gray);
}

/* ==========================================
   문의 폼
   ========================================== */

/* 문의하기 그리드 레이아웃 */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    margin-bottom: 3rem;
}

.contact-form {
    max-width: 100%;
    /* 부모 그리드에 맞춰 확장 */
    margin: 0;
}

.form-group {
    margin-bottom: var(--spacing-md);
}

.form-group label {
    display: block;
    margin-bottom: var(--spacing-xs);
    font-weight: 600;
    color: var(--text-dark);
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 0.75rem;
    border: 2px solid var(--medium-gray);
    border-radius: 8px;
    font-family: var(--font-main);
    font-size: 1rem;
    transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--primary-orange);
}

.form-group textarea {
    resize: vertical;
    min-height: 150px;
}

.submit-btn {
    width: 100%;
    padding: 1rem;
    background-color: var(--primary-orange);
    color: var(--white);
    border: none;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.submit-btn:hover {
    background-color: var(--primary-orange-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

/* ==========================================
   푸터
   ========================================== */

footer {
    background-color: var(--text-dark);
    color: var(--white);
    padding: var(--spacing-lg) var(--spacing-md);
    margin-top: var(--spacing-xl);
}

.footer-content {
    max-width: 1100px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.5fr 0.8fr 1fr;
    gap: 3rem;
}

.footer-section h3 {
    margin-bottom: 1rem;
    color: var(--primary-orange);
    font-size: 1.2rem;
}

.footer-company-name {
    display: block;
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--white);
}

.footer-logo {
    height: 45px;
    width: auto;
    margin-bottom: 1.5rem;
    display: block;
    filter: brightness(0) invert(1);
    /* 부드러운 흰색 느낌으로 변환 (배경이 어두우므로) */
}

.footer-section p,
.footer-section a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    line-height: 1.8;
}

.footer-section a:hover {
    color: var(--primary-orange);
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 0.5rem;
}

.footer-bottom {
    max-width: 1200px;
    margin: var(--spacing-md) auto 0;
    padding-top: var(--spacing-md);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
    color: rgba(255, 255, 255, 0.6);
}

/* ==========================================
   반응형 디자인
   ========================================== */

@media (max-width: 768px) {

    /* 모바일에서는 여백을 더 타이트하게 조정 */
    :root {
        --spacing-lg: 2rem;
        --spacing-xl: 3rem;
    }

    .header-container {
        padding: 0.8rem 1.2rem;
    }

    .logo-image {
        height: 38px;
        /* 로고 크기 축소 */
    }

    nav {
        display: none;
    }

    nav.mobile-active {
        display: block;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background-color: var(--white);
        box-shadow: var(--shadow-md);
        z-index: 1001;
    }

    nav.mobile-active ul {
        flex-direction: column;
        gap: 0;
    }

    nav.mobile-active a {
        display: block;
        padding: 1.2rem;
        border-bottom: 1px solid var(--medium-gray);
        font-size: 1.1rem;
    }

    .mobile-menu-btn {
        display: block;
    }

    /* 홈 배너(Hero) 모바일 최적화: 넓이와 폰트를 획기적으로 축소 */
    .hero {
        padding: 1rem 0.5rem;
        /* 상하 여백을 더 극단적으로 축소 */
    }

    .hero h2 {
        font-size: 1.2rem;
        /* 1.4rem에서 더 축소 */
        margin-bottom: 0.3rem;
        line-height: 1.2;
    }

    .hero p {
        font-size: 0.8rem;
        /* 0.9rem에서 더 축소 */
        margin-bottom: 0.8rem;
        padding: 0 1rem;
    }

    .btn {
        padding: 0.7rem 1.4rem;
        font-size: 0.9rem;
    }

    .section-title h2 {
        font-size: 1.6rem;
        margin-bottom: 0.5rem;
    }

    .section-title p {
        font-size: 0.95rem;
    }

    /* 제품 목록 모바일 2열 배치: 너무 크지 않게 조정 */
    .card-grid {
        grid-template-columns: repeat(2, 1fr);
        /* 1열에서 2열로 변경 */
        gap: 0.8rem;
        /* 간격 좁게 */
    }

    .card-content {
        padding: 1rem 0.8rem;
    }

    .card-title {
        font-size: 1rem;
    }

    /* 민영 모바일: 4열 → 2열 */
    .product-grid-private {
        grid-template-columns: repeat(2, 1fr);
    }

    /* 통합박스 서브 그리드 모바일: 2열 */
    .product-subgrid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.8rem;
    }

    .card-description {
        font-size: 0.85rem;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
        /* 모바일에서는 설명을 2줄로 제한해 높이 맞춤 */
    }

    .card-image {
        height: 150px;
        /* 이미지 높이 축소 */
    }

    .product-detail {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .product-image-main {
        height: 250px;
        padding: 10px;
    }

    .contact-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
        display: flex;
        flex-direction: column;
    }

    .contact-form-section {
        order: 1;
        /* 온라인 문의를 위로 */
    }

    .contact-info-section {
        order: 2;
        /* 연락처 정보를 아래로 */
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }

    .footer-logo {
        margin: 0 auto 1.5rem;
    }

    .certificate-grid {
        grid-template-columns: repeat(2, 1fr);
        /* 인증서도 2열로 */
        gap: 0.8rem;
    }

    .certificate-image {
        height: 180px;
    }

    /* 최신 자료 및 자료실 리스트 모바일 최적화 */
    .resource-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 1.2rem;
        padding: 1.2rem;
        /* 패딩 최적화 */
    }

    .resource-info {
        width: 100%;
        gap: 1rem;
        /* 아이콘과 텍스트 사이 간격 유지 */
    }

    .resource-icon {
        width: 38px;
        /* 48px -> 38px로 축소 */
        height: 38px;
        min-width: 38px;
        font-size: 1.2rem;
    }

    .resource-details h3 {
        font-size: 1rem;
        /* 제목 크기 축소 */
        line-height: 1.3;
    }

    .resource-details p {
        font-size: 0.8rem;
        /* 설명 크기 축소 */
        line-height: 1.4;
    }

    .download-btn {
        width: 100%;
        text-align: center;
        padding: 0.8rem;
        font-size: 0.9rem;
    }
}

/* ==========================================
   유틸리티 클래스
   ========================================== */

.text-center {
    text-align: center;
}

.mt-1 {
    margin-top: var(--spacing-sm);
}

.mt-2 {
    margin-top: var(--spacing-md);
}

.mt-3 {
    margin-top: var(--spacing-lg);
}

.mb-1 {
    margin-bottom: var(--spacing-sm);
}

.mb-2 {
    margin-bottom: var(--spacing-md);
}

.mb-3 {
    margin-bottom: var(--spacing-lg);
}

.bg-light {
    background-color: var(--light-gray);
}

.text-orange {
    color: var(--primary-orange);
}

.text-gray {
    color: var(--dark-gray);
}

/* ==========================================
   회사소개 프리미엄 디자인
   ========================================== */
.about-premium-grid {
    display: flex;
    gap: 4rem;
    align-items: stretch;
    background: #fff;
    border-radius: 30px;
    overflow: hidden;
    box-shadow: 0 40px 100px rgba(0, 0, 0, 0.08);
    margin-bottom: 5rem;
}

.about-image-side {
    flex: 1.1;
    min-height: 500px;
}

.about-image-side .image-wrapper {
    width: 100%;
    height: 100%;
    position: relative;
    overflow: hidden;
}

.about-image-side img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 1s cubic-bezier(0.2, 0, 0.2, 1);
}

.about-premium-grid:hover .about-image-side img {
    transform: scale(1.08);
}

.image-overlay-text {
    position: absolute;
    bottom: 2rem;
    left: 2rem;
    color: white;
    z-index: 2;
}

.image-overlay-text span {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    opacity: 0.8;
}

.image-overlay-text p {
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0;
}

.about-text-side {
    flex: 1;
    padding: 4rem 4rem 4rem 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.about-intro-badge {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: rgba(255, 140, 0, 0.1);
    color: var(--primary-orange);
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    width: fit-content;
}

.about-main-title {
    font-size: 2.4rem;
    line-height: 1.3;
    margin-bottom: 2rem;
    color: #111;
}

.about-main-title span {
    color: var(--primary-orange);
}

.about-description {
    font-size: 1.05rem;
    line-height: 1.8;
    color: #555;
    margin-bottom: 1.5rem;
    word-break: keep-all;
}

.about-stats {
    display: flex;
    gap: 3rem;
    margin-top: 2.5rem;
    padding-top: 2.5rem;
    border-top: 1px solid #eee;
}

.stat-item {
    display: flex;
    flex-direction: column;
}

.stat-num {
    font-size: 2rem;
    font-weight: 800;
    color: var(--primary-orange);
}

.stat-label {
    font-size: 0.85rem;
    color: #888;
    margin-top: 0.3rem;
}

/* 1024px 이하 태블릿/모바일 대응 */
@media (max-width: 1024px) {
    .about-premium-grid {
        flex-direction: column;
        gap: 0;
    }

    .about-text-side {
        padding: 3rem;
    }

    .about-image-side {
        min-height: 350px;
    }
}

@media (max-width: 768px) {
    .about-main-title {
        font-size: 1.8rem;
    }

    .about-stats {
        gap: 1.5rem;
        flex-wrap: wrap;
    }

    .stat-num {
        font-size: 1.6rem;
    }
}

/* ==========================================
   회사소개 프리미엄 카드 (배경 이미지 재적용)
   ========================================== */
.about-overview-card {
    max-width: 1000px;
    margin: 0 auto;
    padding: 5rem 4rem;
    background: linear-gradient(rgba(0, 0, 0, 0.75), rgba(0, 0, 0, 0.75)), url('../images/about-overview-bg.png');
    background-size: cover;
    background-position: center;
    border-radius: 30px;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.15);
    position: relative;
    overflow: hidden;
    text-align: center;
}

.about-overview-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-orange), #ffae42);
    /* 오렌지 그라데이션 복구 */
}

.about-overview-card h4 {
    color: var(--primary-orange);
    font-size: 1.1rem;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.about-overview-card .overview-title {
    font-size: 1.8rem;
    line-height: 1.6;
    color: #ffffff !important;
    /* 다시 화이트로 */
    margin-bottom: 2.5rem;
    font-weight: 700;
}

.about-overview-card .overview-title strong {
    color: inherit !important;
    /* 회사명은 주황색 없이 화이트로 통일 */
}

.about-overview-card .overview-text {
    font-size: 1.1rem;
    line-height: 2;
    color: rgba(255, 255, 255, 0.9) !important;
    word-break: keep-all;
    max-width: 850px;
    margin: 0 auto;
}

/* 모바일 대응 */
@media (max-width: 768px) {
    .about-overview-card {
        padding: 3rem 1.5rem;
        border-radius: 20px;
    }

    .about-overview-card .overview-title {
        font-size: 1.4rem;
    }

    .about-overview-card .overview-text {
        font-size: 1rem;
    }
}