/*
Theme Name: Blessed Junior School
Theme URI: https://github.com/mubarack/BJS---School-Management-System
Author: Blessed Junior School
Description: Companion theme for the Blessed Junior School Management System plugin (see ../plugin/). Provides site-wide branding (colors, fonts, header, footer) and a full-width "Portal" page template that hosts the [sms_portal] shortcode. The plugin owns all data/logic/REST API; this theme owns look and layout only — it works standalone as a public site theme even without the plugin active.
Version: 1.0.0
Requires at least: 6.0
Requires PHP: 7.4
Text Domain: bjs-theme
*/

:root {
	--sms-red: #d0312d;
	--sms-red-dark: #b62027;
	--sms-red-tint: #fdecec;
	--sms-navy: #083a6f;
	--sms-navy-dark: #062449;
	--sms-navy-tint: #eaf0f8;
	--sms-text: #333333;
	--sms-text-muted: #666666;
	--sms-bg: #f5f5f5;
	--sms-border: #e2e2e2;
	--sms-white: #ffffff;
	--sms-font-heading: "Poppins", "Segoe UI", sans-serif;
	--sms-font-body: "Open Sans", "Segoe UI", sans-serif;
}

* {
	box-sizing: border-box;
}

body {
	margin: 0;
	background: var(--sms-bg);
	color: var(--sms-text);
	font-family: var(--sms-font-body);
	line-height: 1.5;
}

h1, h2, h3, h4, h5, h6 {
	font-family: var(--sms-font-heading);
	color: var(--sms-navy);
	margin-top: 0;
}

a {
	color: var(--sms-red);
}

a:hover {
	color: var(--sms-red-dark);
}

.site-header {
	background: var(--sms-white);
	border-bottom: 3px solid var(--sms-red);
	padding: 0.75rem 1.5rem;
	display: flex;
	align-items: center;
	justify-content: space-between;
}

.site-header .branding {
	display: flex;
	align-items: center;
	gap: 0.75rem;
}

.site-header .branding img {
	height: 44px;
	width: auto;
}

.site-header .site-title {
	font-family: var(--sms-font-heading);
	font-weight: 600;
	font-size: 1.15rem;
	color: var(--sms-navy);
	margin: 0;
}

.site-header .site-title a {
	color: inherit;
	text-decoration: none;
}

.primary-nav ul {
	list-style: none;
	display: flex;
	gap: 1.25rem;
	margin: 0;
	padding: 0;
}

.primary-nav a {
	text-decoration: none;
	color: var(--sms-navy);
	font-weight: 600;
}

.primary-nav a:hover {
	color: var(--sms-red);
}

.site-content {
	max-width: 1100px;
	margin: 0 auto;
	padding: 2rem 1.5rem;
}

.site-content.full-width {
	max-width: none;
	padding: 0;
}

.site-footer {
	background: var(--sms-navy);
	color: var(--sms-white);
	text-align: center;
	padding: 1.5rem;
	font-size: 0.9rem;
	margin-top: 2rem;
}

.site-footer a {
	color: var(--sms-white);
	text-decoration: underline;
}

.bjs-card {
	background: var(--sms-white);
	border: 1px solid var(--sms-border);
	border-radius: 8px;
	padding: 1.5rem;
	margin-bottom: 1.5rem;
}

.bjs-button {
	display: inline-block;
	background: var(--sms-red);
	color: var(--sms-white);
	border: none;
	border-radius: 6px;
	padding: 0.6rem 1.25rem;
	font-weight: 600;
	text-decoration: none;
	cursor: pointer;
}

.bjs-button:hover {
	background: var(--sms-red-dark);
	color: var(--sms-white);
}
