/* ==========================================================================
   Raiganj University - Section shell, notice board, event strip
   File: assets/css/05-notices-events.css
   ======================================================================= */

/* ===== Section shell ===== */
section.block, div.block {
	max-width: 1280px;
	margin: 0 auto;
	padding: 72px 24px;
}

.section-head {
	display: flex;
	justify-content: space-between;
	align-items: flex-end;
	gap: 24px;
	margin-bottom: 36px;
	flex-wrap: wrap;
}

	.section-head h2 {
		font-size: clamp(26px,3.2vw,36px);
		color: var(--maroon-dark);
		margin-top: 8px;
	}

.link-more {
	font-size: 13.5px;
	font-weight: 600;
	border-bottom: 1px solid var(--maroon);
	padding-bottom: 2px;
}

/* Quick links / explore cards */
.card-grid {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 1px;
	background: var(--line);
	border: 1px solid var(--line);
}

.card {
	background: var(--cream);
	padding: 28px 24px;
	min-height: 190px;
	display: flex;
	flex-direction: column;
	justify-content: space-between;
}

	.card .idx {
		font-family: 'IBM Plex Mono', monospace;
		font-size: 12px;
		color: var(--gold);
	}

	.card h3 {
		font-size: 18px;
		margin-top: 14px;
		color: var(--ink);
	}

	.card p {
		font-size: 13px;
		color: var(--ink-soft);
		margin: 8px 0 0;
		line-height: 1.5;
	}

	.card a.go {
		margin-top: 16px;
		font-size: 13px;
		font-weight: 600;
		color: var(--maroon);
	}

/* Notice board */
.notice-events-grid {
	display: grid;
	grid-template-columns: minmax(0,1fr) 320px;
	gap: 28px;
	align-items: stretch;
}

.notice-board {
	background: #fff;
	border: 1px solid var(--line);
	display: flex;
	flex-direction: column;
	min-width: 0;
}

.notice-board-footer {
	margin-top: auto;
	padding: 14px 24px;
	border-top: 1px solid var(--line);
	background: var(--paper);
}

.notice-tabs {
	display: flex;
	flex-wrap: wrap;
	background: var(--paper);
	border-bottom: 1px solid var(--line);
}

.notice-tab {
	padding: 11px 20px;
	font-size: 13px;
	font-weight: 600;
	color: var(--ink-soft);
	background: none;
	cursor: pointer;
	border: none;
	border-bottom: 3px solid transparent;
	font-family: inherit;
}

	.notice-tab:hover {
		color: var(--maroon-dark);
	}

	.notice-tab.active {
		color: var(--maroon-dark);
		background: #fff;
		border-bottom-color: var(--gold);
	}

.notice-panel {
	display: none;
}

	.notice-panel.active {
		display: block;
	}

/* ===== FIX: Fixed height for notice panels ===== */
.notice-panels {
	flex: 0 0 auto; /* Don't grow or shrink */
	height: 260px; /* Fixed height */
	overflow-y: auto; /* Enable scrolling if content overflows */
	min-height: 260px; /* Ensure minimum height */
	max-height: 260px; /* Ensure maximum height */
}

/* ===== FIX: Consistent padding and spacing inside notice list ===== */
.notice-list {
	list-style: none;
	margin: 0;
	padding: 0;
}

	.notice-list li {
		display: flex;
		align-items: baseline;
		gap: 18px;
		padding: 11px 24px;
		border-bottom: 1px solid var(--line);
		min-height: 48px; /* Consistent height for each item */
	}

		.notice-list li:last-child {
			border-bottom: none;
		}

	.notice-list .date {
		font-family: 'IBM Plex Mono', monospace;
		font-size: 11px;
		color: var(--maroon);
		white-space: nowrap;
		min-width: 56px;
	}

	.notice-list a {
		font-size: 14px;
		color: var(--ink);
		line-height: 1.4;
		flex: 1;
		/* Prevent long words from breaking layout */
		word-break: break-word;
	}

		.notice-list a:hover {
			color: var(--maroon-dark);
			text-decoration: underline;
			text-underline-offset: 3px;
		}

	.notice-list .tag {
		font-family: 'IBM Plex Mono', monospace;
		font-size: 9.5px;
		letter-spacing: .04em;
		text-transform: uppercase;
		color: var(--ink-soft);
		border: 1px solid var(--line);
		padding: 4px 9px;
		white-space: nowrap;
		flex-shrink: 0;
	}

