/* TanguTech Noticeboard */

.elementor-widget-tangutech-noticeboard .tnb {
	--tnb-gap: 20px;
	--tnb-col-why: 30%;
	--tnb-col-notices: 40%;
	--tnb-col-cta: 30%;
	display: flex;
	flex-wrap: wrap;
	gap: var(--tnb-gap);
	align-items: stretch;
	width: 100%;
	box-sizing: border-box;
	font-family: "Source Sans 3", "Segoe UI", sans-serif;
}

.elementor-widget-tangutech-noticeboard .tnb__why,
.elementor-widget-tangutech-noticeboard .tnb__notices,
.elementor-widget-tangutech-noticeboard .tnb__cta,
.elementor-widget-tangutech-noticeboard .tnb__posts {
	min-width: 0;
	max-width: 100%;
}

.elementor-widget-tangutech-noticeboard .tnb--has-why .tnb__why {
	flex: 1 1 var(--tnb-col-why);
	width: var(--tnb-col-why);
}

.elementor-widget-tangutech-noticeboard .tnb--has-notices .tnb__notices {
	flex: 1 1 var(--tnb-col-notices);
	width: var(--tnb-col-notices);
}

.elementor-widget-tangutech-noticeboard .tnb--has-cta .tnb__cta,
.elementor-widget-tangutech-noticeboard .tnb--has-cta .tnb__posts {
	flex: 1 1 var(--tnb-col-cta);
	width: var(--tnb-col-cta);
}

.elementor-widget-tangutech-noticeboard .tnb *,
.elementor-widget-tangutech-noticeboard .tnb *::before,
.elementor-widget-tangutech-noticeboard .tnb *::after {
	box-sizing: border-box;
}

/* Shared column titles — same baseline across columns */
.elementor-widget-tangutech-noticeboard .tnb__col-title {
	margin: 0 0 12px;
	min-height: 1.3em;
	line-height: 1.3;
}

/* Why Choose Us */
.elementor-widget-tangutech-noticeboard .tnb__why {
	display: flex;
	flex-direction: column;
	justify-content: flex-start;
	align-items: stretch;
	min-height: 100%;
	padding: 0;
	background: transparent;
	text-align: center;
}

.elementor-widget-tangutech-noticeboard .tnb__why-card {
	display: flex;
	flex: 1 1 auto;
	flex-direction: column;
	justify-content: flex-start;
	align-items: stretch;
	min-height: 100%;
	padding: 28px 20px;
	background-color: #d9e0ef;
	border-radius: 10px;
	text-align: center;
}

.elementor-widget-tangutech-noticeboard .tnb__why-title {
	width: 100%;
	margin-bottom: 18px;
	color: #3a3a3a;
	font-size: 18px;
	font-weight: 700;
	letter-spacing: 0.04em;
	text-transform: uppercase;
}

.elementor-widget-tangutech-noticeboard .tnb__why-text {
	margin: 0;
	width: 100%;
	max-width: 100%;
	color: #2f6fbf;
	font-size: 16px;
	font-weight: 500;
	line-height: 1.55;
}

/* Notices */
.elementor-widget-tangutech-noticeboard .tnb__notices {
	display: flex;
	flex-direction: column;
	justify-content: flex-start;
	min-width: 0;
	padding: 0;
}

.elementor-widget-tangutech-noticeboard .tnb__notices-title {
	color: #163a7a;
	font-size: 28px;
	font-weight: 700;
}

.elementor-widget-tangutech-noticeboard .tnb__notice-list {
	margin: 0;
	padding: 0;
	list-style: none;
}

.elementor-widget-tangutech-noticeboard .tnb__notice-item {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 12px 0;
	border-bottom: 1px solid #c5d4ef;
}

.elementor-widget-tangutech-noticeboard .tnb__notice-item:last-child {
	border-bottom: 0;
}

.elementor-widget-tangutech-noticeboard .tnb__notice-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex: 0 0 auto;
	width: 1.25em;
	color: #17a2b8;
	font-size: 14px;
	line-height: 1;
}

.elementor-widget-tangutech-noticeboard .tnb__notice-icon svg {
	width: 1em;
	height: 1em;
	fill: currentColor;
}

.elementor-widget-tangutech-noticeboard .tnb__notice-link {
	color: #1d2a44;
	font-size: 16px;
	font-weight: 500;
	line-height: 1.35;
	text-decoration: none;
	transition: color 0.2s ease;
}

.elementor-widget-tangutech-noticeboard .tnb__notice-link:hover,
.elementor-widget-tangutech-noticeboard .tnb__notice-link:focus {
	color: #0d6efd;
}

/* Posts board (third column) */
.elementor-widget-tangutech-noticeboard .tnb__posts {
	display: flex;
	flex-direction: column;
	align-self: stretch;
	min-height: 100%;
}

.elementor-widget-tangutech-noticeboard .tnb__posts-heading {
	color: #163a7a;
	font-size: 28px;
	font-weight: 700;
}

.elementor-widget-tangutech-noticeboard .tnb__posts-panel {
	display: flex;
	flex: 1 1 auto;
	align-items: stretch;
	min-height: 0;
	overflow: hidden;
	background-color: #ffffff;
	border-radius: 8px;
	box-shadow: 0 4px 18px rgba(15, 39, 68, 0.08);
}

