/* Kisomo Kenya Alt theme */
:root {
	--alt-primary: #0f4c81;
	--alt-primary-dark: #0b3a62;
	--alt-accent: #f2b705;
	--alt-ink: #0f172a;
	--alt-muted: #64748b;
	--alt-surface: #ffffff;
	--alt-soft: #f8fafc;
}

body.kisomo-alt {
	font-family: "Poppins", "Segoe UI", system-ui, -apple-system, sans-serif;
	background: linear-gradient(180deg, #f1f5ff 0%, #ffffff 45%, #f8fafc 100%);
	color: var(--alt-ink);
}

.alt-page {
	display: flex;
	flex-direction: column;
	gap: 32px;
}

.alt-section {
	background: var(--alt-surface);
	border-radius: 24px;
	padding: 28px;
	box-shadow: 0 20px 40px rgba(15, 23, 42, 0.08);
}

.alt-section-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	margin-bottom: 20px;
}

.alt-section-header h2,
.alt-section-header h3 {
	margin: 0;
	font-weight: 700;
	letter-spacing: 0.02em;
}

.alt-kicker {
	font-size: 0.75rem;
	letter-spacing: 0.18em;
	text-transform: uppercase;
	color: var(--alt-muted);
}

.alt-section-title {
	font-weight: 700;
	letter-spacing: 0.02em;
}

.alt-hero {
	position: relative;
	padding: 64px 0 32px;
	overflow: hidden;
}

.alt-hero::before {
	content: "";
	position: absolute;
	top: -120px;
	right: -120px;
	width: 280px;
	height: 280px;
	border-radius: 50%;
	background: rgba(242, 183, 5, 0.2);
	animation: altFloat 8s ease-in-out infinite;
}

.alt-hero::after {
	content: "";
	position: absolute;
	bottom: -160px;
	left: -120px;
	width: 320px;
	height: 320px;
	border-radius: 50%;
	background: rgba(15, 76, 129, 0.16);
	animation: altFloat 10s ease-in-out infinite;
}

.alt-brand {
	letter-spacing: 0.18em;
	text-transform: uppercase;
	color: var(--alt-muted);
	font-weight: 700;
	font-size: 0.75rem;
}

.alt-card {
	background: var(--alt-surface);
	border-radius: 20px;
	box-shadow: 0 20px 45px rgba(15, 23, 42, 0.12);
	padding: 28px;
	position: relative;
	z-index: 1;
}

.alt-card::after {
	content: "";
	position: absolute;
	top: -60px;
	right: -60px;
	width: 140px;
	height: 140px;
	background: rgba(242, 183, 5, 0.18);
	border-radius: 50%;
	z-index: -1;
}

.alt-logo {
	max-height: 180px;
	width: auto;
	filter: drop-shadow(0 16px 28px rgba(15, 23, 42, 0.12));
}

.alt-title {
	font-size: clamp(2rem, 4vw, 3rem);
	font-weight: 800;
}

.alt-motto {
	color: var(--alt-muted);
	font-size: 1.05rem;
}

.alt-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
}

.alt-actions .alt-btn {
	min-width: 160px;
}

.alt-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 12px 22px;
	border-radius: 999px;
	font-weight: 600;
	text-decoration: none;
	border: 2px solid transparent;
	transition: transform 0.15s ease, box-shadow 0.2s ease;
}

.alt-btn.primary {
	background: linear-gradient(135deg, var(--alt-primary), var(--alt-primary-dark));
	color: #ffffff;
	box-shadow: 0 16px 28px rgba(15, 76, 129, 0.25);
}

.alt-btn.primary:hover {
	transform: translateY(-2px);
	box-shadow: 0 20px 34px rgba(15, 76, 129, 0.35);
	color: #ffffff;
}

.alt-btn.ghost {
	border-color: var(--alt-primary);
	color: var(--alt-primary);
	background: var(--alt-soft);
}

