/* Responsive adjustments without altering existing color scheme */

html,
body {
	width: 100%;
	max-width: 100%;
	overflow-x: hidden;
}

.ttr-header-actions-mobile {
	display: none;
}

img,
video {
	max-width: 100%;
	height: auto;
}

.aurora-page {
	max-width: 1180px;
	margin: 0 auto;
	padding: 0 24px 40px;
}

.aurora-hero {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 32px;
	padding: 28px 0 36px;
}

.aurora-hero > div:first-child {
	flex: 1 1 60%;
}

.aurora-hero-graphic {
	flex: 0 1 320px;
	width: 100%;
	max-width: 360px;
}

.widget-box {
	border-radius: 20px;
}

.widget-inner {
	overflow-x: auto;
}

.links-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
	gap: 18px;
}

.link-card {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 12px;
	padding: 18px 16px 20px;
	border-radius: 18px;
}

.link-card-icon {
	width: 100%;
	display: flex;
	align-items: center;
	justify-content: center;
}

.top-students-section {
	margin: 0 auto 30px;
	padding: 20px;
	border-radius: 24px;
	overflow: hidden;
	position: relative;
}

.top-students-carousel-frame {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 14px;
}

.top-students-slide {
	display: flex;
	justify-content: center;
	gap: 24px;
	padding: 15px 10px 35px;
}

.top-students-card {
	max-width: 280px;
	width: 100%;
	border-radius: 18px;
}

.carousel-wrapper {
	position: relative;
	margin: 0 auto;
	max-width: 1180px;
	padding: 0 12px;
}

.carousel-wrapper .carousel {
	border-radius: 20px;
	width: 100%;
}

.carousel-wrapper .carousel-inner {
	aspect-ratio: 1000 / 300;
	width: 100%;
	padding: 0 !important;
	margin: 0 !important;
}
.carousel-wrapper .carousel-inner.w-100 {
	width: 100% !important;
	padding: 0 !important;
	margin: 0 !important;
}

.carousel-wrapper .carousel-item {
	height: 100% !important;
	display: flex;
	align-items: stretch !important;
	justify-content: stretch !important;
	background: #ffffff;
	text-align: center;
	padding: 0 !important;
	margin: 0 !important;
	width: 100% !important;
	overflow: hidden;
}

.carousel-wrapper .carousel-slide-img,
.carousel-wrapper .img-fluid.carousel-slide-img,
.carousel-wrapper .carousel-item img.carousel-slide-img,
.carousel-wrapper .carousel-item .img-fluid.carousel-slide-img,
.carousel-wrapper .carousel-item img,
.carousel-wrapper .carousel-item .img-fluid {
	width: 100% !important;
	height: 100% !important;
	object-fit: fill !important;
	object-position: center !important;
	max-width: 100% !important;
	max-height: 100% !important;
	min-width: 100% !important;
	min-height: 100% !important;
	padding: 0 !important;
	margin: 0 !important;
	border: none !important;
}

.ttr-header-menu .ttr-header-navigation {
	display: flex;
	align-items: center;
	gap: 18px;
	flex-wrap: wrap;
}

.ttr-header-left .ttr-header-navigation {
	display: flex;
	align-items: center;
	gap: 14px;
}

@media (max-width: 1200px) {
	.aurora-page {
		padding: 0 20px 34px;
	}
}

@media (max-width: 992px) {
	.aurora-page {
		padding: 0 18px 32px;
	}
	.aurora-hero {
		gap: 26px;
	}
	.aurora-hero-graphic {
		max-width: 320px;
	}
	.carousel-wrapper {
		padding: 0 8px;
	}
	.links-grid {
		grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
		gap: 16px;
	}
}

.ttr-header-actions-mobile {
	display: none;
	align-items: center;
	gap: 8px;
}

.ttr-header-actions-mobile {
	display: none;
	align-items: center;
	gap: 8px;
}

@media (max-width: 1100px) {
	.ttr-header-wrapper {
		flex-wrap: nowrap;
	}
	.ttr-header-menu {
		display: none !important;
	}
	.ttr-header-left {
		margin-left: auto;
	}
	.ttr-sidebar,
	.ttr-opened-sidebar .ttr-sidebar {
		top: 70px;
		height: calc(100% - 70px);
	}
}

