/*
Theme Name: Kahuta Law College
Theme URI: https://klck.edu.pk
Author: Misbah Khan
Author URI: https://klck.edu.pk
Description: Custom-built WordPress theme for Kahuta Law College — hand-coded (no page builder) for speed and full control. Includes editable Faculty, Board of Governors and Administrative Team post types, a full-size photo lightbox with keyboard/swipe navigation, per-page display options (hero, breadcrumb, sidebar, spacing, header/footer visibility), and Customizer-managed social links.
Version: 1.7.8
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 7.4
License: Proprietary
Text Domain: klc
Tags: education, custom-background, custom-logo, custom-menu, featured-images, threaded-comments, translation-ready
*/

/* ===== RESET ===== */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
	font-family: Arial, Helvetica, sans-serif;
	color: #1a1a2e;
	line-height: 1.6;
	background: #ffffff;
}
img { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
h1, h2, h3, h4 { font-family: Georgia, 'Times New Roman', serif; color: #0a1f44; line-height: 1.3; }

/* ===== COLOR PALETTE =====
   Navy (primary):   #1B467B
   Navy (deep/dark):  #0a1f44
   White / Black text only otherwise — no gold or maroon accents.
   Grey bg: #f4f6fa
*/

.klc-container {
	max-width: 1200px;
	margin: 0 auto;
	padding: 0 20px;
}

/* ===== MODERN INTERACTIONS (hover lift + smooth transitions) =====
   Shared, theme-wide treatment for every card/box/button so hover states
   feel consistent whether it's a person card, a "Why Choose KLC" tile, a
   quick-info box, an event card, or a call-to-action button. */
.klc-card,
.klc-why-card,
.klc-quickinfo-card,
.klc-event-card,
.klc-feature-highlight,
.klc-subgallery-item,
.klc-gallery-item,
.klc-btn,
.klc-btn-outline,
.klc-nav-cta {
	transition: transform .3s cubic-bezier(.2,.8,.2,1), box-shadow .3s ease, background .25s ease, border-color .25s ease, color .2s ease;
	will-change: transform;
}
.klc-card:hover,
.klc-why-card:hover,
.klc-quickinfo-card:hover,
.klc-event-card:hover {
	transform: translateY(-6px);
	box-shadow: 0 18px 40px rgba(10,31,68,.12);
	border-color: #1B467B;
}
.klc-card-photo img,
.klc-subgallery-item img,
.klc-gallery-photo img {
	transition: transform .5s cubic-bezier(.2,.8,.2,1);
}
.klc-card:hover .klc-card-photo img,
.klc-subgallery-item:hover img,
.klc-gallery-item:hover .klc-gallery-photo img {
	transform: scale(1.06);
}
.klc-btn:hover,
.klc-nav-cta:hover { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(26,70,121,.35); }
.klc-btn-outline:hover { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(10,31,68,.18); }
.klc-btn:active,
.klc-btn-outline:active,
.klc-nav-cta:active { transform: translateY(0); }

/* Staggered reveal for people/card grids — each card fades/rises in a
   little after the one before it as the grid scrolls into view. */
.klc-grid.klc-reveal:not(.is-visible) .klc-reveal-item { opacity: 0; }
.klc-grid.klc-reveal.is-visible .klc-reveal-item {
	opacity: 1;
	animation: klc-card-in .55s cubic-bezier(.2,.8,.2,1) both;
}
.klc-grid.klc-reveal.is-visible .klc-reveal-item:nth-child(1) { animation-delay: .02s; }
.klc-grid.klc-reveal.is-visible .klc-reveal-item:nth-child(2) { animation-delay: .07s; }
.klc-grid.klc-reveal.is-visible .klc-reveal-item:nth-child(3) { animation-delay: .12s; }
.klc-grid.klc-reveal.is-visible .klc-reveal-item:nth-child(4) { animation-delay: .17s; }
.klc-grid.klc-reveal.is-visible .klc-reveal-item:nth-child(n+5) { animation-delay: .22s; }
@keyframes klc-card-in {
	from { opacity: 0; transform: translateY(18px); }
	to   { opacity: 1; transform: translateY(0); }
}
@media (prefers-reduced-motion: reduce) {
	.klc-card, .klc-why-card, .klc-quickinfo-card, .klc-event-card, .klc-btn, .klc-nav-cta,
	.klc-card-photo img, .klc-subgallery-item img, .klc-gallery-photo img {
		transition: none !important;
	}
	.klc-grid.klc-reveal.is-visible .klc-reveal-item { animation: none !important; opacity: 1 !important; transform: none !important; }
}

/* ===== LOGO BADGE (spans across ticker + nav bar, left side) =====
   Uses a fixed pixel height (ticker 40px + nav ~64px) instead of a
   relative 100%, so the logo can never grow taller than the two bars
   and spill into the page below — whatever size image is uploaded,
   object-fit:contain keeps it fully inside this fixed box. */
.klc-header-wrap {
	position: relative;
}
.klc-logo-badge {
	position: absolute;
	top: 0;
	left: 0;
	height: 104px;
	width: 150px;
	background: #fff;
	overflow: hidden;
	z-index: 150;
	box-shadow: 2px 0 10px rgba(0,0,0,.08);
}
.klc-logo-badge a {
	display: block;
	width: 100%;
	height: 100%;
	padding: 10px 12px;
}
.klc-logo-badge img,
.klc-logo-badge .custom-logo {
	width: 100% !important;
	height: 100% !important;
	max-width: none !important;
	max-height: none !important;
	object-fit: contain;
	display: block;
}

/* ===== ANNOUNCEMENT TICKER (merged bar: phone | announcements | email) ===== */
.klc-ticker {
	background: #ffffff;
	height: 40px;
	overflow: hidden;
	font-size: 13px;
	border-bottom: 1px solid #e5e8f0;
}
.klc-ticker-inner {
	height: 100%;
	display: flex;
	align-items: center;
	gap: 16px;
	padding-left: 170px;
}
.klc-ticker-phone,
.klc-ticker-email {
	color: #000 !important;
	font-weight: 600;
	white-space: nowrap;
	flex-shrink: 0;
}
.klc-ticker-phone .dashicons {
	color: #1B467B;
	font-size: 15px;
	width: 15px;
	height: 15px;
	vertical-align: -2px;
}
.klc-ticker-email { margin-left: auto; }
.klc-ticker-center {
	flex: 1;
	display: flex;
	align-items: center;
	height: 100%;
	min-width: 0;
	overflow: hidden;
}
.klc-ticker-label {
	background: #1B467B;
	color: #fff;
	font-weight: bold;
	padding: 0 14px;
	height: 100%;
	display: flex;
	align-items: center;
	white-space: nowrap;
	flex-shrink: 0;
}
.klc-ticker-track {
	overflow: hidden;
	flex: 1;
	position: relative;
	height: 100%;
	display: flex;
	align-items: center;
}
.klc-ticker-content {
	display: flex;
	gap: 60px;
	white-space: nowrap;
	color: #000;
	animation: klc-ticker-scroll 22s linear infinite;
	padding-left: 100%;
}
.klc-ticker-content span::before { content: "•"; margin-right: 8px; color: #1B467B; }
@keyframes klc-ticker-scroll {
	0% { transform: translateX(0); }
	100% { transform: translateX(-100%); }
}
@media (max-width: 700px) {
	.klc-ticker-phone, .klc-ticker-email { display: none; }
}

/* ===== HEADER / NAV ===== */
.klc-header {
	background: #1B467B;
	position: sticky;
	top: 0;
	z-index: 100;
}
.klc-header-inner {
	max-width: 1620px;
	margin: 0 auto;
	display: flex;
	align-items: center;
	/* Nav is centered in the bar (not pushed to the right). The left/right
	   padding is kept symmetric (170px matches the logo badge width + gutter
	   on the left, mirrored on the right) so the centered nav lines up with
	   the true middle of the header, not just the middle of its own box. */
	justify-content: center;
	flex-wrap: wrap;
	row-gap: 8px;
	min-height: 64px;
	padding: 12px 170px;
}
@media (min-width: 901px) and (max-width: 1300px) {
	.klc-header-inner { padding: 12px 20px 12px 160px; }
}
@media (max-width: 900px) {
	.klc-logo-badge {
		position: absolute;
		top: 44px; /* vertically centered in the hamburger bar, just below the 40px ticker */
		left: auto;
		right: 16px;
		height: 48px;
		width: 62px;
		background: #fff;
		border-radius: 8px;
		box-shadow: 0 2px 10px rgba(0,0,0,.25);
		padding: 4px 6px;
		box-sizing: border-box;
		display: inline-flex;
	}
	.klc-ticker-inner { padding-left: 20px; }
	.klc-header-inner { padding: 12px 20px; justify-content: flex-start; min-height: 0; }
	.klc-logo-badge a { padding: 0; }
}
.klc-logo {
	background: #fff;
	border-radius: 8px;
	padding: 6px 16px;
	display: inline-flex;
	align-items: center;
}
.klc-logo a { display: flex; align-items: center; }
.klc-logo img {
	height: 52px;
	width: auto;
	display: block;
}

.klc-menu {
	display: flex;
	flex-wrap: wrap;
	gap: 4px 16px;
	align-items: center;
}
.klc-menu > li {
	position: relative;
}
.klc-menu a {
	color: #fff;
	font-size: 13px;
	font-weight: 600;
	letter-spacing: .2px;
	transition: color .2s;
	white-space: nowrap;
	display: flex;
	align-items: center;
	padding: 10px 1px;
	position: relative;
}
.klc-menu a:hover { color: #cfe0f5; }
/* Active page: text stays the same white as every other item — the only
   indicator is a small glowing white dot above it. */
.klc-menu .current-menu-item > a::before,
.klc-menu .current-menu-ancestor > a::before {
	content: "";
	position: absolute;
	top: -3px;
	left: 50%;
	transform: translateX(-50%);
	width: 6px;
	height: 6px;
	border-radius: 50%;
	background: #fff;
	box-shadow: 0 0 8px 2px rgba(255,255,255,.85);
}

/* Caret on items that have a dropdown */
.klc-menu > li.menu-item-has-children > a::after {
	content: "";
	display: inline-block;
	width: 6px;
	height: 6px;
	margin-left: 6px;
	border-right: 2px solid currentColor;
	border-bottom: 2px solid currentColor;
	transform: rotate(45deg);
	transition: transform .2s;
	flex-shrink: 0;
}
.klc-menu > li.menu-item-has-children:hover > a::after,
.klc-menu > li.menu-item-has-children.is-open > a::after {
	transform: rotate(225deg);
}

/* Mobile-only accordion toggle button (hidden on desktop) */
.klc-submenu-toggle { display: none; }

/* ===== DROPDOWN (desktop) ===== */
/* Flush against the trigger (no gap) so the mouse never leaves the
   hoverable area while moving from the link down into the panel —
   that gap was the reason the dropdown used to vanish instantly. */
.klc-menu .sub-menu {
	position: absolute;
	top: 100%;
	left: 0;
	min-width: 235px;
	background: #fff;
	border-radius: 10px;
	box-shadow: 0 16px 36px rgba(10,31,68,.2);
	padding: 8px 0;
	margin: 0;
	opacity: 0;
	visibility: hidden;
	pointer-events: none;
	transform: translateY(6px);
	transition: opacity .2s cubic-bezier(.4,0,.2,1), transform .2s cubic-bezier(.4,0,.2,1), visibility .2s;
	z-index: 200;
	max-height: 74vh;
	overflow-y: auto;
}
.klc-menu > li.menu-item-has-children:hover > .sub-menu,
.klc-menu > li.menu-item-has-children.is-open > .sub-menu {
	opacity: 1;
	visibility: visible;
	pointer-events: auto;
	transform: translateY(0);
}
/* keep dropdowns near the right edge from overflowing off-screen */
.klc-menu > li.menu-item-has-children:nth-last-child(-n+3) .sub-menu {
	left: auto;
	right: 0;
}
.klc-menu .sub-menu a {
	color: #0a1f44;
	font-size: 13.5px;
	font-weight: 500;
	padding: 10px 20px;
	display: block;
	border-left: 3px solid transparent;
	white-space: nowrap;
}
.klc-menu .sub-menu a:hover {
	background: #f4f6fa;
	border-left-color: #1B467B;
	color: #0a1f44;
}

.klc-nav {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 10px 24px;
}
.klc-nav-cta {
	background: #ffffff;
	color: #000000 !important;
	padding: 9px 18px;
	border-radius: 6px;
	font-weight: bold;
	font-size: 13px;
	white-space: nowrap;
}
.klc-nav-cta:hover { background: #eef2f8; }

.klc-nav-toggle {
	display: none;
	flex-direction: column;
	gap: 5px;
	background: none;
	border: none;
	cursor: pointer;
	padding: 6px;
}
.klc-nav-toggle span {
	width: 26px;
	height: 3px;
	background: #fff;
	display: block;
}

@media (min-width: 901px) and (max-width: 1300px) {
	.klc-menu { gap: 4px 12px; }
	.klc-menu a { font-size: 12px; }
	.klc-nav { gap: 8px 16px; }
}

@media (max-width: 900px) {
	.klc-nav-toggle { display: flex; }
	.klc-nav {
		display: none;
		width: 100%;
		background: #0a1f44;
		max-height: calc(100vh - 90px);
		overflow-y: auto;
	}
	.klc-nav.is-open { display: flex; }
	.klc-nav { flex-direction: column; align-items: stretch; }
	.klc-menu {
		flex-direction: column;
		gap: 0;
		padding: 10px 0;
		align-items: stretch;
	}
	.klc-menu > li { position: relative; }
	.klc-menu a {
		padding: 13px 20px;
		border-top: 1px solid rgba(255,255,255,.1);
	}
	.klc-menu > li.menu-item-has-children > a {
		padding-right: 54px;
	}
	.klc-menu > li.menu-item-has-children > a::after { display: none; }

	/* Accordion toggle button */
	.klc-submenu-toggle {
		display: flex;
		align-items: center;
		justify-content: center;
		position: absolute;
		top: 2px;
		right: 4px;
		width: 44px;
		height: 44px;
		background: none;
		border: none;
		cursor: pointer;
	}
	.klc-submenu-toggle span {
		width: 9px;
		height: 9px;
		border-right: 2px solid #fff;
		border-bottom: 2px solid #fff;
		transform: rotate(45deg);
		transition: transform .2s;
	}
	.klc-menu > li.is-open > .klc-submenu-toggle span { transform: rotate(225deg); }

	/* Sub-menu becomes a static collapsible block, not an absolute dropdown */
	.klc-menu .sub-menu {
		position: static;
		display: none;
		opacity: 1;
		visibility: visible;
		transform: none;
		box-shadow: none;
		border-radius: 0;
		margin: 0;
		padding: 0;
		background: #071630;
		max-height: none;
		columns: 1;
	}
	.klc-menu > li.is-open > .sub-menu { display: block; }
	.klc-menu .sub-menu a {
		color: #cfd6e6;
		padding: 12px 20px 12px 38px;
		border-top: 1px solid rgba(255,255,255,.08);
		border-left: none;
	}
	.klc-menu .sub-menu a:hover { background: rgba(255,255,255,.06); color: #1B467B; }

	.klc-nav-cta { margin: 12px 20px 16px; text-align: center; }
}

/* ===== CAROUSEL (Homepage Slider) ===== */
.klc-carousel {
	position: relative;
	height: 82vh;
	min-height: 480px;
	max-height: 760px;
	overflow: hidden;
}
.klc-carousel-track {
	position: relative;
	width: 100%;
	height: 100%;
}
.klc-slide {
	position: absolute;
	inset: 0;
	opacity: 0;
	visibility: hidden;
	transition: opacity .8s ease;
	display: flex;
	align-items: center;
}
.klc-slide.is-active {
	opacity: 1;
	visibility: visible;
}
.klc-slide-bg {
	position: absolute;
	inset: 0;
	background-size: cover;
	background-position: center;
}
.klc-slide-bg-placeholder {
	background: linear-gradient(135deg, #0a1f44, #1c3566);
}

.klc-carousel-arrow {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	background: rgba(255,255,255,.15);
	border: none;
	color: #fff;
	width: 44px;
	height: 44px;
	border-radius: 50%;
	font-size: 24px;
	cursor: pointer;
	z-index: 3;
	transition: background .2s;
}
.klc-carousel-arrow:hover { background: rgba(255,255,255,.3); }
.klc-carousel-prev { left: 20px; }
.klc-carousel-next { right: 20px; }

.klc-carousel-dots {
	position: absolute;
	bottom: 24px;
	left: 50%;
	transform: translateX(-50%);
	display: flex;
	gap: 10px;
	z-index: 3;
}
.klc-dot {
	width: 10px;
	height: 10px;
	border-radius: 50%;
	background: rgba(255,255,255,.4);
	border: none;
	cursor: pointer;
	padding: 0;
}
.klc-dot.is-active { background: #1B467B; }

@media (max-width: 800px) {
	.klc-carousel { height: 60vh; min-height: 420px; }
	.klc-carousel-arrow { width: 36px; height: 36px; font-size: 20px; }
}

/* ===== HERO ===== */
.klc-hero { background: #f4f6fa; padding: 60px 0; }
.klc-hero-inner {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 40px;
	align-items: center;
}
.klc-hero-text h1 { font-size: 32px; margin-bottom: 20px; }
.klc-hero-list li {
	padding: 6px 0 6px 24px;
	position: relative;
	font-size: 15px;
}
.klc-hero-list li::before {
	content: "\2022";
	color: #1B467B;
	font-size: 20px;
	position: absolute;
	left: 0;
	top: 2px;
}
.klc-hero-placeholder {
	background: #dde3ee;
	border-radius: 12px;
	aspect-ratio: 16/10;
	display: flex;
	align-items: center;
	justify-content: center;
	color: #667;
	font-size: 14px;
}
@media (max-width: 800px) {
	.klc-hero-inner { grid-template-columns: 1fr; }
}

/* ===== BUTTON ===== */
.klc-btn {
	display: inline-block;
	background: #1B467B;
	color: #ffffff !important;
	font-weight: bold;
	padding: 12px 28px;
	border-radius: 6px;
	margin-top: 20px;
	transition: background .2s;
	border: none;
	cursor: pointer;
	font-size: 15px;
}
.klc-btn:hover { background: #123067; }

/* ===== QUICK INFO CARDS ===== */
.klc-quickinfo { padding: 50px 0; }
.klc-quickinfo-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 24px;
}
.klc-quickinfo-card {
	background: #fff;
	border: 1px solid #e5e8f0;
	border-radius: 10px;
	padding: 28px;
	text-align: center;
	box-shadow: 0 2px 10px rgba(0,0,0,.04);
}
.klc-quickinfo-card h3 { margin-bottom: 10px; color: #0a1f44; }
@media (max-width: 800px) {
	.klc-quickinfo-grid { grid-template-columns: 1fr; }
}

/* ===== ABOUT SECTION ===== */
.klc-about { padding: 60px 0; background: #f4f6fa; }
.klc-about-grid {
	display: grid;
	grid-template-columns: 1.2fr 1fr;
	gap: 40px;
	align-items: center;
}
.klc-about-content h2 { margin-bottom: 16px; }
@media (max-width: 800px) {
	.klc-about-grid { grid-template-columns: 1fr; }
}

/* ===== PRESIDENT MESSAGE SECTION ===== */
.klc-president { padding: 60px 0; }
.klc-president-grid {
	display: grid;
	grid-template-columns: 1.15fr 1fr;
	gap: 40px;
	align-items: center;
}
.klc-president-media img {
	width: 100%;
	border-radius: 12px;
	aspect-ratio: 1080 / 800;
	object-fit: cover;
	object-position: top center;
}
.klc-president-content h2 { margin-bottom: 16px; }
.klc-president-content p { margin-bottom: 14px; font-size: 15px; }
.klc-president-signature { font-size: 14px; color: #445; margin-top: 20px; }
.klc-btn-outline {
	background: transparent;
	color: #0a1f44 !important;
	border: 2px solid #0a1f44;
}
.klc-btn-outline:hover { background: #0a1f44; color: #fff !important; }
@media (max-width: 800px) {
	.klc-president-grid { grid-template-columns: 1fr; }
}

/* =====================================================
   DESIGN SYSTEM — editorial "eyebrow label" + alternating
   image/text blocks + dark feature panels, in KLC's own
   navy/white/black branding (COMSATS screenshots used
   only as a layout/structure reference, not for colors/content).
===================================================== */
.klc-eyebrow {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 1.2px;
	text-transform: uppercase;
	color: #1B467B;
	margin-bottom: 12px;
}
.klc-eyebrow::before {
	content: "";
	width: 26px;
	height: 2px;
	background: #1B467B;
	display: inline-block;
}
.klc-eyebrow.is-light { color: #9fc2ea; }

.klc-accent { color: #0a1f44; }

/* Alternating image + text feature row, used on Campus Life / Societies
   and any long text page that benefits from an editorial layout. */
.klc-feature-row {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 56px;
	align-items: center;
	padding: 54px 0;
}
.klc-feature-row.is-reversed .klc-feature-media { order: 2; }
.klc-feature-row.is-reversed .klc-feature-content { order: 1; }
.klc-feature-media {
	position: relative;
	border-radius: 16px;
	overflow: hidden;
	aspect-ratio: 4/3;
	box-shadow: 0 10px 30px rgba(10,31,68,.1);
}
.klc-feature-media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.klc-feature-tag {
	position: absolute;
	left: 16px;
	bottom: 16px;
	background: rgba(10,31,68,.85);
	color: #fff;
	font-size: 12px;
	font-weight: 600;
	padding: 7px 14px;
	border-radius: 20px;
	backdrop-filter: blur(2px);
}
.klc-feature-content h2 { font-size: 26px; margin-bottom: 14px; }
.klc-feature-content h2 span { color: #0a1f44; }
.klc-feature-content p { color: #445; font-size: 15px; margin-bottom: 14px; }
.klc-feature-highlight {
	display: flex;
	align-items: center;
	gap: 14px;
	background: #f6f7fb;
	border: 1px solid #eceef6;
	border-radius: 12px;
	padding: 14px 18px;
	margin-top: 8px;
}
.klc-feature-highlight .dashicons {
	width: 40px; height: 40px; font-size: 20px;
	background: #0a1f44; color: #fff;
	border-radius: 10px;
	display: flex; align-items: center; justify-content: center;
	flex-shrink: 0;
}
.klc-feature-highlight strong { display: block; font-size: 14px; color: #0a1f44; }
.klc-feature-highlight span.klc-feature-sub { font-size: 13px; color: #667; }

/* Full-width photo carousel shown under a feature row when its gallery
   category has more than one photo — one image visible at a time,
   arrows + dots to browse, replaces the old small 4-photo thumb strip. */
.klc-feature-subcarousel { margin: -20px 0 46px; }
.klc-single-carousel {
	position: relative;
	max-width: 980px;
	margin: 0 auto;
	border-radius: 16px;
	overflow: hidden;
	box-shadow: 0 10px 30px rgba(10,31,68,.12);
}
.klc-single-carousel-track {
	display: flex;
	transition: transform .5s cubic-bezier(.22,.61,.36,1);
	will-change: transform;
}
.klc-single-carousel-slide {
	flex: 0 0 100%;
	aspect-ratio: 16/7;
	background: #eef0f6;
}
.klc-single-carousel-slide img { width: 100%; height: 100%; object-fit: cover; display: block; }
.klc-single-carousel-arrow {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	width: 42px; height: 42px;
	border-radius: 50%;
	border: none;
	background: rgba(10,31,68,.55);
	color: #fff;
	font-size: 15px;
	cursor: pointer;
	display: flex; align-items: center; justify-content: center;
	transition: background .2s ease;
}
.klc-single-carousel-arrow:hover { background: #1B467B; }
.klc-single-carousel-prev { left: 14px; }
.klc-single-carousel-next { right: 14px; }
.klc-single-carousel-dots {
	position: absolute;
	left: 0; right: 0; bottom: 12px;
	display: flex;
	justify-content: center;
	gap: 8px;
}
.klc-single-carousel-dot {
	width: 8px; height: 8px;
	border-radius: 50%;
	border: none;
	background: rgba(255,255,255,.55);
	cursor: pointer;
	padding: 0;
}
.klc-single-carousel-dot.is-active { background: #fff; width: 22px; border-radius: 4px; }
@media (max-width: 640px) {
	.klc-single-carousel-slide { aspect-ratio: 4/3; }
	.klc-single-carousel-arrow { width: 34px; height: 34px; font-size: 12px; }
}

/* Dark feature panel — a bold, full-bleed navy block for a single
   standout statement (like the COMSATS "Food Hall" panel), split into a
   text side and a circular badge side. */
.klc-dark-panel {
	background: linear-gradient(120deg, #0a1f44 0%, #16305f 100%);
	border-radius: 20px;
	overflow: hidden;
	display: grid;
	grid-template-columns: 1.3fr 1fr;
	margin: 20px 0;
}
.klc-dark-panel-content { padding: 46px 44px; }
.klc-dark-panel-content h2 { color: #fff; font-size: 26px; margin-bottom: 14px; }
.klc-dark-panel-content h2 span { color: #9fc2ea; }
.klc-dark-panel-content p { color: rgba(255,255,255,.8); font-size: 14.5px; margin-bottom: 12px; }
.klc-dark-panel-badges { display: flex; gap: 10px; margin-top: 16px; flex-wrap: wrap; }
.klc-dark-panel-badge {
	background: rgba(255,255,255,.08);
	border: 1px solid rgba(255,255,255,.14);
	border-radius: 10px;
	padding: 10px 14px;
	font-size: 12.5px;
	color: #fff;
}
.klc-dark-panel-badge strong { display: block; font-size: 13px; }
.klc-dark-panel-visual {
	background: rgba(255,255,255,.04);
	display: flex;
	align-items: center;
	justify-content: center;
	border-left: 1px solid rgba(255,255,255,.08);
}
.klc-dark-panel-circle {
	width: 150px; height: 150px;
	border: 1px dashed rgba(232,200,119,.5);
	border-radius: 50%;
	display: flex; flex-direction: column; align-items: center; justify-content: center;
	color: #fff;
	text-align: center;
	gap: 4px;
}
.klc-dark-panel-circle .dashicons { font-size: 30px; color: #9fc2ea; }
.klc-dark-panel-circle strong { font-size: 15px; }
.klc-dark-panel-circle span { font-size: 11px; letter-spacing: .5px; text-transform: uppercase; color: rgba(255,255,255,.6); }

@media (max-width: 860px) {
	.klc-feature-row { grid-template-columns: 1fr; gap: 24px; padding: 34px 0; }
	.klc-feature-row.is-reversed .klc-feature-media,
	.klc-feature-row.is-reversed .klc-feature-content { order: initial; }
	.klc-dark-panel { grid-template-columns: 1fr; }
	.klc-dark-panel-visual { padding: 30px; border-left: none; border-top: 1px solid rgba(255,255,255,.08); }
}

/* ===== WHY CHOOSE KLC ===== */
.klc-why { padding: 60px 0; background: #f4f6fa; }
.klc-section-title { text-align: center; font-size: 28px; margin-bottom: 12px; }
.klc-section-intro {
	text-align: center;
	max-width: 700px;
	margin: 0 auto 36px;
	color: #445;
	font-size: 15px;
}
.klc-why-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 24px;
}
.klc-why-card {
	background: #fff;
	border-radius: 10px;
	padding: 26px;
	border-top: 3px solid #1B467B;
	box-shadow: 0 2px 10px rgba(0,0,0,.04);
}
.klc-why-card h3 { font-size: 17px; margin-bottom: 8px; color: #0a1f44; }
.klc-why-card p { font-size: 14px; color: #445; }
.klc-why-stat {
	display: inline-block;
	font-size: 11px;
	font-weight: 700;
	letter-spacing: .6px;
	color: #1B467B;
	background: rgba(26,70,121,.12);
	padding: 4px 10px;
	border-radius: 20px;
	margin-bottom: 10px;
}
@media (max-width: 900px) {
	.klc-why-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
	.klc-why-grid { grid-template-columns: 1fr; }
}

/* ===== BOARD OF GOVERNORS PREVIEW ===== */
.klc-board-preview { padding: 60px 0; }
.klc-center { text-align: center; margin-top: 10px; }

/* ===== PHOTO GALLERY CAROUSEL (Campus Life / Events / Achievements teasers) =====
   Premium "3-up" sliding carousel: a fixed viewport shows 3 large cards,
   the arrows slide the track over one card at a time via a JS transform
   (no native scrollbar / scroll-snap quirks). Responsive: 2-up on tablet,
   1-up on mobile. */
.klc-btn-sm { padding: 8px 18px; font-size: 13px; margin-top: 0; white-space: nowrap; }
.klc-gallery-section { padding: 56px 0; }
.klc-gallery-section:nth-of-type(even) { background: #f6f7fb; }
.klc-gallery-subtitle { color: #556; font-size: 14px; }

.klc-gallery-wrap {
	position: relative;
	max-width: 1200px;
	margin: 0 auto;
	padding: 6px 66px 10px;
}
.klc-carousel-viewport {
	overflow: hidden;
	padding: 26px 0 34px;
}
.klc-carousel-track {
	display: flex;
	gap: 26px;
	transition: transform .45s cubic-bezier(.22,.61,.36,1);
	will-change: transform;
}

.klc-gallery-item {
	position: relative;
	flex: 0 0 calc((100% - 52px) / 3);
	box-sizing: border-box;
	background: #fff;
	border-radius: 16px;
	overflow: hidden;
	box-shadow: 0 6px 20px rgba(10,31,68,.09);
	border: 1px solid #eef0f6;
	transition: transform .45s cubic-bezier(.22,.61,.36,1), box-shadow .3s ease, opacity .3s ease;
	opacity: .68;
	transform: scale(.86);
	z-index: 1;
}
.klc-gallery-item:hover {
	transform: scale(.86) translateY(-6px);
	box-shadow: 0 18px 34px rgba(10,31,68,.16);
}
/* "Coverflow": the centred card in the carousel is always shown at
   full size and full opacity; the cards either side of it are slightly
   smaller and dimmer. This stays true on every scroll/arrow step since
   the JS re-applies .is-center to whichever card is now in the middle. */
.klc-gallery-item.is-center {
	opacity: 1;
	transform: scale(1.18);
	z-index: 2;
	box-shadow: 0 22px 44px rgba(10,31,68,.24);
}
.klc-gallery-item.is-center:hover { transform: scale(1.18) translateY(-6px); }

/* People carousel (Board of Governors / Faculty / Our Team) reuses the
   photo-carousel's coverflow behaviour, but the person card already has
   its own background/shadow/border — strip the outer gallery-item's card
   chrome so it isn't doubled up, keep only the size + coverflow motion. */
.klc-people-carousel-item {
	background: transparent;
	border: none;
	box-shadow: none;
	border-radius: 0;
}
.klc-people-carousel-item .klc-scard,
.klc-people-carousel-item .klc-ocard { height: 100%; }
.klc-people-carousel .klc-carousel-viewport { padding: 30px 0 40px; }
.klc-gallery-photo {
	aspect-ratio: 4/3;
	overflow: hidden;
	background: #eef0f6;
}
.klc-gallery-photo img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform .5s ease;
	display: block;
}
.klc-gallery-item:hover .klc-gallery-photo img { transform: scale(1.08); }
.klc-gallery-caption {
	padding: 14px 18px;
	font-size: 14px;
	font-weight: 600;
	color: #0a1f44;
	border-top: 1px solid #f0f1f6;
}

.klc-gallery-arrow {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	width: 46px;
	height: 46px;
	border-radius: 50%;
	border: 1px solid #e7e9f2;
	background: #fff;
	color: #0a1f44;
	font-size: 16px;
	cursor: pointer;
	box-shadow: 0 6px 18px rgba(10,31,68,.12);
	z-index: 2;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: background .2s, color .2s, opacity .2s;
}
.klc-gallery-arrow:hover { background: #1B467B; color: #fff; border-color: #1B467B; }
.klc-gallery-arrow.is-disabled { opacity: .35; cursor: default; }
.klc-gallery-arrow.is-disabled:hover { background: #fff; color: #0a1f44; border-color: #e7e9f2; }
.klc-gallery-prev { left: 0; }
.klc-gallery-next { right: 0; }

@media (max-width: 900px) {
	.klc-gallery-item { flex-basis: calc((100% - 26px) / 2); }
}
@media (max-width: 640px) {
	.klc-gallery-wrap { padding: 6px 50px 10px; }
	.klc-gallery-item { flex-basis: 100%; }
	.klc-gallery-arrow { width: 38px; height: 38px; font-size: 14px; }
}

/* ===== SUB-GALLERY GRID (Campus Life / Societies sub-pages) ===== */
.klc-subgallery { margin-bottom: 44px; }

/* Event write-up shown directly under its matching photo category
   (or, for anything without a matching category, under "More From KLC"
   at the end of the page) — simple title + full text, no card chrome. */
.klc-event-writeup { max-width: 760px; margin: 18px 0 30px; }
.klc-event-writeup h4 { font-size: 19px; color: #0a1f44; margin-bottom: 8px; }
.klc-event-writeup p { color: #334; line-height: 1.7; margin-bottom: 10px; }
.klc-subgallery-head {
	display: flex;
	align-items: center;
	gap: 14px;
	margin-bottom: 14px;
	padding-bottom: 10px;
	border-bottom: 2px solid #e5e8f0;
}
.klc-subgallery-icon {
	width: 42px;
	height: 42px;
	border-radius: 12px;
	background: linear-gradient(135deg, #1B467B, #0a1f44);
	color: #fff;
	display: flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
}
.klc-subgallery-icon .dashicons { font-size: 20px; width: 20px; height: 20px; }
.klc-subgallery-title {
	font-size: 20px;
	margin-bottom: 0;
	padding-bottom: 0;
	border-bottom: none;
	color: #0a1f44;
}
.klc-subgallery-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
	gap: 14px;
}
.klc-subgallery-item {
	display: block;
	aspect-ratio: 1/1;
	border-radius: 8px;
	overflow: hidden;
	box-shadow: 0 2px 8px rgba(0,0,0,.05);
}
.klc-subgallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
.klc-subgallery-item:hover img { transform: scale(1.06); }
.klc-subgallery-empty {
	color: #99a3b8;
	font-size: 13.5px;
	padding: 22px 18px;
	border: 1.5px dashed #d8dce8;
	border-radius: 10px;
	background: #fafbfd;
	display: flex;
	align-items: center;
	gap: 10px;
}
.klc-subgallery-empty::before {
	content: "\f128";
	font-family: dashicons;
	font-size: 20px;
	color: #c9c9d6;
}
.klc-subgallery-desc { color: #445; font-size: 14.5px; line-height: 1.6; margin-bottom: 16px; max-width: 800px; }
.klc-content-table { width: 100%; }

/* ===== EXPLORE TILES (big clickable photo cards) ===== */
.klc-explore { padding: 60px 0; background: #f4f6fa; }
.klc-explore-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 20px;
}
.klc-explore-tile {
	position: relative;
	aspect-ratio: 4/3;
	border-radius: 12px;
	overflow: hidden;
	display: flex;
	align-items: flex-end;
	background: linear-gradient(135deg, #0a1f44, #1c3566);
}
.klc-explore-tile img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform .4s ease;
}
.klc-explore-tile:hover img { transform: scale(1.08); }
.klc-explore-tile::after {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(transparent 40%, rgba(7,22,48,.9));
}
.klc-explore-tile-label {
	position: relative;
	z-index: 2;
	color: #fff;
	padding: 22px;
	width: 100%;
}
.klc-explore-tile-label span {
	display: block;
	font-size: 12px;
	color: #1B467B;
	font-weight: 700;
	letter-spacing: .5px;
	margin-bottom: 4px;
}
.klc-explore-tile-label h3 { color: #fff; font-size: 19px; }
@media (max-width: 900px) {
	.klc-explore-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
	.klc-explore-grid { grid-template-columns: 1fr; }
}

/* ===== QUOTE BANNER ===== */
.klc-quote {
	background: #0a1f44;
	color: #fff;
	padding: 60px 0;
	text-align: center;
}
.klc-quote blockquote {
	font-family: Georgia, serif;
	font-size: 28px;
	font-style: italic;
	max-width: 700px;
	margin: 0 auto;
}

.klc-reveal {
	opacity: 0;
	transform: translateY(28px);
	transition: opacity .7s cubic-bezier(.2,.7,.3,1), transform .7s cubic-bezier(.2,.7,.3,1);
}
.klc-reveal.is-visible {
	opacity: 1;
	transform: none;
}
@media (prefers-reduced-motion: reduce) {
	.klc-reveal { opacity: 1; transform: none; transition: none; }
}

/* ===== GENERIC PAGE ===== */
.klc-page-header {
	background: linear-gradient(120deg, #0a1f44 0%, #142c5c 60%, #0a1f44 100%);
	padding: 22px 0 24px;
	border-bottom: 3px solid #1B467B;
	position: relative;
}
.klc-page-header-hero {
	padding: 58px 0 34px;
	background-size: cover;
	background-position: center;
}
.klc-breadcrumb {
	font-size: 12.5px;
	color: rgba(255,255,255,.65);
	margin-top: 16px;
}
.klc-breadcrumb a { color: rgba(255,255,255,.65); }
.klc-breadcrumb a:hover { color: #1B467B; }
.klc-breadcrumb span { margin: 0 6px; }
.klc-breadcrumb .is-current { color: #1B467B; margin: 0; }
.klc-page-header h1 { color: #fff; font-size: 34px; margin: 0; }
.klc-page-header-sub { color: rgba(255,255,255,.8); font-size: 15px; margin-top: 8px; max-width: 640px; }
.klc-page-content { padding: 50px 0; }
.klc-page-content > p:first-of-type {
	font-size: 18px;
	line-height: 1.65;
	color: #33395a;
	font-weight: 500;
}
.klc-page-content h2 {
	margin: 42px 0 16px;
	font-size: 24px;
	padding-bottom: 12px;
	border-bottom: 3px solid #1B467B;
	display: inline-block;
}
.klc-page-content h3 {
	margin: 30px 0 12px;
	font-size: 19px;
	color: #0a1f44;
}
.klc-page-content p { margin-bottom: 14px; line-height: 1.7; color: #3a4160; }
.klc-page-content strong { color: #0a1f44; }
.klc-page-content ul, .klc-page-content ol {
	margin: 0 0 22px;
	padding: 0;
	list-style: none;
}
.klc-page-content ul li, .klc-page-content ol li {
	position: relative;
	padding: 9px 0 9px 34px;
	border-bottom: 1px dashed #eceef6;
	line-height: 1.6;
}
.klc-page-content ul li:last-child, .klc-page-content ol li:last-child { border-bottom: none; }
.klc-page-content ul li::before {
	content: "\f147";
	font-family: dashicons;
	position: absolute;
	left: 0;
	top: 8px;
	color: #1B467B;
	font-size: 18px;
}
.klc-page-content ol { counter-reset: klc-ol; }
.klc-page-content ol li::before {
	counter-increment: klc-ol;
	content: counter(klc-ol);
	position: absolute;
	left: 0;
	top: 8px;
	width: 22px;
	height: 22px;
	border-radius: 50%;
	background: #0a1f44;
	color: #fff;
	font-size: 11px;
	font-weight: 700;
	display: flex;
	align-items: center;
	justify-content: center;
}
.klc-page-content blockquote {
	margin: 26px 0;
	padding: 22px 28px;
	background: #f6f7fb;
	border-left: 4px solid #1B467B;
	border-radius: 0 12px 12px 0;
	font-family: Georgia, serif;
	font-style: italic;
	font-size: 17px;
	color: #26304f;
}
.klc-page-content table {
	width: 100%;
	border-collapse: separate;
	border-spacing: 0;
	margin: 26px 0;
	border-radius: 12px;
	overflow: hidden;
	box-shadow: 0 6px 22px rgba(10,31,68,.08);
	border: 1px solid #e9ecf5;
	font-size: 14px;
}
.klc-page-content table th {
	background: linear-gradient(120deg, #0a1f44, #16305f);
	color: #fff;
	font-weight: 600;
	letter-spacing: .3px;
	text-align: left;
	padding: 14px 18px;
}
.klc-page-content table th:first-child { border-top-left-radius: 12px; }
.klc-page-content table th:last-child { border-top-right-radius: 12px; }
.klc-page-content table td {
	padding: 13px 18px;
	text-align: left;
	border-bottom: 1px solid #eef0f7;
	color: #2a3350;
}
.klc-page-content table tr:last-child td { border-bottom: none; }
.klc-page-content table tbody tr:nth-child(even) { background: #f8f9fd; }
.klc-page-content table tbody tr:hover { background: #f0f3fb; }
.klc-page-content table td strong { color: #0a1f44; }
@media (max-width: 640px) {
	.klc-page-content table { display: block; overflow-x: auto; white-space: nowrap; }
}

/* ===== PEOPLE GRID (Faculty / Board of Governors) ===== */
.klc-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
	gap: 24px;
	padding-bottom: 60px;
}
.klc-grid-overlay { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
.klc-card {
	background: #fff;
	border: 1px solid #e5e8f0;
	border-radius: 10px;
	overflow: hidden;
	text-align: center;
	box-shadow: 0 2px 8px rgba(0,0,0,.04);
}
.klc-card-photo { aspect-ratio: 1/1; background: #dde3ee; }
.klc-card-photo img { width: 100%; height: 100%; object-fit: cover; }
.klc-card-placeholder {
	width: 100%; height: 100%;
	display: flex; align-items: center; justify-content: center;
	color: #667; font-size: 13px; padding: 10px;
}
.klc-card-name { padding: 14px 12px 4px; font-size: 16px; }
.klc-card-meta { padding: 0 14px 16px; font-size: 12px; color: #556; }
.klc-card-meta li { padding: 2px 0; }

/* ===== OVERLAY PERSON CARD (Board of Governors / Our Team) =====
   Full-bleed photo, name + role on a dark navy gradient over the
   bottom of the image; the gradient rises higher on hover. */
.klc-ocard {
	border-radius: 14px;
	overflow: hidden;
	box-shadow: 0 8px 24px rgba(10,31,68,.16);
	transition: box-shadow .3s ease, transform .3s ease;
}
.klc-ocard:hover {
	box-shadow: 0 18px 40px rgba(10,31,68,.26);
	transform: translateY(-4px);
}
.klc-ocard-photo {
	position: relative;
	aspect-ratio: 3/4;
	background: #dde3ee;
	overflow: hidden;
}
.klc-ocard-photo img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; display: block; }
.klc-ocard:hover .klc-ocard-photo img { transform: scale(1.06); }
.klc-ocard-placeholder {
	width: 100%; height: 100%;
	display: flex; align-items: center; justify-content: center;
	background: linear-gradient(150deg, #1B467B, #0a1f44);
}
.klc-ocard-placeholder .dashicons { font-size: 44px; width: 44px; height: 44px; color: rgba(255,255,255,.5); }
.klc-ocard-overlay {
	position: absolute;
	left: 0; right: 0; bottom: 0;
	padding: 34px 16px 14px;
	background: linear-gradient(to top, rgba(10,31,68,.92) 0%, rgba(10,31,68,.55) 55%, rgba(10,31,68,0) 100%);
	color: #fff;
	transition: padding-top .3s ease;
}
.klc-ocard:hover .klc-ocard-overlay { padding-top: 60px; }
.klc-ocard-name { font-size: 16px; margin: 0 0 2px; color: #fff; font-family: Georgia, 'Times New Roman', serif; }
.klc-ocard-role { font-size: 13px; font-weight: 600; color: #bcd0ea; margin: 0; }
.klc-ocard-sub { font-size: 11.5px; color: #9fb3cf; margin: 2px 0 0; }

/* ===== SPLIT PERSON CARD (Board of Governors / Faculty) =====
   Photo on top, name + full designation lines below in a plain white
   panel — designation text stays fully readable instead of being
   compressed onto the photo. */
.klc-scard {
	background: #fff;
	border: 1px solid #e5e8f0;
	border-radius: 14px;
	overflow: hidden;
	box-shadow: 0 6px 18px rgba(10,31,68,.08);
}
.klc-scard-photo { aspect-ratio: 1/1; background: #dde3ee; overflow: hidden; }
.klc-scard-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.klc-scard-placeholder {
	width: 100%; height: 100%;
	display: flex; align-items: center; justify-content: center;
	background: linear-gradient(150deg, #eef2f8, #dbe3f5);
}
.klc-scard-placeholder .dashicons { font-size: 40px; width: 40px; height: 40px; color: #9fb3cf; }
.klc-scard-body { padding: 14px 16px 18px; }
.klc-scard-name { font-size: 16px; margin: 0 0 6px; color: #0a1f44; font-family: Georgia, 'Times New Roman', serif; }
.klc-scard-meta { font-size: 12.5px; color: #445; line-height: 1.5; }
.klc-scard-meta li { padding: 1px 0; }

/* ===== PROGRAM / FACULTY / ADMISSIONS TEASER ===== */
.klc-program-teaser { padding: 56px 0; text-align: center; }
.klc-program-teaser .klc-eyebrow { justify-content: center; display: inline-flex; }
.klc-program-teaser-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 24px;
	margin-top: 30px;
}
.klc-program-teaser-card {
	background: #fff;
	border: 1px solid #e5e8f0;
	border-radius: 12px;
	padding: 32px 24px;
	text-align: center;
	display: block;
}
.klc-program-teaser-card:hover { box-shadow: 0 14px 30px rgba(10,31,68,.12); border-color: #1B467B; }
.klc-program-teaser-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 56px;
	height: 56px;
	border-radius: 50%;
	background: #eef2f8;
	color: #1B467B;
	margin-bottom: 16px;
}
.klc-program-teaser-icon .dashicons { font-size: 26px; width: 26px; height: 26px; }
.klc-program-teaser-card h3 { font-size: 19px; margin-bottom: 8px; color: #0a1f44; }
.klc-program-teaser-card p { font-size: 14px; color: #445; line-height: 1.6; }
@media (max-width: 800px) {
	.klc-program-teaser-grid { grid-template-columns: 1fr; }
}

/* ===== TEAM PREVIEW (homepage) ===== */
.klc-faculty-preview { padding: 56px 0; text-align: center; }
.klc-faculty-preview .klc-eyebrow { justify-content: center; display: inline-flex; }
.klc-team-preview { padding: 56px 0; text-align: center; background: #f6f7fb; }
.klc-team-preview .klc-eyebrow { justify-content: center; display: inline-flex; }
.klc-team-preview .klc-grid { text-align: left; margin-top: 30px; }
.klc-team-preview-empty { color: #667; padding: 20px 0 30px; }

/* ===== CONTACT FORM ===== */
.klc-form { max-width: 500px; display: flex; flex-direction: column; gap: 16px; }
.klc-form label { font-weight: bold; font-size: 14px; display: flex; flex-direction: column; gap: 6px; }
.klc-form input, .klc-form textarea {
	border: 1px solid #ccd3e0;
	border-radius: 6px;
	padding: 10px 12px;
	font-family: inherit;
	font-size: 14px;
}
.klc-form-success { color: #1f7a2b; font-weight: bold; }

/* ===== FOOTER ===== */
.klc-footer { background: #ffffff; color: #000000; padding: 50px 0 0; border-top: 1px solid #e5e8f0; }
.klc-footer-grid {
	display: grid;
	grid-template-columns: 1.3fr 1fr 1.3fr 1fr;
	gap: 30px;
	padding-bottom: 40px;
}
.klc-footer h4 { color: #1B467B; margin-bottom: 14px; font-size: 15px; }
.klc-footer-menu li { padding: 4px 0; }
.klc-footer a { color: #000000; }
.klc-footer a:hover { color: #1B467B; }
.klc-social { display: flex; gap: 10px; margin-top: 16px; }
.klc-social-icon {
	width: 36px; height: 36px;
	border: 1px solid #c7d0e6;
	border-radius: 50%;
	display: flex; align-items: center; justify-content: center;
	color: #000000;
	transition: transform .25s cubic-bezier(.2,.8,.2,1);
}
.klc-social-icon:hover {
	transform: scale(1.15);
}
.klc-footer-bottom {
	border-top: 1px solid #e5e8f0;
	padding: 16px 0;
	font-size: 13px;
	text-align: center;
	color: #000000;
}
.klc-developer-credit { color: #1B467B !important; font-weight: 600; }
@media (max-width: 800px) {
	.klc-footer-grid { grid-template-columns: 1fr 1fr; }
}

/* ===== PILL BAR (below hero) ===== */
.klc-pillbar {
	position: relative;
	margin-top: -28px;
	z-index: 5;
}
.klc-pillbar-inner {
	display: flex;
	gap: 4px;
	max-width: 560px;
	margin: 0 auto;
	border-radius: 50px;
	overflow: hidden;
	box-shadow: 0 6px 20px rgba(0,0,0,.15);
}
.klc-pill {
	flex: 1;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	padding: 16px 20px;
	color: #fff !important;
	font-weight: bold;
	font-size: 14px;
}
.klc-pill-navy { background: #0a1f44; }
.klc-pill-gold { background: #1B467B; color: #ffffff !important; }
.klc-pill .dashicons { font-size: 18px; width: 18px; height: 18px; }
@media (max-width: 600px) {
	.klc-pillbar-inner { border-radius: 16px; flex-direction: column; max-width: 90%; }
}

/* ===== QUICK LINKS GRID =====
   2 columns of 4 (fills top-to-bottom on the left, then top-to-bottom
   on the right — not left-to-right rows) — plain white boxes with a
   thin border, 5px corners, and an arrow that lifts together with the
   label text on hover. */
.klc-quicklinks {
	margin-top: 50px;
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	grid-template-rows: repeat(4, auto);
	grid-auto-flow: column;
	gap: 16px 24px;
	border-top: 1px solid #e5e8f0;
	padding-top: 40px;
}
.klc-quicklink {
	display: flex;
	align-items: center;
	gap: 12px;
	background: #fff;
	border: 1px solid #e5e8f0;
	border-radius: 5px;
	padding: 14px 18px;
	font-size: 13px;
	font-weight: 600;
	color: #0a1f44 !important;
	overflow: hidden;
	transition: border-color .25s ease, box-shadow .25s ease;
}
.klc-quicklink:hover {
	border-color: #1B467B;
	box-shadow: 0 10px 22px rgba(10,31,68,.08);
}
.klc-quicklink .dashicons { color: #1B467B; font-size: 20px; width: 20px; height: 20px; flex-shrink: 0; }
.klc-quicklink-label {
	display: flex;
	align-items: center;
	justify-content: space-between;
	flex: 1;
	gap: 10px;
	transition: transform .25s cubic-bezier(.2,.8,.2,1);
}
.klc-quicklink:hover .klc-quicklink-label { transform: translateY(-3px); }
.klc-quicklink-arrow { color: #1B467B; font-weight: bold; font-size: 15px; }
@media (max-width: 900px) {
	.klc-quicklinks { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
	.klc-quicklinks { grid-template-columns: 1fr; grid-auto-flow: row; grid-template-rows: none; }
}
@media (prefers-reduced-motion: reduce) {
	.klc-quicklink-label { transition: none !important; }
}

/* ===== STATS BAR ===== */
.klc-stats { background: #0a1f44; padding: 40px 0; }
.klc-stats-grid {
	display: grid;
	grid-template-columns: repeat(6, 1fr);
	gap: 20px;
	text-align: center;
}
.klc-stat { display: flex; flex-direction: column; gap: 6px; }
.klc-stat-num { color: #1B467B; font-size: 24px; font-weight: bold; font-family: Georgia, serif; }
.klc-stat-label { color: #cfd6e6; font-size: 12px; text-transform: uppercase; letter-spacing: .5px; }
@media (max-width: 900px) {
	.klc-stats-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 500px) {
	.klc-stats-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ===== SECTION HEADER (title + button inline) ===== */
.klc-section-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-bottom: 30px;
}
.klc-section-header .klc-section-title { margin-bottom: 0; text-align: left; }

/* ===== EVENTS ===== */
.klc-events-section { padding: 60px 0; background: #f4f6fa; }
.klc-events-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 24px;
}
.klc-events-grid-page { padding-bottom: 60px; }
.klc-event-card {
	background: #fff;
	border-radius: 10px;
	overflow: hidden;
	box-shadow: 0 2px 10px rgba(0,0,0,.05);
}
.klc-event-media { position: relative; aspect-ratio: 16/10; background: #dde3ee; }
.klc-event-media img { width: 100%; height: 100%; object-fit: cover; }
.klc-event-date-badge {
	position: absolute;
	top: 12px;
	left: 12px;
	background: #1B467B;
	color: #ffffff;
	border-radius: 6px;
	padding: 6px 10px;
	text-align: center;
	line-height: 1.1;
}
.klc-event-day { display: block; font-size: 18px; font-weight: bold; }
.klc-event-month { display: block; font-size: 11px; letter-spacing: .5px; }
.klc-event-body { padding: 18px; }
.klc-event-body h3 { font-size: 16px; margin-bottom: 6px; }
.klc-event-location { font-size: 13px; color: #0a1f44; margin-bottom: 8px; }
.klc-event-excerpt { font-size: 13px; color: #556; }
@media (max-width: 900px) {
	.klc-events-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
	.klc-events-grid { grid-template-columns: 1fr; }
	.klc-section-header { flex-direction: column; align-items: flex-start; gap: 14px; }
}

/* ===== CLUBS & SOCIETIES ===== */
.klc-clubs { padding: 60px 0; }
.klc-clubs-grid {
	display: grid;
	grid-template-columns: repeat(6, 1fr);
	gap: 18px;
}
.klc-club-item {
	text-align: center;
	background: #f4f6fa;
	border-radius: 10px;
	padding: 24px 12px;
}
.klc-club-item .dashicons {
	font-size: 30px;
	width: 30px;
	height: 30px;
	color: #1B467B;
	margin-bottom: 10px;
}
.klc-club-item h4 { font-size: 13px; color: #0a1f44; }
@media (max-width: 900px) {
	.klc-clubs-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 500px) {
	.klc-clubs-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ===== ABOUT / VISION / MISSION / CHAIRMAN TABS ===== */
.klc-tabs-section { padding: 60px 0; background: #f4f6fa; }
.klc-tabs-nav {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-bottom: 36px;
	border-bottom: 1px solid #dde3ee;
}
.klc-tab-btn {
	background: none;
	border: none;
	padding: 12px 20px;
	font-size: 14px;
	font-weight: 600;
	color: #556;
	cursor: pointer;
	border-bottom: 3px solid transparent;
	margin-bottom: -1px;
	transition: color .2s, border-color .2s;
}
.klc-tab-btn:hover { color: #0a1f44; }
.klc-tab-btn.is-active {
	color: #0a1f44;
	border-bottom-color: #1B467B;
}

.klc-tab-panel { display: none; }
.klc-tab-panel.is-active { display: block; }

.klc-tab-grid {
	display: grid;
	grid-template-columns: 1fr 1.3fr;
	gap: 40px;
	align-items: center;
}
.klc-tab-media img {
	width: 100%;
	border-radius: 12px;
	aspect-ratio: 1080 / 800;
	object-fit: cover;
	object-position: top center;
}
.klc-tab-content h2 { margin-bottom: 14px; }
.klc-tab-content p { margin-bottom: 12px; font-size: 15px; color: #334; }

@media (max-width: 800px) {
	.klc-tab-grid { grid-template-columns: 1fr; }
	.klc-tab-media img { aspect-ratio: 16/10; }
	.klc-tabs-nav { gap: 4px; }
	.klc-tab-btn { padding: 10px 14px; font-size: 13px; }
}

/* ===== HERO VIDEO ===== */
.klc-hero-video {
	position: relative;
	width: 100%;
	height: 82vh;
	min-height: 480px;
	max-height: 760px;
	overflow: hidden;
	background: #0a1f44;
}
.klc-hero-video-el {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}
.klc-mute-toggle {
	position: absolute;
	bottom: 20px;
	right: 20px;
	width: 44px;
	height: 44px;
	border-radius: 50%;
	border: none;
	background: rgba(10,31,68,.7);
	color: #fff;
	font-size: 18px;
	cursor: pointer;
	z-index: 3;
	transition: background .2s;
}
.klc-mute-toggle:hover { background: rgba(10,31,68,.9); }

.klc-video-sound-prompt {
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	background: rgba(10,31,68,.75);
	border: 2px solid #1B467B;
	color: #fff;
	font-weight: bold;
	font-size: 15px;
	padding: 14px 26px;
	border-radius: 50px;
	cursor: pointer;
	z-index: 4;
	display: flex;
	align-items: center;
	gap: 10px;
	animation: klc-pulse 2s ease-in-out infinite;
	transition: opacity .3s, visibility .3s;
}
.klc-video-sound-icon { font-size: 18px; }
.klc-video-sound-prompt.is-hidden {
	opacity: 0;
	visibility: hidden;
	pointer-events: none;
}
@keyframes klc-pulse {
	0%, 100% { box-shadow: 0 0 0 0 rgba(26,70,121,.5); }
	50% { box-shadow: 0 0 0 10px rgba(26,70,121,0); }
}
@media (max-width: 800px) {
	/* Desktop keeps its viewport-height crop; on mobile the video instead
	   keeps its native 1920x1080 (16:9) frame at full width so the same
	   shot is visible as on desktop, instead of being cropped/zoomed into
	   a taller, narrower mobile-height box. */
	.klc-hero-video { height: auto; aspect-ratio: 16 / 9; min-height: 0; max-height: none; }
	.klc-video-sound-prompt { font-size: 13px; padding: 10px 18px; }
}

/* ===== LIGHTBOX (click-to-enlarge, with prev/next navigation) =====
   Used by gallery grids, Board of Governors, Administrative Team and
   Faculty photos. Triggers sharing the same data-group are treated as
   one browsable set; the counter/arrows are only shown when a group has
   more than one image. */
.klc-lightbox-overlay {
	position: fixed;
	inset: 0;
	background: rgba(10,31,68,.94);
	display: none;
	align-items: center;
	justify-content: center;
	z-index: 9999;
	padding: 30px;
	opacity: 0;
	transition: opacity .25s ease;
}
.klc-lightbox-overlay.is-open { display: flex; }
.klc-lightbox-overlay.is-visible { opacity: 1; }
.klc-lightbox-stage {
	position: relative;
	max-width: 92vw;
	max-height: 88vh;
	display: flex;
	align-items: center;
	justify-content: center;
}
.klc-lightbox-img {
	max-width: 92vw;
	max-height: 80vh;
	border-radius: 8px;
	box-shadow: 0 20px 60px rgba(0,0,0,.5);
	opacity: 0;
	transform: scale(.96);
	transition: opacity .25s ease, transform .25s ease;
	background: #0a1f44;
}
.klc-lightbox-img.is-loaded { opacity: 1; transform: scale(1); }
.klc-lightbox-caption {
	position: absolute;
	left: 0;
	right: 0;
	bottom: -42px;
	text-align: center;
	color: #fff;
	font-size: 14px;
	font-weight: 600;
	letter-spacing: .2px;
	padding: 0 60px;
}
.klc-lightbox-counter {
	position: absolute;
	top: 24px;
	left: 30px;
	color: rgba(255,255,255,.75);
	font-size: 13px;
	font-weight: 600;
	letter-spacing: .5px;
}
.klc-lightbox-close {
	position: absolute;
	top: 24px;
	right: 30px;
	background: rgba(255,255,255,.08);
	border: none;
	color: #fff;
	font-size: 28px;
	width: 44px;
	height: 44px;
	border-radius: 50%;
	cursor: pointer;
	line-height: 1;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: background .2s, transform .2s;
	z-index: 2;
}
.klc-lightbox-close:hover { background: rgba(255,255,255,.2); transform: rotate(90deg); }
.klc-lightbox-nav {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	background: rgba(255,255,255,.1);
	border: none;
	color: #fff;
	width: 52px;
	height: 52px;
	border-radius: 50%;
	font-size: 22px;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: background .2s, transform .2s;
	z-index: 2;
}
.klc-lightbox-nav:hover { background: #1B467B; color: #ffffff; }
.klc-lightbox-nav:active { transform: translateY(-50%) scale(.92); }
.klc-lightbox-prev { left: 12px; }
.klc-lightbox-next { right: 12px; }
.klc-lightbox-nav[hidden] { display: none; }
@media (max-width: 700px) {
	.klc-lightbox-nav { width: 42px; height: 42px; font-size: 18px; }
	.klc-lightbox-prev { left: 4px; }
	.klc-lightbox-next { right: 4px; }
	.klc-lightbox-caption { font-size: 12.5px; bottom: -34px; padding: 0 44px; }
	.klc-lightbox-close { top: 12px; right: 12px; }
	.klc-lightbox-counter { top: 12px; left: 16px; }
}

/* Small zoom badge that appears on hover over any photo that opens the
   lightbox, so it's obvious the image is clickable. */
.klc-card-photo-link { position: relative; display: block; height: 100%; overflow: hidden; }
.klc-card-zoom {
	position: absolute;
	right: 10px;
	bottom: 10px;
	width: 34px;
	height: 34px;
	border-radius: 50%;
	background: rgba(10,31,68,.75);
	color: #fff;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 14px;
	opacity: 0;
	transform: translateY(6px);
	transition: opacity .2s ease, transform .2s ease, background .2s ease;
}
.klc-card:hover .klc-card-zoom { opacity: 1; transform: translateY(0); }
.klc-card:hover .klc-card-photo-link { background: #dde3ee; }
.klc-lightbox-hint { color: #667; font-size: 13.5px; font-style: italic; margin-top: -6px; }

/* ===== PAGE SIDEBAR (Related Links — appears for grouped pages) ===== */
.klc-page-with-sidebar {
	display: grid;
	grid-template-columns: 260px 1fr;
	gap: 40px;
	padding: 50px 0;
}
.klc-page-with-sidebar .klc-page-content { padding: 0; }
.klc-page-sidebar {
	background: #f4f6fa;
	border-radius: 10px;
	padding: 10px;
	align-self: start;
	position: sticky;
	top: 90px;
}
.klc-sidebar-title {
	background: #0a1f44;
	color: #fff;
	padding: 14px 16px;
	border-radius: 6px;
	font-size: 15px;
	margin-bottom: 4px;
}
.klc-sidebar-list li { border-bottom: 1px solid #e5e8f0; }
.klc-sidebar-list li:last-child { border-bottom: none; }
.klc-sidebar-list a {
	display: block;
	padding: 12px 16px;
	font-size: 14px;
	color: #334;
	font-weight: 600;
}
.klc-sidebar-list a:hover { background: #e5e8f0; }
.klc-sidebar-list a.is-active {
	background: #1B467B;
	color: #ffffff;
	border-radius: 4px;
}
@media (max-width: 800px) {
	.klc-page-with-sidebar { grid-template-columns: 1fr; }
	.klc-page-sidebar { position: static; }
}

/* ===== PAGE SPACING (set per-page via Page Display Options) ===== */
.klc-spacing-compact .klc-page-content { padding-top: 10px; padding-bottom: 20px; }
.klc-spacing-compact.klc-page-with-sidebar { padding: 24px 0; }
.klc-spacing-spacious .klc-page-content { padding-top: 30px; padding-bottom: 70px; }
.klc-spacing-spacious.klc-page-with-sidebar { padding: 80px 0; }

/* =====================================================
   v1.2.0 — Homepage & footer redesign additions
   (Vision & Mission teaser, homepage events section,
   closing CTA, pre-footer contact strip, redesigned
   footer columns, statement-page intro treatment)
===================================================== */

/* ----- Vision & Mission teaser (homepage) ----- */
.klc-vm { padding: 64px 0; background: #f4f6fa; }
.klc-vm-grid {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 28px;
	margin-top: 20px;
}
.klc-vm-card {
	background: #fff;
	border-radius: 14px;
	padding: 34px 30px;
	border: 1px solid #e5e8f0;
	position: relative;
	overflow: hidden;
	transition: transform .3s cubic-bezier(.2,.8,.2,1), box-shadow .3s ease, border-color .25s ease;
}
.klc-vm-card::before {
	content: "";
	position: absolute;
	top: 0; left: 0; right: 0;
	height: 4px;
	background: linear-gradient(90deg, #1B467B, #0a1f44);
	transform: scaleX(0);
	transform-origin: left;
	transition: transform .4s cubic-bezier(.2,.8,.2,1);
}
.klc-vm-card:hover {
	transform: translateY(-8px);
	box-shadow: 0 20px 44px rgba(10,31,68,.14);
	border-color: #1B467B;
}
.klc-vm-card:hover::before { transform: scaleX(1); }
.klc-vm-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 58px;
	height: 58px;
	border-radius: 50%;
	background: #e7edf6;
	color: #0a1f44;
	margin-bottom: 18px;
	transition: transform .3s cubic-bezier(.2,.8,.2,1), background .25s ease;
}
.klc-vm-card:hover .klc-vm-icon { transform: rotate(-8deg) scale(1.08); background: #1B467B; color: #ffffff; }
.klc-vm-card h3 { font-size: 21px; margin-bottom: 10px; }
.klc-vm-card p { font-size: 14.5px; color: #445; margin-bottom: 16px; }
.klc-vm-link { font-weight: 700; color: #0a1f44; font-size: 14px; transition: letter-spacing .2s ease, color .2s ease; }
.klc-vm-link:hover { color: #1B467B; letter-spacing: .3px; }
@media (max-width: 700px) {
	.klc-vm-grid { grid-template-columns: 1fr; }
}

/* ----- Homepage "Latest Events & Announcements" ----- */
.klc-home-events { padding: 64px 0; }
.klc-home-events .klc-section-header { margin-bottom: 26px; }

/* Club/society tiles are now links — restore link defaults + add hover lift */
.klc-club-item {
	display: block;
	transition: transform .3s cubic-bezier(.2,.8,.2,1), box-shadow .3s ease, background .25s ease;
}
.klc-club-item:hover {
	transform: translateY(-6px);
	background: #fff;
	box-shadow: 0 16px 34px rgba(10,31,68,.12);
}
.klc-club-item .dashicons { transition: transform .3s cubic-bezier(.2,.8,.2,1), color .2s ease; }
.klc-club-item:hover .dashicons { transform: scale(1.15); color: #0a1f44; }

/* ----- Quote banner: decorative mark + subtle entrance ----- */
.klc-quote { position: relative; }
.klc-quote-mark {
	display: block;
	font-family: Georgia, serif;
	font-size: 90px;
	line-height: 1;
	color: #1B467B;
	opacity: .55;
	margin-bottom: -10px;
}

/* ----- Closing homepage CTA ----- */
.klc-home-cta {
	background: linear-gradient(120deg, #0a1f44 0%, #123067 60%, #0a1f44 130%);
	padding: 56px 0;
}
.klc-home-cta-inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 30px;
	flex-wrap: wrap;
}
.klc-home-cta-text h2 { color: #fff; font-size: 28px; margin: 8px 0 8px; }
.klc-home-cta-text p { color: #c7d0e6; font-size: 15px; max-width: 480px; }
.klc-home-cta-actions { display: flex; gap: 14px; flex-wrap: wrap; }
.klc-btn-on-dark {
	border: 2px solid rgba(255,255,255,.5) !important;
	color: #fff !important;
	background: transparent !important;
}
.klc-btn-on-dark:hover { background: #fff !important; color: #0a1f44 !important; }

/* ----- Pre-footer contact strip ----- */
.klc-prefooter {
	background: #0d254e;
	padding: 34px 0;
	border-top: 1px solid #1c3866;
}
.klc-prefooter-inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 24px;
	flex-wrap: wrap;
}
.klc-prefooter-text h3 { color: #fff; font-size: 20px; margin-bottom: 4px; }
.klc-prefooter-text p { color: #a9b6d6; font-size: 13.5px; }
.klc-prefooter-actions { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; }
.klc-prefooter-item {
	display: flex;
	align-items: center;
	gap: 10px;
	color: #dbe3f5;
	font-size: 13px;
	transition: color .2s ease, transform .25s cubic-bezier(.2,.8,.2,1);
}
.klc-prefooter-item:hover { color: #1B467B; transform: translateY(-2px); }
.klc-prefooter-icon {
	width: 38px; height: 38px;
	border-radius: 50%;
	background: rgba(255,255,255,.08);
	display: flex; align-items: center; justify-content: center;
	font-size: 16px;
	flex-shrink: 0;
}
.klc-prefooter-icon .dashicons { font-size: 18px; width: 18px; height: 18px; color: #fff; }
.klc-prefooter-item strong { color: #fff; display: block; font-size: 13px; margin-bottom: 3px; }
.klc-btn-on-dark-solid {
	background: #1B467B;
	color: #ffffff;
	padding: 12px 22px;
	border-radius: 6px;
	font-weight: 700;
	font-size: 14px;
	white-space: nowrap;
	transition: transform .25s cubic-bezier(.2,.8,.2,1), box-shadow .25s ease;
}
.klc-btn-on-dark-solid:hover { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(26,70,121,.35); }
@media (max-width: 800px) {
	.klc-prefooter-inner { flex-direction: column; align-items: flex-start; }
}

/* ----- Footer column polish ----- */
.klc-footer-brand p { font-size: 13.5px; line-height: 1.7; margin-bottom: 4px; }
.klc-footer-menu a {
	position: relative;
	display: inline-block;
}
.klc-footer-menu a::after {
	content: "";
	position: absolute;
	left: 0; bottom: -2px;
	width: 0;
	height: 1px;
	background: #1B467B;
	transition: width .25s ease;
}
.klc-footer-menu a:hover::after { width: 100%; }
.klc-footer-subhead { margin-top: 22px; }
.klc-footer-contact-list li {
	display: flex;
	gap: 10px;
	align-items: flex-start;
	font-size: 13.5px;
	padding: 6px 0;
	color: #000000;
}
.klc-footer-contact-list li .dashicons { font-size: 16px; width: 16px; height: 16px; color: #1B467B; flex-shrink: 0; margin-top: 2px; }
.klc-footer-cta { margin-top: 14px; display: inline-block; }
.klc-footer-bottom-inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	flex-wrap: wrap;
	gap: 10px;
}
.klc-footer-bottom-links { display: flex; gap: 18px; flex-wrap: wrap; }
.klc-footer-bottom-links a:hover { color: #1B467B; }
@media (max-width: 800px) {
	.klc-footer-bottom-inner { flex-direction: column; text-align: center; }
}

/* ----- "Statement" pages: Our Vision / Our Mission / Chairman's Message / About Us ----- */
.klc-statement-page { position: relative; }
.klc-statement-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 66px;
	height: 66px;
	border-radius: 50%;
	background: linear-gradient(135deg, #e7edf6, #c9d8ec);
	color: #0a1f44;
	margin-bottom: 20px;
}
.klc-president-page-photo {
	position: relative;
	max-width: 360px;
	border-radius: 16px;
	overflow: hidden;
	box-shadow: 0 10px 30px rgba(10,31,68,.15);
	margin-bottom: 26px;
}
.klc-president-page-photo img { width: 100%; height: auto; display: block; }

/* ===== MAP EMBED (Contact Us / About Us) ===== */
.klc-map-embed {
	margin: 30px 0;
	border-radius: 14px;
	overflow: hidden;
	box-shadow: 0 8px 24px rgba(10,31,68,.14);
}
.klc-map-embed iframe { display: block; width: 100%; }
.klc-statement-page > p:first-of-type {
	font-size: 18px;
	line-height: 1.8;
	color: #22304f;
	border-left: 3px solid #1B467B;
	padding-left: 20px;
}
.klc-statement-page strong { color: #0a1f44; }

/* ----- President photo badge (homepage) ----- */
.klc-president-media { position: relative; }
.klc-president-badge {
	position: absolute;
	bottom: 14px;
	left: 14px;
	background: #1B467B;
	color: #ffffff;
	font-weight: 700;
	font-size: 12px;
	letter-spacing: .3px;
	padding: 6px 12px;
	border-radius: 999px;
	box-shadow: 0 8px 18px rgba(0,0,0,.2);
}

@media (prefers-reduced-motion: reduce) {
	.klc-vm-card, .klc-vm-icon, .klc-club-item, .klc-club-item .dashicons,
	.klc-prefooter-item, .klc-btn-on-dark-solid {
		transition: none !important;
	}
}

/* =====================================================
   v1.3.0 — Homepage section swap + image-card polish
   (Why Choose KLC / Clubs & Societies removed from home,
   new "Welcome to KLC" at-a-glance section, nicer empty
   states for cards/galleries so a missing photo doesn't
   look like a broken placeholder)
===================================================== */

/* ----- "Welcome to KLC" at-a-glance (AlHamd-style layout) ----- */
.klc-glance { padding: 64px 0; }
.klc-glance-grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 50px;
	align-items: center;
}
.klc-glance-text h2 { font-size: 32px; margin: 8px 0 16px; }
.klc-glance-text p { color: #445; font-size: 15px; line-height: 1.75; margin-bottom: 4px; }
.klc-glance-rows {
	display: flex;
	flex-direction: column;
	border-radius: 14px;
	overflow: hidden;
	box-shadow: 0 10px 34px rgba(10,31,68,.08);
}
.klc-glance-row {
	display: flex;
	align-items: center;
	gap: 22px;
	padding: 22px 26px;
	border-left: 4px solid #1B467B;
	background: #fff;
	transition: background .25s ease, border-color .25s ease, transform .25s cubic-bezier(.2,.8,.2,1);
}
.klc-glance-row:nth-child(even) { background: #f4f6fa; }
.klc-glance-row:hover {
	background: #eef2f8;
	border-left-color: #0a1f44;
	transform: translateX(4px);
}
.klc-glance-stat {
	font-family: Georgia, serif;
	font-size: 30px;
	font-weight: bold;
	color: #0a1f44;
	min-width: 90px;
	flex-shrink: 0;
}
.klc-glance-row strong { display: block; color: #0a1f44; font-size: 15px; margin-bottom: 4px; }
.klc-glance-row p { font-size: 13.5px; color: #556; margin: 0; }
@media (max-width: 900px) {
	.klc-glance-grid { grid-template-columns: 1fr; }
}
@media (max-width: 500px) {
	.klc-glance-row { flex-direction: column; align-items: flex-start; gap: 8px; }
}

/* ----- Nicer empty/placeholder states for image cards -----
   Replaces flat grey boxes with a soft gradient + centred icon
   so a not-yet-uploaded photo still looks intentional. */
.klc-card-photo,
.klc-event-media,
.klc-hero-placeholder,
.klc-subgallery-item {
	background: linear-gradient(135deg, #eef1f8 0%, #dde3ee 100%);
}
.klc-card-placeholder {
	background: linear-gradient(135deg, #0a1f44 0%, #1c3566 100%);
	color: #9fc2ea;
	font-family: Georgia, serif;
	font-weight: 600;
	letter-spacing: .2px;
}
.klc-hero-placeholder {
	color: #5a6a8c;
	font-weight: 600;
	gap: 8px;
	flex-direction: column;
}
.klc-hero-placeholder::before {
	content: "\f128";
	font-family: dashicons;
	font-size: 26px;
	color: #a9b6d6;
}
.klc-subgallery-empty {
	border-radius: 14px;
	background: linear-gradient(135deg, #fafbfd 0%, #f0f3fb 100%);
}
.klc-card,
.klc-event-card {
	border-radius: 14px;
}
.klc-card-photo,
.klc-event-media {
	border-radius: 14px 14px 0 0;
	overflow: hidden;
}

@media (prefers-reduced-motion: reduce) {
	.klc-glance-row { transition: none !important; }
}

/* ===== CONTACT US PAGE — lead line, form + info cards, full-width map (v1.7.3) ===== */
.klc-contact-lead-wrap { padding: 34px 0 6px; text-align: center; }
.klc-contact-lead {
	max-width: 780px;
	margin: 0 auto;
	font-size: 17px;
	line-height: 1.65;
	color: #33395a;
	font-weight: 500;
	position: relative;
	padding-bottom: 22px;
}
.klc-contact-lead::after {
	content: "";
	position: absolute;
	bottom: 0;
	left: 50%;
	transform: translateX(-50%);
	width: 60px;
	height: 3px;
	background: #1B467B;
	border-radius: 2px;
}
.klc-contact-section { padding: 10px 0 70px; }
.klc-contact-grid {
	display: grid;
	grid-template-columns: 1.3fr 1fr;
	gap: 40px;
	align-items: start;
	margin-bottom: 34px;
}
.klc-contact-form-card {
	background: #fff;
	border: 1px solid #e7ebf3;
	border-radius: 16px;
	padding: 34px;
	box-shadow: 0 10px 30px rgba(10,31,68,.08);
}
.klc-contact-form-card h3 { color: #0a1f44; font-size: 22px; margin-bottom: 6px; }
.klc-contact-form-sub { color: #5a6480; font-size: 14px; margin-bottom: 22px; }
.klc-form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.klc-form-group { margin-bottom: 18px; }
.klc-form-group label { display: block; font-size: 13px; font-weight: 600; color: #0a1f44; margin-bottom: 6px; }
.klc-form-group input,
.klc-form-group select,
.klc-form-group textarea {
	width: 100%;
	padding: 12px 14px;
	border: 1px solid #dde3ee;
	border-radius: 10px;
	font-size: 14.5px;
	font-family: inherit;
	color: #1a1a2e;
	background: #f8f9fd;
	transition: border-color .2s, background .2s;
}
.klc-form-group input:focus,
.klc-form-group select:focus,
.klc-form-group textarea:focus { outline: none; border-color: #1B467B; background: #fff; }
.klc-form-group textarea { resize: vertical; min-height: 120px; }
.klc-contact-hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
.klc-contact-submit { border: none; cursor: pointer; display: inline-flex; align-items: center; gap: 8px; }
.klc-contact-alert { display: flex; align-items: center; gap: 10px; padding: 14px 16px; border-radius: 10px; font-size: 14px; margin-bottom: 20px; }
.klc-contact-alert-success { background: #eaf7ef; color: #1c6b3b; border: 1px solid #bfe6cc; }
.klc-contact-alert-error { background: #fdecec; color: #9c2b2b; border: 1px solid #f3c6c6; }
.klc-contact-info-heading { color: #0a1f44; font-size: 22px; margin-bottom: 18px; }
.klc-contact-info-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.klc-contact-info-card {
	background: #f8f9fd;
	border: 1px solid #e7ebf3;
	border-radius: 14px;
	padding: 18px;
	display: flex;
	gap: 14px;
	align-items: flex-start;
}
.klc-contact-info-icon {
	width: 42px;
	height: 42px;
	border-radius: 10px;
	background: #1B467B;
	color: #fff;
	display: flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
}
.klc-contact-info-icon .dashicons { font-size: 20px; width: 20px; height: 20px; }
.klc-contact-info-card h4 { font-size: 14px; color: #0a1f44; margin: 0 0 4px; }
.klc-contact-info-card a,
.klc-contact-info-card span { font-size: 13.5px; color: #3a4160; line-height: 1.5; }
.klc-contact-info-card a:hover { color: #1B467B; }

/* Map now spans the full container width, below the form/info row. */
.klc-contact-map-full { width: 100%; }
.klc-contact-map-full .klc-map-embed { margin: 0; }
.klc-contact-map-full .klc-map-embed iframe { height: 420px; }

@media (max-width: 900px) {
	.klc-contact-grid { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
	.klc-form-row { grid-template-columns: 1fr; }
	.klc-contact-info-grid { grid-template-columns: 1fr; }
}

/* ===== EVENTS PAGE REDESIGN (v1.7.3) ===== */

/* Intro list ("Seminars & Extension Lectures", "International Law
   Conference", etc.) — client asked for these cards to be removed from
   the Events page entirely; hidden here rather than deleted from the
   page content in wp-admin, so the surrounding intro paragraphs (which
   are fine as-is) stay untouched and nothing has to be retyped if this
   is ever wanted back. */
.klc-events-intro ul { display: none !important; }

/* Each event section (heading + photos + write-ups) is now one boxed
   card, alternating tint, so the page reads as distinct stories rather
   than one long undifferentiated scroll. */
.klc-event-section {
	background: #fff;
	border: 1px solid #eef1f8;
	border-radius: 18px;
	padding: 30px 28px 32px;
	margin-bottom: 26px;
	box-shadow: 0 6px 18px rgba(10,31,68,.05);
}
.klc-event-section:nth-child(even) { background: #f8f9fd; }
.klc-event-section .klc-subgallery { margin-bottom: 0; }
.klc-event-section .klc-event-writeup {
	max-width: 100%;
	margin: 22px 0 0;
	padding-top: 18px;
	border-top: 1px dashed #e2e6f0;
}
.klc-event-section .klc-event-writeup:first-of-type { margin-top: 24px; }

@media (max-width: 640px) {
	.klc-event-section { padding: 22px 18px 26px; border-radius: 14px; }
}

/* =====================================================
   v1.7.4 — Clickable events, single-event page, faculty/
   vision-mission fallback, contact icon fix, cookie
   consent banner, admissions popup
===================================================== */

/* ----- Event cards are now real links, not static <div>s ----- */
.klc-event-card {
	display: flex;
	flex-direction: column;
	color: inherit;
	text-decoration: none;
	transition: transform .25s cubic-bezier(.2,.8,.2,1), box-shadow .25s ease;
}
.klc-event-card:hover {
	transform: translateY(-5px);
	box-shadow: 0 16px 30px rgba(10,31,68,.14);
	color: inherit;
}
.klc-event-body { display: flex; flex-direction: column; flex: 1; }
.klc-event-location .dashicons { font-size: 13px; width: 13px; height: 13px; color: #1B467B; vertical-align: -1px; }
.klc-event-readmore {
	display: inline-block;
	margin-top: auto;
	padding-top: 10px;
	font-size: 13px;
	font-weight: 700;
	color: #1B467B;
}
.klc-event-card:hover .klc-event-readmore { text-decoration: underline; }

/* ----- Event write-up block: optional thumbnail + linked title ----- */
.klc-event-writeup { display: flex; gap: 20px; align-items: flex-start; }
.klc-event-writeup-thumb {
	flex-shrink: 0;
	display: block;
	width: 160px;
	border-radius: 12px;
	overflow: hidden;
	box-shadow: 0 6px 16px rgba(10,31,68,.1);
}
.klc-event-writeup-thumb img { width: 100%; height: 110px; object-fit: cover; display: block; transition: transform .3s ease; }
.klc-event-writeup-thumb:hover img { transform: scale(1.06); }
.klc-event-writeup-body { flex: 1; min-width: 0; }
.klc-event-writeup-body h4 { font-size: 19px; margin-bottom: 8px; }
.klc-event-writeup-body h4 a { color: #0a1f44; text-decoration: none; }
.klc-event-writeup-body h4 a:hover { color: #1B467B; text-decoration: underline; }
.klc-event-readmore-link {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	font-size: 13.5px;
	font-weight: 700;
	color: #1B467B;
	margin-top: 4px;
}
.klc-event-readmore-link:hover { text-decoration: underline; }
.klc-event-readmore-row { margin: 14px 0 0; }
@media (max-width: 560px) {
	.klc-event-writeup { flex-direction: column; }
	.klc-event-writeup-thumb { width: 100%; }
	.klc-event-writeup-thumb img { height: 180px; }
}

/* ----- Single Event page ----- */
.klc-single-event-content { max-width: 860px; margin: 0 auto; }
.klc-single-event-featured {
	border-radius: 16px;
	overflow: hidden;
	margin-bottom: 26px;
	box-shadow: 0 10px 26px rgba(10,31,68,.12);
}
.klc-single-event-featured img { width: 100%; display: block; }
.klc-single-event-content .klc-page-content { max-width: none; }
.klc-single-event-content p { line-height: 1.8; color: #334; margin-bottom: 16px; font-size: 16px; }
.klc-single-event-actions {
	display: flex;
	gap: 14px;
	flex-wrap: wrap;
	margin-top: 30px;
	padding-top: 24px;
	border-top: 1px solid #eef1f8;
}
.klc-page-header-hero .klc-page-header-sub .dashicons { font-size: 15px; width: 15px; height: 15px; vertical-align: -2px; }

/* ----- Contact page "Get in Touch" icons: white background, blue icon, crisp ----- */
.klc-contact-info-icon {
	background: #ffffff;
	color: #1B467B;
	border: 1.5px solid #dbe3f0;
	box-shadow: 0 2px 8px rgba(10,31,68,.08);
}
.klc-contact-info-icon .dashicons { color: #1B467B; }

/* =====================================================
   Cookie consent banner
===================================================== */
.klc-cookie-banner {
	position: fixed;
	left: 20px;
	right: 20px;
	bottom: 20px;
	z-index: 9998;
	max-width: 620px;
	margin: 0 auto;
	background: #ffffff;
	border: 1px solid #e2e6f0;
	border-radius: 16px;
	box-shadow: 0 16px 40px rgba(10,31,68,.22);
	padding: 20px 22px;
	display: flex;
	align-items: center;
	gap: 18px;
	flex-wrap: wrap;
	transform: translateY(140%);
	opacity: 0;
	transition: transform .4s cubic-bezier(.2,.8,.2,1), opacity .4s ease;
}
.klc-cookie-banner.is-visible { transform: translateY(0); opacity: 1; }
.klc-cookie-banner-icon {
	width: 40px; height: 40px;
	border-radius: 50%;
	background: #eef3fb;
	color: #1B467B;
	display: flex; align-items: center; justify-content: center;
	flex-shrink: 0;
}
.klc-cookie-banner-text { flex: 1; min-width: 200px; font-size: 13.5px; color: #33395a; line-height: 1.6; }
.klc-cookie-banner-text a { color: #1B467B; text-decoration: underline; }
.klc-cookie-banner-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.klc-cookie-btn-accept {
	background: #1B467B; color: #fff; border: none;
	padding: 10px 20px; border-radius: 8px; font-weight: 700; font-size: 13.5px;
	cursor: pointer; white-space: nowrap;
}
.klc-cookie-btn-accept:hover { background: #143255; }
.klc-cookie-btn-decline {
	background: transparent; color: #556; border: 1px solid #dbe3f0;
	padding: 10px 18px; border-radius: 8px; font-weight: 600; font-size: 13.5px;
	cursor: pointer; white-space: nowrap;
}
@media (max-width: 600px) {
	.klc-cookie-banner { left: 12px; right: 12px; bottom: 12px; padding: 16px; }
}

/* =====================================================
   Admissions popup modal (matches the admissions.klck.edu.pk style)
===================================================== */
.klc-admission-popup-overlay {
	position: fixed;
	inset: 0;
	background: rgba(8,18,40,.6);
	backdrop-filter: blur(2px);
	z-index: 9999;
	display: none;
	align-items: center;
	justify-content: center;
	padding: 20px;
}
.klc-admission-popup-overlay.is-visible { display: flex; }
.klc-admission-popup {
	background: #fff;
	border-radius: 20px;
	max-width: 480px;
	width: 100%;
	max-height: 90vh;
	overflow-y: auto;
	box-shadow: 0 30px 70px rgba(0,0,0,.35);
	animation: klcPopupIn .35s cubic-bezier(.2,.8,.2,1);
}
@keyframes klcPopupIn { from { opacity: 0; transform: translateY(20px) scale(.97); } to { opacity: 1; transform: translateY(0) scale(1); } }
.klc-admission-popup-head {
	background: linear-gradient(120deg, #0a1f44, #1B467B);
	color: #fff;
	padding: 28px 26px 24px;
	border-radius: 20px 20px 0 0;
	position: relative;
}
.klc-admission-popup-close {
	position: absolute;
	top: 14px; right: 14px;
	width: 30px; height: 30px;
	border-radius: 50%;
	background: rgba(255,255,255,.15);
	border: none;
	color: #fff;
	font-size: 16px;
	cursor: pointer;
	display: flex; align-items: center; justify-content: center;
}
.klc-admission-popup-close:hover { background: rgba(255,255,255,.28); }
.klc-admission-popup-badge {
	display: inline-flex; align-items: center; gap: 6px;
	background: rgba(255,255,255,.15);
	border-radius: 999px;
	padding: 5px 14px;
	font-size: 12px;
	font-weight: 700;
	letter-spacing: .3px;
	margin-bottom: 14px;
}
.klc-admission-popup-badge::before {
	content: "";
	width: 7px; height: 7px;
	border-radius: 50%;
	background: #4ade80;
	display: inline-block;
}
.klc-admission-popup-head h3 { font-size: 24px; margin: 0 0 4px; color: #fff; }
.klc-admission-popup-head p { margin: 0; color: #cfd9ee; font-size: 14px; }
.klc-admission-popup-body { padding: 22px 26px 26px; }
.klc-admission-popup-point {
	display: flex; align-items: flex-start; gap: 12px;
	padding: 12px 0;
	border-bottom: 1px solid #eef1f8;
	font-size: 14px; color: #33395a; line-height: 1.55;
}
.klc-admission-popup-point:last-of-type { border-bottom: none; }
.klc-admission-popup-point .dashicons { color: #1B467B; font-size: 20px; width: 20px; height: 20px; flex-shrink: 0; margin-top: 1px; }
.klc-admission-popup-actions { margin-top: 20px; display: flex; flex-direction: column; gap: 10px; }
.klc-admission-popup-cta {
	display: block;
	text-align: center;
	background: #1B467B;
	color: #fff;
	padding: 14px 20px;
	border-radius: 10px;
	font-weight: 700;
	font-size: 15px;
	text-decoration: none;
}
.klc-admission-popup-cta:hover { background: #143255; color: #fff; }
.klc-admission-popup-later {
	display: block;
	text-align: center;
	background: none;
	border: none;
	color: #7a8399;
	font-size: 13.5px;
	cursor: pointer;
	padding: 4px;
}
.klc-admission-popup-later:hover { color: #33395a; text-decoration: underline; }

/* =====================================================
   v1.7.7 — EVENTS SYSTEM FIX + 404 PAGE
   The events feature itself was already built correctly; the only
   actual bug was that this site's rewrite rules were never flushed
   after the Events post type was added (see klc_flush_rewrite_rules_once()
   in functions.php), so every /event/{slug}/ link 404'd. This block
   only adds styling for the new 404 fallback page and a couple of
   small polish touches around the single-event action buttons.
===================================================== */
.klc-404-content {
	max-width: 640px;
	margin: 0 auto;
	padding: 50px 20px 90px;
	text-align: center;
}
.klc-404-lead {
	font-size: 17px;
	line-height: 1.7;
	color: #4a5170;
	margin-bottom: 30px;
}
.klc-404-actions {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 14px;
}
.klc-404-actions .klc-btn,
.klc-404-actions .klc-btn-outline {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	margin-top: 0;
}

.klc-single-event-actions .klc-btn,
.klc-single-event-actions .klc-btn-outline {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	margin-top: 0;
}