/* Optional: Scrollbar styling for better UX */
.notice-panels::-webkit-scrollbar {
	width: 4px;
}

.notice-panels::-webkit-scrollbar-track {
	background: var(--paper);
}

.notice-panels::-webkit-scrollbar-thumb {
	background: var(--gold);
	border-radius: 4px;
}

	.notice-panels::-webkit-scrollbar-thumb:hover {
		background: var(--maroon);
	}

/* Event banner strip - four images in a row */
.banner-strip-wrap {
	margin-top: 36px;
}

.banner-strip {
	display: grid;
	grid-template-columns: repeat(4,1fr);
	gap: 18px;
}

.banner-strip-item {
	display: block;
	aspect-ratio: 3/4;
	border-radius: 10px;
	overflow: hidden;
	border: 1px solid var(--line);
	box-shadow: 0 12px 28px rgba(20,10,8,0.10);
	position: relative;
}

	.banner-strip-item img {
		width: 100%;
		height: 100%;
		object-fit: cover;
		transition: transform .4s ease;
	}

	.banner-strip-item:hover img {
		transform: scale(1.06);
	}

@media (max-width:900px) {
	.banner-strip {
		grid-template-columns: repeat(2,1fr);
	}
}

@media (max-width:520px) {
	.banner-strip {
		grid-template-columns: 1fr;
	}
}

/* Events side panel */
.events-panel {
	background: var(--paper);
	border: 1px solid var(--line);
	border-top: 3px solid var(--maroon);
	border-radius: 25px;
	padding: 18px 20px 20px;
	display: flex;
	flex-direction: column;
	min-width: 0;
}

.events-panel-head {
	margin-bottom: 4px;
}

	.events-panel-head h3 {
		font-size: 18px;
		color: var(--maroon-dark);
		margin-top: 4px;
	}

.event-mini-list {
	list-style: none;
	margin: 10px 0 16px;
	padding: 0;
	flex: 1;
	max-height: 260px;
	overflow-y: auto;
}

	.event-mini-list li {
		padding: 9px 0;
		border-top: 1px solid var(--line);
	}

		.event-mini-list li:first-child {
			border-top: none;
		}

	.event-mini-list .date {
		display: block;
		font-family: 'IBM Plex Mono', monospace;
		font-size: 10.5px;
		color: var(--maroon);
		letter-spacing: .04em;
		margin-bottom: 4px;
	}

	.event-mini-list a {
		font-size: 13.5px;
		line-height: 1.4;
		color: var(--ink);
	}

		.event-mini-list a:hover {
			color: var(--maroon-dark);
			text-decoration: underline;
			text-underline-offset: 3px;
		}

.view-all-btn {
	width: 100%;
	justify-content: center;
}

.view-all-notices-btn {
	display: flex;
	width: fit-content;
	margin: 0 auto;
	padding: 11px 18px;
}

/* ===== Responsive adjustments ===== */
@media (max-width: 768px) {
	.notice-events-grid {
		grid-template-columns: 1fr;
	}

	.notice-panels {
		height: 220px;
		min-height: 220px;
		max-height: 220px;
	}

	.notice-list li {
		padding: 9px 16px;
		gap: 12px;
	}
}

@media (max-width: 480px) {
	.notice-panels {
		height: 200px;
		min-height: 200px;
		max-height: 200px;
	}

	.notice-list li {
		padding: 8px 12px;
		gap: 10px;
		font-size: 13px;
	}

	.notice-list .date {
		font-size: 10px;
		min-width: 44px;
	}
}
