/* Events calendar (/events...), single event pages (/event/...) and news posts (/blog/...) in the website redesign.
   Linked only on those pages (layout.xml); scoped to .fta-events / .fta-post. Tokens (colours, font) come from
   fta_home.css, the hero from fta_about.css and the news cards/labels from fta_news.css. */
.fta-events, .fta-post { --fe-tint: #e6f4f7; --fe-bg: #f5fafc; --fe-gold: #f5b120; }
.fta-events .fe-page p, .fta-post .fb-side p { margin: 0; }

/* ---------- Hero variants ---------- */
.fta-events .fe-hero h1 span { color: var(--fe-gold); }
.fta-post .fb-hero h1, .fta-events .fe-event-hero h1 { font-size: 46px; line-height: 1.12; max-width: 640px; }
.fta-post .fb-hero .fu-hero-content, .fta-events .fe-event-hero .fu-hero-content { padding: 64px 0 76px; max-width: 640px; }
.fta-post .fn-kicker a, .fta-events .fn-kicker a { color: inherit; text-decoration: none; }
.fta-post .fn-kicker a:hover, .fta-events .fn-kicker a:hover { text-decoration: underline; }
.fta-post .fb-kicker-sep, .fta-events .fb-kicker-sep { margin: 0 2px; opacity: .6; }
.fta-post .fb-hero .fu-hero-text { margin-bottom: 22px !important; }
.fta-post .fb-meta { display: flex; flex-wrap: wrap; gap: 10px 24px; margin: 0; font-size: 15px; color: #cfe6ee; }
.fta-post .fb-meta span { display: inline-flex; align-items: center; gap: 8px; }
.fta-post .fb-meta i { color: var(--fe-gold); }
/* editable cover (website.record_cover) filling the hero picture area */
.fb-hero-media .fb-cover { position: absolute; inset: 0; height: 100% !important; min-height: 0 !important; background: transparent; }
.fb-hero-media .fb-cover .o_record_cover_image { background-size: cover; background-position: center; }
.fb-hero-media .fb-cover-empty {
    position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; padding-left: 14%;
    background: linear-gradient(135deg, #0f6178 0%, #0a8a96 100%); color: rgba(255, 255, 255, .55); font-size: 86px;
}

/* Event page hero facts */
.fta-events .fe-hero-facts { display: flex; flex-wrap: wrap; gap: 12px 26px; margin: 0 0 30px; padding: 0; list-style: none; }
.fta-events .fe-hero-facts li { display: inline-flex; align-items: center; gap: 9px; font-size: 15.5px; color: #e3f0f4; }
.fta-events .fe-hero-facts i { color: var(--fe-gold); }
.fta-events .fe-hero-facts small { opacity: .75; }
.fta-events .fe-registered {
    display: inline-flex; align-items: center; gap: 8px; margin-bottom: 14px; padding: 6px 14px; border-radius: 30px;
    background: rgba(31, 181, 196, .18); color: #bff3f6; font-size: 13.5px; font-weight: 600;
}

/* ---------- Calendar toolbar ---------- */
.fta-events .fe-main { position: relative; padding: 0 0 88px; background: var(--fe-bg); }
.fta-events .fe-toolbar {
    position: relative; z-index: 3; top: -44px; margin-bottom: -44px; display: flex; flex-wrap: wrap; align-items: center;
    gap: 16px 24px; padding: 18px 20px; border: 1px solid #e1ebf2;
}
.fta-events .fe-search { position: relative; flex: 1 1 420px; display: flex; gap: 12px; margin: 0; }
.fta-events .fe-search > i { position: absolute; left: 18px; top: 50%; transform: translateY(-50%); color: var(--fh-teal); }
.fta-events .fe-search input {
    flex: 1; min-width: 0; height: 50px; padding: 0 16px 0 46px; border: 1px solid var(--fh-line); border-radius: 6px;
    background: var(--fe-bg); font-family: var(--fh-font); font-size: 15px; color: var(--fh-navy); outline: none;
}
.fta-events .fe-search input:focus { border-color: var(--fh-teal); background: #fff; box-shadow: 0 0 0 3px rgba(3, 106, 125, .14); }
.fta-events .fe-search .fh-btn { height: 50px; }
.fta-events .fe-views { display: inline-flex; padding: 4px; border-radius: 8px; background: var(--fe-bg); border: 1px solid var(--fh-line); }
.fta-events .fe-views a {
    display: inline-flex; align-items: center; gap: 8px; padding: 10px 18px; border-radius: 6px; text-decoration: none;
    font-size: 14px; font-weight: 600; color: var(--fh-muted); transition: background-color .2s, color .2s;
}
.fta-events .fe-views a:hover { color: var(--fh-teal); }
.fta-events .fe-views a.active { background: var(--fh-teal); color: #fff; box-shadow: 0 4px 12px rgba(3, 106, 125, .22); }

.fta-events .fe-period { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px; margin: 40px 0 22px; }
.fta-events .fe-period-nav { display: flex; align-items: center; gap: 8px; }
.fta-events .fe-arrow, .fta-events .fe-today {
    display: inline-flex; align-items: center; justify-content: center; height: 42px; border: 1px solid var(--fh-line);
    background: #fff; color: var(--fh-navy); text-decoration: none; transition: border-color .2s, color .2s, background-color .2s;
}
.fta-events .fe-arrow { width: 42px; border-radius: 50%; }
.fta-events .fe-today { padding: 0 18px; border-radius: 6px; font-size: 14px; font-weight: 600; }
.fta-events .fe-arrow:hover, .fta-events .fe-today:hover { border-color: var(--fh-teal); color: var(--fh-teal); }
.fta-events .fe-period-label { margin: 0; font-size: 28px; font-weight: 800; color: var(--fh-navy); }
.fta-events .fe-search-note { flex-basis: 100%; font-size: 14.5px; color: var(--fh-muted); }
.fta-events .fe-search-note a { color: var(--fh-teal); font-weight: 600; }

/* ---------- Event rows (list + day) ---------- */
.fta-events .fe-group {
    display: flex; align-items: center; gap: 10px; margin: 30px 0 14px; font-size: 14px; font-weight: 700;
    letter-spacing: .6px; text-transform: uppercase; color: var(--fh-teal);
}
.fta-events .fe-group::after { content: ""; flex: 1; height: 1px; background: var(--fh-line); }
.fta-events .fe-list { display: grid; gap: 16px; }
.fta-events .fe-item {
    display: grid; grid-template-columns: 92px minmax(0, 1fr) auto auto; align-items: center; gap: 24px;
    padding: 20px 24px; border: 1px solid #e1ebf2; transition: transform .2s, box-shadow .2s, border-color .2s;
}
.fta-events .fe-item:hover { transform: translateY(-2px); border-color: #bfe3ea; box-shadow: 0 14px 30px rgba(10, 51, 76, .12); }
.fta-events .fe-date {
    display: flex; flex-direction: column; align-items: center; justify-content: center; height: 100px; border-radius: 10px;
    background: var(--fe-tint); text-decoration: none; line-height: 1.1;
}
.fta-events .fe-date-month { font-size: 13px; font-weight: 700; letter-spacing: .8px; text-transform: uppercase; color: var(--fh-teal); }
.fta-events .fe-date-day { font-size: 36px; font-weight: 800; color: var(--fh-navy); }
.fta-events .fe-date-wd { font-size: 12.5px; font-weight: 500; color: var(--fh-muted); }
.fta-events .fe-body { min-width: 0; }
.fta-events .fe-body h3 { margin: 6px 0 4px; font-size: 21px; line-height: 1.3; font-weight: 700; }
.fta-events .fe-body h3 a { color: var(--fh-navy); text-decoration: none; }
.fta-events .fe-body h3 a:hover { color: var(--fh-teal); }
.fta-events .fe-meta { display: block; font-size: 14px; line-height: 1.5; font-weight: 500; color: var(--fh-muted); }
.fta-events .fe-meta i { margin-right: 6px; color: var(--fh-teal); }
.fta-events .fe-subtitle { font-size: 15px; line-height: 1.55; color: var(--fh-text); margin-bottom: 6px !important; }
.fta-events .fe-place { margin-top: 2px !important; }
.fta-events .fe-media { display: block; width: 190px; height: 112px; border-radius: 8px; overflow: hidden; }
.fta-events .fe-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
.fta-events .fe-item:hover .fe-media img { transform: scale(1.04); }
.fta-events .fe-go { height: 44px; padding: 0 20px; }

.fta-events .fe-empty { display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 56px 24px; text-align: center; border: 1px solid #e1ebf2; }
.fta-events .fe-empty > i { font-size: 44px; color: var(--fh-teal); opacity: .8; }
.fta-events .fe-empty h3 { margin: 6px 0 0; font-size: 22px; font-weight: 700; color: var(--fh-navy); }
.fta-events .fe-empty p { max-width: 460px; color: var(--fh-muted); }
.fta-events .fe-empty .fh-btn { margin-top: 10px; }

/* ---------- Month grid ---------- */
.fta-events .fe-month { overflow: hidden; border: 1px solid #e1ebf2; }
.fta-events .fe-month-head, .fta-events .fe-week { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); }
.fta-events .fe-month-head { background: var(--fh-light); border-bottom: 1px solid var(--fh-line); }
.fta-events .fe-month-head span { padding: 14px 10px; font-size: 13px; font-weight: 700; letter-spacing: .5px; text-transform: uppercase; color: var(--fh-navy); text-align: center; }
.fta-events .fe-week + .fe-week { border-top: 1px solid var(--fh-line); }
.fta-events .fe-day { position: relative; display: flex; flex-direction: column; gap: 4px; min-width: 0; min-height: 124px; padding: 8px; background: #fff; }
.fta-events .fe-day + .fe-day { border-left: 1px solid var(--fh-line); }
.fta-events .fe-day.is-other { background: #f8fbfc; }
.fta-events .fe-day-num {
    display: inline-flex; align-items: center; justify-content: center; align-self: flex-end; width: 30px; height: 30px;
    border-radius: 50%; font-size: 14px; font-weight: 600; color: var(--fh-navy); text-decoration: none;
}
.fta-events .fe-day-num:hover { background: var(--fe-tint); color: var(--fh-teal); }
.fta-events .fe-day.is-other .fe-day-num, .fta-events .fe-day.is-past:not(.has-events) .fe-day-num { color: #a3b2bf; }
.fta-events .fe-day.is-today { background: #f2fafb; }
.fta-events .fe-day.is-today .fe-day-num { background: var(--fh-teal); color: #fff; box-shadow: 0 0 0 4px rgba(3, 106, 125, .14); }
.fta-events .fe-chip {
    display: block; padding: 5px 8px; border-radius: 5px; border-left: 3px solid var(--fh-teal); background: var(--fe-tint);
    color: var(--fh-teal-dark); text-decoration: none; font-size: 12.5px; line-height: 1.35; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
    transition: background-color .2s, color .2s;
}
.fta-events .fe-chip:hover { background: var(--fh-teal); color: #fff; }
.fta-events .fe-chip-time { font-weight: 700; margin-right: 4px; }
.fta-events .fe-day.is-past .fe-chip { opacity: .7; }
.fta-events .fe-more { font-size: 12.5px; font-weight: 600; color: var(--fh-teal); text-decoration: none; }
.fta-events .fe-dot { display: none; }
.fta-events .fe-month-list { display: none; }

/* ---------- Call to action band ---------- */
.fta-events .fe-cta { padding: 56px 0; background: linear-gradient(100deg, #003b52 0%, #014a60 45%, #04506a 100%); color: #fff; }
.fta-events .fe-cta-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px 40px; }
.fta-events .fe-cta h2 { margin: 0; max-width: 640px; font-size: 30px; line-height: 1.2; font-weight: 800; color: #fff; }

/* ---------- Single event page (Odoo blocks) ---------- */
.fta-events #o_wevent_event_main { padding: 48px 0 72px; background: var(--fe-bg); }
.fta-events #o_wevent_event_main > .container { max-width: 1400px; padding-left: 48px; padding-right: 48px; }
.fta-events #o_wevent_event_main_col > .o_record_cover_container,
.fta-events .o_wevent_event_main_cover_top { display: none !important; }
.fta-events #o_wevent_event_main_col {
    padding: 40px 44px; background: #fff; border: 1px solid #e1ebf2; border-radius: 10px; box-shadow: var(--fh-card-shadow);
    font-size: 16.5px; line-height: 1.75; color: var(--fh-text);
}
.fta-events #o_wevent_event_main_col > div.mt-4 { margin-top: 0 !important; }
.fta-events #o_wevent_event_main_col h2, .fta-events #o_wevent_event_main_col h3 { color: var(--fh-navy); font-weight: 700; margin: 28px 0 12px; }
.fta-events #o_wevent_event_main_col h2 { font-size: 28px; font-weight: 800; }
.fta-events #o_wevent_event_main_col h3 { font-size: 21px; }
.fta-events #o_wevent_event_main_col h2:first-child, .fta-events #o_wevent_event_main_col h3:first-child { margin-top: 0; }
.fta-events #o_wevent_event_main_col ul { padding-left: 1.2em; }
.fta-events #o_wevent_event_main_col li { margin-bottom: 6px; }
.fta-events #o_wevent_event_main_sidebar { padding-top: 0 !important; }
.fta-events #o_wevent_event_main_sidebar .o_wevent_bordered_block,
.fta-events #o_wevent_event_main_sidebar .o_wevent_sidebar_block,
.fta-events #o_wevent_event_main_sidebar > div.mb-3 {
    padding: 22px 24px !important; margin-bottom: 18px !important; background: #fff; border: 1px solid #e1ebf2 !important;
    border-radius: 10px; box-shadow: var(--fh-card-shadow);
}
.fta-events .o_wevent_sidebar_title, .fta-events #o_wevent_event_main_sidebar h5, .fta-events #o_wevent_event_main_sidebar h6 {
    margin-bottom: 10px; font-size: 13px; font-weight: 700; letter-spacing: .6px; text-transform: uppercase; color: var(--fh-teal);
}
.fta-events #o_wevent_event_main .btn {
    font-family: var(--fh-font); font-weight: 600; letter-spacing: .3px; text-transform: uppercase; border-radius: 5px; font-size: 13.5px;
}
.fta-events #o_wevent_event_main .btn-primary, .fta-events .modal .btn-primary {
    background: var(--fh-teal); border-color: var(--fh-teal); color: #fff; box-shadow: 0 6px 16px rgba(3, 106, 125, .22);
}
.fta-events #o_wevent_event_main .btn-primary:hover, .fta-events .modal .btn-primary:hover { background: var(--fh-teal-hover); border-color: var(--fh-teal-hover); }
.fta-events #o_wevent_event_main .btn-light { background: var(--fe-tint); border-color: var(--fe-tint); color: var(--fh-teal-dark); }
.fta-events #o_wevent_event_main a:not(.btn) { color: var(--fh-teal); }
.fta-events .modal { font-family: var(--fh-font); }
.fta-events .modal .modal-title { color: var(--fh-navy); font-weight: 700; }

/* ---------- News post page ---------- */
.fta-post .fb-main { padding: 64px 0 40px; background: var(--fe-bg); }
.fta-post .fb-row { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 40px; align-items: start; }
.fta-post .fb-article { padding: 48px 52px; border: 1px solid #e1ebf2; }
.fta-post .fb-content { font-size: 17px; line-height: 1.8; color: var(--fh-text); }
.fta-post .fb-content p { margin: 0 0 20px; }
.fta-post .fb-content h2 { margin: 36px 0 14px; font-size: 27px; font-weight: 800; color: var(--fh-navy); }
.fta-post .fb-content h3 { margin: 30px 0 12px; font-size: 21px; font-weight: 700; color: var(--fh-navy); }
.fta-post .fb-content > :first-child { margin-top: 0; }
.fta-post .fb-content ul, .fta-post .fb-content ol { margin: 0 0 22px; padding-left: 1.3em; }
.fta-post .fb-content li { margin-bottom: 8px; }
.fta-post .fb-content li::marker { color: var(--fh-teal); }
.fta-post .fb-content a { color: var(--fh-teal); font-weight: 600; }
.fta-post .fb-content blockquote {
    margin: 28px 0; padding: 20px 26px; border-left: 4px solid var(--fe-gold); border-radius: 0 8px 8px 0;
    background: #fdf8ec; font-size: 18px; font-style: italic; color: var(--fh-navy);
}
.fta-post .fb-content img { max-width: 100%; height: auto; border-radius: 10px; }
.fta-post .fb-tags { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 36px; padding-top: 24px; border-top: 1px solid var(--fh-line); color: var(--fh-teal); }
.fta-post .fb-tag {
    padding: 6px 14px; border-radius: 30px; background: var(--fe-tint); color: var(--fh-teal-dark); font-size: 13.5px; font-weight: 600;
    text-decoration: none; transition: background-color .2s, color .2s;
}
.fta-post .fb-tag:hover { background: var(--fh-teal); color: #fff; }
.fta-post .fb-side { position: sticky; top: 24px; display: flex; flex-direction: column; gap: 20px; }
.fta-post .fb-back { align-self: flex-start; }
.fta-post .fb-side-card { padding: 24px; border: 1px solid #e1ebf2; }
.fta-post .fb-side-title { margin: 0 0 6px; font-size: 19px; font-weight: 700; color: var(--fh-navy); }
.fta-post .fb-side-post { display: flex; align-items: center; gap: 14px; padding: 14px 0; text-decoration: none; }
.fta-post .fb-side-post + .fb-side-post { border-top: 1px solid var(--fh-line); }
.fta-post .fb-side-thumb {
    flex: 0 0 68px; height: 68px; display: flex; align-items: center; justify-content: center; overflow: hidden;
    border-radius: 8px; background: linear-gradient(135deg, #e3f2f8 0%, #cfe7f0 100%); color: var(--fh-teal); font-size: 22px;
}
.fta-post .fb-side-thumb img { width: 100%; height: 100%; object-fit: cover; }
.fta-post .fb-side-name {
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
    font-size: 15px; line-height: 1.35; font-weight: 600; color: var(--fh-navy); transition: color .2s;
}
.fta-post .fb-side-post:hover .fb-side-name { color: var(--fh-teal); }
.fta-post .fb-side-date { display: block; margin-top: 4px; font-size: 13px; color: var(--fh-muted); }
.fta-post .fb-side-cta { padding: 28px 26px; border-radius: 10px; color: #fff; background: linear-gradient(135deg, #003b52 0%, #04506a 100%); box-shadow: var(--fh-card-shadow); }
.fta-post .fb-side-cta h2 { margin: 0 0 8px; font-size: 22px; font-weight: 800; color: #fff; }
.fta-post .fb-side-cta p:not(.fh-label) { margin-bottom: 20px !important; font-size: 15px; line-height: 1.55; color: #d8ecf2; }
.fta-post .fb-side-cta .fh-label-light { color: var(--fe-gold); }
.fta-post .fb-more { padding: 56px 0 88px; background: var(--fe-bg); }
.fta-post .fb-more-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 18px; margin-bottom: 28px; }
.fta-post .fb-more-head .fh-h2 { margin-bottom: 0; }
.fta-post .fb-more-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }

/* ---------- Responsive ---------- */
@media (max-width: 1199.98px) {
    .fta-events .fe-item { grid-template-columns: 86px minmax(0, 1fr) auto; }
    .fta-events .fe-media { display: none; }
    .fta-post .fb-row { grid-template-columns: minmax(0, 1fr) 300px; gap: 28px; }
    .fta-post .fb-article { padding: 40px 36px; }
}
@media (max-width: 991.98px) {
    .fta-post .fb-hero h1, .fta-events .fe-event-hero h1 { font-size: 38px; }
    .fta-post .fb-hero .fu-hero-content, .fta-events .fe-event-hero .fu-hero-content { padding: 44px 0 64px; }
    .fta-events .fe-toolbar { top: -30px; margin-bottom: -30px; }
    .fta-events .fe-day { min-height: 64px; padding: 6px 4px; align-items: center; }
    .fta-events .fe-day-num { align-self: center; }
    .fta-events .fe-chip, .fta-events .fe-more { display: none; }
    .fta-events .fe-dot { display: block; width: 7px; height: 7px; border-radius: 50%; background: var(--fh-teal); }
    .fta-events .fe-month-list { display: block; }
    .fta-events #o_wevent_event_main > .container { padding-left: 32px; padding-right: 32px; }
    .fta-events #o_wevent_event_main_col { padding: 28px 24px; }
    .fta-post .fb-row { grid-template-columns: minmax(0, 1fr); }
    .fta-post .fb-side { position: static; }
    .fta-post .fb-more-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 767.98px) {
    .fta-events .fe-toolbar { padding: 14px; }
    .fta-events .fe-search { flex-basis: 100%; }
    .fta-events .fe-search .fh-btn { padding: 0 16px; }
    .fta-events .fe-views { width: 100%; }
    .fta-events .fe-views a { flex: 1; justify-content: center; padding: 10px 8px; }
    .fta-events .fe-period-label { font-size: 23px; }
    .fta-events .fe-item { grid-template-columns: 68px minmax(0, 1fr); gap: 14px 16px; padding: 16px; align-items: start; }
    .fta-events .fe-date { height: 80px; }
    .fta-events .fe-date-day { font-size: 28px; }
    .fta-events .fe-go { grid-column: 1 / -1; width: 100%; }
    .fta-events .fe-body h3 { font-size: 18px; }
    .fta-events .fe-month-head span { padding: 10px 2px; font-size: 11px; letter-spacing: 0; }
    .fta-events .fe-cta h2 { font-size: 24px; }
    .fta-post .fb-hero h1, .fta-events .fe-event-hero h1 { font-size: 31px; }
    .fta-post .fb-article { padding: 28px 22px; }
    .fta-post .fb-content { font-size: 16px; }
    .fta-post .fb-more-cards { grid-template-columns: minmax(0, 1fr); }
    .fta-events #o_wevent_event_main > .container { padding-left: 20px; padding-right: 20px; }
}

/* The full-width text container sits above the picture: let clicks reach the cover (website editor) except on the text */
.fta-post .fb-hero > .fh-container, .fta-events .fe-event-hero > .fh-container { pointer-events: none; }
.fta-post .fb-hero .fu-hero-content, .fta-events .fe-event-hero .fu-hero-content { pointer-events: auto; }

/* ---------- Search results (/?s=...) ---------- */
.fta-search .fs-page p { margin: 0; }
.fta-search .fs-hero { position: relative; overflow: hidden; padding: 64px 0 104px; color: #fff; background: linear-gradient(100deg, #003b52 0%, #014a60 45%, #04506a 100%); }
.fta-search .fs-hero::after { content: ""; position: absolute; right: -140px; top: -180px; width: 560px; height: 560px; border-radius: 50%; border: 80px solid rgba(31, 181, 196, .10); pointer-events: none; }
.fta-search .fs-hero .fh-container { position: relative; z-index: 1; }
.fta-search .fs-hero h1 { margin: 0 0 26px; max-width: 900px; font-size: 46px; line-height: 1.12; font-weight: 800; color: #fff; letter-spacing: -.5px; }
.fta-search .fs-hero h1 span { color: var(--fe-gold); }
.fta-search .fs-form { position: relative; display: flex; gap: 12px; max-width: 760px; margin: 0; }
.fta-search .fs-form > i { position: absolute; left: 20px; top: 50%; transform: translateY(-50%); color: var(--fh-teal); font-size: 17px; }
.fta-search .fs-form input {
    flex: 1; min-width: 0; height: 56px; padding: 0 18px 0 52px; border: 0; border-radius: 6px; background: #fff;
    font-family: var(--fh-font); font-size: 16px; color: var(--fh-navy); outline: none; box-shadow: 0 10px 26px rgba(0, 0, 0, .18);
}
.fta-search .fs-form input:focus { box-shadow: 0 0 0 3px rgba(31, 181, 196, .6), 0 10px 26px rgba(0, 0, 0, .18); }
.fta-search .fs-form .fh-btn { height: 56px; }
.fta-search .fs-count { margin-top: 16px !important; font-size: 15px; color: #cfe6ee; }
.fta-search .fs-main { position: relative; padding: 0 0 88px; background: var(--fe-bg); }
.fta-search .fs-results, .fta-search .fs-empty { position: relative; z-index: 2; top: -56px; margin-bottom: -56px; }
.fta-search .fs-results { display: grid; gap: 14px; }
.fta-search .fs-card {
    display: grid; grid-template-columns: 120px minmax(0, 1fr) auto; align-items: center; gap: 24px; padding: 18px 24px 18px 18px;
    border: 1px solid #e1ebf2; text-decoration: none; transition: transform .2s, box-shadow .2s, border-color .2s;
}
.fta-search .fs-card:hover { transform: translateY(-2px); border-color: #bfe3ea; box-shadow: 0 14px 30px rgba(10, 51, 76, .12); }
.fta-search .fs-thumb {
    display: flex; align-items: center; justify-content: center; height: 84px; overflow: hidden; border-radius: 8px;
    background: linear-gradient(135deg, #e3f2f8 0%, #cfe7f0 100%); color: var(--fh-teal); font-size: 28px;
}
.fta-search .fs-thumb img { width: 100%; height: 100%; object-fit: cover; }
.fta-search .fs-body { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.fta-search .fs-type { font-size: 12.5px; font-weight: 700; letter-spacing: .5px; text-transform: uppercase; color: var(--fh-teal); }
.fta-search .fs-type-event { color: #b7791f; }
.fta-search .fs-title { font-size: 20px; line-height: 1.3; font-weight: 700; color: var(--fh-navy); transition: color .2s; }
.fta-search .fs-card:hover .fs-title { color: var(--fh-teal); }
.fta-search .fs-excerpt { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; font-size: 15px; line-height: 1.55; color: var(--fh-text); }
.fta-search .fs-url { font-size: 13px; color: #8a98a6; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fta-search .fs-go {
    display: inline-flex; align-items: center; justify-content: center; width: 42px; height: 42px; border-radius: 50%;
    border: 1px solid var(--fh-line); color: var(--fh-teal); transition: background-color .2s, color .2s, border-color .2s;
}
.fta-search .fs-card:hover .fs-go { background: var(--fh-teal); border-color: var(--fh-teal); color: #fff; }
.fta-search .fs-suggest { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 8px; }
.fta-search .fs-suggest a { padding: 8px 16px; border-radius: 30px; background: var(--fe-tint); color: var(--fh-teal-dark); font-weight: 600; font-size: 14px; text-decoration: none; }
.fta-search .fs-suggest a:hover { background: var(--fh-teal); color: #fff; }
.fta-search .fs-pager { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 8px; margin-top: 36px; }
.fta-search .fs-page-num {
    display: inline-flex; align-items: center; justify-content: center; min-width: 42px; height: 42px; padding: 0 10px; border-radius: 50%;
    border: 1px solid var(--fh-line); background: #fff; color: var(--fh-navy); font-weight: 600; text-decoration: none;
}
.fta-search a.fs-page-num:hover { border-color: var(--fh-teal); color: var(--fh-teal); }
.fta-search .fs-page-num.active { background: var(--fh-teal); border-color: var(--fh-teal); color: #fff; }
@media (max-width: 991.98px) {
    .fta-search .fs-hero h1 { font-size: 36px; }
}
@media (max-width: 767.98px) {
    .fta-search .fs-hero { padding: 44px 0 88px; }
    .fta-search .fs-hero h1 { font-size: 28px; }
    .fta-search .fs-form { flex-direction: column; }
    .fta-search .fs-form > i { top: 28px; }
    .fta-search .fs-card { grid-template-columns: 72px minmax(0, 1fr); gap: 14px; padding: 14px; }
    .fta-search .fs-thumb { height: 64px; font-size: 22px; }
    .fta-search .fs-go { display: none; }
    .fta-search .fs-title { font-size: 17px; }
}
.fta-search .fs-404-text { max-width: 620px; margin: -8px 0 26px !important; font-size: 17px; }
.fta-search .fs-empty .fh-btn { margin-top: 18px; }

/* ---------- Event registration dialogs ----------
   Odoo appends the attendee dialog to <body>, outside #wrapwrap (.fta-events), so these rules target the dialogs by id.
   This file is only linked on event, news and search pages. The old theme's .form-control has a transparent border,
   which made the attendee fields invisible on the white dialog. */
#modal_ticket_registration, #modal_attendees_registration, #modal_slot_registration { font-family: var(--fh-font, 'Jost', sans-serif); }
#modal_ticket_registration .modal-content, #modal_attendees_registration .modal-content, #modal_slot_registration .modal-content {
    border: 0; border-radius: 12px; box-shadow: 0 24px 60px rgba(10, 31, 61, .25); overflow: hidden;
}
#modal_ticket_registration .modal-header, #modal_attendees_registration .modal-header, #modal_slot_registration .modal-header {
    padding: 18px 26px; background: #eef6fb; border-bottom: 1px solid #dce8ef;
}
#modal_ticket_registration .modal-title, #modal_attendees_registration .modal-title, #modal_slot_registration .modal-title,
#modal_attendees_registration h4, #modal_attendees_registration h5 { font-family: var(--fh-font, 'Jost', sans-serif); font-weight: 700; color: #0a1f3d; }
#modal_attendees_registration .modal-body, #modal_ticket_registration .modal-body { padding: 22px 26px; }
#modal_attendees_registration label { margin-bottom: 6px; font-size: 14px; font-weight: 600; color: #0a1f3d; }
#modal_attendees_registration .form-control, #modal_attendees_registration .form-select,
#modal_slot_registration .form-control, #modal_slot_registration .form-select {
    min-height: 48px; padding: 10px 14px; border: 1px solid #dce8ef !important; border-radius: 6px; background-color: #f5fafc;
    font-family: var(--fh-font, 'Jost', sans-serif); font-size: 15px; color: #0a1f3d; box-shadow: none;
}
#modal_attendees_registration .form-control:focus, #modal_attendees_registration .form-select:focus {
    border-color: #036a7d !important; background-color: #fff; box-shadow: 0 0 0 3px rgba(3, 106, 125, .14);
}
#modal_attendees_registration .form-control.is-invalid { border-color: #c0392b !important; background-color: #fff8f7; }
#modal_ticket_registration .modal-footer, #modal_attendees_registration .modal-footer, #modal_slot_registration .modal-footer {
    padding: 16px 26px; border-top: 1px solid #dce8ef; gap: 10px;
}
#modal_ticket_registration .btn, #modal_attendees_registration .btn, #modal_slot_registration .btn {
    padding: 10px 22px; border-width: 2px; border-radius: 5px; font-family: var(--fh-font, 'Jost', sans-serif);
    font-size: 13.5px; font-weight: 600; letter-spacing: .3px; text-transform: uppercase;
}
#modal_ticket_registration .btn-primary, #modal_attendees_registration .btn-primary, #modal_slot_registration .btn-primary {
    background: #036a7d; border-color: #036a7d; color: #fff; box-shadow: 0 6px 16px rgba(3, 106, 125, .22);
}
#modal_ticket_registration .btn-primary:hover, #modal_attendees_registration .btn-primary:hover, #modal_slot_registration .btn-primary:hover { background: #025566; border-color: #025566; }
#modal_ticket_registration .btn-secondary, #modal_attendees_registration .btn-secondary, #modal_slot_registration .btn-secondary,
#modal_ticket_registration .btn-light, #modal_slot_registration .btn-light { background: #fff; border-color: #1d4f66; color: #0a1f3d; }
#modal_ticket_registration .btn-secondary:hover, #modal_attendees_registration .btn-secondary:hover, #modal_slot_registration .btn-secondary:hover { background: #0b344c; border-color: #0b344c; color: #fff; }
#modal_ticket_registration .o_wevent_registration_btn_minus, #modal_ticket_registration .o_wevent_registration_btn_plus,
#modal_ticket_registration .input-group .btn { padding: 6px 12px; }
#modal_attendees_registration label { display: inline-block; }
#modal_attendees_registration label + span { margin-left: 3px; color: #c0392b; font-weight: 700; }

/* ---------- Registration confirmed ---------- */
.fta-events .fe-confirm-hero { position: relative; overflow: hidden; padding: 60px 0 104px; color: #fff; background: linear-gradient(100deg, #003b52 0%, #014a60 45%, #04506a 100%); }
.fta-events .fe-confirm-hero h1 { margin: 0 0 14px; font-size: 46px; font-weight: 800; color: #fff; }
.fta-events .fe-confirm-hero .fn-kicker { color: var(--fe-gold); }
.fta-events .fe-confirm-text { max-width: 640px; font-size: 17px; line-height: 1.6; color: #e3f0f4; }
.fta-events .fe-confirm-text strong { color: #fff; }
.fta-events .fe-confirm-card { position: relative; z-index: 2; top: -56px; margin-bottom: -56px; max-width: 900px; padding: 34px 38px; border: 1px solid #e1ebf2; }
.fta-events .fe-confirm-event { display: grid; grid-template-columns: 92px minmax(0, 1fr); gap: 22px; align-items: center; padding-bottom: 24px; border-bottom: 1px solid var(--fh-line); }
.fta-events .fe-confirm-event h2 { margin: 0 0 6px; font-size: 24px; font-weight: 800; }
.fta-events .fe-confirm-event h2 a { color: var(--fh-navy); text-decoration: none; }
.fta-events .fe-confirm-event h2 a:hover { color: var(--fh-teal); }
.fta-events .fe-confirm-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 24px; padding: 22px 0; border-bottom: 1px solid var(--fh-line); }
.fta-events .fe-confirm-actions .row, .fta-events .fe-confirm-actions .col-12 { margin: 0 !important; padding: 0; width: auto; }
.fta-events .fe-confirm-actions .btn {
    padding: 10px 20px; border-radius: 5px; font-size: 13.5px; font-weight: 600; letter-spacing: .3px; text-transform: uppercase;
}
.fta-events .fe-confirm-actions .btn-primary { background: var(--fh-teal); border-color: var(--fh-teal); color: #fff; }
.fta-events .fe-confirm-actions .btn-primary:hover { background: var(--fh-teal-hover); border-color: var(--fh-teal-hover); }
.fta-events .fe-confirm-actions .btn-light, .fta-events .fe-confirm-actions .btn-secondary { background: var(--fe-tint); border-color: var(--fe-tint); color: var(--fh-teal-dark); text-transform: none; letter-spacing: 0; }
.fta-events .fe-confirm-next { padding: 22px 0 26px; }
.fta-events .fe-confirm-next h3 { margin: 0 0 8px; font-size: 18px; font-weight: 700; color: var(--fh-navy); }
.fta-events .fe-confirm-next p { margin: 0 0 6px !important; font-size: 15.5px; line-height: 1.6; color: var(--fh-text); }
.fta-events .fe-confirm-next a { color: var(--fh-teal); font-weight: 600; }
@media (max-width: 767.98px) {
    .fta-events .fe-confirm-hero h1 { font-size: 32px; }
    .fta-events .fe-confirm-card { padding: 22px 18px; }
    .fta-events .fe-confirm-event { grid-template-columns: 68px minmax(0, 1fr); gap: 14px; }
    .fta-events .fe-confirm-event h2 { font-size: 19px; }
}
.fta-events .fe-confirm-actions h5 { flex-basis: 100%; margin: 6px 0 0; font-size: 13px; font-weight: 700; letter-spacing: .6px; text-transform: uppercase; color: var(--fh-teal); }
.fta-events .fe-confirm-actions .o_event_add_to_calendar_btns { margin-top: 0 !important; gap: 10px !important; }
.fta-events .fe-confirm-actions .o_event_add_to_calendar_btns .btn {
    display: inline-flex; align-items: center; gap: 8px; border: 1px solid var(--fh-line) !important; color: var(--fh-navy);
    text-transform: none; letter-spacing: 0; font-weight: 600;
}
.fta-events .fe-confirm-actions .o_event_add_to_calendar_btns .btn:hover { border-color: var(--fh-teal) !important; color: var(--fh-teal); }
.fta-events .fe-confirm-actions .o_event_add_to_calendar_btns img { width: 18px; height: 18px; }
