/**
 * Nanglo Group Companion Plugin - Frontend Stylesheet
 * Responsive, Modern, Accessible & Theme-Independent
 *
 * @package NangloGroup
 */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@700&family=Inter:wght@400;600;700&display=swap');

:root {
	--ink: #1a1a1a;
	--ng-primary: #D83627;
	--ng-primary-hover: #b82b1d;
	--ng-bg-dark: #0f172a;
	--ng-card-bg: #ffffff;
	--ng-card-border: #e2e8f0;
	--ng-text-primary: #1e293b;
	--ng-text-secondary: #64748b;
	--ng-radius: 12px;
	--ng-shadow: 0 10px 30px -5px rgba(0, 0, 0, 0.08);
	--ng-shadow-hover: 0 20px 40px -10px rgba(0, 0, 0, 0.15);
	--ng-transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);

	--ng-red: #D83627;
}

/* ==========================================================================
   Carousel Wrapper & Main Track
   ========================================================================== */

.ng-carousel-wrapper {
	position: relative;
	width: 100%;
	margin: 2rem 0;
	padding: 10px 0;
	box-sizing: border-box;
}

.ng-carousel-track-container {
	position: relative;
	overflow: hidden;
	width: 100%;
	border-radius: var(--ng-radius);
	outline: none;
}

.ng-carousel-track-container:focus-visible {
	box-shadow: 0 0 0 3px rgba(216, 54, 39, 0.4);
}

.ng-carousel-track {
	display: flex;
	transition: transform 0.45s cubic-bezier(0.25, 1, 0.5, 1);
	will-change: transform;
}

.ng-carousel-slide {
	flex: 0 0 100%;
	max-width: 100%;
	padding: 12px;
	box-sizing: border-box;
}

/* Responsive Slide Counts */
@media (min-width: 640px) {
	.ng-carousel-wrapper[data-slides-per-view="2"] .ng-carousel-slide,
	.ng-carousel-wrapper[data-slides-per-view="3"] .ng-carousel-slide,
	.ng-carousel-wrapper[data-slides-per-view="4"] .ng-carousel-slide,
	.ng-carousel-wrapper[data-slides-per-view="5"] .ng-carousel-slide {
		flex: 0 0 50%;
		max-width: 50%;
	}
}

@media (min-width: 1024px) {
	.ng-carousel-wrapper[data-slides-per-view="3"] .ng-carousel-slide {
		flex: 0 0 33.333333%;
		max-width: 33.333333%;
	}

	.ng-carousel-wrapper[data-slides-per-view="4"] .ng-carousel-slide,
	.ng-carousel-wrapper[data-slides-per-view="5"] .ng-carousel-slide {
		flex: 0 0 25%;
		max-width: 25%;
	}
}

@media (min-width: 1280px) {
	.ng-carousel-wrapper[data-slides-per-view="5"] .ng-carousel-slide {
		flex: 0 0 20%;
		max-width: 20%;
	}
}

/* ==========================================================================
   Module 1: Business / Brand Cards
   ========================================================================== */

.ng-business-card {
	position: relative;
	display: flex;
	flex-direction: column;
	height: 100%;
	background: var(--ng-card-bg);
	border: 1px solid var(--ng-card-border);
	border-radius: var(--ng-radius);
	overflow: hidden;
	box-shadow: var(--ng-shadow);
	transition: var(--ng-transition);
}

.ng-business-card:hover {
	transform: translateY(-6px);
	box-shadow: var(--ng-shadow-hover);
	border-color: var(--ng-card-accent, var(--ng-primary));
}

.ng-badge-featured {
	position: absolute;
	top: 14px;
	right: 14px;
	z-index: 2;
	background: var(--ng-card-accent, var(--ng-primary));
	color: #ffffff;
	font-size: 11px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.5px;
	padding: 4px 10px;
	border-radius: 20px;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.ng-card-media {
	position: relative;
	width: 100%;
	height: 200px;
	overflow: hidden;
	background: #f8fafc;
	display: flex;
	align-items: center;
	justify-content: center;
}

.ng-card-media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.5s ease;
}

.ng-business-card:hover .ng-card-media img {
	transform: scale(1.05);
}

.ng-placeholder-media {
	font-size: 40px;
	color: #cbd5e1;
}

.ng-card-body {
	display: flex;
	flex-direction: column;
	flex-grow: 1;
	padding: 20px;
}

.ng-card-category {
	display: inline-block;
	font-size: 12px;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.8px;
	color: var(--ng-card-accent, var(--ng-primary));
	margin-bottom: 6px;
}

.ng-card-title {
	font-size: 20px;
	font-weight: 700;
	color: var(--ng-text-primary);
	margin: 0 0 4px 0;
	line-height: 1.3;
}

.ng-card-tagline {
	font-size: 13px;
	font-weight: 500;
	color: var(--ng-text-secondary);
	margin: 0 0 12px 0;
	font-style: italic;
}

.ng-card-excerpt {
	font-size: 14px;
	line-height: 1.6;
	color: #475569;
	margin-bottom: 20px;
	flex-grow: 1;
}

.ng-card-footer {
	margin-top: auto;
}

