/**
 * 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);
	text-decoration: none !important;
	color: inherit;
}

.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,
.ng-business-card:hover .ng-btn-link,
.ng-business-card-editorial:hover .ng-btn-link {
	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;
	flex-wrap: wrap;
	gap: 12px 20px;
	margin-bottom: 2rem;
	padding: 0 4px;
}

.ng-carousel-section-title {
	font-family: "DM Sans", sans-serif;
	font-size: clamp(2rem, 5.4vw, 6.5rem);
	font-weight: 500;
	line-height: 0.95;
	text-transform: uppercase;
	letter-spacing: -0.5px;
	color: #1a1a1a;
	margin: 0;
	word-break: break-word;
}

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

.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);
	text-decoration: none !important;
	color: inherit;
}

.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);
}

/* Mobile Responsiveness for Carousel Header Bar & Timeline Items */
@media (max-width: 768px) {
	.ng-timeline-wrapper .ng-editorial-card {
		text-align: center;
		align-items: center;
	}

	.ng-timeline-wrapper .ng-editorial-year,
	.ng-timeline-wrapper .ng-editorial-title,
	.ng-timeline-wrapper .ng-editorial-desc {
		text-align: center;
	}

	.ng-timeline-wrapper .ng-timeline-card .ng-card-content {
		text-align: center;
	}

	.ng-timeline-wrapper .ng-timeline-card .ng-card-header,
	.ng-timeline-wrapper .ng-timeline-card .ng-card-body,
	.ng-timeline-wrapper .ng-timeline-card .ng-card-title,
	.ng-timeline-wrapper .ng-timeline-card .ng-card-subtitle {
		text-align: center;
	}
}

@media (max-width: 640px) {
	.ng-carousel-header-bar {
		margin-bottom: 1.25rem;
		gap: 10px;
	}

	.ng-carousel-section-title {
		font-size: clamp(1.5rem, 7.5vw, 2.4rem);
		line-height: 1.05;
	}

	.ng-carousel-header-nav .ng-carousel-arrow {
		width: 38px;
		height: 38px;
	}
}

/* ==========================================================================
   Module 3: Interactive PDF Book Flipbook & Menu Grid
   ========================================================================== */

/* Single Page Container */
.ng-single-menu-page-container {
	width: 100%;
	padding: 2rem 1rem 4rem;
	background: #f8fafc;
	min-height: 80vh;
	box-sizing: border-box;
}

.ng-menu-page-wrapper {
	max-width: 1280px;
	margin: 0 auto;
}

.ng-menu-top-nav {
	display: flex;
	align-items: center;
	gap: 10px;
	margin-bottom: 1.5rem;
	font-size: 14px;
	font-weight: 500;
	color: #64748b;
}

.ng-menu-top-nav a.ng-back-btn {
	color: var(--ng-primary);
	text-decoration: none;
	font-weight: 600;
	transition: var(--ng-transition);
}

.ng-menu-top-nav a.ng-back-btn:hover {
	color: var(--ng-primary-hover);
	text-decoration: underline;
}

.ng-menu-top-nav .ng-nav-divider {
	color: #cbd5e1;
}

.ng-menu-top-nav .ng-current-title {
	color: #1e293b;
	font-weight: 600;
}

/* Flipbook Wrapper & Header */
.ng-menu-flipbook-wrapper {
	width: 100%;
	margin: 1.5rem 0 3rem;
	box-sizing: border-box;
}

.ng-menu-header-bar {
	margin-bottom: 1.25rem;
	text-align: center;
}

.ng-menu-header-title {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 12px;
	flex-wrap: wrap;
}

.ng-menu-header-title h2 {
	margin: 0;
	font-family: 'Playfair Display', Georgia, serif;
	font-size: clamp(1.8rem, 4vw, 2.6rem);
	font-weight: 700;
	color: #0f172a;
}

.ng-menu-badge {
	display: inline-block;
	background: var(--ng-primary);
	color: #ffffff;
	font-size: 12px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.5px;
	padding: 4px 12px;
	border-radius: 20px;
}

.ng-menu-subtitle {
	margin: 8px 0 0;
	font-size: 15px;
	color: #64748b;
}

/* Main PDF Container */
.ng-pdf-container {
	position: relative;
	width: 100%;
	background: #0f172a;
	border-radius: 16px;
	box-shadow: 0 20px 50px rgba(0, 0, 0, 0.25);
	overflow: hidden;
	display: flex;
	flex-direction: column;
	box-sizing: border-box;
	user-select: none;
}

