/* Single Model Page Styles */

.missinterschools-single-wrapper {
	padding: 40px 20px;
	background-color: #fafafa;
	min-height: calc(100vh - 200px);
}

.missinterschools-single-container {
	max-width: 1200px;
	margin: 0 auto;
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 40px;
	background-color: white;
	padding: 40px;
	border-radius: 8px;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

/* ========== Gallery Section ========== */
.single-model-gallery {
	display: flex;
	flex-direction: column;
	gap: 15px;
}

.main-image-wrapper {
	position: relative;
	width: 100%;
	aspect-ratio: 1;
	background-color: #f5f5f5;
	border-radius: 8px;
	overflow: hidden;
	display: flex;
	align-items: center;
	justify-content: center;
}

.main-image {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.3s ease;
}

.main-image-wrapper:hover .main-image {
	transform: scale(1.05);
}

/* ========== Zoom Modal ========== */
.missinterschools-zoom-modal {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background-color: rgba(0, 0, 0, 0.95);
	display: flex;
	align-items: center;
	justify-content: center;
	z-index: 99999;
	animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
	from {
		opacity: 0;
	}
	to {
		opacity: 1;
	}
}

.missinterschools-zoom-container {
	position: relative;
	width: 90%;
	height: 90vh;
	display: flex;
	align-items: center;
	justify-content: center;
	overflow: hidden;
}

.missinterschools-zoom-image {
	max-width: 100%;
	max-height: 100%;
	object-fit: contain;
	cursor: zoom-out;
}

.missinterschools-zoom-close {
	position: fixed;
	top: 30px;
	right: 40px;
	font-size: 50px;
	color: white;
	cursor: pointer;
	transition: all 0.3s;
	z-index: 100000;
	user-select: none;
	line-height: 1;
}

.missinterschools-zoom-close:hover {
	color: #ccc;
	transform: scale(1.2);
}

.zoom-icon {
	position: absolute;
	top: 15px;
	right: 15px;
	width: 40px;
	height: 40px;
	background-color: rgba(0, 0, 0, 0.6);
	color: white;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 18px;
	cursor: pointer;
	transition: all 0.3s;
	opacity: 0;
}

.main-image-wrapper:hover .zoom-icon {
	opacity: 1;
}

.zoom-icon:hover {
	background-color: rgba(0, 0, 0, 0.8);
	transform: scale(1.1);
}

/* Thumbnail Gallery */
.thumbnail-gallery {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
	gap: 10px;
}

.thumbnail-item {
	width: 100%;
	aspect-ratio: 1;
	border: 2px solid #ddd;
	border-radius: 6px;
	overflow: hidden;
	cursor: pointer;
	transition: all 0.3s;
	background-color: #f9f9f9;
}

.thumbnail-item img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.3s;
}

.thumbnail-item:hover {
	border-color: #999;
}

.thumbnail-item:hover img {
	transform: scale(1.05);
}

.thumbnail-item.active {
	border-color: #333;
	box-shadow: 0 0 0 2px white, 0 0 0 4px #333;
}

/* ========== Content Section ========== */
.single-model-content {
	display: flex;
	flex-direction: column;
	gap: 25px;
}

.model-single-title {
	margin: 0;
	font-size: 28px;
	font-weight: 700;
	color: #333;
	line-height: 1.3;
}

/* Rating */
.model-rating {
	display: flex;
	align-items: center;
	gap: 10px;
}

.stars {
	display: flex;
	gap: 2px;
}

.star {
	color: #ffc107;
	font-size: 16px;
}

.review-count {
	color: #666;
	font-size: 14px;
	border-left: 1px solid #ddd;
	padding-left: 10px;
}

/* Category */
.model-category,
.model-school-info,
.model-competitions-single {
	display: flex;
	gap: 10px;
	align-items: flex-start;
	font-size: 14px;
}

.category-label,
.school-label,
.competitions-label {
	font-weight: 600;
	color: #333;
	min-width: 100px;
}

.category-value,
.school-value {
	color: #666;
}