.ng-btn-link {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 10px 18px;
	color: #ffffff !important;
	text-decoration: none !important;
	font-size: 13px;
	font-weight: 600;
	border-radius: 6px;
	transition: var(--ng-transition);
}

.ng-btn-link:hover {
	opacity: 0.9;
	transform: translateX(2px);
}

/* ==========================================================================
   Module 2: Story Timeline Carousel
   ========================================================================== */

.ng-timeline-wrapper {
	position: relative;
	padding-top: 50px;
}

.ng-timeline-bar {
	position: absolute;
	top: 70px;
	left: 0;
	right: 0;
	height: 3px;
	background: #e2e8f0;
	z-index: 1;
}

.ng-timeline-card {
	position: relative;
	padding-top: 30px;
}

.ng-timeline-node {
	position: absolute;
	top: -46px;
	left: 50%;
	transform: translateX(-50%);
	z-index: 3;
	display: flex;
	flex-direction: column;
	align-items: center;
}

.ng-node-dot {
	width: 16px;
	height: 16px;
	border-radius: 50%;
	background: #ffffff;
	border: 4px solid var(--ng-primary);
	box-shadow: 0 0 0 3px rgba(216, 54, 39, 0.2);
	transition: var(--ng-transition);
}

.ng-carousel-slide:hover .ng-node-dot {
	background: var(--ng-primary);
	transform: scale(1.2);
}

.ng-node-year {
	margin-top: 6px;
	font-size: 13px;
	font-weight: 700;
	color: var(--ng-primary);
	background: #ffffff;
	padding: 2px 8px;
	border-radius: 10px;
	border: 1px solid var(--ng-primary);
}

.ng-timeline-card .ng-card-content {
	background: var(--ng-card-bg);
	border: 1px solid var(--ng-card-border);
	border-radius: var(--ng-radius);
	padding: 20px;
	box-shadow: var(--ng-shadow);
	transition: var(--ng-transition);
	height: 100%;
	box-sizing: border-box;
}

.ng-timeline-card:hover .ng-card-content {
	transform: translateY(-4px);
	box-shadow: var(--ng-shadow-hover);
}