@media (max-width: 768px) {
	.aurora-page {
		padding: 0 16px 28px;
	}
	.aurora-hero {
		flex-direction: column;
		text-align: center;
		align-items: center;
		padding: 24px 0 28px;
	}
	.aurora-hero > div:first-child {
		flex: 1 1 auto;
	}
	.aurora-hero-graphic {
		max-width: 360px;
	}
	.aurora-hero h2 {
		font-size: 28px;
	}
	.aurora-hero p {
		font-size: 15px;
	}
	.ttr-header-menu {
		display: none !important;
	}
	.top-students-section {
		padding: 18px 16px 26px;
		border-radius: 22px;
	}
	.top-students-carousel-frame {
		gap: 10px;
	}
	.top-students-slide {
		justify-content: flex-start;
		gap: 16px;
		overflow-x: auto;
		scroll-snap-type: x mandatory;
		padding: 10px 6px 24px;
	}
	.top-students-card {
		scroll-snap-align: center;
		min-width: 100%;
		max-width: 100%;
	}
	.links-grid {
		grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
	}
	.carousel-wrapper .carousel-inner {
		aspect-ratio: 1000 / 360;
	}
	.ttr-header-wrapper {
		display: flex;
		align-items: center;
		gap: 12px;
		flex-wrap: nowrap;
	}
	.ttr-header-actions-mobile {
		display: flex;
		margin-left: 0;
		margin-right: auto;
	}
	.ttr-header-actions-mobile .ttr-header-navigation {
		display: flex;
		align-items: center;
		gap: 4px;
	}
	.ttr-header-actions-mobile .ttr-header-navigation li:last-child {
		margin-left: 4px;
	}
	.ttr-header-actions-mobile .ttr-user-avatar {
		display: inline-flex;
		align-items: center;
		justify-content: center;
		width: 34px;
		height: 34px;
		padding: 0;
		background: rgba(255, 255, 255, 0.2);
		border-radius: 50%;
	}
	.ttr-header-actions-mobile .ttr-user-avatar img {
		width: 100%;
		height: 100%;
		border-radius: 50%;
		object-fit: cover;
	}
	.ttr-header-actions-mobile .ttr-header-navigation li span.user-name {
		font-size: 13px;
		font-weight: 600;
		color: #fff;
		white-space: nowrap;
		display: inline-flex;
		align-items: center;
	}
	.ttr-header-actions-mobile .ttr-header-submenu {
		left: 8px !important;
		right: auto;
		transform-origin: top left;
	}
	#manager-schedule .aurora-schedule-card > div,
	#teacher-schedule .aurora-schedule-card > div {
		font-size: clamp(0.78rem, 2.8vw, 0.9rem);
	}
	.ttr-header-menu {
		flex: 1 1 auto;
		min-width: 0;
	}
	.ttr-header-left {
		display: none !important;
	}
	.ttr-header-left .ttr-header-navigation {
		display: none;
	}
	.ttr-header-left .ttr-material-button {
		display: none;
	}
	.ttr-sidebar,
	.ttr-opened-sidebar .ttr-sidebar {
		top: 86px;
		height: calc(100% - 86px);
	}
}

@media (max-width: 576px) {
	.aurora-page {
		padding: 0 14px 24px;
	}
	.aurora-hero {
		padding: 20px 0;
	}
	.aurora-hero-graphic {
		max-width: 100%;
	}
	.aurora-hero h2 {
		font-size: 24px;
	}
	.aurora-hero p {
		font-size: 14.5px;
	}
	.widget-box {
		border-radius: 16px;
	}
	.top-students-section {
		padding: 16px 14px 22px;
		border-radius: 20px;
	}
	.top-students-card {
		min-width: 100%;
	}
	.links-grid {
		grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
		gap: 14px;
	}
	.link-card {
		padding: 16px 12px 18px;
		border-radius: 16px;
		gap: 10px;
	}
	.carousel-wrapper .carousel {
		border-radius: 16px;
	}
	.carousel-wrapper .carousel-inner {
		aspect-ratio: 1000 / 420;
	}
	.ttr-header-left .ttr-header-navigation li:nth-child(-n + 2) {
		display: none;
	}
	
	.schedule-header-wrapper {
		flex-wrap: wrap !important;
		flex-direction: row !important;
		align-items: center !important;
		gap: 12px !important;
		justify-content: center !important;
		padding: 12px !important;
	}
	
	#manager-schedule-label,
	#teacher-week-label {
		order: -1 !important;
		width: 100% !important;
		text-align: center !important;
		margin-bottom: 8px !important;
		flex-basis: 100% !important;
		flex-grow: 0 !important;
		flex-shrink: 0 !important;
		display: block !important;
		padding: 0 !important;
	}
	
	.schedule-header-wrapper > a.dashboard-nav-chip,
	.schedule-header-wrapper > span.dashboard-nav-chip {
		order: 0 !important;
		flex: 1 1 auto !important;
		min-width: 120px !important;
		max-width: calc(50% - 6px) !important;
		justify-content: center !important;
		display: flex !important;
		margin: 0 !important;
	}
	
	/* بزرگتر کردن فونت سطر اول جدول در موبایل */
	#manager-day-table .ewTable .ewTableHeader td,
	#teacher-week-table .ewTable .ewTableHeader td,
	#manager-day-table .ewTable thead th,
	#teacher-week-table .ewTable thead th {
		font-size: 11pt !important;
	}
}

@media (max-width: 420px) {
	.aurora-hero h2 {
		font-size: 22px;
	}
	.aurora-hero p {
		font-size: 14px;
	}
	.top-students-card {
		padding: 14px 12px 20px;
	}
	.links-grid {
		grid-template-columns: 1fr;
	}
}

