/*
 * Award Intro Page Styles
 * Page Template: page-award-intro.php
 *
 * style.css의 AWARD INTRO PAGE 블록에서 분리된 전용 스타일.
 * functions.php에서 is_page_template('page-award-intro.php') 조건으로 로드됨.
 */


/* =============================================================
   Global Overrides
   ============================================================= */

/* 전역 #primary padding-top → 네비 고정 높이(124px)로 정확히 보정 */
#primary.award-intro-page { padding-top: 124px; }

/* 전역 .inner padding 오버라이드 */
.award-intro-page .inner { padding: 0 !important; }


/* =============================================================
   1. Hero
   ============================================================= */

.ai-hero {
	position: relative;
	width: 100%;
	height: 600px;
	overflow: hidden;
	display: flex;
	align-items: center;
	justify-content: center;
}
.ai-hero-bg {
	position: absolute;
	inset: 0;
	background:
		radial-gradient(50% 130.27% at 100% 0%,  rgba(0,219,238,0.35)   0%, rgba(0,219,238,0)   50%),
		radial-gradient(50% 130.27% at 0%  100%, rgba(203,42,53,0.475)  0%, rgba(203,42,53,0)   50%),
		#00070F;
	pointer-events: none;
}
.ai-hero-inner {
	position: relative;
	width: 100%;
	max-width: 1137px;
	margin: 0 auto;
	padding: 0 20px;
	display: flex;
	flex-direction: column;
	align-items: center;
}
.ai-hero-logo-row {
	display: flex;
	justify-content: center;
	align-items: center;
	gap: 60px;
	width: 100%;
	margin-bottom: 20px;
}
.ai-hero-icon {
	width: 100px;
	height: 100px;
	flex-shrink: 0;
	display: flex;
	align-items: center;
	justify-content: center;
}
.ai-hero-icon img {
	width: 100%;
	height: 100%;
	object-fit: contain;
}
.ai-hero-icon--sitech {
	color: #fff;
}
.ai-hero-icon--sitech svg {
	width: 100px;
	height: 100px;
}

.ai-hero-dia {
	font-family: 'Pretendard', sans-serif;
	font-size: 96px;
	font-weight: 700;
	line-height: 140%;
	color: #fff;
	text-align: center;
	flex-shrink: 0;
}
.ai-hero-title {
	font-family: 'Pretendard', sans-serif;
	font-size: 32px;
	font-weight: 700;
	line-height: 1.2;
	color: #fff;
	text-align: center;
	margin: 0;
	width: 100%;
}
.ai-hero-subtitle-br { display: none; }
@media (min-width: 1280px) {
	.ai-hero-subtitle-br { display: inline; }
}
.ai-hero-subtitle {
	font-family: 'Pretendard', sans-serif;
	font-size: 16px;
	font-weight: 500;
	line-height: 140%;
	color: rgba(255,255,255,0.9);
	text-align: center;
	margin: 60px 0 0;
	width: 100%;
}


/* =============================================================
   2. Shared: Section Label & Buttons
   ============================================================= */

.ai-section-label {
	font-size: 24px;
	font-weight: 600;
	line-height: 1.2;
	color: #111;
	text-align: center;
	margin: 0 0 40px;
}
.ai-section-label span {
	display: inline;
	padding: 0;
	position: static;
}
.ai-section-label span::before,
.ai-section-label span::after {
	display: none;
}

.ai-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	height: 40px;
	padding: 0 24px;
	background: #182F7A;
	color: #fff;
	font-size: 14px;
	font-weight: 600;
	border-radius: 4px;
	text-decoration: none;
	transition: background 0.2s;
}
.ai-btn:hover {
	background: #0f1f52;
}
.ai-btn--sitech {
	background: #1B2A6B;
}
.ai-btn--sitech:hover {
	background: #111c4a;
}


/* =============================================================
   3. Intro
   ============================================================= */

.ai-intro {
	padding: 56px 0;
	border-bottom: 1px solid #E6E8EA;
	background: #fff;
}
.ai-intro .inner {
	max-width: 1137px;
	margin: 0 auto;
}
.ai-intro-text {
	font-size: 15px;
	font-weight: 500;
	line-height: 1.8;
	color: #464C53;
	text-align: center;
	margin: 0;
}


/* =============================================================
   4. Hosted Awards
   ============================================================= */

.ai-hosted {
	padding: 60px 0;
	background: #fff;
}
.ai-hosted .inner {
	max-width: 1194px;
	margin: 0 auto;
}
.ai-hosted-grid {
	display: flex;
	flex-direction: row;
}

