/*
 * JUAAN revamp — header, footer and home components.
 * Loaded after assets/css/style.css; all selectors are prefixed with .jn-
 */

:root {
	--jn-primary: #2c5aa0;
	--jn-primary-dark: #1e3d6f;
	--jn-accent: #4a74b3;
	--jn-bg: #f8f9fa;
	--jn-text: #333;
	--jn-muted: #666;
	--jn-radius: 10px;
	--jn-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

body {
	background: var(--jn-bg);
	color: var(--jn-text);
	font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
	line-height: 1.6;
}

/* ---------- Header ---------- */
.jn-header {
	position: sticky;
	top: 0;
	z-index: 1000;
	background: #fff;
	box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.admin-bar .jn-header {
	top: 32px;
}

@media (max-width: 782px) {
	.admin-bar .jn-header { top: 46px; }
}

/* WP admin bar stops being fixed below 600px */
@media (max-width: 600px) {
	.admin-bar .jn-header { top: 0; }
}

.jn-header-content {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	min-height: 80px;
	padding: 0.5rem 0;
}

.jn-logo-section {
	display: flex;
	align-items: center;
	gap: 0.85rem;
	flex: 1 1 auto;
	min-width: 0;
	text-decoration: none !important;
}

.jn-logo {
	width: 64px;
	height: 64px;
	object-fit: contain;
	flex-shrink: 0;
}

.jn-org-info {
	max-width: 220px;
	color: var(--jn-primary);
	font-weight: 700;
	font-size: 0.85rem;
	line-height: 1.35;
}

.jn-nav-menu {
	display: flex;
	align-items: center;
	list-style: none;
	margin: 0;
	padding: 0;
}

.jn-nav-menu > li {
	position: relative;
}

.jn-nav-menu > li > a {
	display: flex;
	align-items: center;
	padding: 1rem 0.8rem;
	color: var(--jn-text);
	font-weight: 700;
	font-size: 0.95rem;
	white-space: nowrap;
	text-decoration: none;
	transition: color 0.3s ease, background 0.3s ease;
}

.jn-nav-menu > li > a:hover,
.jn-nav-menu > li.active > a,
.jn-nav-menu > li.current-menu-item > a {
	color: var(--jn-primary);
	background: rgba(44, 90, 160, 0.05);
}

/* Walker outputs <b class="caret"> — render it as a chevron */
.jn-nav-menu .caret {
	display: inline-block;
	width: 7px;
	height: 7px;
	margin-left: 0.45rem;
	border: solid currentColor;
	border-width: 0 2px 2px 0;
	transform: rotate(45deg) translateY(-2px);
	transition: transform 0.3s ease;
}

.jn-nav-menu > li.dropdown:hover > a .caret {
	transform: rotate(-135deg) translateY(-2px);
}

.jn-nav-menu .dropdown-toggle::after {
	display: none;
}

.jn-nav-menu .submenu-opener {
	display: none;
}

.jn-nav-menu .dropdown-menu {
	display: block;
	position: absolute;
	top: 100%;
	left: 0;
	min-width: 220px;
	margin: 0;
	padding: 0.5rem 0;
	list-style: none;
	background: #fff;
	border: 0;
	border-radius: 5px;
	box-shadow: var(--jn-shadow);
	opacity: 0;
	visibility: hidden;
	transform: translateY(-10px);
	transition: all 0.3s ease;
	z-index: 1001;
}

.jn-nav-menu li:hover > .dropdown-menu,
.jn-nav-menu li:focus-within > .dropdown-menu {
	opacity: 1;
	visibility: visible;
	transform: translateY(0);
}

.jn-nav-menu .dropdown-menu .dropdown-menu {
	top: 0;
	left: 100%;
}

.jn-nav-menu .dropdown-menu a {
	display: block;
	padding: 0.65rem 1.4rem;
	color: var(--jn-text);
	font-weight: 600;
	font-size: 0.95rem;
	text-decoration: none;
	transition: all 0.3s ease;
}

.jn-nav-menu .dropdown-menu a:hover {
	background: rgba(44, 90, 160, 0.1);
	color: var(--jn-primary);
}

.jn-mobile-toggle {
	display: none;
	flex-direction: column;
	gap: 4px;
	padding: 0.5rem;
	background: none;
	border: 0;
	cursor: pointer;
}

.jn-mobile-toggle span {
	width: 25px;
	height: 3px;
	background: var(--jn-text);
	border-radius: 2px;
	transition: 0.3s;
}

.jn-mobile-toggle.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.jn-mobile-toggle.active span:nth-child(2) { opacity: 0; }
.jn-mobile-toggle.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

@media (max-width: 1199px) {
	.jn-nav-menu > li > a {
		padding: 1rem 0.55rem;
		font-size: 0.85rem;
	}
	.jn-org-info {
		font-size: 0.75rem;
		max-width: 260px;
	}
}

@media (max-width: 991px) {
	.jn-mobile-toggle {
		display: flex;
	}

	.jn-navigation {
		position: absolute;
		top: 100%;
		left: 0;
		right: 0;
		background: #fff;
		box-shadow: var(--jn-shadow);
		max-height: calc(100vh - 80px);
		overflow-y: auto;
		display: none;
	}

	.jn-navigation.active {
		display: block;
	}

	.jn-nav-menu {
		flex-direction: column;
		align-items: stretch;
	}

	.jn-nav-menu > li {
		border-bottom: 1px solid #eee;
	}

	.jn-nav-menu > li > a {
		justify-content: space-between;
		padding: 0.9rem 1.5rem;
		font-size: 0.95rem;
	}

	.jn-nav-menu .dropdown-menu,
	.jn-nav-menu .dropdown-menu .dropdown-menu {
		position: static;
		display: none;
		opacity: 1;
		visibility: visible;
		transform: none;
		box-shadow: none;
		width: 100%;
		background: var(--jn-bg);
		border-radius: 0;
	}

	.jn-nav-menu li.open > .dropdown-menu {
		display: block;
	}

	.jn-nav-menu li.open > a .caret {
		transform: rotate(-135deg) translateY(-2px);
	}

	.jn-nav-menu .dropdown-menu a {
		padding: 0.65rem 2.5rem;
	}
}

@media (max-width: 575px) {
	.jn-logo {
		width: 50px;
		height: 50px;
	}
	.jn-org-info {
		font-size: 0.7rem;
	}
}

/* ---------- Buttons & section headings ---------- */
.jn-btn {
	display: inline-block;
	padding: 0.75rem 1.5rem;
	background: var(--jn-primary);
	color: #fff !important;
	border-radius: 5px;
	font-weight: 600;
	text-decoration: none !important;
	transition: background 0.3s ease, transform 0.3s ease;
}

.jn-btn:hover {
	background: var(--jn-primary-dark);
	transform: translateY(-2px);
}

.jn-btn-dark { background: var(--jn-primary-dark); }
.jn-btn-dark:hover { background: #142a4d; }
.jn-btn-light { background: #fff; color: var(--jn-primary) !important; }
.jn-btn-light:hover { background: #e9eef7; }

.jn-section {
	padding: 5rem 0;
}

.jn-section-header {
	text-align: center;
	margin-bottom: 3rem;
}

.jn-subheading {
	display: block;
	margin-bottom: 0.5rem;
	color: var(--jn-accent);
	font-size: 0.9rem;
	font-weight: 700;
	letter-spacing: 2px;
	text-transform: uppercase;
}

.jn-section-title {
	margin: 0;
	color: var(--jn-primary);
	font-size: 2.5rem;
	font-weight: 700;
	text-align: center;
}

.jn-light {
	color: #fff !important;
}

.jn-section-title.jn-light {
	text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

.jn-view-all {
	margin-top: 2.5rem;
	text-align: center;
}

.jn-read-more {
	font-weight: 600;
	text-decoration: none !important;
}

.jn-read-more i {
	margin-left: 0.3rem;
	font-size: 0.8em;
	transition: transform 0.3s ease;
}

.jn-read-more:hover i {
	transform: translateX(4px);
}

/* ---------- Hero slider ---------- */
.jn-hero {
	padding: 2rem 20px;
}

.jn-hero-rounded {
	max-width: 1200px;
	margin: 0 auto;
	border-radius: 32px;
	overflow: hidden;
	background: #fff;
	box-shadow: 0 4px 24px rgba(0, 0, 0, 0.08);
}

.jn-hero-rounded {
	position: relative;
}

.jn-hero-slider .jn-slide {
	position: relative;
	height: 600px;
	overflow: hidden;
	background: var(--jn-primary-dark);
}

/* Slides are often posters, so show the whole image over a blurred copy */
.jn-slide-backdrop {
	position: absolute;
	inset: -30px;
	background-size: cover;
	background-position: center;
	filter: blur(24px) brightness(0.75);
}

.jn-slide-image {
	position: relative;
	width: 100%;
	height: 100%;
	object-fit: contain;
}

.jn-hero-slider .slick-dots {
	display: none !important;
}

.jn-slider-arrow {
	position: absolute;
	top: 50%;
	z-index: 5;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 50px;
	height: 50px;
	border: 0;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.25);
	color: #fff;
	font-size: 1.1rem;
	cursor: pointer;
	transform: translateY(-50%);
	transition: background 0.3s ease;
}

.jn-slider-arrow:hover {
	background: rgba(255, 255, 255, 0.45);
}

.jn-prev { left: 1.5rem; }
.jn-next { right: 1.5rem; }

.jn-slide-content {
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0;
	padding: 4rem 2.5rem 3.5rem;
	color: #fff;
	background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
}

.jn-slide-text {
	max-width: 700px;
}

.jn-slide-text,
.jn-slide-text * {
	color: #fff !important;
}

.jn-slide-text h1,
.jn-slide-text h2 {
	font-size: 2.5rem;
	font-weight: 700;
	margin-bottom: 1rem;
}

.jn-slide-text p {
	font-size: 1.1rem;
}

.jn-slide-content .jn-btn {
	margin-top: 1rem;
}

@media (max-width: 767px) {
	.jn-hero { padding: 1rem 12px; }
	.jn-hero-rounded { border-radius: 16px; }
	.jn-hero-slider .jn-slide { height: 400px; }
	.jn-slide-content { padding: 2rem 1.25rem 3rem; }
	.jn-slide-text h1,
	.jn-slide-text h2 { font-size: 1.5rem; }
	.jn-slide-text p { font-size: 0.95rem; }
}

/* ---------- Quick access (member block) ---------- */
.jn-quick-access {
	padding: 5rem 0;
	background: var(--jn-accent);
}

.jn-quick-access .jn-section-title {
	margin-bottom: 3rem;
}

.jn-quick-access-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(min(100%, 400px), 1fr));
	gap: 3rem;
}

.jn-access-card {
	background: #fff;
	border-radius: var(--jn-radius);
	overflow: hidden;
	box-shadow: var(--jn-shadow);
	transition: transform 0.3s ease;
}

.jn-access-card:hover {
	transform: translateY(-5px);
}

.jn-access-image img {
	display: block;
	width: 100%;
	height: 250px;
	object-fit: cover;
}

.jn-card-content {
	padding: 2rem;
}

.jn-card-content h3 {
	margin-bottom: 1.25rem;
	color: var(--jn-primary);
	font-size: 1.5rem;
	font-weight: 700;
}

.jn-card-content h3 i {
	margin-right: 0.4rem;
}

/* ---------- News ---------- */
.jn-recent-news {
	background: var(--jn-bg);
}

.jn-news-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr));
	gap: 2rem;
}

