/* Industry Page v0.2 Styles */

html {
	scroll-behavior: smooth;
}

/* ===== Hero Section ===== */
.industry-hero {
	background: linear-gradient(135deg, #182b38 0%, #2c4a5e 100%);
	color: #fff;
	padding: 3rem 0;
	margin-bottom: 2rem;
}

.industry-hero h1 {
	font-size: 2rem;
	font-weight: 700;
	margin: 0 0 0.5rem 0;
	color: #fff;
}


.industry-hero .hero-stats {
	display: flex;
	gap: 2rem;
	margin-top: 1rem;
}

.industry-hero .hero-stat {
	display: flex;
	align-items: baseline;
	gap: 0.25rem;
}

.industry-hero .hero-stat-number {
	font-size: 2rem;
	font-weight: 700;
	color: #fab549;
}

.industry-hero .hero-stat-label {
	font-size: 0.9rem;
	opacity: 0.85;
}

/* ===== History Card Grid ===== */
#history-grid .history-card {
	background: #fff;
	border-radius: 12px;
	overflow: hidden;
	border: 1px solid #e9ecef;
	transition: transform 0.25s ease, box-shadow 0.25s ease;
	height: 100%;
	display: flex;
	flex-direction: column;
}

#history-grid .history-card:hover {
	transform: translateY(-4px);
	box-shadow: 0 8px 24px rgba(0,0,0,0.12);
}

.card-img-wrapper {
	position: relative;
	overflow: hidden;
	height: 180px;
	background: #f0f2f5;
}

.card-img-wrapper .card-img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.3s ease;
}

#history-grid .history-card:hover .card-img {
	transform: scale(1.05);
}

/* Client Info (top area of card body) */
.card-client-section {
	padding: 1.25rem 1.25rem 0;
	flex: 1;
}

.client-name-heading {
	font-size: 1.05rem;
	font-weight: 700;
	color: #182b38;
	margin: 0 0 0.75rem 0;
	line-height: 1.4;
}

.client-meta {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
	margin-bottom: 0.75rem;
}

.client-meta-tag {
	display: inline-flex;
	align-items: center;
	gap: 0.25rem;
	font-size: 0.75rem;
	color: #5a6c7d;
	background: #f0f2f5;
	padding: 0.2rem 0.6rem;
	border-radius: 4px;
}

.client-detail-text {
	font-size: 0.82rem;
	color: #5a6c7d;
	line-height: 1.6;
	margin-bottom: 0.5rem;
}

.client-detail-label {
	font-weight: 600;
	color: #3a4a5a;
	display: block;
	margin-bottom: 0.15rem;
	font-size: 0.78rem;
}

/* Company + Plan Footer */
.card-company-section {
	background: #f8f9fb;
	border-top: 1px solid #e9ecef;
}

.card-company-link {
	display: block;
	padding: 1rem 1.25rem;
	text-decoration: none;
	color: inherit;
	transition: background 0.2s;
}

.card-company-link:hover {
	background: #eef0f4;
	text-decoration: none;
	color: inherit;
}

.company-row {
	display: flex;
	align-items: center;
	gap: 0.75rem;
}

.company-logo {
	max-width: 44px;
	max-height: 44px;
	object-fit: contain;
	flex-shrink: 0;
	border-radius: 6px;
}

.company-logo-link {
	display: inline-flex;
	flex-shrink: 0;
}

.company-plan-info {
	flex: 1;
	min-width: 0;
}

.company-name-text {
	font-size: 0.82rem;
	font-weight: 600;
	color: #182b38;
	margin: 0 0 0.15rem 0;
	line-height: 1.3;
}

