:root {
    --ogm-primary: #0b6b78;
    --ogm-primary-dark: #07505a;
    --ogm-primary-soft: #e8f5f6;
    --ogm-accent: #e6536b;
    --ogm-ink: #15323b;
    --ogm-muted: #667c84;
    --ogm-border: #dce8ea;
    --ogm-surface: #ffffff;
    --ogm-bg: #f4f8f9;
    --ogm-shadow-sm: 0 8px 24px rgba(15, 63, 72, .08);
    --ogm-shadow-lg: 0 24px 64px rgba(15, 63, 72, .14);
    --ogm-radius-sm: 10px;
    --ogm-radius: 18px;
    --ogm-radius-lg: 30px;
    --ogm-container: 1240px;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body.ogm-site {
    margin: 0;
    min-width: 320px;
    overflow-x: hidden;
    color: var(--ogm-ink);
    background: var(--ogm-bg);
    font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
    font-size: 16px;
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

body.ogm-menu-open {
    overflow: hidden;
}

.ogm-site img {
    max-width: 100%;
    height: auto;
}

.ogm-site a {
    color: var(--ogm-primary);
    text-decoration: none;
    transition: color .2s ease, background-color .2s ease, border-color .2s ease, transform .2s ease, box-shadow .2s ease;
}

.ogm-site a:hover,
.ogm-site a:focus {
    color: var(--ogm-primary-dark);
    text-decoration: none;
}

.ogm-site button,
.ogm-site input,
.ogm-site select,
.ogm-site textarea {
    font: inherit;
}

.ogm-site button:focus-visible,
.ogm-site a:focus-visible,
.ogm-site input:focus-visible,
.ogm-site select:focus-visible,
.ogm-site textarea:focus-visible {
    outline: 3px solid rgba(230, 83, 107, .34);
    outline-offset: 2px;
}

.ogm-container {
    width: min(calc(100% - 40px), var(--ogm-container));
    margin-right: auto;
    margin-left: auto;
}

.ogm-skip-link {
    position: fixed;
    top: 12px;
    left: 12px;
    z-index: 10000;
    padding: 10px 16px;
    color: #fff !important;
    background: var(--ogm-primary-dark);
    border-radius: 8px;
    transform: translateY(-150%);
}

.ogm-skip-link:focus {
    transform: translateY(0);
}

/* Prevent the Google Translate selection bubble from covering the site logo. */
.ogm-site #gtx-trans {
    display: none !important;
}

.ogm-topbar {
    color: #d8eef0;
    background: #083e47;
    font-size: 13px;
}

.ogm-topbar-inner {
    display: flex;
    min-height: 38px;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.ogm-topbar-modules,
.ogm-language {
    display: flex;
    align-items: center;
    gap: 12px;
}

.ogm-topbar p,
.ogm-topbar ul {
    margin: 0;
}

.ogm-topbar a {
    color: #fff;
}

.ogm-language img {
    display: block;
    width: 22px;
    height: 15px;
    object-fit: cover;
    border-radius: 2px;
    opacity: .82;
}

.ogm-language a:hover img,
.ogm-language a:focus img {
    opacity: 1;
    transform: translateY(-1px);
}

.ogm-header {
    position: relative;
    z-index: 100;
    background: rgba(255, 255, 255, .97);
    border-bottom: 1px solid rgba(11, 107, 120, .1);
    backdrop-filter: blur(14px);
}

.ogm-sticky-nav .ogm-header {
    position: sticky;
    top: 0;
}

.ogm-header-inner {
    display: flex;
    min-height: 84px;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
}

.ogm-brand {
    display: inline-flex;
    flex: 0 1 auto;
    align-items: center;
    gap: 12px;
    min-width: 0;
    color: var(--ogm-ink) !important;
}

.ogm-brand:hover {
    transform: translateY(-1px);
}

.ogm-brand-image {
    display: block;
    width: auto;
    max-width: 250px;
    max-height: 58px;
}

.ogm-brand-mark {
    position: relative;
    display: grid;
    width: 48px;
    height: 48px;
    flex: 0 0 48px;
    place-items: center;
    color: #fff;
    background: linear-gradient(145deg, var(--ogm-primary), #0b8594);
    border-radius: 15px;
    box-shadow: 0 10px 24px rgba(11, 107, 120, .24);
}

.ogm-brand-mark::before,
.ogm-brand-mark::after {
    position: absolute;
    content: "";
    background: #fff;
    border-radius: 3px;
}

.ogm-brand-mark::before {
    width: 24px;
    height: 7px;
}

.ogm-brand-mark::after {
    width: 7px;
    height: 24px;
}

.ogm-brand-mark span {
    position: absolute;
    right: 7px;
    bottom: 7px;
    width: 10px;
    height: 10px;
    background: var(--ogm-accent);
    border: 2px solid #fff;
    border-radius: 50%;
}

.ogm-brand-copy {
    display: flex;
    min-width: 0;
    flex-direction: column;
    line-height: 1.15;
}

.ogm-brand-copy strong {
    overflow: hidden;
    color: var(--ogm-primary-dark);
    font-size: clamp(20px, 2vw, 27px);
    font-weight: 800;
    letter-spacing: -.035em;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.ogm-brand-copy small {
    margin-top: 5px;
    overflow: hidden;
    color: var(--ogm-muted);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: .025em;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.ogm-navigation {
    min-width: 0;
}

.ogm-navigation ul,
.ogm-navigation .nav,
.ogm-navigation .menu {
    display: flex;
    margin: 0;
    padding: 0;
    align-items: center;
    gap: 4px;
    list-style: none;
}

.ogm-navigation li {
    position: relative;
}

.ogm-navigation > div > ul > li > a,
.ogm-navigation > ul > li > a,
.ogm-navigation .nav > li > a {
    display: flex;
    min-height: 44px;
    padding: 10px 15px;
    align-items: center;
    color: #294950;
    border-radius: 11px;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: .01em;
}

.ogm-navigation > div > ul > li.active > a,
.ogm-navigation > ul > li.active > a,
.ogm-navigation .nav > li.active > a,
.ogm-navigation > div > ul > li > a:hover,
.ogm-navigation > ul > li > a:hover,
.ogm-navigation .nav > li > a:hover {
    color: var(--ogm-primary-dark);
    background: var(--ogm-primary-soft);
}

.ogm-navigation ul ul,
.ogm-navigation .nav-child {
    position: absolute;
    top: calc(100% + 10px);
    left: 0;
    display: none;
    width: 250px;
    padding: 10px;
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    background: #fff;
    border: 1px solid var(--ogm-border);
    border-radius: 14px;
    box-shadow: var(--ogm-shadow-lg);
}

.ogm-navigation li:hover > ul,
.ogm-navigation li:focus-within > ul {
    display: flex;
}

.ogm-navigation ul ul a {
    display: block;
    padding: 9px 11px;
    color: var(--ogm-ink);
    border-radius: 8px;
    font-size: 14px;
}

.ogm-navigation ul ul a:hover {
    background: var(--ogm-primary-soft);
}

.ogm-nav-toggle {
    display: none;
    padding: 9px 12px;
    align-items: center;
    gap: 9px;
    color: var(--ogm-primary-dark);
    background: var(--ogm-primary-soft);
    border: 0;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 800;
    cursor: pointer;
}

.ogm-nav-toggle-lines {
    display: grid;
    width: 20px;
    gap: 4px;
}

.ogm-nav-toggle-lines span {
    display: block;
    width: 100%;
    height: 2px;
    background: currentColor;
    border-radius: 2px;
}

.ogm-hero {
    position: relative;
    overflow: hidden;
    background:
        radial-gradient(circle at 15% 20%, rgba(255, 255, 255, .92) 0 3%, transparent 32%),
        linear-gradient(125deg, #e9f7f7 0%, #f7fbfb 55%, #fff0f3 100%);
    border-bottom: 1px solid rgba(11, 107, 120, .1);
}

.ogm-hero::before {
    position: absolute;
    top: -170px;
    left: 50%;
    width: 600px;
    height: 600px;
    content: "";
    background: rgba(255, 255, 255, .48);
    border-radius: 50%;
    transform: translateX(-10%);
}

.ogm-hero-grid {
    position: relative;
    display: grid;
    min-height: 470px;
    grid-template-columns: minmax(0, 1.45fr) minmax(320px, .75fr);
    align-items: center;
    gap: 62px;
    padding-top: 62px;
    padding-bottom: 54px;
}

.ogm-hero-compact .ogm-hero-grid {
    min-height: 0;
    grid-template-columns: 1fr;
    padding-top: 26px;
    padding-bottom: 26px;
}

.ogm-hero-content {
    position: relative;
    z-index: 2;
    min-width: 0;
}

.ogm-eyebrow {
    display: inline-flex;
    margin-bottom: 12px;
    align-items: center;
    gap: 8px;
    color: var(--ogm-accent);
    font-size: 12px;
    font-weight: 900;
    letter-spacing: .13em;
    text-transform: uppercase;
}

.ogm-eyebrow::before {
    width: 22px;
    height: 3px;
    content: "";
    background: currentColor;
    border-radius: 3px;
}

.ogm-hero h1 {
    max-width: 760px;
    margin: 0;
    color: #103d46;
    font-size: clamp(35px, 4.4vw, 62px);
    font-weight: 850;
    letter-spacing: -.052em;
    line-height: 1.04;
}

.ogm-hero-content > p {
    max-width: 720px;
    margin: 20px 0 0;
    color: var(--ogm-muted);
    font-size: clamp(16px, 1.7vw, 19px);
    line-height: 1.7;
}

.ogm-search-card {
    position: relative;
    z-index: 3;
    width: 100%;
    margin-top: 30px;
    padding: 18px;
    background: rgba(255, 255, 255, .96);
    border: 1px solid rgba(255, 255, 255, .9);
    border-radius: var(--ogm-radius);
    box-shadow: var(--ogm-shadow-lg);
}

.ogm-search-card:empty {
    display: none;
}

.ogm-search-card .keywordSearch,
.ogm-search-card .search-wrapper,
.ogm-search-card .search-form,
.ogm-search-card .jbd-search-form {
    display: grid !important;
    width: 100%;
    grid-template-columns: minmax(180px, 1.4fr) minmax(160px, 1fr) minmax(160px, 1fr) auto;
    align-items: center;
    gap: 10px;
}

.ogm-search-card form form {
    display: contents !important;
}

/* J-BusinessDirectory search module
   Its native flex layout lets long select options define the page width.
   Keep every grid track shrinkable so the form remains inside the hero. */
.ogm-search-card,
.ogm-search-card > *,
.ogm-search-card #keywordSearch,
.ogm-search-card #keywordSearch .form-container,
.ogm-search-card #keywordSearch .fields-container,
.ogm-search-card #keywordSearch .form-field,
.ogm-search-card #keywordSearch .has-jicon-left {
    min-width: 0 !important;
    max-width: 100% !important;
}

.ogm-search-card #keywordSearch {
    display: block !important;
    width: 100% !important;
}

.ogm-search-card #keywordSearch .form-container {
    display: grid !important;
    width: 100% !important;
    grid-template-columns: minmax(0, 1fr) auto !important;
    align-items: stretch !important;
    gap: 10px !important;
}

.ogm-search-card #keywordSearch .fields-container {
    display: grid !important;
    width: 100% !important;
    grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr) minmax(0, 1fr) !important;
    align-items: stretch !important;
    gap: 10px !important;
}

.ogm-search-card #keywordSearch .form-field,
.ogm-search-card #keywordSearch .has-jicon-left,
.ogm-search-card #keywordSearch input,
.ogm-search-card #keywordSearch select,
.ogm-search-card #keywordSearch .chosen-container {
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;
    margin: 0 !important;
    flex: none !important;
}