.jn-news-item {
	display: flex;
	flex-direction: column;
	background: var(--jn-accent);
	border-radius: var(--jn-radius);
	overflow: hidden;
	box-shadow: var(--jn-shadow);
	transition: transform 0.3s ease;
}

.jn-news-item:hover {
	transform: translateY(-5px);
}

.jn-news-image img {
	display: block;
	width: 100%;
	height: 200px;
	object-fit: cover;
}

.jn-news-content {
	display: flex;
	flex-direction: column;
	flex: 1;
	padding: 1.5rem;
	color: #fff;
}

.jn-news-date {
	font-size: 0.9rem;
	font-weight: 600;
	opacity: 0.9;
}

.jn-news-content h3 {
	margin: 0.5rem 0 1rem;
	font-size: 1.25rem;
	font-weight: 700;
	line-height: 1.35;
}

.jn-news-content h3 a,
.jn-news-content .jn-read-more {
	color: #fff !important;
	text-decoration: none;
}

.jn-news-content h3:empty,
.jn-news-content h3:has(> a:empty) {
	display: none;
}

.jn-news-content p {
	flex: 1;
	margin-bottom: 1rem;
	color: rgba(255, 255, 255, 0.92);
}

/* ---------- Events ---------- */
.jn-recent-events {
	background: var(--jn-accent);
}

.jn-events-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(min(100%, 480px), 1fr));
	gap: 2rem;
}

.jn-event-item {
	display: flex;
	align-items: flex-start;
	gap: 1.5rem;
	padding: 2rem;
	background: #fff;
	border-radius: var(--jn-radius);
	box-shadow: var(--jn-shadow);
	transition: transform 0.3s ease;
}

.jn-event-item:hover {
	transform: translateY(-5px);
}

.jn-event-date {
	flex-shrink: 0;
	min-width: 80px;
	padding: 1rem;
	background: var(--jn-primary);
	color: #fff;
	border-radius: var(--jn-radius);
	text-align: center;
}

.jn-day {
	display: block;
	font-size: 2rem;
	font-weight: 700;
	line-height: 1;
}

.jn-month {
	display: block;
	margin-top: 0.3rem;
	font-size: 0.8rem;
}

.jn-event-content {
	flex: 1;
	min-width: 0;
}

.jn-event-content h3 {
	margin-bottom: 0.5rem;
	font-size: 1.2rem;
	font-weight: 700;
}

.jn-event-content h3 a,
.jn-event-content .jn-read-more {
	color: var(--jn-primary);
	text-decoration: none;
}

.jn-event-content p {
	margin-bottom: 0.75rem;
	color: var(--jn-muted);
}

.jn-event-image img {
	width: 120px;
	height: 120px;
	object-fit: cover;
	border-radius: var(--jn-radius);
}

@media (max-width: 575px) {
	.jn-event-item {
		flex-direction: column;
		align-items: center;
		text-align: center;
	}
	.jn-event-image { display: none; }
}

/* ---------- Announcements ---------- */
.jn-announcements-list {
	display: grid;
	gap: 1.5rem;
	max-width: 960px;
	margin: 0 auto;
}

.jn-announcement-item {
	display: flex;
	gap: 1.75rem;
	padding: 2rem;
	background: #fff;
	border-left: 5px solid var(--jn-primary);
	border-radius: var(--jn-radius);
	box-shadow: var(--jn-shadow);
}

.jn-announcement-icon {
	display: flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
	width: 60px;
	height: 60px;
	background: var(--jn-primary);
	color: #fff;
	border-radius: 50%;
	font-size: 1.3rem;
}

.jn-announcement-content h3 {
	margin-bottom: 0.5rem;
	font-size: 1.2rem;
	font-weight: 700;
}

.jn-announcement-content h3 a {
	color: var(--jn-primary);
	text-decoration: none;
}

.jn-announcement-content p {
	margin-bottom: 0.75rem;
	color: var(--jn-muted);
}

.jn-announcement-date {
	color: #999;
	font-size: 0.9rem;
}

@media (max-width: 575px) {
	.jn-announcement-item {
		flex-direction: column;
		align-items: center;
		text-align: center;
	}
}

/* ---------- Gallery ---------- */
.jn-recently-uploaded {
	background: #fff;
}

.jn-gallery-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(min(100%, 250px), 1fr));
	gap: 1.5rem;
}

.jn-gallery-item a {
	position: relative;
	display: block;
	border-radius: var(--jn-radius);
	overflow: hidden;
}

.jn-gallery-item img {
	display: block;
	width: 100%;
	height: 250px;
	object-fit: cover;
	transition: transform 0.3s ease;
}

.jn-gallery-overlay {
	position: absolute;
	inset: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	background: rgba(44, 90, 160, 0.8);
	color: #fff;
	font-size: 2rem;
	opacity: 0;
	transition: opacity 0.3s ease;
}

.jn-gallery-item a:hover .jn-gallery-overlay { opacity: 1; }
.jn-gallery-item a:hover img { transform: scale(1.1); }

/* ---------- Footer ---------- */
.jn-footer {
	padding: 3.5rem 0 1rem;
	background: var(--jn-primary);
	color: #fff;
}

.jn-footer-content {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr));
	gap: 3rem;
	margin-bottom: 2rem;
}

.jn-footer-section h3 {
	margin-bottom: 1.5rem;
	color: #fff;
	font-size: 1.2rem;
	font-weight: 700;
}

.jn-footer-section,
.jn-footer-section p,
.jn-footer-section a {
	color: #fff;
}

.jn-footer-contact p {
	margin-bottom: 0.5rem;
}

.jn-footer-contact i {
	width: 20px;
	margin-right: 0.5rem;
}

.jn-footer-links {
	margin: 0;
	padding: 0;
	list-style: none;
}

.jn-footer-links li {
	margin-bottom: 0.5rem;
}

.jn-footer-links a,
.jn-footer-section a {
	text-decoration: none;
	transition: color 0.3s ease;
}

.jn-footer-links a:hover,
.jn-footer-section a:hover {
	color: #cdd9ee;
}

.jn-social-links {
	display: flex;
	gap: 1rem;
}

.jn-social-links a {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	background: rgba(255, 255, 255, 0.12);
	border-radius: 50%;
	transition: background 0.3s ease;
}

.jn-social-links a:hover {
	background: rgba(255, 255, 255, 0.25);
	color: #fff;
}

.jn-footer-bottom {
	padding-top: 1.5rem;
	border-top: 1px solid rgba(255, 255, 255, 0.2);
	color: #ccc;
	text-align: center;
	font-size: 0.9rem;
}

.jn-footer-bottom p {
	margin: 0;
}

.jn-footer-bottom a {
	color: #fff;
}

@media (max-width: 767px) {
	.jn-section,
	.jn-quick-access {
		padding: 3.5rem 0;
	}
	.jn-section-title {
		font-size: 2rem;
	}
	
	
}

/* ---------- Message from the President ---------- */
.jn-president-section {
	padding: 4rem 0;
	background: var(--jn-bg);
}

