/*!
Theme Name: Gurukul Main Theme
Author: 23digital
Author URI: https://www.23digital.com.au/
Description:
Version: 1.0.0
Tested up to: 5.4
Requires PHP: 5.6
License: GNU General Public License v2 or later
License URI: LICENSE
Text Domain: gurukul-theme
Tags: custom-background, custom-logo, custom-menu, featured-images, threaded-comments, translation-ready
*/

/* Alignments
--------------------------------------------- */
.alignleft {
	/*rtl:ignore*/
	float: left;

	/*rtl:ignore*/
	margin-right: 1.5em;
	margin-bottom: 1.5em;
}

.alignright {
	/*rtl:ignore*/
	float: right;

	/*rtl:ignore*/
	margin-left: 1.5em;
	margin-bottom: 1.5em;
}

.aligncenter {
	clear: both;
	display: block;
	margin-left: auto;
	margin-right: auto;
	margin-bottom: 1.5em;
}


:root {
	--ink: #1a1a24;
	--ink-soft: #4a4a5e;
	--ink-muted: #8b8ba3;
	--surface: #ffffff;
	--bg: #f2f1ee;
	--border: rgba(26, 26, 36, 0.10);
	--border-md: rgba(26, 26, 36, 0.18);
	--radius-sm: 6px;
	--radius-md: 12px;
	--radius-lg: 20px;
	--shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.07), 0 1px 2px rgba(0, 0, 0, 0.05);
	--shadow-lg: 0 12px 40px rgba(0, 0, 0, 0.10), 0 4px 12px rgba(0, 0, 0, 0.06);
	--font-display: 'DM Serif Display', Georgia, serif;
	--font-body: 'DM Sans', system-ui, sans-serif;
	/* Gradient palette — matches the uploaded bar */
	--g1: #3a5fc8;
	--g2: #7b3fa0;
	--g3: #a04070;
	--grad: linear-gradient(90deg, var(--g1) 0%, var(--g2) 55%, var(--g3) 100%);
	--grad-diag: linear-gradient(135deg, var(--g1) 0%, var(--g2) 55%, var(--g3) 100%);
}

body.branch-page {
	font-family: var(--font-body);
	background: var(--bg);
	color: var(--ink);
	line-height: 1.6;
	-webkit-font-smoothing: antialiased;
}

/* FILTER BAR — clean professional header */
.filter-section {
	background: #ffffff;
	border-bottom: 1px solid var(--border);
	position: sticky;
	top: 0;
	z-index: 100;
	box-shadow: 0 1px 0 rgba(0, 0, 0, 0.04), 0 2px 12px rgba(0, 0, 0, 0.05);
	max-width: 1200px;
	margin: 0 auto;
}

.filter-inner {
	max-width: 1200px;
	margin: 0 auto;
	padding: 0 28px;
}

/* Gradient accent rule across the very top */
.filter-section::before {
	content: '';
	display: block;
	height: 3px;
	background: var(--grad);
}

/* Top row — title + count */
.filter-top {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 20px 0 16px;
	border-bottom: 1px solid var(--border);
	gap: 16px;
}

.filter-heading {
	display: flex;
	align-items: baseline;
	gap: 12px;
}

.filter-title {
	font-family: var(--font-display);
	font-size: 1.35rem;
	font-weight: 400;
	color: var(--ink);
	line-height: 1;
}

.filter-divider {
	width: 1px;
	height: 16px;
	background: var(--border-md);
	flex-shrink: 0;
}

.filter-subtitle {
	font-size: 13px;
	color: var(--ink-muted);
	font-weight: 400;
}

/* Count badge */
.count-badge {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	font-size: 13px;
	color: var(--ink-soft);
	background: var(--bg);
	border: 1px solid var(--border-md);
	border-radius: var(--radius-sm);
	padding: 5px 12px;
	flex-shrink: 0;
}

.count-badge strong {
	font-size: 15px;
	font-weight: 600;
	background: var(--grad);
	-webkit-background-clip: text;
	-webkit-text-fill-color: transparent;
	background-clip: text;
}

/* Bottom row — controls */
.filter-controls {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 14px 0;
	flex-wrap: wrap;
}

/* Search */
.search-wrap {
	position: relative;
	flex: 1;
	min-width: 200px;
	max-width: 380px;
}

.search-wrap svg {
	position: absolute;
	left: 12px;
	top: 50%;
	transform: translateY(-50%);
	color: var(--ink-muted);
	pointer-events: none;
}

#branch-search {
	width: 100%;
	font-family: var(--font-body);
	font-size: 13.5px;
	padding: 9px 14px 9px 36px;
	border: 1px solid var(--border-md);
	border-radius: var(--radius-sm);
	background: var(--bg);
	color: var(--ink);
	outline: none;
	transition: border-color 0.15s, background 0.15s;
}

#branch-search::placeholder {
	color: var(--ink-muted);
}

#branch-search:focus {
	border-color: #7b3fa0;
	background: #fff;
	box-shadow: 0 0 0 3px rgba(123, 63, 160, 0.08);
}

/* Result count text */
.result-count {
	font-size: 13px;
	color: var(--ink-muted);
	white-space: nowrap;
	margin-left: 4px;
}

.result-count strong {
	color: var(--ink-soft);
	font-weight: 500;
}

/* Separator */
.controls-sep {
	width: 1px;
	height: 24px;
	background: var(--border-md);
	flex-shrink: 0;
}