.ogm-search-card #keywordSearch .search-dir-button {
    width: auto !important;
    min-width: 142px !important;
    margin: 0 !important;
}

.ogm-search-card .form-group,
.ogm-search-card .search-field,
.ogm-search-card .search-item,
.ogm-search-card p {
    min-width: 0;
    margin: 0;
}

.ogm-search-card input[type="text"],
.ogm-search-card input[type="search"],
.ogm-search-card select,
.ogm-search-card .chosen-container-single .chosen-single {
    width: 100% !important;
    height: 52px !important;
    margin: 0;
    padding: 0 15px;
    color: var(--ogm-ink);
    background: #f7fafb;
    border: 1px solid #d9e5e7;
    border-radius: 11px;
    box-shadow: none;
    line-height: 50px !important;
}

.ogm-search-card input::placeholder {
    color: #819399;
}

.ogm-search-card input:focus,
.ogm-search-card select:focus,
.ogm-search-card .chosen-container-active .chosen-single {
    background: #fff;
    border-color: var(--ogm-primary);
    box-shadow: 0 0 0 4px rgba(11, 107, 120, .1);
    outline: none;
}

.ogm-search-card .chosen-container {
    width: 100% !important;
}

.ogm-search-card .chosen-container-single .chosen-single div b {
    background-position-y: 16px;
}

