/* =========================================================================
   AB Archive & Sidebar Enhancements Stylesheet
   Loaded on Blog index, Categories, Archives, Search, and Single Posts.
   ========================================================================= */

:root {
	--ab-navy: #081225;
	--ab-navy-soft: #0f2245;
	--ab-blue: #2563eb;
	--ab-blue-soft: rgba(37, 99, 235, 0.08);
	--ab-orange: #ea580c;
	--ab-orange-soft: rgba(234, 88, 12, 0.08);
	--ab-muted: #64748b;
	--ab-line: #e2e8f0;
	--ab-radius-lg: 16px;
	--ab-radius-md: 10px;
	--ab-shadow: 0 4px 15px -3px rgba(15, 23, 42, 0.05), 0 2px 6px -2px rgba(15, 23, 42, 0.03);
}

/* ==========================================
   SIDEBAR CUSTOM REDESIGN WIDGETS
   ========================================== */

.ab-sidebar-widget {
	background: #ffffff;
	border: 1px solid var(--ab-line);
	border-radius: var(--ab-radius-lg);
	padding: 24px !important;
	box-shadow: var(--ab-shadow);
	margin-bottom: 30px !important;
	overflow: hidden;
}

.ab-sidebar-widget .widget-title {
	font-family: "Inter", ui-sans-serif, system-ui, sans-serif !important;
	font-size: 16px !important;
	font-weight: 800 !important;
	text-transform: uppercase;
	letter-spacing: 0.05em;
	color: var(--ab-navy) !important;
	border-bottom: 2px solid var(--ab-line) !important;
	padding-bottom: 10px !important;
	margin-bottom: 18px !important;
}

/* Prep Suite list of link cards */
.ab-prep-suite-list {
	display: flex;
	flex-direction: column;
	gap: 12px;
}

.ab-sidebar-cta-card {
	display: flex;
	align-items: center;
	padding: 12px;
	border: 1px solid var(--ab-line);
	border-radius: var(--ab-radius-md);
	background: #f8fafc;
	text-decoration: none !important;
	transition: all 0.25s ease;
}

.ab-sidebar-cta-card:hover {
	transform: translateY(-2px);
	background: #ffffff;
	box-shadow: var(--ab-shadow);
}