.alt-nav {
	background: rgba(255, 255, 255, 0.9);
	backdrop-filter: blur(10px);
	border-top: 1px solid rgba(15, 23, 42, 0.08);
	border-bottom: 1px solid rgba(15, 23, 42, 0.08);
	padding: 10px 0;
	position: sticky;
	top: 0;
	z-index: 10;
}

.alt-link {
	padding: 8px 16px;
	border-radius: 999px;
	text-decoration: none;
	font-weight: 600;
	color: var(--alt-ink);
	transition: background-color 0.2s ease, color 0.2s ease;
}

.alt-link:hover {
	background: rgba(15, 76, 129, 0.12);
	color: var(--alt-primary);
}

.alt-main {
	padding: 32px 0 48px;
}

.alt-highlight {
	background: linear-gradient(135deg, rgba(15, 76, 129, 0.08), rgba(242, 183, 5, 0.12));
	border-radius: 18px;
	padding: 18px;
}

.alt-surface {
	background: var(--alt-surface);
	border-radius: 16px;
	box-shadow: 0 18px 36px rgba(15, 23, 42, 0.08);
	padding: 24px;
}

.alt-soft {
	background: var(--alt-soft);
	border-radius: 16px;
	padding: 20px;
}

.alt-map-card {
	background: var(--alt-surface);
	border-radius: 24px;
	box-shadow: 0 22px 46px rgba(15, 23, 42, 0.12);
	padding: 20px;
}

#map {
	width: 100%;
	height: 420px;
	border-radius: 18px;
	min-height: 420px;
	box-shadow: inset 0 0 0 1px rgba(15, 23, 42, 0.08);
}

#description {
	margin-top: 16px;
	color: var(--alt-muted);
	font-size: 0.95rem;
}

.alt-gallery-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
	gap: 18px;
}

/* Gallery card carousel - ensure proper display */
.alt-section .card-img-top .carousel,
.alt-section .card-img-top .carousel-inner,
.alt-section .card-img-top .carousel-item {
	height: 250px;
}

.alt-section .card-img-top .carousel-item img {
	height: 250px;
	object-fit: cover;
	width: 100%;
}

/* Allow carousel controls to work - overlay should not block clicks */
.alt-section .card-img-top .hover-overlay {
	pointer-events: none;
}

/* Gallery lightbox nav buttons */
.gallery-nav-prev:hover,
.gallery-nav-next:hover {
	opacity: 1 !important;
}

/* ===== FEE STRUCTURE PAGE ===== */
.fee-section .fee-view-toggle .btn {
	border-radius: 10px;
	font-weight: 500;
}

.fee-section .fee-view-toggle .btn-check:checked + .btn {
	background: var(--alt-primary);
	border-color: var(--alt-primary);
	color: #fff;
}

.fee-empty-state {
	background: var(--alt-soft);
	border-radius: 16px;
	border: 1px dashed var(--alt-muted);
}

.fee-table-view .table,
.fee-govt-view .table {
	border-radius: 16px;
	overflow: hidden;
	box-shadow: 0 4px 20px rgba(15, 23, 42, 0.06);
}

.fee-table-view .table thead th,
.fee-govt-view .table thead th {
	background: linear-gradient(135deg, var(--alt-primary) 0%, var(--alt-primary-dark) 100%);
	color: #fff;
	border: none;
	padding: 1rem 1.25rem;
	font-weight: 600;
	font-size: 0.9rem;
}

.fee-table-view .table thead tr:first-child th,
.fee-govt-view .table thead tr:first-child th {
	padding: 1.25rem;
}

.fee-table-view .table thead .header-title,
.fee-govt-view .table thead .header-title {
	color: #fff;
	margin: 0;
	font-size: 1.1rem;
}

.fee-table-view .table thead .text-muted,
.fee-govt-view .table thead .text-muted {
	color: rgba(255, 255, 255, 0.9) !important;
}

.fee-table-view .table tbody td,
.fee-govt-view .table tbody td {
	padding: 0.85rem 1.25rem;
	vertical-align: middle;
}