.ogm-search-card button,
.ogm-search-card input[type="submit"],
.ogm-search-card .btn-search,
.ogm-search-card .search-button,
.ogm-button {
    display: inline-flex;
    min-height: 52px;
    padding: 12px 24px;
    align-items: center;
    justify-content: center;
    gap: 8px;
    color: #fff !important;
    background: var(--ogm-accent) !important;
    border: 1px solid var(--ogm-accent) !important;
    border-radius: 11px !important;
    box-shadow: 0 10px 20px rgba(230, 83, 107, .22);
    font-weight: 800;
    white-space: nowrap;
    cursor: pointer;
}

.ogm-search-card button:hover,
.ogm-search-card input[type="submit"]:hover,
.ogm-search-card .btn-search:hover,
.ogm-search-card .search-button:hover,
.ogm-button:hover {
    color: #fff !important;
    background: #d6415a !important;
    border-color: #d6415a !important;
    box-shadow: 0 13px 24px rgba(230, 83, 107, .28);
    transform: translateY(-1px);
}

.ogm-announcement {
    margin-top: 18px;
    padding: 9px 13px;
    color: #325961;
    background: rgba(255, 255, 255, .62);
    border: 1px solid rgba(11, 107, 120, .1);
    border-radius: 10px;
    font-size: 14px;
}

.ogm-announcement p {
    margin: 0;
}

.ogm-hero-visual {
    position: relative;
    align-self: end;
    min-height: 390px;
}

.ogm-hero-visual::before {
    position: absolute;
    right: 18px;
    bottom: 0;
    width: 315px;
    height: 315px;
    content: "";
    background: linear-gradient(145deg, #c9eced, #9dd9dd);
    border: 14px solid rgba(255, 255, 255, .62);
    border-radius: 50%;
    box-shadow: 0 25px 60px rgba(11, 107, 120, .18);
}

.ogm-hero-visual > img {
    position: absolute;
    z-index: 2;
    right: 39px;
    bottom: 0;
    width: 276px;
    filter: drop-shadow(0 20px 24px rgba(18, 72, 81, .2));
}

.ogm-hero-orbit {
    position: absolute;
    border: 1px solid rgba(11, 107, 120, .2);
    border-radius: 50%;
}

.ogm-orbit-one {
    right: -10px;
    bottom: -18px;
    width: 370px;
    height: 370px;
}

.ogm-orbit-two {
    right: 74px;
    bottom: 62px;
    width: 200px;
    height: 200px;
}

.ogm-trust-card {
    position: absolute;
    z-index: 4;
    display: flex;
    padding: 12px 15px;
    flex-direction: column;
    background: rgba(255, 255, 255, .94);
    border: 1px solid rgba(255, 255, 255, .94);
    border-radius: 13px;
    box-shadow: var(--ogm-shadow-sm);
    backdrop-filter: blur(8px);
}

.ogm-trust-card strong {
    color: var(--ogm-primary-dark);
    font-size: 13px;
}

.ogm-trust-card span {
    color: var(--ogm-muted);
    font-size: 11px;
}

.ogm-trust-card-one {
    top: 58px;
    left: -10px;
}

.ogm-trust-card-two {
    right: -4px;
    bottom: 70px;
}

.ogm-banner {
    padding-top: 18px;
}

.ogm-banner img {
    display: block;
    margin: 0 auto;
    border-radius: 12px;
}

.ogm-main {
    padding: 58px 0 70px;
}

.ogm-main-content {
    min-width: 0;
}

.ogm-main-content-home:empty {
    display: none;
}

.ogm-content-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    align-items: start;
    gap: 26px;
}

.ogm-content-layout.has-left {
    grid-template-columns: minmax(220px, 280px) minmax(0, 1fr);
}

.ogm-content-layout.has-right {
    grid-template-columns: minmax(0, 1fr) minmax(220px, 280px);
}

.ogm-content-layout.has-left.has-right {
    grid-template-columns: minmax(200px, 250px) minmax(0, 1fr) minmax(200px, 250px);
}

.ogm-sidebar {
    position: sticky;
    top: 112px;
}

.ogm-module-card {
    min-width: 0;
    margin-bottom: 22px;
    padding: 22px;
    background: var(--ogm-surface);
    border: 1px solid var(--ogm-border);
    border-radius: var(--ogm-radius);
    box-shadow: var(--ogm-shadow-sm);
}

.ogm-module-card:last-child {
    margin-bottom: 0;
}

.ogm-module-title {
    margin: 0 0 18px;
    color: var(--ogm-primary-dark);
    font-size: 19px;
    font-weight: 800;
    letter-spacing: -.02em;
}

.ogm-module-content > :last-child {
    margin-bottom: 0;
}

