/*
 * Dini 60 — Events.
 * Source design (sharjah.ac.ae Events): big text tabs with a green
 * underline; a dark purple side panel holding a white card with the coming
 * days (today bold with a dot), the year and a calendar link, plus a white
 * "View all" button; two rows (upcoming / past) of light grey cards with
 * date, title and a green arrow. See developer guide §5.6.
 */

.dvt { padding-block: clamp(32px, 4vw, 56px); }

/* Tabs */
.dvt-tabs {
	display: flex;
	flex-wrap: wrap;
	gap: 8px clamp(18px, 2.2vw, 30px);
	margin-bottom: 26px;
	border-bottom: 1px solid var(--dini-line);
}
.dvt-tab {
	position: relative;
	padding: 0 0 12px;
	border: 0;
	background: none;
	color: #a7a7a7;
	font: inherit;
	font-size: clamp(24px, 2.6vw, 40px);
	font-weight: 500;
	line-height: 1.3;
	cursor: pointer;
	transition: color var(--dini-ease);
}
.dini-rtl .dvt-tab { font-weight: 700; }
.dvt-tab:hover { color: #555; }
.dvt-tab.is-active { color: var(--dini-black); }
.dvt-tab.is-active::after {
	content: "";
	position: absolute;
	inset-inline: 0;
	bottom: -1px;
	height: 4px;
	border-radius: 4px;
	background: var(--dini-green);
}

/* Layout */
.dvt-body { display: grid; grid-template-columns: minmax(260px, 330px) minmax(0, 1fr); gap: 26px; align-items: stretch; }

/* Side panel */
.dvt-side {
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	gap: 18px;
	padding: 18px;
	border-radius: 15px;
	background: linear-gradient(180deg, var(--dini-purple) 0%, #5a5380 70%, #8a84a8 100%);
}
.dvt-cal {
	display: grid;
	grid-template-columns: minmax(0, 1fr) auto;
	gap: 12px;
	padding: 16px 18px;
	border-radius: 12px;
	background: var(--dini-white);
}
.dvt-days-wrap { height: 172px; overflow: hidden; scroll-behavior: smooth; }
.dvt-days { list-style: none; margin: 0; padding: 0; }
.dvt-day {
	position: relative;
	display: flex;
	align-items: baseline;
	gap: 6px;
	width: 100%;
	height: 43px;
	padding: 0;
	padding-inline-start: 14px;
	border: 0;
	background: none;
	color: #c4c4c4;
	font: inherit;
	font-size: clamp(22px, 1.9vw, 30px);
	font-weight: 500;
	line-height: 43px;
	white-space: nowrap;
	cursor: pointer;
	transition: color .2s;
}
.dvt-day:hover { color: #7a7a7a; }
.dvt-day.is-today { color: var(--dini-black); }
.dvt-day.is-today::before {
	content: "";
	position: absolute;
	inset-inline-start: 2px;
	top: 50%;
	width: 6px;
	height: 6px;
	border-radius: 50%;
	background: currentColor;
}
.dvt-day.has-event::after {
	content: "";
	width: 7px;
	height: 7px;
	margin-inline-start: 4px;
	align-self: center;
	border-radius: 50%;
	background: var(--dini-green);
}
.dvt-day[aria-pressed="true"] { color: var(--dini-green-dark); }

.dvt-cal-side { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; }
.dvt-year { font-size: clamp(34px, 3vw, 48px); font-weight: 300; line-height: 1.1; }
.dvt-cal-link { display: inline-flex; align-items: center; gap: 6px; color: var(--dini-black); font-size: 12.5px; text-decoration: none; white-space: nowrap; }
.dvt-cal-link:hover { color: var(--dini-green-dark); }
.dvt-cal-link .dini-icon { width: 15px; height: 15px; }
.dvt-day-nav { display: flex; gap: 6px; margin-top: auto; }
.dvt-day-nav button {
	display: inline-grid;
	place-items: center;
	width: 26px;
	height: 26px;
	padding: 0;
	border: 1px solid var(--dini-black);
	border-radius: 50%;
	background: none;
	color: var(--dini-black);
	cursor: pointer;
}
.dvt-day-nav button:disabled { opacity: .3; cursor: default; }
.dvt-day-nav .dini-icon { width: 14px; height: 14px; }
.dvt-flipv { transform: rotate(180deg); }

.dvt-all {
	align-self: flex-start;
	display: inline-flex;
	align-items: center;
	gap: 10px;
	padding: 9px 12px 9px 16px;
	padding-inline: 16px 12px;
	border-radius: 8px;
	background: var(--dini-white);
	color: var(--dini-black);
	font-size: 14px;
	font-weight: 600;
	text-decoration: none;
}

/* Rows */
.dvt-panel[hidden] { display: none; }
.dvt-row + .dvt-row { margin-top: 26px; }
.dvt-row-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.dvt-row-title { margin: 0; font-size: 17px; font-weight: 600; }
.dvt-nav { display: flex; align-items: center; gap: 8px; font-size: 13px; }
.dvt-nav button { display: inline-flex; align-items: center; gap: 6px; padding: 0; border: 0; background: none; color: var(--dini-black); font: inherit; cursor: pointer; }
.dvt-nav button:disabled { opacity: .35; cursor: default; }
.dvt-nav .dini-icon { width: 24px; height: 24px; padding: 5px; border: 1px solid #b9b9b9; border-radius: 50%; }
.dvt-nav button:hover:not(:disabled) .dini-icon { background: var(--dini-green); border-color: var(--dini-green); }
.dvt-sep { color: #b9b9b9; }
.dini-ltr .dvt-back { transform: scaleX(-1); }

.dvt-cards {
	display: grid;
	grid-auto-flow: column;
	grid-auto-columns: calc((100% - 28px) / 3);
	gap: 14px;
	margin: 0;
	padding: 0;
	list-style: none;
	overflow-x: auto;
	scroll-snap-type: x mandatory;
	scroll-behavior: smooth;
	scrollbar-width: none;
}
.dvt-cards::-webkit-scrollbar { display: none; }
.dvt-card { scroll-snap-align: start; }
.dvt-card[hidden] { display: none; }
.dvt-card a {
	display: flex;
	flex-direction: column;
	gap: 8px;
	height: 100%;
	min-height: 150px;
	padding: 28px 20px 20px;
	border-radius: 15px;
	background: #f5f5f5;
	color: var(--dini-black);
	text-decoration: none;
	transition: background .2s;
}
.dvt-card a:hover { background: var(--dini-mint); }
.dvt-card time { font-size: 12.5px; color: #333; }
.dvt-card-title { font-size: 15.5px; font-weight: 600; line-height: 1.5; }
.dvt-go {
	display: inline-grid;
	place-items: center;
	width: 20px;
	height: 20px;
	margin-top: auto;
	border-radius: 50%;
	background: var(--dini-green);
	color: var(--dini-black);
	flex-shrink: 0;
}
.dvt-go .dini-icon { width: 12px; height: 12px; stroke-width: 2.6; }
.dvt-empty { margin: 8px 0 0; padding: 22px; border-radius: 15px; background: #f5f5f5; color: #555; font-size: 14px; }

/* Responsive */
@media (max-width: 991px) {
	.dvt-body { grid-template-columns: minmax(0, 1fr); }
	.dvt-side { flex-direction: row; align-items: stretch; }
	.dvt-cal { flex: 1; }
	.dvt-all { align-self: flex-end; }
	.dvt-cards { grid-auto-columns: calc((100% - 14px) / 2); }
}

@media (max-width: 575px) {
	.dvt-side { flex-direction: column; }
	.dvt-cards { grid-auto-columns: 82%; }
	.dvt-nav span:not(.dvt-sep) { display: none; }
}
