/* ------------------------------------------------
  MVJ - site overrides on top of the Stadum theme
  (assets/css/style.css). Only site-specific
  components live here; base typography, forms,
  buttons and header come from the theme.
------------------------------------------------ */

/* ------------------------
    DataTables
------------------------*/
.dataTable tbody, .dataTable th, .dataTable td {
	border: none !important;
}
table.dataTable thead {
	display: none;
}
.dataTable td, .dataTable th {
	height: 100%;
}
div.dataTables_wrapper {
	font-family: var(--body-font);
}
div.dataTables_wrapper div.dataTables_filter {
	text-align: left;
}
div.dataTables_wrapper div.dataTables_filter label {
	width: 100%;
	margin: 0;
}
div.dataTables_wrapper div.dataTables_filter input {
	margin-left: 0 !important;
}
div.dataTables_wrapper .form-control-sm,
div.dataTables_wrapper .form-select-sm,
div.dataTables_wrapper div.dataTables_length select {
	height: 50px !important;
	width: 100% !important;
	padding: 0 20px;
	font-size: 16px;
	color: var(--title-color);
	background-color: var(--smoke-color2);
	border: 1px solid var(--th-border-color2);
	border-radius: 50px;
}
div.dataTables_wrapper .form-control-sm:focus {
	border-color: var(--th-border-color);
}
.dataTables_length {
	text-align: right;
}
div.dataTables_wrapper div.dataTables_info {
	padding: 10px 0 20px;
	font-size: 16px;
	color: var(--body-color);
}

/* Pagination - theme style */
div.dataTables_wrapper div.dataTables_paginate {
	text-align: center !important;
}
div.dataTables_wrapper div.dataTables_paginate ul.pagination {
	justify-content: center;
	flex-wrap: wrap;
	gap: 8px;
	margin: 0;
}
.dataTables_paginate .page-item {
	margin: 0;
}
.dataTables_paginate .page-item .page-link {
	min-width: 50px;
	height: 50px;
	padding: 0 15px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	font-family: var(--body-font);
	font-size: 16px;
	font-weight: 600;
	color: var(--title-color);
	background-color: var(--smoke-color2);
	border: 1px solid var(--th-border-color2);
	border-radius: 50px !important;
	box-shadow: none;
	transition: all 0.3s ease-in-out;
}
.dataTables_paginate .page-item .page-link:hover,
.dataTables_paginate .page-item.active .page-link {
	color: var(--white-color);
	background-color: var(--title-color2);
	border-color: var(--title-color2);
}
.dataTables_paginate .page-item.disabled .page-link {
	opacity: 0.5;
}

/* ------------------------
    Text truncation
------------------------*/
.trunc-1x {
	display: block;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}
.trunc-2x,
.trunc-3x {
	display: -webkit-box;
	max-width: calc(100% - 5px);
	-webkit-box-orient: vertical;
	overflow: hidden;
	text-overflow: ellipsis;
}
.trunc-2x {
	min-height: 45px;
	-webkit-line-clamp: 2;
}
.trunc-3x {
	min-height: 60px;
	-webkit-line-clamp: 3;
}

/* ------------------------
    Rich text (CMS content)
------------------------*/
.rich-text {
	color: var(--body-color);
	word-break: break-word;
}
.rich-text p {
	margin-bottom: 20px;
}
.rich-text img {
	max-width: 100%;
	height: auto;
	border-radius: 10px;
}
.rich-text a {
	color: var(--theme-color);
}
.rich-text a:hover {
	color: var(--title-color);
}
.rich-text ul {
	list-style: none;
	margin: 0 0 30px 0;
	padding: 0;
}
.rich-text ul li {
	position: relative;
	padding-left: 32px;
	margin-bottom: 12px;
}
.rich-text ul li::before {
	content: "\f00c";
	font-family: var(--icon-font), "Font Awesome 6 Free", "FontAwesome";
	font-weight: 900;
	position: absolute;
	top: 6px;
	left: 0;
	width: 20px;
	height: 20px;
	line-height: 20px;
	font-size: 11px;
	text-align: center;
	color: var(--white-color);
	background-color: var(--theme-color);
	border-radius: 50%;
}
.rich-text ol {
	margin: 0 0 30px 0;
	padding-left: 22px;
}
.rich-text ol li {
	margin-bottom: 12px;
}
.rich-text table {
	width: 100%;
	margin-bottom: 30px;
	border-collapse: collapse;
}
.rich-text table th,
.rich-text table td {
	padding: 12px 18px;
	border: 1px solid var(--th-border-color);
}
.rich-text table th {
	color: var(--white-color);
	background-color: var(--title-color2);
}
.rich-text blockquote {
	margin: 30px 0;
	padding: 30px 40px;
	font-size: 20px;
	color: var(--title-color);
	background-color: var(--smoke-color2);
	border-left: 4px solid var(--theme-color);
	border-radius: 10px;
}