.jn-president-message {
	margin: 0 auto;
	overflow: hidden;
	background: #fff;
	border-radius: 12px;
	box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.jn-president-image-container {
	padding: 3rem 2rem 2rem;
	text-align: center;
	background: linear-gradient(135deg, var(--jn-primary) 0%, var(--jn-primary-dark) 100%);
}

.jn-president-image {
	width: 280px;
	max-width: 100%;
	height: 300px;
	object-fit: cover;
	object-position: top;
	border-radius: 50%;
	box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
	transition: transform 0.3s ease;
}

.jn-president-image:hover {
	transform: scale(1.02);
}

.jn-message-content {
	padding: 2rem 3rem 3rem;
}

.jn-message-header {
	margin-bottom: 2.5rem;
	padding-bottom: 2rem;
	border-bottom: 2px solid #e9ecef;
	text-align: center;
}

.jn-main-title {
	margin-bottom: 1.5rem;
	color: var(--jn-primary);
	font-size: 2.5rem;
	font-weight: 700;
	line-height: 1.2;
}

.jn-message-header p {
	margin-bottom: 1rem;
}

.jn-greeting-title {
	color: var(--jn-text);
	font-size: 1.5rem;
	font-weight: 600;
}

.jn-namaste {
	color: var(--jn-muted);
	font-size: 1.2rem;
	font-style: italic;
	font-weight: 500;
}

.jn-salutation {
	margin-bottom: 0 !important;
	color: var(--jn-text);
	font-size: 1.1rem;
	font-weight: 500;
}

.jn-message-body {
	color: #444;
	font-size: 1.05rem;
	line-height: 1.8;
}

.jn-message-body p {
	margin-bottom: 1.5rem;
	text-align: justify;
}

.jn-message-body strong {
	color: var(--jn-primary);
	font-weight: 600;
}

.jn-message-signature {
	margin-top: 2rem;
	padding-top: 1.5rem;
	border-top: 2px solid #e9ecef;
	color: var(--jn-text);
	font-size: 1.05rem;
	line-height: 1.7;
}

.jn-message-signature p {
	margin: 0;
}

@media (max-width: 767px) {
	.jn-president-section { padding: 1.5rem 0 2.5rem; }
	.jn-president-image-container { padding: 2rem 1rem 1.5rem; }
	.jn-president-image { width: 220px; height: 280px; }
	.jn-message-content { padding: 1.5rem 1.5rem 2.5rem; }
	.jn-main-title { font-size: 2rem; }
	.jn-greeting-title { font-size: 1.3rem; }
	.jn-message-body { font-size: 1rem; }
	.jn-message-body p { text-align: left; }
}

/* ---------- Documents (Documents / Imanishi pages) ---------- */
.jn-documents {
	padding: 4rem 0;
	background: var(--jn-bg);
}

.jn-documents-layout {
	display: grid;
	grid-template-columns: 320px minmax(0, 1fr);
	gap: 3rem;
	align-items: start;
}

.jn-recent-documents {
	position: sticky;
	top: 110px;
	padding: 1.75rem 1.5rem;
	background: #fff;
	border-radius: 12px;
	box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.jn-sidebar-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-bottom: 1.5rem;
	padding-bottom: 1rem;
	border-bottom: 2px solid #e9ecef;
}

.jn-sidebar-title {
	margin: 0;
	color: var(--jn-text);
	font-size: 1.15rem;
	white-space: nowrap;
	font-weight: 600;
}

.jn-view-all-link {
	white-space: nowrap;
	color: var(--jn-primary);
	font-size: 0.9rem;
	font-weight: 500;
}

.jn-recent-list {
	display: flex;
	flex-direction: column;
	gap: 0.75rem;
}

.jn-recent-item {
	display: flex;
	align-items: center;
	gap: 1rem;
	padding: 1rem;
	border-radius: 8px;
	text-decoration: none !important;
	transition: all 0.3s ease;
}

.jn-recent-item:hover {
	background: var(--jn-bg);
	transform: translateX(5px);
}

.jn-document-icon {
	display: flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
	width: 40px;
	height: 40px;
	background: linear-gradient(135deg, #dc3545, #c82333);
	border-radius: 8px;
	color: #fff;
	font-size: 1.2rem;
}

.jn-document-icon.jn-ext-doc,
.jn-document-icon.jn-ext-docx { background: linear-gradient(135deg, #2b579a, #1e3f73); }
.jn-document-icon.jn-ext-xls,
.jn-document-icon.jn-ext-xlsx { background: linear-gradient(135deg, #217346, #185c37); }
.jn-document-icon.jn-ext-jpg,
.jn-document-icon.jn-ext-jpeg,
.jn-document-icon.jn-ext-png { background: linear-gradient(135deg, var(--jn-accent), var(--jn-primary)); }

.jn-document-info {
	flex: 1;
	min-width: 0;
}

.jn-document-title {
	display: block;
	overflow: hidden;
	margin-bottom: 0.25rem;
	color: var(--jn-text);
	font-size: 0.95rem;
	font-weight: 600;
	line-height: 1.3;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.jn-document-date {
	display: block;
	color: var(--jn-muted);
	font-size: 0.8rem;
}

.jn-documents-list {
	padding: 2.5rem;
	background: #fff;
	border-radius: 12px;
	box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
	scroll-margin-top: 110px;
}

.jn-list-header {
	margin-bottom: 2.5rem;
	text-align: center;
}

.jn-list-title {
	margin: 0;
	color: var(--jn-text);
	font-size: 2.25rem;
	font-weight: 600;
}

.jn-documents-grid {
	display: grid;
	gap: 1.5rem;
}

.jn-document-card {
	position: relative;
	overflow: hidden;
	padding: 2rem;
	background: #fff;
	border: 2px solid #e9ecef;
	border-radius: 12px;
	transition: all 0.3s ease;
}

.jn-document-card[hidden] {
	display: none;
}

.jn-document-card::before {
	content: '';
	position: absolute;
	top: 0;
	left: 0;
	width: 4px;
	height: 100%;
	background: linear-gradient(135deg, var(--jn-primary), var(--jn-primary-dark));
	transform: scaleY(0);
	transition: transform 0.3s ease;
}

.jn-document-card:hover {
	border-color: var(--jn-primary);
	box-shadow: 0 8px 25px rgba(44, 90, 160, 0.15);
	transform: translateY(-2px);
}

.jn-document-card:hover::before {
	transform: scaleY(1);
}

.jn-card-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-bottom: 1.5rem;
}

.jn-document-number {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	background: linear-gradient(135deg, var(--jn-primary), var(--jn-primary-dark));
	border-radius: 50%;
	color: #fff;
	font-size: 1.1rem;
	font-weight: 700;
}

.jn-document-type {
	display: flex;
	align-items: center;
	gap: 0.5rem;
	padding: 0.5rem 1rem;
	background: var(--jn-bg);
	border-radius: 20px;
	color: var(--jn-muted);
	font-size: 0.85rem;
	font-weight: 500;
}

.jn-document-type i {
	color: var(--jn-primary);
}

.jn-doc-content {
	margin-bottom: 1.5rem;
}

.jn-doc-title {
	margin: 0 0 0.75rem;
	color: var(--jn-text);
	font-size: 1.3rem;
	font-weight: 600;
	line-height: 1.4;
}

.jn-doc-subtitle {
	margin-bottom: 1rem;
	color: var(--jn-muted);
	font-style: italic;
}

.jn-doc-subtitle p:last-child {
	margin-bottom: 0;
}

.jn-doc-meta {
	display: flex;
	flex-wrap: wrap;
	gap: 0.75rem;
	color: #888;
	font-size: 0.85rem;
}

.jn-doc-meta span {
	padding: 0.25rem 0.75rem;
	background: #e9ecef;
	border-radius: 12px;
	font-weight: 500;
}

.jn-doc-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 1rem;
}

.jn-doc-btn {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	padding: 0.75rem 1.5rem;
	border: 2px solid transparent;
	border-radius: 8px;
	font-size: 0.9rem;
	font-weight: 600;
	text-decoration: none !important;
	transition: all 0.3s ease;
}

.jn-doc-download {
	background: linear-gradient(135deg, var(--jn-primary), var(--jn-primary-dark));
	color: #fff !important;
}

.jn-doc-download:hover {
	box-shadow: 0 4px 15px rgba(44, 90, 160, 0.3);
	transform: translateY(-1px);
}

.jn-doc-preview {
	background: var(--jn-bg);
	border-color: #e9ecef;
	color: var(--jn-muted) !important;
}

.jn-doc-preview:hover {
	background: #e9ecef;
	color: var(--jn-text) !important;
}

.jn-load-more-section {
	margin-top: 2rem;
	padding-top: 2rem;
	border-top: 2px solid #e9ecef;
	text-align: center;
}

.jn-load-more-btn {
	display: inline-flex;
	align-items: center;
	gap: 0.75rem;
	padding: 1rem 2rem;
	background: linear-gradient(135deg, #6c757d, #495057);
	border: 0;
	border-radius: 50px;
	color: #fff;
	font-size: 1rem;
	font-weight: 600;
	cursor: pointer;
	transition: all 0.3s ease;
}

.jn-load-more-btn:hover {
	box-shadow: 0 6px 20px rgba(108, 117, 125, 0.3);
	transform: translateY(-2px);
}

@media (max-width: 991px) {
	.jn-documents-layout {
		grid-template-columns: minmax(0, 1fr);
		gap: 2rem;
	}
	.jn-recent-documents {
		position: static;
		order: 2;
	}
}

@media (max-width: 575px) {
	.jn-documents { padding: 2rem 0; }
	.jn-documents-list,
	.jn-recent-documents { padding: 1.5rem; }
	.jn-document-card { padding: 1.5rem; }
	.jn-list-title { font-size: 1.75rem; }
}

/* ---------- Contact ---------- */
.jn-contact {
	padding: 4rem 0 5rem;
	background: var(--jn-bg);
}

.jn-contact-header {
	margin-bottom: 3.5rem;
	text-align: center;
}

.jn-contact-header .jn-section-title {
	margin-bottom: 1.25rem;
	font-size: 3rem;
}

.jn-divider {
	width: 80px;
	height: 4px;
	margin: 0 auto;
	background: linear-gradient(90deg, var(--jn-primary), var(--jn-primary-dark));
	border-radius: 2px;
}

.jn-contact-cards {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 2rem;
	margin-bottom: 3.5rem;
}

.jn-contact-card {
	display: flex;
	flex-direction: column;
	align-items: center;
	padding: 2.5rem 1.5rem 2rem;
	background: #fff;
	border-radius: 16px;
	box-shadow: 0 8px 30px rgba(0, 0, 0, 0.06);
	text-align: center;
	transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.jn-contact-card:hover {
	transform: translateY(-8px);
	box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
}

.jn-contact-icon {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 64px;
	height: 64px;
	margin-bottom: 1.25rem;
	background: linear-gradient(135deg, var(--jn-primary), var(--jn-primary-dark));
	border-radius: 50%;
	color: #fff;
	font-size: 1.4rem;
}

.jn-contact-card h3 {
	margin-bottom: 0.75rem;
	color: var(--jn-primary);
	font-size: 1.5rem;
	font-weight: 700;
}

.jn-contact-text {
	flex: 1;
	margin-bottom: 1.25rem;
	color: #222;
	overflow-wrap: anywhere;
}

.jn-contact-text p {
	margin-bottom: 0.4rem;
}

.jn-contact-text a {
	color: #222;
}

.jn-card-link {
	display: inline-block;
	padding: 0.35rem 1rem;
	border: 2px solid var(--jn-primary);
	border-radius: 25px;
	color: var(--jn-primary);
	font-size: 0.85rem;
	font-weight: 600;
	text-decoration: none !important;
	transition: all 0.3s ease;
}

.jn-card-link:hover {
	background: var(--jn-primary);
	color: #fff;
	transform: translateY(-2px);
}

.jn-contact-row {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 2rem;
	align-items: stretch;
}

.jn-quick-contact,
.jn-map-container {
	background: #fff;
	border-radius: 16px;
	box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
	transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.jn-quick-contact:hover,
.jn-map-container:hover {
	transform: translateY(-8px);
	box-shadow: 0 15px 40px rgba(0, 0, 0, 0.12);
}

.jn-quick-contact {
	padding: 3rem;
}

.jn-form-title {
	margin-bottom: 0.75rem;
	color: var(--jn-text);
	font-size: 2rem;
	font-weight: 600;
	text-align: center;
}

.jn-form-description {
	margin-bottom: 2rem;
	color: var(--jn-muted);
	font-size: 1.05rem;
	text-align: center;
}

.jn-contact-form {
	display: flex;
	flex-direction: column;
	gap: 1.25rem;
}

.jn-form-row {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 1.25rem;
}

.jn-form-group {
	display: flex;
	flex-direction: column;
}

.jn-form-group label {
	margin-bottom: 0.5rem;
	color: var(--jn-text);
	font-weight: 600;
}

.jn-form-group input,
.jn-form-group textarea {
	width: 100%;
	padding: 0.75rem 0.85rem;
	border: 2px solid #e9ecef;
	border-radius: 8px;
	font: inherit;
	transition: all 0.3s ease;
}

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

.jn-form-group input:focus,
.jn-form-group textarea:focus {
	outline: none;
	border-color: var(--jn-primary);
	box-shadow: 0 0 0 3px rgba(44, 90, 160, 0.1);
}

.jn-hp {
	position: absolute;
	left: -9999px;
}

.jn-submit-btn {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 0.75rem;
	margin-top: 0.5rem;
	padding: 1.1rem 2rem;
	background: linear-gradient(135deg, var(--jn-primary), var(--jn-primary-dark));
	border: 0;
	border-radius: 50px;
	color: #fff;
	font-size: 1.1rem;
	font-weight: 600;
	cursor: pointer;
	transition: all 0.3s ease;
}

.jn-submit-btn:hover {
	box-shadow: 0 8px 25px rgba(44, 90, 160, 0.3);
	transform: translateY(-2px);
}

.jn-submit-btn:disabled {
	opacity: 0.7;
	cursor: wait;
}

.jn-form-status {
	margin: 0;
	text-align: center;
	font-weight: 600;
}

.jn-form-status:empty {
	display: none;
}

.jn-form-status.is-success { color: #1e7e34; }
.jn-form-status.is-error { color: #c82333; }

.jn-map-container {
	display: flex;
	flex-direction: column;
	overflow: hidden;
	scroll-margin-top: 110px;
}

.jn-map-header {
	padding: 1.5rem;
	background: linear-gradient(135deg, var(--jn-primary), var(--jn-primary-dark));
	color: #fff;
	text-align: center;
}

.jn-map-header h3 {
	margin-bottom: 0.4rem;
	color: #fff;
	font-size: 1.3rem;
	font-weight: 600;
}

.jn-map-header p {
	margin: 0;
	opacity: 0.9;
}

.jn-map-wrapper {
	position: relative;
	flex: 1;
	min-height: 400px;
}

.jn-map-wrapper iframe {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	border: 0;
}

.jn-map-button {
	position: absolute;
	top: 1rem;
	right: 1rem;
	display: flex;
	align-items: center;
	gap: 0.5rem;
	padding: 0.65rem 1.15rem;
	background: rgba(44, 90, 160, 0.92);
	border-radius: 25px;
	color: #fff !important;
	font-size: 0.9rem;
	font-weight: 600;
	text-decoration: none !important;
	transition: all 0.3s ease;
}

.jn-map-button:hover {
	background: rgba(30, 61, 111, 0.95);
	transform: translateY(-2px);
}

@media (max-width: 991px) {
	.jn-contact-cards,
	.jn-contact-row {
		grid-template-columns: minmax(0, 1fr);
	}
}

@media (max-width: 575px) {
	.jn-contact { padding: 2.5rem 0 3rem; }
	.jn-contact-header .jn-section-title { font-size: 2.2rem; }
	.jn-quick-contact { padding: 1.75rem 1.25rem; }
	.jn-form-row { grid-template-columns: minmax(0, 1fr); }
	.jn-map-wrapper { min-height: 320px; }
}

/* ---------- Events page ---------- */
.jn-events-page {
	padding: 4rem 0 5rem;
	background: var(--jn-bg);
}

.jn-event-cards {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 2.5rem;
}

.jn-event-card {
	display: flex;
	flex-direction: column;
	overflow: hidden;
	background: #fff;
	border: 2px solid transparent;
	border-radius: 16px;
	box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
	transition: all 0.3s ease;
}

.jn-event-card[hidden] {
	display: none;
}

.jn-event-card:hover {
	border-color: var(--jn-primary);
	box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
	transform: translateY(-8px);
}

.jn-event-card-image {
	position: relative;
	display: block;
	height: 250px;
	overflow: hidden;
}

.jn-event-card-image img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.3s ease;
}

.jn-event-card:hover .jn-event-card-image img {
	transform: scale(1.05);
}

.jn-event-date-badge {
	position: absolute;
	top: 1rem;
	left: 1rem;
	padding: 0.5rem 1rem;
	background: linear-gradient(135deg, var(--jn-primary), var(--jn-primary-dark));
	border-radius: 20px;
	box-shadow: 0 4px 15px rgba(44, 90, 160, 0.3);
	color: #fff;
	font-size: 0.85rem;
	font-weight: 600;
}

.jn-event-card-content {
	display: flex;
	flex: 1;
	flex-direction: column;
	padding: 2rem;
}

.jn-event-card-title {
	display: -webkit-box;
	overflow: hidden;
	margin-bottom: 1rem;
	font-size: 1.3rem;
	font-weight: 600;
	line-height: 1.35;
	-webkit-line-clamp: 3;
	line-clamp: 3;
	-webkit-box-orient: vertical;
}

.jn-event-card-title a {
	color: var(--jn-primary);
	text-decoration: none;
}

.jn-event-card-title a:hover {
	color: var(--jn-primary);
}

.jn-event-card-description {
	display: -webkit-box;
	flex: 1;
	overflow: hidden;
	margin-bottom: 1.5rem;
	color: var(--jn-muted);
	line-height: 1.6;
	-webkit-line-clamp: 3;
	line-clamp: 3;
	-webkit-box-orient: vertical;
}

.jn-event-card-footer {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	padding-top: 1rem;
	border-top: 1px solid #e9ecef;
}

.jn-event-card-meta {
	color: var(--jn-muted);
	font-size: 0.85rem;
	white-space: nowrap;
}

.jn-event-card-meta i {
	margin-right: 0.35rem;
	color: var(--jn-primary);
}

.jn-pill-btn {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	padding: 0.65rem 1.35rem;
	background: linear-gradient(135deg, var(--jn-primary), var(--jn-primary-dark));
	border-radius: 25px;
	color: #fff !important;
	font-size: 0.9rem;
	font-weight: 600;
	text-decoration: none !important;
	white-space: nowrap;
	transition: all 0.3s ease;
}

.jn-pill-btn:hover {
	box-shadow: 0 4px 15px rgba(44, 90, 160, 0.3);
	transform: translateY(-2px);
}

.jn-events-page .jn-load-more-section {
	margin-top: 3rem;
}

@media (max-width: 1199px) {
	.jn-event-cards {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 2rem;
	}
}

@media (max-width: 767px) {
	.jn-event-cards {
		grid-template-columns: minmax(0, 1fr);
	}
	.jn-events-page { padding: 2.5rem 0 3rem; }
	.jn-event-card-content { padding: 1.5rem; }
}

/* Old style.css zeroes padding on section.event-section / section.gallery-section (the
   homepage's section classes), which outranks .jn-section — restore it with a stronger selector. */
section.jn-section,
section.jn-quick-access {
	padding: 5rem 0;
}

@media (max-width: 767px) {
	section.jn-section,
	section.jn-quick-access {
		padding: 3.5rem 0;
	}
}

.jn-slide-title {
	max-width: 800px;
	margin-bottom: 0.75rem;
	color: #fff !important;
	font-size: 2.5rem;
	font-weight: 700;
	line-height: 1.2;
	text-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
}

@media (max-width: 767px) {
	.jn-slide-title {
		font-size: 1.5rem;
	}
}

/* ---------- About us ---------- */
section.jn-about {
	padding: 4rem 0;
	background: var(--jn-bg);
}

.jn-about-content {
    margin: 0 auto;
	overflow: hidden;
	background: #fff;
	border-radius: 8px;
	box-shadow: 0 2px 15px rgba(0, 0, 0, 0.08);
}

.jn-about-header {
	padding: 2rem;
	background: linear-gradient(135deg, var(--jn-primary) 0%, var(--jn-primary-dark) 100%);
	text-align: center;
}

.jn-about-title {
	margin: 0;
	padding: 0.5rem 1.5rem;
	color: #fff;
	font-size: 2.6rem;
	font-weight: 700;
	text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

.jn-about-body {
	padding: 3rem;
}

.jn-about-image {
	display: block;
	width: 100%;
	height: auto;
	margin-bottom: 2rem;
	border-radius: 8px;
}

.jn-about-body p {
	margin-bottom: 2rem;
	color: #444;
	font-size: 1.1rem;
	line-height: 1.8;
	text-align: justify;
}

.jn-about-body p:last-child {
	margin-bottom: 0;
}

@media (max-width: 767px) {
	section.jn-about { padding: 2rem 0; }
	.jn-about-title { font-size: 2rem; padding: 0; }
	.jn-about-body { padding: 1.5rem; }
	.jn-about-body p { font-size: 1rem; text-align: left; }
}

.jn-about-body ul,
.jn-about-body ol {
	margin: -1rem 0 2rem;
	padding-left: 1.5rem;
	color: #444;
	font-size: 1.05rem;
	line-height: 1.8;
}

.jn-about-body li::marker {
	color: var(--jn-primary);
}

/* ---------- Past Presidents ---------- */
section.jn-timeline-section {
	padding-bottom: 2rem;
	background: var(--jn-bg);
}

.jn-timeline-subtitle {
	max-width: 600px;
	margin: 0 auto 1.25rem;
	color: var(--jn-muted);
	font-size: 1.15rem;
}

.jn-timeline {
	position: relative;
	max-width: 1000px;
	margin: 0 auto;
}

.jn-timeline::before {
	content: '';
	position: absolute;
	top: 0;
	bottom: 0;
	left: 50%;
	width: 4px;
	background: linear-gradient(180deg, var(--jn-primary), var(--jn-primary-dark));
	border-radius: 2px;
	transform: translateX(-50%);
}

.jn-timeline-item {
	position: relative;
	display: flex;
	align-items: center;
	margin-bottom: 2.5rem;
}

.jn-timeline-item:nth-child(even) {
	flex-direction: row-reverse;
}

.jn-timeline-content {
	position: relative;
	width: 42%;
	padding: 1.75rem 2rem;
	background: #fff;
	border: 2px solid transparent;
	border-radius: 16px;
	box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
	text-decoration: none !important;
	transition: all 0.3s ease;
}

.jn-timeline-content:hover {
	border-color: var(--jn-primary);
	transform: translateY(-4px);
}

.jn-timeline-president {
	margin-bottom: 0.4rem;
	color: var(--jn-text);
	font-size: 1.3rem;
	font-weight: 600;
}

.jn-timeline-tenure {
	margin: 0;
	color: var(--jn-primary);
	font-weight: 500;
}

.jn-timeline-year {
	position: absolute;
	top: 50%;
	left: 50%;
	z-index: 2;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 80px;
	height: 80px;
	background: linear-gradient(135deg, var(--jn-primary), var(--jn-primary-dark));
	border: 4px solid var(--jn-bg);
	border-radius: 50%;
	box-shadow: 0 4px 15px rgba(44, 90, 160, 0.3);
	color: #fff;
	font-size: 1.1rem;
	font-weight: 600;
	transform: translate(-50%, -50%);
}

section.jn-presidents-section {
	padding-top: 3rem;
	background: #fff;
}

.jn-presidents-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr));
	gap: 2rem;
}

.jn-president-card {
	display: flex;
	flex-direction: column;
	align-items: center;
	padding: 2rem 1.5rem;
	background: #fff;
	border: 2px solid #eef1f6;
	border-radius: 20px;
	box-shadow: 0 8px 30px rgba(0, 0, 0, 0.06);
	text-align: center;
	text-decoration: none !important;
	transition: all 0.4s ease;
}

.jn-president-card:hover {
	border-color: var(--jn-primary);
	box-shadow: 0 20px 40px rgba(0, 0, 0, 0.12);
	transform: translateY(-8px);
}

.jn-president-photo {
	position: relative;
	width: 150px;
	height: 150px;
	margin-bottom: 1.75rem;
}

.jn-president-photo img,
.jn-president-initials {
	width: 100%;
	height: 100%;
	border: 4px solid #fff;
	border-radius: 50%;
	box-shadow: 0 6px 20px rgba(44, 90, 160, 0.25);
}

.jn-president-photo img {
	object-fit: cover;
	object-position: top;
}

.jn-president-initials {
	display: flex;
	align-items: center;
	justify-content: center;
	background: linear-gradient(135deg, var(--jn-accent), var(--jn-primary-dark));
	color: #fff;
	font-size: 2.75rem;
	font-weight: 700;
}

.jn-president-badge {
	position: absolute;
	bottom: -10px;
	left: 50%;
	padding: 0.3rem 0.8rem;
	background: linear-gradient(135deg, var(--jn-primary), var(--jn-primary-dark));
	border-radius: 15px;
	color: #fff;
	font-size: 0.7rem;
	font-weight: 600;
	letter-spacing: 0.5px;
	text-transform: uppercase;
	white-space: nowrap;
	transform: translateX(-50%);
}

.jn-president-card h3 {
	margin-bottom: 0.4rem;
	color: var(--jn-text);
	font-size: 1.25rem;
	font-weight: 600;
	line-height: 1.3;
}

.jn-president-tenure {
	margin-bottom: 1rem;
	color: var(--jn-primary);
	font-weight: 600;
}

.jn-president-link {
	margin-top: auto;
	color: var(--jn-muted);
	font-size: 0.9rem;
	font-weight: 500;
	transition: color 0.3s ease;
}

.jn-president-link i {
	margin-left: 0.3rem;
	font-size: 0.8em;
	transition: transform 0.3s ease;
}

.jn-president-card:hover .jn-president-link {
	color: var(--jn-primary);
}

.jn-president-card:hover .jn-president-link i {
	transform: translateX(4px);
}

@media (max-width: 767px) {
	.jn-timeline::before {
		left: 30px;
	}
	.jn-timeline-item,
	.jn-timeline-item:nth-child(even) {
		flex-direction: row;
		padding-left: 80px;
	}
	.jn-timeline-content {
		width: 100%;
		padding: 1.25rem 1.5rem;
	}
	.jn-timeline-year {
		left: 30px;
		width: 60px;
		height: 60px;
		font-size: 0.9rem;
	}
	.jn-timeline-president {
		font-size: 1.1rem;
	}
}

/* ---------- Executive committee ---------- */
section.jn-executives {
	background:
		radial-gradient(circle at 10% 0%, rgba(74, 116, 179, 0.08), transparent 40%),
		radial-gradient(circle at 90% 30%, rgba(44, 90, 160, 0.06), transparent 40%),
		var(--jn-bg);
}

.jn-executives + .jn-executives {
	padding-top: 0;
}

.jn-exec-group-title {
	display: flex;
	align-items: center;
	gap: 1.25rem;
	margin: 3.5rem 0 2rem;
	color: var(--jn-primary);
	font-size: 1.4rem;
	font-weight: 700;
}

.jn-exec-group-title::before,
.jn-exec-group-title::after {
	content: '';
	flex: 1;
	height: 2px;
	background: linear-gradient(90deg, transparent, rgba(44, 90, 160, 0.35));
}

.jn-exec-group-title::after {
	background: linear-gradient(90deg, rgba(44, 90, 160, 0.35), transparent);
}

/* Flex (not grid) so a short last row is centered */
.jn-exec-grid {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 2rem;
}

.jn-exec-grid > .jn-exec-card {
	flex: 0 1 calc((100% - 6rem) / 4);
	min-width: 220px;
}

@media (max-width: 991px) {
	.jn-exec-grid > .jn-exec-card {
		flex-basis: calc((100% - 4rem) / 3);
	}
}

.jn-exec-card {
	display: flex;
	flex-direction: column;
	overflow: hidden;
	background: #fff;
	border-radius: 18px;
	box-shadow: 0 8px 30px rgba(0, 0, 0, 0.07);
	transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.jn-exec-card:hover {
	box-shadow: 0 20px 45px rgba(44, 90, 160, 0.18);
	transform: translateY(-8px);
}

.jn-exec-photo {
	position: relative;
	display: block;
	aspect-ratio: 4 / 4.4;
	overflow: hidden;
	background: linear-gradient(135deg, #e9eef7, #f8f9fa);
}

.jn-exec-photo img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: top center;
	transition: transform 0.5s ease;
}

.jn-exec-card:hover .jn-exec-photo img {
	transform: scale(1.06);
}

.jn-exec-overlay {
	position: absolute;
	inset: 0;
	display: flex;
	align-items: flex-end;
	justify-content: center;
	padding-bottom: 1.25rem;
	background: linear-gradient(180deg, transparent 45%, rgba(30, 61, 111, 0.85));
	opacity: 0;
	transition: opacity 0.35s ease;
}

.jn-exec-overlay span {
	padding: 0.5rem 1.1rem;
	background: rgba(255, 255, 255, 0.95);
	border-radius: 25px;
	color: var(--jn-primary);
	font-size: 0.85rem;
	font-weight: 700;
	transform: translateY(10px);
	transition: transform 0.35s ease;
}

.jn-exec-overlay i {
	margin-right: 0.3rem;
}

.jn-exec-card:hover .jn-exec-overlay {
	opacity: 1;
}

.jn-exec-card:hover .jn-exec-overlay span {
	transform: translateY(0);
}

.jn-exec-info {
	position: relative;
	display: flex;
	flex: 1;
	flex-direction: column;
	align-items: center;
	padding: 1.75rem 1.25rem 1.5rem;
	text-align: center;
}

.jn-exec-role {
	position: absolute;
	top: 0;
	left: 50%;
	max-width: 90%;
	padding: 0.4rem 1rem;
	background: linear-gradient(135deg, var(--jn-primary), var(--jn-primary-dark));
	border-radius: 20px;
	box-shadow: 0 4px 14px rgba(44, 90, 160, 0.3);
	color: #fff;
	font-size: 0.75rem;
	font-weight: 700;
	letter-spacing: 0.4px;
	line-height: 1.3;
	text-transform: uppercase;
	transform: translate(-50%, -50%);
}

.jn-exec-name {
	margin: 0.5rem 0 0.9rem;
	font-size: 1.15rem;
	font-weight: 700;
	line-height: 1.35;
}

.jn-exec-name a {
	color: var(--jn-text);
	text-decoration: none;
}

.jn-exec-name a:hover {
	color: var(--jn-primary);
}

.jn-exec-link {
	margin-top: auto;
	color: var(--jn-muted) !important;
	font-size: 0.88rem;
	font-weight: 600;
	text-decoration: none !important;
	transition: color 0.3s ease;
}

.jn-exec-link i {
	margin-left: 0.3rem;
	font-size: 0.8em;
	transition: transform 0.3s ease;
}

.jn-exec-card:hover .jn-exec-link {
	color: var(--jn-primary) !important;
}

.jn-exec-card:hover .jn-exec-link i {
	transform: translateX(4px);
}

/* President: wide featured card */
.jn-exec-president {
	max-width: 760px;
	margin: 0 auto;
}

.jn-exec-featured {
	flex-direction: row;
	border: 2px solid rgba(44, 90, 160, 0.15);
}

.jn-exec-featured .jn-exec-photo {
	flex: 0 0 300px;
	aspect-ratio: auto;
	min-height: 340px;
}

.jn-exec-featured .jn-exec-info {
	justify-content: center;
	align-items: flex-start;
	padding: 2.5rem;
	text-align: left;
	background: linear-gradient(135deg, var(--jn-primary), var(--jn-primary-dark));
}

.jn-exec-featured .jn-exec-role {
	position: static;
	margin-bottom: 1rem;
	background: rgba(255, 255, 255, 0.18);
	box-shadow: none;
	font-size: 0.85rem;
	transform: none;
}

.jn-exec-featured .jn-exec-name {
	margin: 0 0 1.5rem;
	font-size: 2rem;
}

.jn-exec-featured .jn-exec-name a,
.jn-exec-featured .jn-exec-link,
.jn-exec-featured:hover .jn-exec-link {
	color: #fff !important;
}

.jn-exec-featured .jn-exec-link {
	margin-top: 0;
	padding: 0.65rem 1.4rem;
	border: 2px solid rgba(255, 255, 255, 0.6);
	border-radius: 25px;
}

.jn-exec-featured .jn-exec-link:hover {
	background: #fff;
	color: var(--jn-primary) !important;
}

@media (max-width: 767px) {
	.jn-exec-featured {
		flex-direction: column;
	}
	.jn-exec-featured .jn-exec-photo {
		flex-basis: auto;
		aspect-ratio: 4 / 4;
		min-height: 0;
	}
	.jn-exec-featured .jn-exec-info {
		align-items: center;
		padding: 2rem 1.5rem;
		text-align: center;
	}
	.jn-exec-featured .jn-exec-name {
		font-size: 1.5rem;
	}
	.jn-exec-grid {
		gap: 1rem;
	}
	.jn-exec-grid > .jn-exec-card {
		flex-basis: calc((100% - 1rem) / 2);
		min-width: 0;
	}
	.jn-exec-name {
		font-size: 1rem;
	}
	.jn-exec-role {
		font-size: 0.65rem;
		padding: 0.35rem 0.7rem;
	}
	.jn-exec-group-title {
		margin-top: 2.5rem;
		font-size: 1.2rem;
	}
}

/* Executives directory */
.jn-exec-search {
	position: relative;
	max-width: 480px;
	margin: 0 auto 3rem;
}

.jn-exec-search i {
	position: absolute;
	top: 50%;
	left: 1.25rem;
	color: var(--jn-accent);
	transform: translateY(-50%);
}

.jn-exec-search input {
	width: 100%;
	padding: 0.95rem 1.25rem 0.95rem 3rem;
	background: #fff;
	border: 2px solid #e3e9f3;
	border-radius: 50px;
	box-shadow: 0 6px 20px rgba(44, 90, 160, 0.08);
	font: inherit;
	transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.jn-exec-search input:focus {
	outline: none;
	border-color: var(--jn-primary);
	box-shadow: 0 0 0 4px rgba(44, 90, 160, 0.12);
}

.jn-exec-card[hidden] {
	display: none;
}

.jn-exec-empty {
	margin: 2rem 0 0;
	color: var(--jn-muted);
	font-size: 1.05rem;
	text-align: center;
}

/* Cards without a role badge don't need the extra top space */
.jn-exec-info:not(:has(.jn-exec-role)) .jn-exec-name {
	margin-top: 0;
}

/* ---------- Single executive profile ---------- */
section.jn-profile {
	background: var(--jn-bg);
}

.jn-profile-layout {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 300px;
	gap: 2.5rem;
	align-items: start;
}

.jn-profile-main {
	overflow: hidden;
	background: #fff;
	border-radius: 18px;
	box-shadow: 0 8px 30px rgba(0, 0, 0, 0.07);
}

.jn-profile-header {
	display: flex;
	align-items: center;
	gap: 2rem;
	padding: 2.5rem;
	background: linear-gradient(135deg, var(--jn-primary), var(--jn-primary-dark));
	color: #fff;
}

.jn-profile-photo {
	flex: 0 0 170px;
	width: 170px;
	height: 200px;
	overflow: hidden;
	border: 4px solid rgba(255, 255, 255, 0.9);
	border-radius: 14px;
	box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
	background: #fff;
}

.jn-profile-photo img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: top center;
}

.jn-profile-role {
	display: inline-block;
	margin-bottom: 0.75rem;
	padding: 0.35rem 0.9rem;
	background: rgba(255, 255, 255, 0.18);
	border-radius: 20px;
	font-size: 0.8rem;
	font-weight: 700;
	letter-spacing: 0.5px;
	text-transform: uppercase;
}

.jn-profile-name {
	margin: 0 0 0.5rem;
	color: #fff;
	font-size: 2.2rem;
	font-weight: 700;
	line-height: 1.2;
}

.jn-profile-org {
	margin: 0;
	color: rgba(255, 255, 255, 0.8);
	font-size: 0.95rem;
}

.jn-profile-body {
	padding: 2.5rem;
	color: #444;
	font-size: 1.02rem;
	line-height: 1.75;
	overflow-wrap: anywhere;
}

.jn-profile-body p {
	margin-bottom: 0.9rem;
}

.jn-profile-body strong {
	color: var(--jn-primary);
	font-weight: 700;
}

.jn-profile-body a {
	color: var(--jn-primary);
}

.jn-profile-body ul,
.jn-profile-body ol {
	margin: 0.25rem 0 1.5rem;
	padding: 1rem 1.25rem 1rem 2.5rem;
	background: var(--jn-bg);
	border-left: 4px solid var(--jn-accent);
	border-radius: 0 10px 10px 0;
}

.jn-profile-body li {
	margin-bottom: 0.35rem;
}

.jn-profile-body li::marker {
	color: var(--jn-primary);
}

/* Old two-column table profiles: stack the cells as plain blocks */
.jn-profile-body table,
.jn-profile-body tbody,
.jn-profile-body tr,
.jn-profile-body td {
	display: block;
	width: auto !important;
	border: 0;
	padding: 0;
}

.jn-profile-body img {
	max-width: 100%;
	height: auto;
	border-radius: 10px;
}

.jn-profile-sidebar {
	position: sticky;
	top: 110px;
	display: flex;
	flex-direction: column;
	gap: 1.5rem;
}

.jn-profile-back {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.5rem;
	padding: 0.85rem 1.25rem;
	background: #fff;
	border: 2px solid var(--jn-primary);
	border-radius: 50px;
	color: var(--jn-primary) !important;
	font-weight: 600;
	text-decoration: none !important;
	transition: all 0.3s ease;
}

.jn-profile-back:hover {
	background: var(--jn-primary);
	color: #fff !important;
}

.jn-profile-others {
	padding: 1.5rem;
	background: #fff;
	border-radius: 16px;
	box-shadow: 0 8px 30px rgba(0, 0, 0, 0.06);
}

.jn-profile-others h2 {
	margin: 0 0 1rem;
	padding-bottom: 0.85rem;
	border-bottom: 2px solid #e9ecef;
	color: var(--jn-text);
	font-size: 1.15rem;
	font-weight: 700;
}

.jn-profile-other {
	display: flex;
	align-items: center;
	gap: 0.85rem;
	padding: 0.6rem;
	border-radius: 10px;
	color: var(--jn-text) !important;
	font-weight: 600;
	text-decoration: none !important;
	transition: all 0.3s ease;
}

.jn-profile-other:hover {
	background: var(--jn-bg);
	color: var(--jn-primary) !important;
	transform: translateX(4px);
}

.jn-profile-other img {
	flex-shrink: 0;
	width: 48px;
	height: 48px;
	object-fit: cover;
	object-position: top;
	border-radius: 50%;
}

.jn-profile-other span {
	flex: 1;
	font-size: 0.95rem;
	line-height: 1.3;
}

.jn-profile-other i {
	color: #b5c0d3;
	font-size: 0.75rem;
}

@media (max-width: 991px) {
	.jn-profile-layout {
		grid-template-columns: minmax(0, 1fr);
	}
	.jn-profile-sidebar {
		position: static;
	}
}

@media (max-width: 575px) {
	.jn-profile-header {
		flex-direction: column;
		padding: 2rem 1.5rem;
		text-align: center;
	}
	.jn-profile-name {
		font-size: 1.6rem;
	}
	.jn-profile-body {
		padding: 1.5rem;
	}
}

/* A line directly above a list is its section heading */
.jn-profile-body p:has(+ ul),
.jn-profile-body p:has(+ ol) {
	margin: 1.5rem 0 0.5rem;
	color: var(--jn-primary);
	font-weight: 700;
}

/* ---------- Member profile (view-single-member) ---------- */
.jn-member-layout {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 2rem;
	max-width: 960px;
	margin: 0 auto;
}

.jn-member-layout .jn-profile-main {
	width: 100%;
}

.jn-member-heading {
	margin: 0 0 1rem;
	color: var(--jn-primary);
	font-size: 1.25rem;
	font-weight: 700;
}

.jn-profile-body p + .jn-member-heading,
.jn-profile-body .jn-member-heading:not(:first-child) {
	margin-top: 2rem;
}

.jn-member-details {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 1rem;
	margin: 0;
}

.jn-member-detail {
	display: flex;
	align-items: flex-start;
	gap: 0.9rem;
	padding: 1rem 1.1rem;
	background: var(--jn-bg);
	border: 1px solid #e9eef5;
	border-radius: 12px;
	transition: border-color 0.3s ease, transform 0.3s ease;
}

.jn-member-detail:hover {
	border-color: rgba(44, 90, 160, 0.35);
	transform: translateY(-2px);
}

.jn-member-icon {
	display: flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
	width: 40px;
	height: 40px;
	background: linear-gradient(135deg, var(--jn-primary), var(--jn-primary-dark));
	border-radius: 10px;
	color: #fff;
	font-size: 0.95rem;
}

.jn-member-detail dt {
	margin-bottom: 0.15rem;
	color: var(--jn-muted);
	font-size: 0.78rem;
	font-weight: 600;
	letter-spacing: 0.4px;
	text-transform: uppercase;
}

.jn-member-detail dd {
	margin: 0;
	color: var(--jn-text);
	font-weight: 600;
	line-height: 1.4;
}

.jn-profile-missing {
	max-width: 560px;
	margin: 0 auto;
	padding: 3.5rem 2rem;
	text-align: center;
}

.jn-profile-missing-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 80px;
	height: 80px;
	margin-bottom: 1.25rem;
	background: rgba(44, 90, 160, 0.1);
	border-radius: 50%;
	color: var(--jn-primary);
	font-size: 2rem;
}

.jn-profile-missing h2 {
	margin-bottom: 0.5rem;
	color: var(--jn-text);
	font-weight: 700;
}

.jn-profile-missing p {
	margin-bottom: 1.75rem;
	color: var(--jn-muted);
}

@media (max-width: 767px) {
	.jn-member-details {
		grid-template-columns: minmax(0, 1fr);
	}
}

.jn-profile-initials {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	height: 100%;
	background: linear-gradient(135deg, var(--jn-accent), var(--jn-primary-dark));
	color: #fff;
	font-size: 3.25rem;
	font-weight: 700;
}

/* ---------- Members directory ---------- */
.jn-member-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr));
	gap: 2rem;
}

.jn-member-card {
	position: relative;
	align-items: center;
	padding: 0 1.5rem 1.75rem;
	text-align: center;
}

/* Blue band behind the avatar */
.jn-member-card::before {
	content: '';
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	height: 80px;
	background: linear-gradient(135deg, var(--jn-accent), var(--jn-primary-dark));
}

.jn-member-avatar {
	position: relative;
	z-index: 1;
	display: block;
	width: 120px;
	height: 120px;
	margin-top: 20px;
	overflow: hidden;
	border: 5px solid #fff;
	border-radius: 50%;
	box-shadow: 0 8px 22px rgba(44, 90, 160, 0.25);
	background: #fff;
	transition: transform 0.35s ease;
}

.jn-member-card:hover .jn-member-avatar {
	transform: scale(1.05);
}

.jn-member-avatar img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: top center;
}

.jn-member-avatar .jn-profile-initials {
	font-size: 2.4rem;
}

.jn-member-body {
	display: flex;
	flex: 1;
	flex-direction: column;
	align-items: center;
	width: 100%;
	padding-top: 1rem;
}

.jn-member-body .jn-exec-name {
	margin: 0 0 0.25rem;
}

.jn-member-designation {
	margin: 0 0 0.75rem;
	color: var(--jn-primary);
	font-size: 0.9rem;
	font-weight: 600;
}

.jn-member-meta {
	width: 100%;
	margin: 0.25rem 0 1.25rem;
	padding: 0.9rem 0 0;
	border-top: 1px solid #eef1f6;
	list-style: none;
	text-align: left;
}

.jn-member-meta li {
	display: flex;
	align-items: flex-start;
	gap: 0.6rem;
	margin-bottom: 0.45rem;
	color: var(--jn-muted);
	font-size: 0.9rem;
	line-height: 1.4;
	overflow-wrap: anywhere;
}

.jn-member-meta i {
	flex-shrink: 0;
	width: 16px;
	margin-top: 0.2rem;
	color: var(--jn-accent);
	text-align: center;
}

.jn-member-meta a {
	color: var(--jn-muted);
}

.jn-member-meta a:hover {
	color: var(--jn-primary);
}

.jn-members .jn-timeline-subtitle {
	margin-top: -0.25rem;
}

/* Directory pagination */
.jn-pagination {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 0.5rem;
	margin-top: 3rem;
}

.jn-pagination:empty {
	display: none;
}

.jn-page-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 44px;
	height: 44px;
	padding: 0 0.85rem;
	background: #fff;
	border: 2px solid #e3e9f3;
	border-radius: 12px;
	color: var(--jn-text);
	font-weight: 600;
	cursor: pointer;
	transition: all 0.25s ease;
}

.jn-page-btn:hover:not(:disabled):not(.is-active) {
	border-color: var(--jn-primary);
	color: var(--jn-primary);
	transform: translateY(-2px);
}

.jn-page-btn.is-active {
	background: linear-gradient(135deg, var(--jn-primary), var(--jn-primary-dark));
	border-color: transparent;
	box-shadow: 0 6px 16px rgba(44, 90, 160, 0.3);
	color: #fff;
}

.jn-page-btn:disabled {
	opacity: 0.4;
	cursor: not-allowed;
}

.jn-members .jn-exec-directory,
.jn-exec-directory {
	scroll-margin-top: 90px;
}

/* ---------- Single news article ---------- */
.jn-article-hero {
	position: relative;
	height: 420px;
	overflow: hidden;
	background: var(--jn-primary-dark);
}

.jn-article-hero img {
	position: relative;
	width: 100%;
	height: 100%;
	object-fit: contain;
}

.jn-article-header {
	padding: 2.25rem 2.5rem 0;
}

.jn-article-meta {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.6rem 1.25rem;
	margin-bottom: 1rem;
	color: var(--jn-muted);
	font-size: 0.9rem;
}

.jn-article-meta i {
	margin-right: 0.3rem;
	color: var(--jn-accent);
}

.jn-article-tag {
	padding: 0.3rem 0.85rem;
	background: linear-gradient(135deg, var(--jn-primary), var(--jn-primary-dark));
	border-radius: 20px;
	color: #fff;
	font-size: 0.75rem;
	font-weight: 700;
	letter-spacing: 0.5px;
	text-transform: uppercase;
}

.jn-article-title {
	margin: 0;
	padding-bottom: 1.5rem;
	border-bottom: 2px solid #eef1f6;
	color: var(--jn-text);
	font-size: 2rem;
	font-weight: 700;
	line-height: 1.25;
}
.wp-block-file__button {
    background:#c0c2c4!important;}

.jn-article-body {
	padding-top: 2rem;
	font-size: 1.05rem;
	line-height: 1.85;
}

.jn-article-body p {
	margin-bottom: 1.25rem;
}

.jn-article-body strong {
	color: var(--jn-text);
}

.jn-article-body h2,
.jn-article-body h3,
.jn-article-body h4 {
	position: relative;
	margin: 2rem 0 0.85rem;
	padding-left: 1rem;
	color: var(--jn-primary);
	font-size: 1.3rem;
	font-weight: 700;
	line-height: 1.35;
}

.jn-article-body h2::before,
.jn-article-body h3::before,
.jn-article-body h4::before {
	content: '';
	position: absolute;
	top: 0.2em;
	bottom: 0.2em;
	left: 0;
	width: 4px;
	background: var(--jn-accent);
	border-radius: 2px;
}

.jn-article-body > :first-child {
	margin-top: 0;
}

.jn-article-body img {
	display: block;
	margin: 1.5rem auto;
	box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
}

.jn-article-body blockquote {
	margin: 1.5rem 0;
	padding: 1.25rem 1.5rem;
	background: var(--jn-bg);
	border-left: 4px solid var(--jn-primary);
	border-radius: 0 10px 10px 0;
	font-style: italic;
}

.jn-article-footer {
	padding: 0 2.5rem 2.5rem;
}

.jn-article-share {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.6rem;
	padding: 1.5rem 0;
	border-top: 2px solid #eef1f6;
	border-bottom: 2px solid #eef1f6;
}

.jn-article-share span {
	margin-right: 0.4rem;
	color: var(--jn-text);
	font-weight: 700;
}

.jn-article-share a,
.jn-article-share button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	background: var(--jn-bg);
	border: 0;
	border-radius: 50%;
	color: var(--jn-primary) !important;
	cursor: pointer;
	text-decoration: none !important;
	transition: all 0.25s ease;
}

.jn-article-share a:hover,
.jn-article-share button:hover,
.jn-article-share button.is-copied {
	background: var(--jn-primary);
	color: #fff !important;
	transform: translateY(-2px);
}

.jn-article-nav {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 1rem;
	margin-top: 1.5rem;
}

.jn-article-nav-link {
	display: flex;
	flex-direction: column;
	gap: 0.3rem;
	padding: 1rem 1.25rem;
	background: var(--jn-bg);
	border: 2px solid transparent;
	border-radius: 12px;
	text-decoration: none !important;
	transition: all 0.25s ease;
}

.jn-article-nav-link:hover {
	border-color: var(--jn-primary);
	background: #fff;
}

.jn-article-nav-link small {
	color: var(--jn-muted);
	font-size: 0.8rem;
	font-weight: 600;
	text-transform: uppercase;
}

.jn-article-nav-link span {
	display: -webkit-box;
	overflow: hidden;
	color: var(--jn-text);
	font-weight: 600;
	line-height: 1.35;
	-webkit-line-clamp: 2;
	line-clamp: 2;
	-webkit-box-orient: vertical;
}

.jn-next-link {
	grid-column: 2;
	text-align: right;
}

.jn-recent-news {
	display: flex;
	align-items: center;
	gap: 0.85rem;
	padding: 0.6rem;
	border-radius: 10px;
	text-decoration: none !important;
	transition: all 0.3s ease;
}

.jn-recent-news:hover {
	background: var(--jn-bg);
	transform: translateX(4px);
}

.jn-recent-news img {
	flex-shrink: 0;
	width: 64px;
	height: 56px;
	object-fit: cover;
	border-radius: 8px;
}

.jn-recent-news span {
	display: flex;
	flex-direction: column;
	gap: 0.25rem;
	min-width: 0;
}

.jn-recent-news strong {
	display: -webkit-box;
	overflow: hidden;
	color: var(--jn-text);
	font-size: 0.9rem;
	line-height: 1.3;
	-webkit-line-clamp: 2;
	line-clamp: 2;
	-webkit-box-orient: vertical;
}

.jn-recent-news:hover strong {
	color: var(--jn-primary);
}

.jn-recent-news small {
	color: var(--jn-muted);
	font-size: 0.78rem;
}

.jn-recent-news small i {
	margin-right: 0.25rem;
	color: var(--jn-accent);
}

@media (max-width: 767px) {
	.jn-article-hero { height: 260px; }
	.jn-article-header { padding: 1.5rem 1.5rem 0; }
	.jn-article-title { font-size: 1.6rem; }
	.jn-article-footer { padding: 0 1.5rem 1.5rem; }
	.jn-article-nav { grid-template-columns: minmax(0, 1fr); }
	.jn-next-link { grid-column: auto; }
}

/* Old style.css shrinks images inside <article> on small screens; keep news card images full width */
.jn-news-image {
	display: block;
	width: 100%;
}

.jn-news-item .jn-news-image img {
	width: 100% !important;
	max-width: none !important;
	height: 200px !important;
	object-fit: cover;
}

/* Old style.css rounds images on small screens; keep the President portrait rectangular */
.jn-president-image-container .jn-president-image {
	border-radius: 8px !important;
	max-width: 100%;
}

/* Tablet: fit two news cards per row instead of one */
.jn-news-grid {
	grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
}

/* Bootstrap caps .container at 540px/720px on phones and tablets, leaving wide empty
   margins; use the full screen width with a comfortable gutter instead. */
@media (max-width: 991px) {
	.container {
		max-width: 100%;
		padding-right: 20px;
		padding-left: 20px;
	}
}

/* Dropdowns near the right edge open leftwards so they stay on screen
   (hidden menus still count toward page width and caused sideways scroll). */
@media (min-width: 992px) {
	.jn-nav-menu > li:nth-last-child(-n+2) > .dropdown-menu {
		right: 0;
		left: auto;
	}

	.jn-nav-menu > li:nth-last-child(-n+2) .dropdown-menu .dropdown-menu {
		right: 100%;
		left: auto;
	}
}

/* ---------- Logged-in user menu (account chip) ---------- */
@media (min-width: 992px) {
	.jn-nav-menu > li.jn-user-menu {
		margin-left: 0.75rem;
		padding-left: 0.75rem;
		border-left: 1px solid #e3e9f3;
	}

	.jn-nav-menu > li.jn-user-menu > a {
		gap: 0.55rem;
		padding: 0.35rem 0.9rem 0.35rem 0.35rem;
		background: #eef3fb;
		border: 1px solid #dbe5f4;
		border-radius: 50px;
		color: var(--jn-primary);
	}

	.jn-nav-menu > li.jn-user-menu > a:hover,
	.jn-nav-menu > li.jn-user-menu:hover > a {
		background: var(--jn-primary);
		border-color: var(--jn-primary);
		color: #fff;
	}

	.jn-nav-menu > li.jn-user-menu > .dropdown-menu {
		min-width: 200px;
		margin-top: 0.5rem;
		border-radius: 12px;
	}

	/* Keep the hover open across the gap above the dropdown */
	.jn-nav-menu > li.jn-user-menu > .dropdown-menu::before {
		content: '';
		position: absolute;
		top: -0.6rem;
		left: 0;
		right: 0;
		height: 0.6rem;
	}
}

.jn-user-avatar {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
	width: 32px;
	height: 32px;
	background: linear-gradient(135deg, var(--jn-accent), var(--jn-primary-dark));
	border: 2px solid #fff;
	border-radius: 50%;
	box-shadow: 0 2px 6px rgba(44, 90, 160, 0.25);
	color: #fff;
	font-size: 0.85rem;
	font-weight: 700;
	object-fit: cover;
}

.jn-user-name {
	max-width: 120px;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.jn-nav-menu li.jn-user-menu .dropdown-menu a {
	display: flex;
	align-items: center;
	gap: 0.6rem;
}

.jn-nav-menu li.jn-user-menu .dropdown-menu a i {
	width: 16px;
	color: var(--jn-accent);
	text-align: center;
}

.jn-nav-menu li.jn-logout {
	margin-top: 0.35rem;
	padding-top: 0.35rem;
	border-top: 1px solid #eef1f6;
}

.jn-nav-menu li.jn-logout > a,
.jn-nav-menu li.jn-logout > a i {
	color: #c82333 !important;
}

.jn-nav-menu li.jn-logout > a:hover {
	background: rgba(200, 35, 51, 0.08) !important;
}

/* Mobile: the account row sits at the bottom of the menu with a tinted background */
@media (max-width: 991px) {
	.jn-nav-menu > li.jn-user-menu {
		background: #eef3fb;
		border-top: 2px solid #dbe5f4;
	}

	.jn-nav-menu > li.jn-user-menu > a {
		gap: 0.75rem;
		color: var(--jn-primary);
	}

	.jn-nav-menu > li.jn-user-menu > a .jn-user-name {
		flex: 1;
		max-width: none;
	}
}

/* Inner page banners: brand-blue overlay so photos sit back and the white title stays readable. */
section.inner-banner .hero-item .hero-item-image::before {
	background: linear-gradient(135deg, rgba(30, 61, 111, 0.82) 0%, rgba(44, 90, 160, 0.6) 55%, rgba(30, 61, 111, 0.75) 100%);
	z-index: 0;
}

section.inner-banner .hero-item .inner-banner-content {
	z-index: 1;
}

section.inner-banner .banner-text h1 {
	text-shadow: 0 2px 12px rgba(0, 0, 0, 0.25);
}

/* ==========================================================================
   Update Profile page
   ========================================================================== */
.jn-edit-layout {
	display: grid;
	grid-template-columns: 300px minmax(0, 1fr);
	gap: 2rem;
	align-items: start;
}

.jn-edit-card {
	background: #fff;
	border: 1px solid #e6ecf5;
	border-radius: 16px;
	box-shadow: 0 6px 24px rgba(30, 61, 111, 0.06);
	padding: 1.75rem;
	margin: 0 0 1.5rem;
	min-width: 0;
}

.jn-edit-sidebar {
	position: sticky;
	top: 110px;
}

.jn-edit-summary {
	text-align: center;
	padding-top: 2rem;
}

.jn-edit-avatar {
	width: 112px;
	height: 112px;
	margin: 0 auto 1rem;
	border-radius: 50%;
	padding: 4px;
	background: linear-gradient(135deg, var(--jn-primary), var(--jn-accent));
}

.jn-edit-avatar img,
.jn-edit-avatar span {
	width: 100%;
	height: 100%;
	border-radius: 50%;
	border: 3px solid #fff;
	object-fit: cover;
	display: flex;
	align-items: center;
	justify-content: center;
	background: #eef3fb;
	color: var(--jn-primary);
	font-size: 2.5rem;
	font-weight: 700;
}

.jn-edit-summary h2 {
	font-size: 1.25rem;
	margin: 0 0 0.25rem;
	color: #1f2937;
}

.jn-edit-summary p {
	color: #6b7280;
	font-size: 0.9rem;
	margin: 0 0 1.25rem;
	word-break: break-all;
}

.jn-edit-nav {
	padding: 0.75rem;
	display: flex;
	flex-direction: column;
}

.jn-edit-nav a {
	display: flex;
	align-items: center;
	gap: 0.75rem;
	padding: 0.7rem 0.9rem;
	border-radius: 10px;
	color: #374151;
	font-weight: 500;
	text-decoration: none;
	transition: background 0.2s, color 0.2s;
}

.jn-edit-nav a i {
	width: 18px;
	color: var(--jn-accent);
	text-align: center;
}

.jn-edit-nav a:hover {
	background: #eef3fb;
	color: var(--jn-primary);
	text-decoration: none;
}

.jn-edit-tip {
	font-size: 0.85rem;
	color: #6b7280;
	padding: 0 0.5rem;
}

.jn-edit-tip i {
	color: var(--jn-accent);
	margin-right: 4px;
}

/* Section cards */
.jn-edit-main fieldset.jn-edit-card {
	scroll-margin-top: 110px;
}

.jn-edit-card legend {
	float: left;
	width: 100%;
	display: flex;
	align-items: center;
	gap: 0.75rem;
	font-size: 1.15rem;
	font-weight: 700;
	color: var(--jn-primary-dark);
	margin: 0 0 1.5rem;
	padding: 0 0 1rem;
	border-bottom: 1px solid #eef2f7;
}

.jn-edit-card legend + * {
	clear: both;
}

.jn-edit-icon {
	width: 40px;
	height: 40px;
	border-radius: 12px;
	background: #eef3fb;
	color: var(--jn-primary);
	display: inline-flex;
	align-items: center;
	justify-content: center;
	font-size: 1rem;
	flex-shrink: 0;
}

.jn-edit-note {
	color: #6b7280;
	font-size: 0.9rem;
	margin: -0.5rem 0 1rem;
}

.jn-field-grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 1.25rem 1.5rem;
}

.jn-field-wide {
	grid-column: 1 / -1;
}

.jn-field-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 0.5rem;
	margin-bottom: 0.45rem;
}

.jn-field-head > label:first-child {
	font-size: 0.875rem;
	font-weight: 600;
	color: #374151;
	margin: 0;
}

.jn-input {
	position: relative;
}

.jn-input > i {
	position: absolute;
	left: 14px;
	top: 50%;
	transform: translateY(-50%);
	color: #9ca3af;
	font-size: 0.9rem;
	pointer-events: none;
}

.jn-profile-edit .jn-input input,
.jn-profile-edit .jn-input textarea {
	width: 100%;
	height: auto;
	padding: 0.75rem 1rem;
	border: 1.5px solid #e2e8f0;
	border-radius: 10px;
	background: #f9fbfd;
	font-size: 0.95rem;
	color: #1f2937;
	transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
}

.jn-profile-edit .jn-input.has-icon input {
	padding-left: 2.6rem;
}

.jn-profile-edit .jn-input input:focus,
.jn-profile-edit .jn-input textarea:focus {
	outline: none;
	border-color: var(--jn-accent);
	background: #fff;
	box-shadow: 0 0 0 4px rgba(74, 116, 179, 0.15);
}

.jn-profile-edit .jn-input textarea {
	resize: vertical;
	min-height: 120px;
}

/* "Private" switch */
.jn-private {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	font-size: 0.78rem;
	font-weight: 500;
	color: #6b7280;
	cursor: pointer;
	margin: 0;
	user-select: none;
}

.jn-private input {
	position: absolute;
	opacity: 0;
	width: 1px;
	height: 1px;
}

.jn-switch {
	width: 30px;
	height: 17px;
	border-radius: 999px;
	background: #d1d9e6;
	position: relative;
	transition: background 0.2s;
}

.jn-switch::after {
	content: "";
	position: absolute;
	top: 2px;
	left: 2px;
	width: 13px;
	height: 13px;
	border-radius: 50%;
	background: #fff;
	box-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
	transition: transform 0.2s;
}

.jn-private i {
	font-size: 0.7rem;
	opacity: 0.4;
}

.jn-private input:checked + .jn-switch {
	background: var(--jn-primary);
}

.jn-private input:checked + .jn-switch::after {
	transform: translateX(13px);
}

.jn-private input:checked ~ i {
	opacity: 1;
	color: var(--jn-primary);
}

.jn-private input:focus-visible + .jn-switch {
	box-shadow: 0 0 0 3px rgba(74, 116, 179, 0.35);
}

/* Upload boxes */
.jn-upload {
	display: flex;
	align-items: center;
	gap: 1rem;
	padding: 1rem;
	border: 2px dashed #cdd9ea;
	border-radius: 12px;
	background: #f9fbfd;
	cursor: pointer;
	margin: 0;
	transition: border-color 0.2s, background 0.2s;
}

.jn-upload:hover {
	border-color: var(--jn-accent);
	background: #f1f6fd;
}

.jn-upload input {
	position: absolute;
	opacity: 0;
	width: 1px;
	height: 1px;
}

.jn-upload-preview {
	width: 64px;
	height: 64px;
	border-radius: 12px;
	background: #e6eefa;
	color: var(--jn-primary);
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 1.5rem;
	overflow: hidden;
	flex-shrink: 0;
}

.jn-upload-preview img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.jn-upload-text {
	display: flex;
	flex-direction: column;
	min-width: 0;
}

.jn-upload-text strong {
	color: var(--jn-primary);
	font-size: 0.95rem;
}

.jn-upload-text small {
	color: #6b7280;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.jn-doc-thumbs {
	display: flex;
	flex-wrap: wrap;
	gap: 0.75rem;
}

.jn-doc-thumbs a {
	width: 96px;
	height: 96px;
	border-radius: 10px;
	overflow: hidden;
	border: 1px solid #e6ecf5;
}

.jn-doc-thumbs img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.3s;
}