.ogm-section-heading {
    max-width: 720px;
    margin: 0 auto 30px;
    text-align: center;
}

.ogm-section-heading .ogm-eyebrow {
    justify-content: center;
}

.ogm-section-heading h2 {
    margin: 0;
    color: #123e47;
    font-size: clamp(28px, 3vw, 40px);
    font-weight: 850;
    letter-spacing: -.04em;
}

.ogm-section-heading p {
    margin: 12px auto 0;
    color: var(--ogm-muted);
}

.ogm-home-promotions,
.ogm-home-categories {
    margin-top: 34px;
    padding-top: 24px;
}

.ogm-popular-categories {
    padding: 12px 0 28px;
}

.ogm-popular-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 14px;
}

.ogm-site .ogm-popular-card {
    display: flex;
    min-width: 0;
    min-height: 92px;
    padding: 16px;
    align-items: center;
    gap: 12px;
    color: var(--ogm-ink);
    text-align: left;
    background: #fff;
    border: 1px solid var(--ogm-border);
    border-radius: 14px;
    box-shadow: var(--ogm-shadow-sm);
    font-size: 14px;
    font-weight: 800;
    line-height: 1.3;
    cursor: pointer;
    transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}

.ogm-site .ogm-popular-card:hover,
.ogm-site .ogm-popular-card:focus-visible {
    color: var(--ogm-primary-dark);
    background: #fff;
    border-color: rgba(11, 107, 120, .36);
    box-shadow: 0 14px 30px rgba(19, 67, 76, .12);
    transform: translateY(-2px);
}

.ogm-popular-icon {
    display: grid;
    width: 44px;
    height: 44px;
    flex: 0 0 44px;
    place-items: center;
    color: #fff;
    background: linear-gradient(145deg, var(--ogm-primary), #0b8796);
    border-radius: 13px;
    box-shadow: 0 8px 18px rgba(11, 107, 120, .2);
    font-size: 12px;
    font-weight: 900;
    letter-spacing: -.02em;
}

.ogm-category-modules {
    min-width: 0;
}

.ogm-category-modules > ul,
.ogm-category-modules .categories-list,
.ogm-category-modules .jbd-categories {
    display: grid;
    margin: 0;
    padding: 0;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
    list-style: none;
}

.ogm-category-modules > ul > li,
.ogm-category-modules .categories-list > *,
.ogm-category-modules .jbd-categories > * {
    min-width: 0;
    padding: 18px;
    background: #fff;
    border: 1px solid var(--ogm-border);
    border-radius: 14px;
    box-shadow: var(--ogm-shadow-sm);
}

.ogm-promotion-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: start;
    gap: 24px;
}

.ogm-promotion-grid:has(.ogm-promotion-column:only-child) {
    grid-template-columns: minmax(0, 1fr);
}

.ogm-four-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 20px;
}

.ogm-four-grid > .ogm-module-card {
    margin: 0;
}

.ogm-legacy-grid,
.ogm-featured-grid,
.ogm-prefooter {
    padding: 34px 0;
}

.ogm-below-menu {
    padding: 18px 0;
    background: #fff;
    border-bottom: 1px solid var(--ogm-border);
}

.ogm-featured-grid {
    margin-top: 50px;
    border-top: 1px solid var(--ogm-border);
}

.ogm-module-section {
    margin-bottom: 28px;
}

.ogm-prefooter {
    background: #e9f3f4;
    border-top: 1px solid var(--ogm-border);
}

.ogm-footer {
    color: #cce0e3;
    background: #0a3f48;
}

.ogm-footer a {
    color: #fff;
}

.ogm-footer-grid {
    display: grid;
    padding-top: 48px;
    padding-bottom: 36px;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 32px;
}

.ogm-footer h1,
.ogm-footer h2,
.ogm-footer h3,
.ogm-footer h4 {
    color: #fff;
    font-size: 18px;
}

.ogm-footer ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

.ogm-footer li + li {
    margin-top: 8px;
}

.ogm-footer-bottom {
    display: grid;
    min-height: 88px;
    padding-top: 18px;
    padding-bottom: 18px;
    grid-template-columns: 1fr auto auto;
    align-items: center;
    gap: 28px;
    border-top: 1px solid rgba(255, 255, 255, .12);
}

.ogm-footer-bottom > div:first-child {
    display: flex;
    flex-direction: column;
}

.ogm-footer-bottom strong {
    color: #fff;
    font-size: 17px;
}

.ogm-footer-bottom span,
.ogm-footer-bottom small {
    color: #a9c7cb;
    font-size: 12px;
}

.ogm-socials {
    display: flex;
    gap: 8px;
}

.ogm-socials a {
    display: grid;
    width: 34px;
    height: 34px;
    place-items: center;
    color: #fff;
    background: rgba(255, 255, 255, .11);
    border: 1px solid rgba(255, 255, 255, .14);
    border-radius: 9px;
    font-size: 14px;
    font-weight: 800;
}

.ogm-socials a:hover {
    color: #fff;
    background: var(--ogm-accent);
    border-color: var(--ogm-accent);
}

.ogm-footer-below {
    padding: 20px 0;
    background: #07343c;
}

.ogm-back-to-top {
    position: fixed;
    right: 22px;
    bottom: 22px;
    z-index: 90;
    display: grid;
    width: 44px;
    height: 44px;
    padding: 0;
    place-items: center;
    color: #fff;
    background: var(--ogm-primary);
    border: 0;
    border-radius: 13px;
    box-shadow: var(--ogm-shadow-sm);
    opacity: 0;
    pointer-events: none;
    transform: translateY(12px);
    transition: opacity .2s ease, transform .2s ease, background-color .2s ease;
    cursor: pointer;
}

.ogm-back-to-top.is-visible {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}

.ogm-back-to-top:hover {
    background: var(--ogm-primary-dark);
}

/* Joomla messages and standard content */
.ogm-site #system-message-container {
    margin-bottom: 22px;
}

.ogm-site #system-message-container:empty {
    display: none;
}