.competitions-list {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

.competition-badge {
	display: inline-block;
	padding: 6px 12px;
	background-color: #e8f0f7;
	color: #0073aa;
	border-radius: 20px;
	font-size: 12px;
	font-weight: 500;
}

/* Social Share */
.model-share {
	border-top: 1px solid #ddd;
	border-bottom: 1px solid #ddd;
	padding: 20px 0;
	display: flex;
	gap: 20px;
	align-items: center;
}

.share-label {
	font-weight: 600;
	color: #333;
	min-width: 50px;
}

.social-icons {
	display: flex;
	gap: 10px;
}

.social-icon {
	width: 40px;
	height: 40px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	border: 1px solid #ddd;
	border-radius: 6px;
	color: #666;
	text-decoration: none;
	transition: all 0.3s;
}

.social-icon:hover {
	background-color: #f5f5f5;
	border-color: #999;
	color: #333;
}

.social-icon.twitter:hover {
	background-color: #1da1f2;
	color: white;
	border-color: #1da1f2;
}

.social-icon.facebook:hover {
	background-color: #1877f2;
	color: white;
	border-color: #1877f2;
}

.social-icon.pinterest:hover {
	background-color: #e60023;
	color: white;
	border-color: #e60023;
}

.social-icon.linkedin:hover {
	background-color: #0a66c2;
	color: white;
	border-color: #0a66c2;
}

/* Description */
.model-description {
	margin-top: 20px;
}

.model-description h2 {
	font-size: 18px;
	font-weight: 600;
	color: #333;
	margin-bottom: 15px;
}

.model-description p {
	color: #666;
	line-height: 1.6;
	margin-bottom: 15px;
}

.model-description p:last-child {
	margin-bottom: 0;
}

/* ========== Comments Section ========== */
.missinterschools-comments-section {
	max-width: 1200px;
	margin: 60px auto 0;
	background-color: white;
	padding: 40px;
	border-radius: 8px;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.missinterschools-comments-section h3 {
	font-size: 20px;
	font-weight: 600;
	color: #333;
	margin-bottom: 30px;
}

/* Comments List */
#comments {
	margin-bottom: 40px;
}

.commentlist {
	list-style: none;
	margin: 0;
	padding: 0;
}

.commentlist li {
	margin-bottom: 30px;
	padding-bottom: 30px;
	border-bottom: 1px solid #eee;
}

.commentlist li:last-child {
	border-bottom: none;
	margin-bottom: 0;
	padding-bottom: 0;
}

.comment {
	display: flex;
	gap: 20px;
}

.comment-avatar {
	flex: 0 0 50px;
}

.comment-avatar img {
	width: 50px;
	height: 50px;
	border-radius: 50%;
	object-fit: cover;
}

.comment-meta {
	flex: 1;
}

.comment-author.fn {
	font-weight: 600;
	color: #333;
	margin: 0;
	display: block;
	margin-bottom: 5px;
}

.comment-meta a {
	color: inherit;
	text-decoration: none;
}

.comment-metadata {
	font-size: 12px;
	color: #999;
	margin-bottom: 10px;
}

.comment-text {
	color: #666;
	line-height: 1.6;
	margin-bottom: 10px;
}

.comment-text p {
	margin: 0 0 10px 0;
}

.comment-reply-link,
.comment-edit-link {
	font-size: 12px;
	color: #0073aa;
	text-decoration: none;
	margin-right: 15px;
}

.comment-reply-link:hover,
.comment-edit-link:hover {
	text-decoration: underline;
}

/* Comment Form */
#respond {
	margin-top: 40px;
	padding-top: 40px;
	border-top: 1px solid #ddd;
}

#respond h3 {
	font-size: 18px;
	font-weight: 600;
	color: #333;
	margin-bottom: 20px;
}

.comment-form {
	display: flex;
	flex-direction: column;
	gap: 15px;
}