.ab-sidebar-cta-card.cta-predictors:hover { border-color: var(--ab-blue); }
.ab-sidebar-cta-card.cta-resources:hover { border-color: var(--ab-orange); }
.ab-sidebar-cta-card.cta-youtube:hover { border-color: #ef4444; }

.ab-sidebar-cta-card .cta-icon {
	font-size: 20px;
	margin-right: 12px;
	display: flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
}

.ab-sidebar-cta-card .cta-info {
	display: flex;
	flex-direction: column;
}

.ab-sidebar-cta-card .cta-info h4 {
	margin: 0 0 2px !important;
	font-size: 13px !important;
	font-weight: 750 !important;
	color: var(--ab-navy) !important;
	line-height: 1.2;
}

.ab-sidebar-cta-card .cta-info p {
	margin: 0 !important;
	font-size: 11px !important;
	color: var(--ab-muted) !important;
	line-height: 1.3;
}

/* NotesApp Mobile App Widget */
.ab-app-promo-card p {
	font-size: 13px !important;
	line-height: 1.55 !important;
	color: var(--ab-muted) !important;
	margin: 0 0 16px !important;
}

.ab-app-buttons-sidebar {
	display: flex;
	justify-content: center;
}

.ab-btn-playstore-sidebar {
	display: flex;
	align-items: center;
	gap: 8px;
	background: #0f172a;
	color: #ffffff !important;
	padding: 8px 14px;
	border-radius: 8px;
	text-decoration: none !important;
	transition: all 0.2s ease;
	box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.ab-btn-playstore-sidebar:hover {
	background: #1e293b;
	transform: translateY(-2px);
	box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

.ab-btn-playstore-sidebar .play-icon {
	width: 18px;
	height: 18px;
	fill: currentColor;
	flex-shrink: 0;
}

.ab-btn-playstore-sidebar .btn-lbl {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	line-height: 1;
}

.ab-btn-playstore-sidebar .btn-lbl .small {
	font-size: 8px;
	font-weight: 500;
	opacity: 0.8;
	letter-spacing: 0.05em;
	margin-bottom: 1px;
}

.ab-btn-playstore-sidebar .btn-lbl .large {
	font-size: 12.5px;
	font-weight: 700;
}

/* Popular Reviews & Guides List */
.ab-popular-list {
	list-style: none !important;
	padding: 0 !important;
	margin: 0 !important;
	display: flex;
	flex-direction: column;
	gap: 12px;
}

.ab-popular-list li {
	margin: 0 !important;
	padding: 0 !important;
	border: none !important;
}

.ab-popular-list li a {
	display: flex;
	align-items: center;
	gap: 10px;
	text-decoration: none !important;
	color: inherit !important;
	transition: color 0.2s ease;
}

.ab-popular-list li a:hover .ab-popular-title {
	color: var(--ab-blue);
}

.ab-popular-thumb {
	width: 50px;
	height: 38px;
	border-radius: 4px;
	overflow: hidden;
	background: #f1f5f9;
	display: flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
	border: 1px solid var(--ab-line);
}

.ab-popular-thumb img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.ab-thumb-placeholder {
	font-size: 16px;
}

.ab-popular-title {
	font-size: 12.5px;
	font-weight: 600;
	line-height: 1.4;
	color: var(--ab-navy);
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}


/* ==========================================
   COLLEGE REVIEWS DIRECTORY LAYOUTS
   ========================================== */

.ab-directory-header,
.ab-dashboard-header {
	margin-bottom: 30px;
	border-bottom: 1px solid var(--ab-line);
	padding-bottom: 20px;
}

.ab-directory-header .ab-eyebrow,
.ab-dashboard-header .ab-eyebrow {
	color: var(--ab-orange);
	font-weight: 800;
	font-size: 12px;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	margin-bottom: 6px;
	display: block;
}

.ab-directory-title,
.ab-dashboard-title {
	font-family: "Anton", Impact, sans-serif !important;
	font-weight: 400;
	letter-spacing: 0.02em;
	text-transform: uppercase;
	font-size: 32px !important;
	color: var(--ab-navy);
	margin: 0 0 10px !important;
	line-height: 1.15;
}

.ab-directory-desc,
.ab-dashboard-desc {
	font-size: 14.5px;
	color: var(--ab-muted);
	line-height: 1.6;
	max-width: 75ch;
}

/* Category Filter Bar */
.ab-directory-filters-nav {
	margin-bottom: 35px;
	border-bottom: 1px solid var(--ab-line);
	padding-bottom: 16px;
	overflow-x: auto;
	-webkit-overflow-scrolling: touch;
}

.ab-directory-filters-nav::-webkit-scrollbar {
	display: none; /* Hide scrollbar for clean look */
}

.ab-directory-filters {
	display: flex;
	flex-wrap: nowrap !important;
	white-space: nowrap !important;
	list-style: none !important;
	padding: 0 !important;
	margin: 0 !important;
	gap: 8px;
}

.ab-directory-filters li {
	margin: 0 !important;
	padding: 0 !important;
}

.ab-filter-pill {
	display: inline-block;
	padding: 8px 16px;
	border: 1px solid var(--ab-line);
	border-radius: 999px;
	font-size: 13px;
	font-weight: 600;
	color: var(--ab-muted);
	text-decoration: none !important;
	background: #ffffff;
	transition: all 0.2s ease;
	white-space: nowrap;
}

.ab-filter-pill:hover {
	border-color: var(--ab-blue);
	color: var(--ab-blue);
	background: var(--ab-blue-soft);
}

.ab-filter-pill.active {
	border-color: var(--ab-blue);
	color: #ffffff !important;
	background: var(--ab-blue);
}


/* ==========================================
   BLOG & UPDATES DASHBOARD LAYOUTS
   ========================================== */

.ab-dashboard-section {
	margin-bottom: 45px;
}

.ab-section-heading {
	font-size: 16px !important;
	font-weight: 800 !important;
	border-bottom: 2px solid var(--ab-navy);
	padding-bottom: 6px;
	margin-bottom: 18px !important;
	display: flex;
	align-items: center;
	gap: 6px;
	color: var(--ab-navy) !important;
	text-transform: uppercase;
	letter-spacing: 0.02em;
}

.ab-section-heading span {
	font-size: 18px;
}

/* Alert Notices List */
.ab-notices-list {
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.ab-notice-item {
	display: flex;
	align-items: center;
	padding: 12px 18px;
	background: #ffffff;
	border: 1px solid var(--ab-line);
	border-left: 4px solid var(--ab-orange);
	border-radius: 8px;
	text-decoration: none !important;
	color: inherit !important;
	transition: all 0.2s ease;
}

.ab-notice-item:hover {
	transform: translateX(4px);
	box-shadow: 0 4px 12px rgba(15, 23, 42, 0.05);
	border-color: rgba(15, 23, 42, 0.15);
	border-left-color: var(--ab-orange);
}

.ab-notice-item .notice-date {
	font-size: 11px;
	font-weight: 700;
	text-transform: uppercase;
	color: var(--ab-muted);
	width: 85px;
	flex-shrink: 0;
}

.ab-notice-item .notice-title {
	font-size: 13.5px;
	font-weight: 600;
	color: var(--ab-navy);
	flex-grow: 1;
	margin: 0 15px;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.ab-notice-item .notice-arrow {
	font-size: 14px;
	color: var(--ab-orange);
	transition: transform 0.2s ease;
}

.ab-notice-item:hover .notice-arrow {
	transform: translateX(3px);
}

/* Predictors Mini Grid */
.ab-predictors-mini-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 20px;
}

.ab-predictor-mini-card {
	display: flex;
	flex-direction: column;
	background: #ffffff;
	border: 1px solid var(--ab-line);
	border-radius: 10px;
	overflow: hidden;
	text-decoration: none !important;
	color: inherit !important;
	transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
	box-shadow: var(--ab-shadow);
}

.ab-predictor-mini-card:hover {
	transform: translateY(-3px);
	box-shadow: 0 10px 20px -5px rgba(15, 23, 42, 0.08);
	border-color: rgba(15, 23, 42, 0.12);
}

.ab-predictor-mini-card .predictor-thumb {
	height: 120px;
	overflow: hidden;
	border-bottom: 1px solid var(--ab-line);
}

.ab-predictor-mini-card .predictor-thumb img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.ab-predictor-mini-card .predictor-content {
	padding: 16px;
	display: flex;
	flex-direction: column;
	flex-grow: 1;
}

.ab-predictor-mini-card .predictor-content h4 {
	margin: 0 0 10px !important;
	font-size: 13.5px !important;
	font-weight: 800 !important;
	line-height: 1.45 !important;
	color: var(--ab-navy) !important;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
	flex-grow: 1;
}

.ab-predictor-mini-card .predictor-content .predictor-link {
	font-size: 12px;
	font-weight: 750;
	color: var(--ab-blue);
}

/* ==========================================
   RESPONSIVE DESIGN ADAPTATIONS
   ========================================== */

@media (max-width: 991px) {
	.ab-predictors-mini-grid {
		grid-template-columns: repeat(2, 1fr);
	}
}

@media (max-width: 767px) {
	.ab-notice-item {
		padding: 10px 14px;
	}
	.ab-notice-item .notice-date {
		width: 75px;
		font-size: 10px;
	}
	.ab-notice-item .notice-title {
		font-size: 12.5px;
		margin: 0 10px;
	}
}

@media (max-width: 600px) {
	.ab-predictors-mini-grid {
		grid-template-columns: 1fr;
	}
}

/* =========================================================================
   PREMIUM CAPSULE SEARCH BAR & DIMMING FILTERS OVERRIDES
   ========================================================================= */

/* Search Capsule container */
.ab-listing-search {
	display: flex !important;
	align-items: center !important;
	max-width: 420px !important;
	margin: 0 0 32px !important;
	background: #ffffff !important;
	border: 1px solid var(--ab-line) !important;
	border-radius: 999px !important;
	padding: 4px 6px 4px 16px !important;
	box-shadow: 0 4px 12px rgba(15, 23, 42, 0.03) !important;
	transition: all 0.25s ease !important;
	box-sizing: border-box !important;
}

.ab-listing-search:focus-within {
	border-color: var(--ab-blue) !important;
	box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15) !important;
}

/* Input search field */
.ab-listing-search-field {
	flex: 1 1 auto !important;
	height: 38px !important;
	border: none !important;
	border-radius: 0 !important;
	padding: 0 10px 0 0 !important;
	font-size: 14.5px !important;
	background: transparent !important;
	outline: none !important;
	box-shadow: none !important;
	color: var(--ab-navy) !important;
}

.ab-listing-search-field::placeholder {
	color: rgba(148, 163, 184, 0.6) !important;
}

/* Rounded search submit button */
.ab-listing-search-submit {
	height: 38px !important;
	padding: 0 22px !important;
	border-radius: 999px !important;
	background: var(--ab-blue) !important;
	color: #ffffff !important;
	border: none !important;
	font-family: "Inter", sans-serif !important;
	font-weight: 800 !important;
	font-size: 13.5px !important;
	box-shadow: 0 3px 8px rgba(37, 99, 235, 0.25) !important;
	cursor: pointer !important;
	transition: all 0.2s ease !important;
	display: inline-flex !important;
	align-items: center !important;
	justify-content: center !important;
	text-transform: uppercase !important;
	letter-spacing: 0.02em !important;
}

.ab-listing-search-submit:hover {
	background: #1d4ed8 !important;
	box-shadow: 0 6px 14px rgba(37, 99, 235, 0.35) !important;
	transform: translateY(-0.5px) !important;
}

/* Dimming rules for inactive filter pills */
.ab-directory-filters.has-active-filter .ab-filter-pill:not(.active) {
	opacity: 0.55 !important;
	background: #f8fafc !important;
	border-color: var(--ab-line) !important;
	color: var(--ab-muted) !important;
}

.ab-directory-filters.has-active-filter .ab-filter-pill:not(.active):hover {
	opacity: 1 !important;
	border-color: var(--ab-blue) !important;
	color: var(--ab-blue) !important;
	background: var(--ab-blue-soft) !important;
}

/* Styling close (x) button on the active pill */
.ab-filter-pill.active {
	display: inline-flex !important;
	align-items: center !important;
	gap: 6px !important;
	padding-right: 14px !important; /* balance space around x icon */
	font-size: 13px !important;
	font-weight: 800 !important;
	border-color: var(--ab-blue) !important;
	color: #ffffff !important;
	background: var(--ab-blue) !important;
}

.ab-filter-pill.active:hover {
	background: #ef4444 !important; /* changes to red on hover to indicate deletion */
	border-color: #ef4444 !important;
	box-shadow: 0 4px 10px rgba(239, 68, 68, 0.25) !important;
}

/* Hide redundant author and calendar icon metadata on listing cards */
.entry-meta .byline,
.entry-meta .author,
.entry-meta .posted-on:before {
	display: none !important;
}

/* Hide redundant theme breadcrumbs on custom pages */
.ab-directory-page .blogmagazine-breadcrumb-wrapper,
.ab-blog-dashboard .blogmagazine-breadcrumb-wrapper {
	display: none !important;
}

/* Enforce uniform card thumbnail aspect ratio and animations */
.blogmagazine-article-thumb {
	width: calc(100% + 36px) !important;
	margin: -18px -18px 14px !important;
	aspect-ratio: 16/10 !important;
	overflow: hidden !important;
	border-radius: 12px 12px 0 0 !important;
	border-bottom: 1px solid var(--ab-line) !important;
}

.blogmagazine-article-thumb a {
	display: block !important;
	width: 100% !important;
	height: 100% !important;
}

.blogmagazine-article-thumb img {
	width: 100% !important;
	height: 100% !important;
	object-fit: cover !important;
	transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

/* Hover scale effect */
article.post:hover .blogmagazine-article-thumb img {
	transform: scale(1.05) !important;
}

/* Header Navigation Highlight for APPLY */
#primary-menu .ab-menu-apply-item a {
	color: #ef4444 !important; /* Standout red */
	font-family: inherit !important;
	font-size: inherit !important;
	font-weight: 700 !important; /* Bold but compatible with theme customizer font loads */
	text-transform: uppercase !important;
	letter-spacing: inherit !important;
}

#primary-menu .ab-menu-apply-item a:hover {
	color: #dc2626 !important;
}