.ai-award-card {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	padding: 32px;
	gap: 20px;
	flex: 1;
	border: 1px solid #B1B8BE;
}
.ai-award-ict {
	background: linear-gradient(118.42deg, rgba(203,42,53,0) 14.89%, rgba(203,42,53,0.05) 85.11%);
}
.ai-award-sitech {
	background: linear-gradient(118.42deg, rgba(11,19,49,0) 14.89%, rgba(11,19,49,0.05) 85.11%);
}

.ai-award-card-logo {
	display: flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
}
.ai-award-ict .ai-award-card-logo {
	width: 45px;
	height: 60px;
}
.ai-award-ict .ai-award-card-logo img {
	width: 100%;
	height: 100%;
	object-fit: contain;
}
.ai-award-sitech .ai-award-card-logo {
	width: 60px;
	height: 60px;
	color: #0B1331;
}
.ai-award-sitech .ai-award-card-logo svg {
	width: 60px;
	height: 60px;
}

.ai-award-card-body {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 20px;
	width: 100%;
}
.ai-award-card-title {
	font-size: 24px;
	font-weight: 600;
	line-height: 1.2;
	margin: 0;
}
.ai-award-ict .ai-award-card-title {
	color: #CB2A35;
}
.ai-award-sitech .ai-award-card-title {
	color: #0B1331;
}
.ai-award-card-title span {
	font-size: 16px;
	font-weight: 400;
	color: #888;
	margin-left: 6px;
}
.ai-award-card-body > p {
	font-size: 16px;
	font-weight: 500;
	line-height: 140%;
	color: #111;
	margin: 0;
	text-align: justify;
}

.ai-award-card .ai-btn {
	background: transparent;
	height: 40px;
	padding: 10px 40px;
	font-size: 15px;
	font-weight: 400;
	border-radius: 0;
}
.ai-award-ict .ai-btn {
	border: 1px solid #CB2A35;
	color: #CB2A35;
}
.ai-award-ict .ai-btn:hover {
	background: rgba(203,42,53,0.05);
}
.ai-award-sitech .ai-btn {
	border: 1px solid #0B1331;
	color: #0B1331;
}
.ai-award-sitech .ai-btn:hover {
	background: rgba(11,19,49,0.05);
}


/* =============================================================
   5. Archive
   ============================================================= */

.ai-archive {
	background: radial-gradient(98.06% 106.13% at 100% 50.01%, rgba(203,42,53,0.35) 0%, rgba(203,42,53,0) 50%), #000;
	padding: 60px 0;
	position: relative;
}
.ai-archive .inner {
	max-width: 1194px;
	margin: 0 auto;
}
.ai-archive-glow {
	display: none;
}

/* SCI-Tech 탭 활성 시 배경 교체 */
.ai-archive[data-active="sci-tech"] {
	background: radial-gradient(98.06% 106.13% at 100% 50.01%, rgba(0,219,238,0.35) 0%, rgba(0,219,238,0) 50%), #0B1331;
}

