/* AboutNeurofeedback Legacy Shortcodes
   Colours match the old nextelement theme. Layout is responsive:
   columns sit side by side above 700px and stack below it. */

/* ---- Featured box ---------------------------------------------------- */
.anf-featured { position: relative; margin: 0 0 30px 0; }
.anf-featured-title {
	padding: 7px 10px;
	font-weight: bold;
	text-align: center;
	text-transform: uppercase;
	border-radius: 5px 5px 0 0;
	background-image: linear-gradient(rgba(255,255,255,0.15), rgba(0,0,0,0.05));
}
.anf-featured-body {
	background: #fff;
	padding: 10px;
	border: 1px solid #d2d2d2;
	border-radius: 0 0 5px 5px;
	overflow: hidden;
}
.anf-featured-body-plain { border-radius: 5px; }
@media (min-width: 700px) {
	.anf-featured-body { min-height: var(--anf-min-height, auto); }
}
.anf-ribbon { position: absolute; z-index: 2; right: -1px; top: -1px; width: 59px; height: 60px; pointer-events: none; }
.anf-ribbon img { width: 59px; height: 60px; display: block; }
.anf-feat-img { max-width: 100%; height: auto; display: block; }

/* ---- Buttons --------------------------------------------------------- */
.anf-btn {
	display: inline-block;
	font-size: 12px;
	line-height: 1.6;
	text-decoration: none;
	padding: 3px 12px;
	border-radius: 15px;
	border: 1px solid #ccc;
	color: #191919;
	background: #ececec;
	margin: 2px 2px 2px 0;
}
.anf-btn:hover { text-decoration: none; filter: brightness(0.92); }
.anf-btn-blue   { border-color: #067ebd; color: #fff; background: #2d9ad3; }
.anf-btn-green  { border-color: #70862e; color: #fff; background: #8aa43c; }
.anf-btn-orange { border-color: #e08a02; color: #fff; background: #ea9a01; }
.anf-btn-blue:hover, .anf-btn-green:hover, .anf-btn-orange:hover { color: #fff; }

.anf-bigbutton {
	display: inline-block;
	color: #fff;
	line-height: 34px;
	text-decoration: none;
	text-transform: uppercase;
	background: #8aa43c url(images/bg_bigbutton.png) right center no-repeat;
	padding: 5px 32px 5px 12px;
	border: 3px solid #fff;
	border-radius: 20px;
	box-shadow: 0 0 7px #999;
	text-shadow: -1px -1px 0 #798c41;
	margin: 0 7px 10px 0;
	max-width: 100%;
	box-sizing: border-box;
}
.anf-bigbutton:hover { color: #fff; background-color: #98b73c; text-decoration: none; }

/* ---- Icon links ------------------------------------------------------ */
.anf-ico { padding: 0 0 0 28px; background-position: 5px 50%; background-repeat: no-repeat; }
.anf-ico-arrow    { background-image: url(images/icons/ico_arrow_right.png); }
.anf-ico-find     { background-image: url(images/icons/ico_find.png); }
.anf-ico-database { background-image: url(images/icons/ico_database.png); }
.anf-ico-star     { background-image: url(images/icons/ico_star.png); }
.anf-ico-monitor  { background-image: url(images/icons/ico_demo.png); }

/* ---- Message boxes and highlights ------------------------------------ */
.anf-message {
	display: block;
	padding: 10px 10px 10px 40px;
	margin: 0 0 1.4em 0;
	border: 1px solid;
	background-position: 8px 50%;
	background-repeat: no-repeat;
}
.anf-message-blue   { border-color: #afdbee; background-color: #e4f5fd; background-image: url(images/icons/ico_info.gif); color: #2a80a7; }
.anf-message-green  { border-color: #d2ebb1; background-color: #edffd6; background-image: url(images/icons/ico_tip.gif);  color: #527a19; }
.anf-message-yellow { border-color: #f8eca9; background-color: #fffade; background-image: url(images/icons/ico_alert.gif); color: #db7701; }
.anf-message-blue a { color: #2a80a7; }
.anf-message-green a { color: #527a19; }
.anf-message-yellow a { color: #db7701; }

.anf-hl { color: #191919; padding: 0 2px; }
.anf-hl-yellow { background: #f8eca9; }
.anf-hl-blue   { background: #afdbee; }
.anf-hl-green  { background: #d2ebb1; }

/* ---- Drop caps ------------------------------------------------------- */
.anf-dropcap  { color: #333; font-size: 3.5em; line-height: 0.8em; float: left; margin: 0 5px 0 0; }
.anf-dropcap2 {
	color: #191919;
	width: 22px;
	display: block;
	float: left;
	margin: 0 5px 0 0;
	text-align: center;
	background: url(images/dropcap.png) 60% center no-repeat;
}

/* ---- Lists ----------------------------------------------------------- */
ul.anf-basic-list { list-style: none; margin: 0; padding: 0 0 1.6em 0; }
ul.anf-basic-list li { background: url(images/line.png) left top repeat-x; padding: 5px 0; }
ul.anf-basic-list li a { text-decoration: none; }
ul.anf-basic-list li a:hover { text-decoration: underline; }
ul.anf-check-list { list-style: none; margin: 0; padding: 0 0 1.6em 0; }
ul.anf-check-list li { padding: 0 0 0 23px; margin: 0 0 4px 0; background: url(images/icons/ico_check.png) left 3px no-repeat; }

/* ---- Quote ----------------------------------------------------------- */
.anf-quote {
	margin: 1em 0;
	padding: 12px 20px;
	border-left: 4px solid #8aa43c;
	background: #f6f6f6;
	font-style: italic;
	text-align: center;
}
.anf-quote-author { margin-top: 6px; font-style: normal; font-weight: bold; text-align: right; }

/* ---- Divider and clear ----------------------------------------------- */
.anf-line  { height: 1px; margin: 15px 0; background: url(images/line.png) left top repeat-x; clear: both; }
.anf-clear { clear: both; height: 0; }

/* ---- Columns --------------------------------------------------------- */
.anf-col { box-sizing: border-box; line-height: 1.6; margin: 0 0 1em 0; }
@media (min-width: 700px) {
	.anf-col { float: left; margin-right: 4%; }
	.anf-col-last { margin-right: 0; clear: right; }
	.anf-col-1-2 { width: 48%; }
	.anf-col-1-3 { width: 30.66%; }
	.anf-col-2-3 { width: 65.33%; }
	.anf-col-1-4 { width: 22%; }
	.anf-col-3-4 { width: 74%; }
}

/* ---- Tabs ------------------------------------------------------------ */
.anf-tab-nav { display: flex; flex-wrap: wrap; gap: 2px; margin: 0; padding: 0; }
.anf-tab {
	appearance: none;
	border: 0;
	cursor: pointer;
	font: inherit;
	line-height: 1;
	padding: 8px 12px;
	border-radius: 5px 5px 0 0;
	background: rgba(0,0,0,0.2);
	color: inherit;
}
.anf-tab:hover, .anf-tab-current { background: rgba(0,0,0,0.6); color: #fff; }
.anf-tab-panes { border-top: 2px solid rgba(0,0,0,0.6); padding: 10px 0 20px 0; }
.anf-tab-pane { display: none; }

/* ---- Tidy-up: hide empty paragraphs left around shortcodes ------------ */
.entry-content p:empty { display: none; }

/* ---- Home page banner ------------------------------------------------ */
.anf-hero {
	display: flex;
	flex-wrap: wrap;
	gap: 30px;
	align-items: center;
	margin: 0 -10px 30px -10px;
	padding: 30px 40px;
	border-radius: 8px;
	background: linear-gradient(135deg, #2c5f86 0%, #3d7aa8 100%);
	color: #fff;
}
.anf-hero-text { flex: 1 1 320px; }
.anf-hero-text h2 { color: #fff; margin: 0 0 12px 0; font-weight: 400; }
.anf-hero-text p { color: #e8f1f8; font-size: 15px; line-height: 1.6; }
.anf-hero-buttons { margin-top: 18px; }
.anf-hero-media { flex: 1 1 320px; text-align: center; }
.anf-hero-media img { max-width: 100%; height: auto; border-radius: 6px; box-shadow: 0 4px 18px rgba(0,0,0,0.35); }
@media (max-width: 699px) {
	.anf-hero { padding: 20px; margin: 0 0 20px 0; }
}

/* ---- Front page: hide the "Homepage" title strip above the banner ------ */
body.home.page .entry-hero,
body.home.page .page-hero-section,
body.home.page h1.entry-title { display: none; }