.ng-milestone-highlight .ng-card-content {
	border-color: var(--ng-primary);
	background: linear-gradient(180deg, #ffffff 0%, #fffcf5 100%);
}

.ng-badge-milestone {
	display: inline-block;
	background: #fef3c7;
	color: #92400e;
	font-size: 11px;
	font-weight: 700;
	padding: 3px 8px;
	border-radius: 4px;
	margin-bottom: 10px;
}

.ng-timeline-era {
	font-size: 11px;
	text-transform: uppercase;
	letter-spacing: 0.8px;
	color: var(--ng-text-secondary);
	display: block;
	margin-bottom: 4px;
}

/* ==========================================================================
   Navigation Controls (Arrows & Pagination)
   ========================================================================== */

.ng-carousel-arrow {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	z-index: 10;
	width: 44px;
	height: 44px;
	border-radius: 50%;
	background: #ffffff;
	border: 1px solid var(--ng-card-border);
	color: var(--ng-text-primary);
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
	transition: var(--ng-transition);
}

.ng-carousel-arrow:hover {
	background: var(--ink);
	color: #ffffff;
	border-color: var(--ng-ink);
}

.ng-carousel-arrow:focus-visible {
	outline: 2px solid var(--ng-primary);
	outline-offset: 2px;
}

.ng-carousel-arrow.ng-prev { left: -16px; }
.ng-carousel-arrow.ng-next { right: -16px; }

@media (max-width: 768px) {
	.ng-carousel-arrow.ng-prev { left: 4px; }
	.ng-carousel-arrow.ng-next { right: 4px; }
}

.ng-carousel-pagination {
	display: none !important;
}

.ng-dot {
	width: 10px;
	height: 10px;
	border-radius: 50%;
	background: #cbd5e1;
	border: none;
	padding: 0;
	cursor: pointer;
	transition: var(--ng-transition);
}

.ng-dot.active {
	background: var(--ng-primary);
	width: 24px;
	border-radius: 12px;
}

/* ==========================================================================
   Module 3: Editorial Story Layout (Heritage Red Serif - Uploaded UI Style)
   ========================================================================== */

.ng-carousel-header-bar {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-bottom: 2rem;
	padding: 0 4px;
}

.ng-carousel-section-title {
	font: 500 clamp(3.2rem, 5.4vw, 6.5rem) / .9 "DM Sans", sans-serif;
	text-transform: uppercase;
	letter-spacing: -0.5px;
	color: #1a1a1a;
	margin: 0;
}

.ng-carousel-header-nav {
	display: flex;
	align-items: center;
	gap: 10px;
}

.ng-carousel-header-nav .ng-carousel-arrow {
	position: static;
	transform: none;
	width: 44px;
	height: 44px;
	border-radius: 50%;
	border: 1px solid #1a1a1a;
	background: transparent;
	color: #1a1a1a;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	box-shadow: none;
	transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.ng-carousel-header-nav .ng-carousel-arrow:hover {
	background: #1a1a1a;
	color: #ffffff;
	border-color: #1a1a1a;
}

.ng-business-card-editorial {
	position: relative;
	display: flex;
	flex-direction: column;
	justify-content: flex-end;
	height: 520px;
	border-radius: 4px;
	overflow: hidden;
	background: #0f172a;
	border: none;
	box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
	transition: transform 0.4s cubic-bezier(0.25, 1, 0.5, 1), box-shadow 0.4s cubic-bezier(0.25, 1, 0.5, 1);
}

.ng-business-card-editorial:hover {
	transform: translateY(-4px);
	box-shadow: 0 20px 40px rgba(0, 0, 0, 0.16);
}

.ng-card-media-bg {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	z-index: 1;
	overflow: hidden;
}

.ng-card-media-bg img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.6s cubic-bezier(0.25, 1, 0.5, 1);
}

.ng-business-card-editorial:hover .ng-card-media-bg img {
	transform: scale(1.05);
}

.ng-card-overlay {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: linear-gradient(180deg, rgba(0, 0, 0, 0.05) 0%, rgba(0, 0, 0, 0.35) 45%, rgba(0, 0, 0, 0.88) 100%);
	z-index: 2;
}

.ng-card-editorial-content {
	position: relative;
	z-index: 3;
	padding: 28px 24px;
	color: #ffffff;
	display: flex;
	flex-direction: column;
	align-items: flex-start;
}

.ng-editorial-tagline {
	font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
	font-size: 11px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 1.5px;
	color: rgba(255, 255, 255, 0.85);
	margin-bottom: 8px;
}

.ng-business-editorial-title {
	font-family: 'Playfair Display', 'DM Serif Display', Georgia, serif;
	font-size: clamp(2rem, 3vw, 2.75rem);
	font-weight: 700;
	color: #ffffff;
	margin: 0 0 16px 0;
	line-height: 1.1;
	letter-spacing: -0.5px;
	text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.ng-editorial-divider {
	width: 100%;
	height: 1px;
	background: rgba(255, 255, 255, 0.3);
	margin: 0 0 16px 0;
}

.ng-editorial-link {
	display: flex;
	align-items: center;
	justify-content: space-between;
	width: 100%;
	color: #ffffff !important;
	text-decoration: none !important;
	font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 1.2px;
	text-transform: uppercase;
	transition: opacity 0.25s ease;
}

.ng-editorial-link:hover {
	opacity: 0.85;
}

.ng-editorial-arrow {
	transition: transform 0.3s cubic-bezier(0.25, 1, 0.5, 1);
	flex-shrink: 0;
}

.ng-editorial-link:hover .ng-editorial-arrow,
.ng-business-card-editorial:hover .ng-editorial-arrow {
	transform: translate(3px, -3px);
}

.ng-timeline-wrapper.style-editorial {
	border-radius: 16px;
	box-sizing: border-box;
}

.ng-timeline-wrapper.style-editorial .ng-timeline-top-nav {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 14px;
	margin-bottom: 2.5rem;
}

.ng-timeline-wrapper.style-editorial .ng-timeline-top-nav .ng-carousel-arrow {
	position: static;
	transform: none;
	width: 54px;
	height: 54px;
	border: 1px solid var(--ink, #1a1a1a);
	border-radius: 50%;
	background: transparent;
	color: var(--ink, #1a1a1a);
	font-size: 1.25rem;
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	box-shadow: none;
	transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.ng-timeline-wrapper.style-editorial .ng-timeline-top-nav .ng-carousel-arrow:hover {
	background: var(--ng-red);
	color: #ffffff;
	border-color: var(--ng-red);
	transform: scale(1.06);
}

.ng-editorial-card {
	display: flex;
	flex-direction: column;
	padding: 0 10px;
	background: transparent;
	border: none;
	box-shadow: none;
	text-align: left;
}

.ng-editorial-year {
	font-family: 'DM Serif Display', serif;
	font-size: clamp(3rem, 4vw, 4.8rem);
	font-weight: 400;
	color: var(--ng-red);
	margin: 0 0 1rem 0;
	line-height: 1;
	letter-spacing: -1.5px;
}

.ng-editorial-card .ng-editorial-title {
	font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
	font-size: 1.125rem;
	font-weight: 700;
	letter-spacing: 0;
	color: #1a1a1a;
	margin: 1.2rem 0 0.8rem;
	line-height: 1.35;
}

.ng-editorial-desc {
	font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
	font-size: 0.925rem;
	font-weight: 400;
	color: #4a4a4a;
	line-height: 1.55;
}

.ng-timeline-wrapper.style-editorial .ng-carousel-track-container {
	border-radius: 0;
	overflow: hidden;
}

.ng-timeline-wrapper.style-editorial .ng-carousel-pagination .ng-dot {
	background: #d6cfbe;
}

.ng-timeline-wrapper.style-editorial .ng-carousel-pagination .ng-dot.active {
	background: #d9381e;
}

.ng-empty-notice {
	padding: 20px;
	text-align: center;
	color: var(--ng-text-secondary);
	background: #f8fafc;
	border: 1px dashed var(--ng-card-border);
	border-radius: var(--ng-radius);
}
