/*
 * CMNails – Public Stylesheet
 * Plugin: cmnails
 * Author: Urbangap
 */

/* =========================================================
   UG Hero About  [ug_hero_about]
   ========================================================= */

.ug-hero-about {
	width: 100%;
	box-sizing: border-box;
}

/* Text column: max 50% width */
.ug-hero-about__content {
	display: flex;
	flex-direction: column;
	justify-content: center;
	width: 50%;
	box-sizing: border-box;
}

.ug-hero-about__title {
	margin-top: 0;
	margin-bottom: 0.35em;
}

.ug-hero-about__subtitle {
	margin-top: 0;
	margin-bottom: 1.5rem;
}

.ug-hero-about__text {
	margin-top: 0;
	margin-bottom: 2rem;
	line-height: 1.65;
}

@media ( max-width: 768px ) {
	.ug-hero-about__content {
		width: 100%;
	}

	.ug-hero-about__btn {
		align-self: stretch !important;
		text-align: center;
	}
}

/* =========================================================
   UG Timeline  [ug_timeline]
   ========================================================= */

.ug-timeline {
	width: 100%;
	box-sizing: border-box;
	user-select: none;
	-webkit-user-select: none;
	cursor: grab;
}

.ug-timeline:active {
	cursor: grabbing;
}

.ug-timeline__viewport {
	overflow: hidden;
	width: 100%;
}

.ug-timeline__track {
	display: flex;
	flex-wrap: nowrap;
	will-change: transform;
}

.ug-timeline__item {
	flex: 0 0 25%;
	box-sizing: border-box;
	text-align: center;
	padding: 0 1.25rem;
}

.ug-timeline__track--labels .ug-timeline__item {
	padding-bottom: 1rem;
}

.ug-timeline__track--texts .ug-timeline__item {
	padding-top: 1rem;
}

@media ( max-width: 900px ) {
	.ug-timeline__item { flex: 0 0 50%; }
}

@media ( max-width: 600px ) {
	.ug-timeline__item { flex: 0 0 100%; }
}

.ug-timeline__label {
	color: #ae9c6c;
}

.ug-timeline__text {
	margin: 0;
	line-height: 1.55;
}

.ug-timeline__line {
	width: 100%;
	height: 1px;
	background-color: #ae9c6c;
}

/* Dots: generated by JS, one per page */
.ug-timeline__dots {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 4px;
	padding: 1.25rem 0 0;
}

.ug-timeline__dot {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 24px;
	height: 24px;
	background: none;
	border: none;
	padding: 0;
	cursor: pointer;
	flex: 0 0 auto;
}

.ug-timeline__dot::before {
	content: '';
	display: block;
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background-color: #1a1a1a;
	opacity: 0.2;
	transition: opacity 0.25s;
}

.ug-timeline__dot--active::before {
	opacity: 1;
}

.ug-timeline__dot:hover::before {
	opacity: 0.55;
}

/* =========================================================
   UG Awards & Certifications  [ug_awards]
   ========================================================= */

.ug-awards {
	width: 100%;
}

/* Each row: top border + three-column grid */
.ug-awards__item {
	display: grid;
	grid-template-columns: 140px 1fr 48px;
	align-items: start;
	gap: 0 2rem;
	padding: 2.5rem 0;
	border-top: 1px solid #d9d0c4;
}

/* Last item gets a bottom border too */
.ug-awards__item:last-child {
	border-bottom: 1px solid #d9d0c4;
}

/* Year / label – brand colour, no font forcing */
.ug-awards__year {
	color: #ae9c6c;
	padding-top: 0.2em;  /* optical alignment with title cap-height */
}

/* Body: title + description */
.ug-awards__body {
	display: flex;
	flex-direction: column;
	gap: 0.6rem;
}

.ug-awards__title {
	margin: 0;
}

.ug-awards__description {
	margin: 0;
	line-height: 1.6;
}

/* Arrow column */
.ug-awards__action {
	display: flex;
	align-items: center;
	justify-content: center;
	padding-top: 0.2em;
}

.ug-awards__arrow {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	text-decoration: none;
	color: inherit;
	transition: transform 0.2s ease;
}

.ug-awards__arrow:hover {
	transform: translateX(4px);
}

/* Placeholder arrow (no link): muted, no hover effect */
.ug-awards__arrow--placeholder {
	color: #c8c0b8;
	pointer-events: none;
}

.ug-awards__arrow-icon {
	width: 24px;
	height: 24px;
	display: block;
	flex-shrink: 0;
}

/* ── Responsive ── */

@media ( max-width: 768px ) {
	.ug-awards__item {
		grid-template-columns: 80px 1fr 40px;
		gap: 0 1rem;
		padding: 2rem 0;
	}
}

@media ( max-width: 480px ) {
	.ug-awards__item {
		grid-template-columns: 1fr 36px;
		grid-template-rows: auto auto;
	}

	/* Year moves above title, spanning full width */
	.ug-awards__year {
		grid-column: 1 / -1;
		padding-top: 0;
		margin-bottom: 0.5rem;
	}

	.ug-awards__body {
		grid-column: 1;
		grid-row: 2;
	}

	.ug-awards__action {
		grid-column: 2;
		grid-row: 2;
		align-self: start;
	}
}
