/* Dropdown arrow - UPSC and State PSC */
#bookSidebar .upsc-toggle .dropdown-arrow,
#bookSidebar .psc-toggle .dropdown-arrow {
  display: inline-block;
  transition: transform 0.25s ease;
}

/* Rotate arrow when either dropdown opens */
#bookSidebar .upsc-toggle[aria-expanded="true"] .dropdown-arrow,
#bookSidebar .psc-toggle[aria-expanded="true"] .dropdown-arrow {
  transform: rotate(180deg);
}
.upsc-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}
.dropdown-arrow {
  display: inline-block;
  font-size: 18px;
  line-height: 1;
  transition: transform .2s ease;
}
.upsc-toggle[aria-expanded="true"] .dropdown-arrow {
  transform: rotate(180deg);
}
.subcategory-list {
  padding-left: 14px;
  margin: 4px 0 8px;
  border-left: 2px solid #e5e9ef;
}
.subcategory-btn {
  font-size: 13px;
  padding: 9px 12px;
}
.subcategory-list {
	padding-left: 14px;
	margin: 4px 0 8px;
	border-left: 2px solid #e5e9ef;
}
.subcategory-btn {
	font-size: 13px;
	padding: 9px 12px;
}
:root {
 --primary: #173d69;
 --primary-dark: #102c4d;
 --accent: #e5a329;
 --text: #263449;
 --muted: #758195;
 --border: #e5e9ef;
 --background: #f6f8fb;
 --white: #fff;
}
* {
	box-sizing: border-box;
}
body {
	margin: 0;
	font-family: Arial, Helvetica, sans-serif;
	color: var(--text);
	background: var(--background);
	line-height: 1.6;
}
a {
	color: inherit;
	text-decoration: none;
}
button, input, select {
	font: inherit;
}
.site-header {
	background: var(--white);
	border-bottom: 1px solid var(--border);
}
.header-inner {
	max-width: 1400px;
	margin: auto;
	padding: 18px 24px;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 20px;
}
.logo {
	font-size: 27px;
	font-weight: 800;
	color: var(--primary);
	letter-spacing: -.8px;
}
.logo span {
	color: var(--accent);
}
.header-links {
	display: flex;
	gap: 24px;
	font-size: 14px;
	font-weight: 600;
}
.header-links a:hover {
	color: var(--accent);
}
.page-wrap {
	max-width: 1400px;
	padding: 25px 24px 60px;
	margin: auto;
}
.breadcrumb {
	font-size: 13px;
	color: var(--muted);
	margin-bottom: 20px;
}
.breadcrumb a {
	color: var(--primary);
}
.hero {
	padding: 32px;
	background: linear-gradient(120deg, #173d69, #285b88);
	color: white;
	border-radius: 12px;
	margin-bottom: 28px;
}
.hero h1 {
	font-size: clamp(26px, 3vw, 38px);
	margin: 0 0 10px;
	line-height: 1.25;
}
.hero p {
	max-width: 760px;
	margin: 0;
	color: #e5edf6;
}
/* 12-column responsive grid */
.row {
  display: flex;
  flex-wrap: wrap;
  margin-left: -12px;
  margin-right: -12px;
  align-items: flex-start;
}
[class*="col-"] {
  box-sizing: border-box;
  min-width: 0;
  padding-left: 12px;
  padding-right: 12px;
}
.col-1 { width: 8.333333%; }
.col-2 { width: 16.666667%; }
.col-3 { width: 25%; }
.col-4 { width: 33.333333%; }
.col-5 { width: 41.666667%; }
.col-6 { width: 50%; }
.col-7 { width: 58.333333%; }
.col-8 { width: 66.666667%; }
.col-9 { width: 75%; }
.col-10 { width: 83.333333%; }
.col-11 { width: 91.666667%; }
.col-12 { width: 100%; }

@media (min-width: 768px) {
  .col-md-1 { width: 8.333333%; }
  .col-md-2 { width: 16.666667%; }
  .col-md-3 { width: 25%; }
  .col-md-4 { width: 33.333333%; }
  .col-md-5 { width: 41.666667%; }
  .col-md-6 { width: 50%; }
  .col-md-7 { width: 58.333333%; }
  .col-md-8 { width: 66.666667%; }
  .col-md-9 { width: 75%; }
  .col-md-10 { width: 83.333333%; }
  .col-md-11 { width: 91.666667%; }
  .col-md-12 { width: 100%; }
}
@media (min-width: 992px) {
  .col-lg-1 { width: 8.333333%; }
  .col-lg-2 { width: 16.666667%; }
  .col-lg-3 { width: 25%; }
  .col-lg-4 { width: 33.333333%; }
  .col-lg-5 { width: 41.666667%; }
  .col-lg-6 { width: 50%; }
  .col-lg-7 { width: 58.333333%; }
  .col-lg-8 { width: 66.666667%; }
  .col-lg-9 { width: 75%; }
  .col-lg-10 { width: 83.333333%; }
  .col-lg-11 { width: 91.666667%; }
  .col-lg-12 { width: 100%; }
}
.layout {
  align-items: flex-start;
}
.listing {
  min-width: 0;
}
/* Sticky sidebar */
#bookSidebar {
	position: sticky;
	top: 20px;
	max-height: calc(100vh - 40px);
	overflow-y: auto;
	background: white;
	border: 1px solid var(--border);
	border-radius: 10px;
	padding: 20px;
	scrollbar-width: thin;
}
#bookSidebar h2 {
	font-size: 17px;
	margin: 0 0 16px;
	color: var(--primary);
}
.sidebar-group {
	margin-bottom: 0px;
}
.sidebar-label {
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 1px;
	color: var(--muted);
	text-transform: uppercase;
	margin: 0 0 8px;
}
.category-btn {
	display: block;
	width: 100%;
	text-align: left;
	padding: 10px 12px;
	border: 0;
	border-radius: 6px;
	background: transparent;
	color: var(--text);
	cursor: pointer;
	font-size: 13px;
	margin: 2px 0;
}
.category-btn:hover, .category-btn.active {
	background: #edf3fa;
	color: var(--primary);
	font-weight: 700;
}
.sidebar-note {
	background: #fff8e9;
	padding: 13px;
	border-radius: 7px;
	font-size: 12px;
	color: #75571b;
}
/* Listing toolbar */
.section-heading {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 12px;
	margin-bottom: 18px;
}
.section-heading h2 {
	font-size: 23px;
	margin: 0;
	color: var(--primary);
}
.result-count {
	color: var(--muted);
	font-size: 13px;
}
.toolbar {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 180px;
	gap: 12px;
	margin-bottom: 22px;
}
.search-box, .sort-select {
	width: 100%;
	border: 1px solid var(--border);
	background: white;
	padding: 12px 14px;
	border-radius: 7px;
	color: var(--text);
	outline: none;
}
.search-box:focus, .sort-select:focus {
	border-color: var(--primary);
	box-shadow: 0 0 0 3px #173d6915;
}
.mobile-filter {
	display: none;
	width: 100%;
	border: 1px solid var(--border);
	background: white;
	padding: 11px;
	border-radius: 7px;
	color: var(--primary);
	font-weight: 700;
	cursor: pointer;
	margin-bottom: 12px;
}
/* Book cards */
.book-grid {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 20px;
}
.book-card {
	min-width: 0;
	display: flex;
	flex-direction: column;
	background: white;
	border: 1px solid var(--border);
	border-radius: 10px;
	overflow: hidden;
	transition: transform .2s, box-shadow .2s;
}
.book-card:hover {
	transform: translateY(-3px);
	box-shadow: 0 10px 28px #152e4c12;
}
.book-image {
	/*height: 235px;*/
	padding: 12px;
	background: #f0f3f7;
	display: flex;
	justify-content: center;
	align-items: center;
	position: relative;
}
.book-image img {
	max-width: 100%;
	max-height: 100%;
	object-fit: contain;
	mix-blend-mode: multiply;
}
.book-badge {
	position: absolute;
	top: 12px;
	left: 12px;
	background: #eaf6ed;
	color: #267442;
	font-size: 11px;
	font-weight: 700;
	padding: 4px 8px;
	border-radius: 4px;
}
.book-info {
	display: flex;
	flex-direction: column;
	flex: 1;
	padding: 15px;
}
.book-category {
	color: #647d9c;
	font-size: 11px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: .5px;
	margin-bottom: 7px;
}
.book-title {
	font-size: 15px;
	line-height: 1.45;
	margin: 0 0 10px;
	color: var(--text);
}
.book-meta {
	color: var(--muted);
	font-size: 12px;
	margin-bottom: 12px;
}
.book-price {
	margin-top: auto;
	display: flex;
	align-items: center;
	gap: 8px;
	flex-wrap: wrap;
	margin-bottom: 14px;
}
.current-price {
	font-size: 21px;
	font-weight: 800;
	color: var(--primary);
}
.old-price {
	font-size: 13px;
	color: #929aaa;
	text-decoration: line-through;
}
.discount {
	font-size: 11px;
	color: #267442;
	background: #eaf6ed;
	padding: 3px 5px;
	border-radius: 4px;
}
.shop-btn {
	display: block;
	width: 100%;
	padding: 11px;
	text-align: center;
	border-radius: 6px;
	background: var(--primary);
	color: white;
	font-size: 13px;
	font-weight: 700;
	border: 1px solid var(--primary);
	cursor: pointer;
}
.shop-btn:hover {
	background: var(--primary-dark);
}
.empty-state {
	grid-column: 1 / -1;
	padding: 45px 20px;
	background: white;
	text-align: center;
	border-radius: 10px;
	border: 1px solid var(--border);
}
.empty-state h3 {
	margin-top: 0;
}
.intro-section {
	margin-top: 42px;
	background: white;
	border: 1px solid var(--border);
	border-radius: 10px;
	padding: 25px;
}
.intro-section h2 {
	color: var(--primary);
	font-size: 21px;
	margin-top: 0;
}
.intro-section p {
	color: #596579;
	font-size: 14px;
}
.site-footer {
	background: #122b48;
	color: #e3eaf2;
	padding: 28px 24px;
}
.footer-inner {
	max-width: 1352px;
	margin: auto;
	display: flex;
	justify-content: space-between;
	flex-wrap: wrap;
	gap: 15px;
	font-size: 13px;
}
/* Mobile filter drawer */
.filter-backdrop {
	display: none;
}
 @media (max-width: 1100px) {
.book-grid {
	grid-template-columns: repeat(2, minmax(0, 1fr));
}
.book-image {
	/*height: 220px;*/
}
}
 @media (max-width: 700px) {
.header-inner {
	padding: 14px 16px;
}
.logo {
	font-size: 23px;
}
.header-links {
	gap: 12px;
	font-size: 12px;
}
.page-wrap {
	padding: 18px 14px 40px;
}
.hero {
	padding: 24px 20px;
}
.layout {
	display: block;
}
.mobile-filter {
	display: block;
}
#bookSidebar {
	display: none;
	position: fixed;
	top: 0;
	left: 0;
	bottom: 0;
	z-index: 1001;
	width: min(310px, 86vw);
	max-height: 100dvh;
	border-radius: 0;
	padding: 24px 18px;
}
#bookSidebar.mobile-open {
	display: block;
}
.filter-backdrop.visible {
	display: block;
	position: fixed;
	inset: 0;
	background: #07182dcc;
	z-index: 1000;
}
.toolbar {
	grid-template-columns: 1fr;
}
.book-grid {
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 10px;
}
.book-image {
	/*height: 175px;*/
	padding: 10px;
}
.book-info {
	padding: 11px;
}
.book-title {
	font-size: 13px;
}
.current-price {
	font-size: 18px;
}
.old-price {
	font-size: 11px;
}
.discount {
	font-size: 10px;
}
.shop-btn {
	padding: 10px 5px;
	font-size: 12px;
}
.section-heading h2 {
	font-size: 20px;
}
}
 @media (prefers-reduced-motion: reduce) {
*, *::before, *::after {
	transition: none !important;
	scroll-behavior: auto !important;
}
}