/* ------------------------
    Image gallery (imgal)
------------------------*/
.imgal-modal {
	position: fixed !important;
	z-index: 9999;
}
#imgal-modal-close {
	font-size: 28px !important;
	right: 3rem !important;
}
.imagl-nav {
	position: absolute;
	height: 100vh;
	display: flex;
	align-items: center;
	padding: 20px;
	cursor: pointer;
}
.imagl-nav i {
	font-size: 40px;
}
.imgal-blk {
	position: relative;
	overflow: hidden;
	border-radius: 10px;
	cursor: pointer;
}
.imgal-blk::before {
	content: "\f00e";
	font-family: var(--icon-font), "Font Awesome 6 Free", "FontAwesome";
	font-weight: 900;
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	z-index: 1;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 30px;
	color: var(--white-color);
	background-color: var(--title-color2);
	opacity: 0;
	transition: all 0.4s ease-in-out;
}
.imgal-blk:hover::before {
	opacity: 0.75;
}
.imgal-img {
	transition: transform 0.4s ease-in-out;
}
.imgal-blk:hover .imgal-img {
	transform: scale(1.08);
}
.imgal-img:hover {
	-webkit-filter: opacity(100%) !important;
	filter: opacity(100%) !important;
}

/* ------------------------
    Loader
------------------------*/
#loading {
	position: fixed;
	inset: 0;
	z-index: 9999;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	background: var(--white-color);
}
#loading-center {
	position: relative;
}
@keyframes rotate {
	from { transform: rotate(0deg); }
	to { transform: rotate(360deg); }
}
.spinner {
	position: relative;
	width: 160px;
	height: 160px;
	border-radius: 50%;
	background: conic-gradient(from 0deg, transparent 0%, var(--theme-color) 100%);
	animation: rotate 1s linear infinite;
}
.spinner:after {
	content: '';
	position: absolute;
	inset: 4px;
	border-radius: 50%;
	background: var(--white-color);
}
.loading-img {
	position: absolute;
	top: 0;
	right: 0;
	bottom: 0;
	left: 0;
	width: 50%;
	margin: auto;
	margin-top: 32px;
}

/* ------------------------
    Helper classes
    (kept for existing pages)
------------------------*/
.z-index-0 { position: relative; z-index: 0; }
.z-index-1 { position: relative; z-index: 9; }

.font-w-3 { font-weight: 300; }
.font-w-4 { font-weight: 400; }
.font-w-5 { font-weight: 500; }
.font-w-6 { font-weight: 600; }
.font-w-7 { font-weight: 700; }
.font-w-8 { font-weight: 800; }
.font-w-9 { font-weight: 900; }

.line-h-2 { line-height: 1.6; }
.line-h-3 { line-height: 1.7; }
.line-h-4 { line-height: 1.8; }
.line-h-5 { line-height: 1.9; }

.letter-space-1 { letter-spacing: 5px; }
.letter-space-2 { letter-spacing: 10px; }
.letter-space-3 { letter-spacing: 15px; }

.ic-1x { font-size: 1em; }
.ic-2x { font-size: 2em; }
.ic-3x { font-size: 3em; }
.ic-5x { font-size: 5em; }
.ic-7x { font-size: 7em; }

/* Text colours */
.text-theme { color: var(--theme-color); }
.text-hover { color: var(--title-color2); }
.text-black { color: var(--title-color); }
.text-grey { color: var(--body-color); }
.text-rgba { color: rgba(255, 255, 255, 0.8); }

/* Background colours */
.white-bg { background-color: var(--white-color); }
.dark-bg { background-color: var(--title-color); }
.light-bg { background-color: var(--smoke-color2); }
.theme-bg { background-color: var(--theme-color); }
.transparent-bg { background-color: inherit !important; }

/* Background position & size */
[data-bg-img] {
	background-size: cover;
	background-position: center center;
	background-repeat: no-repeat;
}
.bg-cover { background-size: cover; }
.bg-contain { background-size: contain; }
.bg-pos-l { background-position: left; }
.bg-pos-r { background-position: right; }
.bg-pos-rt { background-position: right top; }
.bg-pos-lt { background-position: left top; }
.bg-pos-rb { background-position: right bottom; }
.bg-pos-lb { background-position: left bottom; }
.bg-repeat { background-repeat: repeat; }

/* ------------------------
    Form messages
------------------------*/
.success,
.error {
	width: 100%;
	padding: 14px 20px;
	margin-bottom: 15px;
	font-size: 15px;
	border-radius: 10px;
}
.success {
	color: var(--success-color);
	background-color: rgba(40, 167, 69, 0.08);
	border: 1px solid rgba(40, 167, 69, 0.3);
}
.error {
	color: var(--error-color);
	background-color: rgba(220, 53, 69, 0.08);
	border: 1px solid rgba(220, 53, 69, 0.3);
}

