/*
Theme Name: O'Halloran Fire & Medical
Theme URI: https://ofm.edu.au/
Author: O'Halloran Fire & Medical Pty Ltd
Description: Custom block theme for O'Halloran Fire & Medical (RTO 91539). On activation it creates the Home, Courses, course, About and Contact pages. Edit everything from Pages and Appearance > Editor.
Version: 1.0.72
Requires at least: 6.6
Tested up to: 7.1
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: ofm
*/

/* ---------- Page structure ---------- */
.wp-site-blocks > main,
.wp-site-blocks > footer,
.wp-site-blocks > header + * { margin-block-start: 0; }
.wp-block-post-content > .alignfull { margin-block-start: 0; margin-block-end: 0; }
.ofm-section { padding-top: clamp(56px, 7vw, 96px); padding-bottom: clamp(56px, 7vw, 96px); }
.ofm-section-tight { padding-top: 40px; padding-bottom: 40px; }

/* ---------- Header ---------- */
.ofm-topbar { font-size: 0.875rem; padding-top: 10px; padding-bottom: 10px; padding-left: clamp(20px, 2.5vw, 48px) !important; padding-right: clamp(20px, 2.5vw, 48px) !important; }
.ofm-topbar p { margin: 0; }
.ofm-topbar a { color: #FFFFFF; text-decoration: none; }
.ofm-header { padding-top: 16px; padding-bottom: 16px; padding-left: clamp(20px, 2.5vw, 48px) !important; padding-right: clamp(20px, 2.5vw, 48px) !important; border-bottom: 1px solid #E2DFD8; }
.ofm-brand { gap: 14px; }
.ofm-brand figure { margin: 0; }
.ofm-brand figure a { display: block; }
.ofm-logo-mark img { height: 86px; width: auto; display: block; }
.ofm-logo-word img { height: 54px; width: auto; display: block; }
.ofm-nav { font-weight: 500; }
.ofm-nav a { text-decoration: none; }
.ofm-nav a:not([href^="https://learn.ofm.edu.au"]) { font-size: 1.125rem; }
.ofm-nav .ofm-nav-cta > a {
	background: #D81E05; color: #FFFFFF !important; padding: 12px 22px; border-radius: 6px; font-weight: 600;
}
.ofm-nav .ofm-nav-cta > a:hover { background: #A51703; }
/* Student Login: on its own line below the other menu items (desktop) */
@media (min-width: 600px) {
	.ofm-nav .wp-block-navigation__container > li:has(> a[href^="https://learn.ofm.edu.au"]) { flex-basis: 100%; display: flex; justify-content: flex-end; }
}
/* Student Login: home page only */
body:not(.home) .ofm-nav li:has(> a[href^="https://learn.ofm.edu.au"]) { display: none !important; }
/* Student Login: blackboard button */
.ofm-nav a[href^="https://learn.ofm.edu.au"] {
	display: inline-block; padding: 9px 20px !important; color: #FFFFFF !important; font-weight: 600; letter-spacing: 0.02em;
	text-shadow: 0 0 1px rgba(255,255,255,0.6); background: #487846;
	border: 7px solid #C9A46B; border-image: url("data:image/jpeg;base64,/9j/4AAQSkZJRgABAQAAAQABAAD/2wBDAAYEBAUEBAYFBQUGBgYHCQ4JCQgICRINDQoOFRIWFhUSFBQXGiEcFxgfGRQUHScdHyIjJSUlFhwpLCgkKyEkJST/2wBDAQYGBgkICREJCREkGBQYJCQkJCQkJCQkJCQkJCQkJCQkJCQkJCQkJCQkJCQkJCQkJCQkJCQkJCQkJCQkJCQkJCT/wAARCAB+AKgDASIAAhEBAxEB/8QAHAABAAEFAQEAAAAAAAAAAAAAAAYBAgMHCAUE/8QATBAAAQIDAgQODQsEAwAAAAAAAAECAwQFBhEHEjFxFCE2QVFSVXJ0gbLB0dITFTI1kZKTlKGiscLhFhczN0VGYWKCg+ImQ3OEIiWz/8QAGgEBAAMBAQEAAAAAAAAAAAAAAAEEBgMCBf/EACkRAQABAgILAAIDAAAAAAAAAAACAQMEUgUSExQVITEyM1FxEUGB8PH/2gAMAwEAAhEDEQA/ANz12uT8nVYkvAjqyGjUW7ERbrzz4lpakzSfOqi7CMQy2hciVibauV7WsTwX8xoSszU++sTEKDOOhQ2ta7FVFdeq336/4GdjGU5VpSr6F29CzCkpUb0S0lSd3MeK79KIZG1qrvyRHcdxz3jVLdF3E1U94qkWqpkq0ZMyL0nvYSzKvE7Hp0S2erT/AO6xM6XhahU2d3OMTNCvOemzlaZkrMdOJekyJU66n2xEXOz4jYSzHE7Pqrfjq5Nw+6nHLmgoYXWojs/vxnfoan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+OYcvumX5aTTm4na2BirraIddyRr3U7jh8qvzS0pUvS09Ucmy2ThqenZaxlFspXG1ZteqE3GhwIsFsGNKtY3/ml196aesedDtjOw/o6dKMzRF6oi2onZtyLGlIT7sl8ddL1SKzu/j/ExwdiNaVpR6FoVx6U5L8kWHy0B5c1U5iel0lllYMJrnsVXJFVy6S37UHuxGsY83a5X815P/9k=") 12 fill / 7px stretch;
	border-radius: 3px; box-shadow: 0 2px 4px rgba(0,0,0,0.18); transition: transform .15s ease, box-shadow .15s ease, filter .15s ease;
}
.ofm-nav a[href^="https://learn.ofm.edu.au"]:hover,
.ofm-nav a[href^="https://learn.ofm.edu.au"]:focus-visible { transform: translateY(-1px); box-shadow: 0 4px 10px rgba(0,0,0,0.22); filter: brightness(1.08); }
@media (max-width: 600px) {
	.ofm-logo-mark img { height: 62px; }
	.ofm-logo-word img { height: 40px; }
}

/* ---------- Type helpers ---------- */
.ofm-eyebrow {
	font-size: 0.875rem !important; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: #D81E05;
}
.has-ink-background-color .ofm-eyebrow { color: #E97512; }
.ofm-lead { font-size: 1.1875rem; color: #3F444B; max-width: 620px; }
.has-ink-background-color .ofm-lead { color: #D5D7DB; }
.is-layout-constrained > .ofm-lead { margin-left: max(0px, calc((100% - 1200px) / 2)) !important; }
.ofm-lead.ofm-lead-wide { max-width: 1200px; }
.ofm-tag {
	display: inline-block; align-self: flex-start; font-size: 0.8125rem !important; font-weight: 600;
	padding: 6px 10px; border-radius: 4px; background: #F1EFEA; color: #3F444B; margin: 0;
}
.has-ink-background-color .ofm-tag { background: #2A2F36; color: #E97512; }

/* ---------- Dark sections ---------- */
.has-ink-background-color a:not(.wp-element-button) { color: #FFFFFF; }
.has-ink-background-color a:not(.wp-element-button):hover { color: #E97512; }

/* ---------- Photos ---------- */
.ofm-photo { margin: 0; }
.ofm-photo img { width: 100%; height: 100%; max-height: 520px; object-fit: cover; border-radius: 12px; display: block; }

/* ---------- Trust strip ---------- */
.ofm-trust { border-top: 1px solid #E2DFD8; }
.ofm-trust-item { border-top: 3px solid #D81E05; padding-top: 14px; }
.ofm-trust-item p { margin: 0; font-size: 0.9375rem; line-height: 1.45; }

/* ---------- Cards ---------- */
.ofm-card {
	background: #FFFFFF; border: 1px solid #E2DFD8; border-radius: 12px; padding: 28px;
	display: flex; flex-direction: column; gap: 14px;
}
.ofm-card > * { margin: 0 !important; }
.ofm-card h3 { font-size: 1.375rem; }
.ofm-card .wp-block-buttons { margin-top: auto !important; }
.ofm-card .wp-block-button, .ofm-card .wp-block-button__link { width: 100%; text-align: center; }
.ofm-card-muted { background: #F6F4EF; border-color: #F6F4EF; }

.ofm-facts { list-style: none; padding: 16px 0 0 !important; border-top: 1px solid #E2DFD8; font-size: 0.875rem; }
.ofm-facts li { display: flex; justify-content: space-between; gap: 12px; padding: 4px 0; }
.ofm-facts li strong { font-weight: 400; color: #555A62; }

/* ---------- Steps ---------- */
.ofm-step { border-top: 3px solid #15181D; padding-top: 20px; }
.ofm-step > * { margin-top: 0; margin-bottom: 10px; }
.ofm-step-num { font-family: var(--wp--preset--font-family--archivo); font-weight: 800; font-size: 2rem !important; color: #D81E05; line-height: 1; }

/* ---------- Ticks list ---------- */
.ofm-ticks { list-style: none; padding-left: 0 !important; }
.ofm-ticks li { position: relative; padding-left: 30px; margin-bottom: 10px; }
.ofm-ticks li::before {
	content: ""; position: absolute; left: 2px; top: 0.35em; width: 12px; height: 7px;
	border-left: 2.5px solid #D81E05; border-bottom: 2.5px solid #D81E05; transform: rotate(-45deg);
}
.has-ink-background-color .ofm-ticks li::before { border-color: #E97512; }

/* ---------- Buttons ---------- */
.ofm-btn-light .wp-block-button__link { background: #FFFFFF !important; color: #15181D !important; }
.ofm-btn-light .wp-block-button__link:hover { background: #E97512 !important; color: #FFFFFF !important; }
.wp-block-button.is-style-outline .wp-block-button__link { border: 2px solid #15181D; color: #15181D; background: transparent; padding: 12px 24px; }
.wp-block-button.is-style-outline .wp-block-button__link:hover { background: #15181D; color: #FFFFFF; }

/* ---------- Testimonials ---------- */
.ofm-quote { border: 0 !important; padding: 0 !important; margin: 0; }
.ofm-quote p { font-size: 1.1875rem; line-height: 1.6; }
.ofm-quote cite { font-style: normal; font-size: 0.9375rem; color: #3F444B; }

/* ---------- Course page ---------- */
.ofm-crumbs { font-size: 0.875rem; color: #B3B7BD; }
.ofm-facts-bar {
	background: #FFFFFF; border: 1px solid #E2DFD8; border-radius: 12px; padding: 28px 32px;
	margin-top: -36px !important; position: relative;
}
.ofm-fact p { margin: 0; }
.ofm-fact-label { font-size: 0.875rem; color: #555A62; }
.ofm-fact-value { font-family: var(--wp--preset--font-family--archivo); font-weight: 700; font-size: 1.25rem; }
.ofm-unit { background: #FFFFFF; border: 1px solid #E2DFD8; border-radius: 8px; padding: 16px 18px; }
.ofm-unit p { margin: 0; }
.ofm-unit-code { font-size: 0.8125rem; font-weight: 600; color: #D81E05; }
.wp-block-details { background: #FFFFFF; border: 1px solid #E2DFD8; border-radius: 8px; padding: 18px 20px; }
.wp-block-details summary { font-weight: 600; cursor: pointer; }
.ofm-phone-big { font-family: var(--wp--preset--font-family--archivo); font-weight: 700; font-size: 1.5rem; }
.ofm-phone-big a { text-decoration: none; }

/* ---------- Footer ---------- */
.ofm-footer { font-size: 0.9375rem; }
.ofm-footer h2 { font-family: var(--wp--preset--font-family--inter); font-size: 1rem; font-weight: 600; color: #FFFFFF; margin-bottom: 12px; }
.ofm-footer ul { list-style: none; padding-left: 0; margin: 0; }
.ofm-footer li { margin-bottom: 8px; }
.ofm-footer a { color: #D5D7DB !important; text-decoration: none; }
.ofm-footer a:hover { color: #E97512 !important; }
.ofm-logo-tile { background: #FFFFFF; border-radius: 10px; padding: 8px; display: inline-block; margin: 0 0 12px; }
.ofm-logo-tile img { height: 44px; width: auto; display: block; }
.ofm-footer-name { font-family: var(--wp--preset--font-family--archivo); font-weight: 800; font-size: 1.1875rem; color: #FFFFFF; }
.ofm-footer-bottom { border-top: 1px solid #343941; padding-top: 20px; margin-top: 40px !important; font-size: 0.875rem; color: #B3B7BD; }
.ofm-footer-bottom p { margin: 0; text-align: center; }

/* ---------- Forms (Contact Form 7 / WPForms) ---------- */
.ofm-form input[type="text"], .ofm-form input[type="email"], .ofm-form input[type="tel"],
.ofm-form select, .ofm-form textarea {
	width: 100%; min-height: 48px; border: 1px solid #B9B5AC; border-radius: 6px; padding: 10px 14px;
	font: inherit; background: #FFFFFF; box-sizing: border-box;
}
.ofm-form input[type="submit"], .ofm-form button[type="submit"] {
	background: #D81E05; color: #FFFFFF; border: 0; border-radius: 6px; padding: 14px 28px; font: inherit; font-weight: 600; cursor: pointer;
}
.ofm-form label { font-weight: 600; font-size: 0.9375rem; }

/* ---------- Enquiry pop-up ---------- */
.ofm-modal { border: 0; border-radius: 12px; padding: 0; width: min(560px, calc(100% - 32px)); max-height: calc(100% - 32px); color: #15181D; background: #FFFFFF; box-shadow: 0 24px 64px rgba(21, 24, 29, 0.35); }
.ofm-modal::backdrop { background: rgba(21, 24, 29, 0.65); }
.ofm-modal-inner { position: relative; padding: 32px 28px 28px; }
.ofm-modal h2 { margin: 0 40px 4px 0; font-size: 1.6rem; }
.ofm-modal-lead { margin: 0 0 16px; color: #3F444B; }
.ofm-modal-close { position: absolute; top: 12px; right: 14px; width: 40px; height: 40px; border: 0; border-radius: 50%; background: #F6F4EF; color: #15181D; font-size: 26px; line-height: 1; cursor: pointer; }
.ofm-modal-close:hover, .ofm-modal-close:focus-visible { background: #E2DFD8; }

/* ---------- Forms (WPForms) in OFM colours ---------- */
body .wpforms-container-full {
	--wpforms-button-background-color: #D81E05 !important;
	--wpforms-button-border-color: #D81E05 !important;
	--wpforms-button-text-color: #FFFFFF !important;
	--wpforms-field-border-color-focus: #D81E05;
}

/* ---------- Footer contact icons ---------- */
.ofm-footer .ofm-contact-list li { display: flex; align-items: flex-start; gap: 10px; }
.ofm-footer .ofm-contact-list li::before { content: ""; flex: none; width: 18px; height: 18px; margin-top: 2px; background-color: #E97512; -webkit-mask: var(--ofm-icon) center / contain no-repeat; mask: var(--ofm-icon) center / contain no-repeat; }
.ofm-ci-phone { --ofm-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill-rule='evenodd' d='M6.6 10.8a15.1 15.1 0 0 0 6.6 6.6l2.2-2.2a1 1 0 0 1 1-.25c1.1.37 2.3.57 3.6.57a1 1 0 0 1 1 1V20a1 1 0 0 1-1 1A17 17 0 0 1 3 4a1 1 0 0 1 1-1h3.5a1 1 0 0 1 1 1c0 1.25.2 2.45.57 3.57a1 1 0 0 1-.25 1z'/%3E%3C/svg%3E"); }
.ofm-ci-email { --ofm-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill-rule='evenodd' d='M3 5h18a1 1 0 0 1 1 1v12a1 1 0 0 1-1 1H3a1 1 0 0 1-1-1V6a1 1 0 0 1 1-1zm1 2.6V17h16V7.6l-8 5.2-8-5.2zM5.8 7l6.2 4 6.2-4H5.8z'/%3E%3C/svg%3E"); }
.ofm-ci-post { --ofm-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill-rule='evenodd' d='M7 4h10a5 5 0 0 1 5 5v9a1 1 0 0 1-1 1H3a1 1 0 0 1-1-1V9a5 5 0 0 1 5-5zm0 2a3 3 0 0 0-3 3v8h6V9a3 3 0 0 0-3-3zm4 0a5 5 0 0 1 1 3v8h8V9a3 3 0 0 0-3-3h-6zM5 10h4v1.6H5zm9 0h4v4h-1.6v-2.4H14z'/%3E%3C/svg%3E"); }
.ofm-topbar a.ofm-topbar-phone { display: inline-flex; align-items: center; gap: 8px; }
.ofm-topbar a.ofm-topbar-phone::before { content: ""; flex: none; width: 19px; height: 19px; background-color: #E97512; -webkit-mask: var(--ofm-icon) center / contain no-repeat; mask: var(--ofm-icon) center / contain no-repeat; }
.ofm-icon-line { display: flex; align-items: center; gap: 12px; }
.ofm-icon-line::before { content: ""; flex: none; width: 22px; height: 22px; background-color: #E97512; -webkit-mask: var(--ofm-icon) center / contain no-repeat; mask: var(--ofm-icon) center / contain no-repeat; }
.ofm-phone-big.ofm-icon-line::before { width: 28px; height: 28px; }
.ofm-ci-hours { --ofm-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill-rule='evenodd' d='M12 2a10 10 0 1 1 0 20 10 10 0 0 1 0-20zm0 2a8 8 0 1 0 0 16 8 8 0 0 0 0-16zm1 3v4.6l3.2 1.9-1 1.7L11 12.7V7h2z'/%3E%3C/svg%3E"); }


/* Tighter gap under the dark page header (1.0.35) */
.ofm-section.has-ink-background-color + .ofm-section { padding-top: clamp(28px, 3.5vw, 44px); padding-bottom: clamp(28px, 3.5vw, 44px); }
.ofm-section.has-ink-background-color + .ofm-section > :first-child,
.ofm-section.has-ink-background-color + .ofm-section > :first-child > :first-child,
.ofm-section.has-ink-background-color + .ofm-section .ofmfa > :first-child { margin-top: 0; }
.ofmfa .fa-head h2 { margin-top: 0; }
.ofm-section.has-ink-background-color + .ofm-section > style:first-child + * { margin-top: 0; }

/* Shorter dark page header on inner pages (1.0.35) */
body:not(.home) .entry-content > .ofm-section.has-ink-background-color:first-child { padding-top: clamp(32px, 4vw, 52px); padding-bottom: clamp(32px, 4vw, 52px); }
body:not(.home) .entry-content > .ofm-section.has-ink-background-color:first-child .ofm-crumbs { margin-bottom: 10px; }
body:not(.home) .entry-content > .ofm-section.has-ink-background-color:first-child .ofm-tag { margin-top: 0; }
body:not(.home) .entry-content > .ofm-section.has-ink-background-color:first-child h1 { margin-top: 6px; margin-bottom: 8px; }
body:not(.home) .entry-content > .ofm-section.has-ink-background-color:first-child .ofm-lead { margin-top: 0; margin-bottom: 0; }


/* Footer acknowledgement (1.0.36) */
.ofm-ack { display: grid; grid-template-columns: 1fr 1fr; gap: 20px 40px; margin: 36px auto 0 !important; width: 100%; max-width: 1200px; padding-top: 28px; border-top: 1px solid rgba(255,255,255,.14); }
.ofm-ack-item { display: flex; gap: 16px; align-items: flex-start; }
.ofm-ack-flags { display: flex; gap: 8px; flex: none; padding-top: 3px; width: 104px; }
.ofm-flag { width: 48px; height: 32px; display: block; border-radius: 2px; box-shadow: 0 0 0 1px rgba(255,255,255,.18); }
.ofm-ack p { margin: 0; font-size: 13.5px; line-height: 1.55; color: var(--wp--preset--color--mist); }
.ofm-ack strong { color: #fff; }
@media (max-width: 760px) { .ofm-ack { grid-template-columns: 1fr; } }

/* Centred footer acknowledgement */
.ofm-ack-item { flex-direction: column; align-items: center; text-align: center; gap: 12px; }
.ofm-ack-flags { width: auto; justify-content: center; padding-top: 0; }
.ofm-ack p { max-width: 520px; width: 100%; text-align: justify; text-align-last: center; hyphens: auto; -webkit-hyphens: auto; }
.ofm-ack { justify-items: center; }
.ofm-ack-item { width: 100%; justify-content: flex-start; }

/* Two plain sections in a row: don't double the space between them (1.0.41) */
.entry-content > .ofm-section:not(.has-background) + .ofm-section:not(.has-background) { padding-top: 0; }

/* Centred "Not sure which course" band (1.0.42) */
#enquire { text-align: center; }
#enquire > * { margin-left: auto !important; margin-right: auto !important; }
#enquire .ofm-lead { max-width: 640px; }

/* Logo watermark in the footer, bottom right (1.0.43) */
.ofm-footer { position: relative; overflow: hidden; isolation: isolate; }
.ofm-footer::after { content: ""; position: absolute; right: -60px; bottom: -70px; width: 390px; height: 356px; background: url("/wp-content/uploads/2026/12/ofm-mark-watermark.png") no-repeat center / contain; opacity: .07; pointer-events: none; z-index: -1; }
@media (max-width: 760px) { .ofm-footer::after { width: 235px; height: 215px; right: -45px; bottom: -45px; } }

/* Footer logo beside the company name, like the header (1.0.47) */
.ofm-footer-brand { display: flex; align-items: center; gap: 14px; margin-bottom: 14px; }
.ofm-footer-brand .ofm-logo-tile { margin: 0 !important; flex: none; }
.ofm-footer-brand .ofm-footer-name { margin: 0 !important; line-height: 1.05; font-size: 24px; font-weight: 800; color: #fff; }
.ofm-footer-brand .ofm-footer-name span { font-weight: 400; font-size: .86em; }
.ofm-footer-brand .ofm-footer-wordmark { margin: 0 !important; flex: none; }
.ofm-footer-brand .ofm-footer-wordmark img { height: 38px; width: auto; display: block; }

/* Justified paragraphs on the home page (1.0.49) */
.home .entry-content p:not(.ofm-tag):not(.has-text-align-center), .home .entry-content li { text-align: justify; hyphens: auto; -webkit-hyphens: auto; }
.home #enquire p { text-align: justify; text-align-last: center; }

/* Menu links and Student Login on one line (1.0.50) */
@media (min-width: 960px) {
  .ofm-nav .wp-block-navigation__container { flex-wrap: nowrap; align-items: center; }
  .ofm-nav { flex-wrap: nowrap; }
}

/* Australian owned (1.0.51) */
.ofm-aus { grid-column: 1 / -1; display: flex; flex-direction: column; align-items: center; gap: 10px; margin-bottom: 6px; }
.ofm-flag-au { width: 84px; height: 42px; display: block; box-shadow: 0 0 0 1px rgba(255,255,255,.18); border-radius: 2px; }
.ofm-aus p { margin: 0 !important; color: #fff; font-weight: 700; font-size: 15px; letter-spacing: .02em; text-align: center !important; }
.ofm-footer .wp-block-column > .ofm-aus { align-items: center; width: fit-content; grid-column: auto; margin: 0 0 14px !important; gap: 8px; }
.ofm-footer .wp-block-column > .ofm-aus .ofm-flag-au { width: 48px; height: 24px; }
.ofm-footer .wp-block-column > .ofm-aus p { text-align: center !important; font-size: 13.5px; }
.ofm-footer .wp-block-column > .ofm-aus { width: 244px; }
.ofm-footer .wp-block-column > .ofm-aus p { width: 100%; font-size: 15px; line-height: 1.35; letter-spacing: .14em; font-weight: 400; }
.ofm-footer .wp-block-column > .ofm-aus p span { display: block; text-align: justify !important; text-align-last: justify; }
.ofm-footer .wp-block-column > .ofm-aus p { font-size: 13.5px !important; line-height: 1.55 !important; letter-spacing: normal !important; font-weight: 700 !important; font-family: inherit; color: #fff !important; text-align: center !important; }
.ofm-footer .wp-block-column > .ofm-aus p span { display: inline; text-align: inherit !important; text-align-last: auto; }
.ofm-footer .wp-block-column > .ofm-aus { margin-top: 32px !important; }
body:not(.home) .entry-content > .ofm-section.has-ink-background-color:first-child .ofm-lead { max-width: 1200px !important; width: 100%; text-align: justify; }

/* NRT logo in the course facts bar (1.0.64) */
.ofm-fact-nrt { display: flex; align-items: center; justify-content: flex-end; border: 0 !important; grid-column-end: -1; }
.ofm-fact-nrt figure { margin: 0 !important; }
.ofm-fact-nrt img { height: 90px; width: auto; display: block; }

/* NRT logo in a page header, right side (1.0.67) */
.ofm-section:has(.ofm-hero-nrt) { position: relative; }
.ofm-hero-nrt { position: absolute; top: 50%; transform: translateY(-50%); right: max(var(--wp--style--root--padding-right, 32px), calc((100% - 1200px) / 2)); margin: 0 !important; background: #fff; border-radius: 10px; padding: 10px 14px; line-height: 0; }
.ofm-hero-nrt img { height: 96px; width: auto; display: block; }
.ofm-section:has(.ofm-hero-nrt) .ofm-lead { padding-right: 190px; }
@media (max-width: 760px) { .ofm-hero-nrt { position: static; transform: none; display: inline-block; margin-top: 16px !important; } .ofm-hero-nrt img { height: 72px; } .ofm-section:has(.ofm-hero-nrt) .ofm-lead { padding-right: 0; } }

/* Course fees table (Diploma page) */
.ofm-fees table { border-collapse: collapse; width: 100%; font-size: 0.95rem; }
.ofm-fees th, .ofm-fees td { border: 0 !important; border-bottom: 1px solid #E2DFD8 !important; padding: 12px 10px !important; text-align: left; vertical-align: top; }
.ofm-fees thead th { border-bottom: 2px solid #15181D !important; font-weight: 700; }
.ofm-fees th:nth-child(2), .ofm-fees td:nth-child(2), .ofm-fees th:nth-child(3), .ofm-fees td:nth-child(3) { white-space: nowrap; }
.ofm-fees td:nth-child(2) { font-weight: 700; color: #D81E05; }

/* Coloured course boxes: text aligned left, no hyphenated or broken words */
.ofm-card p, .ofm-card li, .ofm-card h3,
.home .entry-content .ofm-card p:not(.ofm-tag), .home .entry-content .ofm-card li {
	text-align: left; -webkit-hyphens: manual; hyphens: manual; word-break: normal; overflow-wrap: normal;
}
