/* ISTQB Awards theme: istqb.org's frame (ISTQB bar, header, footer) and the awards sections. The awards blocks have
   their own styles (plugin istqb-awards, build/style.css), with the same colour names. */
:root {
	--istqb-navy: #123962;
	--istqb-navy-deep: #0b2545;
	--istqb-blue: #2c90c4;
	--istqb-red: #c31f33;
	--istqb-gold: #c9a54c;
	--istqb-gold-light: #ecd9a2;
	--istqb-muted: #5f6b7a;
	--istqb-tint: #f3f6fa;
	--istqb-line: #e1e7ef;
	--istqb-gutter: clamp(1rem, 4vw, 2.5rem);
}

/* The footer at the bottom of the window on a short page; the header stays on top while scrolling. */
.wp-site-blocks { min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column; }
.admin-bar .wp-site-blocks { min-height: calc(100vh - 32px); }
.wp-site-blocks > * { margin-block-start: 0 !important; }
.wp-site-blocks > footer.wp-block-template-part { margin-top: auto !important; }
.wp-site-blocks > header.wp-block-template-part { position: sticky; top: 0; z-index: 30; }
.admin-bar .wp-site-blocks > header.wp-block-template-part { top: 32px; }
@media (max-width: 782px) { .admin-bar .wp-site-blocks > header.wp-block-template-part { top: 0; position: relative; } }

