/* ===== STUDENT MOMENTS SECTION STYLES ===== */

/* Section Title */
.sm-section-title {
	font-size: 42px;
	font-weight: 800;
	color: #1a1a1a;
	margin-bottom: 15px;
	letter-spacing: -1px;
}

.sm-section-subtitle {
	font-size: 16px;
	color: #666;
	margin-bottom: 50px;
	font-weight: 500;
}

.sm-title-accent {
	display: inline-block;
	width: 60px;
	height: 5px;
	background: #111111;
	margin-bottom: 20px;
	border-radius: 3px;
}

/* ===== MIXED STORY + IMAGE SECTION ===== */
.sm-story-image-section {
	padding: 80px 0;
	background: #fff;
}

.sm-story-image-item {
	display: grid;
	grid-template-columns: 1fr auto 1fr;
	gap: 0;
	align-items: center;
	/* margin-bottom: 80px; */
	position: relative;
}

.sm-story-image-item.reverse {
	direction: ltr;
}

/* Center Divider Line with Icon */
.sm-center-divider {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 0;
	position: relative;
	width: 80px;
	min-height: 400px;
	order: 2;
}

.sm-divider-line {
	position: absolute;
	left: 50%;
	transform: translateX(-50%);
	width: 3px;
	height: 100%;
	background: #000000;
	z-index: 1;
}