.ng-pdf-container:fullscreen,
.ng-pdf-container:-webkit-full-screen,
.ng-pdf-container:-moz-full-screen,
.ng-pdf-container.ng-is-fullscreen,
.ng-menu-flipbook-wrapper.ng-is-fullscreen .ng-pdf-container {
	position: fixed !important;
	top: 0 !important;
	left: 0 !important;
	right: 0 !important;
	bottom: 0 !important;
	width: 100vw !important;
	height: 100vh !important;
	max-width: 100vw !important;
	max-height: 100vh !important;
	z-index: 999999 !important;
	border-radius: 0 !important;
	display: flex !important;
	flex-direction: column !important;
	background: #0f172a !important;
	margin: 0 !important;
	padding: 0 !important;
}

.ng-pdf-container:fullscreen .ng-book-stage,
.ng-pdf-container:-webkit-full-screen .ng-book-stage,
.ng-pdf-container.ng-is-fullscreen .ng-book-stage {
	height: calc(100vh - 60px) !important;
	flex: 1 1 auto !important;
	padding: 20px !important;
}

/* Floating Interactive Toolbar */
.ng-flipbook-toolbar {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 12px 20px;
	background: rgba(15, 23, 42, 0.9);
	backdrop-filter: blur(10px);
	border-bottom: 1px solid rgba(255, 255, 255, 0.1);
	z-index: 10;
	color: #ffffff;
	gap: 10px;
	flex-wrap: wrap;
}

.ng-toolbar-group {
	display: flex;
	align-items: center;
	gap: 8px;
}

.ng-tb-btn {
	background: rgba(255, 255, 255, 0.1);
	border: 1px solid rgba(255, 255, 255, 0.15);
	color: #ffffff;
	width: 36px;
	height: 36px;
	border-radius: 8px;
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	transition: var(--ng-transition);
	text-decoration: none;
}

.ng-tb-btn:hover {
	background: var(--ng-primary);
	border-color: var(--ng-primary);
	color: #ffffff;
	transform: translateY(-1px);
}

.ng-tb-btn .dashicons {
	font-size: 18px;
	width: 18px;
	height: 18px;
	line-height: 18px;
}

.ng-tb-page-counter {
	font-size: 14px;
	font-weight: 600;
	padding: 0 10px;
	letter-spacing: 0.5px;
	color: #e2e8f0;
}

.ng-tb-zoom-level {
	font-size: 13px;
	font-weight: 600;
	color: #94a3b8;
	min-width: 48px;
	text-align: center;
}

/* Loader Spinner */
.ng-pdf-loader {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: #0f172a;
	z-index: 20;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	color: #ffffff;
	gap: 15px;
}

.ng-spinner {
	width: 44px;
	height: 44px;
	border: 4px solid rgba(255, 255, 255, 0.15);
	border-top-color: var(--ng-primary);
	border-radius: 50%;
	animation: ng-spin 0.9s infinite linear;
}

@keyframes ng-spin {
	to { transform: rotate(360deg); }
}

/* 3D Book Stage */
.ng-book-stage {
	position: relative;
	flex-grow: 1;
	width: 100%;
	min-height: 520px;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 35px 20px;
	box-sizing: border-box;
	overflow: hidden;
	perspective: 2500px;
	-webkit-perspective: 2500px;
	opacity: 0;
	transition: opacity 0.4s ease;
}

.ng-book-stage.ng-loaded {
	opacity: 1;
}

.ng-flip-book {
	position: relative;
	margin: 0 auto;
	transform-style: preserve-3d;
	-webkit-transform-style: preserve-3d;
	box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}

.st-page-flip-container {
	position: relative !important;
	user-select: none !important;
	transform-style: preserve-3d !important;
	-webkit-transform-style: preserve-3d !important;
}

.stf__wrapper {
	position: absolute !important;
	overflow: hidden !important;
	transform-origin: 0 0 !important;
	transform-style: preserve-3d !important;
	-webkit-transform-style: preserve-3d !important;
}

.stf__item {
	position: absolute !important;
	top: 0 !important;
	left: 0 !important;
	background-color: #ffffff !important;
	backface-visibility: hidden !important;
	-webkit-backface-visibility: hidden !important;
	box-sizing: border-box !important;
}

