/*
 * Styles for blocks converted from Elementor / Thim widgets (tools/el2blocks.php).
 * Class names match what the converter writes into each block's className.
 */

/* Elementor responsive visibility (hide_desktop / hide_tablet / hide_mobile) */
@media (min-width: 1025px) {
	.ank-hide-desktop { display: none !important; }
}
@media (min-width: 768px) and (max-width: 1024px) {
	.ank-hide-tablet { display: none !important; }
}
@media (max-width: 767px) {
	.ank-hide-mobile { display: none !important; }
}

/* Converted sections: no default block gap stacking between full-width sections */
.entry-content > .ank-section.alignfull,
.entry-content > .wp-block-cover.alignfull {
	margin-block: 0;
}
.ank-section > .ank-cols,
.wp-block-cover.ank-section .ank-cols {
	margin-block: 0;
}

/* Icon list (Elementor icon-list, all "fa-dot-circle") */
.ank-icon-list {
	list-style: none;
	padding-left: 0;
}
.ank-icon-list li {
	position: relative;
	padding-left: 22px;
	margin-bottom: 5px;
}
.ank-icon-list li::before {
	content: "";
	position: absolute;
	left: 0;
	top: 0.55em;
	width: 11px;
	height: 11px;
	border-radius: 50%;
	border: 3px solid var(--ank-primary);
	box-sizing: border-box;
}

/* Thim heading */
.ank-heading-wrap {
	margin-bottom: 20px;
}
.ank-heading-wrap .ank-heading {
	margin-bottom: 8px;
}
.ank-heading-wrap .ank-subheading {
	margin-top: 0;
	font-size: 13px;
	font-weight: 500;
}
.ank-heading.has-line::after {
	content: "";
	display: block;
	width: 35px;
	height: 1px;
	margin-top: 15px;
	background: currentColor;
}
.ank-heading.has-text-align-center.has-line::after {
	margin-inline: auto;
}

/* Thim icon box */
.ank-icon-box {
	padding: 20px;
}
.ank-icon-box--overlay {
	color: #fff;
}
.ank-icon-box .ank-icon-box__title {
	font-size: 1.5rem;
	font-weight: 600;
	line-height: 1.4;
	margin: 0;
	color: inherit;
}
.ank-icon-box .ank-icon-box__title a {
	color: inherit;
}

/* Thim header info (marquee headings, contact lines) */
.ank-header-info p {
	margin: 0 0 8px;
}
.ank-header-info a {
	color: inherit;
}

/* Elementor "no gap" columns */
.wp-block-columns.ank-no-gap {
	gap: 0;
}

/* Home marquee strip: three coloured boxes with background image, edge to edge */
.marquee-section-hm .ank-cols {
	gap: 0;
}
.marquee-section-hm .ank-col-cover {
	min-height: 440px;
	align-items: flex-start;
	height: 100%;
	padding: 20px 30px;
}
.marquee-section-hm .ank-divider {
	border-color: #fff;
	border-top-width: 2px;
	width: 60%;
	opacity: 1;
}

/* Team members (Thim ekits team) */
.ank-team {
	gap: 20px;
}
.ank-team__card {
	text-align: center;
}
.ank-team .ank-team__img img {
	max-width: 150px;
	border-radius: 50%;
	aspect-ratio: 1;
	object-fit: cover;
	border: 1px dashed #d4d4d4;
	padding: 5px;
}
.ank-team .ank-team__name {
	font-size: 15px;
	font-weight: 600;
	margin: 10px 0 5px;
}
.ank-team .ank-team__position,
.ank-team .ank-team__desc {
	font-size: 13px;
	line-height: 1.6;
	margin: 0 0 6px;
}

/* Sliders (Thim team + course list with slider layout). JS: assets/js/slider.js
   ank-per-N / ank-per-t-N / ank-per-m-N = slides per view on desktop / tablet / mobile. */
