/* ===== PRACTICAL SCIENCE - CUSTOM CSS ===== */
/* Hide redundant "Home" title on homepage */
.page-id-9002 .entry-title {
	display: none;
}

/* --- BUTTONS --- */
.wp-block-button .wp-block-button__link {
	background-color: #2B5797 !important;
	color: #ffffff !important;
	border-radius: 6px;
	padding: 12px 24px;
	font-weight: 600;
	transition: background-color .2s ease, transform .2s ease, box-shadow .2s ease;
	box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.wp-block-button .wp-block-button__link:hover {
	background-color: #1a3d6e !important;
	transform: translateY(-2px);
	box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

/* --- HOMEPAGE SECTION HEADINGS --- */
.entry-content h2 {
	color: #2B5797;
	border-bottom: 2px solid #2B5797;
	padding-bottom: 8px;
	margin-top: 2em;
}

/* --- LATEST POSTS BLOCK --- */
.wp-block-latest-posts a {
	color: #2B5797;
	font-weight: 600;
	text-decoration: none;
}

.wp-block-latest-posts a:hover {
	color: #1a3d6e;
	text-decoration: underline;
}

.wp-block-latest-posts li {
	padding: 16px 0;
	border-bottom: 1px solid #e8e8e8;
}

/* --- POST/ARCHIVE LINK COLOURS --- */
.entry-content a {
	color: #2B5797;
}

.entry-content a:hover {
	color: #1a3d6e;
}

/* --- NAVIGATION IMPROVEMENTS --- */
.menu-item a {
	transition: opacity .2s ease;
}

.menu-item a:hover {
	opacity: .85;
}

/* --- CATEGORY ARCHIVE IMPROVEMENTS --- */
.archive .page-title {
	color: #2B5797;
	border-bottom: 3px solid #2B5797;
	padding-bottom: 10px;
}

.archive .taxonomy-description {
	font-size: 16px;
	line-height: 1.6;
	color: #444;
	margin-bottom: 2em;
	padding: 16px 20px;
	background: #f4f7fb;
	border-left: 4px solid #2B5797;
	border-radius: 4px;
}

/* --- SINGLE POST IMPROVEMENTS --- */
.single .entry-title {
	color: #1a1a1a;
	line-height: 1.3;
}

.single .entry-content h2,
.single .entry-content h3 {
	margin-top: 1.8em;
}

/* Better table styling for practicals */
.entry-content table {
	border-collapse: collapse;
	width: 100%;
	margin: 1.5em 0;
}

.entry-content table th,
.entry-content table td {
	border: 1px solid #ddd;
	padding: 10px 14px;
	text-align: left;
}

.entry-content table th {
	background-color: #2B5797;
	color: #fff;
	font-weight: 600;
}

.entry-content table tr:nth-child(even) {
	background-color: #f8f9fa;
}

/* --- COLUMNS BLOCK (subject grid) --- */
.wp-block-columns {
	gap: 24px;
}

.wp-block-column {
	padding: 16px;
	border-radius: 8px;
	transition: box-shadow .2s ease;
}

.wp-block-column:hover {
	box-shadow: 0 2px 12px rgba(0,0,0,0.08);
}

/* --- MOBILE RESPONSIVE --- */
@media (max-width: 600px) {
	.wp-block-button .wp-block-button__link {
		padding: 10px 18px;
		font-size: 14px;
	}
	
	.entry-content h2 {
		font-size: 22px;
	}
}

/* --- FOOTER CLEANUP --- */
.site-footer {
	border-top: 2px solid #2B5797;
}

/* --- SEARCH RESULTS --- */
.search-results .entry-title a {
	color: #2B5797;
}

.search-results .entry-summary {
	color: #555;
	line-height: 1.6;
}

/* --- PRINT STYLES (students printing practicals) --- */
@media print {
	.site-header,
		.site-footer,
		.menu-primary-container,
		.sharedaddy,
		.jp-relatedposts,
		#wpadminbar {
		display: none !important;
	}
	
	.entry-content {
		font-size: 12pt;
		line-height: 1.5;
	}
	
	.entry-content table th {
		background-color: #ddd !important;
		color: #000 !important;
	}
}