/* ============================================
   SCHOOL PROFILE PAGE STYLES
   ============================================ */

* {
	margin: 0;
	padding: 0;
	box-sizing: border-box;
}

body {
	font-family: 'Inter', sans-serif;
	background: #FFFFFF;
}

.container {
	max-width: 1368px;
	margin: 0 auto;
	padding: 0 20px;
}

/* ============================================
   PROFILE PAGE STYLES
   ============================================ */

.profile-page {
	padding: 50px 0 30px;
}

.profile-page__container {
	max-width: 1200px;
	margin: 0 auto;
	padding: 0 30px;
}

.profile-page__title {
	font-family: 'Inter', sans-serif;
	font-weight: 700;
	font-size: 40px;
	line-height: 48px;
	color: #1E2B69;
	text-align: center;
}

/* ============================================
   DOCUMENTS SECTION
   ============================================ */

.profile-documents {
	padding: 40px 0 80px;
}

.profile-documents__container {
	max-width: 1200px;
	margin: 0 auto;
	padding: 0 30px;
}

.profile-documents__grid {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 30px;
}

/* ============================================
   DOCUMENT CARD
   ============================================ */

.document-card {
	display: flex;
	flex-direction: column;
	align-items: center;
	text-decoration: none;
	background: #FFFFFF;
	border-radius: 16px;
	box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
	overflow: hidden;
	transition: transform 0.3s ease, box-shadow 0.3s ease;
	padding-bottom: 20px;
}

.document-card:hover {
	transform: translateY(-5px);
	box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
}

.document-card__preview {
	width: 100%;
	height: 280px;
	overflow: hidden;
	display: flex;
	align-items: flex-start;
	justify-content: center;
	background: #F8F9FA;
}

.document-card__preview img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: top;
}

.document-card__preview--pdf {
	align-items: center;
	justify-content: center;
	background: #FFF5F5;
}

.document-card__pdf-icon {
	width: 80px;
	height: 80px;
}

.document-card__title {
	font-family: 'Inter', sans-serif;
	font-weight: 600;
	font-size: 18px;
	line-height: 24px;
	color: #1E2B69;
	text-align: center;
	margin-top: 16px;
	padding: 0 15px;
}

.doc-viewer-trigger {
	cursor: zoom-in;
}

.document-viewer {
	position: fixed;
	inset: 0;
	z-index: 1000;
	display: none;
	align-items: center;
	justify-content: center;
	padding: 30px;
	background: rgba(0, 0, 0, .78);
}

.document-viewer.is-open {
	display: flex;
}

.document-viewer__content {
	display: flex;
	align-items: center;
	justify-content: center;
	max-width: 90vw;
	max-height: 88vh;
}

.document-viewer__content iframe {
	display: block;
	width: min(60vw, 900px);
	height: 75vh;
	border: 0;
	background: #FFFFFF;
	box-shadow: 0 12px 40px rgba(0, 0, 0, .3);
}

.document-viewer__close {
	position: fixed;
	top: 18px;
	right: 24px;
	z-index: 1001;
	width: 44px;
	height: 44px;
	border: 0;
	border-radius: 50%;
	background: #FFFFFF;
	color: #1E2B69;
	font-size: 32px;
	line-height: 1;
	cursor: pointer;
}

/* ============================================
   FOOTER STYLES
   ============================================ */

footer {
	background: #1E2B69;
	padding: 40px 0;
}

.footer__wrapper {
	display: flex;
	justify-content: space-between;
	align-items: flex-start;
	flex-wrap: wrap;
	gap: 30px;
}

.footer__column {
	display: flex;
	flex-direction: column;
}

.footer__column:first-child {
	flex: 0 0 100%;
	width: 100%;
}

.footer__logos {
	display: grid;
	grid-template-columns: repeat(5, minmax(0, 1fr));
	align-items: center;
	justify-items: center;
	column-gap: 40px;
	width: 100%;
}