.ank-slider { --ank-per: 3; --ank-gap: 20px; }
.ank-per-1 { --ank-per: 1; } .ank-per-2 { --ank-per: 2; } .ank-per-3 { --ank-per: 3; }
.ank-per-4 { --ank-per: 4; } .ank-per-5 { --ank-per: 5; } .ank-per-6 { --ank-per: 6; }
@media (max-width: 1024px) {
	.ank-per-t-1 { --ank-per: 1; } .ank-per-t-2 { --ank-per: 2; } .ank-per-t-3 { --ank-per: 3; } .ank-per-t-4 { --ank-per: 4; }
}
@media (max-width: 767px) {
	.ank-per-m-1 { --ank-per: 1; } .ank-per-m-2 { --ank-per: 2; } .ank-per-m-3 { --ank-per: 3; }
}
.ank-slider__track,
.ank-slider .wp-block-post-template {
	display: flex !important;
	gap: var(--ank-gap) !important;
	overflow-x: auto;
	scroll-snap-type: x mandatory;
	scrollbar-width: none;
	padding: 0;
	margin: 0;
	list-style: none;
}
.ank-slider__track::-webkit-scrollbar {
	display: none;
}
.ank-slider__track > * {
	flex: 0 0 calc((100% - (var(--ank-per) - 1) * var(--ank-gap)) / var(--ank-per));
	scroll-snap-align: start;
	margin: 0 !important;
	min-width: 0;
}
.ank-slider__nav {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 12px;
	margin-top: 15px;
}
.ank-slider__nav[hidden] {
	display: none;
}
.ank-slider__prev,
.ank-slider__next {
	width: 32px;
	height: 32px;
	padding: 0;
	border: 1px solid #ccc;
	background: #fff;
	color: #333;
	font-size: 20px;
	line-height: 1;
	cursor: pointer;
}
.ank-slider__prev:hover,
.ank-slider__next:hover {
	background: var(--ank-primary);
	border-color: var(--ank-primary);
	color: #fff;
}
.ank-slider__dots {
	display: flex;
	gap: 8px;
}
.ank-slider__dots button {
	width: 10px;
	height: 10px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: #d7dee9;
	cursor: pointer;
}
.ank-slider__dots button.is-active {
	background: var(--ank-primary);
}

/* Counters (About page) */
.ank-counter {
	padding: 15px 20px 10px;
	border-radius: 6px;
	box-shadow: 0 0 6px rgba(0, 0, 0, 0.1);
	background: #fff;
}
.ank-counter .ank-counter__value {
	font-size: 36px;
	font-weight: 700;
	margin: 0 0 9px;
}
.ank-counter .ank-counter__label {
	margin: 0;
	text-transform: capitalize;
}

/* Courses grid on home (was a Thim blog slider) */
.ank-course-list .wp-block-post-featured-image img {
	aspect-ratio: 1;
	object-fit: cover;
}
.ank-course-list .wp-block-post-title {
	font-size: 15px;
	margin: 10px 0 4px;
}
.ank-course-list .wp-block-post-title a {
	color: #fff;
}
.ank-read-more {
	color: var(--ank-primary);
	font-size: 14px;
}

/* Post lists (Blog, Vacancy Update, Latest Updates, Batch Schedule): Eduma card look */
.ank-post-list .wp-block-post-template {
	gap: 30px;
}
.ank-post-card {
	height: 100%;
	padding: 10px 10px 15px;
	border: 1px solid #eee;
	box-shadow: 0 0 6px rgba(0, 0, 0, 0.08);
	background: #fff;
}
.ank-post-list .ank-post-card__img {
	margin-bottom: 12px;
}
.ank-post-list .ank-post-card__title {
	font-size: 17px;
	line-height: 1.3;
	margin: 0 0 10px;
}
.ank-post-list .ank-post-card__title a {
	color: var(--ank-primary);
}
.ank-post-list .ank-post-card__title a:hover {
	color: var(--ank-button-hover-bg);
}
.ank-post-list .ank-post-card__excerpt {
	font-size: 13px;
	line-height: 1.6;
	margin: 0 0 8px;
}
.ank-post-list .ank-post-card__date {
	font-size: 12px;
	margin-top: 12px;
	padding-top: 10px;
	border-top: 1px solid #eee;
}
.ank-post-list .wp-block-query-pagination {
	margin-top: 30px;
}