.ogm-site .alert,
.ogm-site #system-message > div {
    padding: 14px 18px;
    border: 0;
    border-radius: 12px;
}

.ogm-site .page-header h1,
.ogm-site .page-header h2,
.ogm-site .componentheading,
.ogm-site .contentheading {
    color: #123e47;
    font-weight: 850;
    letter-spacing: -.035em;
}

.ogm-site ul.pagination,
.ogm-site .pagination-list {
    display: flex;
    margin: 28px 0 0;
    padding: 0;
    align-items: center;
    flex-wrap: wrap;
    justify-content: center;
    gap: 6px;
    list-style: none;
}

.ogm-site .pagination li {
    margin: 0;
    padding: 0;
    list-style: none;
}

.ogm-site .pagination li::marker {
    content: "";
}

.ogm-site .pagination li > a,
.ogm-site .pagination li > span {
    display: grid;
    min-width: 38px;
    height: 38px;
    padding: 0 10px;
    place-items: center;
    background: #fff;
    border: 1px solid var(--ogm-border);
    border-radius: 9px;
}

.ogm-site .pagination li > a:hover,
.ogm-site .pagination li > a:focus-visible {
    color: var(--ogm-primary-dark);
    border-color: rgba(11, 107, 120, .38);
    box-shadow: 0 5px 14px rgba(19, 67, 76, .1);
}

.ogm-site .pagination .active > a,
.ogm-site .pagination .active > span {
    color: #fff;
    background: var(--ogm-primary);
    border-color: var(--ogm-primary);
}

.ogm-site .pagination .disabled > span {
    color: #8ca1a6;
    background: #f4f8f8;
    cursor: not-allowed;
}

/* Joomla 3 / J-BusinessDirectory pagination toolbar */
.ogm-view-search .pagination:not(ul) {
    width: 100%;
}

.ogm-view-search .pagination > .pagination-toolbar,
.ogm-view-search .pagination.pagination-toolbar {
    display: flex;
    width: 100%;
    height: auto;
    min-height: 0;
    margin: 28px 0 0;
    padding: 0;
    align-items: center;
    flex-wrap: wrap;
    justify-content: center;
    gap: 14px;
}

.ogm-view-search .pagination > .pagination-toolbar {
    margin-top: 0;
}

.ogm-view-search .pagination-toolbar .limit {
    display: flex;
    margin: 0;
    align-items: center;
    float: none !important;
    gap: 8px;
    white-space: nowrap;
}

.ogm-view-search .pagination-toolbar .limit select {
    width: auto;
    min-width: 72px;
    height: 42px;
    margin: 0;
    padding: 0 30px 0 12px;
    color: var(--ogm-ink);
    background-color: #fff;
    border: 1px solid var(--ogm-border);
    border-radius: 9px;
}

.ogm-view-search .pagination-toolbar .pagination-list {
    width: auto;
    height: auto;
    min-height: 0;
    margin: 0;
}

.ogm-view-search .pagination-list li > a,
.ogm-view-search .pagination-list li > span {
    min-width: 42px;
    height: 42px;
}

.ogm-view-search .pagination-list li > a > span,
.ogm-view-search .pagination-list li > span > span {
    display: inline;
    width: auto;
    min-width: 0;
    height: auto;
    padding: 0;
    color: inherit;
    background: transparent;
    border: 0;
    border-radius: 0;
    font-family: inherit !important;
    line-height: 1;
}

.ogm-view-search .pagination-list .icon-first::before {
    content: "\00ab";
}

.ogm-view-search .pagination-list .icon-previous::before {
    content: "\2039";
}

.ogm-view-search .pagination-list .icon-next::before {
    content: "\203a";
}

.ogm-view-search .pagination-list .icon-last::before {
    content: "\00bb";
}

/* J-BusinessDirectory search and listing compatibility */
.ogm-site .jbd-container,
.ogm-site #jbd-container,
.ogm-site .jbusinessdirectory {
    color: var(--ogm-ink);
}

.ogm-site .jbd-container .row,
.ogm-site #jbd-container .row {
    margin-right: -10px;
    margin-left: -10px;
}

.ogm-site .jbd-container [class*="col-"],
.ogm-site #jbd-container [class*="col-"] {
    padding-right: 10px;
    padding-left: 10px;
}

.ogm-site .company-listing,
.ogm-site .company-box,
.ogm-site .listing-item,
.ogm-site .business-listing,
.ogm-site .jbd-listing,
.ogm-site .search-result-item,
.ogm-site .item-box {
    overflow: hidden;
    margin-bottom: 18px;
    background: #fff;
    border: 1px solid var(--ogm-border) !important;
    border-radius: 15px !important;
    box-shadow: 0 7px 22px rgba(19, 67, 76, .07);
    transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}

.ogm-site .company-listing:hover,
.ogm-site .company-box:hover,
.ogm-site .listing-item:hover,
.ogm-site .business-listing:hover,
.ogm-site .jbd-listing:hover,
.ogm-site .search-result-item:hover,
.ogm-site .item-box:hover {
    border-color: rgba(11, 107, 120, .34) !important;
    box-shadow: 0 14px 32px rgba(19, 67, 76, .12);
    transform: translateY(-2px);
}

.ogm-site .company-listing img,
.ogm-site .company-box img,
.ogm-site .listing-item img,
.ogm-site .business-listing img,
.ogm-site .jbd-listing img,
.ogm-site .search-result-item img {
    object-fit: contain;
}

.ogm-site .company-listing h3,
.ogm-site .company-box h3,
.ogm-site .listing-item h3,
.ogm-site .business-listing h3,
.ogm-site .jbd-listing h3,
.ogm-site .search-result-item h3,
.ogm-site [id^="slider-"] h3 {
    color: #173f47;
    font-size: 17px;
    font-weight: 800;
    line-height: 1.35;
}