.sm-center-icon {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 60px;
	height: 60px;
	background: linear-gradient(135deg, #111111 0%, #252525 100%);
	border: 4px solid #fff;
	border-radius: 50%;
	font-size: 24px;
	color: #ffffff;
	box-shadow: 0 0 30px rgba(0, 0, 0, 0.25);
	z-index: 2;
	transition: all 0.4s ease;
	position: relative;
}

.sm-center-icon i,
.sm-story-icon i {
	color: #ffffff;
	line-height: 1;
}

.sm-story-image-item:hover .sm-center-icon {
	transform: scale(1.2) rotate(360deg);
	box-shadow: 0 0 50px rgba(0, 0, 0, 0.35);
}

/* Story Content */
.sm-story-block {
	padding: 40px;
	background: linear-gradient(135deg, #f8f9fa 0%, #fff 100%);
	border-radius: 20px;
	border-left: 5px solid #ff0000;
	transition: all 0.4s ease;
	order: 1;
}

.sm-story-image-item.reverse .sm-story-block {
	border-left: 5px solid #ff0000;
	border-right: none;
	order: 3;
}

.sm-story-image-item:hover .sm-story-block {
	box-shadow: 0 15px 50px rgba(0, 0, 0, 0.12);
	transform: translateX(-10px);
}

.sm-story-image-item.reverse:hover .sm-story-block {
	transform: translateX(10px);
}

.sm-story-header {
	display: flex;
	align-items: center;
	gap: 15px;
	margin-bottom: 20px;
}

.sm-story-icon {
	font-size: 22px;
	width: 50px;
	height: 50px;
	background: linear-gradient(135deg, #111111 0%, #2a2a2a 100%);
	border: 1px solid rgba(255, 255, 255, 0.08);
	border-radius: 12px;
	display: flex;
	align-items: center;
	justify-content: center;
	color: #ffffff;
	box-shadow: 0 12px 26px rgba(0, 0, 0, 0.18);
}

.sm-story-date {
	background: #111111;
	color: #fff;
	padding: 5px 14px;
	border-radius: 15px;
	font-size: 11px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.5px;
}

.sm-story-block h3 {
	font-size: 28px;
	font-weight: 700;
	color: #1a1a1a;
	margin: 15px 0;
	letter-spacing: -0.5px;
}

.sm-story-block p {
	font-size: 15px;
	line-height: 1.8;
	color: #666;
	margin: 15px 0 0 0;
}

/* Image Block */
.sm-image-block {
	position: relative;
	border-radius: 20px;
	overflow: hidden;
	height: 400px;
	background: #000;
	box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
	transition: all 0.4s ease;
	order: 3;
}

.sm-story-image-item.reverse .sm-image-block {
	order: 1;
}

.sm-image-block img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: all 0.5s ease;
}

.sm-image-overlay {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: linear-gradient(135deg, rgba(17, 17, 17, 0.22) 0%, rgba(0, 0, 0, 0.32) 100%);
	opacity: 0;
	transition: all 0.4s ease;
}

.sm-story-image-item:hover .sm-image-block {
	box-shadow: 0 30px 80px rgba(0, 0, 0, 0.22);
	transform: translateY(-10px);
}

.sm-story-image-item:hover .sm-image-block img {
	transform: scale(1.08);
}

.sm-story-image-item:hover .sm-image-overlay {
	opacity: 1;
}

/* Gallery Grid - Masonry Style */
.sm-gallery-title-wrapper {
	margin-bottom: 50px;
	padding-bottom: 30px;
	border-bottom: 3px solid #ff0000;
}

.sm-gallery-grid {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 20px;
	margin-bottom: 60px;
}

/* Masonry items - uniform sizing */
.sm-gallery-item {
	position: relative;
	border-radius: 16px;
	overflow: hidden;
	background: #000;
	aspect-ratio: 1;
	cursor: pointer;
}

.sm-gallery-item:nth-child(3n) {
	grid-column: span 1;
	aspect-ratio: 1;
}

.sm-gallery-item:nth-child(5n) {
	aspect-ratio: 1;
}

.sm-gallery-item img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: all 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.sm-gallery-item::before {
	content: '';
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: linear-gradient(135deg, rgba(255, 0, 0, 0.4) 0%, rgba(0, 0, 0, 0.3) 100%);
	opacity: 0;
	transition: all 0.4s ease;
	z-index: 2;
}

.sm-gallery-item:hover::before {
	opacity: 1;
}

.sm-gallery-item:hover img {
	transform: scale(1.08) rotate(2deg);
	filter: brightness(1.1);
}

/* Gallery Item Label */
.sm-gallery-label {
	position: absolute;
	bottom: 0;
	left: 0;
	width: 100%;
	padding: 20px;
	background: linear-gradient(to top, rgba(0, 0, 0, 0.9), transparent);
	color: #fff;
	font-size: 12px;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 1px;
	opacity: 0;
	transform: translateY(10px);
	transition: all 0.3s ease;
	z-index: 3;
}

.sm-gallery-item:hover .sm-gallery-label {
	opacity: 1;
	transform: translateY(0);
}

/* Pagination Styles */
.sm-pagination {
	display: flex;
	justify-content: center;
	align-items: center;
	gap: 10px;
	margin-top: 50px;
	flex-wrap: wrap;
}

.sm-pagination a,
.sm-pagination span {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 44px;
	height: 44px;
	padding: 0 14px;
	border-radius: 999px;
	font-weight: 600;
	text-decoration: none;
	transition: all 0.3s ease;
	font-size: 14px;
	line-height: 1;
}

.sm-pagination a {
	background: #f4f4f4;
	color: #1a1a1a;
	border: 1px solid rgba(0, 0, 0, 0.08);
	box-shadow: 0 8px 18px rgba(15, 23, 42, 0.06);
}

.sm-pagination a:hover {
	background: #111111;
	color: #fff;
	box-shadow: 0 12px 24px rgba(17, 17, 17, 0.18);
	transform: translateY(-2px);
}

.sm-pagination .active {
	background: linear-gradient(135deg, #ff0000, #ff3333);
	color: #fff;
	border: 1px solid #ff0000;
	box-shadow: 0 5px 20px rgba(255, 0, 0, 0.4);
	transform: translateY(-1px);
}

.sm-pagination .page-nav {
	min-width: 110px;
	padding: 0 18px;
	font-weight: 700;
}

.sm-pagination .page-prev {
	background: #111111;
	color: #fff;
	border-color: #111111;
}

.sm-pagination .page-prev:hover {
	background: #000000;
	color: #fff;
	box-shadow: 0 12px 24px rgba(0, 0, 0, 0.22);
}

.sm-pagination .page-next {
	background: linear-gradient(135deg, #ff0000, #d10000);
	color: #fff;
	border-color: #ff0000;
}

.sm-pagination .page-next:hover {
	background: linear-gradient(135deg, #d10000, #b30000);
	color: #fff;
	box-shadow: 0 12px 24px rgba(209, 0, 0, 0.28);
}

.sm-pagination .dots {
	width: auto;
	padding: 0 5px;
	background: none;
	cursor: default;
}

.sm-pagination .dots:hover {
	background: none;
	box-shadow: none;
	transform: none;
}

/* Lightbox Modal */
.sm-lightbox-modal {
	display: none;
	position: fixed;
	z-index: 1000;
	left: 0;
	top: 0;
	width: 100%;
	height: 100%;
	background-color: rgba(0, 0, 0, 0.95);
	animation: fadeIn 0.3s ease;
}

.sm-lightbox-modal.active {
	display: flex;
	align-items: center;
	justify-content: center;
}

@keyframes fadeIn {
	from {
		opacity: 0;
	}

	to {
		opacity: 1;
	}
}

.sm-modal-content {
	position: relative;
	max-width: 90%;
	max-height: 90vh;
	animation: zoomIn 0.3s ease;
}

@keyframes zoomIn {
	from {
		transform: scale(0.8);
		opacity: 0;
	}

	to {
		transform: scale(1);
		opacity: 1;
	}
}

.sm-modal-content img {
	max-width: 100%;
	max-height: 85vh;
	object-fit: contain;
	border-radius: 12px;
}

.sm-modal-close {
	position: absolute;
	top: 20px;
	right: 40px;
	font-size: 40px;
	font-weight: bold;
	color: #fff;
	cursor: pointer;
	transition: all 0.3s ease;
	z-index: 1001;
}

.sm-modal-close:hover {
	color: #ff0000;
	transform: rotate(90deg);
}

.sm-modal-nav {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	font-size: 30px;
	color: #fff;
	cursor: pointer;
	padding: 20px;
	transition: all 0.3s ease;
	z-index: 1001;
}

.sm-modal-nav:hover {
	color: #ff0000;
}

.sm-modal-prev {
	left: 20px;
}

.sm-modal-next {
	right: 20px;
}

/* ===== TIMELINE RESPONSIVE DESIGN ===== */

/* Responsive Design */
/* Responsive Design */
@media (max-width: 1024px) {
	.sm-story-image-item {
		gap: 0;
		margin-bottom: 60px;
	}

	.sm-center-divider {
		width: 60px;
		min-height: 350px;
	}

	.sm-story-block {
		padding: 30px;
	}

	.sm-story-block h3 {
		font-size: 24px;
	}

	.sm-image-block {
		height: 350px;
	}

	.sm-gallery-grid {
		grid-template-columns: repeat(3, 1fr);
		gap: 15px;
	}
}

@media (max-width: 768px) {
	.sm-story-image-section {
		padding: 50px 0;
	}

	.sm-story-image-item {
		grid-template-columns: 1fr;
		gap: 30px;
		margin-bottom: 50px;
	}

	.sm-story-image-item.reverse {
		direction: ltr;
	}

	.sm-center-divider {
		display: none;
	}

	.sm-story-block {
		padding: 20px;
		border-left: 5px solid #ff0000;
		border-right: none;
		order: auto !important;
	}

	.sm-story-image-item.reverse .sm-story-block {
		border-left: 5px solid #ff0000;
		border-right: none;
		order: auto !important;
	}

	.sm-story-block h3 {
		font-size: 22px;
	}

	.sm-story-block p {
		font-size: 14px;
	}

	.sm-image-block {
		height: 300px;
		order: auto !important;
	}

	.sm-story-image-item.reverse .sm-image-block {
		order: auto !important;
	}

	.sm-section-title {
		font-size: 32px;
	}

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

	.sm-modal-close {
		top: 15px;
		right: 20px;
		font-size: 35px;
	}

	.sm-modal-nav {
		font-size: 26px;
		padding: 15px;
	}

	.sm-modal-prev {
		left: 15px;
	}

	.sm-modal-next {
		right: 15px;
	}
}

@media (max-width: 480px) {
	.sm-story-image-item {
		margin-bottom: 40px;
	}

	.sm-story-block {
		padding: 15px;
	}

	.sm-story-block h3 {
		font-size: 18px;
	}

	.sm-story-block p {
		font-size: 13px;
	}

	.sm-image-block {
		height: 250px;
	}

	.sm-section-title {
		font-size: 26px;
	}

	.sm-gallery-grid {
		grid-template-columns: 1fr;
		gap: 10px;
	}

	.sm-modal-close {
		top: 10px;
		right: 15px;
		font-size: 30px;
	}

	.sm-modal-nav {
		font-size: 22px;
		padding: 12px;
	}

	.sm-modal-prev {
		left: 10px;
	}

	.sm-modal-next {
		right: 10px;
	}

	.sm-pagination {
		gap: 5px;
	}

	.sm-pagination a:not(.page-nav),
	.sm-pagination span {
		width: 35px;
		height: 35px;
		min-width: 35px;
		padding: 0;
		font-size: 12px;
	}

	.sm-pagination .page-nav {
		min-width: 96px;
		height: 38px;
		padding: 0 12px;
		font-size: 12px;
	}
}