.stf__item.--soft {
	box-shadow: 0 12px 35px rgba(0, 0, 0, 0.25) !important;
	will-change: transform, clip-path;
}

.stf__item.--hard {
	backface-visibility: hidden !important;
	-webkit-backface-visibility: hidden !important;
	transform-style: preserve-3d !important;
	-webkit-transform-style: preserve-3d !important;
}

.ng-page-item {
	background: #ffffff;
	overflow: hidden;
	box-shadow: inset 0 0 30px rgba(0, 0, 0, 0.06);
	cursor: grab;
	backface-visibility: hidden;
	-webkit-backface-visibility: hidden;
}

.ng-page-item:active {
	cursor: grabbing;
}

.ng-page-canvas {
	display: block !important;
	width: 100% !important;
	height: 100% !important;
	object-fit: contain;
	backface-visibility: hidden;
	-webkit-backface-visibility: hidden;
}

.ng-book-hint {
	text-align: center;
	padding: 8px 12px;
	font-size: 12px;
	color: #64748b;
	background: rgba(15, 23, 42, 0.6);
	letter-spacing: 0.3px;
}

/* Menu Grid Cards */
.ng-menu-grid {
	display: grid;
	gap: 30px;
	margin: 2rem 0;
}

.ng-grid-cols-1 { grid-template-columns: repeat(1, 1fr); }
.ng-grid-cols-2 { grid-template-columns: repeat(2, 1fr); }
.ng-grid-cols-3 { grid-template-columns: repeat(3, 1fr); }
.ng-grid-cols-4 { grid-template-columns: repeat(4, 1fr); }

@media (max-width: 992px) {
	.ng-grid-cols-3, .ng-grid-cols-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
	.ng-menu-grid { grid-template-columns: repeat(1, 1fr); }
}

.ng-menu-card {
	background: #ffffff;
	border-radius: var(--ng-radius);
	border: 1px solid var(--ng-card-border);
	box-shadow: var(--ng-shadow);
	overflow: hidden;
	transition: var(--ng-transition);
	display: flex;
	flex-direction: column;
}

.ng-menu-card:hover {
	transform: translateY(-6px);
	box-shadow: var(--ng-shadow-hover);
}

.ng-card-cover {
	position: relative;
	width: 100%;
	height: 240px;
	background: #0f172a;
	overflow: hidden;
}

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

.ng-menu-card:hover .ng-card-cover img {
	transform: scale(1.06);
}

.ng-cover-placeholder {
	width: 100%;
	height: 100%;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	color: #94a3b8;
	gap: 10px;
}

.ng-cover-placeholder .dashicons {
	font-size: 48px;
	width: 48px;
	height: 48px;
	color: var(--ng-primary);
}

.ng-card-badge {
	position: absolute;
	top: 15px;
	right: 15px;
	background: var(--ng-primary);
	color: #ffffff;
	font-size: 11px;
	font-weight: 700;
	text-transform: uppercase;
	padding: 4px 10px;
	border-radius: 12px;
	box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}

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

.ng-card-title {
	margin: 0 0 8px;
	font-family: 'Playfair Display', Georgia, serif;
	font-size: 1.35rem;
	font-weight: 700;
}

.ng-card-title a {
	color: #0f172a;
	text-decoration: none;
	transition: var(--ng-transition);
}

.ng-card-title a:hover {
	color: var(--ng-primary);
}

.ng-card-desc {
	margin: 0 0 20px;
	font-size: 14px;
	color: #64748b;
	line-height: 1.5;
	flex-grow: 1;
}

.ng-card-actions {
	display: flex;
	gap: 10px;
	align-items: center;
}

.ng-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 6px;
	padding: 10px 16px;
	border-radius: 8px;
	font-size: 14px;
	font-weight: 600;
	text-decoration: none;
	transition: var(--ng-transition);
	cursor: pointer;
}

.ng-btn-primary {
	background: var(--ng-primary);
	color: #ffffff;
	flex-grow: 1;
}

.ng-btn-primary:hover {
	background: var(--ng-primary-hover);
	color: #ffffff;
}

.ng-btn-secondary {
	background: #f1f5f9;
	color: #334155;
	padding: 10px 12px;
}

.ng-btn-secondary:hover {
	background: #e2e8f0;
	color: #0f172a;
}