.ogm-site .company-listing h3 a,
.ogm-site .company-box h3 a,
.ogm-site .listing-item h3 a,
.ogm-site .business-listing h3 a,
.ogm-site .jbd-listing h3 a,
.ogm-site [id^="slider-"] h3 a {
    color: inherit;
}

.ogm-site .btn,
.ogm-site .jbd-button,
.ogm-site a.button,
.ogm-site button.button {
    border-radius: 9px;
}

.ogm-site .btn-primary,
.ogm-site .jbd-button,
.ogm-site a.button,
.ogm-site button.button {
    color: #fff;
    background-color: var(--ogm-primary);
    border-color: var(--ogm-primary);
}

.ogm-site .btn-primary:hover,
.ogm-site .jbd-button:hover,
.ogm-site a.button:hover,
.ogm-site button.button:hover {
    color: #fff;
    background-color: var(--ogm-primary-dark);
    border-color: var(--ogm-primary-dark);
}

.ogm-site .categories-container,
.ogm-site .category-list,
.ogm-site .jbd-categories {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
}

.ogm-site .categories-container > *,
.ogm-site .category-list > *,
.ogm-site .jbd-categories > * {
    min-width: 0;
    padding: 16px;
    background: #fff;
    border: 1px solid var(--ogm-border);
    border-radius: 12px;
}

/* Directory and search results: keep the catalogue neutral and easy to scan. */
.ogm-com_jbusinessdirectory .ogm-sidebar {
    display: none !important;
}

.ogm-com_jbusinessdirectory .ogm-content-layout,
.ogm-com_jbusinessdirectory .ogm-content-layout.has-left,
.ogm-com_jbusinessdirectory .ogm-content-layout.has-right,
.ogm-com_jbusinessdirectory .ogm-content-layout.has-left.has-right {
    display: block;
    grid-template-columns: minmax(0, 1fr) !important;
}

.ogm-com_jbusinessdirectory .ogm-main-content,
.ogm-com_jbusinessdirectory #jbd-container,
.ogm-com_jbusinessdirectory #search-results {
    width: 100%;
    min-width: 0;
    max-width: none;
}

.ogm-com_jbusinessdirectory #jbd-container > .row,
.ogm-com_jbusinessdirectory #jbd-container > .row > [class*="col-"] {
    width: 100%;
    max-width: none;
    margin: 0;
    padding: 0;
    flex: 0 0 100%;
}

.ogm-view-search .ogm-main {
    padding-top: 38px;
}

.ogm-view-search .search-header {
    margin: 0 0 18px;
    padding: 18px 20px;
    background: #fff;
    border: 1px solid var(--ogm-border);
    border-radius: 15px;
    box-shadow: var(--ogm-shadow-sm);
}

.ogm-view-search .search-header > .row,
.ogm-view-search .search-header > .row > [class*="col-"] {
    width: 100%;
    max-width: none;
    margin: 0;
    padding: 0;
    flex: 0 0 100%;
}

.ogm-view-search .jbd-search-statistics {
    display: flex;
    min-height: 44px;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
}

.ogm-view-search .result-counter {
    color: var(--ogm-ink);
    font-size: 16px;
    font-weight: 800;
}

.ogm-view-search .search-options {
    display: flex;
    width: auto;
    align-items: center;
}

.ogm-view-search .jbd-select-box {
    width: min(100%, 220px);
}

.ogm-view-search .jbd-select-box select {
    width: 100%;
    min-height: 42px;
    padding: 8px 12px 8px 34px;
    color: var(--ogm-ink);
    background: #f7fafb;
    border: 1px solid var(--ogm-border);
    border-radius: 10px;
}

.ogm-view-search .view-mode,
.ogm-view-search .map-view,
.ogm-view-search #filter-button,
.ogm-view-search #search-details {
    display: none !important;
}

.ogm-view-search #search-path {
    height: auto !important;
    min-height: 0;
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid var(--ogm-border);
}

.ogm-view-search .category-breadcrumbs {
    height: auto;
    margin: 0;
    padding: 0;
    color: var(--ogm-muted);
    list-style: none;
}

.ogm-view-search #adminForm {
    display: grid;
    gap: 14px;
}

.ogm-view-search #adminForm > .result-item {
    width: 100%;
    min-width: 0;
    margin: 0 !important;
    padding: 18px;
    overflow: hidden;
    background: #fff;
    border: 1px solid var(--ogm-border) !important;
    border-radius: 15px !important;
    box-shadow: 0 7px 22px rgba(19, 67, 76, .07);
}

.ogm-view-search .result-item > div > div > .row {
    display: grid !important;
    width: 100%;
    margin: 0 !important;
    grid-template-columns: 160px minmax(0, 1fr);
    align-items: stretch;
    gap: 20px;
}

.ogm-view-search .result-item .col-md-3,
.ogm-view-search .result-item > div > div > .row > .col-md {
    width: auto !important;
    max-width: none !important;
    padding: 0 !important;
    flex: none !important;
}

.ogm-view-search .result-item .item-image,
.ogm-view-search .result-item .item-thumbnail-wrap {
    width: 100%;
    height: 148px;
}

.ogm-view-search .result-item .item-thumbnail-wrap {
    background-color: #f7fafb;
    background-position: center;
    background-repeat: no-repeat;
    background-size: contain;
    border: 1px solid #edf2f3;
    border-radius: 11px;
}

.ogm-view-search .result-item > div > div > .row > .col-md > .row {
    display: grid !important;
    height: 100% !important;
    margin: 0 !important;
    grid-template-columns: minmax(0, 1fr) 230px;
    align-items: stretch;
    gap: 18px;
}

.ogm-view-search .result-item .col-md-8,
.ogm-view-search .result-item .col-md-4 {
    width: auto !important;
    max-width: none !important;
    padding: 0 !important;
    flex: none !important;
}

.ogm-view-search .result-item .item-name {
    margin: 0 0 12px;
    color: var(--ogm-primary-dark);
    font-size: 18px;
    font-weight: 850;
    letter-spacing: -.015em;
    line-height: 1.38;
}