/* ------------------------
    Map
------------------------*/
.map {
	height: 400px;
	overflow: hidden;
	border-radius: 20px;
}
.map iframe {
	width: 100%;
	height: 100%;
	border: 0;
	filter: grayscale(100%);
	transition: filter 0.4s ease-in-out;
}
.map:hover iframe {
	filter: grayscale(0%);
}

/* ------------------------
    Video button
------------------------*/
.video-btn {
	position: relative;
	display: inline-block;
}
.video-btn-pos {
	position: absolute;
	top: 50%;
	left: 50%;
	width: auto !important;
	z-index: 99;
	transform: translate(-50%, -50%);
}
.video-btn .play-btn {
	position: relative;
	display: inline-block;
	width: 80px;
	height: 80px;
	line-height: 80px;
	text-align: center;
	border-radius: 50%;
	background: var(--white-color);
	cursor: pointer;
}
.video-btn .play-btn::after {
	content: '';
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	border-radius: 50%;
	background: var(--theme-color);
	opacity: 0;
	transform: scale(.6);
	transition: .5s ease;
}
.video-btn .play-btn:hover::after {
	opacity: 1;
	transform: scale(1);
}
.video-btn .play-btn i {
	position: absolute;
	top: 50%;
	left: 50%;
	z-index: 1;
	font-size: 30px;
	color: var(--theme-color);
	transform: translate3d(-50%, -50%, 0);
	transition: .2s ease-out !important;
}
.video-btn .play-btn:hover i {
	color: var(--white-color);
	transform: translate3d(-50%, -50%, 0) scale(.85);
}

/* ------------------------
    Side image
------------------------*/
.image-column {
	position: absolute;
	top: 50%;
	left: 0;
}
.image-column.right {
	left: inherit;
	right: 0;
}

/* ------------------------
    List icon
------------------------*/
.list-icon li {
	display: flex;
	align-items: center;
	margin-bottom: 10px;
	list-style: none;
}
.list-icon li i {
	flex: 0 0 22px;
	width: 22px;
	height: 22px;
	line-height: 22px;
	margin-right: 10px;
	font-size: 12px;
	text-align: center;
	color: var(--white-color);
	background: var(--theme-color);
	border-radius: 50%;
}

/* ------------------------
    Sidebar links
------------------------*/
.sidebar-links {
	margin: 0;
	padding: 0;
}
.sidebar-links li {
	margin-bottom: 12px;
	list-style: none;
}
.sidebar-links li:last-child {
	margin-bottom: 0;
}
.sidebar-links li a {
	position: relative;
	display: block;
	padding: 15px 25px;
	font-family: var(--subtitle-font);
	font-size: 16px;
	font-weight: 600;
	color: var(--title-color);
	background-color: var(--smoke-color2);
	border-radius: 50px;
	transition: all 0.3s ease-in-out;
}
.sidebar-links li.active a,
.sidebar-links li a:hover {
	color: var(--white-color);
	background-color: var(--title-color2);
}

/* ------------------------
    Countdown
------------------------*/
.countdown {
	width: 100%;
}
.countdown > li {
	list-style-type: none;
	text-align: center;
}
.countdown > li span {
	display: inline-block;
	width: 150px;
	height: 150px;
	line-height: 150px;
	font-family: var(--title-font);
	font-size: 60px;
	font-weight: 700;
	color: var(--theme-color);
	background: rgba(255, 255, 255, 0.05);
	border-radius: 50%;
}
.countdown > li p {
	display: block;
	margin: 15px 0 0;
	font-size: 20px;
	font-weight: 500;
	color: var(--white-color);
}

/* ------------------------
    Extra
------------------------*/
.img-border {
	border: 10px solid var(--white-color);
	border-radius: 20px;
}
.shape-1 {
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	width: 100%;
}
.shape-1.bottom {
	top: inherit;
	bottom: -1px;
}

/* ------------------------
    Responsive
------------------------*/
@media (max-width: 991px) {
	.image-column {
		position: relative;
		top: inherit;
		left: 0;
		transform: inherit;
	}
	.image-column-h {
		min-height: 300px;
	}
	.countdown > li span {
		width: 110px;
		height: 110px;
		line-height: 110px;
		font-size: 44px;
	}
	.countdown > li p {
		font-size: 18px;
	}
}
@media (max-width: 767px) {
	.dataTables_length {
		text-align: left;
		margin-top: 10px;
	}
	.countdown > li span {
		width: 80px;
		height: 80px;
		line-height: 80px;
		font-size: 32px;
	}
	.countdown > li p {
		font-size: 16px;
	}
	.rich-text blockquote {
		padding: 20px 25px;
		font-size: 18px;
	}
}