/* --- Scroll Fade (mask-image) --- */
.ai-scroll-fade {
	position: relative;
	-webkit-mask-image: linear-gradient(to right, #000 calc(100% - 80px), transparent 100%);
	mask-image:         linear-gradient(to right, #000 calc(100% - 80px), transparent 100%);
	overflow: hidden;
}
.ai-scroll-fade.is-scroll-end {
	-webkit-mask-image: none;
	mask-image:         none;
}

/* --- Tabs --- */
.ai-tabs {
	display: flex;
	overflow-x: auto;
	scrollbar-width: none;
	margin-bottom: 60px;
	border-bottom: 1px solid #2a2a2a;
}
.ai-tabs::-webkit-scrollbar {
	display: none;
}

.ai-tab {
	flex-shrink: 0;
	min-height: 44px;
	background: none;
	border: none;
	border-bottom: 2px solid #6D7882;
	padding: 8px 16px;
	font-size: 16px;
	font-weight: 600;
	color: #6D7882;
	cursor: pointer;
	white-space: nowrap;
	margin-bottom: -1px;
	transition: color 0.2s, border-color 0.2s;
}
.ai-tab.is-active,
.ai-tab:hover {
	color: #CB2A35;
	border-bottom-color: #CB2A35;
}
.ai-tab[data-award="sci-tech"].is-active,
.ai-tab[data-award="sci-tech"]:hover {
	color: #00DBEE;
	border-bottom-color: #00DBEE;
}

/* --- Title Group --- */
.ai-archive-title-group,
.ai-panel-hero-gallery,
.ai-winner-panel.is-active {
	transition: opacity 0.25s ease;
}
.ai-archive-title-group.is-fading,
.ai-panel-hero-gallery.is-fading,
.ai-winner-panel.is-fading {
	opacity: 0;
}
.ai-archive-title-group {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 20px;
	margin-bottom: 60px;
	text-align: center;
}
.ai-archive-title {
	font-size: 80px;
	font-weight: 700;
	line-height: 1.19;
	color: #fff;
	margin: 0;
}
.ai-archive-subtitle {
	font-size: 17px;
	font-weight: 500;
	color: #B1B8BE;
	margin: 0;
}

/* --- Gallery (video + 사진 2장) --- */
.ai-panel-hero-gallery {
	display: flex;
	flex-direction: column;
	gap: 20px;
	margin-bottom: 60px;
}
.gallery-video {
	position: relative;
	width: 100%;
	aspect-ratio: 16/9;
	background: #111;
	overflow: hidden;
}
.gallery-photos {
	display: grid;
	grid-template-columns: 1fr 1fr;
	position: relative;
}
.gallery-sub-img {
	aspect-ratio: 16/9;
	background: #1a1a1a center/cover no-repeat;
	transition: opacity 0.25s ease;
}
.gallery-sub-img.is-fading {
	opacity: 0;
}

.gallery-nav {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	width: 48px;
	height: 68px;
	background: rgba(17,17,17,0.3);
	border: none;
	cursor: pointer;
	z-index: 2;
	display: flex;
	align-items: center;
	justify-content: center;
}
.gallery-prev {
	left: 0;
	border-radius: 0 10px 10px 0;
}
.gallery-next {
	right: 0;
	border-radius: 10px 0 0 10px;
}

.gallery-prev::before,
.gallery-next::before {
	content: '';
	display: block;
	width: 10px;
	height: 10px;
	border-left:   1.5px solid #fff;
	border-bottom: 1.5px solid #fff;
}
.gallery-prev::before {
	transform: rotate(45deg) translate(2px,-2px);
}
.gallery-next::before {
	transform: rotate(-135deg) translate(2px,-2px);
}
.gallery-dots {
	display: none;
}
.gallery-dot {
	display: none;
}

/* --- Winner Panel --- */
.ai-winner-panel {
	display: none;
}
.ai-winner-panel.is-active {
	display: flex;
	flex-direction: column;
}
.ai-winner-panel.is-active .ai-panel-articles-wrap {
	order: -1;
	margin-bottom: 60px;
}
.ai-panel-winners-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-bottom: 40px;
}
.ai-panel-winners-title {
	font-size: 20px;
	font-weight: 500;
	color: #B1B8BE;
	margin: 0;
}
.ai-panel-winners-more {
	display: flex;
	align-items: center;
	gap: 8px;
	font-size: 15px;
	font-weight: 400;
	color: #fff !important;
	text-decoration: none;
	transition: opacity 0.2s;
}
.ai-panel-winners-more:hover {
	opacity: 0.7;
	color: #fff !important;
}

/* Winner cards: 4열 고정 275px */
.ai-panel-winners {
	display: grid;
	grid-template-columns: repeat(4, 275px);
	gap: 30px;
	margin-bottom: 60px;
}
.ai-winner-card {
	text-decoration: none;
	display: flex;
	flex-direction: column;
}
.ai-winner-card--empty .ai-winner-thumb {
	opacity: 0.3;
}
.ai-winner-thumb-wrap {
	position: relative;
}
.ai-badge-list {
	position: absolute;
	top: 8px;
	left: 8px;
	display: flex;
	gap: 4px;
	list-style: none;
	margin: 0;
	padding: 0;
	z-index: 1;
}
.ai-badge-list li div {
	width: 36px;
	height: 36px;
	border-radius: 50%;
	background: #fff center/30px no-repeat;
	position: relative;
	cursor: pointer;
}
.ai-badge-list li div.ict-award    { background-image: url('../images/awards/ict-award.png'); }
.ai-badge-list li div.and-award    { background-image: url('../images/awards/and-award.png'); }
.ai-badge-list li div.web-award    { background-image: url('../images/awards/web-award.png'); }
.ai-badge-list li div.sitech-award { background-image: url('../images/awards/sitech-award.png'); }
.ai-badge-list li div > span {
	display: none;
	position: absolute;
	top: 40px;
	left: 0;
	background: rgba(0,0,0,0.82);
	color: #fff;
	font-size: 12px;
	line-height: 1.5;
	width: 160px;
	padding: 6px 8px;
	border-radius: 4px;
	z-index: 10;
	white-space: normal;
	pointer-events: none;
}
.ai-badge-list li:hover div > span { display: block; }
.ai-winner-thumb {
	height: 163px;
	background: #222 center/cover no-repeat;
	border: 1px solid #E6E8EA;
}
.ai-winner-content {
	padding: 20px 0 0;
	display: flex;
	flex-direction: column;
	gap: 12px;
}
.ai-winner-title {
	font-size: 18px;
	font-weight: 500;
	line-height: 1.2;
	min-height: 2.4em;
	display: -webkit-box;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 2;
	overflow: hidden;
	color: #fff;
	margin: 0;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.ai-agency-wrap {
	display: flex;
	align-items: center;
	gap: 8px;
}
.ai-agency-avatar {
	width: 36px;
	height: 36px;
	border-radius: 50%;
	background: #D9D9D9;
	flex-shrink: 0;
	overflow: hidden;
}
.ai-agency-avatar img {
	width: 36px;
	height: 36px;
	border-radius: 50%;
	object-fit: cover;
	display: block;
}
.ai-agency-info {
	display: flex;
	flex-direction: column;
	gap: 4px;
	min-width: 0;
}
.ai-agency-client-row {
	display: flex;
	align-items: center;
	gap: 4px;
	min-width: 0;
	overflow: hidden;
}
.ai-agency-name,
.ai-client-name {
	font-size: 14px;
	font-weight: 500;
	color: #B1B8BE;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}
.ai-meta-divider {
	font-size: 14px;
	color: #B1B8BE;
}
.ai-winner-year {
	font-size: 14px;
	font-weight: 500;
	color: #B1B8BE;
	display: block;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

/* --- Article Cards: 2열 가로형 --- */
.ai-panel-articles-wrap {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 20px;
}
.ai-panel-articles {
	display: flex;
	flex-wrap: wrap;
	gap: 30px;
	width: 100%;
}
.ai-panel-articles-more {
	box-sizing: border-box;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	min-width: 153px;
	white-space: nowrap;
	height: 40px;
	padding: 10px 40px;
	border: 1px solid #fff;
	color: #fff !important;
	font-size: 15px;
	font-weight: 400;
	text-decoration: none;
	transition: opacity 0.2s;
}
.ai-panel-articles-more:hover {
	opacity: 0.7;
	color: #fff !important;
}
.ai-article-card {
	text-decoration: none;
	display: flex;
	flex-direction: row;
	gap: 20px;
	width: calc(50% - 15px);
}
.ai-article-thumb {
	width: 174px;
	height: 103px;
	flex-shrink: 0;
	background: #1a1a1a center/cover no-repeat;
	border: 1px solid #E6E8EA;
}
.ai-article-content {
	display: flex;
	flex-direction: column;
	justify-content: center;
	gap: 12px;
	flex: 1;
}
.ai-article-title {
	font-size: 18px;
	font-weight: 500;
	line-height: 1.2;
	color: #fff;
	margin: 0;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}
.ai-article-meta {
	display: flex;
	flex-direction: column;
	gap: 4px;
}
.ai-article-author-wrap {
	display: flex;
	align-items: center;
	gap: 8px;
}
.ai-article-avatar {
	width: 36px;
	height: 36px;
	flex-shrink: 0;
}
.ai-article-avatar img {
	width: 36px;
	height: 36px;
	border-radius: 50%;
	object-fit: cover;
	background: #D9D9D9;
}
.ai-article-author-info {
	display: flex;
	flex-direction: column;
	gap: 4px;
}
.ai-article-author-name {
	font-size: 14px;
	font-weight: 500;
	color: #B1B8BE;
	display: block;
}
.ai-article-post-meta {
	display: flex;
	gap: 4px;
	font-size: 14px;
	font-weight: 500;
	color: #B1B8BE;
}


/* =============================================================
   6. Benefits
   ============================================================= */

.ai-benefits {
	padding: 60px 0 30px;
	background: #fff;
}
.ai-benefits .inner {
	max-width: 1194px;
	margin: 0 auto;
}

.ai-benefits-grid {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	border-left: 1px solid #B1B8BE;
	border-top:  1px solid #B1B8BE;
}
.ai-benefit {
	display: flex;
	flex-direction: column;
	align-items: center;
	text-align: center;
	padding: 48px 20px;
	gap: 20px;
	border-right:  1px solid #B1B8BE;
	border-bottom: 1px solid #B1B8BE;
}
.ai-benefit-icon {
	width: 60px;
	height: 60px;
	object-fit: contain;
	flex-shrink: 0;
}
.ai-benefit h3 {
	font-size: 20px;
	font-weight: 700;
	line-height: 1.4;
	color: #111;
	margin: 0;
}
.ai-benefit p {
	font-size: 16px;
	font-weight: 500;
	line-height: 140%;
	color: #464C53;
	margin: 0;
	text-align: justify;
	word-break: break-all;
}


/* =============================================================
   7. Closing
   ============================================================= */

.ai-closing {
	padding: 60px 0;
	background: #fff;
}
.ai-closing .inner {
	max-width: 1194px;
	margin: 0 auto;
}

.ai-closing-wrap {
	display: flex;
	flex-direction: row;
	align-items: flex-start;
	gap: 28px;
}
.ai-closing-title {
	font-size: 32px;
	font-weight: 600;
	line-height: 1.19;
	color: #464C53;
	margin: 0;
	flex-shrink: 0;
}
.ai-closing-divider {
	width: 1px;
	min-height: 76px;
	align-self: stretch;
	background: #B1B8BE;
	flex-shrink: 0;
}
.ai-closing-desc {
	font-size: 17px;
	font-weight: 500;
	line-height: 140%;
	color: #464C53;
	margin: 0;
	text-align: justify;
	flex: 1;
}


/* =============================================================
   Responsive
   ============================================================= */

@media (max-width: 1200px) {
	.award-intro-page .inner {
		padding: 0 20px !important;
	}

	/* Winner cards → 가로 스크롤 캐러셀 */
	.ai-winner-panel.is-active > .ai-scroll-fade {
		overflow-x: auto;
		-webkit-overflow-scrolling: touch;
		scrollbar-width: none;
	}
	.ai-winner-panel.is-active > .ai-scroll-fade::-webkit-scrollbar {
		display: none;
	}
	.ai-panel-winners {
		display: flex;
		flex-direction: row;
		gap: 30px;
		margin-bottom: 60px;
		width: max-content;
	}
	.ai-winner-card {
		flex-shrink: 0;
		width: 275px;
	}
}

@media (max-width: 1024px) {
	.ai-hero {
		height: auto;
		padding: 80px 0;
	}
	.ai-hero-dia {
		font-size: 64px;
	}
	.ai-closing-wrap {
		flex-direction: column;
		gap: 20px;
	}
	.ai-closing-divider {
		width: 48px;
		min-height: 1px;
		align-self: auto;
	}
}

@media (max-width: 960px) {
	/* Benefits → 가로 스크롤 */
	.ai-benefits .ai-scroll-fade {
		overflow-x: auto;
		-webkit-overflow-scrolling: touch;
		scrollbar-width: none;
	}
	.ai-benefits .ai-scroll-fade::-webkit-scrollbar {
		display: none;
	}
	.ai-benefits-grid {
		display: flex;
		flex-direction: row;
		width: max-content;
		border-left: 1px solid #B1B8BE;
		border-top: 1px solid #B1B8BE;
	}
	.ai-benefit {
		width: 298px;
		flex-shrink: 0;
	}
}

@media (max-width: 768px) {
	.ai-hero-logo-row {
		gap: 24px;
	}
	.ai-hero-icon {
		width: 56px;
		height: 56px;
	}
	.ai-hero-icon--sitech svg {
		width: 56px;
		height: 56px;
	}
	.ai-hero-dia {
		font-size: 48px;
	}
	.ai-hero-title {
		font-size: 22px;
	}
	.ai-hosted-grid {
		flex-direction: column;
	}
	.ai-archive-title {
		font-size: 40px;
	}
	.ai-panel-articles {
		flex-direction: column;
	}
	.ai-article-card {
		width: 100%;
	}
	.ai-closing-title {
		font-size: 24px;
	}
}

@media (max-width: 480px) {
	.ai-hero-dia {
		font-size: 36px;
	}
	.ai-hero-icon {
		width: 40px;
		height: 40px;
	}
	.ai-hero-title {
		font-size: 18px;
	}
	.ai-archive-title {
		font-size: 28px;
	}
	.ai-article-thumb {
		width: 120px;
		height: 80px;
	}
}
