/* RISE Balkans – global styles. Most section styling is inline in the Elementor HTML widgets. */

body.rb-site {
	margin: 0;
	background: #FFFFFF;
	color: #1B2433;
	font-family: 'Public Sans', 'Segoe UI', Helvetica, sans-serif;
	font-size: 17px;
	line-height: 1.6;
}

.rb-site a { color: #1E4B93; }
.rb-site a:hover { color: #153E80; }
.rb-site :focus-visible { outline: 3px solid #F1C232; outline-offset: 2px; }
.rb-site img { max-width: 100%; }

/* Hello theme / Elementor resets inside our markup */
.rb-site .elementor-widget-html,
.rb-site .elementor-widget-shortcode { width: 100%; }
.rb-site .rb-root.e-con,
.rb-site .rb-root.e-con > .e-con-inner { padding: 0 !important; gap: 0 !important; max-width: none !important; }
.rb-site .rb-root .elementor-widget:not(:last-child) { margin-bottom: 0; }
.rb-site button { text-transform: none; letter-spacing: normal; }
.rb-site .rb-acc-btn, .rb-site .rb-tab { white-space: normal; }
.rb-site figcaption { font-style: normal; }
.rb-site button:hover,
.rb-site button:focus { border-color: #1E4B93; }
.rb-site dl, .rb-site dd { margin-bottom: 0; }
.rb-site table { margin: 0; }
.rb-site table td, .rb-site table th { border-left: 0; border-right: 0; border-top: 0; }
.rb-site table tbody > tr:nth-child(odd) > td,
.rb-site table tbody > tr:nth-child(odd) > th { background-color: transparent; }
.rb-site table tbody tr:hover > td,
.rb-site table tbody tr:hover > th { background-color: transparent; }
.screen-reader-text {
	position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
	overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}

/* ---------- Header ---------- */
.rb-header { font-family: 'Public Sans', 'Segoe UI', Helvetica, sans-serif; color: #1B2433; background: #FFFFFF; border-bottom: 1px solid #E2E7EF; position: relative; z-index: 50; }
.rb-topbar { background: #153E80; color: #FFFFFF; font-size: 13px; line-height: 1.4; }
.rb-topbar a { color: #FFFFFF !important; }
.rb-wrap { max-width: 1200px; margin: 0 auto; padding-left: 24px; padding-right: 24px; box-sizing: border-box; }
.rb-topbar .rb-wrap { padding-top: 8px; padding-bottom: 8px; display: flex; flex-wrap: wrap; gap: 6px 24px; justify-content: space-between; align-items: center; }
.rb-topbar-links { display: flex; flex-wrap: wrap; gap: 6px 18px; }
.rb-bar { padding-top: 14px; padding-bottom: 14px; display: flex; gap: 14px 32px; align-items: center; justify-content: space-between; }
.rb-brand { display: flex; align-items: center; gap: 14px; text-decoration: none; color: #1B2433 !important; }
.rb-brand img { width: 72px; height: 72px; object-fit: contain; }
.rb-brand-name { display: block; font-family: 'Zilla Slab', Georgia, serif; font-weight: 700; font-size: 28px; line-height: 1.05; color: #153E80; }
.rb-brand-tag { display: block; font-size: 13px; color: #4A5568; margin-top: 2px; }
.rb-nav { display: flex; flex-wrap: wrap; gap: 4px; align-items: center; }
.rb-nav-item { position: relative; }
.rb-nav-link {
	display: inline-flex; align-items: center; gap: 6px; min-height: 44px; box-sizing: border-box; padding: 8px 14px;
	border-radius: 999px; font-family: inherit; font-size: 16px; font-weight: 600; line-height: 1.2; color: #1B2433 !important;
	text-decoration: none; background: transparent; border: 0; cursor: pointer;
}
.rb-site .rb-nav-link:hover, .rb-site .rb-nav-link:focus { background: #EEF1F6; color: #153E80 !important; border: 0; }
.rb-site .rb-nav-link.is-active { background: #FFF1C2; color: #153E80 !important; box-shadow: inset 0 -3px 0 #F1C232; }
.rb-nav-link svg { transition: transform 160ms ease; }
.rb-nav-item.is-open > .rb-nav-link svg { transform: rotate(180deg); }
.rb-sub {
	display: none; position: absolute; top: calc(100% + 6px); left: 0; z-index: 60; background: #FFFFFF; border: 1px solid #E2E7EF;
	border-radius: 12px; box-shadow: 0 16px 32px rgba(21, 62, 128, 0.16); min-width: 230px; padding: 8px; flex-direction: column; gap: 2px;
}
.rb-nav-item.is-open > .rb-sub { display: flex; }
.rb-sub a { display: flex; align-items: center; min-height: 44px; box-sizing: border-box; padding: 10px 14px; border-radius: 8px; color: #1B2433 !important; text-decoration: none; font-weight: 500; font-size: 16px; }
.rb-sub a:hover, .rb-sub a.is-active { background: #EEF1F6; color: #153E80 !important; }
.rb-burger { display: none; }

@media (max-width: 1080px) {
	.rb-burger {
		display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 8px 16px;
		border-radius: 999px; border: 2px solid #1E4B93 !important; background: #FFFFFF !important; color: #1E4B93 !important;
		font-family: inherit; font-size: 16px; font-weight: 700; cursor: pointer;
	}
	.rb-bar { flex-wrap: wrap; }
	.rb-nav { display: none; width: 100%; flex-direction: column; align-items: stretch; padding: 8px 0 4px; border-top: 1px solid #E2E7EF; }
	.rb-header.is-menu-open .rb-nav { display: flex; }
	.rb-nav-link { width: 100%; justify-content: space-between; border-radius: 10px; }
	.rb-sub { position: static; box-shadow: none; border: 0; padding: 0 0 6px 16px; min-width: 0; }
}
@media (max-width: 600px) {
	.rb-bar { gap: 12px; }
	.rb-brand { flex: 1 1 auto; min-width: 0; gap: 10px; }
	.rb-brand img { width: 52px; height: 52px; }
	.rb-brand-name { font-size: 23px; }
	.rb-brand-tag { display: none; }
	.rb-burger { padding: 8px 14px; }
	.rb-topbar .rb-wrap > span { display: none; }
}

/* ---------- Mobile type scale for the inline-styled sections ---------- */
@media (max-width: 767px) {
	.rb-site main h1, .rb-site .elementor h1 { font-size: 34px !important; }
	.rb-site .elementor h2[style*="font-size: 38px"],
	.rb-site .elementor h2[style*="font-size: 36px"],
	.rb-site .elementor h2[style*="font-size: 34px"] { font-size: 28px !important; }
	.rb-site .elementor section[style*="padding: 72px 0"],
	.rb-site .elementor section[style*="padding: 64px 0"] { padding-top: 48px !important; padding-bottom: 48px !important; }
	.rb-site .elementor [style*="padding: 36px"] { padding: 22px !important; }
	.rb-site .elementor [style*="padding: 32px"] { padding: 22px !important; }
	.rb-site .elementor table { display: block; overflow-x: auto; }
}

/* ---------- Single post body ---------- */
.rb-post-body { display: flex; flex-direction: column; gap: 18px; font-size: 18px; line-height: 1.65; }
.rb-post-body > * { margin: 0; }
.rb-post-body h2, .rb-post-body h3 { font-family: 'Zilla Slab', Georgia, serif; font-weight: 700; color: #153E80; line-height: 1.2; margin-top: 12px; }
.rb-post-body h2 { font-size: 30px; }
.rb-post-body h3 { font-size: 26px; }
.rb-post-body ul, .rb-post-body ol { padding-left: 24px; display: flex; flex-direction: column; gap: 8px; }
.rb-post-body figure { margin: 0; display: flex; flex-direction: column; gap: 8px; }
.rb-post-body figcaption, .rb-post-aside figcaption { font-size: 14px; color: #4A5568; }
.rb-gallery { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr)); gap: 24px 20px; margin-top: 14px !important; }
.rb-gallery img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 14px; }
.rb-gallery img.rb-contain { object-fit: contain; background: #EEF1F6; }
.rb-post-body table { width: 100%; border-collapse: collapse; font-size: 16px; }
.rb-post-body th { background: #153E80 !important; color: #FFFFFF; text-align: left; padding: 12px 14px; }
.rb-post-body td { padding: 12px 14px; border-bottom: 1px solid #E2E7EF; }
.rb-post-body .rb-table-wrap { overflow-x: auto; border: 1px solid #D5DDEA; border-radius: 16px; }
.rb-post-body .rb-event-box { background: #EEF1F6; border-radius: 16px; padding: 20px 24px; display: flex; flex-direction: column; gap: 8px; font-size: 17px; }
.rb-post-aside figure { margin: 0; background: #EEF1F6; border-radius: 20px; padding: 20px; display: flex; flex-direction: column; gap: 12px; }
.rb-post-aside img { display: block; width: 100%; height: auto; box-shadow: 0 10px 24px rgba(21, 62, 128, 0.16); }
.rb-post-aside figcaption { font-weight: 600; color: #3B4556; }
.rb-tbc { background: #FFF1C2; color: #6B4E00; font-weight: 600; padding: 1px 8px; border-radius: 6px; }

/* Pager */
.rb-pager .page-numbers { display: inline-flex; align-items: center; justify-content: center; min-width: 44px; min-height: 44px; border-radius: 999px; border: 2px solid #1E4B93; font-weight: 700; text-decoration: none; padding: 0 12px; box-sizing: border-box; }
.rb-pager .page-numbers.current { background: #1E4B93; color: #FFFFFF; }

/* Deliverables tabs */
.rb-site .rb-tab { background: #FFFFFF !important; color: #1E4B93 !important; }
.rb-site .rb-tab.is-active { background: #1E4B93 !important; color: #FFFFFF !important; }

/* Contact form */
.rb-site #rb-contact-form input:focus, .rb-site #rb-contact-form select:focus, .rb-site #rb-contact-form textarea:focus { outline: 3px solid #F1C232; outline-offset: 1px; border-color: #1E4B93 !important; }
.rb-site #rb-contact-form button[type="submit"]:hover { background: #A3175A !important; color: #FFFFFF; }

/* Footer */
.rb-footer a { color: #FFFFFF !important; }
.rb-footer a:hover { color: #F1C232 !important; }

/* Cookie banner */
.rb-cookie { position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 9999; display: flex; justify-content: center; pointer-events: none; }
.rb-cookie[hidden] { display: none; }
.rb-cookie-inner {
	pointer-events: auto; max-width: 1100px; width: 100%; box-sizing: border-box; background: #FFFFFF; color: #1B2433;
	border: 1px solid #D5DDEA; border-top: 4px solid #F1C232; border-radius: 18px; box-shadow: 0 20px 48px rgba(21, 62, 128, 0.22);
	padding: 20px 24px; display: flex; flex-wrap: wrap; gap: 16px 28px; align-items: center; justify-content: space-between;
	font-family: 'Public Sans', 'Segoe UI', Helvetica, sans-serif;
}
.rb-cookie-copy { flex: 1 1 520px; min-width: 0; }
.rb-cookie h2 { margin: 0 0 6px; font-family: 'Zilla Slab', Georgia, serif; font-weight: 700; font-size: 22px; line-height: 1.2; color: #153E80; }
.rb-cookie p { margin: 0; font-size: 15px; line-height: 1.55; }
.rb-cookie-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.rb-site .rb-cookie-btn {
	min-height: 48px; padding: 10px 22px; border-radius: 999px; font-family: inherit; font-size: 16px; font-weight: 700;
	cursor: pointer; white-space: nowrap; border: 2px solid #1E4B93;
}
.rb-site .rb-cookie-reject { background: #FFFFFF; color: #1E4B93; }
.rb-site .rb-cookie-reject:hover, .rb-site .rb-cookie-reject:focus { background: #EEF1F6; color: #153E80; border-color: #1E4B93; }
.rb-site .rb-cookie-accept { background: #1E4B93; color: #FFFFFF; }
.rb-site .rb-cookie-accept:hover, .rb-site .rb-cookie-accept:focus { background: #153E80; color: #FFFFFF; border-color: #153E80; }
@media (max-width: 600px) {
	.rb-cookie { left: 8px; right: 8px; bottom: 8px; }
	.rb-cookie-inner { padding: 16px; }
	.rb-cookie-actions, .rb-site .rb-cookie-btn { width: 100%; }
}
.rb-cookie-settings { background: none !important; border: 0 !important; padding: 0 !important; color: #FFFFFF !important; font: inherit; cursor: pointer; text-decoration: underline; min-height: 44px; }
.rb-cookie-settings:hover { color: #F1C232 !important; }
