/*
Theme Name: EBM SCHOLARS Stream
Theme URI: https://ebmscholars.com/
Author: EBM SCHOLARS
Author URI: https://ebmscholars.com/
Description: Clean navy-and-red theme for EBM SCHOLARS with one-click access to EBM STREAM. Simple header (Home, EBM STREAM and a STREAM button), a dedicated /stream/ page created on activation, and a calm, editorial look. Works with Elementor and Elementor Pro — your Elementor pages, headers and footers keep working. Settings: Appearance › Customize › EBM STREAM.
Version: 1.3.0
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: ebm-scholars-stream
Tags: custom-logo, custom-menu, featured-images, full-width-template, one-column, translation-ready, blog
*/

/* VOICE: calm, confident, editorial. IDEA: a studio monitor — a framed "DUAL FORMAT" screen with a red record light.
   COLOUR: EBM STREAM navy + record red on white and a pale blue-grey band. TYPE: Inter, heavy and tightly tracked for headlines.
   LAYOUT: white header, pale hero split text | monitor, ruled three-column lists, slim navy footer. */

:root {
	--navy: #13294b;
	--navy-2: #1d3a66;
	--red: #b3261e;
	--red-hover: #941d16;
	--dot: #e8382b;
	--ink: #13294b;
	--text: #3c4a5e;
	--muted: #5b6878;
	--pale: #f4f7f9;
	--line: #d8dee6;
	--white: #ffffff;
	--max: 1212px;
	--font: "Inter", "Helvetica Neue", Helvetica, Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-padding-top: 96px; }
body { margin: 0; font: 400 17px/1.6 var(--font); color: var(--text); background: var(--white); overflow-x: clip; -webkit-font-smoothing: antialiased; }
img, video, iframe { max-width: 100%; height: auto; }
a { color: var(--navy); text-underline-offset: 3px; }
a:hover { color: var(--red); }
h1, h2, h3, h4 { color: var(--ink); font-family: var(--font); font-weight: 800; line-height: 1.05; letter-spacing: -.045em; margin: 0 0 .45em; text-wrap: balance; }
h1 { font-size: clamp(44px, 6.4vw, 80px); }
h2 { font-size: clamp(32px, 3.8vw, 44px); letter-spacing: -.04em; }
h3 { font-size: 22px; letter-spacing: -.02em; line-height: 1.2; }
p { margin: 0 0 1em; }
:focus-visible { outline: 3px solid var(--dot); outline-offset: 3px; }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(1px, 1px, 1px, 1px); white-space: nowrap; }
.skip-link:focus { position: fixed; top: 8px; left: 8px; z-index: 1000; width: auto; height: auto; clip: auto; padding: 10px 16px; background: var(--white); color: var(--navy); font-weight: 700; }
.container { width: min(var(--max), 100% - 48px); margin-inline: auto; }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 44px; padding: 0 20px; border-radius: 4px; border: 2px solid transparent; font: 700 16px/1 var(--font); letter-spacing: -.01em; text-decoration: none; cursor: pointer; transition: background .15s, color .15s, border-color .15s; white-space: nowrap; }
.btn-red { background: var(--red); color: var(--white); }
.btn-red:hover { background: var(--red-hover); color: var(--white); }
.btn-navy { background: var(--navy); color: var(--white); }
.btn-navy:hover { background: var(--navy-2); color: var(--white); }
.btn-outline { background: transparent; color: var(--navy); border-color: var(--navy); }
.btn-outline:hover { background: var(--navy); color: var(--white); }
.btn-ghost { background: transparent; color: var(--white); border-color: rgba(255,255,255,.6); }
.btn-ghost:hover { background: var(--white); color: var(--navy); }
.btn-lg { min-height: 52px; padding: 0 22px; font-size: 17px; }
.rec-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--dot); flex: none; }
.btn-red .rec-dot { background: var(--white); }
.ext { width: 15px; height: 15px; flex: none; opacity: .9; }
@media (prefers-reduced-motion: no-preference) { .rec-dot.pulse { animation: recblink 2s infinite; } }
@keyframes recblink { 0%, 100% { opacity: 1; } 50% { opacity: .35; } }