.fee-table-view .table tbody tr:hover,
.fee-govt-view .table tbody tr:hover {
	background: rgba(15, 76, 129, 0.04);
}

.fee-table-view .table .table-primary,
.fee-govt-view .table .table-primary {
	background: rgba(242, 183, 5, 0.2) !important;
	color: var(--alt-ink);
	font-weight: 600;
}

.fee-pdf-wrapper {
	background: #fff;
	min-height: 400px;
}

.fee-pdf-iframe {
	width: 100%;
	height: 75vh;
	min-height: 600px;
	border: none;
}

.fee-mobile-view .table {
	border-radius: 12px;
	overflow: hidden;
}

.fee-mobile-view .table thead th {
	background: var(--alt-primary);
	color: #fff;
	padding: 0.75rem 1rem;
}

/* Gallery image grid: proper columns and rows */
.gallery-container .alt-gallery-item {
	border-radius: 18px;
	overflow: hidden;
	box-shadow: 0 14px 30px rgba(15, 23, 42, 0.12);
	height: 100%;
	cursor: pointer;
}

.gallery-container .alt-gallery-item:hover .gallery-item-overlay {
	opacity: 1;
}

.gallery-container .gallery-item-overlay {
	transition: opacity 0.25s ease;
}

.gallery-container .alt-gallery-item img {
	width: 100%;
	height: 280px;
	object-fit: cover;
	display: block;
}

.alt-gallery-item {
	border-radius: 18px;
	overflow: hidden;
	box-shadow: 0 14px 30px rgba(15, 23, 42, 0.12);
}

.alt-gallery-item img {
	width: 100%;
	height: 240px;
	object-fit: cover;
	display: block;
}

.alt-info-card {
	background: var(--alt-soft);
	border-radius: 16px;
	padding: 18px;
}

.newsroom {
	display: flex;
	flex-direction: column;
	gap: 24px;
}

.newsroom-featured,
.newsroom-spotlight,
.newsroom-grid {
	background: var(--alt-surface);
	border-radius: 20px;
	padding: 24px;
	box-shadow: 0 18px 40px rgba(15, 23, 42, 0.1);
}

.newsroom-card {
	border-radius: 16px;
	overflow: hidden;
	box-shadow: 0 12px 24px rgba(15, 23, 42, 0.1);
	background: var(--alt-surface);
}

.newsroom-card img {
	width: 100%;
	height: 200px;
	object-fit: cover;
}

.newsroom-card-body {
	padding: 18px;
}

.newsroom-featured img {
	width: 100%;
	border-radius: 16px;
	height: 320px;
	object-fit: cover;
}

.newsroom-meta {
	display: flex;
	gap: 12px;
	align-items: center;
	color: var(--alt-muted);
	font-size: 0.85rem;
	margin-bottom: 10px;
}

.newsroom-readmore {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	color: var(--alt-primary);
	text-decoration: none;
	font-weight: 600;
}

.newsroom-readmore:hover {
	color: var(--alt-primary-dark);
}

.news-empty {
	display: grid;
	place-items: center;
	padding: 40px 0;
}

.news-empty-card {
	background: var(--alt-surface);
	border-radius: 20px;
	padding: 28px;
	box-shadow: 0 18px 36px rgba(15, 23, 42, 0.1);
	text-align: center;
}

.alt-detail-card {
	background: var(--alt-surface);
	border-radius: 20px;
	padding: 24px;
	box-shadow: 0 16px 32px rgba(15, 23, 42, 0.08);
}

.alt-share-btns {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
}

.alt-footer {
	background: #0f172a;
	color: #e2e8f0;
	padding: 28px 0;
	margin-top: 40px;
	position: relative;
	z-index: 2;
}

.alt-footer a {
	color: #e2e8f0;
	text-decoration: none;
}

.alt-footer a:hover {
	color: var(--alt-accent);
}

@keyframes altFloat {
	0%, 100% { transform: translateY(0); }
	50% { transform: translateY(-12px); }
}