.ogm-view-search .result-item .item-name a {
    color: inherit;
}

.ogm-view-search .result-item .dir-intro-text:empty,
.ogm-view-search .result-item .dir-intro-text {
    margin: 0;
}

.ogm-view-search .result-item .company-address,
.ogm-view-search .result-item .item-info {
    color: var(--ogm-muted);
    font-size: 14px;
}

.ogm-view-search .result-item .info-right {
    height: 100%;
    padding-left: 18px;
    border-left: 1px solid var(--ogm-border);
}

.ogm-view-search .result-item .item-info-wrap {
    display: grid;
    gap: 8px;
}

.ogm-view-search .result-item .item-info a {
    white-space: normal !important;
}

.ogm-view-search .result-item .company-rating:has(.rating-average:empty) {
    display: none;
}

/* Existing JBD carousel modules */
.ogm-site [id^="slider-"] {
    position: relative;
    min-width: 0;
}

.ogm-site [id^="slider-"] .slick-list {
    margin: 0 -8px;
    padding: 5px 0 12px;
}

.ogm-site [id^="slider-"] .slick-slide {
    height: auto;
    padding: 0 8px;
}

.ogm-site [id^="slider-"] .slick-slide > div,
.ogm-site [id^="slider-"] .slick-slide > div > div {
    height: 100%;
}

.ogm-site [id^="slider-"] .slick-slide img {
    width: 100%;
    max-height: 170px;
    margin: 0 auto;
    object-fit: contain;
}

.ogm-site [id^="slider-"] .slick-prev,
.ogm-site [id^="slider-"] .slick-next {
    z-index: 3;
    width: 38px;
    height: 38px;
    color: transparent;
    background: #fff;
    border: 1px solid var(--ogm-border);
    border-radius: 50%;
    box-shadow: var(--ogm-shadow-sm);
}

.ogm-site [id^="slider-"] .slick-prev {
    left: -12px;
}

.ogm-site [id^="slider-"] .slick-next {
    right: -12px;
}

.ogm-site [id^="slider-"] .slick-prev::before,
.ogm-site [id^="slider-"] .slick-next::before {
    color: var(--ogm-primary);
    opacity: 1;
}

.ogm-promotion-column > .ogm-module-card {
    padding: 18px;
}

/* Forms */
.ogm-main-content input[type="text"],
.ogm-main-content input[type="email"],
.ogm-main-content input[type="password"],
.ogm-main-content input[type="tel"],
.ogm-main-content input[type="url"],
.ogm-main-content input[type="number"],
.ogm-main-content input[type="date"],
.ogm-main-content select,
.ogm-main-content textarea {
    max-width: 100%;
    padding: 10px 12px;
    color: var(--ogm-ink);
    background: #fff;
    border: 1px solid #ccdadd;
    border-radius: 9px;
    box-shadow: none;
}

.ogm-main-content input:focus,
.ogm-main-content select:focus,
.ogm-main-content textarea:focus {
    border-color: var(--ogm-primary);
    box-shadow: 0 0 0 4px rgba(11, 107, 120, .1);
    outline: none;
}

/* Error and component-only layouts */
.ogm-component-only {
    padding: 30px 0;
}