/* Gallery: keep column width even when there are fewer images than columns */
.wp-block-gallery.has-nested-images.columns-4 figure.wp-block-image:not(#individual-image) {
	flex-grow: 0;
	width: calc(25% - var(--wp--style--unstable-gallery-gap, 16px) * 0.75);
}
.wp-block-gallery.has-nested-images.columns-3 figure.wp-block-image:not(#individual-image) {
	flex-grow: 0;
	width: calc(33.333% - var(--wp--style--unstable-gallery-gap, 16px) * 0.667);
}

/* Buttons: Eduma style (orange, square, uppercase, dark blue hover) */
.wp-element-button,
.wp-block-button__link {
	text-transform: uppercase;
	border-radius: 0;
}
.wp-block-button__link:not(.has-background):hover {
	background-color: var(--ank-button-hover-bg);
}

/* Tables converted from table-addons */
.wp-block-table.tafe-table table {
	border-collapse: collapse;
	width: 100%;
}
.wp-block-table.tafe-table th,
.wp-block-table.tafe-table td {
	border: 1px solid #dddddd;
	padding: 8px 10px;
}
.wp-block-table.tafe-table thead th {
	background: var(--ank-button-hover-bg);
	color: #fff;
}

/* Revolution slider: full width, no gap under header */
.ank-revslider {
	margin-block: 0;
}

/* Thim icon font (assets/vendor/thim-ekits) used by converted icon boxes and info lines */
.ank-icon {
	display: inline-block;
	line-height: 1;
	vertical-align: middle;
}
.ank-icon-box__icon {
	margin: 0 0 20px;
	text-align: center;
}
.ank-card .ank-icon-box {
	text-align: center;
}
.ank-info-item .ank-icon {
	margin-right: 6px;
}

/* Elementor columns that had a box shadow (Contact page info boxes) */
.wp-block-column.ank-card {
	background: #fff;
	border-radius: 6px;
	border-bottom: 4px solid transparent;
	box-shadow: 0 0 10px -5px rgba(0, 0, 0, 0.5);
	transition: border-color 0.3s;
}
.wp-block-column.ank-card:hover {
	border-bottom-color: var(--ank-primary);
}

/* Brand-coloured social icons (Contact page) */
.ank-social-brand {
	gap: 14px;
}

/* Gallery lightbox (assets/js/lightbox.js) */
.wp-block-gallery figure a[href] {
	cursor: zoom-in;
}
.ank-lightbox {
	width: 100vw;
	height: 100vh;
	max-width: none;
	max-height: none;
	margin: 0;
	padding: 0;
	border: 0;
	background: transparent;
	color: #fff;
}
.ank-lightbox::backdrop {
	background: rgba(0, 0, 0, 0.9);
}
.ank-lightbox__figure {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	height: 100%;
	margin: 0;
	padding: 60px 70px;
	box-sizing: border-box;
}
.ank-lightbox__figure img {
	max-width: 100%;
	max-height: 100%;
	object-fit: contain;
}
.ank-lightbox__figure figcaption:empty {
	display: none;
}
.ank-lightbox__figure figcaption {
	margin-top: 10px;
	text-align: center;
}
.ank-lightbox button {
	position: absolute;
	padding: 0 12px;
	border: 0;
	background: none;
	color: #fff;
	font-size: 48px;
	line-height: 1;
	cursor: pointer;
	opacity: 0.8;
}
.ank-lightbox button:hover,
.ank-lightbox button:focus-visible {
	color: var(--ank-primary);
	opacity: 1;
}
.ank-lightbox__close {
	top: 10px;
	right: 10px;
}
.ank-lightbox__prev,
.ank-lightbox__next {
	top: 50%;
	transform: translateY(-50%);
}
.ank-lightbox__prev {
	left: 10px;
}
.ank-lightbox__next {
	right: 10px;
}
.ank-lightbox__count {
	position: absolute;
	top: 20px;
	left: 20px;
	font-size: 14px;
}
.ank-lightbox.is-single .ank-lightbox__prev,
.ank-lightbox.is-single .ank-lightbox__next,
.ank-lightbox.is-single .ank-lightbox__count {
	display: none;
}
@media (max-width: 767px) {
	.ank-lightbox__figure {
		padding: 60px 10px;
	}
	.ank-lightbox__prev,
	.ank-lightbox__next {
		top: auto;
		bottom: 10px;
		transform: none;
	}
}
