:root {
  --icmo-red: #a51008;
  --icmo-red-dark: #700b07;
  --icmo-red-soft: #f8eeeb;
  --icmo-ink: #151922;
  --icmo-text: #424854;
  --icmo-muted: #737984;
  --icmo-line: #e4e5e8;
  --icmo-bg: #f5f1eb;
  --icmo-card: #fff;
  --icmo-shadow: 0 16px 45px rgba(17, 23, 34, .09);
  --icmo-radius: 6px;
  --icmo-shell: 1360px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--icmo-text); background: #fff; font-family: "Open Sans", Arial, sans-serif; line-height: 1.65; }
body.modal-open { overflow: hidden; }
a { color: inherit; text-decoration: none; transition: color .2s ease, background-color .2s ease, border-color .2s ease, transform .2s ease; }
a:hover { color: var(--icmo-red); }
img { max-width: 100%; }
button, input, select, textarea { font: inherit; }
button { color: inherit; }
h1, h2, h3, h4, h5, h6 { color: var(--icmo-ink); font-family: "Montserrat", Arial, sans-serif; font-weight: 700; line-height: 1.25; }
.site-shell, .home-container, .container-page { width: min(calc(100% - 48px), var(--icmo-shell)); margin-inline: auto; }
.skip-link { position: fixed; left: 16px; top: -80px; z-index: 9999; padding: 10px 16px; color: #fff; background: var(--icmo-red); }
.skip-link:focus { top: 12px; }
.eyebrow { display: block; margin-bottom: 8px; color: var(--icmo-red); font: 700 .78rem/1.2 "Montserrat", sans-serif; letter-spacing: .08em; }

/* Top bar and header */
.site-topbar { color: #fff; background: linear-gradient(90deg, #750a05, var(--icmo-red)); font-size: .78rem; }
.site-topbar-inner { min-height: 42px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.site-topbar nav { display: flex; align-items: center; gap: 28px; }
.site-topbar a { display: inline-flex; align-items: center; gap: 7px; color: #fff; font-weight: 600; }
.site-topbar a:hover { opacity: .8; }
.topbar-ataturk { display: block; flex: 0 0 auto; width: auto; height: 36px; max-width: 170px; margin-right: 4px; object-fit: contain; }
.topbar-actions a + a { position: relative; }
.topbar-actions a + a::before { content: ""; position: absolute; left: -14px; width: 1px; height: 16px; background: rgba(255,255,255,.35); }
.site-header { position: sticky; top: 0; z-index: 1000; background: rgba(255,255,255,.97); border-bottom: 1px solid var(--icmo-line); box-shadow: 0 4px 18px rgba(16,19,25,.04); backdrop-filter: blur(14px); }
.header-inner { min-height: 92px; display: flex; align-items: center; gap: 28px; }
.site-brand { width: 230px; flex: 0 0 230px; display: flex; align-items: center; color: var(--icmo-ink); }
.site-brand:hover { color: var(--icmo-red); }
.site-brand-logo { width: 230px; height: 66px; display: block; overflow: hidden; }
.site-brand-logo img { width: 230px; max-width: none; height: auto; transform: translateY(-84px); }
.site-navigation { min-width: 0; flex: 1; display: flex; justify-content: flex-end; align-items: center; gap: 14px; }
.site-navigation > * { flex-shrink: 0; }
.site-navigation > a, .site-navigation > .nav-dropdown > button, .nav-search-button { min-height: 92px; display: inline-flex; align-items: center; gap: 6px; padding: 0; color: #101216; background: none; border: 0; border-bottom: 3px solid transparent; font: 700 .68rem/1.2 "Montserrat", sans-serif; white-space: nowrap; cursor: pointer; }
.site-navigation > a:hover, .site-navigation > .nav-dropdown > button:hover, .nav-dropdown.is-open > button { color: var(--icmo-red); border-bottom-color: var(--icmo-red); }
.site-navigation .fa-angle-down { font-size: .68rem; }
.nav-dropdown { position: relative; }
.nav-dropdown-menu { position: absolute; top: calc(100% - 1px); left: -22px; width: 260px; padding: 12px; opacity: 0; visibility: hidden; transform: translateY(10px); background: #fff; border: 1px solid var(--icmo-line); box-shadow: var(--icmo-shadow); transition: .2s ease; }
.nav-dropdown:hover .nav-dropdown-menu, .nav-dropdown.is-open .nav-dropdown-menu { opacity: 1; visibility: visible; transform: translateY(0); }
.nav-dropdown-menu a { display: flex; align-items: center; justify-content: space-between; padding: 11px 12px; color: var(--icmo-text); border-bottom: 1px solid #f0f0f1; font-size: .83rem; font-weight: 600; }
.nav-dropdown-menu a:last-child { border-bottom: 0; }
.nav-dropdown-menu a:hover { color: var(--icmo-red); background: var(--icmo-red-soft); padding-left: 16px; }
.nav-search-button { width: 38px; justify-content: center; font-size: 1.05rem; }
.mobile-menu-toggle { display: none; margin-left: auto; width: 44px; height: 44px; color: var(--icmo-red); background: #fff; border: 1px solid var(--icmo-line); }
.mobile-menu-icon { position: relative; display: grid; gap: 5px; width: 21px; }
.mobile-menu-icon span { display: block; width: 100%; height: 2px; background: currentColor; transition: transform .2s ease, opacity .2s ease; }
.mobile-menu-toggle[aria-expanded="true"] .mobile-menu-icon span:first-child { transform: translateY(7px) rotate(45deg); }
.mobile-menu-toggle[aria-expanded="true"] .mobile-menu-icon span:nth-child(2) { opacity: 0; }
.mobile-menu-toggle[aria-expanded="true"] .mobile-menu-icon span:last-child { transform: translateY(-7px) rotate(-45deg); }

/* Footer */
.site-footer { position: relative; color: #f5f5f5; background: linear-gradient(120deg, #151a22, #252d39); }
.footer-main { display: grid; grid-template-columns: 1.25fr 1.2fr 1fr; gap: 58px; padding-block: 52px 38px; }
.footer-main h2, .footer-directory h2 { margin: 0 0 14px; color: #fff; font-size: .86rem; letter-spacing: .035em; }
.footer-main a, .footer-main p, .footer-directory a, .footer-directory span { color: rgba(255,255,255,.8); font-size: .79rem; }
.footer-brand-panel > p { max-width: 410px; margin: 18px 0 14px; }
.footer-logo-frame { width: 292px; height: 86px; display: block; padding: 7px 14px; overflow: hidden; background: #fff; border-radius: 3px; }
.footer-logo-frame > span { width: 264px; height: 72px; display: block; overflow: hidden; }
.footer-logo-frame img { width: 264px; max-width: none; transform: translateY(-97px); }
.footer-link-columns { display: grid; grid-template-columns: 1fr 1fr; gap: 38px; }
.footer-link-columns section { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; }
.footer-link-columns a:hover, .footer-directory a:hover, .footer-contact a:hover { color: #fff; }
.footer-contact p { display: flex; gap: 13px; margin-bottom: 8px; }
.footer-contact p > i { width: 17px; margin-top: 5px; color: #fff; text-align: center; }
.footer-social { display: flex; gap: 10px; margin-top: 8px; }
.footer-social a, .footer-social > span { width: 35px; height: 35px; display: grid; place-items: center; color: rgba(255,255,255,.85); border: 1px solid rgba(255,255,255,.45); border-radius: 50%; }
.footer-social > span { opacity: .55; }
.footer-social a:hover { color: #fff; background: var(--icmo-red); border-color: var(--icmo-red); }
.footer-visit-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 20px; }
.footer-visit-stats > div { display: flex; align-items: center; gap: 10px; min-height: 58px; padding: 9px 11px; background: rgba(255,255,255,.055); border: 1px solid rgba(255,255,255,.1); }
.footer-visit-stats i { color: #fff; font-size: 1rem; }
.footer-visit-stats span { color: rgba(255,255,255,.63); font-size: .65rem; line-height: 1.35; }
.footer-visit-stats strong { display: block; margin-top: 2px; color: #fff; font-size: .93rem; }
.footer-directory { display: grid; grid-template-columns: minmax(0, 1fr) 330px; gap: 52px; padding-block: 30px 38px; border-top: 1px solid rgba(255,255,255,.11); }
.footer-section-heading { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.footer-section-heading > a { color: rgba(255,255,255,.72); font-size: .68rem; font-weight: 700; }
.footer-branch-list { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 7px 22px; }
.footer-branch-list a { display: flex; align-items: flex-start; gap: 7px; }
.footer-branch-list i { margin-top: 5px; color: #c9a884; font-size: .65rem; }
.footer-partner-list { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.footer-partner-list > a { min-height: 76px; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 9px; color: var(--icmo-ink); background: #fff; text-align: center; }
.footer-partner-list img { max-width: 100%; max-height: 58px; object-fit: contain; }
.footer-partner-list strong { color: var(--icmo-red); font: 800 1.05rem/1 "Montserrat",sans-serif; }
.footer-partner-list small { display: block; margin-top: 5px; color: var(--icmo-muted); font-size: .52rem; line-height: 1.25; }
.footer-bottom { color: #fff; background: linear-gradient(90deg, var(--icmo-red-dark), var(--icmo-red)); }
.footer-bottom-inner { min-height: 62px; display: flex; align-items: center; justify-content: space-between; gap: 30px; font-size: .75rem; }
.footer-bottom nav { display: flex; align-items: center; gap: 0; }
.footer-bottom nav a { padding: 0 20px; border-right: 1px solid rgba(255,255,255,.45); }
.footer-bottom nav a:last-child { padding-right: 0; border-right: 0; }
.scroll-top { position: absolute; right: max(24px, calc((100% - var(--icmo-shell)) / 2)); bottom: 26px; z-index: 4; width: 46px; height: 46px; color: #fff; background: var(--icmo-red-dark); border: 1px solid rgba(255,255,255,.65); border-radius: 4px; }

/* Shared page language */
.page-main { min-height: 540px; padding: 48px 0 70px; background: #fafafa; }
.container-page { max-width: 1260px; }
.crumb { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-bottom: 26px; color: var(--icmo-muted); font-size: .82rem; }
.crumb a:hover { color: var(--icmo-red); }
.crumb strong { color: var(--icmo-red); }
.page-title { position: relative; margin: 0 0 26px; padding-bottom: 15px; font-size: clamp(2rem, 4vw, 3.6rem); }
.page-title::after, .section-heading::after, .panel-heading h2::after { content: ""; position: absolute; left: 0; bottom: 0; width: 44px; height: 3px; background: var(--icmo-red); }
.lead { max-width: 850px; color: #59606c; font-size: 1.04rem; }
.panel, .form-box { background: #fff; border: 1px solid var(--icmo-line); border-radius: var(--icmo-radius); box-shadow: 0 8px 25px rgba(25,29,38,.05); }
.button-primary, .btn-cmo, .primary-action { min-height: 46px; display: inline-flex; align-items: center; justify-content: center; gap: 12px; padding: 0 22px; color: #fff !important; background: linear-gradient(90deg, var(--icmo-red), #c52c24); border: 1px solid var(--icmo-red); border-radius: 3px; font: 700 .78rem/1 "Montserrat", sans-serif; }
.button-primary:hover, .btn-cmo:hover, .primary-action:hover { transform: translateY(-2px); box-shadow: 0 9px 20px rgba(174,0,0,.22); }
.button-outline, .btn-ghost { min-height: 46px; display: inline-flex; align-items: center; justify-content: center; gap: 10px; padding: 0 22px; color: var(--icmo-red); background: #fff; border: 1px solid var(--icmo-red); border-radius: 3px; font-weight: 700; }
.section-heading, .panel-heading h2 { position: relative; margin: 0 0 24px; padding-bottom: 13px; font-size: 1.2rem; }
.section-head-row { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin-bottom: 20px; }
.section-head-row h2 { margin: 0; font-size: 1.08rem; }
.section-head-row > a { color: var(--icmo-red); font-size: .78rem; font-weight: 700; }
.empty-state, .board-empty, .news-empty { grid-column: 1 / -1; padding: 38px; color: var(--icmo-muted); background: #fff; border: 1px dashed #d5d5d8; text-align: center; }

/* Home */
.home-page { position: relative; background: linear-gradient(180deg, #f7f4ef, #f6f6f6 45%); }
.home-hero-new { position: relative; width: min(calc(100% - 64px), 1440px); min-height: 410px; margin: 0 auto; overflow: hidden; color: #fff; background: #111; }
.home-hero-track { position: relative; min-height: 410px; }
.home-hero-slide { position: absolute; inset: 0; opacity: 0; visibility: hidden; transition: opacity .55s ease; }
.home-hero-slide.is-active { opacity: 1; visibility: visible; }
.home-hero-slide > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.home-hero-slide::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(0,0,0,.92) 0%, rgba(0,0,0,.72) 38%, rgba(0,0,0,.15) 75%); }
.home-hero-content { position: relative; z-index: 2; width: 55%; min-height: 410px; display: flex; flex-direction: column; align-items: flex-start; justify-content: center; padding: 54px 70px; }
.home-hero-content .eyebrow { color: #fff; opacity: .8; }
.home-hero-content h1 { margin: 0 0 16px; color: #fff; font-size: clamp(2rem, 3.4vw, 3.45rem); letter-spacing: -.03em; }
.home-hero-content p { max-width: 650px; margin: 0 0 28px; color: rgba(255,255,255,.86); font-size: 1rem; }
.hero-nav { position: absolute; z-index: 5; top: 50%; width: 42px; height: 42px; display: grid; place-items: center; color: #fff; background: rgba(0,0,0,.28); border: 1px solid rgba(255,255,255,.6); border-radius: 50%; transform: translateY(-50%); }
.hero-prev { left: 14px; } .hero-next { right: 14px; }
.hero-dots { position: absolute; z-index: 5; left: 50%; bottom: 22px; display: flex; gap: 10px; }
.hero-dots button { width: 11px; height: 11px; padding: 0; background: #fff; border: 0; border-radius: 50%; }
.hero-dots button.is-active { background: var(--icmo-red); }
.quick-actions { position: relative; z-index: 6; width: min(calc(100% - 128px), 1320px); margin: -2px auto 0; display: grid; grid-template-columns: repeat(8, 1fr); background: #fff; box-shadow: var(--icmo-shadow); }
.quick-actions a { min-height: 112px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; padding: 14px 8px; color: var(--icmo-ink); border-right: 1px solid #ededee; text-align: center; font: 700 .71rem/1.25 "Montserrat", sans-serif; }
.quick-actions a:last-child { border-right: 0; }
.quick-actions a:hover { color: var(--icmo-red); background: var(--icmo-red-soft); transform: translateY(-4px); }
.quick-actions i { color: var(--icmo-red); font-size: 1.85rem; }
.home-middle-banners { width: min(calc(100% - 96px), 1320px); margin: 18px auto 0; display: grid; gap: 14px; }
.middle-managed-banner { position: relative; min-height: 150px; display: grid; grid-template-columns: minmax(260px, .8fr) minmax(0, 1.2fr); overflow: hidden; color: #fff; background: linear-gradient(110deg, var(--icmo-red-dark), var(--icmo-red)); box-shadow: 0 10px 28px rgba(60,20,16,.12); }
.middle-managed-banner > img { width: 100%; height: 100%; min-height: 150px; object-fit: cover; }
.middle-managed-banner-content { display: flex; flex-direction: column; justify-content: center; padding: 24px 30px; }
.middle-managed-banner-content h2 { margin: 0 0 6px; color: #fff; font-size: clamp(1.25rem,2vw,1.85rem); }
.middle-managed-banner-content p { margin: 0 0 12px; color: rgba(255,255,255,.84); font-size: .82rem; }
.middle-managed-banner-content > span { font-size: .72rem; font-weight: 700; }
.home-ad-rail { position: absolute; top: 28px; z-index: 8; width: 118px; display: grid; gap: 12px; }
.home-ad-rail-left { left: max(8px, calc(50% - 852px)); }
.home-ad-rail-right { right: max(8px, calc(50% - 852px)); }
.side-managed-banner { min-height: 170px; display: grid; place-items: center; overflow: hidden; color: #fff; background: linear-gradient(160deg, var(--icmo-red), var(--icmo-red-dark)); border: 4px solid #fff; box-shadow: 0 7px 22px rgba(35,25,20,.14); text-align: center; }
.side-managed-banner img { width: 100%; height: 100%; min-height: 170px; object-fit: cover; }
.side-managed-banner span { padding: 16px 10px; font: 700 .72rem/1.45 "Montserrat", sans-serif; }
.home-content-shell { width: min(calc(100% - 96px), 1320px); margin: 18px auto 0; }
.home-main-grid { display: grid; grid-template-columns: minmax(0, 2fr) minmax(300px, .86fr); gap: 18px; align-items: start; }
.home-stack { display: grid; gap: 18px; }
.home-block { padding: 22px; background: #fff; border: 1px solid #ededee; box-shadow: 0 5px 20px rgba(25,29,38,.04); }
.card-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 22px; }
.content-card { min-width: 0; display: flex; flex-direction: column; }
.content-card-image { position: relative; height: 165px; overflow: hidden; background: #eae5e2; }
.content-card-image img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
.content-card:hover .content-card-image img { transform: scale(1.04); }
.content-card time { display: block; margin: 11px 0 6px; color: #6f747c; font-size: .7rem; }
.content-card h3 { margin: 0 0 8px; font-size: .92rem; line-height: 1.45; }
.content-card p { display: -webkit-box; margin: 0 0 12px; overflow: hidden; color: #686e78; font-size: .77rem; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.card-more { margin-top: auto; color: var(--icmo-red); font-size: .72rem; font-weight: 700; }
.notice-list { display: grid; gap: 13px; }
.notice-item { display: grid; grid-template-columns: 24px 1fr; gap: 10px; }
.notice-item i { margin-top: 4px; color: var(--icmo-red); }
.notice-item time { color: var(--icmo-red); font-size: .68rem; }
.notice-item strong { display: block; color: var(--icmo-ink); font-size: .76rem; line-height: 1.35; }
.calendar-card { padding-bottom: 16px; }
.calendar-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.calendar-head button { width: 30px; height: 30px; background: #fff; border: 1px solid var(--icmo-line); }
.calendar-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 5px; text-align: center; font-size: .72rem; }
.calendar-grid b { padding: 6px 0; }
.calendar-grid span { min-height: 32px; display: grid; place-items: center; }
.calendar-grid .event-day { color: #fff; background: var(--icmo-red); border-radius: 3px; }
.calendar-grid .calendar-day { position: relative; min-width: 0; min-height: 34px; display: grid; place-items: center; border: 1px solid transparent; border-radius: 4px; }
.calendar-grid .calendar-day.is-today { color: #4c3026; background: #e8dccd; border-color: #d4bfa8; font-weight: 800; }
.calendar-grid .calendar-day.has-event { color: #fff; background: var(--icmo-red); border-color: var(--icmo-red); font-weight: 800; cursor: pointer; }
.calendar-grid .calendar-day.is-today.has-event { background: var(--icmo-red); box-shadow: inset 0 0 0 3px #e4bb78; }
.calendar-day-tooltip { position: absolute; left: 50%; bottom: calc(100% + 9px); z-index: 40; width: 250px; display: block !important; min-height: 0 !important; padding: 8px; opacity: 0; visibility: hidden; transform: translate(-50%, 8px); color: var(--icmo-text); background: #fff; border-top: 3px solid var(--icmo-red); border-radius: 4px; box-shadow: 0 12px 30px rgba(26,23,20,.18); text-align: left; transition: .18s ease; pointer-events: none; }
.calendar-day-tooltip.tooltip-align-right { left: auto; right: 0; transform: translateY(8px); }
.calendar-day-tooltip::after { content: ""; position: absolute; left: 50%; top: 100%; border: 6px solid transparent; border-top-color: #fff; transform: translateX(-50%); }
.calendar-day-tooltip.tooltip-align-right::after { left: auto; right: 10px; transform: none; }
.calendar-day:hover .calendar-day-tooltip, .calendar-day:focus-within .calendar-day-tooltip, .calendar-day:focus .calendar-day-tooltip { opacity: 1; visibility: visible; transform: translate(-50%, 0); pointer-events: auto; }
.calendar-day:hover .calendar-day-tooltip.tooltip-align-right, .calendar-day:focus-within .calendar-day-tooltip.tooltip-align-right, .calendar-day:focus .calendar-day-tooltip.tooltip-align-right { transform: translateY(0); }
.calendar-day-tooltip a { display: block; padding: 8px; color: var(--icmo-text); border-bottom: 1px solid var(--icmo-line); }
.calendar-day-tooltip a:last-child { border-bottom: 0; }
.calendar-day-tooltip strong, .calendar-day-tooltip small { display: block; }
.calendar-day-tooltip strong { color: var(--icmo-red); font-size: .72rem; line-height: 1.35; }
.calendar-day-tooltip small { margin-top: 3px; color: var(--icmo-muted); font-size: .64rem; }
.calendar-month-events { display: grid; gap: 6px; margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--icmo-line); }
.calendar-month-events a { display: grid; grid-template-columns: 58px 1fr; gap: 9px; padding: 7px 8px; background: #faf8f5; border-left: 2px solid var(--icmo-red); }
.calendar-month-events b { color: var(--icmo-red); font-size: .64rem; }
.calendar-month-events strong, .calendar-month-events small { display: block; }
.calendar-month-events strong { color: var(--icmo-ink); font-size: .67rem; line-height: 1.35; }
.calendar-month-events small { color: var(--icmo-muted); font-size: .6rem; }
.calendar-month-empty { margin: 0; padding: 10px; color: var(--icmo-muted); background: #faf8f5; font-size: .7rem; text-align: center; }
.press-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.event-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.congress-band { margin-top: 18px; display: grid; grid-template-columns: 1fr 1fr .8fr; min-height: 190px; color: #fff; background: linear-gradient(115deg, #780c07 0%, var(--icmo-red) 42%, #510704 100%); }
.congress-band > div { padding: 28px 34px; display: flex; flex-direction: column; justify-content: center; }
.congress-band h2, .congress-band h3 { margin: 0 0 8px; color: #fff; }
.congress-band p { margin: 0 0 12px; font-size: .82rem; }
.congress-visual { background: linear-gradient(rgba(0,0,0,.2),rgba(0,0,0,.45)), url('/assets/img/icmo-hero.png') center/cover; }
.congress-meta { gap: 8px; font-size: .82rem; }
.publications { margin-top: 18px; padding: 24px; background: #fff; }
.publication-tabs { display: flex; gap: 36px; border-bottom: 1px solid var(--icmo-line); }
.publication-tabs button { padding: 0 0 14px; background: none; border: 0; border-bottom: 3px solid transparent; font: 700 .75rem/1 "Montserrat", sans-serif; }
.publication-tabs button.is-active { color: var(--icmo-red); border-color: var(--icmo-red); }
.publication-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; padding-top: 18px; }
.publication-card { min-width: 0; }
.publication-card img { width: 100%; height: 130px; object-fit: cover; background: #ede8e5; }
.publication-card h3 { margin: 8px 0 0; font-size: .76rem; }

/* Hero for inside pages */
.page-hero { position: relative; min-height: 290px; display: flex; align-items: center; overflow: hidden; color: #fff; background: var(--icmo-red-dark); }
.page-hero::before { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(120,0,0,.98), rgba(152,0,0,.76) 48%, rgba(70,0,0,.18)), url('/assets/img/icmo-interior.png') center 52%/cover; }
.page-hero::after { content: ""; position: absolute; right: 9%; top: -90px; width: 320px; height: 380px; border: 1px solid rgba(255,255,255,.15); transform: rotate(25deg); }
.page-hero-inner { position: relative; z-index: 2; width: min(calc(100% - 48px), 1260px); margin-inline: auto; padding: 50px 0; }
.page-hero h1 { position: relative; margin: 0 0 17px; padding-bottom: 14px; color: #fff; font-size: clamp(2rem, 4vw, 3.6rem); text-transform: uppercase; }
.page-hero h1::after { content: ""; position: absolute; left: 0; bottom: 0; width: 45px; height: 3px; background: #fff; }
.page-hero p { max-width: 620px; margin: 0 0 20px; color: rgba(255,255,255,.88); }
.page-hero .crumb { margin: 0; color: rgba(255,255,255,.72); }
.page-hero .crumb strong { color: #fff; }

/* Content detail */
.detail { width: min(calc(100% - 48px), 1080px); margin-inline: auto; padding: 46px 0 70px; }
.detail > h1 { margin: 10px 0 15px; font-size: clamp(1.8rem, 3vw, 3rem); }
.detail .back { display: inline-flex; align-items: center; gap: 8px; color: var(--icmo-red); font-size: .8rem; font-weight: 700; }
.detail .meta { display: flex; flex-wrap: wrap; gap: 20px; margin: 0 0 25px; color: var(--icmo-muted); font-size: .78rem; }
.detail .cover { width: 100%; max-height: 560px; margin: 6px 0 30px; object-fit: cover; }
.detail .article { color: #353b46; font-size: .97rem; }
.detail .article h2, .detail .article h3 { margin-top: 30px; }
.detail .article img { height: auto; }
.detail-files, .detail-gallery { margin-top: 35px; padding: 26px; background: #fff; border: 1px solid var(--icmo-line); }
.detail-section-head { display: flex; align-items: center; gap: 14px; margin-bottom: 20px; }
.detail-section-icon { width: 46px; height: 46px; display: grid; place-items: center; color: var(--icmo-red); background: var(--icmo-red-soft); border-radius: 50%; }
.detail-section-head h2 { margin: 0; font-size: 1.15rem; }
.detail-file-list { display: grid; gap: 10px; }
.detail-file-row { display: grid; grid-template-columns: 52px 1fr 42px; align-items: center; gap: 14px; padding: 12px 14px; border: 1px solid var(--icmo-line); }
.detail-file-type { width: 46px; height: 46px; display: grid; place-items: center; color: var(--icmo-red); background: var(--icmo-red-soft); font-size: 1.3rem; }
.detail-file-info strong, .detail-file-info small { display: block; }
.detail-file-info strong { color: var(--icmo-ink); }
.detail-file-info small { color: var(--icmo-muted); }
.detail-file-action { color: var(--icmo-red); text-align: center; }
.detail-gallery-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.detail-gallery-grid img { width: 100%; height: 190px; object-fit: cover; }
.detail-footer { margin-top: 30px; display: flex; align-items: center; justify-content: space-between; gap: 20px; }

/* Lists */
.filter-bar { display: grid; grid-template-columns: minmax(220px, 1.4fr) 1fr 1fr auto; gap: 12px; margin: 28px 0; padding: 18px; background: #fff; border: 1px solid var(--icmo-line); box-shadow: 0 5px 18px rgba(20,25,34,.05); }
.filter-bar input, .filter-bar select, .form-control, .form-select { min-height: 48px; padding: 0 14px; border: 1px solid #d8dbe0; border-radius: 3px; }
.filter-bar button { min-width: 120px; border: 0; }
.filter-bar.list-search-form { grid-template-columns: minmax(260px, 1fr) auto auto; }
.filter-bar.list-search-form .button-outline { white-space: nowrap; }
.news-card-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 22px; }
.news-card { overflow: hidden; background: #fff; border: 1px solid var(--icmo-line); box-shadow: 0 6px 18px rgba(25,29,38,.05); }
.news-card img { width: 100%; height: 210px; object-fit: cover; background: #ede8e5; }
.news-card-body { padding: 18px; }
.news-card-meta { display: flex; align-items: center; justify-content: space-between; gap: 10px; color: var(--icmo-muted); font-size: .7rem; }
.news-card-tag { padding: 4px 8px; color: #fff; background: var(--icmo-red); border-radius: 30px; font-weight: 700; }
.news-card h2 { margin: 14px 0 8px; font-size: 1rem; }
.news-card p { margin: 0 0 16px; color: #666d78; font-size: .8rem; }
.news-row { display: grid; grid-template-columns: 190px 1fr auto; align-items: center; gap: 20px; padding: 18px; border-bottom: 1px solid var(--icmo-line); }
.news-row:last-child { border-bottom: 0; }
.news-row img { width: 190px; height: 120px; object-fit: cover; }
.news-row h2 { font-size: 1rem; }
.date { color: var(--icmo-muted); font-size: .75rem; }
.pagination { justify-content: center; margin-top: 28px; }

/* Boards */
.board-page { background: #fafafa; }
.board-title { margin: 0; text-align: center; font-size: clamp(2rem, 4vw, 3.4rem); }
.rule { width: 48px; height: 3px; margin: 16px auto 30px; background: var(--icmo-red); }
.board-tabs { background: #fff; border-bottom: 1px solid var(--icmo-line); }
.board-tabs > div { display: flex; gap: 24px; overflow-x: auto; }
.board-tabs a { flex: 0 0 auto; display: inline-flex; align-items: center; gap: 10px; padding: 22px 10px; border-bottom: 3px solid transparent; font-size: .76rem; font-weight: 700; }
.board-tabs a.is-active { color: var(--icmo-red); border-bottom-color: var(--icmo-red); }
.board-tabs a i { font-size: 1.25rem; }
.board-filter { margin: 0 0 30px; display: grid; grid-template-columns: minmax(0,.9fr) minmax(0,1.3fr) minmax(0,1fr); align-items: end; gap: 20px; padding: 22px; background: #fff; border: 1px solid var(--icmo-line); border-radius: var(--icmo-radius); }
.board-filter label { color: var(--icmo-ink); font-weight: 700; }
.board-filter label > span { display: block; margin-bottom: 7px; font-size: .75rem; }
.board-filter select { min-height: 46px; font-size: .8rem; }
.board-loading { padding: 20px; text-align: center; }
.board-loading span { margin-left: 10px; }
.board-loading[hidden], .board-empty[hidden], .member[hidden] { display: none; }
.board-empty { grid-column: 1 / -1; padding: 35px 20px; text-align: center; background: #fff; border: 1px solid var(--icmo-line); color: var(--icmo-muted); }
.board-selected-title { margin: 20px 0; text-align: center; font-size: 1.45rem; }
.member-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.member { min-height: 325px; padding: 25px 18px; text-align: center; background: #fff; border: 1px solid var(--icmo-line); border-radius: var(--icmo-radius); box-shadow: 0 7px 20px rgba(20,25,34,.04); }
.member .avatar { width: 112px; height: 112px; margin: 0 auto 16px; display: grid; place-items: center; overflow: hidden; color: var(--icmo-red); background: var(--icmo-red-soft); border-radius: 50%; font-size: 3rem; }
.member .avatar img { width: 100%; height: 100%; object-fit: cover; }
.member h2, .member h3 { margin: 12px 0 8px; font-size: 1rem; }
.member .role { display: inline-block; padding: 3px 10px; color: #fff; background: var(--icmo-red); border-radius: 16px; font-size: .67rem; font-weight: 700; }
.member-registry { margin: 15px 0; display: flex; justify-content: center; gap: 6px; color: var(--icmo-muted); font-size: .72rem; }
.member-contact { display: flex; justify-content: center; gap: 8px; }
.member-contact a, .member-contact button { width: 36px; height: 36px; display: grid; place-items: center; color: var(--icmo-red); background: #fff; border: 1px solid var(--icmo-line); border-radius: 50%; }
.member-resume { margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--icmo-line); color: var(--icmo-muted); font-size: .72rem; text-align: left; }
.member-resume summary { color: var(--icmo-red); cursor: pointer; font-weight: 700; text-align: center; }
.member-resume p { margin: 10px 0 0; line-height: 1.65; }
.board-notice { max-width: 900px; margin: 30px auto 0; display: flex; gap: 15px; padding: 18px; background: var(--icmo-red-soft); border-left: 3px solid var(--icmo-red); }
.board-notice p { margin: 0; }
.board-resume-modal { position: fixed; inset: 0; z-index: 2100; display: grid; place-items: center; padding: 24px; }
.board-resume-modal[hidden] { display: none; }
.board-resume-backdrop { position: absolute; inset: 0; background: rgba(12,15,21,.72); border: 0; }
.board-resume-dialog { position: relative; width: min(600px, 100%); max-height: 85vh; overflow: auto; padding: 34px; background: #fff; }
.board-resume-close { position: absolute; top: 12px; right: 12px; width: 38px; height: 38px; background: #fff; border: 1px solid var(--icmo-line); }

/* Legislation and document cards */
.law-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }
.law-card { padding: 25px; background: #fff; border: 1px solid var(--icmo-line); }
.law-card h2 { display: flex; align-items: center; gap: 13px; margin-bottom: 18px; color: var(--icmo-red); font-size: 1rem; }
.law-card h2 i { width: 50px; height: 50px; display: grid; place-items: center; background: var(--icmo-red-soft); border-radius: 50%; font-size: 1.3rem; }
.document-list { display: grid; gap: 0; }
.document-list a { display: grid; grid-template-columns: 25px 1fr auto; align-items: center; gap: 10px; padding: 13px 2px; color: var(--icmo-ink); border-bottom: 1px solid var(--icmo-line); font-size: .82rem; }
.document-list a i:first-child { color: var(--icmo-red); }
.featured-documents { margin-top: 30px; }
.document-card-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; }
.document-card { min-height: 205px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; padding: 20px; background: #fff; border: 1px solid var(--icmo-line); text-align: center; }
.document-card > i { color: var(--icmo-red); font-size: 2.6rem; }
.document-card h3 { margin: 0; font-size: .82rem; }
.document-card span { color: var(--icmo-muted); font-size: .7rem; }

/* Contact */
.contact-grid { display: grid; grid-template-columns: 1.35fr .8fr; gap: 24px; margin-top: 30px; }
.form-box { padding: 28px; }
.form-box h2 { margin: 0 0 20px; font-size: 1.2rem; }
.form-box textarea.form-control { min-height: 180px; padding-top: 13px; }
.form-box .actions { display: flex; gap: 12px; margin-top: 20px; }
.required-msg { display: none; color: #c00; font-size: .72rem; }
.message-count { margin-top: 5px; color: var(--icmo-muted); font-size: .72rem; text-align: right; }
.info-row { display: grid; grid-template-columns: 46px 1fr; gap: 13px; margin-bottom: 15px; }
.info-row > i { width: 46px; height: 46px; display: grid; place-items: center; color: var(--icmo-red); background: var(--icmo-red-soft); border-radius: 50%; }
.info-row h3, .info-row p { margin: 0; }
.info-row h3 { font-size: .82rem; }
.info-row p { font-size: .8rem; }
.branch { margin-top: 35px; }
.branch h2 { font-size: 1.3rem; }
.branch-accordion { display: grid; gap: 10px; }
.branch-item { background: #fff; border: 1px solid var(--icmo-line); }
.branch-head { width: 100%; min-height: 52px; display: flex; align-items: center; justify-content: space-between; padding: 0 18px; background: #fff; border: 0; font-weight: 700; }
.branch-item.is-open .branch-head { color: var(--icmo-red); }
.branch-body { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; padding: 20px; border-top: 1px solid var(--icmo-line); }
.branch-info { display: flex; gap: 10px; font-size: .78rem; }
.branch-info p { margin: 0; }
.form-result-success, .form-result-error { display: block; margin-bottom: 15px; padding: 12px; }
.form-result-success { color: #146c43; background: #dff3e7; }
.form-result-error { color: #a30000; background: var(--icmo-red-soft); }

/* Branch directory */
.branch-directory { padding: 50px 0 70px; background: #f7f7f7; }
.branch-directory-panel { padding: 34px; background: #fff; border: 1px solid var(--icmo-line); box-shadow: var(--icmo-shadow); }
.branch-directory-intro { display: grid; grid-template-columns: 300px minmax(0,1fr); gap: 40px; align-items: center; padding-bottom: 28px; border-bottom: 1px solid var(--icmo-line); }
.branch-directory-intro h1 { margin: 8px 0; font-size: 2rem; }
.branch-directory-intro p { margin: 0 0 18px; }
.branch-directory-intro select { width: 100%; min-height: 50px; padding: 0 14px; background: #fff; border: 1px solid var(--icmo-red); }
.branch-map { min-width: 0; color: var(--icmo-red); }
.branch-map .svg-map svg { display: block; width: 100%; height: auto; }
.branch-map .svg-map g { cursor: pointer; }
.branch-map .svg-map path { fill: #e5e2dd; stroke: #fff; stroke-width: 1.5; transition: fill .2s ease, opacity .2s ease; }
.branch-map .svg-map g.active path { fill: var(--icmo-red); }
.branch-map .svg-map g.rep path { fill: var(--icmo-red); opacity: .42; }
.branch-map .svg-map g.rep:hover path { opacity: .55; }
.branch-map .svg-map g:hover:not(.active):not(.rep) path { fill: #bab5ae; }
.branch-map .svg-map g:focus-visible { outline: none; }
.branch-map .svg-map g:focus-visible path { stroke: #252525; stroke-width: 2.5; }
.branch-directory-intro .branch-map-caption { min-height: 24px; margin: 10px 0; text-align: center; font-size: .78rem; }
.branch-directory-intro .branch-map-status { min-height: 42px; margin: 12px 0 0; color: var(--icmo-muted); font-size: .78rem; }
.branch-map-legend { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 20px; color: var(--icmo-muted); font-size: .7rem; }
.branch-map-legend span { display: inline-flex; align-items: center; gap: 7px; }
.branch-map-legend i { width: 12px; height: 12px; flex: 0 0 12px; border-radius: 2px; background: var(--icmo-red); }
.branch-map-key-region { opacity: .42; }
.branch-columns { display: grid; grid-template-columns: 1.1fr .9fr .9fr; gap: 34px; padding-top: 28px; }
.branch-column h2 { display: flex; gap: 10px; font-size: .92rem; }
.branch-link { width: 100%; min-height: 39px; display: flex; align-items: center; justify-content: space-between; padding: 0 13px; background: #fff; border: 1px solid var(--icmo-line); font-size: .78rem; text-align: left; }
.branch-link + .branch-link { margin-top: 7px; }
.branch-link:hover, .branch-link.is-active { color: var(--icmo-red); background: var(--icmo-red-soft); border-color: #e5bcbc; }
.branch-detail-card { grid-column: 1 / -1; padding: 22px; background: #fff; border: 1px solid #e5bcbc; }
.branch-detail-card[hidden] { display: none; }
.branch-detail-card h3 { color: var(--icmo-red); font-size: .95rem; }
.branch-detail-card dl { display: grid; grid-template-columns: 75px 1fr; gap: 10px; font-size: .75rem; }
.branch-detail-card dt { color: var(--icmo-red); }
.branch-detail-card dd { min-width: 0; margin: 0; overflow-wrap: anywhere; }
.branch-detail-card a[hidden] { display: none; }

/* Agreements */
.agreements-page { padding: 50px 0 70px; background: #f7f7f7; }
.agreements-filter { display: grid; grid-template-columns: 1fr 1fr auto; gap: 12px; margin: 25px 0; padding: 18px; background: #fff; border: 1px solid var(--icmo-line); }
.agreements-filter select, .agreements-filter input { min-height: 48px; padding: 0 14px; border: 1px solid #d8dbe0; }
.agreement-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.agreement-card { min-height: 290px; display: flex; flex-direction: column; padding: 22px; background: #fff; border: 1px solid var(--icmo-line); }
.agreement-card-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 15px; }
.agreement-card h2 { font-size: 1rem; }
.agreement-card .discount { flex: 0 0 auto; padding: 6px 10px; color: #fff; background: var(--icmo-red); border-radius: 30px; font-size: .72rem; font-weight: 700; }
.agreement-card-body { flex: 1; font-size: .8rem; }

/* Membership */
.member-page { padding: 50px 0 70px; background: #f7f7f7; }
.member-page-intro { display: flex; align-items: center; gap: 22px; margin-bottom: 26px; padding: 24px 30px; background: #fff; border-left: 4px solid var(--icmo-red); box-shadow: 0 7px 20px rgba(20,25,34,.05); }
.member-page-intro > i { width: 92px; height: 92px; display: grid; place-items: center; color: var(--icmo-red); background: var(--icmo-red-soft); border-radius: 50%; font-size: 2.6rem; }
.member-page-intro h1 { margin: 0 0 5px; font-size: clamp(1.8rem,3vw,2.7rem); }
.member-query-card { max-width: 850px; margin: 0 auto; padding: 32px; background: #fff; border: 1px solid var(--icmo-line); box-shadow: 0 9px 28px rgba(20,25,34,.06); }
.member-query-card h2 { font-size: 1.05rem; }
.member-query-card form { display: grid; gap: 16px; }
.member-query-card label { color: var(--icmo-ink); font-size: .78rem; font-weight: 700; }
.member-query-card input { width: 100%; min-height: 49px; margin-top: 6px; padding: 0 14px; border: 1px solid #d6d9de; }
.query-note { display: flex; gap: 12px; padding: 16px; background: var(--icmo-red-soft); font-size: .8rem; }
.member-results { margin-top: 24px; display: grid; gap: 10px; }
.member-result { display: grid; grid-template-columns: 1fr auto; gap: 14px; padding: 16px; border: 1px solid var(--icmo-line); }
.member-result strong, .member-result span { display: block; }
.member-result span { color: var(--icmo-muted); font-size: .75rem; }
.member-result > i { color: #198754; }
.member-services-page { padding: 45px 0 70px; background: linear-gradient(135deg, #f8f8f8, #eee); }
.member-services-card { padding: 38px; background: #fff; border-top: 4px solid var(--icmo-red); box-shadow: var(--icmo-shadow); }
.member-services-heading h1 { margin: 6px 0; font-size: clamp(2rem,4vw,3.5rem); }
.member-services-grid { display: grid; grid-template-columns: repeat(3, 1fr) .95fr; gap: 30px; margin-top: 30px; }
.member-services-grid section { padding-right: 24px; border-right: 1px solid var(--icmo-line); }
.member-services-grid h2 { font-size: 1rem; }
.member-services-grid h2 i { margin-right: 8px; color: var(--icmo-red); }
.member-services-grid section a { display: flex; align-items: center; justify-content: space-between; padding: 13px 2px; border-bottom: 1px solid var(--icmo-line); font-size: .8rem; }
.member-portal-block, .member-portal-card { padding: 22px; background: linear-gradient(135deg, #fff, var(--icmo-red-soft)); }
.member-portal-block > i, .member-portal-card > i { color: var(--icmo-red); font-size: 2.6rem; }
.member-portal-block .button-primary, .member-portal-block .button-outline, .member-portal-card .button-primary, .member-portal-card .button-outline { width: 100%; margin-top: 9px; }

/* Search and membership overlays */
.search-dialog, .member-dialog { position: fixed; inset: 0; z-index: 2200; display: grid; place-items: center; padding: 24px; }
.search-dialog[hidden], .member-dialog[hidden] { display: none; }
.search-backdrop, .member-dialog-backdrop { position: absolute; inset: 0; background: rgba(10,13,18,.78); border: 0; }
.search-panel { position: relative; width: min(760px, 100%); padding: 42px; background: #fff; box-shadow: var(--icmo-shadow); }
.search-panel h2 { margin: 0 0 22px; }
.search-panel form { display: grid; grid-template-columns: 1fr auto; }
.search-panel input { min-height: 56px; padding: 0 18px; border: 1px solid var(--icmo-line); }
.search-panel form button { min-width: 130px; color: #fff; background: var(--icmo-red); border: 0; }
.dialog-close { position: absolute; top: 15px; right: 15px; z-index: 4; width: 42px; height: 42px; display: grid; place-items: center; background: #fff; border: 1px solid var(--icmo-line); }
.member-dialog-panel { position: relative; width: min(1420px, 100%); max-height: 92vh; overflow: auto; padding: 42px; background: #fff; border-top: 4px solid var(--icmo-red); box-shadow: var(--icmo-shadow); }
.member-dialog-heading h2 { margin: 5px 0; font-size: 2.4rem; }
.member-operations-grid { display: grid; grid-template-columns: repeat(3, 1fr) .9fr; gap: 30px; margin-top: 25px; }
.member-operations-grid > section { padding-right: 25px; border-right: 1px solid var(--icmo-line); }
.member-operations-grid h3 { font-size: 1rem; }
.member-operations-grid h3 i { margin-right: 9px; color: var(--icmo-red); }
.member-operations-grid > section > a { display: flex; justify-content: space-between; gap: 10px; padding: 13px 3px; border-bottom: 1px solid var(--icmo-line); font-size: .82rem; }

/* Continuing education */
.education-panel { overflow: hidden; }
.education-intro { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 22px; padding: 28px 30px; border-bottom: 1px solid var(--icmo-line); }
.education-intro .feature-icon { width: 70px; height: 70px; display: grid; place-items: center; color: var(--icmo-red); background: var(--icmo-red-soft); border-radius: 50%; font-size: 1.75rem; }
.education-intro h2 { margin: 4px 0; font-size: clamp(1.35rem,2.5vw,2rem); }
.education-intro p { margin: 0; color: var(--icmo-muted); font-size: .85rem; }
.education-filters { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; padding: 24px 30px; background: #f8f8f8; border-bottom: 1px solid var(--icmo-line); }
.education-filters label > span { display: block; margin-bottom: 7px; color: var(--icmo-ink); font-size: .75rem; font-weight: 700; }
.education-status { padding: 28px 30px; color: var(--icmo-muted); text-align: center; }
.education-status i { margin-right: 8px; color: var(--icmo-red); }
.education-list { display: grid; }
.education-card { display: grid; grid-template-columns: 58px 1fr auto; align-items: center; gap: 18px; padding: 20px 30px; border-bottom: 1px solid var(--icmo-line); transition: background .2s ease; }
.education-card:last-child { border-bottom: 0; }
.education-card:hover { background: #fffafa; }
.education-card-icon { width: 52px; height: 52px; display: grid; place-items: center; color: var(--icmo-red); background: var(--icmo-red-soft); border-radius: 50%; }
.education-card-branch { color: var(--icmo-red); font-size: .68rem; font-weight: 700; text-transform: uppercase; }
.education-card h3 { margin: 4px 0 8px; font-size: .98rem; }
.education-card-meta { display: flex; flex-wrap: wrap; gap: 18px; color: var(--icmo-muted); font-size: .72rem; }
.education-card-meta i { margin-right: 5px; color: var(--icmo-red); }
.education-card-arrow { width: 38px; height: 38px; display: grid; place-items: center; color: var(--icmo-red); border: 1px solid var(--icmo-line); border-radius: 50%; }
.sumer-detail { overflow: hidden; }
.sumer-detail-header { padding: 32px; color: #fff; background: linear-gradient(120deg, var(--icmo-red-dark), var(--icmo-red)); }
.sumer-detail-header h1 { margin: 0 0 24px; color: #fff; font-size: clamp(1.7rem,3vw,2.7rem); }
.sumer-detail-meta { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: rgba(255,255,255,.25); }
.sumer-detail-meta > div { padding: 15px; background: rgba(91,0,0,.34); }
.sumer-detail-meta span, .sumer-detail-meta strong { display: block; }
.sumer-detail-meta span { color: rgba(255,255,255,.72); font-size: .66rem; text-transform: uppercase; }
.sumer-detail-meta strong { margin-top: 4px; font-size: .8rem; }
.sumer-detail-image { margin: 0; max-height: 520px; overflow: hidden; }
.sumer-detail-image img { width: 100%; height: 100%; object-fit: cover; }
.sumer-detail-body { display: grid; gap: 0; padding: 8px 32px 32px; }
.sumer-detail-section { padding: 24px 0; border-bottom: 1px solid var(--icmo-line); }
.sumer-detail-section:last-child { border-bottom: 0; }
.sumer-detail-section h2 { position: relative; margin: 0 0 14px; padding-left: 14px; font-size: 1.05rem; }
.sumer-detail-section h2::before { content: ""; position: absolute; inset: 1px auto 1px 0; width: 3px; background: var(--icmo-red); }
.sumer-rich-text { color: var(--icmo-muted); font-size: .85rem; line-height: 1.8; }
.sumer-teacher-list { display: flex; flex-wrap: wrap; gap: 8px; }
.sumer-teacher-list span { padding: 8px 12px; background: var(--icmo-red-soft); border-radius: 3px; font-size: .75rem; }
.sumer-price-list, .sumer-participant-grid, .sumer-contact-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.sumer-price-list > div, .sumer-participant-grid > div, .sumer-contact-list > div { padding: 14px; background: #f7f7f7; border-left: 2px solid var(--icmo-red); }
.sumer-price-list span, .sumer-participant-grid span, .sumer-contact-list span { display: block; color: var(--icmo-muted); font-size: .68rem; }

/* Registered offices */
.registry-panel { overflow: hidden; }
.registry-intro { display: grid; grid-template-columns: auto 1fr; align-items: center; gap: 22px; padding: 28px 30px; border-bottom: 1px solid var(--icmo-line); }
.registry-intro .feature-icon { width: 70px; height: 70px; display: grid; place-items: center; color: var(--icmo-red); background: var(--icmo-red-soft); border-radius: 50%; font-size: 1.75rem; }
.registry-intro h2 { margin: 4px 0; font-size: clamp(1.35rem,2.5vw,2rem); }
.registry-intro p { margin: 0; color: var(--icmo-muted); font-size: .85rem; }
.registry-filter { display: grid; grid-template-columns: 190px minmax(260px, 460px); align-items: center; gap: 20px; padding: 22px 30px; background: #f8f8f8; border-bottom: 1px solid var(--icmo-line); }
.registry-filter label { color: var(--icmo-ink); font-size: .78rem; font-weight: 700; }
.registry-status { padding: 32px; color: var(--icmo-muted); text-align: center; }
.registry-status i { margin-right: 7px; color: var(--icmo-red); }
.registry-result-heading { display: flex; justify-content: space-between; gap: 20px; padding: 15px 30px; color: #fff; background: var(--icmo-red-dark); font-size: .8rem; }
.registry-results { display: grid; }
.registry-card { display: grid; grid-template-columns: minmax(220px, .8fr) minmax(260px, 1.4fr) minmax(190px, .7fr); gap: 20px; align-items: center; padding: 22px 30px; border-bottom: 1px solid var(--icmo-line); }
.registry-card-heading { display: flex; align-items: center; gap: 14px; }
.registry-card-icon { width: 45px; height: 45px; flex: 0 0 45px; display: grid; place-items: center; color: var(--icmo-red); background: var(--icmo-red-soft); border-radius: 50%; }
.registry-card-heading span { color: var(--icmo-muted); font-size: .68rem; }
.registry-card-heading h3 { margin: 2px 0 0; font-size: .92rem; }
.registry-card-details { display: grid; gap: 6px; color: var(--icmo-muted); font-size: .74rem; }
.registry-card-details p { margin: 0; }
.registry-card-details i { width: 19px; color: var(--icmo-red); }
.registry-members button { padding: 8px 10px; color: var(--icmo-red); background: #fff; border: 1px solid var(--icmo-line); font-size: .7rem; font-weight: 700; }
.registry-members [data-firm-member-list] { margin-top: 8px; font-size: .7rem; }
.registry-members [data-firm-member-list] p { margin: 3px 0; }

/* Staff */
.staff-page { background: #fafafa; }
.staff-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 24px; }
.staff-card { overflow: hidden; padding: 12px; background: #fff; border: 1px solid var(--icmo-line); border-radius: var(--icmo-radius); box-shadow: 0 7px 20px rgba(20,25,34,.04); }
.staff-photo { position: relative; aspect-ratio: 4 / 3; overflow: hidden; display: grid; place-items: center; background: linear-gradient(135deg, var(--icmo-red-soft), #f2f2f2); }
.staff-photo::after { content: ""; position: absolute; left: 0; top: 0; width: 38px; height: 38px; border-top: 3px solid var(--icmo-red); border-left: 3px solid var(--icmo-red); }
.staff-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; background: #f7f5f2; }
.staff-card-body { padding: 24px 16px 16px; text-align: center; }
.staff-card-body h3 { margin: 5px 0; font-size: 1rem; }
.staff-card-body p { margin: 0; color: var(--icmo-muted); font-size: .75rem; }
.staff-card-body .staff-duty { min-height: 42px; color: var(--icmo-red); font-weight: 600; }
.staff-contact { display: grid; gap: 7px; margin-top: 15px; padding-top: 15px; border-top: 1px solid var(--icmo-line); text-align: left; font-size: .76rem; }
.staff-contact small { color: var(--icmo-muted); }
.staff-contact a { display: flex; align-items: center; gap: 10px; overflow-wrap: anywhere; }
.staff-contact i { color: var(--icmo-red); }

/* Institutional people directories */
.people-directory-toolbar, .people-result-heading { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.people-directory-toolbar h2 { margin: 0 0 8px; font-size: 1.3rem; }
.people-directory-toolbar p { margin: 0; font-size: .83rem; }
.people-directory-filters { display: flex; align-items: center; gap: 16px; }
.people-directory-filters select { min-height: 46px; max-width: 230px; padding: 0 35px 0 14px; border: 1px solid var(--icmo-line); background: #fff; border-radius: 4px; font-size: .8rem; }
.people-search { position: relative; display: block; min-width: 0; margin: 0; }
.people-search input { width: 100%; min-height: 46px; padding: 0 40px 0 14px; border: 1px solid var(--icmo-line); background: #fff; border-radius: 4px; font-size: .8rem; font-weight: 400; }
.people-search > i { position: absolute; top: 50%; right: 15px; transform: translateY(-50%); color: var(--icmo-red); pointer-events: none; }
.people-result-count { min-height: 22px; margin: 12px 0; color: var(--icmo-muted); font-size: .75rem; }
.people-result-heading { margin-bottom: 20px; }
.people-result-heading .board-selected-title { margin: 0; text-align: left; font-size: 1.1rem; }
.people-result-heading > span { flex: 0 0 auto; color: var(--icmo-muted); font-size: .8rem; }
.people-note { display: flex; align-items: center; gap: 20px; margin-top: 30px; padding: 24px; border: 1px solid #ead8d5; border-radius: var(--icmo-radius); background: var(--icmo-red-soft); }
.people-note > i { flex: 0 0 auto; color: var(--icmo-red); font-size: 2rem; }
.people-note h2 { margin: 0 0 6px; font-size: 1.05rem; }
.people-note p { flex: 1; margin: 0; font-size: .86rem; }
.people-note .button-primary { flex: 0 0 auto; }
.person-photo-placeholder { display: grid; place-items: center; width: 95px; height: 95px; color: var(--icmo-red); background: #fff; border-radius: 50%; font-size: 2.8rem; }
[data-person-image][hidden], .president-card[hidden], .staff-card[hidden], [data-people-empty][hidden] { display: none; }
.presidents-page { padding: 34px 0 60px; background: linear-gradient(135deg, #faf7f4, #fff 60%, #f7f4f0); }
.presidents-intro { position: relative; padding: 0 0 30px; overflow: hidden; }
.presidents-intro .crumb { margin-bottom: 32px; }
.presidents-intro h1 { position: relative; margin: 8px 0 12px; font-size: clamp(2.4rem,4.5vw,4rem); }
.presidents-intro p { position: relative; max-width: 600px; margin: 0; }
.presidents-intro-icon { position: absolute; right: 8%; bottom: 24px; color: var(--icmo-red); font-size: 8rem; opacity: .12; }
.presidents-summary { display: grid; grid-template-columns: .8fr .9fr 1.3fr; margin-bottom: 34px; padding: 24px 0; background: rgba(255,255,255,.8); border: 1px solid var(--icmo-line); border-radius: var(--icmo-radius); }
.presidents-summary > div { display: flex; align-items: center; gap: 20px; padding: 0 28px; border-right: 1px solid var(--icmo-line); }
.presidents-summary > div:last-child { border-right: 0; }
.presidents-summary i { color: var(--icmo-red); font-size: 2rem; }
.presidents-summary span { font-size: .8rem; }
.presidents-summary strong { display: block; color: var(--icmo-red); font-size: 1.4rem; }
.president-grid { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 20px; }
.president-card { display: flex; flex-direction: column; overflow: hidden; padding: 8px; background: #fff; border: 1px solid var(--icmo-line); border-top: 3px solid var(--icmo-line); border-radius: var(--icmo-radius); }
.president-card.is-current { border-top-color: var(--icmo-red); }
.president-photo { position: relative; aspect-ratio: 4 / 3; display: grid; place-items: center; overflow: hidden; background: #efede9; border-radius: 4px; }
.president-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; background: #efede9; }
.president-badge { position: absolute; right: 8px; top: 8px; padding: 5px 8px; border-radius: 3px; color: #fff; background: var(--icmo-red); font-size: .56rem; font-weight: 700; }
.president-card-body { flex: 1; display: flex; flex-direction: column; padding: 16px 10px 8px; }
.president-card h3 { margin: 0 0 8px; font-size: .95rem; }
.president-card p { margin: 0 0 5px; font-size: .8rem; }
.president-card .president-dates { color: var(--icmo-muted); }
.president-card .button-outline { width: 100%; min-height: 36px; margin-top: auto; padding: 7px 10px; font-size: .75rem; }

/* Commissions */
.commission-hero { background: linear-gradient(90deg, #f1eeea 0%, rgba(241,238,234,.95) 43%, rgba(241,238,234,.05) 75%), url('/assets/img/icmo-interior.png') center/cover; }
.commission-hero::before { background: none; }
.commission-hero h1, .commission-hero .crumb strong { color: var(--icmo-red); }
.commission-hero p, .commission-hero .crumb { color: var(--icmo-ink); }
.commission-hero h1::after { background: var(--icmo-red); }
.commissions-page { background: #fafafa; }
.commission-heading { max-width: 850px; margin: 0 auto 30px; text-align: center; }
.commission-heading h2 { font-size: 1.4rem; }
.commission-heading p { font-size: .83rem; }
.commission-card { overflow: hidden; margin-bottom: 22px; border: 1px solid var(--icmo-line); border-radius: var(--icmo-radius); background: #fff; }
.commission-card h3 { display: flex; align-items: center; gap: 14px; margin: 0; padding: 17px 20px; color: #fff; background: linear-gradient(90deg,var(--icmo-red-dark),var(--icmo-red)); font-size: .92rem; }
.commission-card h3 i { flex: 0 0 auto; font-size: 1.4rem; }
.commission-card dl { margin: 0; }
.commission-row { display: grid; grid-template-columns: 230px minmax(0,1fr); }
.commission-row + .commission-row { border-top: 1px solid var(--icmo-line); }
.commission-row dt { display: flex; align-items: center; gap: 12px; padding: 22px; color: var(--icmo-red); background: #faf8f6; font-size: .75rem; }
.commission-row dd { margin: 0; padding: 22px; white-space: pre-line; overflow-wrap: anywhere; font-size: .8rem; }
.commission-content > table { display: block; width: 100% !important; max-width: 100%; overflow-x: auto; background: #fff; }
.commission-content > table td { height: auto !important; }
.commission-content > table p { margin-block: 5px !important; }
.commission-content > table td[colspan] { background: var(--icmo-red-soft); }

@media (max-width: 1700px) {
  .home-ad-rail { display: none; }
}

@media (max-width: 1400px) {
  .header-inner { gap: 24px; }
  .site-brand { width: 190px; flex-basis: 190px; }
  .site-brand-logo { width: 190px; height: 60px; }
  .site-brand-logo img { width: 190px; transform: translateY(-70px); }
  .site-navigation { gap: 10px; }
  .site-navigation > a, .site-navigation > .nav-dropdown > button { font-size: .61rem; }
}

@media (max-width: 1240px) {
  .site-brand { width: 72px; flex-basis: 72px; }
  .site-brand-logo { width: 64px; height: 64px; }
  .site-brand-logo img { width: 440px; transform: translate(-34px, -189px); }
  .site-navigation { gap: 8px; }
  .site-navigation > a, .site-navigation > .nav-dropdown > button { font-size: .61rem; }
  .quick-actions { width: min(calc(100% - 64px), 1320px); }
  .member-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 1100px) {
  .site-topbar nav { gap: 16px; }
  .topbar-links a i, .topbar-actions a i { display: none; }
  .site-header { top: 0; }
  .header-inner { min-height: 76px; }
  .site-brand { width: 190px; flex-basis: 190px; }
  .site-brand-logo { width: 190px; height: 60px; }
  .site-brand-logo img { width: 190px; transform: translateY(-70px); }
  .mobile-menu-toggle { display: grid; place-items: center; }
  .site-navigation { position: absolute; top: 100%; left: 0; right: 0; max-height: calc(100vh - 76px); overflow: auto; display: none; padding: 14px 24px 28px; background: #fff; border-top: 1px solid var(--icmo-line); box-shadow: var(--icmo-shadow); }
  .site-navigation.is-open { display: block; }
  .site-navigation > a, .site-navigation > .nav-dropdown > button, .nav-search-button { width: 100%; min-height: 49px; justify-content: space-between; border-bottom: 1px solid var(--icmo-line); font-size: .76rem; }
  .nav-dropdown-menu { position: static; display: none; width: 100%; padding: 6px 0 10px 14px; opacity: 1; visibility: visible; transform: none; border: 0; box-shadow: none; }
  .nav-dropdown:hover .nav-dropdown-menu { display: none; }
  .nav-dropdown.is-open .nav-dropdown-menu { display: block; }
}

@media (max-width: 1024px) {
  .board-filter { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .board-filter .people-search { grid-column: 1 / -1; }
  .people-directory-toolbar { align-items: flex-start; flex-direction: column; gap: 16px; }
  .presidents-summary { grid-template-columns: repeat(3,minmax(0,1fr)); }
  .presidents-summary > div { padding: 0 18px; gap: 12px; }
  .presidents-summary strong { font-size: 1.1rem; }
  .president-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .branch-directory-intro { grid-template-columns: 240px minmax(0,1fr); gap: 24px; }
  .home-main-grid { grid-template-columns: 1fr; }
  .home-stack { grid-template-columns: 1fr 1fr; }
  .quick-actions { grid-template-columns: repeat(4, 1fr); }
  .quick-actions a:nth-child(4) { border-right: 0; }
  .congress-band { grid-template-columns: 1fr 1fr; }
  .congress-meta { grid-column: 1 / -1; flex-direction: row !important; }
  .publication-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-main { grid-template-columns: 1fr 1fr; }
  .footer-brand-panel { grid-column: 1 / -1; }
  .footer-directory { grid-template-columns: 1fr; }
  .footer-branch-list { grid-template-columns: repeat(3, minmax(0,1fr)); }
  .member-operations-grid, .member-services-grid { grid-template-columns: repeat(2, 1fr); }
  .member-grid { grid-template-columns: repeat(2, 1fr); }
  .agreement-grid, .news-card-grid { grid-template-columns: repeat(2, 1fr); }
  .document-card-grid { grid-template-columns: repeat(3, 1fr); }
  .staff-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 767px) {
  .board-tabs > div { gap: 10px; }
  .people-directory-filters { width: 100%; flex-direction: column; align-items: stretch; }
  .people-directory-filters select { max-width: none; }
  .people-directory-toolbar > .people-search { width: 100%; }
  .people-note { align-items: flex-start; flex-wrap: wrap; padding: 20px; }
  .people-note p, .people-note > div { flex: 1; min-width: 0; }
  .people-note .button-primary { margin-left: auto; }
  .presidents-summary { grid-template-columns: 1fr; gap: 20px; }
  .presidents-summary > div { border-right: 0; }
  .presidents-intro-icon { display: none; }
  .commission-row { grid-template-columns: 1fr; }
  .commission-row dt { padding: 14px 18px; }
  .commission-row dd { padding: 18px; }
  .site-shell, .home-container, .container-page { width: min(calc(100% - 28px), var(--icmo-shell)); }
  .site-topbar-inner { min-height: 38px; justify-content: center; }
  .topbar-links { display: none !important; }
  .topbar-actions a { font-size: .68rem; }
  .topbar-actions a:first-child { display: none; }
  .site-brand { width: 170px; flex-basis: 170px; }
  .site-brand-logo { width: 170px; }
  .site-brand-logo img { width: 170px; transform: translateY(-62px); }
  .home-hero-new { width: 100%; min-height: 500px; }
  .home-hero-track, .home-hero-content { min-height: 500px; }
  .home-hero-content { width: 100%; padding: 55px 28px; }
  .home-hero-slide::after { background: linear-gradient(90deg, rgba(0,0,0,.88), rgba(0,0,0,.55)); }
  .quick-actions { width: calc(100% - 28px); grid-template-columns: repeat(2, 1fr); }
  .quick-actions a:nth-child(even) { border-right: 0; }
  .home-content-shell { width: calc(100% - 28px); }
  .home-middle-banners { width: calc(100% - 28px); }
  .middle-managed-banner { grid-template-columns: 1fr; }
  .middle-managed-banner > img { max-height: 220px; }
  .card-grid, .press-grid, .event-grid { grid-template-columns: 1fr; }
  .home-stack { grid-template-columns: 1fr; }
  .congress-band { grid-template-columns: 1fr; }
  .congress-meta { grid-column: auto; flex-direction: column !important; }
  .publication-tabs { gap: 16px; overflow-x: auto; }
  .publication-grid { grid-template-columns: 1fr 1fr; }
  .footer-main { grid-template-columns: 1fr; gap: 36px; }
  .footer-brand-panel { grid-column: auto; }
  .footer-directory { gap: 34px; }
  .footer-branch-list { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .footer-bottom-inner { padding-block: 18px; flex-direction: column; align-items: flex-start; }
  .footer-bottom nav { flex-wrap: wrap; gap: 8px 0; }
  .footer-bottom nav a { padding: 0 10px; }
  .footer-bottom nav a:first-child { padding-left: 0; }
  .scroll-top { right: 14px; bottom: 90px; }
  .page-hero { min-height: 250px; }
  .page-main { padding-top: 32px; }
  .detail { width: calc(100% - 28px); }
  .detail-gallery-grid { grid-template-columns: 1fr 1fr; }
  .detail-footer { align-items: flex-start; flex-direction: column; }
  .filter-bar, .filter-bar.list-search-form { grid-template-columns: 1fr; }
  .news-card-grid, .agreement-grid { grid-template-columns: 1fr; }
  .news-row { grid-template-columns: 100px 1fr; }
  .news-row > i { display: none; }
  .news-row img { width: 100px; height: 90px; }
  .board-filter { grid-template-columns: 1fr; }
  .member-grid { grid-template-columns: 1fr; }
  .law-grid { grid-template-columns: 1fr; }
  .document-card-grid { grid-template-columns: 1fr 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .branch-body { grid-template-columns: 1fr; }
  .branch-directory-panel { padding: 20px; }
  .branch-directory-intro { grid-template-columns: 1fr; }
  .branch-columns { grid-template-columns: 1fr; }
  .branch-detail-card { grid-column: auto; }
  .agreements-filter { grid-template-columns: 1fr; }
  .member-page-intro { align-items: flex-start; padding: 20px; }
  .member-page-intro > i { width: 62px; height: 62px; flex: 0 0 62px; font-size: 1.8rem; }
  .member-query-card { padding: 22px; }
  .member-services-card, .member-dialog-panel { padding: 25px 20px; }
  .member-services-grid, .member-operations-grid { grid-template-columns: 1fr; }
  .member-services-grid section, .member-operations-grid > section { padding-right: 0; border-right: 0; }
  .education-intro { grid-template-columns: auto 1fr; }
  .education-intro .btn-cmo { grid-column: 1 / -1; }
  .education-filters { grid-template-columns: 1fr; }
  .education-card { grid-template-columns: 48px 1fr; padding-inline: 18px; }
  .education-card-arrow { display: none; }
  .sumer-detail-header, .sumer-detail-body { padding-inline: 20px; }
  .sumer-detail-meta, .sumer-price-list, .sumer-participant-grid, .sumer-contact-list { grid-template-columns: 1fr; }
  .registry-filter { grid-template-columns: 1fr; }
  .registry-card { grid-template-columns: 1fr; padding-inline: 20px; }
  .staff-grid { grid-template-columns: 1fr; }
  .search-panel { padding: 35px 20px 20px; }
  .search-panel form { grid-template-columns: 1fr; }
  .search-panel form button { min-height: 52px; }
}

@media (max-width: 480px) {
  .president-grid { grid-template-columns: 1fr; }
  .site-brand { width: 72px; flex-basis: 72px; }
  .site-brand-logo { width: 64px; height: 64px; }
  .site-brand-logo img { width: 440px; transform: translate(-34px, -189px); }
  .footer-link-columns, .footer-branch-list, .footer-partner-list { grid-template-columns: 1fr; }
  .footer-logo-frame { width: 270px; }
  .footer-logo-frame > span { width: 242px; }
  .footer-logo-frame img { width: 242px; transform: translateY(-89px); }
  .publication-grid, .document-card-grid { grid-template-columns: 1fr; }
  .detail-gallery-grid { grid-template-columns: 1fr; }
  .member-page-intro { display: block; }
  .member-page-intro > i { margin-bottom: 14px; }
}