.footer__logos .logo {
	grid-column: 2;
	width: min(34vw, 460px);
	height: auto;
}

.footer__msa-logo {
	grid-column: 4;
	width: min(22vw, 250px);
	height: auto;
}

.footer__list {
	list-style: none;
}

.footer__item {
	margin-bottom: 10px;
}

.footer__link {
	font-family: 'Inter', sans-serif;
	font-weight: 400;
	font-size: 14px;
	color: #FFFFFF;
	text-decoration: none;
	transition: opacity 0.3s ease;
}

.footer__link:hover {
	opacity: 0.8;
}

.contacts-shedule {
	display: flex;
	flex-direction: column;
	color: #FFFFFF;
}

.contacts-shedule__title {
	font-weight: 700;
	font-size: 14px;
	margin-bottom: 5px;
}

.contacts-shedule__days,
.contacts-shedule__time {
	font-size: 14px;
}

/* ============================================
   RESPONSIVE STYLES
   ============================================ */

@media (max-width: 1024px) {
	.profile-documents__grid {
		grid-template-columns: repeat(2, 1fr);
		gap: 25px;
	}

	.profile-page__title {
		font-size: 32px;
		line-height: 40px;
	}
}

@media (max-width: 800px) {
	/* Profile Page Mobile */
	.profile-page {
		padding: 30px 0 20px;
	}

	.profile-page__container {
		padding: 0 20px;
	}

	.profile-page__title {
		font-size: 26px;
		line-height: 32px;
	}

	.profile-documents {
		padding: 30px 0 60px;
	}

	.profile-documents__container {
		padding: 0 20px;
	}

	.profile-documents__grid {
		grid-template-columns: 1fr;
		gap: 20px;
		max-width: 400px;
		margin: 0 auto;
	}

	.document-card__preview {
		height: 240px;
	}

	.document-viewer {
		padding: 14px;
	}

	.document-viewer__content {
		max-width: 96vw;
		max-height: 86vh;
	}

	.document-viewer__content iframe {
		width: 92vw;
		height: 78vh;
	}

	.document-viewer__close {
		top: 10px;
		right: 10px;
	}

	.document-card__title {
		font-size: 16px;
	}

	/* Footer Mobile */
	.footer__wrapper {
		flex-direction: column;
		align-items: center;
		text-align: center;
		gap: 25px;
	}

	.footer__column {
		align-items: center;
	}

	.footer__logos {
		display: flex;
		flex-direction: column;
		align-items: center;
		gap: 18px;
	}

	.footer__logos .logo {
		width: min(82vw, 360px);
		height: auto;
	}

	.footer__msa-logo {
		width: min(70vw, 240px);
		height: auto;
	}

	.footer-shedule_mobile {
		order: -1;
	}
}

@media (max-width: 480px) {
	.profile-page__title {
		font-size: 22px;
		line-height: 28px;
	}

	.document-card__preview {
		height: 200px;
	}

	.document-card__title {
		font-size: 14px;
	}
}

@media (min-width: 801px) {
	.footer__wrapper {
		flex-wrap: wrap;
		justify-content: center;
		column-gap: 44px;
		row-gap: 20px;
	}

	.footer__wrapper > .footer__column:first-child {
		order: 2;
		display: flex;
		flex: 0 0 100%;
		justify-content: center;
		margin-top: 12px;
		padding-top: 28px;
		border-top: 1px solid rgba(255, 255, 255, .28);
	}

	.footer__wrapper > .footer__column:not(:first-child) {
		flex: 0 1 180px;
	}

	.footer__logos .logo {
		width: min(31vw, 460px);
		max-width: none;
	}

	.footer__msa-logo {
		width: clamp(280px, 32vw, 420px);
	}
}

@media (max-width: 800px) {
	.footer__logos .logo {
		width: min(70vw, 308px);
		max-width: 308px;
		height: auto;
	}

	.footer__msa-logo {
		width: min(76vw, 280px);
		max-width: 280px;
		height: auto;
	}
}