.plan-name-text {
	font-size: 0.75rem;
	color: #5a6c7d;
	margin: 0;
	line-height: 1.4;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.card-arrow {
	color: #adb5bd;
	font-size: 0.85rem;
	flex-shrink: 0;
	margin-left: 0.5rem;
	transition: color 0.2s, transform 0.2s;
}

.card-company-link:hover .card-arrow {
	color: #fab549;
	transform: translateX(3px);
}

/* ===== Sidebar ===== */
.sidebar-toc {
	background: #fff;
	border-radius: 12px;
	border: 1px solid #e9ecef;
	padding: 1.25rem;
	margin-bottom: 1.25rem;
}

.sidebar-toc h3 {
	font-size: 1rem;
	font-weight: 700;
	color: #182b38;
	margin: 0 0 1rem 0;
	padding-bottom: 0.5rem;
	border-bottom: 2px solid #fab549;
}

.sidebar-toc ul {
	list-style: none;
	padding: 0;
	margin: 0;
}

.sidebar-toc > ul > li {
	margin-bottom: 0.5rem;
}

.sidebar-toc a {
	color: #3a4a5a;
	text-decoration: none;
	font-size: 0.88rem;
	display: block;
	padding: 0.3rem 0;
	transition: color 0.2s;
}

.sidebar-toc a:hover {
	color: #fab549;
}

.sidebar-toc .toc-sub {
	padding-left: 1rem;
	margin-top: 0.25rem;
}

.sidebar-toc .toc-sub li {
	margin-bottom: 0.25rem;
}

.sidebar-toc .toc-sub a {
	font-size: 0.82rem;
	color: #6c757d;
}

.sidebar-toc .toc-sub a::before {
	content: '└ ';
	color: #ccc;
}

.sidebar-industries {
	background: #fff;
	border-radius: 12px;
	border: 1px solid #e9ecef;
	padding: 1.25rem;
}

.sidebar-industries h3 {
	font-size: 1rem;
	font-weight: 700;
	color: #182b38;
	margin: 0 0 1rem 0;
	padding-bottom: 0.5rem;
	border-bottom: 2px solid #e9ecef;
}

.industry-link-list {
	list-style: none;
	padding: 0;
	margin: 0;
}

.industry-link-list li {
	margin-bottom: 0.25rem;
}

.industry-link-list a {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 0.5rem 0.75rem;
	border-radius: 6px;
	color: #3a4a5a;
	text-decoration: none;
	font-size: 0.88rem;
	transition: background 0.2s, color 0.2s;
}

.industry-link-list a:hover {
	background: #f0f2f5;
	color: #182b38;
}

.industry-link-list .count-badge {
	font-size: 0.75rem;
	color: #6c757d;
	background: #f0f2f5;
	padding: 0.15rem 0.5rem;
	border-radius: 10px;
}

.industry-link-list a:hover .count-badge {
	background: #e0e3e7;
}

/* ===== Strong Companies Section ===== */
.strong-companies-section {
	padding: 3rem 0;
	background: #fff;
}

.section-heading {
	font-size: 1.5rem;
	font-weight: 700;
	color: #182b38;
	text-align: center;
	margin-bottom: 2rem;
	position: relative;
}

.section-heading::after {
	content: '';
	display: block;
	width: 60px;
	height: 3px;
	background: #fab549;
	margin: 0.75rem auto 0;
	border-radius: 2px;
}

/* Category Filter */
.category-group-row {
	display: flex;
	align-items: flex-start;
	margin-bottom: 0.4rem;
	gap: 0.6rem;
}

.category-group-row:last-child {
	margin-bottom: 0;
}

.category-group-label {
	font-size: 0.7rem;
	font-weight: 600;
	color: #182B38;
	min-width: 120px;
	padding-top: 0.25rem;
	line-height: 1.4;
	flex-shrink: 0;
}

.category-buttons {
	display: flex;
	flex-wrap: wrap;
	gap: 0.3rem;
	justify-content: flex-start;
	flex: 1;
	align-items: flex-start;
}

.category-btn {
	display: inline-flex;
	align-items: center;
	background-color: #fff;
	color: #182B38;
	padding: 0.25rem 0.6rem;
	border-radius: 15px;
	font-size: 0.65rem;
	font-weight: 500;
	text-decoration: none;
	border: 1.5px solid #e9ecef;
	transition: all 0.3s ease;
	white-space: nowrap;
	box-shadow: 0 1px 2px rgba(0,0,0,0.06);
	line-height: 1.3;
	cursor: pointer;
}

.category-btn:hover {
	background-color: #fab549;
	color: #182B38;
	border-color: #fab549;
	transform: translateY(-1px);
	box-shadow: 0 2px 4px rgba(0,0,0,0.1);
	text-decoration: none;
}

.category-btn.active {
	background-color: #182B38;
	color: #fff;
	border-color: #182B38;
	box-shadow: 0 2px 4px rgba(24,43,56,0.2);
}

.category-btn .plan-count {
	font-size: 0.6rem;
	font-weight: 400;
	margin-left: 0.2rem;
	opacity: 0.75;
}

.category-btn.active .plan-count {
	opacity: 0.9;
}

.strong-companies-grid {
	max-width: 900px;
	margin: 0 auto;
}

.strong-company-card {
	display: flex;
	align-items: center;
	background: #fff;
	border: 2px solid #e9ecef;
	border-radius: 12px;
	padding: 1.25rem;
	margin-bottom: 0.75rem;
	text-decoration: none;
	color: inherit;
	transition: all 0.25s ease;
}

.strong-company-card:hover {
	border-color: #fab549;
	box-shadow: 0 4px 16px rgba(250, 181, 73, 0.2);
	transform: translateY(-2px);
	text-decoration: none;
	color: inherit;
}

.sc-logo {
	margin-right: 1.25rem;
	flex-shrink: 0;
}

.sc-logo img {
	max-height: 50px;
	max-width: 120px;
	object-fit: contain;
}

.sc-logo-placeholder {
	width: 50px;
	height: 50px;
	background: #f0f2f5;
	border-radius: 8px;
	display: flex;
	align-items: center;
	justify-content: center;
	color: #adb5bd;
	font-size: 1.5rem;
}

.sc-info {
	flex: 1;
	min-width: 0;
}

.sc-name {
	font-size: 1.1rem;
	font-weight: 700;
	color: #182b38;
	margin: 0 0 0.25rem 0;
}

.sc-badges {
	display: flex;
	gap: 0.4rem;
	flex-wrap: wrap;
	margin-bottom: 0.25rem;
}

.sc-badge {
	display: inline-flex;
	align-items: center;
	gap: 0.2rem;
	padding: 0.15rem 0.5rem;
	border-radius: 10px;
	font-size: 0.7rem;
	font-weight: 600;
}

.sc-badge-realname {
	background: #182b38;
	color: #fff;
}

.sc-badge-plan {
	background: #77b800;
	color: #fff;
}

.sc-tagline {
	font-size: 0.85rem;
	color: #6c757d;
	margin: 0;
	line-height: 1.4;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.sc-arrow {
	color: #fab549;
	font-size: 1.1rem;
	flex-shrink: 0;
	margin-left: 1rem;
	transition: transform 0.25s ease;
}

.strong-company-card:hover .sc-arrow {
	transform: translateX(4px);
}

/* ===== CTA Section ===== */
.cta-section {
	padding: 3rem 0;
	background: #f8f9fb;
}

.cta-box {
	background: #fff;
	border-radius: 16px;
	padding: 2.5rem;
	box-shadow: 0 4px 20px rgba(0,0,0,0.06);
}

.cta-box h2 {
	font-size: 1.5rem;
	font-weight: 700;
	color: #182b38;
	text-align: center;
	margin-bottom: 1.5rem;
}

/* ===== Recommended Plans ===== */
.recommended-plans-section {
	padding: 3rem 0;
	background: #f8f9fb;
}

.plan-category-filter {
	max-width: 100%;
	margin: 0 0 1.5rem;
	background: #fff;
	border-radius: 8px;
	padding: 0.6rem;
	border: 1px solid #e9ecef;
}

.plan-filter-all-row {
	margin-bottom: 0.5rem;
	padding-bottom: 0.5rem;
	border-bottom: 1px solid #dee2e6;
}

.plan-filter-all-row .category-btn {
	padding: 0.3rem 0.8rem;
	font-size: 0.7rem;
}

.plan-card-img-wrapper {
	position: relative;
	overflow: hidden;
}

.plan-recommend-ribbon {
	position: absolute;
	top: 10px;
	left: -2px;
	background: #e74c3c;
	color: #fff;
	font-size: 0.7rem;
	font-weight: 700;
	padding: 0.2rem 0.7rem 0.2rem 0.5rem;
	z-index: 2;
	border-radius: 0 4px 4px 0;
	box-shadow: 0 2px 4px rgba(0,0,0,0.15);
	letter-spacing: 0.05em;
}

.plan-recommend-ribbon::before {
	content: '';
	position: absolute;
	left: 0;
	bottom: -4px;
	width: 0;
	height: 0;
	border-style: solid;
	border-width: 4px 4px 0 0;
	border-color: #b83229 transparent transparent transparent;
}

.plan-card {
	background: #fff;
	border-radius: 12px;
	overflow: hidden;
	border: 1px solid #e9ecef;
	transition: transform 0.25s ease, box-shadow 0.25s ease;
	height: 100%;
	display: flex;
	flex-direction: column;
}

.plan-card:hover {
	transform: translateY(-4px);
	box-shadow: 0 8px 24px rgba(0,0,0,0.1);
}

.plan-card-img {
	height: 180px;
	object-fit: cover;
	width: 100%;
}

.plan-card-body {
	padding: 1.25rem;
	flex: 1;
}

.plan-card-categories {
	margin-bottom: 0.5rem;
}

.plan-card-categories .badge {
	font-size: 0.7rem;
	padding: 0.2rem 0.5rem;
	margin-right: 0.25rem;
	background: #e9ecef;
	color: #3a4a5a;
	border-radius: 4px;
}

.plan-card-title {
	font-size: 0.95rem;
	font-weight: 600;
	color: #182b38;
	margin: 0 0 0.5rem 0;
	line-height: 1.4;
}

.plan-card-title a {
	color: inherit;
	text-decoration: none;
}

.plan-card-title a:hover {
	color: #fab549;
}

.plan-card-summary {
	font-size: 0.82rem;
	color: #6c757d;
	line-height: 1.5;
}

.plan-card-company {
	font-size: 0.8rem;
	color: #adb5bd;
}

.plan-card-company a {
	color: inherit;
	text-decoration: none;
}

.plan-card-company a:hover {
	color: #fab549;
}

.plan-card-footer {
	padding: 0.75rem 1.25rem;
	border-top: 1px solid #e9ecef;
}

.plan-card-footer .btn {
	border-radius: 6px;
	font-size: 0.85rem;
	font-weight: 600;
}

/* ===== Sticky CTA Button ===== */
.sticky-cta-btn {
	position: fixed;
	right: 0;
	top: 50%;
	transform: translateY(-50%);
	z-index: 1000;
	background: linear-gradient(135deg, #e74c3c 0%, #c0392b 100%);
	color: #fff;
	text-decoration: none;
	padding: 1rem 0.75rem;
	border-radius: 8px 0 0 8px;
	writing-mode: vertical-rl;
	text-orientation: mixed;
	box-shadow: -2px 2px 12px rgba(0,0,0,0.2);
	transition: all 0.3s ease;
	display: flex;
	align-items: center;
	gap: 0.5rem;
	opacity: 0;
	pointer-events: none;
}

.sticky-cta-btn.visible {
	opacity: 1;
	pointer-events: auto;
}

.sticky-cta-btn:hover {
	color: #fff;
	text-decoration: none;
	padding-right: 1rem;
	box-shadow: -4px 2px 20px rgba(231,76,60,0.4);
}

.sticky-cta-label {
	font-size: 0.85rem;
	font-weight: 700;
	letter-spacing: 0.05em;
}

.sticky-cta-sub {
	font-size: 0.7rem;
	opacity: 0.9;
}

.sticky-cta-sub i {
	font-size: 0.6rem;
}

/* ===== History Detail Modal ===== */
.history-modal-content {
	border: none;
	border-radius: 16px;
	overflow: hidden;
}

.history-modal-header {
	background: linear-gradient(135deg, #182b38 0%, #2c4a5e 100%);
	color: #fff;
	border-bottom: none;
	padding: 1.25rem 1.5rem;
}

.history-modal-header .modal-title {
	font-size: 1.1rem;
	font-weight: 700;
	color: #fff;
}

.history-modal-header .close {
	color: #fff;
	opacity: 0.7;
	text-shadow: none;
}

.history-modal-header .close:hover {
	opacity: 1;
}

.history-modal-body {
	padding: 0;
}

.hm-image-section {
	width: 100%;
	max-height: 300px;
	overflow: hidden;
	background: #f0f2f5;
}

.hm-hero-img {
	width: 100%;
	height: 300px;
	object-fit: cover;
}

.hm-meta {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
	padding: 1.25rem 1.5rem;
	border-bottom: 1px solid #e9ecef;
}

.hm-meta-tag {
	display: inline-flex;
	align-items: center;
	gap: 0.35rem;
	font-size: 0.82rem;
	color: #3a4a5a;
	background: #f0f2f5;
	padding: 0.35rem 0.75rem;
	border-radius: 6px;
	font-weight: 500;
}

.hm-meta-tag i {
	color: #fab549;
	font-size: 0.78rem;
}

.hm-section {
	padding: 1.25rem 1.5rem;
	border-bottom: 1px solid #f0f2f5;
}

.hm-section:last-of-type {
	border-bottom: 1px solid #e9ecef;
}

.hm-section-label {
	font-size: 0.82rem;
	font-weight: 700;
	color: #182b38;
	margin: 0 0 0.6rem 0;
	display: flex;
	align-items: center;
	gap: 0.4rem;
}

.hm-section-label i {
	color: #fab549;
	font-size: 0.78rem;
}

.hm-section-text {
	font-size: 0.88rem;
	color: #4a5568;
	line-height: 1.75;
}

/* Company block */
.hm-company-block {
	padding: 1.25rem 1.5rem;
	border-bottom: 1px solid #e9ecef;
	background: #f8f9fb;
}

.hm-company-link {
	display: block;
	text-decoration: none;
	color: inherit;
	background: #fff;
	border: 1px solid #e9ecef;
	border-radius: 10px;
	padding: 1rem;
	transition: all 0.2s ease;
}

.hm-company-link:hover {
	text-decoration: none;
	color: inherit;
	border-color: #fab549;
	box-shadow: 0 2px 8px rgba(250, 181, 73, 0.15);
}

.hm-company-row {
	display: flex;
	align-items: center;
	gap: 0.75rem;
}

.hm-company-logo-wrap {
	flex-shrink: 0;
}

.hm-company-logo {
	max-width: 60px;
	max-height: 60px;
	object-fit: contain;
	border-radius: 8px;
}

.hm-company-logo-placeholder {
	width: 60px;
	height: 60px;
	background: #f0f2f5;
	border-radius: 8px;
	display: flex;
	align-items: center;
	justify-content: center;
	color: #adb5bd;
	font-size: 1.5rem;
}

.hm-company-info {
	flex: 1;
	min-width: 0;
}

.hm-company-name {
	font-size: 0.95rem;
	font-weight: 700;
	color: #182b38;
	margin-bottom: 0.2rem;
}

.hm-company-desc {
	font-size: 0.8rem;
	color: #6c757d;
	line-height: 1.4;
	overflow: hidden;
	text-overflow: ellipsis;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
}

.hm-company-arrow {
	color: #adb5bd;
	font-size: 0.85rem;
	flex-shrink: 0;
	transition: color 0.2s;
}

.hm-company-link:hover .hm-company-arrow {
	color: #fab549;
}

/* Plan block */
.hm-plan-block {
	padding: 1.25rem 1.5rem;
	background: #f8f9fb;
}

.hm-plan-link {
	display: block;
	text-decoration: none;
	color: inherit;
	background: #fff;
	border: 1px solid #e9ecef;
	border-radius: 10px;
	overflow: hidden;
	transition: all 0.2s ease;
}

.hm-plan-link:hover {
	text-decoration: none;
	color: inherit;
	border-color: #fab549;
	box-shadow: 0 2px 8px rgba(250, 181, 73, 0.15);
}

.hm-plan-row {
	display: flex;
	align-items: center;
	gap: 0.75rem;
}

.hm-plan-img-wrap {
	flex-shrink: 0;
	width: 100px;
	height: 70px;
	overflow: hidden;
}

.hm-plan-img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.hm-plan-info {
	flex: 1;
	min-width: 0;
	padding: 0.75rem 0;
}

.hm-plan-name {
	font-size: 0.9rem;
	font-weight: 600;
	color: #182b38;
	margin-bottom: 0.2rem;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.hm-plan-summary {
	font-size: 0.78rem;
	color: #6c757d;
	line-height: 1.4;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.hm-plan-arrow {
	color: #adb5bd;
	font-size: 0.85rem;
	flex-shrink: 0;
	padding-right: 0.75rem;
	transition: color 0.2s;
}

.hm-plan-link:hover .hm-plan-arrow {
	color: #fab549;
}

/* Modal footer */
.history-modal-footer {
	border-top: 1px solid #e9ecef;
	padding: 1rem 1.5rem;
	display: flex;
	gap: 0.5rem;
	justify-content: center;
}

.history-modal-footer .btn {
	border-radius: 6px;
	font-size: 0.85rem;
	font-weight: 600;
	padding: 0.5rem 1.25rem;
}

/* ===== Responsive ===== */
@media (max-width: 768px) {
	.industry-hero {
		padding: 2rem 0;
	}

	.industry-hero h1 {
		font-size: 1.5rem;
	}

	.industry-hero .hero-stats {
		gap: 1rem;
	}

	.industry-hero .hero-stat-number {
		font-size: 1.5rem;
	}

	.card-img-wrapper {
		height: 160px;
	}

	.strong-company-card {
		flex-wrap: wrap;
		padding: 1rem;
	}

	.sc-logo {
		margin-right: 0.75rem;
	}

	.sc-info {
		flex: 1 1 calc(100% - 80px);
	}

	.sc-tagline {
		white-space: normal;
	}

	.sc-arrow {
		display: none;
	}

	.cta-box {
		padding: 1.5rem;
	}

	.section-heading {
		font-size: 1.25rem;
	}

	.sc-category-filter {
		padding: 0.5rem;
	}

	.category-group-row {
		flex-direction: column;
		gap: 0.3rem;
		margin-bottom: 0.5rem;
	}

	.category-group-label {
		min-width: auto;
		padding-top: 0;
		font-size: 0.65rem;
		border-bottom: 1px solid #dee2e6;
		padding-bottom: 0.2rem;
	}

	.category-btn {
		font-size: 0.6rem;
		padding: 0.25rem 0.5rem;
	}

	.sticky-cta-btn {
		display: none;
	}

	.hm-hero-img {
		height: 200px;
	}

	.hm-section,
	.hm-company-block,
	.hm-plan-block {
		padding: 1rem 1.25rem;
	}

	.hm-meta {
		padding: 1rem 1.25rem;
	}

	.hm-plan-row {
		flex-direction: column;
		align-items: stretch;
	}

	.hm-plan-img-wrap {
		width: 100%;
		height: 140px;
	}

	.hm-plan-info {
		padding: 0.75rem;
	}

	.hm-plan-arrow {
		display: none;
	}

	.history-modal-footer {
		flex-direction: column;
	}

	.history-modal-footer .btn {
		width: 100%;
	}
}