/*
Theme Name: Rebious
Theme URI: https://theme.rebious.com/
Author: 24 Tech Time
Author URI: https://www.24techtime.com/
Description: An enterprise-grade, high-performance Full Site Editing (FSE) Block Theme by 24 Tech Time. Rebious Theme is built for blazing speed, fierce security, perfect page builder harmony, clean WordPress standards, ready-to-use patterns, and sticky headers.
Version: 2.0.0
Requires at least: 6.4
Tested up to: 7.1
Requires PHP: 7.4
License: GPL-2.0-or-later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Copyright: 2026 24 Tech Time (U) Ltd
Text Domain: rebious
Tags: full-site-editing, block-patterns, full-width-template, wide-blocks, custom-colors, translation-ready, blog, education, news
*/

html {
	scroll-behavior: smooth;
	scroll-padding-top: 84px;
}

/* Eliminate default WordPress FSE blockGap between Header, Main Content, and Footer */
.wp-site-blocks > header,
.wp-site-blocks > main,
.wp-site-blocks > footer,
.wp-block-template-part {
	margin-block-start: 0 !important;
	margin-block-end: 0 !important;
}

/* Sticky Header by Default */
.wp-site-blocks > header {
	position: sticky;
	top: 0;
	z-index: 999;
	background-color: var(--wp--preset--color--white, #FFFFFF);
	border-bottom: 1px solid #E2E8F0;
	box-shadow: 0 4px 16px rgba(15, 23, 42, 0.05);
}

/* Offset sticky header when WordPress Admin Bar is visible */
@media (min-width: 601px) and (max-width: 782px) {
	body.admin-bar .wp-site-blocks > header {
		top: 46px;
	}
}

@media (min-width: 783px) {
	body.admin-bar .wp-site-blocks > header {
		top: 32px;
	}
}

/* Standard Page & Single Post Elevated Card */
.rebious-page-card {
	box-shadow: 0 8px 28px rgba(15, 23, 42, 0.05);
}

.rebious-page-card .wp-block-quote {
	border-left: 4px solid var(--wp--preset--color--secondary, #2563EB);
	background-color: var(--wp--preset--color--tint, #EFF6FF);
	padding: 1.15rem 1.5rem;
	border-radius: 0 10px 10px 0;
	margin: 1.5rem 0;
}

/* Single Post Hero Category Pill */
.rebious-single-category a {
	display: inline-block;
	padding: 0.3rem 0.85rem;
	border-radius: 999px;
	background-color: rgba(245, 158, 11, 0.14);
	border: 1px solid rgba(245, 158, 11, 0.45);
	color: var(--wp--preset--color--accent, #F59E0B) !important;
	text-decoration: none;
}

/* Blog Archive Pagination */
.rebious-pagination a,
.rebious-pagination .page-numbers {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 40px;
	height: 40px;
	padding: 0 0.85rem;
	border-radius: 8px;
	background-color: var(--wp--preset--color--white, #FFFFFF);
	border: 1px solid #CBD5E1;
	color: var(--wp--preset--color--primary, #0B132B);
	font-weight: 600;
	text-decoration: none;
	transition: border-color 0.18s ease-in-out, color 0.18s ease-in-out, background-color 0.18s ease-in-out;
}

.rebious-pagination .page-numbers.current,
.rebious-pagination a:hover {
	background-color: var(--wp--preset--color--secondary, #2563EB);
	border-color: var(--wp--preset--color--secondary, #2563EB);
	color: var(--wp--preset--color--white, #FFFFFF);
}

/* Native Core Details / FAQ Accordion Polish */
.wp-block-details summary {
	cursor: pointer;
	color: var(--wp--preset--color--primary, #0B132B);
	list-style-position: inside;
	transition: color 0.18s ease-in-out;
}

.wp-block-details summary:hover {
	color: var(--wp--preset--color--secondary, #2563EB);
}

@media (max-width: 781px) {
	.rebious-page-card {
		padding: 1.75rem 1.35rem !important;
	}
}