/* ----------------------------------------------------------------
	Custom CSS

	Add all your Custom Styled CSS here for New Styles or
	Overwriting Default Theme Styles for Better Handling Updates
-----------------------------------------------------------------*/
.is-expanded-menu .full-header #logo {
	border-right: none;
}
.is-expanded-menu .full-header .primary-menu .menu-container {
	border-right: none;
}
.menu-item .active {
	color:var(--cnvs-primary-menu-hover-color) !important;
}
.menu-link {
	/* font-weight: normal !important; */
    --cnvs-primary-menu-padding-y: 14px;
    --cnvs-primary-menu-padding-x: 15px;
}
.vs-custom-menu {
	background: rgba(var(--ipo-brand-primary-rgb), 0.05);
	border-radius: 10px;
}
.is-expanded-menu .menu-link {
	--cnvs-primary-menu-padding-y: calc(calc(var(--cnvs-sticky-header-height) - 55px) * 0.5);
}


/* IPO Card */

/* Wrapper card: inherits Bootstrap .card, keep minimal overrides */
.ipo-card {
	border: 1px solid rgba(15, 23, 42, 0.06);
	background: linear-gradient(180deg, #fff, rgba(var(--ipo-brand-primary-rgb), 0.04));
	transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.ipo-card:hover {
	transform: translateY(-4px);
	box-shadow: 0 15px 30px -20px rgba(var(--ipo-brand-primary-rgb), 0.4) !important;
}

/* Inner container */
.ipo-card-inner {
	overflow: hidden;
	border: none;
	height: 100%;
	display: flex;
	flex-direction: column;
	background: transparent;
	border-radius: inherit;
}

/* Header */
.ipo-card-header {
	position: relative;
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	align-items: flex-start;
	padding: 20px 10px;
	border-bottom: 1px solid rgba(15, 23, 42, 0.06);
}

.card-header-top {
	display: flex;
	flex-direction: row;
	justify-content: space-between;
	align-items: flex-start;
	width: 100%;
}

.logo-container {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
}

.company-logo {
	width: 50px;
	height: 50px;
	object-fit: contain;
	border-radius: 12px;
	background: #f1f3f5;
	padding: 5px;
}

.company-name {
	margin: 0;
	font-size: 18px;
	font-weight: 700;
	color: #333;
}

.badge-container {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

.badge {
	padding: 4px 8px;
	border-radius: 5px;
	font-size: 12px;
	font-weight: 500;
	display: inline-flex;
	align-items: center;
	gap: 4px;
	line-height: 1;
	max-width: max-content;
	min-width: max-content;
}

.live-status-badge {
	background-color: #fff4f4;
	color: red;
}
.justify-end {
    justify-content: flex-end;
}

/* Body */
.ipo-card-content {
	padding: 1.85rem;
	flex: 1 1 auto;
}

.ipo-card--modern .ipo-card-inner {
	border: 1px solid rgba(15, 23, 42, 0.08);
	border-radius: 18px;
	background: #fff;
	box-shadow: 0 25px 40px -35px rgba(15, 23, 42, 0.45);
}

.ipo-card-tagline {
	font-size: 0.85rem;
	color: #667085;
}

.ipo-details {
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.detail-item {
	display: flex;
	justify-content: space-between;
	align-items: center;
	font-size: 14px;
}

.label {
	font-size: 14px;
	color: #6c757d;
}

.value {
	font-size: 14px;
	color: #333;
	font-weight: 600;
}

/* Footer / Actions */
.broker-actions {
	display: flex;
	justify-content: center;
	gap: 12px;
	padding: 0 1.85rem 1.85rem;
}

.ipo-card-footer {
	padding: 1.5rem 2rem 2rem;
}

.ipo-card-meta {
	display: flex;
	flex-direction: column;
	gap: 0.35rem;
	font-size: 0.85rem;
	color: #6b7280;
	margin-bottom: 1rem;
}

.ipo-card-meta i {
	color: var(--ipo-brand-primary);
	margin-right: 0.35rem;
}

.ipo-card-kpis {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
	gap: 0.75rem;
}

.ipo-kpi {
	border: 1px solid rgba(15, 23, 42, 0.08);
	border-radius: 0.85rem;
	padding: 0.75rem 0.9rem;
	background: #f8fafc;
}

.ipo-kpi--accent {
	background: rgba(var(--ipo-brand-primary-rgb), 0.08);
	border-color: rgba(var(--ipo-brand-primary-rgb), 0.2);
}

.ipo-kpi__label {
	font-size: 0.75rem;
	text-transform: uppercase;
	letter-spacing: 0.06em;
	color: #94a3b8;
}

.ipo-kpi__value {
	font-weight: 600;
	color: #0f172a;
}

.broker-actions button {
	flex: 1 1 auto;
	padding: 10px;
	font-size: 14px;
	font-weight: 500;
}

.home-primary-button {
	border: 1px solid #043873;
	color: #043873;
	background: #fff;
}

.home-primary-button:hover {
	color: #fff;
	background: #043873;
	border-color: #043873;
}

.home-primary-button_1 {
	background-color: #f0f0f0 !important;
	color: #000;
}

.home-primary-button_2 {
	background-color: #043873 !important;
	border: 1px solid #043873;
	color: #fff;
}

.home-primary-button_2:hover {
	background-color: #fff !important;
	color: #043873;
}

/* Badge color variants (for IPO statuses) */
.badge--ipotype {
	background-color: rgb(29, 83, 162);
	color: #fff;
}

.badge--listed {
	background-color: rgb(232, 250, 232);
	color: rgb(0, 128, 0);
}

.badge--live {
	background-color: rgb(250, 218, 218);
	color: rgb(255, 0, 0);
}

.badge--allotment-today {
	background-color: rgb(23, 162, 184);
	color: #fff;
}

.badge--allotted {
	background-color: rgb(253, 126, 20);
	color: #fff;
}

.badge--upcoming {
	background-color: rgb(235, 238, 247);
	color: rgb(0, 0, 255);
}

/* Small dot helpers inside badges */
.dot { display: inline-block; }
.dot-white { background: #fff; }
.dot-green { background: rgb(0, 128, 0); }
.dot-red { background: rgb(255, 0, 0); }
.dot-blue { background: rgb(0, 0, 255); }

.w-5 {
	width: 5px;
}
.h-5 {
	height: 5px;
}
.rounded-full {
	border-radius: 50%;
}

/* Responsive (Bootstrap-friendly breakpoints) */
@media (max-width: 1200px) {
	/* no-op: reserved for xl down tweaks if needed */
}

@media (max-width: 992px) {
	.company-name {
		padding-right: 5px;
	}
}

@media (max-width: 768px) {
	.ipo-card-header {
		padding: 15px;
	}
	.ipo-card-content,
	.broker-actions {
		padding: 15px;
	}
	.company-name {
		font-size: 16px;
	}
	.card-header-top .badge-container {
		flex-direction: unset;
	}
}

@media (max-width: 576px) {
	.card-header-top {
		flex-direction: column;
	}
	.card-header-top .badge-container {
		justify-content: flex-end;
		width: 100%;
		order: 1;
		right: 0;
	}
}

@media (min-width: 577px) and (max-width: 768px) {
	.company-name {
		padding-right: 30px;
	}
}

:root {
	--ipo-brand-primary: var(--cnvs-themecolor, #32871f);
	--ipo-brand-primary-rgb: 50, 135, 31;
	--ipo-brand-primary-light: #5ec94d;
	--ipo-brand-primary-dark: #1f5d13;
	--ipo-brand-primary-soft: #f4fbf1;
}

/* IPO Detail Lists */
.ipo-detail-list {
	list-style: none;
	margin: 0;
	padding-left: 0;
}

.ipo-detail-list > li {
	position: relative;
	padding-left: 1.75rem;
	margin-bottom: 0.65rem;
	line-height: 1.5;
	color: #1f2933;
}

.ipo-detail-list > li:last-child {
	margin-bottom: 0;
}

.ipo-detail-list > li::before {
	content: '';
	position: absolute;
	left: 0;
	top: 0.9em;
	transform: translateY(-50%);
	width: 0.5rem;
	height: 0.5rem;
	border-radius: 50%;
	background: var(--ipo-brand-primary);
	box-shadow: 0 0 0 4px rgba(var(--ipo-brand-primary-rgb), 0.25);
}

.ipo-detail-list--compact > li {
	margin-bottom: 0.4rem;
	padding-left: 1.5rem;
}

.ipo-detail-list--compact > li::before {
	top: 0.8em;
	width: 0.4rem;
	height: 0.4rem;
	box-shadow: 0 0 0 3px rgba(var(--ipo-brand-primary-rgb), 0.2);
}

/* IPO Detail Page */
.ipo-detail-page {
	background-color: #fff;
}

.ipo-detail-wrap {
	background: #fff;
	padding-bottom: 5rem !important;
}

.ipo-hero-grid {
	margin-bottom: 0 !important;
}

.ipo-hero-card {
	border: 1px solid rgba(15, 23, 42, 0.08);
	border-radius: 1rem;
	padding: 1.25rem 1.5rem;
	background: linear-gradient(135deg, #ffffff, rgba(var(--ipo-brand-primary-rgb), 0.07));
	box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.6);
}

.ipo-hero-card__label {
	font-size: 0.78rem;
	text-transform: uppercase;
	letter-spacing: 0.08em;
	color: #94a3b8;
}

.ipo-hero-card__value {
	font-size: 1.85rem;
	font-weight: 700;
	color: var(--ipo-brand-primary-dark);
}

.ipo-hero-card__meta {
	color: #64748b;
	font-size: 0.9rem;
}

.ipo-filter-bar {
	border: 1px solid rgba(15, 23, 42, 0.08);
	border-radius: 999px;
	padding: 0.6rem 0.9rem;
	background: #fff;
	box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.6), 0 15px 30px -25px rgba(15, 23, 42, 0.35);
}

.ipo-filter-tabs {
	overflow-x: auto;
}

.ipo-filter-pill {
	padding: 0.5rem 1.2rem;
	border-radius: 999px;
	border: 1px solid transparent;
	color: #475467;
	background: transparent;
	font-weight: 500;
	text-decoration: none;
	transition: all 0.2s ease;
}

.ipo-filter-pill.is-active,
.ipo-filter-pill:hover {
	color: #fff;
	background: var(--ipo-brand-primary);
	border-color: var(--ipo-brand-primary);
	box-shadow: 0 10px 20px -12px rgba(var(--ipo-brand-primary-rgb), 0.6);
}

.ipo-heading-block h2 {
	font-weight: 700;
	letter-spacing: 0.05em;
	color: var(--ipo-brand-primary-dark);
}

.ipo-heading-block p {
	font-size: 1rem;
	color: rgba(var(--ipo-brand-primary-rgb), 0.85) !important;
}

.ipo-stats-grid .ipo-highlight-card {
	position: relative;
	border-radius: 1rem;
	padding: 1.75rem 1.5rem;
	background: #fff;
	border: 1px solid rgba(15, 23, 42, 0.08);
	box-shadow: 0 20px 55px -40px rgba(30, 41, 59, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.4);
	overflow: hidden;
	color: var(--ipo-brand-primary-dark);
	transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.ipo-stats-grid .ipo-highlight-card::before,
.ipo-stats-grid .ipo-highlight-card::after {
	content: '';
	position: absolute;
	border-radius: 999px;
	filter: blur(0.5px);
	z-index: 0;
}

.ipo-stats-grid .ipo-highlight-card::before {
	width: 160px;
	height: 160px;
	right: -60px;
	top: -60px;
	background: rgba(var(--ipo-brand-primary-rgb), 0.2);
}

.ipo-stats-grid .ipo-highlight-card::after {
	width: 120px;
	height: 120px;
	left: -40px;
	bottom: -50px;
	background: rgba(var(--ipo-brand-primary-rgb), 0.12);
}

.ipo-stats-grid .ipo-highlight-card:hover {
	transform: translateY(-6px);
	box-shadow: 0 25px 45px -30px rgba(3, 20, 9, 0.55);
}

.ipo-stats-grid .ipo-highlight-card p,
.ipo-stats-grid .ipo-highlight-card h4 {
	position: relative;
	z-index: 1;
	color: inherit;
}

.ipo-stats-grid .ipo-highlight-card p {
	font-size: 0.8rem;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: rgba(var(--ipo-brand-primary-rgb), 0.8);
	margin-bottom: 0.5rem;
}

.ipo-stats-grid .ipo-highlight-card h4 {
	font-size: 1.6rem;
	font-weight: 700;
}

.ipo-section-card {
	border-radius: 1.25rem;
	border: 1px solid rgba(15, 23, 42, 0.08);
	box-shadow: 0 35px 70px -55px rgba(15, 23, 42, 0.55), inset 0 1px 0 rgba(255, 255, 255, 0.5);
	backdrop-filter: blur(2px);
	background: #fff;
	position: relative;
	overflow: hidden;
}

.ipo-section-card::before {
	content: '';
	position: absolute;
	inset: 0;
	background: linear-gradient(155deg, rgba(var(--ipo-brand-primary-rgb), 0.05), transparent 60%);
	pointer-events: none;
}

.ipo-section-card h4 {
	font-weight: 700;
	color: var(--ipo-brand-primary-dark);
}

.ipo-section-card .card-body {
	padding: 2.25rem 2rem;
}

.ipo-section-card ul li {
	color: #415147;
}

.ipo-subscription-table th {
	text-transform: uppercase;
	font-size: 0.75rem;
	letter-spacing: 0.08em;
	color: rgba(var(--ipo-brand-primary-rgb), 0.75);
	border-bottom: none;
}

.ipo-subscription-table tbody tr td {
	padding-top: 1rem;
	padding-bottom: 1rem;
}

.ipo-subscription-table tbody tr td.fw-semibold {
	color: #0f172a;
}

.ipo-subscription-table tbody tr td:last-child {
	font-weight: 700;
	color: var(--ipo-brand-primary);
}

.ipo-meta-pill {
	background: rgba(var(--ipo-brand-primary-rgb), 0.12);
	color: var(--ipo-brand-primary-dark);
	border: 1px solid rgba(var(--ipo-brand-primary-rgb), 0.25);
	border-radius: 999px;
	padding: 0.35rem 1rem;
}

@media (max-width: 991.98px) {
	.ipo-section-card .card-body {
		padding: 1.75rem;
	}
}

@media (max-width: 767.98px) {
	.ipo-detail-wrap {
		padding-top: 3rem !important;
	}

	.ipo-stats-grid .col-6 {
		width: 100%;
	}
}

/* Unlisted Shares Page */
.unlisted-toolbar {
	background: linear-gradient(165deg, rgba(var(--ipo-brand-primary-rgb), 0.08), #fff);
	border: 1px solid rgba(var(--ipo-brand-primary-rgb), 0.25);
	box-shadow: 0 25px 55px -50px rgba(15, 23, 42, 0.7);
}

.filter-hero .label {
	font-size: 0.75rem;
	color: rgba(var(--ipo-brand-primary-rgb), 0.9);
}

.filter-hero h3 {
	font-weight: 600;
	color: var(--ipo-brand-primary-dark);
}

.filter-pill,
.sort-pill {
	border: 1px solid rgba(var(--ipo-brand-primary-rgb), 0.25);
	background: rgba(var(--ipo-brand-primary-rgb), 0.08);
	border-radius: 999px;
	padding: 0.35rem 0.95rem;
	font-size: 0.8125rem;
	color: var(--ipo-brand-primary-dark);
	font-weight: 600;
	transition: all 0.2s ease;
	text-decoration: none;
	display: inline-block;
}

.filter-pill.active,
.filter-pill:hover,
.sort-pill.active,
.sort-pill:hover {
	background: var(--ipo-brand-primary);
	color: #fff;
	box-shadow: 0 15px 30px -20px rgba(var(--ipo-brand-primary-rgb), 0.8);
}

.share-card {
	border: 1px solid rgba(15, 23, 42, 0.06);
	background: linear-gradient(180deg, #fff, rgba(var(--ipo-brand-primary-rgb), 0.04));
}

.share-card .card-body {
	padding: 1.85rem;
}

.share-card-head h4 {
	font-weight: 600;
	color: #0f172a;
}

.share-logo {
	width: 54px;
	height: 54px;
	border-radius: 16px;
	/* background: var(--ipo-brand-primary-dark); */
	color: #fff;
	display: flex;
	align-items: center;
	justify-content: center;
	font-weight: 700;
	font-size: 0.85rem;
	text-transform: uppercase;
	box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.35);
}

.status-dot {
	font-size: 0.75rem;
	font-weight: 600;
	padding: 0.35rem 0.85rem;
	border-radius: 999px;
}

.status-available {
	background: rgba(var(--ipo-brand-primary-rgb), 0.15);
	color: var(--ipo-brand-primary-dark);
}

.status-out {
	background: rgba(107, 114, 128, 0.2);
	color: #374151;
}

.status-soon {
	background: rgba(251, 191, 36, 0.2);
	color: #92400e;
}

.filter-highlight {
	display: grid;
	gap: 0.5rem;
	margin-top: 1rem;
}

.filter-chip {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 0.55rem 0.9rem;
	border-radius: 0.85rem;
	background: rgba(255, 255, 255, 0.6);
	border: 1px solid rgba(var(--ipo-brand-primary-rgb), 0.2);
	font-weight: 600;
	color: var(--ipo-brand-primary-dark);
}

.filter-chip .chip-label {
	font-size: 0.75rem;
	text-transform: uppercase;
	letter-spacing: 0.08em;
	color: rgba(var(--ipo-brand-primary-rgb), 0.7);
}

.filter-chip .chip-value {
	font-size: 0.9rem;
}

.filter-contact .btn-theme {
	background: var(--ipo-brand-primary);
	color: #fff;
	border: none;
	border-radius: 999px;
	font-weight: 600;
	transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.filter-contact .btn-theme:hover {
	transform: translateY(-2px);
	box-shadow: 0 15px 30px -18px rgba(var(--ipo-brand-primary-rgb), 0.7);
}

.share-meta p {
	font-size: 0.95rem;
}

.fs-12 {
	font-size: 0.75rem;
}

.fs-13 {
	font-size: 0.8125rem;
}

.ls-1 {
	letter-spacing: 0.08em;
}

/* Header Misc - Hide on small devices, show on large devices */
.header-misc {
	display: none;
}

@media (min-width: 992px) {
	.header-misc {
		display: block;
	}
}