/* View toggles */
.view-toggles {
	display: flex;
	gap: 2px;
	margin-left: auto;
}

.view-btn {
	background: none;
	border: 1px solid transparent;
	cursor: pointer;
	padding: 6px 10px;
	border-radius: var(--radius-sm);
	color: var(--ink-muted);
	display: flex;
	align-items: center;
	transition: all 0.15s;
}

.view-btn:hover {
	background: var(--bg);
	color: var(--ink-soft);
	border-color: var(--border-md);
}

.view-btn.active {
	background: var(--bg);
	border-color: var(--border-md);
	color: var(--ink);
}

/* NOTICE / ERRORS */
.notice-box {
	background: #faf4e8;
	border: 1px solid rgba(181, 137, 42, 0.25);
	border-left: 4px solid #b5892a;
	border-radius: var(--radius-md);
	padding: 20px 24px;
	color: #6b4d0a;
	font-size: 14.5px;
	max-width: 640px;
	margin: 60px auto;
}

.notice-box strong {
	display: block;
	margin-bottom: 6px;
}

/* BRANCH GRID & CARDS */
.branch-main {
	max-width: 1200px;
	margin: 0 auto;
	padding: 40px 24px 0px;
}

.branch-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
	gap: 24px;
}

.branch-grid.list-view {
	grid-template-columns: 1fr;
	gap: 12px;
}

/* Card */
.branch-card {
	background: var(--surface);
	border-radius: var(--radius-lg);
	border: 1px solid var(--border);
	padding: 0;
	box-shadow: var(--shadow-sm);
	transition: transform 0.22s ease, box-shadow 0.22s ease;
	display: flex;
	flex-direction: column;
	position: relative;
	overflow: hidden;
}

.branch-card::before {
	content: '';
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	height: 5px;
	background: var(--grad);
	border-radius: var(--radius-lg) var(--radius-lg) 0 0;
	transition: height 0.22s ease;
}

.branch-card:hover {
	transform: translateY(-4px);
	box-shadow: 0 16px 48px rgba(58, 95, 200, 0.14), 0 4px 14px rgba(123, 63, 160, 0.10);
}

.branch-card:hover::before {
	height: 8px;
}

.card-inner {
	padding: 28px;
	display: flex;
	flex-direction: column;
	flex: 1;
}

/* List view */
.list-view .branch-card {
	border-radius: var(--radius-md);
}

.list-view .branch-card::before {
	top: 0;
	left: 0;
	right: auto;
	bottom: 0;
	width: 5px;
	height: auto;
	border-radius: var(--radius-md) 0 0 var(--radius-md);
	transition: width 0.22s ease;
}

.list-view .branch-card:hover::before {
	width: 7px;
	height: auto;
}

.list-view .card-inner {
	flex-direction: row;
	align-items: center;
	gap: 20px;
	padding: 20px 24px;
}

.list-view .card-icon {
	flex-shrink: 0;
}

.list-view .card-body {
	flex: 1;
}

.list-view .card-footer {
	flex-shrink: 0;
	margin-top: 0;
	padding-top: 0;
	border-top: none;
	border-left: 1px solid var(--border);
	padding-left: 20px;
}

/* Icon */
.card-icon {
	width: 48px;
	height: 48px;
	border-radius: var(--radius-md);
	background: var(--grad-diag);
	display: flex;
	align-items: center;
	justify-content: center;
	margin-bottom: 18px;
	flex-shrink: 0;
}

.card-icon svg {
	color: #fff;
}

/* Text */
.branch-number {
	font-size: 11px;
	font-weight: 600;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	background: var(--grad);
	-webkit-background-clip: text;
	-webkit-text-fill-color: transparent;
	background-clip: text;
	margin-bottom: 6px;
}

.branch-name {
	font-family: var(--font-display);
	font-size: 1.25rem;
	font-weight: 400;
	color: var(--ink);
	margin-bottom: 6px;
	line-height: 1.25;
}

.branch-desc {
	font-size: 13.5px;
	color: var(--ink-soft);
	line-height: 1.55;
	margin-bottom: 16px;
	flex: 1;
}

 
.card-footer {
	margin-top: auto;
	padding-top: 18px;
	border-top: 1px solid var(--border);
	display: flex;
	align-items: center;
	justify-content: space-between;
}

.card-url {
	font-size: 12.5px;
	color: #8060a8;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
	max-width: 200px;
}

.visit-btn {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	background: var(--grad);
	color: #fff;
	font-family: var(--font-body);
	font-size: 13px;
	font-weight: 500;
	padding: 8px 16px;
	border-radius: var(--radius-sm);
	text-decoration: none;
	transition: opacity 0.15s, transform 0.1s;
	white-space: nowrap;
	flex-shrink: 0;
}

.visit-btn:hover {
	opacity: 0.88;
	color: #fff;
	transform: translateX(2px);
}

/* Empty state */
.empty-state {
	text-align: center;
	padding: 80px 24px;
	display: none;
}

.empty-state svg {
	color: var(--ink-muted);
	margin-bottom: 18px;
}

.empty-state h3 {
	font-family: var(--font-display);
	font-size: 1.5rem;
	color: var(--ink-soft);
	margin-bottom: 8px;
}

.empty-state p {
	color: var(--ink-muted);
	font-size: 15px;
}

 /* 23-9-26a */
 