.ogm-error-page {
    display: grid;
    min-height: 100vh;
    padding: 24px;
    place-items: center;
    background: linear-gradient(135deg, #e7f6f7, #fff4f6);
}

.ogm-error-card {
    width: min(100%, 580px);
    padding: clamp(28px, 6vw, 58px);
    text-align: center;
    background: #fff;
    border: 1px solid var(--ogm-border);
    border-radius: var(--ogm-radius-lg);
    box-shadow: var(--ogm-shadow-lg);
}

.ogm-error-card .ogm-brand {
    justify-content: center;
}

.ogm-error-code {
    margin: 34px 0 0;
    color: var(--ogm-accent);
    font-size: 70px;
    font-weight: 900;
    line-height: 1;
}

.ogm-error-card h1 {
    margin: 12px 0;
    color: var(--ogm-primary-dark);
    font-size: 32px;
}

.ogm-error-card .ogm-button {
    margin-top: 18px;
}

@media (max-width: 1199px) {
    .ogm-hero-grid {
        grid-template-columns: minmax(0, 1.4fr) 310px;
        gap: 30px;
    }

    .ogm-hero-visual {
        min-height: 360px;
    }

    .ogm-hero-visual::before {
        right: 0;
        width: 290px;
        height: 290px;
    }

    .ogm-hero-visual > img {
        right: 19px;
        width: 260px;
    }

    .ogm-trust-card-one {
        left: -26px;
    }

    .ogm-four-grid,
    .ogm-footer-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .ogm-content-layout.has-left.has-right {
        grid-template-columns: 230px minmax(0, 1fr);
    }

    .ogm-content-layout.has-left.has-right .ogm-sidebar-right {
        position: static;
        grid-column: 1 / -1;
    }
}

@media (max-width: 991px) {
    .ogm-header-inner {
        min-height: 74px;
    }

    .ogm-nav-toggle {
        display: inline-flex;
    }

    .ogm-navigation {
        position: fixed;
        top: 74px;
        right: 0;
        z-index: 120;
        display: block;
        width: min(88vw, 360px);
        height: calc(100vh - 74px);
        padding: 18px;
        overflow-y: auto;
        background: #fff;
        border-left: 1px solid var(--ogm-border);
        box-shadow: -20px 20px 50px rgba(15, 63, 72, .16);
        transform: translateX(105%);
        transition: transform .25s ease;
    }

    .ogm-topbar + .ogm-header .ogm-navigation {
        top: 112px;
        height: calc(100vh - 112px);
    }

    .ogm-navigation.is-open {
        transform: translateX(0);
    }

    .ogm-navigation ul,
    .ogm-navigation .nav,
    .ogm-navigation .menu {
        flex-direction: column;
        align-items: stretch;
        gap: 5px;
    }

    .ogm-navigation > div > ul > li > a,
    .ogm-navigation > ul > li > a,
    .ogm-navigation .nav > li > a {
        min-height: 48px;
        justify-content: space-between;
    }

    .ogm-navigation ul ul,
    .ogm-navigation .nav-child {
        position: static;
        display: flex;
        width: auto;
        margin: 3px 0 5px 14px;
        padding: 4px 0 4px 12px;
        background: transparent;
        border: 0;
        border-left: 2px solid var(--ogm-primary-soft);
        border-radius: 0;
        box-shadow: none;
    }

    .ogm-hero-grid {
        min-height: 0;
        grid-template-columns: 1fr;
        padding-top: 48px;
        padding-bottom: 48px;
    }

    .ogm-hero-visual {
        display: none;
    }

    .ogm-search-card .keywordSearch,
    .ogm-search-card .search-wrapper,
    .ogm-search-card .search-form,
    .ogm-search-card .jbd-search-form {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .ogm-content-layout.has-left,
    .ogm-content-layout.has-right,
    .ogm-content-layout.has-left.has-right {
        grid-template-columns: 1fr;
    }

    .ogm-sidebar {
        position: static;
    }

    .ogm-content-layout .ogm-sidebar-left {
        order: 2;
    }

    .ogm-content-layout .ogm-sidebar-right {
        grid-column: auto !important;
        order: 3;
    }

    .ogm-promotion-grid {
        grid-template-columns: 1fr;
    }

    .ogm-popular-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .ogm-site .categories-container,
    .ogm-site .category-list,
    .ogm-site .jbd-categories,
    .ogm-category-modules > ul,
    .ogm-category-modules .categories-list {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 767px) {
    .ogm-container {
        width: min(calc(100% - 28px), var(--ogm-container));
    }

    .ogm-topbar-modules {
        display: none;
    }

    .ogm-topbar-inner {
        justify-content: flex-end;
    }

    .ogm-brand-mark {
        width: 42px;
        height: 42px;
        flex-basis: 42px;
        border-radius: 13px;
    }

    .ogm-brand-copy small {
        display: none;
    }

    .ogm-header-inner {
        gap: 14px;
    }

    .ogm-hero-grid {
        grid-template-columns: minmax(0, 1fr);
        padding-top: 38px;
        padding-bottom: 38px;
    }

    .ogm-hero h1 {
        font-size: clamp(32px, 10.5vw, 46px);
    }

    .ogm-search-card {
        padding: 13px;
        border-radius: 15px;
    }

    .ogm-search-card .keywordSearch,
    .ogm-search-card .search-wrapper,
    .ogm-search-card .search-form,
    .ogm-search-card .jbd-search-form {
        grid-template-columns: 1fr;
    }

    .ogm-search-card #keywordSearch .form-container,
    .ogm-search-card #keywordSearch .fields-container {
        display: grid !important;
        width: 100% !important;
        grid-template-columns: minmax(0, 1fr) !important;
    }

    .ogm-search-card #keywordSearch .search-dir-button {
        width: 100% !important;
        min-width: 0 !important;
    }

    .ogm-search-card button,
    .ogm-search-card input[type="submit"],
    .ogm-search-card .btn-search,
    .ogm-search-card .search-button {
        width: 100%;
    }

    .ogm-view-search .ogm-main {
        padding-top: 24px;
    }

    .ogm-view-search .search-header {
        padding: 15px;
    }

    .ogm-view-search .jbd-search-statistics {
        align-items: stretch;
        flex-direction: column;
        gap: 10px;
    }

    .ogm-view-search .search-keyword,
    .ogm-view-search .search-options,
    .ogm-view-search .jbd-select-box {
        width: 100% !important;
    }

    .ogm-view-search .result-counter {
        font-size: 15px;
    }

    .ogm-view-search #adminForm > .result-item {
        padding: 15px;
    }

    .ogm-view-search .result-item > div > div > .row {
        grid-template-columns: minmax(0, 1fr);
        gap: 0;
    }

    .ogm-view-search .result-item .col-md-3 {
        display: none;
    }

    .ogm-view-search .result-item > div > div > .row > .col-md > .row {
        grid-template-columns: minmax(0, 1fr);
        gap: 14px;
    }

    .ogm-view-search .result-item .item-name {
        font-size: 16px;
    }

    .ogm-view-search .result-item .info-right {
        padding: 12px 0 0;
        border-top: 1px solid var(--ogm-border);
        border-left: 0;
    }

    .ogm-view-search .pagination > .pagination-toolbar,
    .ogm-view-search .pagination.pagination-toolbar {
        align-items: center;
        flex-direction: column;
        gap: 12px;
    }

    .ogm-view-search .pagination-toolbar .pagination-list {
        max-width: 100%;
        gap: 5px;
    }

    .ogm-view-search .pagination-list li > a,
    .ogm-view-search .pagination-list li > span {
        min-width: 38px;
        height: 38px;
        padding: 0 8px;
    }

    .ogm-main {
        padding: 38px 0 50px;
    }

    .ogm-four-grid,
    .ogm-footer-grid,
    .ogm-site .categories-container,
    .ogm-site .category-list,
    .ogm-site .jbd-categories,
    .ogm-category-modules > ul,
    .ogm-category-modules .categories-list {
        grid-template-columns: 1fr;
    }

    .ogm-module-card {
        padding: 16px;
    }

    .ogm-footer-grid {
        padding-top: 34px;
        padding-bottom: 26px;
        gap: 22px;
    }

    .ogm-footer-bottom {
        grid-template-columns: 1fr auto;
        gap: 18px;
    }

    .ogm-footer-bottom small {
        grid-column: 1 / -1;
    }
}

@media (max-width: 420px) {
    .ogm-brand-copy strong {
        max-width: 150px;
        font-size: 19px;
    }

    .ogm-nav-toggle > span:last-child {
        display: none;
    }

}

@media (max-width: 350px) {
    .ogm-popular-grid {
        grid-template-columns: 1fr;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        transition-duration: .01ms !important;
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
    }
}