/* ---------- optional STREAM top bar ---------- */
.stream-topbar { background: var(--navy); color: #dbe3ee; font-size: 14px; }
.stream-topbar .container { display: flex; align-items: center; justify-content: center; gap: 8px 14px; flex-wrap: wrap; min-height: 40px; padding: 6px 0; text-align: center; }
.stream-topbar a { color: var(--white); font-weight: 700; text-decoration: none; }
.stream-topbar .live { display: inline-flex; align-items: center; gap: 6px; font-weight: 800; font-size: 12px; letter-spacing: .08em; color: var(--white); }
.stream-topbar .live::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--dot); }
@media (max-width: 600px) { .stream-topbar .msg { display: none; } }

/* ---------- header ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: var(--white); border-bottom: 1px solid var(--line); }
.admin-bar .site-header { top: 32px; }
@media (max-width: 782px) { .admin-bar .site-header { top: 46px; } }
@media (max-width: 600px) { .admin-bar .site-header { top: 0; } }
.header-inner { display: flex; align-items: center; gap: 20px; min-height: 80px; }
.site-branding { flex: none; display: flex; align-items: center; }
.wordmark { font-weight: 800; font-size: 19px; letter-spacing: -.035em; color: var(--ink); text-decoration: none; text-transform: uppercase; }
.wordmark:hover { color: var(--ink); }
.site-branding img, .custom-logo { display: block; width: auto; max-height: 44px; max-width: 220px; }
.main-nav { margin-left: auto; }
.main-nav ul { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.main-nav li { position: relative; }
.main-nav a { display: block; padding: 8px 8px; color: var(--ink); font-weight: 700; font-size: 15px; letter-spacing: -.01em; text-decoration: none; border-bottom: 2px solid transparent; }
.main-nav a:hover { color: var(--red); }
.main-nav .current-menu-item > a, .main-nav .current_page_item > a { border-bottom-color: var(--dot); }
.main-nav .sub-menu { display: none; position: absolute; top: 100%; left: 0; min-width: 210px; background: var(--white); border: 1px solid var(--line); border-radius: 6px; padding: 6px; flex-direction: column; align-items: stretch; z-index: 60; }
.main-nav li:hover > .sub-menu, .main-nav li:focus-within > .sub-menu { display: flex; }
.header-stream-btn { flex: none; margin-left: 10px; }
.menu-toggle { display: none; background: var(--pale); border: 0; border-radius: 4px; width: 44px; height: 44px; cursor: pointer; color: var(--ink); align-items: center; justify-content: center; }
.menu-toggle svg { width: 24px; height: 24px; }
@media (max-width: 760px) {
	.header-inner { flex-wrap: wrap; gap: 10px; min-height: 66px; padding: 8px 0; }
	.header-stream-btn { order: 1; margin-left: auto; }
	.menu-toggle { display: inline-flex; order: 2; }
	.main-nav { order: 3; flex-basis: 100%; display: none; margin: 0; }
	.main-nav.open { display: block; }
	.main-nav ul { flex-direction: column; align-items: stretch; padding-bottom: 10px; }
	.main-nav a { padding: 12px 4px; border-bottom: 1px solid var(--line); }
	.main-nav .sub-menu { display: flex; position: static; border: 0; padding: 0 0 0 14px; }
}
@media (max-width: 380px) { .wordmark { font-size: 16px; } .header-stream-btn .btn { padding: 0 12px; font-size: 14px; } }

/* ---------- hero ---------- */
.hero { background: var(--pale); border-bottom: 1px solid var(--line); }
.hero .container { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 56px; align-items: center; padding: clamp(56px, 7vw, 84px) 0; }
.hero-logo { display: block; width: 182px; height: auto; margin-bottom: 30px; }
.hero h1 { margin-bottom: .4em; }
.hero .lead { font-size: 19px; line-height: 1.6; color: var(--ink); max-width: 540px; margin-bottom: 30px; opacity: .92; }
.kicker { display: inline-flex; align-items: center; gap: 8px; font-weight: 800; font-size: 12px; letter-spacing: .12em; color: var(--red); margin-bottom: 20px; text-transform: uppercase; }
.kicker::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--dot); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.hero-media iframe, .hero-media video { width: 100%; aspect-ratio: 16 / 9; border: 0; border-radius: 14px; display: block; background: #000; }
@media (max-width: 880px) { .hero .container { grid-template-columns: 1fr; gap: 40px; } }

/* ---------- the studio monitor card ---------- */
.monitor { border-radius: 16px; overflow: hidden; background: var(--white); border: 1px solid var(--navy); box-shadow: 0 18px 40px rgba(19,41,75,.12); }
.monitor-top, .monitor-bottom { background: var(--navy); color: var(--white); display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 13px 18px; font-size: 11px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.monitor-top span { display: inline-flex; align-items: center; gap: 8px; }
.monitor-top span::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: var(--dot); }
@media (prefers-reduced-motion: no-preference) { .monitor-top span::before { animation: recblink 2s infinite; } }
.monitor-bottom { letter-spacing: .02em; text-transform: none; font-weight: 700; }
.monitor-bottom b { font-weight: 800; margin-right: 8px; }
.monitor-screen { aspect-ratio: 16 / 10; display: grid; place-items: center; background-color: var(--white); background-image: radial-gradient(#b9c3cf 1px, transparent 1.2px); background-size: 22px 22px; padding: 24px; }
.monitor-screen img { width: min(260px, 60%); height: auto; }

/* ---------- sections ---------- */
.section { padding: clamp(56px, 7vw, 88px) 0; }
.section.pale { background: var(--pale); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-head { max-width: 760px; margin-bottom: 36px; }
.section-head p { color: var(--muted); font-size: 18px; }
.ruled { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px 24px; padding: 0; margin: 0; list-style: none; }
.ruled > li, .ruled > article { border-top: 2px solid var(--ink); padding-top: 18px; }
.ruled .ico { display: block; width: 24px; height: 24px; color: var(--red); margin-bottom: 14px; }
.ruled .num { display: block; font-weight: 800; font-size: 15px; color: var(--red); margin-bottom: 12px; letter-spacing: .02em; }
.ruled h3 { margin: 0 0 8px; }
.ruled p { color: var(--muted); margin: 0; font-size: 16px; }
.ruled a.more { display: inline-block; margin-top: 12px; font-weight: 700; font-size: 15px; text-decoration: none; }
.ruled a.more::after { content: " →"; }
.ruled.four { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 900px) { .ruled, .ruled.four { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 580px) { .ruled, .ruled.four { grid-template-columns: 1fr; } }
.center-cta { margin-top: 44px; }

/* ---------- STREAM band (optional) ---------- */
.stream-band { background: var(--pale); border-top: 1px solid var(--line); }
.stream-band .container { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px 40px; padding: 44px 0; }
.stream-band h2 { margin: 0 0 6px; font-size: clamp(26px, 3vw, 34px); }
.stream-band p { margin: 0; color: var(--muted); max-width: 640px; }

/* ---------- content / blog ---------- */
.page-header { background: var(--pale); border-bottom: 1px solid var(--line); padding: 52px 0 40px; }
.page-header h1 { margin: 0; font-size: clamp(36px, 4.6vw, 56px); }
.page-header p { color: var(--muted); margin: 12px 0 0; }
.content-area { padding: 52px 0 80px; }
.entry-content { max-width: 760px; }
.full-width .entry-content, .entry-content.wide { max-width: none; }
.entry-content > * { margin-bottom: 1.1em; }
.entry-content h2 { font-size: clamp(28px, 3vw, 36px); margin-top: 1.4em; }
.entry-content blockquote { border-left: 3px solid var(--dot); margin: 1.5em 0; padding: .2em 0 .2em 1.1em; color: var(--ink); font-size: 1.1em; }
.entry-content table { width: 100%; border-collapse: collapse; }
.entry-content th, .entry-content td { border-bottom: 1px solid var(--line); padding: 10px; text-align: left; }
.entry-content .alignwide { width: min(1100px, 100vw - 48px); max-width: none; }
.entry-content .alignfull { width: 100vw; max-width: none; margin-left: calc(50% - 50vw); }
.wp-block-button__link { border-radius: 4px; background: var(--red); font-weight: 700; }
.entry-meta { color: var(--muted); font-size: 14px; margin-bottom: 8px; }
.posts-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px 24px; }
.post-card { border-top: 2px solid var(--ink); padding-top: 18px; display: flex; flex-direction: column; gap: 6px; }
.post-card .thumb { display: block; margin-bottom: 10px; }
.post-card .thumb img { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 6px; }
.post-card h2 { font-size: 22px; letter-spacing: -.02em; line-height: 1.2; margin: 0; }
.post-card h2 a { color: var(--ink); text-decoration: none; }
.post-card h2 a:hover { color: var(--red); }
.post-card p { color: var(--muted); margin: 0; font-size: 16px; }
@media (max-width: 900px) { .posts-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 580px) { .posts-grid { grid-template-columns: 1fr; } }
.nav-links { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 40px; }
.nav-links a, .nav-links span { display: inline-flex; align-items: center; min-height: 42px; padding: 0 14px; border-radius: 4px; border: 1px solid var(--line); text-decoration: none; color: var(--ink); font-weight: 700; }
.nav-links .current { background: var(--navy); color: var(--white); border-color: var(--navy); }
.search-form { display: flex; gap: 8px; max-width: 520px; }
.search-form input[type=search] { flex: 1; min-height: 46px; padding: 0 14px; border: 1px solid var(--line); border-radius: 4px; font: inherit; }
.comments-area { max-width: 760px; margin-top: 48px; }
.comment-list { list-style: none; padding: 0; }
.comment-body { border-bottom: 1px solid var(--line); padding: 16px 0; }
.comment-form input[type=text], .comment-form input[type=email], .comment-form input[type=url], .comment-form textarea { width: 100%; padding: 12px; border: 1px solid var(--line); border-radius: 4px; font: inherit; }
.comment-form .submit { background: var(--red); color: var(--white); border: 0; border-radius: 4px; min-height: 46px; padding: 0 22px; font: 700 16px var(--font); cursor: pointer; }

/* ---------- footer ---------- */
.site-footer { background: var(--navy); color: #dbe3ee; }
.footer-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px; min-height: 66px; padding: 14px 0; }
.footer-bar .wordmark { color: var(--white); font-size: 15px; }
.footer-links { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 26px; list-style: none; margin: 0; padding: 0; }
.footer-links a { color: var(--white); font-weight: 700; font-size: 15px; text-decoration: none; display: inline-flex; align-items: center; gap: 6px; }
.footer-links a:hover { color: #ffc9c3; }
.footer-note { border-top: 1px solid rgba(255,255,255,.14); padding: 14px 0 22px; font-size: 13.5px; color: #a9b7ca; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 20px; }

/* ---------- optional floating STREAM button ---------- */
.stream-float { position: fixed; right: 20px; bottom: 20px; z-index: 90; box-shadow: 0 10px 26px rgba(19,41,75,.28); border-radius: 4px; }
@media print { .stream-float, .stream-topbar, .menu-toggle { display: none !important; } }

/* Elementor */
.ebm-elementor-content { width: 100%; }

/* ---------- inner pages ---------- */
.hero-inner .container { grid-template-columns: minmax(0, 1fr); padding: clamp(48px, 6vw, 72px) 0; }
.hero-inner h1 { font-size: clamp(40px, 5.4vw, 68px); max-width: 900px; }
.hero-inner .lead { max-width: 720px; }
.cta-band { background: var(--white); border-top: 1px solid var(--line); }
.cta-band .container { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px 40px; padding: 52px 0; }
.cta-band h2 { margin: 0 0 6px; font-size: clamp(26px, 3vw, 36px); }
.cta-band p { margin: 0; color: var(--muted); }
.service-list { display: grid; gap: 0; }
.service-row { display: grid; grid-template-columns: 64px minmax(0, 1fr) auto; gap: 8px 28px; align-items: start; border-top: 2px solid var(--ink); padding: 26px 0 32px; }
.service-row:last-child { border-bottom: 1px solid var(--line); }
.service-row .num { font-weight: 800; color: var(--red); font-size: 15px; padding-top: 8px; }
.service-row h2 { font-size: clamp(24px, 2.6vw, 32px); margin: 0 0 8px; }
.service-row p { color: var(--muted); margin: 0; max-width: 640px; }
@media (max-width: 680px) { .service-row { grid-template-columns: 1fr; } .service-row .btn { justify-self: start; } }
.split { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 56px; align-items: start; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } }
.contact-list { list-style: none; margin: 0; padding: 0; }
.contact-list li { border-top: 2px solid var(--ink); padding: 16px 0 20px; display: flex; flex-direction: column; gap: 4px; }
.contact-list .label { font-size: 12px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--red); }
.contact-list a { font-weight: 700; font-size: 18px; text-decoration: none; overflow-wrap: anywhere; }
.form-box { background: var(--white); }
.register-card { border-radius: 16px; overflow: hidden; background: var(--white); border: 1px solid var(--navy); box-shadow: 0 18px 40px rgba(19,41,75,.12); }
.register-body { padding: 24px; }
.note { color: var(--muted); font-size: 15px; }
.form-box input[type=text], .form-box input[type=email], .form-box input[type=tel], .form-box textarea, .form-box select { border: 1px solid var(--line); border-radius: 4px; }
.form-box button[type=submit], .form-box input[type=submit] { background: var(--red) !important; color: var(--white) !important; border: 0 !important; border-radius: 4px !important; font-weight: 700 !important; }