/* ISTQB bar: this site is ISTQB's */
.istqb-topbar {
	padding: 0.4rem var(--istqb-gutter) !important;
	background: var(--istqb-navy-deep);
	color: #c9d6e6;
	font-size: 0.8rem;
	gap: 0.5rem 1.5rem !important;
}
.istqb-topbar p { margin: 0; }
.istqb-topbar a { color: #fff; text-decoration: none; }
.istqb-topbar a:hover { color: var(--istqb-gold-light); }
.istqb-topbar__links a + a { margin-left: 1.25rem; }
@media (max-width: 600px) { .istqb-topbar__name { display: none; } }

/* Header, as istqb.org's: white, logo left, menu right */
.istqb-header {
	padding: 0.85rem var(--istqb-gutter) !important;
	background: #fff;
	border-bottom: 1px solid var(--istqb-line);
	box-shadow: 0 2px 14px rgba(11, 37, 69, 0.06);
}
.istqb-nav { font-family: Montserrat, var(--wp--preset--font-family--poppins), sans-serif; font-weight: 500; font-size: 0.95rem; }
.istqb-nav .wp-block-navigation-item__content { color: #0f1d2e; text-decoration: none; padding: 0.35rem 0; border-bottom: 2px solid transparent; }
.istqb-nav .wp-block-navigation-item__content:hover,
.istqb-nav .current-menu-item > .wp-block-navigation-item__content { color: var(--istqb-navy); border-bottom-color: var(--istqb-gold); }
.istqb-nav .wp-block-navigation__submenu-container { border: 1px solid var(--istqb-line) !important; border-radius: 10px; padding: 0.4rem 0 !important; box-shadow: 0 12px 30px rgba(11, 37, 69, 0.12); }
.istqb-nav .wp-block-navigation__submenu-container .wp-block-navigation-item__content { padding: 0.45rem 1.1rem; border: 0; }

/* Title band of an ordinary page */
.istqb-page-hero {
	padding: clamp(2.25rem, 5vw, 3.75rem) var(--istqb-gutter) !important;
	background:
		radial-gradient(ellipse at 85% 0%, rgba(201, 165, 76, 0.2), transparent 50%),
		linear-gradient(135deg, var(--istqb-navy-deep), var(--istqb-navy) 65%, #1d4f85);
	color: #fff;
}
.istqb-page-hero .wp-block-post-title,
.istqb-page-hero h1 { color: #fff; margin: 0; }
.istqb-page-hero .istqb-breadcrumb { color: #fff; }
.istqb-page-hero .wp-block-post-date { color: var(--istqb-gold-light); margin-top: 0.5rem; }
.istqb-page-content { padding: clamp(2rem, 5vw, 3.5rem) var(--istqb-gutter) clamp(3rem, 6vw, 4.5rem) !important; }
.istqb-page-content > * { max-width: var(--wp--style--global--content-size); }

/* Sections of the designed pages */
.istqb-section { padding: clamp(3rem, 7vw, 5.5rem) var(--istqb-gutter) !important; }
.istqb-section--tint { background: var(--istqb-tint); }
.istqb-section--navy {
	background:
		radial-gradient(ellipse at 50% 120%, rgba(201, 165, 76, 0.25), transparent 60%),
		linear-gradient(135deg, var(--istqb-navy-deep), var(--istqb-navy));
	color: #fff;
}
.istqb-section--navy h2,
.istqb-section--navy p { color: #fff; }
.istqb-section-head { text-align: center; max-width: 720px; margin-left: auto !important; margin-right: auto !important; }
.istqb-eyebrow {
	margin: 0 0 0.5rem !important;
	color: var(--istqb-red);
	font-size: 0.8rem;
	font-weight: 600;
	letter-spacing: 0.18em;
	text-transform: uppercase;
}
.istqb-section--navy .istqb-eyebrow,
.istqb-ceremony .istqb-eyebrow { color: var(--istqb-gold-light); }
.istqb-lead { font-size: clamp(1.05rem, 1rem + 0.35vw, 1.25rem); line-height: 1.65; }

/* Ceremony: the home page's opening */
.istqb-ceremony {
	position: relative;
	overflow: hidden;
	padding: clamp(3.5rem, 8vw, 6.5rem) var(--istqb-gutter) clamp(3.5rem, 8vw, 6rem) !important;
	background:
		radial-gradient(ellipse at 72% 18%, rgba(236, 217, 162, 0.28), transparent 38%),
		radial-gradient(ellipse at 10% 110%, rgba(44, 144, 196, 0.35), transparent 50%),
		linear-gradient(160deg, var(--istqb-navy-deep) 0%, var(--istqb-navy) 55%, #1b4a7d 100%);
	color: #fff;
}
.istqb-ceremony::after {
	content: "";
	position: absolute;
	inset: 0;
	background: repeating-linear-gradient(115deg, rgba(255, 255, 255, 0.025) 0 2px, transparent 2px 22px);
	pointer-events: none;
}
.istqb-ceremony > * { position: relative; z-index: 1; }
.istqb-ceremony h1 { color: #fff; margin-top: 0.25rem; }
.istqb-ceremony p { color: #e6edf6; }
.istqb-ceremony .istqb-spotlight__name { color: #fff; }
.istqb-ceremony .istqb-spotlight__frame { box-shadow: 0 0 0 4px var(--istqb-navy), 0 0 0 6px var(--istqb-gold), 0 24px 50px rgba(0, 0, 0, 0.35); }

/* Buttons: gold, and outline on dark backgrounds */
.istqb-btn-gold .wp-block-button__link { background: var(--istqb-gold); color: var(--istqb-navy-deep); }
.istqb-btn-gold .wp-block-button__link:hover { background: var(--istqb-gold-light); color: var(--istqb-navy-deep); }
.istqb-ceremony .is-style-outline .wp-block-button__link,
.istqb-section--navy .is-style-outline .wp-block-button__link { color: #fff; border-color: rgba(255, 255, 255, 0.7); background: transparent; }
.istqb-ceremony .is-style-outline .wp-block-button__link:hover,
.istqb-section--navy .is-style-outline .wp-block-button__link:hover { background: #fff; color: var(--istqb-navy); }

/* Award cards and steps */
.istqb-award-card {
	height: 100%;
	padding: clamp(1.75rem, 3vw, 2.5rem) !important;
	border-radius: 16px;
	background: #fff;
	border-top: 4px solid var(--istqb-gold);
	box-shadow: 0 10px 30px rgba(11, 37, 69, 0.1);
}
.istqb-award-card h3 { margin-top: 0.75rem; }
.istqb-award-card .istqb-emblem-block { color: var(--istqb-gold); }
.istqb-step {
	height: 100%;
	padding: 1.75rem !important;
	border-radius: 16px;
	background: #fff;
	border: 1px solid var(--istqb-line);
}
.istqb-step__number {
	display: inline-flex !important;
	align-items: center;
	justify-content: center;
	width: 2.6rem;
	height: 2.6rem;
	margin: 0 0 0.75rem !important;
	border-radius: 50%;
	background: var(--istqb-navy);
	color: var(--istqb-gold-light);
	font-weight: 600;
}
.istqb-step h3 { margin-top: 0; font-size: 1.2rem; }
.istqb-cta { text-align: center; }
.istqb-cta .wp-block-buttons { justify-content: center; }

/* Footer, as istqb.org's: white, columns with red titles, the logo, social links */
.istqb-footer {
	padding: clamp(3rem, 6vw, 4.5rem) var(--istqb-gutter) 1.5rem !important;
	background: #fff;
	border-top: 4px solid var(--istqb-gold);
	color: var(--istqb-ink, #303030);
	font-size: 0.92rem;
}
.istqb-footer__title { margin: 0 0 0.9rem !important; color: var(--istqb-red); font-size: 0.85rem !important; font-weight: 600; letter-spacing: 0.06em; }
.istqb-footer__links { line-height: 2.1; margin: 0; }
.istqb-footer a { color: var(--istqb-navy); text-decoration: none; }
.istqb-footer a:hover { color: var(--istqb-red); text-decoration: underline; }
.istqb-footer__about { color: var(--istqb-muted); max-width: 22rem; }
.istqb-footer__social { gap: 0.6rem !important; }
.istqb-footer__social .wp-social-link { color: var(--istqb-navy); }
.istqb-footer__social .wp-social-link a { color: inherit; }
.istqb-footer__bottom { margin-top: 2.5rem !important; padding-top: 1.25rem; border-top: 1px solid var(--istqb-line); color: var(--istqb-muted); font-size: 0.8rem; gap: 0.5rem 1.5rem !important; }
.istqb-footer__bottom p { margin: 0; }

/* News list */
.istqb-news .wp-block-post { padding: 1.5rem 0; border-bottom: 1px solid var(--istqb-line); }
.istqb-news .wp-block-post-title { margin: 0.25rem 0 0.5rem; font-size: 1.35rem; }
.istqb-news .wp-block-post-title a { text-decoration: none; }
.istqb-news .wp-block-post-date { color: var(--istqb-red); font-size: 0.8rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; }

/* FAQ */
.wp-block-details { border-bottom: 1px solid var(--istqb-line); padding: 1rem 0; }
.wp-block-details summary { font-weight: 600; color: var(--istqb-navy); cursor: pointer; }
.wp-block-details[open] summary { color: var(--istqb-red); }

/* Contact Form 7's button as the site's buttons */
.wpcf7 input[type=submit] {
	background: var(--istqb-navy);
	color: #fff;
	border: 0;
	border-radius: 999px;
	padding: 0.85rem 1.8rem;
	font: 600 1rem var(--wp--preset--font-family--poppins);
	cursor: pointer;
}
.wpcf7 input[type=submit]:hover { background: #26609f; }