.elementor-widget-tangutech-noticeboard .tnb__posts-main {
	flex: 1 1 auto;
	min-width: 0;
}

.elementor-widget-tangutech-noticeboard .tnb__posts-pane:not(.is-active) {
	display: none;
}

.elementor-widget-tangutech-noticeboard .tnb__posts-body {
	display: flex;
	flex-direction: column;
	height: 100%;
	padding: 20px 20px 16px;
}

.elementor-widget-tangutech-noticeboard .tnb__posts-list {
	display: flex;
	flex-direction: column;
	gap: 16px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.elementor-widget-tangutech-noticeboard .tnb__posts-list--grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 16px;
}

.elementor-widget-tangutech-noticeboard .tnb__posts-item {
	display: flex;
	flex-direction: column;
	gap: 4px;
}

/* Carousel */
.elementor-widget-tangutech-noticeboard .tnb__carousel {
	position: relative;
	width: 100%;
}

.elementor-widget-tangutech-noticeboard .tnb__carousel-viewport {
	overflow: hidden;
	width: 100%;
}

.elementor-widget-tangutech-noticeboard .tnb__posts-list--carousel {
	display: flex;
	flex-direction: row;
	flex-wrap: nowrap;
	gap: 12px;
	margin: 0;
	padding: 0;
	list-style: none;
	transition: transform 0.35s ease;
	will-change: transform;
}

.elementor-widget-tangutech-noticeboard .tnb__carousel-slide {
	flex: 0 0 calc((100% - (var(--tnb-slides, 1) - 1) * 12px) / var(--tnb-slides, 1));
	min-width: 0;
	box-sizing: border-box;
}

.elementor-widget-tangutech-noticeboard .tnb__carousel-nav {
	display: flex;
	justify-content: flex-end;
	gap: 8px;
	margin-top: 12px;
}

.elementor-widget-tangutech-noticeboard .tnb__carousel-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 32px;
	height: 32px;
	padding: 0;
	border: 1px solid #c5d4ef;
	border-radius: 4px;
	background: #ffffff;
	color: #163a7a;
	cursor: pointer;
	font-size: 14px;
	line-height: 1;
}

.elementor-widget-tangutech-noticeboard .tnb__carousel-btn:hover,
.elementor-widget-tangutech-noticeboard .tnb__carousel-btn:focus {
	background: #eef3fb;
}

.elementor-widget-tangutech-noticeboard .tnb__carousel-dots {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 6px;
	margin-top: 12px;
}

.elementor-widget-tangutech-noticeboard .tnb__carousel-dot {
	width: 8px;
	height: 8px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: #c5d4ef;
	cursor: pointer;
}

.elementor-widget-tangutech-noticeboard .tnb__carousel-dot.is-active {
	background: #163a7a;
}

.elementor-widget-tangutech-noticeboard .tnb__posts-item-title {
	color: #1e88e5;
	font-size: 15px;
	font-weight: 600;
	line-height: 1.35;
	text-decoration: none;
}

.elementor-widget-tangutech-noticeboard .tnb__posts-item-title:hover,
.elementor-widget-tangutech-noticeboard .tnb__posts-item-title:focus {
	color: #0d47a1;
	text-decoration: underline;
}

.elementor-widget-tangutech-noticeboard .tnb__posts-item-date {
	color: #222222;
	font-size: 13px;
	font-weight: 400;
	line-height: 1.3;
}

.elementor-widget-tangutech-noticeboard .tnb__posts-empty {
	margin: 0;
	color: #607d8b;
	font-size: 14px;
}

.elementor-widget-tangutech-noticeboard .tnb__posts-more {
	display: inline-block;
	margin-top: auto;
	padding-top: 18px;
	color: #2e7d32;
	font-size: 14px;
	font-weight: 700;
	text-decoration: none;
}

.elementor-widget-tangutech-noticeboard .tnb__posts-more:hover,
.elementor-widget-tangutech-noticeboard .tnb__posts-more:focus {
	text-decoration: underline;
}

.elementor-widget-tangutech-noticeboard .tnb__posts-tabs {
	display: flex;
	flex-direction: column;
	flex: 0 0 auto;
	width: 42px;
}

.elementor-widget-tangutech-noticeboard .tnb__posts-tab {
	display: flex;
	flex: 1 1 0;
	align-items: center;
	justify-content: center;
	margin: 0;
	padding: 10px 6px;
	border: 0;
	border-left: 1px solid rgba(0, 0, 0, 0.06);
	background-color: #cfd8dc;
	color: #1a237e;
	cursor: pointer;
	font: inherit;
	line-height: 1.1;
	text-align: center;
}

.elementor-widget-tangutech-noticeboard .tnb__posts-tab.is-active {
	background-color: #f0a500;
}

.elementor-widget-tangutech-noticeboard .tnb__posts-tab-label {
	display: block;
	writing-mode: vertical-rl;
	transform: rotate(180deg);
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	white-space: nowrap;
}

/* Mobile typography tweak; column widths come from Elementor responsive controls */
@media (max-width: 767px) {
	.elementor-widget-tangutech-noticeboard .tnb__notices-title {
		font-size: 24px;
	}
}
