/* product-lic.css */

/* 🎨 [이전 요청] 제품 제목 및 소개 섹션 배경 스타일 */
.lic-hero-content {
    /* 배경 이미지 경로: ./assets/images/bg/lic_bg1.jpg */
    background-image: url('../images/bg/lic_b1.jpg'); 
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    padding: 50px 20px; /* 내부 여백 */
    margin-bottom: 50px; /* 섹션 하단 여백 */
    border-radius: 10px;
    color: #fff; /* 기본 텍스트 색상을 흰색으로 설정 */
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.7); /* 텍스트 가독성을 위한 그림자 */
    position: relative; 
    overflow: hidden; 
}

/* 가독성을 높이기 위한 오버레이 */
.lic-hero-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.3); /* 라이트 모드 오버레이 (30% Opacity) */
    z-index: 1;
    transition: background-color 0.3s ease;
}

/* 다크 모드일 때 오버레이를 더 어둡게 (65% Opacity) */
.dark-mode .lic-hero-content::before {
    background-color: rgba(0, 0, 0, 0.65); 
}

/* 텍스트가 오버레이 위로 오도록 설정 및 중앙 정렬 */
.lic-hero-content h2, .lic-hero-content p, .lic-hero-content .section-title {
    position: relative;
    z-index: 2;
    color: #fff !important; /* 텍스트 색상을 흰색으로 강제 */
    text-align: center;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

/* h2 스타일 조정 */
.lic-hero-content h2 {
    font-size: 2.5em;
    margin-bottom: 20px;
    text-align: center;
    border-bottom: none !important; /* 기존 h3 스타일의 border-bottom 제거 */
    padding-bottom: 0 !important;
}

.lic-hero-content .section-title {
    text-align: center;
    margin-bottom: 0;
}

/* p 태그 스타일 조정 */
.lic-hero-content p {
    font-size: 1.1em;
    line-height: 1.8;
    margin-bottom: 0;
    color: #fff !important; 
}


/* --- 기존 CSS 스타일 유지 --- */

.product-detail-section {
	padding: 100px 0;
}
.product-detail-section h3 {
	border-bottom: 2px solid var(--primary-color);
	padding-bottom: 10px;
	margin-bottom: 20px;
	font-size: 1.5em;
}
.product-detail-section p, .product-detail-section ul, .product-detail-section li {
	font-size: 1.1em;
	line-height: 1.8;
	color: var(--text-color);
	margin-bottom: 1rem;
}
.product-detail-section ul {
	list-style-type: none;
	padding-left: 0;
}
.product-detail-section li {
	margin-bottom: 10px;
}

/* 제품 상세 정보를 2열로 나누는 그리드 레이아웃 */
.product-details-grid {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 20px;
	margin-bottom: 50px;
}
@media (max-width: 768px) {
	.product-details-grid {
		grid-template-columns: 1fr;
	}
}

/* 주요 특징 카드형 레이아웃 */
.features-grid {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 20px;
	margin-top: 30px;
	margin-bottom: 50px;
}
.feature-card {
    /* 배경 이미지를 위한 설정 */
    background-color: transparent; 
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
	border-radius: 8px;
    /* 배경 이미지에 맞게 그림자 및 기타 설정 조정 */
	padding: 25px;
	text-align: left;
	box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2); 
	transition: transform 0.3s ease, box-shadow 0.3s ease;
	height: 100%;
	display: flex;
	flex-direction: column;
	justify-content: flex-start;
	position: relative; /* 자식 요소 및 ::after를 위한 상대 위치 설정 */
	overflow: hidden; 
    color: #fff; /* 텍스트 기본 색상을 흰색으로 설정 */
    text-shadow: 0 0 5px rgba(0, 0, 0, 0.7); /* 텍스트 가독성을 위한 그림자 */
}
.feature-card:hover {
	transform: translateY(-5px);
	box-shadow: 0 6px 12px rgba(0, 0, 0, 0.3); /* 그림자도 어둡게 조정 */
}

/* 💡 [신규 요청] 개별 배경 이미지 지정 */
.feature-card-1 {
    background-image: url('../images/bg/lic_banner_1.jpg');
}
.feature-card-2 {
    background-image: url('../images/bg/lic_banner_2.jpg');
}
.feature-card-3 {
    background-image: url('../images/bg/lic_banner_3.jpg');
}
.feature-card-4 {
    background-image: url('../images/bg/lic_banner_4.jpg');
}