.comment-form-author,
.comment-form-email,
.comment-form-url,
.comment-form-comment {
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.comment-form label {
	font-weight: 600;
	color: #333;
	font-size: 14px;
}

.comment-form input,
.comment-form textarea {
	padding: 10px 12px;
	border: 1px solid #ddd;
	border-radius: 4px;
	font-family: inherit;
	font-size: 14px;
	transition: border-color 0.3s;
}

.comment-form input:focus,
.comment-form textarea:focus {
	outline: none;
	border-color: #0073aa;
	box-shadow: 0 0 0 3px rgba(0, 115, 170, 0.1);
}

.comment-form textarea {
	resize: vertical;
	min-height: 120px;
}

.form-submit {
	display: flex;
	gap: 10px;
}

.comment-form input[type="submit"] {
	padding: 10px 25px;
	background-color: #333;
	color: white;
	border: none;
	border-radius: 4px;
	cursor: pointer;
	font-weight: 600;
	transition: background-color 0.3s;
}

.comment-form input[type="submit"]:hover {
	background-color: #0073aa;
}

.required {
	color: #e74c3c;
}

.comment-form-comment p {
	margin: 0;
}

/* ========== Related Models Section ========== */
.missinterschools-related-section {
	max-width: 1200px;
	margin: 10px auto 0;
	background-color: white;
	padding: 40px;
	border-radius: 8px;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.related-container {
	display: flex;
	flex-direction: column;
	gap: 30px;
}

.related-title {
	font-size: 24px;
	font-weight: 700;
	color: #333;
	margin: 0;
	padding: 0;
}

.related-models-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
	gap: 20px;
}

.related-model-card {
	background-color: #fff;
	border: 1px solid #eee;
	border-radius: 6px;
	overflow: hidden;
	transition: all 0.3s;
	display: flex;
	flex-direction: column;
	height: 100%;
}

.related-model-card:hover {
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
	border-color: #ddd;
	transform: translateY(-2px);
}

.related-model-image {
	width: 100%;
	aspect-ratio: 1;
	overflow: hidden;
	background-color: #f5f5f5;
	display: flex;
	align-items: center;
	justify-content: center;
}

.related-model-image a {
	display: block;
	width: 100%;
	height: 100%;
}

.related-model-image img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.3s;
	display: block;
}

.related-model-card:hover .related-model-image img {
	transform: scale(1.05);
}

.related-model-info {
	padding: 15px;
	flex: 1;
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.related-model-title {
	margin: 0;
	padding: 0;
	font-size: 14px;
	font-weight: 600;
	line-height: 1.4;
}

.related-model-title a {
	color: #333;
	text-decoration: none;
	transition: color 0.2s;
}

.related-model-title a:hover {
	color: #0073aa;
}

.related-model-school {
	margin: 0;
	padding: 0;
	font-size: 12px;
	color: #666;
	line-height: 1.4;
}

.related-model-link {
	display: inline-block;
	color: #0073aa;
	text-decoration: none;
	font-size: 13px;
	font-weight: 600;
	margin-top: auto;
	transition: color 0.2s;
}

.related-model-link:hover {
	color: #005a87;
	text-decoration: underline;
}

/* ========== Responsive Design ========== */
@media (max-width: 768px) {
	.missinterschools-single-container {
		grid-template-columns: 1fr;
		padding: 20px;
		gap: 30px;
		display: flex;
		flex-direction: column;
	}

	/* Gallery appears first */
	.single-model-gallery {
		order: -1;
		width: 100%;
	}

	/* Content appears second */
	.single-model-content {
		order: 0;
		width: 100%;
	}

	.model-single-title {
		font-size: 22px;
	}

	.main-image-wrapper {
		aspect-ratio: 1;
	}

	.thumbnail-gallery {
		grid-template-columns: repeat(auto-fill, minmax(60px, 1fr));
		gap: 8px;
	}

	.model-share {
		flex-direction: column;
		align-items: flex-start;
	}

	.social-icons {
		flex-wrap: wrap;
	}

	.missinterschools-related-section {
		padding: 20px;
	}

	.related-title {
		font-size: 20px;
	}

	.related-models-grid {
		grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
		gap: 15px;
	}

	.related-model-info {
		padding: 12px;
		gap: 8px;
	}

	.related-model-title {
		font-size: 12px;
	}

	.related-model-school {
		font-size: 11px;
	}
}

@media (max-width: 600px) {
	.missinterschools-single-wrapper {
		padding: 20px 10px;
	}

	.missinterschools-single-container {
		padding: 15px;
		gap: 20px;
		display: flex;
		flex-direction: column;
	}

	/* Ensure gallery is first on mobile */
	.single-model-gallery {
		order: -1;
		width: 100%;
	}

	.single-model-content {
		order: 0;
		width: 100%;
	}

	.model-single-title {
		font-size: 18px;
	}

	.thumbnail-gallery {
		grid-template-columns: repeat(auto-fill, minmax(50px, 1fr));
	}

	.comment {
		flex-direction: column;
	}

	.comment-avatar {
		flex: 0 0 auto;
	}

	.model-category,
	.model-school-info,
	.model-competitions-single {
		flex-direction: column;
		gap: 5px;
	}

	.category-label,
	.school-label,
	.competitions-label {
		min-width: auto;
	}

	.missinterschools-related-section {
		padding: 15px;
	}

	.related-title {
		font-size: 18px;
	}

	.related-models-grid {
		grid-template-columns: repeat(2, 1fr);
		gap: 12px;
	}

	.related-model-card {
		border-radius: 4px;
	}

	.related-model-info {
		padding: 10px;
	}
}