.jn-doc-thumbs a:hover img {
	transform: scale(1.06);
}

/* Alerts and actions */
.jn-alert {
	display: flex;
	align-items: flex-start;
	gap: 0.75rem;
	padding: 1rem 1.25rem;
	border-radius: 12px;
	margin-bottom: 1.5rem;
	font-weight: 500;
}

.jn-alert i {
	margin-top: 3px;
}

.jn-alert-success {
	background: #ecfdf3;
	color: #067647;
	border: 1px solid #abefc6;
}

.jn-alert-error {
	background: #fef3f2;
	color: #b42318;
	border: 1px solid #fecdca;
}

.jn-edit-actions {
	position: sticky;
	bottom: 1rem;
	display: flex;
	justify-content: flex-end;
	align-items: center;
	gap: 1rem;
	padding: 1rem 1.25rem;
	background: rgba(255, 255, 255, 0.95);
	backdrop-filter: blur(6px);
	border: 1px solid #e6ecf5;
	border-radius: 14px;
	box-shadow: 0 10px 30px rgba(30, 61, 111, 0.12);
	z-index: 5;
}

.jn-edit-actions .jn-submit-btn {
	width: auto;
	margin: 0;
	padding: 0.8rem 1.75rem;
}

.jn-edit-cancel {
	color: #6b7280;
	font-weight: 500;
}

.jn-edit-cancel:hover {
	color: var(--jn-primary);
}

.jn-edit-locked {
	max-width: 480px;
	margin: 0 auto;
	text-align: center;
	padding: 3rem 2rem;
}

.jn-edit-locked .jn-edit-icon {
	width: 64px;
	height: 64px;
	font-size: 1.6rem;
	margin-bottom: 1rem;
}

@media (max-width: 991px) {
	.jn-edit-layout {
		grid-template-columns: minmax(0, 1fr);
	}

	.jn-edit-sidebar {
		position: static;
	}

	.jn-edit-nav {
		flex-direction: row;
		overflow-x: auto;
		gap: 0.25rem;
	}

	.jn-edit-nav a {
		white-space: nowrap;
	}

	.jn-edit-tip {
		display: none;
	}
}

@media (max-width: 600px) {
	.jn-edit-card {
		padding: 1.25rem;
	}

	.jn-field-grid {
		grid-template-columns: minmax(0, 1fr);
	}

	.jn-edit-actions {
		bottom: 0.5rem;
	}

	.jn-edit-actions .jn-submit-btn {
		flex: 1;
		justify-content: center;
	}
}