/* 💡 [신규 요청] 오버레이(Opacity) 추가 */
.feature-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.4); /* 라이트 모드 오버레이 (40% Opacity) */
    z-index: 1; /* 이미지 위에, 텍스트 아래 */
    transition: background-color 0.3s ease;
}

/* 💡 [신규 요청] 다크 모드 오버레이 */
.dark-mode .feature-card::after {
    background-color: rgba(0, 0, 0, 0.6); /* 다크 모드 오버레이 (60% Opacity) */
}

/* 텍스트 요소들을 오버레이 위로 올리고 색상을 흰색으로 고정 */
.feature-card h4, .feature-card p {
    position: relative;
    z-index: 2; /* 오버레이보다 높은 z-index */
}
.feature-card h4 {
	font-size: 1.25em;
	color: #fff; /* 흰색으로 고정 */
	margin-bottom: 15px;
	font-weight: bold;
}
.feature-card p {
	font-size: 0.95em;
	color: #eee; /* 밝은 회색으로 고정 */
	line-height: 1.6;
	flex-grow: 1;
}

@media (max-width: 1024px) {
	.features-grid {
		grid-template-columns: repeat(2, 1fr);
	}
}
@media (max-width: 767px) {
	.features-grid {
		grid-template-columns: 1fr;
	}
}

/* 이미지 자료 섹션 */
.image-gallery-section {
	padding: 50px 0;
	margin-top: 50px;
}
.gallery-title h3 {
	border-bottom: 2px solid var(--primary-color);
	padding-bottom: 10px;
	margin-bottom: 20px;
	font-size: 1.5em;
}
.category-filter {
	display: flex;
	gap: 15px;
	margin-bottom: 30px;
	justify-content: center;
}
.category-button {
	background: none;
	border: 1px solid var(--primary-color);
	color: var(--primary-color);
	padding: 8px 15px;
	border-radius: 20px;
	cursor: pointer;
	transition: background-color 0.3s, color 0.3s;
	font-weight: bold;
}
.category-button.active {
	background-color: var(--primary-color);
	color: #fff;
}
.gallery-container {
	position: relative;
	max-width: 92%;
	margin: 0 auto;
}
.gallery-wrapper {
	display: flex;
	overflow-x: hidden;
	scroll-behavior: smooth;
	-webkit-overflow-scrolling: touch;
	padding: 10px 0;
}
.gallery-item {
	flex: 0 0 auto;
	width: 300px; /* 카드 너비 */
	margin-right: 20px;
	border-radius: 8px;
	overflow: hidden;
	box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
	transition: transform 0.3s ease;
	cursor: pointer;
}
.gallery-item img {
	width: 100%;
	height: 200px;
	object-fit: cover;
	display: block;
}
.nav-arrow {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	background-color: rgba(0, 0, 0, 0.5);
	color: white;
	border: none;
	padding: 10px;
	cursor: pointer;
	z-index: 10;
	border-radius: 50%;
	width: 40px;
	height: 40px;
	display: flex;
	align-items: center;
	justify-content: center;
}
.nav-arrow.left { left: -50px; }
.nav-arrow.right { right: -50px; }

/* 라이트박스 (팝업) 스타일 */
.lightbox {
	display: none;
	position: fixed;
	z-index: 1000;
	left: 0;
	top: 0;
	width: 100%;
	height: 100%;
	background-color: rgba(0, 0, 0, 0.9);
	justify-content: center;
	align-items: center;
}
.lightbox-content {
	max-width: 90%;
	max-height: 90%;
	animation-name: zoom;
	animation-duration: 0.6s;
}
.lightbox-content img {
	width: auto;
	max-width: 100%;
	height: auto;
	max-height: 100%;
	display: block;
	margin: auto;
}
.lightbox .close {
	position: absolute;
	top: 20px;
	right: 35px;
	color: #fff;
	font-size: 40px;
	font-weight: bold;
	transition: 0.3s;
	cursor: pointer;
}
@keyframes zoom {
	from {transform:scale(0)} 
	to {transform:scale(1)}
}
@media (max-width: 768px) {
	.gallery-item {
		width: 250px; /* 모바일에서 카드 너비 줄임 */
	}
	.nav-arrow {
		display: none; /* 모바일에서 화살표 숨기기 */
	}
}