/* Ferkla Portal Pro — frontend */
:root {
  --ferkla-primary: #123f63;
  --ferkla-secondary: #087f8c;
  --ferkla-accent: #d5a335;
  --ferkla-deep: #08283e;
  --ferkla-surface: #fff;
  --ferkla-bg: #f2f6f7;
  --ferkla-text: #233744;
  --ferkla-muted: #657985;
  --ferkla-container: 1240px;
  --ferkla-radius: 22px;
  --ferkla-heading-font: "Alexandria", sans-serif;
  --ferkla-body-font: "IBM Plex Sans Arabic", sans-serif;
  --shadow-sm: 0 10px 30px rgba(8, 40, 62, .08);
  --shadow-lg: 0 28px 70px rgba(8, 40, 62, .16);
  --border: 1px solid rgba(18, 63, 99, .12);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  direction: rtl;
  background: var(--ferkla-bg);
  color: var(--ferkla-text);
  font-family: var(--ferkla-body-font);
  font-size: 16px;
  line-height: 1.8;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}
body.admin-bar.has-sticky-header .navigation-bar { top: 32px; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; }
button { cursor: pointer; }
h1, h2, h3, h4, h5, h6 { margin: 0; font-family: var(--ferkla-heading-font); line-height: 1.35; color: var(--ferkla-deep); }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; }
.container { width: min(calc(100% - 40px), var(--ferkla-container)); margin-inline: auto; }
.site-shell { overflow: clip; }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.skip-link { position: fixed; z-index: 99999; right: 16px; top: -100px; background: #fff; color: var(--ferkla-deep); padding: 10px 16px; border-radius: 10px; box-shadow: var(--shadow-sm); }
.skip-link:focus { top: 16px; }
.icon { width: 1.2em; height: 1.2em; flex: 0 0 auto; }
.portal-pattern { position: relative; isolation: isolate; }
.portal-pattern::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: -1;
  opacity: .14;
  background-image: url("../images/zellige.svg");
  background-size: 360px;
  mix-blend-mode: overlay;
}
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s ease, transform .7s ease; }
.reveal.is-visible { opacity: 1; transform: none; }

.notice-ribbon { background: var(--ferkla-accent); color: #102d3d; font-weight: 700; }
.notice-ribbon__inner { min-height: 40px; display: flex; align-items: center; justify-content: center; gap: 10px; }
.notice-ribbon__icon { display: inline-flex; }
.notice-ribbon a { text-decoration: underline; text-underline-offset: 4px; }

.topbar { background: var(--ferkla-deep); color: rgba(255,255,255,.82); font-size: 13px; }
.topbar__inner { min-height: 38px; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.topbar__meta, .topbar__actions { display: flex; align-items: center; gap: 14px; }
.topbar__divider { width: 1px; height: 14px; background: rgba(255,255,255,.2); }
.topbar__actions a { display: inline-flex; align-items: center; gap: 6px; transition: color .2s; }
.topbar__actions a:hover { color: #fff; }

.site-header { background: rgba(255,255,255,.97); border-bottom: var(--border); position: relative; z-index: 100; }
.site-header__identity { min-height: 116px; display: flex; align-items: center; justify-content: space-between; gap: 30px; }
.brand { display: flex; align-items: center; gap: 17px; min-width: 0; }
.brand__mark { width: 78px; height: 78px; flex: 0 0 78px; border-radius: 22px 22px 8px 22px; display: grid; place-items: center; color: #fff; background: linear-gradient(145deg, var(--ferkla-primary), var(--ferkla-deep)); box-shadow: 0 14px 30px rgba(18,63,99,.22); overflow: hidden; position: relative; }
.brand__mark::after { content: ""; position: absolute; inset: 7px; border: 1px solid rgba(255,255,255,.25); border-radius: 17px 17px 5px 17px; pointer-events: none; }
.brand__mark .custom-logo { width: 100%; height: 100%; object-fit: contain; padding: 7px; position: relative; z-index: 1; }
.brand__monogram { font-family: var(--ferkla-heading-font); font-size: 23px; font-weight: 800; letter-spacing: -2px; }
.brand__text { min-width: 0; display: grid; gap: 2px; }
.brand__text small { font-size: 12px; color: var(--ferkla-secondary); font-weight: 700; }
.brand__text strong { font-family: var(--ferkla-heading-font); font-size: clamp(22px, 2.2vw, 34px); color: var(--ferkla-primary); white-space: nowrap; }
.brand__text em { font-style: normal; font-size: 13px; color: var(--ferkla-muted); }
.identity-actions { display: flex; align-items: center; gap: 18px; }
.social-links { display: flex; align-items: center; gap: 8px; }
.social-links a { width: 36px; height: 36px; display: grid; place-items: center; border-radius: 50%; border: var(--border); color: var(--ferkla-primary); background: #fff; transition: transform .2s, background .2s, color .2s; }
.social-links a:hover { transform: translateY(-3px); background: var(--ferkla-primary); color: #fff; }
.header-cta { min-height: 46px; padding: 0 18px; display: inline-flex; align-items: center; gap: 9px; border-radius: 14px; background: var(--ferkla-accent); color: var(--ferkla-deep); font-weight: 800; box-shadow: 0 10px 22px rgba(213,163,53,.25); }

.navigation-bar { background: #fff; border-top: var(--border); box-shadow: 0 6px 18px rgba(8,40,62,.04); }
.has-sticky-header .navigation-bar { position: sticky; top: 0; z-index: 1000; }
.navigation-bar__inner { min-height: 60px; display: flex; align-items: stretch; }
.primary-navigation { flex: 1; min-width: 0; }
.primary-menu { display: flex; align-items: stretch; list-style: none; height: 100%; }
.primary-menu > li { position: relative; display: flex; align-items: stretch; }
.primary-menu > li > a { display: flex; align-items: center; min-height: 60px; padding: 0 16px; font-weight: 700; color: var(--ferkla-deep); position: relative; transition: color .2s, background .2s; }
.primary-menu > li > a::after { content: ""; position: absolute; right: 16px; left: 16px; bottom: 0; height: 3px; background: var(--ferkla-accent); transform: scaleX(0); transition: transform .2s; }
.primary-menu > li:hover > a, .primary-menu > .current-menu-item > a, .primary-menu > .current-menu-ancestor > a { color: var(--ferkla-secondary); background: rgba(8,127,140,.045); }
.primary-menu > li:hover > a::after, .primary-menu > .current-menu-item > a::after, .primary-menu > .current-menu-ancestor > a::after { transform: scaleX(1); }
.primary-menu .sub-menu { position: absolute; top: calc(100% + 1px); right: 0; min-width: 250px; list-style: none; padding: 10px; background: #fff; border: var(--border); border-radius: 0 0 16px 16px; box-shadow: var(--shadow-lg); opacity: 0; visibility: hidden; transform: translateY(10px); transition: .2s ease; }
.primary-menu li:hover > .sub-menu, .primary-menu li:focus-within > .sub-menu { opacity: 1; visibility: visible; transform: none; }
.primary-menu .sub-menu a { display: block; padding: 10px 13px; border-radius: 10px; font-weight: 600; }
.primary-menu .sub-menu a:hover { background: var(--ferkla-bg); color: var(--ferkla-secondary); }
.search-toggle, .menu-toggle { border: 0; background: transparent; color: var(--ferkla-primary); display: inline-flex; align-items: center; justify-content: center; gap: 8px; font-weight: 700; }
.search-toggle { padding: 0 18px; border-right: var(--border); }
.menu-toggle { display: none; }
.menu-toggle__close { display: none; }
.menu-toggle[aria-expanded="true"] .menu-toggle__open { display: none; }
.menu-toggle[aria-expanded="true"] .menu-toggle__close { display: inline-flex; }
.site-search { background: var(--ferkla-deep); padding: 16px 0; }
.search-form { display: flex; gap: 10px; width: 100%; }
.search-form label { flex: 1; }
.search-field { width: 100%; min-height: 48px; border: 1px solid rgba(255,255,255,.2); border-radius: 12px; padding: 0 15px; background: #fff; color: var(--ferkla-text); outline: none; }
.search-field:focus { border-color: var(--ferkla-accent); box-shadow: 0 0 0 3px rgba(213,163,53,.18); }
.search-submit { border: 0; min-width: 110px; border-radius: 12px; background: var(--ferkla-accent); color: var(--ferkla-deep); font-weight: 800; display: inline-flex; align-items: center; justify-content: center; gap: 8px; }

.hero-section { padding: 26px 0 0; background: linear-gradient(180deg, #fff 0%, var(--ferkla-bg) 100%); }
.hero-shell { padding: 0 0 86px; }
.hero-shell::before { content: ""; position: absolute; width: 520px; height: 520px; left: -160px; top: -170px; border-radius: 50%; background: radial-gradient(circle, rgba(8,127,140,.18), transparent 68%); pointer-events: none; z-index: -1; }
.hero-layout { display: grid; grid-template-columns: minmax(0, 1.95fr) minmax(300px, .85fr); gap: 22px; align-items: stretch; }
.hero-slider { min-height: 550px; border-radius: calc(var(--ferkla-radius) + 6px); overflow: hidden; position: relative; box-shadow: var(--shadow-lg); background: var(--ferkla-deep); }
.hero-slider__track { position: relative; min-height: inherit; }
.hero-slide { position: absolute; inset: 0; opacity: 0; visibility: hidden; transform: scale(1.025); transition: opacity .7s, visibility .7s, transform 1.1s; }
.hero-slide.is-active { opacity: 1; visibility: visible; transform: none; }
.hero-slide > img { width: 100%; height: 100%; object-fit: cover; position: absolute; inset: 0; }
.hero-slide__shade { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(8,40,62,.08) 15%, rgba(8,40,62,.7) 65%, rgba(8,40,62,.93) 100%); }
.hero-slide__content { position: absolute; z-index: 2; right: clamp(22px, 4vw, 64px); bottom: clamp(34px, 6vw, 72px); width: min(58%, 620px); padding: 0; color: #fff; }
.hero-slide__meta { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; font-size: 13px; }
.hero-slide__meta span { padding: 6px 11px; border-radius: 99px; background: var(--ferkla-accent); color: var(--ferkla-deep); font-weight: 800; }
.hero-slide__meta time { color: rgba(255,255,255,.72); }
.hero-slide h1 { color: #fff; font-size: clamp(30px, 3.15vw, 46px); line-height: 1.08; max-width: 16ch; margin-bottom: 14px; text-wrap: balance; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.hero-slide p { max-width: 58ch; color: rgba(255,255,255,.86); font-size: 17px; line-height: 1.9; margin-bottom: 22px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.hero-slider__controls { position: absolute; left: 24px; bottom: 24px; display: flex; align-items: center; gap: 10px; z-index: 10; }
.hero-slider__controls > button { width: 42px; height: 42px; border-radius: 50%; border: 1px solid rgba(255,255,255,.25); background: rgba(8,40,62,.5); color: #fff; display: grid; place-items: center; backdrop-filter: blur(8px); }
.hero-slider__dots { display: flex; gap: 6px; }
.hero-slider__dots button { width: 8px; height: 8px; padding: 0; border: 0; border-radius: 50%; background: rgba(255,255,255,.45); transition: width .2s, background .2s; }
.hero-slider__dots button.is-active { width: 24px; border-radius: 99px; background: var(--ferkla-accent); }
.citizen-panel { border-radius: calc(var(--ferkla-radius) + 6px); overflow: hidden; background: #fff; border: var(--border); box-shadow: var(--shadow-sm); display: flex; flex-direction: column; }
.citizen-panel__top { padding: 30px 28px 20px; background: linear-gradient(145deg, var(--ferkla-primary), var(--ferkla-deep)); color: #fff; position: relative; overflow: hidden; }
.citizen-panel__top::after { content: ""; position: absolute; width: 180px; height: 180px; border: 30px solid rgba(255,255,255,.06); border-radius: 50%; left: -65px; top: -70px; }
.citizen-panel__top span { color: var(--ferkla-accent); font-weight: 800; font-size: 13px; }
.citizen-panel__top h2 { color: #fff; font-size: 28px; margin: 5px 0 8px; }
.citizen-panel__top p { color: rgba(255,255,255,.72); font-size: 14px; }
.citizen-search { display: flex; margin: 20px; border: var(--border); border-radius: 14px; overflow: hidden; background: var(--ferkla-bg); }
.citizen-search input { min-width: 0; flex: 1; border: 0; background: transparent; padding: 0 14px; outline: none; }
.citizen-search button { width: 50px; border: 0; color: #fff; background: var(--ferkla-secondary); display: grid; place-items: center; }
.citizen-panel__links { padding: 0 20px 16px; display: grid; }
.citizen-panel__links a { display: grid; grid-template-columns: 44px 1fr auto; align-items: center; gap: 11px; padding: 13px 0; border-bottom: var(--border); }
.citizen-panel__links a > span { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; color: var(--ferkla-secondary); background: rgba(8,127,140,.09); }
.citizen-panel__links a strong { font-size: 15px; }
.citizen-panel__links a > .icon { color: var(--ferkla-muted); }
.citizen-panel__contact { margin-top: auto; padding: 18px 20px; display: flex; align-items: center; gap: 12px; background: #edf4f4; }
.citizen-panel__contact > span { width: 45px; height: 45px; border-radius: 50%; display: grid; place-items: center; background: var(--ferkla-accent); color: var(--ferkla-deep); }
.citizen-panel__contact small { display: block; color: var(--ferkla-muted); }
.citizen-panel__contact a { font-size: 17px; font-weight: 800; color: var(--ferkla-primary); direction: ltr; display: inline-block; }

.button { min-height: 48px; padding: 0 20px; border-radius: 13px; display: inline-flex; align-items: center; justify-content: center; gap: 9px; font-weight: 800; transition: transform .2s, box-shadow .2s, background .2s; }
.button:hover { transform: translateY(-2px); }
.button--gold { background: var(--ferkla-accent); color: var(--ferkla-deep); box-shadow: 0 12px 26px rgba(213,163,53,.22); }
.button--primary { background: var(--ferkla-primary); color: #fff; }
.button--light { background: #fff; color: var(--ferkla-primary); }
.button--outline { border: 1px solid currentColor; color: var(--ferkla-primary); }
.text-link { display: inline-flex; align-items: center; gap: 8px; color: var(--ferkla-secondary); font-weight: 800; font-size: 14px; }
.text-link .icon { transition: transform .2s; }
.text-link:hover .icon { transform: translateX(-4px); }

.services-dock { margin-top: -58px; position: relative; z-index: 20; }
.services-dock > .container { background: #fff; border: var(--border); border-radius: calc(var(--ferkla-radius) + 8px); box-shadow: var(--shadow-lg); padding: 24px 28px 26px; }
.services-heading { display: flex; align-items: end; justify-content: space-between; gap: 30px; padding-bottom: 18px; border-bottom: var(--border); }
.services-heading span { font-size: 12px; font-weight: 800; color: var(--ferkla-secondary); }
.services-heading h2 { font-size: clamp(24px, 3vw, 36px); }
.services-heading p { max-width: 480px; color: var(--ferkla-muted); font-size: 14px; }
.services-menu { list-style: none; display: grid; grid-template-columns: repeat(6, 1fr); gap: 12px; margin-top: 20px; }
.services-menu li { min-width: 0; }
.services-menu a { min-height: 124px; padding: 18px 10px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; text-align: center; border-radius: 18px; background: linear-gradient(180deg, #fff, rgba(18,63,99,.035)); border: 1px solid rgba(18,63,99,.1); font-weight: 800; font-size: 14px; transition: transform .25s, border-color .25s, box-shadow .25s; }
.services-menu a:hover { transform: translateY(-7px); border-color: var(--ferkla-accent); box-shadow: 0 16px 30px rgba(8,40,62,.1); }
.service-link__icon { width: 54px; height: 54px; border-radius: 18px 18px 7px 18px; display: grid; place-items: center; color: #fff; background: var(--ferkla-primary); box-shadow: 0 10px 20px rgba(18,63,99,.2); }
.services-menu li:nth-child(2n) .service-link__icon { background: var(--ferkla-secondary); }
.services-menu li:nth-child(3n) .service-link__icon { background: #b94843; }
.services-menu li:nth-child(4n) .service-link__icon { background: #9b7414; }
.service-link__icon .icon { width: 26px; height: 26px; }

.section-space { padding: 88px 0; }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 30px; margin-bottom: 30px; }
.section-heading > div:first-child { position: relative; padding-right: 20px; }
.section-heading__mark { position: absolute; right: 0; top: 4px; width: 5px; height: 48px; border-radius: 99px; background: linear-gradient(var(--ferkla-accent), var(--ferkla-secondary)); }
.section-heading h2 { font-size: clamp(27px, 3.2vw, 42px); }
.section-heading p { max-width: 670px; color: var(--ferkla-muted); margin-top: 8px; }

.content-hub__grid { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 32px; align-items: start; }
.news-layout { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(280px, .75fr); gap: 20px; }
.featured-news { border-radius: var(--ferkla-radius); overflow: hidden; background: #fff; border: var(--border); box-shadow: var(--shadow-sm); }
.featured-news__image { display: block; aspect-ratio: 1.55; position: relative; overflow: hidden; }
.featured-news__image img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.featured-news:hover img { transform: scale(1.04); }
.featured-news__image span { position: absolute; right: 18px; top: 18px; padding: 6px 10px; border-radius: 99px; background: var(--ferkla-accent); color: var(--ferkla-deep); font-size: 12px; font-weight: 800; }
.featured-news__body { padding: 23px; }
.post-meta { display: flex; align-items: center; gap: 7px; color: var(--ferkla-muted); font-size: 12px; }
.featured-news h3 { font-size: clamp(21px, 2.3vw, 30px); margin: 8px 0 10px; }
.featured-news p { color: var(--ferkla-muted); margin-bottom: 16px; }
.news-list { display: grid; gap: 12px; align-content: start; }
.news-list-item { display: grid; grid-template-columns: 112px 1fr; gap: 13px; background: #fff; border: var(--border); border-radius: 16px; padding: 10px; transition: transform .2s, box-shadow .2s; }
.news-list-item:hover { transform: translateY(-3px); box-shadow: var(--shadow-sm); }
.news-list-item__image { border-radius: 11px; overflow: hidden; min-height: 95px; }
.news-list-item__image img { width: 100%; height: 100%; object-fit: cover; }
.news-list-item h3 { font-size: 15px; margin: 5px 0 8px; }
.news-list-item .text-link { font-size: 12px; }
.announcements-zone { background: var(--ferkla-deep); color: #fff; border-radius: calc(var(--ferkla-radius) + 4px); overflow: hidden; box-shadow: var(--shadow-lg); }
.announcements-zone__head { padding: 25px 24px; display: flex; justify-content: space-between; align-items: start; background: linear-gradient(145deg, var(--ferkla-primary), var(--ferkla-deep)); border-bottom: 1px solid rgba(255,255,255,.1); }
.announcements-zone__head span { color: var(--ferkla-accent); font-size: 12px; font-weight: 800; }
.announcements-zone__head h2 { color: #fff; font-size: 25px; margin-top: 4px; }
.announcements-zone__head > a { width: 38px; height: 38px; display: grid; place-items: center; border: 1px solid rgba(255,255,255,.22); border-radius: 12px; }
.announcement-list { padding: 6px 22px; }
.announcement-list article { display: grid; grid-template-columns: 54px 1fr; gap: 13px; padding: 17px 0; border-bottom: 1px solid rgba(255,255,255,.1); }
.announcement-list article:last-child { border-bottom: 0; }
.announcement-date { width: 52px; height: 58px; border-radius: 12px; background: rgba(255,255,255,.08); display: grid; place-items: center; align-content: center; line-height: 1.1; }
.announcement-date strong { font-size: 20px; color: var(--ferkla-accent); }
.announcement-date span { font-size: 11px; color: rgba(255,255,255,.65); text-transform: uppercase; }
.announcement-type { font-size: 10px; color: var(--ferkla-accent); font-weight: 700; }
.announcement-list h3 { color: #fff; font-size: 14px; margin-top: 3px; }
.home-sidebar-widgets { padding: 0 22px 18px; }

.stats-strip { background: var(--ferkla-primary); color: #fff; position: relative; overflow: hidden; }
.stats-strip::before { content: ""; position: absolute; width: 400px; height: 400px; right: -130px; top: -220px; border: 70px solid rgba(255,255,255,.04); border-radius: 50%; }
.stats-grid { min-height: 172px; display: grid; grid-template-columns: repeat(4, 1fr); align-items: center; }
.stat-item { text-align: center; padding: 20px; position: relative; }
.stat-item:not(:last-child)::after { content: ""; position: absolute; left: 0; top: 28%; bottom: 28%; width: 1px; background: rgba(255,255,255,.18); }
.stat-item strong { display: block; font-family: var(--ferkla-heading-font); font-size: clamp(38px, 5vw, 64px); line-height: 1; color: var(--ferkla-accent); }
.stat-item span { display: block; margin-top: 9px; color: rgba(255,255,255,.8); font-weight: 700; }

.projects-section { background: #fff; }
.projects-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.project-card { border-radius: var(--ferkla-radius); overflow: hidden; background: var(--ferkla-bg); border: var(--border); transition: transform .25s, box-shadow .25s; }
.project-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-lg); }
.project-card__image { display: block; aspect-ratio: 1.48; overflow: hidden; }
.project-card__image img { width: 100%; height: 100%; object-fit: cover; transition: transform .55s; }
.project-card:hover img { transform: scale(1.05); }
.project-card__body { padding: 22px; }
.project-card h3 { font-size: 22px; margin: 8px 0; }
.project-card p { color: var(--ferkla-muted); margin-bottom: 13px; font-size: 14px; }

.documents-section { background: linear-gradient(145deg, #e9f1f2, #f8fafb); }
.documents-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.document-column { border-radius: var(--ferkla-radius); background: rgba(255,255,255,.92); border: var(--border); padding: 24px; box-shadow: var(--shadow-sm); }
.document-column__head { display: flex; align-items: center; gap: 13px; padding-bottom: 18px; border-bottom: var(--border); }
.document-column__head > span { width: 54px; height: 54px; display: grid; place-items: center; border-radius: 17px; background: var(--ferkla-primary); color: #fff; }
.document-column--transparency .document-column__head > span { background: var(--ferkla-secondary); }
.document-column--publications .document-column__head > span { background: #a17919; }
.document-column__head small { color: var(--ferkla-muted); }
.document-column__head h2 { font-size: 22px; }
.document-list { display: grid; margin: 11px 0 18px; }
.document-list > a { display: grid; grid-template-columns: 39px 1fr auto; gap: 10px; align-items: center; padding: 13px 0; border-bottom: var(--border); }
.document-list > a:last-child { border-bottom: 0; }
.document-list__icon { width: 38px; height: 38px; border-radius: 11px; background: var(--ferkla-bg); color: var(--ferkla-secondary); display: grid; place-items: center; }
.document-list strong { display: block; font-size: 14px; line-height: 1.5; }
.document-list small { color: var(--ferkla-muted); }

.contact-banner { padding: 70px 0; background: #fff; }
.contact-banner__inner { padding: 40px 46px; border-radius: calc(var(--ferkla-radius) + 8px); background: linear-gradient(120deg, var(--ferkla-deep), var(--ferkla-primary)); color: #fff; display: flex; align-items: center; justify-content: space-between; gap: 35px; position: relative; overflow: hidden; box-shadow: var(--shadow-lg); }
.contact-banner__inner::after { content: ""; position: absolute; width: 260px; height: 260px; left: -90px; top: -100px; border: 50px solid rgba(255,255,255,.05); border-radius: 50%; }
.contact-banner span { color: var(--ferkla-accent); font-weight: 800; font-size: 13px; }
.contact-banner h2 { color: #fff; font-size: clamp(25px, 3vw, 38px); margin: 5px 0; }
.contact-banner p { color: rgba(255,255,255,.72); }
.contact-banner__actions { display: flex; gap: 10px; flex: 0 0 auto; position: relative; z-index: 1; }

.ad-zone { width: min(calc(100% - 40px), var(--ferkla-container)); margin: 24px auto; min-height: 20px; text-align: center; position: relative; overflow: hidden; }
.ad-zone__label { display: block; color: var(--ferkla-muted); font-size: 10px; margin-bottom: 6px; }
.ad-zone__placeholder { min-height: 92px; border: 1px dashed rgba(18,63,99,.25); border-radius: 14px; display: grid; place-items: center; align-content: center; color: var(--ferkla-muted); background: rgba(255,255,255,.55); }
.ad-zone__placeholder small { display: block; }

.breadcrumbs { padding-top: 20px; }
.breadcrumbs ol { list-style: none; display: flex; flex-wrap: wrap; align-items: center; gap: 7px; color: var(--ferkla-muted); font-size: 13px; }
.breadcrumbs li { display: flex; align-items: center; gap: 7px; }
.breadcrumbs li:not(:last-child)::after { content: "/"; opacity: .45; }
.breadcrumbs a { display: inline-flex; align-items: center; gap: 5px; color: var(--ferkla-secondary); }
.inner-main { padding: 34px 0 90px; }
.archive-layout, .singular-layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 32px; align-items: start; }
.page-layout { max-width: 1000px; }
.archive-header, .page-header, .single-header { padding: 34px 38px; margin-bottom: 28px; border-radius: var(--ferkla-radius); background: linear-gradient(145deg, #fff, #edf4f5); border: var(--border); position: relative; overflow: hidden; }
.archive-header::after, .page-header::after, .single-header::after { content: ""; position: absolute; width: 180px; height: 180px; left: -60px; top: -80px; border: 28px solid rgba(8,127,140,.05); border-radius: 50%; }
.archive-header > span, .page-header > span { color: var(--ferkla-secondary); font-size: 13px; font-weight: 800; }
.archive-header h1, .page-header h1, .single-header h1 { font-size: clamp(30px, 4vw, 50px); }
.archive-description, .page-header p { color: var(--ferkla-muted); margin-top: 10px; max-width: 760px; }
.archive-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.archive-card { border-radius: var(--ferkla-radius); overflow: hidden; background: #fff; border: var(--border); box-shadow: var(--shadow-sm); }
.archive-card__image { display: block; aspect-ratio: 1.5; overflow: hidden; }
.archive-card__image img { width: 100%; height: 100%; object-fit: cover; transition: transform .45s; }
.archive-card:hover img { transform: scale(1.04); }
.archive-card__body { padding: 20px; }
.archive-card h2 { font-size: 21px; margin: 7px 0; }
.archive-card p { color: var(--ferkla-muted); margin-bottom: 12px; }
.navigation.pagination { margin-top: 32px; }
.nav-links { display: flex; gap: 8px; flex-wrap: wrap; }
.page-numbers { min-width: 42px; height: 42px; padding: 0 10px; display: grid; place-items: center; border-radius: 10px; background: #fff; border: var(--border); }
.page-numbers.current { background: var(--ferkla-primary); color: #fff; }
.site-sidebar { display: grid; gap: 18px; position: sticky; top: 90px; }
.widget { background: #fff; border: var(--border); border-radius: 18px; padding: 20px; box-shadow: var(--shadow-sm); }
.widget-title { font-size: 20px; margin-bottom: 15px; padding-bottom: 11px; border-bottom: 2px solid var(--ferkla-accent); }
.widget ul { list-style: none; display: grid; gap: 8px; }
.widget li { padding-bottom: 8px; border-bottom: var(--border); }
.widget li:last-child { border-bottom: 0; }
.widget a:hover { color: var(--ferkla-secondary); }
.single-article, .page-article { min-width: 0; }
.single-header__categories { display: flex; flex-wrap: wrap; gap: 7px; margin-bottom: 10px; }
.single-header__categories a { padding: 5px 10px; border-radius: 99px; background: var(--ferkla-secondary); color: #fff; font-size: 12px; font-weight: 700; }
.single-meta { display: flex; gap: 18px; margin-top: 15px; color: var(--ferkla-muted); font-size: 13px; }
.single-meta span { display: inline-flex; align-items: center; gap: 6px; }
.single-featured { margin: 0 0 28px; border-radius: var(--ferkla-radius); overflow: hidden; box-shadow: var(--shadow-sm); }
.single-featured img { width: 100%; }
.entry-content { background: #fff; border: var(--border); border-radius: var(--ferkla-radius); padding: clamp(24px, 4vw, 52px); box-shadow: var(--shadow-sm); font-size: 17px; }
.entry-content > *:first-child { margin-top: 0; }
.entry-content > *:last-child { margin-bottom: 0; }
.entry-content h2, .entry-content h3, .entry-content h4 { margin-top: 1.7em; margin-bottom: .6em; }
.entry-content h2 { font-size: 30px; }
.entry-content h3 { font-size: 24px; }
.entry-content p, .entry-content ul, .entry-content ol, .entry-content blockquote, .entry-content table { margin-bottom: 1.2em; }
.entry-content ul, .entry-content ol { padding-right: 1.4em; }
.entry-content a { color: var(--ferkla-secondary); text-decoration: underline; text-underline-offset: 3px; }
.entry-content blockquote { margin-inline: 0; padding: 20px 24px; border-right: 5px solid var(--ferkla-accent); background: var(--ferkla-bg); border-radius: 12px; }
.entry-content table { width: 100%; border-collapse: collapse; }
.entry-content th, .entry-content td { padding: 12px; border: var(--border); text-align: right; }
.entry-content th { background: var(--ferkla-primary); color: #fff; }
.single-footer { margin-top: 20px; padding: 18px; border-radius: 14px; background: #fff; border: var(--border); display: flex; justify-content: space-between; }
.post-navigation { margin-top: 18px; display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.post-navigation a { display: block; padding: 18px; border-radius: 14px; background: #fff; border: var(--border); font-weight: 700; }
.empty-state { grid-column: 1 / -1; min-height: 270px; display: grid; place-items: center; align-content: center; text-align: center; gap: 8px; padding: 30px; border: 1px dashed rgba(18,63,99,.22); border-radius: var(--ferkla-radius); background: rgba(255,255,255,.65); }
.empty-state > span { width: 62px; height: 62px; border-radius: 20px; display: grid; place-items: center; background: rgba(8,127,140,.1); color: var(--ferkla-secondary); }
.empty-message { color: var(--ferkla-muted); padding: 18px 0; }
.error-page { min-height: 65vh; display: grid; place-items: center; padding: 70px 0; }
.error-page__inner { text-align: center; max-width: 720px; }
.error-page__inner > span { display: block; font-family: var(--ferkla-heading-font); font-size: clamp(110px, 20vw, 220px); line-height: .85; color: rgba(18,63,99,.08); }
.error-page h1 { font-size: clamp(30px, 4vw, 50px); margin-top: -20px; }
.error-page p { color: var(--ferkla-muted); margin: 12px 0 24px; }
.error-page .search-form { margin-bottom: 16px; }

.site-footer { background: var(--ferkla-deep); color: rgba(255,255,255,.76); position: relative; overflow: hidden; }
.site-footer__pattern { position: absolute; inset: 0; opacity: .12; }
.site-footer__grid { position: relative; z-index: 1; padding: 70px 0 52px; display: grid; grid-template-columns: 1.35fr .8fr .8fr 1.1fr; gap: 34px; }
.footer-brand-row { display: flex; align-items: center; gap: 14px; margin-bottom: 17px; }
.footer-seal { width: 64px; height: 64px; display: grid; place-items: center; border-radius: 18px; background: #fff; color: var(--ferkla-primary); font-family: var(--ferkla-heading-font); font-weight: 800; overflow: hidden; }
.footer-logo { width: 100%; height: 100%; object-fit: contain; padding: 5px; }
.footer-about h2 { color: #fff; font-size: 24px; }
.footer-about .footer-brand-row p { font-size: 12px; color: var(--ferkla-accent); }
.footer-about > p { max-width: 430px; }
.footer-about .social-links { margin-top: 18px; }
.footer-about .social-links a { background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.12); color: #fff; }
.footer-column h3 { color: #fff; font-size: 18px; margin-bottom: 17px; position: relative; padding-bottom: 11px; }
.footer-column h3::after { content: ""; position: absolute; right: 0; bottom: 0; width: 36px; height: 3px; background: var(--ferkla-accent); border-radius: 99px; }
.footer-menu, .footer-column ul { list-style: none; display: grid; gap: 9px; }
.footer-menu a:hover, .footer-contact a:hover { color: #fff; }
.footer-contact li { display: grid; grid-template-columns: 23px 1fr; gap: 9px; align-items: start; }
.footer-contact .icon { color: var(--ferkla-accent); margin-top: 5px; }
.site-footer__bottom { position: relative; z-index: 1; border-top: 1px solid rgba(255,255,255,.1); }
.site-footer__bottom-inner { min-height: 60px; display: flex; align-items: center; justify-content: space-between; gap: 20px; font-size: 13px; }
.legal-menu { list-style: none; display: flex; gap: 15px; }

@media (max-width: 1120px) {
  .hero-layout { grid-template-columns: 1fr; }
  .citizen-panel { display: grid; grid-template-columns: 1fr 1.2fr; }
  .citizen-panel__top { grid-row: span 2; }
  .citizen-panel__contact { margin: 0; }
  .services-menu { grid-template-columns: repeat(3, 1fr); }
  .content-hub__grid { grid-template-columns: 1fr; }
  .announcements-zone { display: grid; grid-template-columns: 330px 1fr; }
  .announcements-zone__head { min-height: 100%; }
  .documents-grid { grid-template-columns: 1fr 1fr; }
  .site-footer__grid { grid-template-columns: 1.2fr 1fr 1fr; }
  .footer-contact-column { grid-column: 1 / -1; }
}

@media (max-width: 960px) {
  body.admin-bar.has-sticky-header .navigation-bar { top: 46px; }
  .identity-actions .social-links { display: none; }
  .menu-toggle { display: inline-flex; min-height: 58px; padding: 0 4px; }
  .navigation-bar__inner { justify-content: space-between; position: relative; }
  .primary-navigation { position: absolute; top: 100%; right: 0; left: 0; background: #fff; border: var(--border); box-shadow: var(--shadow-lg); padding: 12px; border-radius: 0 0 18px 18px; display: none; }
  .primary-navigation.is-open { display: block; }
  .primary-menu { height: auto; display: grid; }
  .primary-menu > li, .primary-menu > li > a { display: block; min-height: 0; width: 100%; }
  .primary-menu > li > a { padding: 12px; border-radius: 10px; }
  .primary-menu > li > a::after { display: none; }
  .primary-menu .sub-menu { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; border: 0; border-radius: 0; min-width: 0; padding: 2px 20px 8px 0; display: none; }
  .primary-menu li:hover > .sub-menu, .primary-menu li:focus-within > .sub-menu { display: block; }
  .search-toggle { margin-right: auto; min-height: 58px; }
  .news-layout { grid-template-columns: 1fr; }
  .news-list { grid-template-columns: repeat(2, 1fr); }
  .projects-grid { grid-template-columns: 1fr 1fr; }
  .archive-layout, .singular-layout { grid-template-columns: 1fr; }
  .site-sidebar { position: static; grid-template-columns: repeat(2, 1fr); }
  .site-sidebar .ad-zone { grid-column: 1 / -1; }
}

@media (max-width: 740px) {
  .container { width: min(calc(100% - 28px), var(--ferkla-container)); }
  .topbar__meta { width: 100%; justify-content: center; }
  .topbar__actions { display: none; }
  .site-header__identity { min-height: 92px; }
  .brand__mark { width: 62px; height: 62px; flex-basis: 62px; border-radius: 18px 18px 7px 18px; }
  .brand__text small, .brand__text em { display: none; }
  .brand__text strong { font-size: 21px; white-space: normal; }
  .header-cta { padding: 0 13px; }
  .header-cta span { display: none; }
  .hero-section { padding-top: 14px; }
  .hero-shell { padding-bottom: 72px; }
  .hero-slider { min-height: 510px; }
  .hero-slide__shade { background: linear-gradient(0deg, rgba(8,40,62,.94), rgba(8,40,62,.1)); }
  .hero-slide__content { right: 0; bottom: 0; width: 100%; padding: 28px 22px 74px; }
  .hero-slide h1 { font-size: clamp(27px, 7.3vw, 34px); line-height: 1.12; max-width: 18ch; }
  .hero-slide p { font-size: 15px; line-height: 1.85; }
  .hero-slider__controls { left: 18px; bottom: 17px; }
  .citizen-panel { display: block; }
  .citizen-panel__top { padding: 24px 20px; }
  .citizen-panel__links { padding-inline: 18px; }
  .services-dock { margin-top: -46px; }
  .services-dock > .container { padding: 20px 15px; }
  .services-heading { display: block; }
  .services-heading p { margin-top: 6px; }
  .services-menu { grid-template-columns: repeat(2, 1fr); gap: 9px; }
  .services-menu a { min-height: 115px; }
  .section-space { padding: 64px 0; }
  .section-heading { align-items: start; }
  .section-heading .text-link { display: none; }
  .news-list { grid-template-columns: 1fr; }
  .announcements-zone { display: block; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); padding: 24px 0; }
  .stat-item:nth-child(2)::after { display: none; }
  .projects-grid, .documents-grid, .archive-grid { grid-template-columns: 1fr; }
  .contact-banner__inner { padding: 30px 24px; display: block; }
  .contact-banner__actions { margin-top: 20px; flex-wrap: wrap; }
  .archive-header, .page-header, .single-header { padding: 27px 22px; }
  .entry-content { padding: 24px 20px; font-size: 16px; }
  .site-sidebar { grid-template-columns: 1fr; }
  .site-footer__grid { grid-template-columns: 1fr; padding: 52px 0 38px; }
  .footer-contact-column { grid-column: auto; }
  .site-footer__bottom-inner { padding: 16px 0; display: block; text-align: center; }
  .legal-menu { justify-content: center; margin-top: 8px; flex-wrap: wrap; }
  .post-navigation { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
  .notice-ribbon__inner { font-size: 12px; text-align: center; }
  .brand__text strong { font-size: 18px; }
  .hero-slider { min-height: 470px; }
  .hero-slide__content { padding: 24px 18px 72px; }
  .hero-slide h1 { font-size: 28px; max-width: 17ch; }
  .hero-slide p { -webkit-line-clamp: 2; }
  .button { min-height: 44px; padding: 0 16px; }
  .services-menu a { font-size: 13px; }
  .stat-item strong { font-size: 42px; }
  .contact-banner__actions .button { width: 100%; }
}

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

/* Homepage media and external services — v2.1 */
.media-links-section { position:relative; overflow:hidden; background:linear-gradient(145deg,#edf4f5 0%,#f9fbfb 42%,#eef5f4 100%); }
.media-links-atmosphere { position:absolute; inset:0; pointer-events:none; opacity:.72; background:radial-gradient(circle at 12% 20%,rgba(8,127,140,.13),transparent 28%),radial-gradient(circle at 88% 76%,rgba(213,163,53,.15),transparent 24%),linear-gradient(115deg,transparent 0 58%,rgba(18,63,99,.035) 58% 59%,transparent 59%); }
.media-links-atmosphere::after { content:""; position:absolute; inset:0; opacity:.35; background-image:url("../images/zellige.svg"); background-size:360px; mask-image:linear-gradient(90deg,transparent,#000 44%,#000 100%); }
.media-links-layout { position:relative; z-index:1; display:grid; grid-template-columns:minmax(0,2fr) minmax(330px,.82fr); gap:34px; align-items:start; }
.media-links-layout--wide { grid-template-columns:1fr; }
.media-zone { min-width:0; }
.media-cards { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:18px; }
.media-card { min-width:0; border-radius:calc(var(--ferkla-radius) + 2px); overflow:hidden; background:var(--ferkla-surface); border:1px solid rgba(18,63,99,.1); box-shadow:0 18px 42px rgba(8,40,62,.09); transition:transform .35s ease,box-shadow .35s ease,border-color .35s ease; }
.media-card:hover { transform:translateY(-7px); border-color:rgba(8,127,140,.3); box-shadow:0 24px 52px rgba(8,40,62,.15); }
.media-card__visual { position:relative; display:block; aspect-ratio:16/10; overflow:hidden; background:var(--ferkla-deep); }
.media-card__visual img { width:100%; height:100%; object-fit:cover; transition:transform .7s cubic-bezier(.2,.7,.2,1); }
.media-card:hover .media-card__visual img { transform:scale(1.055); }
.media-card__wash { position:absolute; inset:0; background:linear-gradient(180deg,rgba(8,40,62,.02) 20%,rgba(8,40,62,.72) 100%); }
.media-card__play { position:absolute; right:20px; bottom:18px; width:58px; height:58px; display:grid; place-items:center; border-radius:50%; color:#fff; background:linear-gradient(135deg,#d13b35,#a51f24); box-shadow:0 10px 28px rgba(119,24,28,.38),0 0 0 7px rgba(255,255,255,.17); transition:transform .3s ease; }
.media-card:hover .media-card__play { transform:scale(1.08) rotate(-3deg); }
.media-card__play .icon { width:28px; height:28px; stroke-width:1.5; }
.media-card__number { position:absolute; left:17px; top:15px; font-family:var(--ferkla-heading-font); font-size:12px; font-weight:800; color:#fff; padding:5px 9px; border:1px solid rgba(255,255,255,.32); border-radius:99px; background:rgba(8,40,62,.35); backdrop-filter:blur(8px); }
.media-card__body { min-height:154px; padding:20px 20px 22px; }
.media-card__eyebrow { display:inline-flex; align-items:center; gap:6px; margin-bottom:8px; color:var(--ferkla-secondary); font-size:11px; font-weight:800; letter-spacing:.4px; }
.media-card__eyebrow::before { content:""; width:18px; height:2px; border-radius:9px; background:var(--ferkla-accent); }
.media-card h3 { margin:0; font-size:18px; line-height:1.55; }
.media-card h3 a { color:var(--ferkla-primary); }
.media-card h3 a:hover { color:var(--ferkla-secondary); }
.media-card p { margin:9px 0 0; color:var(--ferkla-muted); font-size:13px; line-height:1.7; }
.media-zone__more { display:flex; justify-content:center; margin-top:24px; }
.external-links-panel { position:relative; padding:25px; overflow:hidden; border-radius:calc(var(--ferkla-radius) + 7px); background:linear-gradient(160deg,var(--ferkla-deep),#0d4a68 68%,#0b5964); box-shadow:0 24px 54px rgba(8,40,62,.2); }
.external-links-panel::before { content:""; position:absolute; width:280px; height:280px; left:-130px; top:-130px; border-radius:50%; border:1px solid rgba(255,255,255,.12); box-shadow:0 0 0 42px rgba(255,255,255,.025),0 0 0 84px rgba(255,255,255,.018); }
.external-links-panel__head { position:relative; z-index:1; margin-bottom:18px; }
.external-links-panel__head > span { color:var(--ferkla-accent); font-size:11px; font-weight:800; }
.external-links-panel__head h2 { color:#fff; font-size:25px; margin:4px 0 6px; }
.external-links-panel__head p { color:rgba(255,255,255,.67); font-size:13px; margin:0; line-height:1.7; }
.external-links-grid { position:relative; z-index:1; display:grid; grid-template-columns:1fr 1fr; gap:12px; }
.external-service-card { min-width:0; overflow:hidden; border-radius:16px; background:#fff; color:var(--ferkla-text); border:1px solid rgba(255,255,255,.22); box-shadow:0 9px 22px rgba(0,0,0,.12); transition:transform .28s ease,box-shadow .28s ease; }
.external-service-card:hover { transform:translateY(-4px); box-shadow:0 14px 28px rgba(0,0,0,.18); }
.external-service-card__image { display:grid; place-items:center; height:100px; overflow:hidden; background:#f4f7f8; border-bottom:1px solid #e6ecef; }
.external-service-card__image img { width:100%; height:100%; object-fit:contain; padding:10px; transition:transform .35s ease; }
.external-service-card:hover .external-service-card__image img { transform:scale(1.035); }
.external-service-card__fallback { width:54px; height:54px; display:grid; place-items:center; border-radius:16px; background:#e7f2f3; color:var(--ferkla-secondary); }
.external-service-card__fallback .icon { width:27px; height:27px; }
.external-service-card__body { display:grid; min-height:126px; align-content:start; padding:13px; }
.external-service-card__body strong { color:var(--ferkla-primary); font-size:14px; line-height:1.45; }
.external-service-card__body small { color:var(--ferkla-muted); font-size:11px; margin-top:3px; line-height:1.55; }
.external-service-card__body em { display:flex; align-items:center; justify-content:space-between; gap:6px; margin-top:auto; padding-top:12px; color:var(--ferkla-secondary); font-style:normal; font-size:11px; font-weight:800; }
.external-service-card__body em .icon { width:15px; height:15px; }
.video-lightbox[hidden] { display:none; }
.video-lightbox { position:fixed; inset:0; z-index:99999; display:grid; place-items:center; padding:24px; }
.video-lightbox__backdrop { position:absolute; inset:0; width:100%; height:100%; border:0; background:rgba(2,16,25,.88); backdrop-filter:blur(10px); cursor:zoom-out; }
.video-lightbox__dialog { position:relative; z-index:1; width:min(1040px,94vw); border-radius:20px; background:#071b27; box-shadow:0 28px 90px rgba(0,0,0,.52); animation:ferklaVideoIn .28s ease both; }
.video-lightbox__frame { aspect-ratio:16/9; overflow:hidden; border-radius:20px; }
.video-lightbox__frame iframe { width:100%; height:100%; border:0; display:block; }
.video-lightbox__close { position:absolute; z-index:2; top:-17px; left:-17px; width:46px; height:46px; display:grid; place-items:center; border:3px solid #fff; border-radius:50%; color:#fff; background:var(--ferkla-secondary); box-shadow:0 8px 24px rgba(0,0,0,.3); cursor:pointer; }
.video-lightbox__close .icon { width:21px; height:21px; }
body.has-video-modal { overflow:hidden; }
@keyframes ferklaVideoIn { from { opacity:0; transform:translateY(18px) scale(.975); } to { opacity:1; transform:none; } }
@media (max-width:1120px) {
  .media-links-layout { grid-template-columns:1fr; }
  .external-links-grid { grid-template-columns:repeat(4,minmax(0,1fr)); }
  .external-service-card__body { min-height:118px; }
}
@media (max-width:860px) {
  .media-cards { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .external-links-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
}
@media (max-width:590px) {
  .media-cards { grid-template-columns:1fr; }
  .media-card__body { min-height:0; }
  .external-links-panel { padding:20px 16px; }
  .external-links-grid { gap:9px; }
  .external-service-card__image { height:86px; }
  .external-service-card__body { min-height:116px; padding:11px; }
  .external-service-card__body strong { font-size:12px; }
  .video-lightbox { padding:12px; }
  .video-lightbox__dialog { width:100%; border-radius:14px; }
  .video-lightbox__frame { border-radius:14px; }
  .video-lightbox__close { top:-12px; left:-5px; width:40px; height:40px; }
}


/* Professional news, logos, footer credit and responsive polish — v2.2 */
.brand__mark .custom-logo,
.footer-seal .footer-logo { object-fit: contain; }
.footer-seal .footer-logo { width: 100%; height: 100%; padding: 8px; }
.footer-description { max-width: 44ch; }
.footer-copyright-wrap { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.developer-credit { margin: 0; }
.developer-credit a { display: inline-flex; align-items: center; min-height: 30px; padding: 3px 11px; border: 1px solid rgba(255,255,255,.18); border-radius: 999px; color: var(--ferkla-accent); font-weight: 800; letter-spacing: .2px; transition: background .2s, color .2s, border-color .2s; }
.developer-credit a:hover { background: var(--ferkla-accent); color: var(--ferkla-deep); border-color: var(--ferkla-accent); }

.news-layout--pro { display: grid; gap: 20px; }
.featured-news--pro { display: grid; grid-template-columns: minmax(0,1.18fr) minmax(285px,.82fr); min-height: 390px; border: 0; box-shadow: 0 24px 58px rgba(8,40,62,.13); }
.featured-news--pro .featured-news__image { aspect-ratio: auto; min-height: 390px; }
.featured-news--pro .featured-news__image::after { content:""; position:absolute; inset:0; background:linear-gradient(180deg,transparent 48%,rgba(8,40,62,.38)); }
.featured-news--pro .featured-news__body { padding: clamp(24px,3vw,38px); display:flex; flex-direction:column; justify-content:center; background:linear-gradient(145deg,#fff,#f8fbfb); position:relative; }
.featured-news--pro .featured-news__body::before { content:""; position:absolute; right:0; top:34px; bottom:34px; width:4px; border-radius:4px 0 0 4px; background:linear-gradient(var(--ferkla-accent),var(--ferkla-secondary)); }
.featured-news--pro h3 { font-size:clamp(24px,2.4vw,34px); }
.news-category-badge { z-index:2; }
.news-date-badge { position:absolute; left:18px; bottom:18px; z-index:2; padding:6px 11px; border:1px solid rgba(255,255,255,.3); border-radius:99px; color:#fff; background:rgba(8,40,62,.48); backdrop-filter:blur(8px); font-size:12px; font-weight:700; }
.news-read-button { width:max-content; margin-top:auto; background:#fff; }
.news-cards-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:18px; }
.news-card { min-width:0; overflow:hidden; border-radius:calc(var(--ferkla-radius) - 2px); background:var(--ferkla-surface); border:1px solid rgba(18,63,99,.1); box-shadow:0 14px 34px rgba(8,40,62,.075); transition:transform .28s ease,box-shadow .28s ease,border-color .28s ease; }
.news-card:hover { transform:translateY(-6px); border-color:rgba(8,127,140,.26); box-shadow:0 22px 46px rgba(8,40,62,.14); }
.news-card__image { display:block; position:relative; aspect-ratio:16/9; overflow:hidden; background:var(--ferkla-deep); }
.news-card__image img { width:100%; height:100%; object-fit:cover; transition:transform .55s cubic-bezier(.2,.7,.2,1); }
.news-card:hover .news-card__image img { transform:scale(1.055); }
.news-card__image::after { content:""; position:absolute; inset:0; background:linear-gradient(180deg,transparent 55%,rgba(8,40,62,.45)); }
.news-card__image span { position:absolute; z-index:2; right:14px; bottom:13px; padding:5px 9px; border-radius:99px; color:var(--ferkla-deep); background:var(--ferkla-accent); font-size:11px; font-weight:800; }
.news-card__body { padding:20px; }
.news-card__body time { display:block; color:var(--ferkla-secondary); font-size:12px; font-weight:700; }
.news-card__body h3,.news-card__body h2 { margin:7px 0 9px; font-size:18px; line-height:1.55; }
.news-card__body p { margin-bottom:12px; color:var(--ferkla-muted); font-size:13px; }
.news-archive-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }

.stat-item strong,.stat-item span { overflow-wrap:anywhere; }
.contact-banner__actions .button { text-align:center; }
.site-footer__grid > *,.content-hub__grid > *,.news-cards-grid > *,.projects-grid > *,.documents-grid > * { min-width:0; }

@media (max-width:1180px) {
  .featured-news--pro { grid-template-columns:1fr; }
  .featured-news--pro .featured-news__image { min-height:360px; }
  .featured-news--pro .featured-news__body { min-height:300px; }
}
@media (max-width:860px) {
  .news-cards-grid,.news-archive-grid { grid-template-columns:1fr 1fr; }
  .featured-news--pro .featured-news__image { min-height:330px; }
  .footer-copyright-wrap { justify-content:center; }
}
@media (max-width:640px) {
  .container { width:min(calc(100% - 28px),var(--ferkla-container)); }
  .news-cards-grid,.news-archive-grid { grid-template-columns:1fr; }
  .featured-news--pro { min-height:0; }
  .featured-news--pro .featured-news__image { min-height:260px; }
  .featured-news--pro .featured-news__body { min-height:0; padding:24px 20px; }
  .featured-news--pro .featured-news__body::before { top:22px; bottom:22px; }
  .news-read-button { margin-top:8px; width:100%; }
  .site-footer__bottom-inner { display:grid; justify-items:center; }
  .footer-copyright-wrap { display:grid; justify-items:center; gap:8px; }
  .developer-credit a { min-height:34px; }
}
@media (max-width:380px) {
  .container { width:min(calc(100% - 20px),var(--ferkla-container)); }
  .brand { gap:10px; }
  .brand__mark { width:54px; height:54px; flex-basis:54px; }
  .brand__text strong { font-size:16px; }
  .stats-grid { grid-template-columns:1fr; }
  .stat-item:not(:last-child)::after { left:18%; right:18%; top:auto; bottom:0; width:auto; height:1px; }
}

/* News and development projects layout repair — v2.3 */
.content-hub__grid--single {
  grid-template-columns: minmax(0, 1fr);
}
.content-hub__grid--single .news-zone,
.content-hub__grid--single .announcements-zone {
  width: 100%;
  max-width: none;
}
.news-zone {
  min-width: 0;
}
.news-layout--pro {
  grid-template-columns: minmax(0, 1fr) !important;
  width: 100%;
}
.featured-news--pro {
  width: 100%;
  min-width: 0;
  grid-template-columns: minmax(0, 1.08fr) minmax(330px, .92fr);
  border: 1px solid rgba(18, 63, 99, .08);
  background: var(--ferkla-surface);
}
.featured-news--pro .featured-news__image,
.featured-news--pro .featured-news__body {
  min-width: 0;
}
.featured-news--pro .featured-news__image img {
  object-position: center;
}
.featured-news--pro h3 {
  font-size: clamp(23px, 2.15vw, 32px);
  line-height: 1.38;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 4;
  overflow: hidden;
}
.featured-news--pro .featured-news__body > p {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  overflow: hidden;
  line-height: 1.9;
}
.news-cards-grid {
  width: 100%;
  margin-top: 2px;
}
.news-card {
  display: flex;
  flex-direction: column;
  height: 100%;
}
.news-card__body {
  display: flex;
  flex: 1;
  flex-direction: column;
}
.news-card__body h3,
.news-card__body h2 {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
}
.news-card__body p {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
  line-height: 1.8;
}
.news-card__body .text-link {
  margin-top: auto;
}
.content-hub__grid:not(.content-hub__grid--single) .featured-news--pro {
  grid-template-columns: minmax(0, 1fr);
}
.content-hub__grid:not(.content-hub__grid--single) .featured-news--pro .featured-news__image {
  min-height: 320px;
}
.content-hub__grid:not(.content-hub__grid--single) .featured-news--pro .featured-news__body {
  min-height: 0;
}

.projects-section {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 10% 15%, rgba(8, 127, 140, .08), transparent 28%),
    linear-gradient(180deg, rgba(255, 255, 255, .35), rgba(242, 246, 247, .82));
}
.projects-section::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: .28;
  background-image: linear-gradient(rgba(18, 63, 99, .035) 1px, transparent 1px), linear-gradient(90deg, rgba(18, 63, 99, .035) 1px, transparent 1px);
  background-size: 32px 32px;
  mask-image: linear-gradient(to bottom, transparent, #000 22%, #000 78%, transparent);
}
.projects-section > .container {
  position: relative;
  z-index: 1;
}
.projects-grid {
  align-items: stretch;
}
.projects-grid--single {
  grid-template-columns: minmax(0, 1fr);
}
.projects-grid--two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.projects-grid--multi {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.project-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  height: 100%;
  border: 1px solid rgba(18, 63, 99, .10);
  background: rgba(255, 255, 255, .96);
  box-shadow: 0 16px 38px rgba(8, 40, 62, .075);
}
.project-card__image {
  position: relative;
  min-width: 0;
  background: var(--ferkla-deep);
}
.project-card__image::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 42%, rgba(8, 40, 62, .62));
  pointer-events: none;
}
.project-card__badge,
.project-card__number {
  position: absolute;
  z-index: 2;
}
.project-card__badge {
  top: 16px;
  right: 16px;
  max-width: calc(100% - 84px);
  padding: 7px 12px;
  overflow: hidden;
  border-radius: 999px;
  color: var(--ferkla-deep);
  background: var(--ferkla-accent);
  font-size: 12px;
  font-weight: 800;
  text-overflow: ellipsis;
  white-space: nowrap;
  box-shadow: 0 8px 22px rgba(8, 40, 62, .18);
}
.project-card__number {
  left: 16px;
  bottom: 13px;
  color: rgba(255, 255, 255, .92);
  font-family: var(--ferkla-heading-font);
  font-size: 34px;
  font-weight: 800;
  line-height: 1;
  text-shadow: 0 6px 22px rgba(0, 0, 0, .28);
}
.project-card__body {
  display: flex;
  flex: 1;
  flex-direction: column;
  min-width: 0;
  padding: 24px;
}
.project-card__meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  color: var(--ferkla-muted);
  font-size: 12px;
  font-weight: 700;
}
.project-card__meta time,
.project-card__meta span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.project-card__meta .icon {
  width: 16px;
  height: 16px;
  color: var(--ferkla-secondary);
}
.project-card__meta > span {
  color: var(--ferkla-secondary);
}
.project-card h3 {
  margin: 12px 0 10px;
  font-size: clamp(19px, 1.55vw, 24px);
  line-height: 1.55;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
}
.project-card p {
  margin-bottom: 18px;
  color: var(--ferkla-muted);
  font-size: 14px;
  line-height: 1.9;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  overflow: hidden;
}
.project-card__button {
  width: max-content;
  margin-top: auto;
  background: #fff;
}
.projects-grid--single .project-card {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(340px, .92fr);
  min-height: 410px;
  overflow: hidden;
}
.projects-grid--single .project-card__image {
  aspect-ratio: auto;
  min-height: 410px;
}
.projects-grid--single .project-card__body {
  justify-content: center;
  padding: clamp(26px, 4vw, 46px);
  background: linear-gradient(145deg, #fff, #f7fbfb);
}
.projects-grid--single .project-card h3 {
  font-size: clamp(25px, 2.3vw, 34px);
  -webkit-line-clamp: 3;
}
.projects-grid--single .project-card p {
  font-size: 15px;
  -webkit-line-clamp: 4;
}

@media (max-width: 1180px) {
  .content-hub__grid--single .featured-news--pro {
    grid-template-columns: minmax(0, 1fr) minmax(310px, .9fr);
  }
  .projects-grid--multi {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 960px) {
  .content-hub__grid--single .featured-news--pro,
  .projects-grid--single .project-card {
    grid-template-columns: minmax(0, 1fr);
  }
  .content-hub__grid--single .featured-news--pro .featured-news__image,
  .projects-grid--single .project-card__image {
    min-height: 340px;
  }
  .projects-grid--single .project-card {
    min-height: 0;
  }
}
@media (max-width: 740px) {
  .projects-grid--two,
  .projects-grid--multi {
    grid-template-columns: minmax(0, 1fr);
  }
  .project-card__body {
    padding: 21px 18px;
  }
  .project-card__meta {
    align-items: flex-start;
    flex-direction: column;
    gap: 5px;
  }
  .project-card__button {
    width: 100%;
  }
  .featured-news--pro h3 {
    -webkit-line-clamp: 3;
  }
}
@media (max-width: 480px) {
  .featured-news--pro .featured-news__image,
  .content-hub__grid--single .featured-news--pro .featured-news__image,
  .projects-grid--single .project-card__image {
    min-height: 240px;
  }
  .news-category-badge {
    max-width: calc(100% - 118px);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  .project-card__badge {
    top: 12px;
    right: 12px;
  }
  .project-card__number {
    left: 12px;
    bottom: 11px;
    font-size: 28px;
  }
}


/* Mobile single post containment patch — v2.3.2
   Prevents long Arabic titles, category chips, meta rows and media from escaping the viewport on phones. */
html,
body {
  max-width: 100%;
  overflow-x: hidden;
}

.site-shell,
.inner-main,
.archive-layout,
.singular-layout,
.single-article,
.page-article,
.single-header,
.page-header,
.archive-header,
.entry-content,
.single-featured,
.post-navigation,
.after-content-widgets {
  min-width: 0;
  max-width: 100%;
}

.single-header h1,
.page-header h1,
.archive-header h1,
.entry-content h1,
.entry-content h2,
.entry-content h3,
.entry-content h4,
.entry-content h5,
.entry-content h6,
.entry-content p,
.entry-content li,
.entry-content a {
  overflow-wrap: anywhere;
  word-break: normal;
}

.single-header__categories,
.single-meta,
.single-footer,
.post-navigation a {
  min-width: 0;
  max-width: 100%;
}

.single-featured img,
.entry-content img,
.entry-content video,
.entry-content iframe,
.entry-content embed,
.entry-content object {
  max-width: 100%;
  height: auto;
}

.entry-content table {
  display: block;
  max-width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

@media (max-width: 740px) {
  .inner-main {
    padding-top: 22px;
  }

  .singular-layout,
  .archive-layout {
    width: min(calc(100% - 24px), var(--ferkla-container));
    gap: 20px;
  }

  .single-header,
  .page-header,
  .archive-header {
    width: 100%;
    padding: 22px 16px;
    margin-bottom: 18px;
    border-radius: 18px;
    overflow: hidden;
  }

  .single-header::after,
  .page-header::after,
  .archive-header::after {
    width: 128px;
    height: 128px;
    left: -56px;
    top: -62px;
    border-width: 18px;
  }

  .single-header__categories {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    margin-bottom: 12px;
  }

  .single-header__categories a {
    max-width: 100%;
    padding: 6px 10px;
    white-space: normal;
    line-height: 1.45;
  }

  .archive-header h1,
  .page-header h1,
  .single-header h1 {
    display: block;
    max-width: 100%;
    font-size: clamp(24px, 7vw, 32px);
    line-height: 1.48;
    letter-spacing: -.03em;
    text-wrap: pretty;
    white-space: normal;
  }

  .single-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 14px;
    margin-top: 13px;
    font-size: 12px;
    line-height: 1.7;
  }

  .single-meta span {
    min-width: 0;
  }

  .single-featured {
    margin-bottom: 18px;
    border-radius: 18px;
  }

  .single-featured img {
    width: 100%;
    min-height: 0;
    object-fit: cover;
  }

  .entry-content {
    width: 100%;
    padding: 22px 16px;
    border-radius: 18px;
    overflow: hidden;
    font-size: 16px;
    line-height: 1.95;
  }

  .entry-content .wp-caption,
  .entry-content figure,
  .entry-content blockquote,
  .entry-content pre {
    max-width: 100%;
    margin-inline: 0;
  }

  .entry-content pre {
    overflow-x: auto;
  }

  .single-footer {
    display: block;
    padding: 16px;
    overflow-wrap: anywhere;
  }
}

@media (max-width: 480px) {
  .singular-layout,
  .archive-layout {
    width: min(calc(100% - 18px), var(--ferkla-container));
  }

  .single-header,
  .page-header,
  .archive-header {
    padding: 20px 14px;
    border-radius: 17px;
  }

  .archive-header h1,
  .page-header h1,
  .single-header h1 {
    font-size: clamp(23px, 7.8vw, 29px);
    line-height: 1.5;
  }

  .single-meta {
    font-size: 11.5px;
    gap: 7px 11px;
  }

  .entry-content {
    padding: 21px 14px;
  }
}

@media (max-width: 380px) {
  .archive-header h1,
  .page-header h1,
  .single-header h1 {
    font-size: 24px;
    line-height: 1.55;
  }
}


/* Critical mobile overflow repair — v2.3.3
   Hard clamps every single-post element so Arabic titles, images and content never escape phone screens. */
@supports (overflow: clip) {
  .site-shell { overflow-x: clip; overflow-y: visible; }
}

html,
body {
  width: 100%;
  max-width: 100%;
  overflow-x: hidden !important;
}

body,
.site-shell,
.site-main,
.inner-main,
.container,
.singular-layout,
.archive-layout,
.single-article,
.page-article,
.single-header,
.page-header,
.archive-header,
.single-featured,
.entry-content,
.after-content-widgets,
.post-navigation,
.site-sidebar,
.widget {
  min-width: 0 !important;
  max-width: 100% !important;
}

.single-article *,
.page-article *,
.entry-content * {
  max-width: 100%;
  box-sizing: border-box;
}

.single-header h1,
.page-header h1,
.archive-header h1,
.entry-content h1,
.entry-content h2,
.entry-content h3,
.entry-content h4,
.entry-content h5,
.entry-content h6,
.entry-content p,
.entry-content li,
.entry-content figcaption,
.entry-content blockquote,
.entry-content pre,
.entry-content code,
.entry-content a {
  white-space: normal !important;
  overflow-wrap: anywhere !important;
  word-wrap: break-word !important;
  word-break: break-word !important;
  max-width: 100% !important;
}

.single-featured,
.entry-content figure,
.entry-content .wp-block-image,
.entry-content .wp-caption,
.entry-content .alignwide,
.entry-content .alignfull,
.entry-content .size-full,
.entry-content .size-large {
  width: 100% !important;
  max-width: 100% !important;
  margin-right: 0 !important;
  margin-left: 0 !important;
}

.single-featured img,
.entry-content img,
.entry-content picture,
.entry-content svg,
.entry-content canvas,
.entry-content video,
.entry-content iframe,
.entry-content embed,
.entry-content object {
  display: block !important;
  width: 100% !important;
  max-width: 100% !important;
  height: auto !important;
}

.entry-content iframe,
.entry-content embed,
.entry-content object {
  aspect-ratio: 16 / 9;
  min-height: 190px;
}

.entry-content table,
.entry-content .wp-block-table {
  width: 100% !important;
  max-width: 100% !important;
  overflow-x: auto !important;
  -webkit-overflow-scrolling: touch;
}

@media (max-width: 740px) {
  .container,
  .singular-layout,
  .archive-layout {
    width: calc(100% - 24px) !important;
    max-width: calc(100% - 24px) !important;
    margin-right: auto !important;
    margin-left: auto !important;
  }

  .inner-main {
    padding: 18px 0 54px !important;
  }

  .single-header,
  .page-header,
  .archive-header {
    width: 100% !important;
    padding: 18px 14px !important;
    margin: 0 0 16px !important;
    border-radius: 18px !important;
    overflow: hidden !important;
  }

  .single-header::after,
  .page-header::after,
  .archive-header::after {
    display: none !important;
  }

  .single-header__categories {
    width: 100% !important;
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 7px !important;
    overflow: visible !important;
  }

  .single-header__categories a {
    max-width: 100% !important;
    min-height: 36px !important;
    display: inline-flex !important;
    align-items: center !important;
    padding: 6px 10px !important;
    white-space: normal !important;
    overflow-wrap: anywhere !important;
    line-height: 1.35 !important;
  }

  .single-header h1,
  .page-header h1,
  .archive-header h1 {
    width: 100% !important;
    max-width: 100% !important;
    display: block !important;
    margin: 12px 0 0 !important;
    font-size: clamp(22px, 6.2vw, 28px) !important;
    line-height: 1.42 !important;
    letter-spacing: 0 !important;
    text-align: right !important;
    text-wrap: wrap !important;
    overflow: visible !important;
  }

  .single-meta {
    width: 100% !important;
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 6px 12px !important;
    margin-top: 12px !important;
    font-size: 12px !important;
    line-height: 1.6 !important;
    overflow: visible !important;
  }

  .single-meta span {
    min-width: 0 !important;
    max-width: 100% !important;
    overflow-wrap: anywhere !important;
  }

  .single-featured {
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 0 16px !important;
    border-radius: 18px !important;
    overflow: hidden !important;
  }

  .single-featured img {
    width: 100% !important;
    max-width: 100% !important;
    height: auto !important;
    min-height: 0 !important;
    object-fit: contain !important;
    object-position: center !important;
  }

  .entry-content {
    width: 100% !important;
    max-width: 100% !important;
    padding: 20px 14px !important;
    border-radius: 18px !important;
    overflow: hidden !important;
    font-size: 15.5px !important;
    line-height: 1.9 !important;
  }

  .entry-content h2 { font-size: 23px !important; }
  .entry-content h3 { font-size: 20px !important; }
  .entry-content h4 { font-size: 18px !important; }

  .entry-content blockquote,
  .entry-content pre {
    padding: 16px !important;
    overflow-x: auto !important;
  }

  .single-footer,
  .post-navigation a {
    width: 100% !important;
    overflow-wrap: anywhere !important;
  }
}

@media (max-width: 480px) {
  .container,
  .singular-layout,
  .archive-layout {
    width: calc(100% - 18px) !important;
    max-width: calc(100% - 18px) !important;
  }

  .single-header,
  .page-header,
  .archive-header {
    padding: 17px 12px !important;
    border-radius: 16px !important;
  }

  .single-header h1,
  .page-header h1,
  .archive-header h1 {
    font-size: clamp(21px, 5.8vw, 25px) !important;
    line-height: 1.48 !important;
  }

  .single-featured {
    border-radius: 16px !important;
  }

  .entry-content {
    padding: 18px 12px !important;
    border-radius: 16px !important;
  }
}

@media (max-width: 380px) {
  .single-header h1,
  .page-header h1,
  .archive-header h1 {
    font-size: 20px !important;
    line-height: 1.52 !important;
  }
}

/* Footer credit refinement — v2.3.4
   The owner copyright remains editable from settings; the Wasllet design credit is intentionally fixed. */
.site-footer__bottom {
  background:
    radial-gradient(circle at 88% 20%, rgba(213, 163, 53, .10), transparent 28%),
    linear-gradient(90deg, rgba(255,255,255,.035), rgba(255,255,255,.01));
  border-top: 1px solid rgba(255, 255, 255, .12);
}

.site-footer__bottom-inner {
  min-height: 74px;
  padding: 12px 0;
}

.footer-copyright-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  min-width: 0;
}

.footer-owner-rights {
  margin: 0;
  color: rgba(255,255,255,.74);
  font-size: 13px;
  line-height: 1.8;
}

.footer-owner-rights span {
  color: #fff;
  font-weight: 800;
}

.developer-credit {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin: 0;
  padding: 4px 5px 4px 11px;
  border: 1px solid rgba(255, 255, 255, .14);
  border-radius: 999px;
  background: rgba(255, 255, 255, .055);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.08), 0 12px 34px rgba(0,0,0,.16);
  backdrop-filter: blur(10px);
}

.developer-credit::before {
  content: "";
  position: absolute;
  inset-inline-start: 9px;
  inset-block: 9px;
  width: 3px;
  border-radius: 999px;
  background: linear-gradient(180deg, var(--ferkla-accent), rgba(255,255,255,.35));
}

.developer-credit__intro {
  padding-inline-start: 9px;
  color: rgba(255,255,255,.70);
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
}

.developer-credit__brand {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 34px;
  padding: 5px 12px 5px 6px;
  border: 1px solid rgba(213, 163, 53, .55);
  border-radius: 999px;
  color: var(--ferkla-deep) !important;
  background: linear-gradient(135deg, #f8d56a, var(--ferkla-accent));
  box-shadow: 0 9px 22px rgba(213, 163, 53, .22);
  font-weight: 900;
  letter-spacing: .15px;
  text-decoration: none;
  transition: transform .2s ease, box-shadow .2s ease, filter .2s ease;
}

.developer-credit__brand:hover,
.developer-credit__brand:focus-visible {
  transform: translateY(-1px);
  filter: saturate(1.08);
  box-shadow: 0 14px 28px rgba(213, 163, 53, .30);
}

.developer-credit__mark {
  display: grid;
  place-items: center;
  width: 23px;
  height: 23px;
  border-radius: 50%;
  color: var(--ferkla-accent);
  background: rgba(8, 40, 62, .92);
  font-size: 12px;
  font-weight: 900;
  line-height: 1;
}

.developer-credit__text {
  white-space: nowrap;
}

.legal-menu a {
  color: rgba(255,255,255,.78);
  transition: color .2s ease;
}

.legal-menu a:hover,
.legal-menu a:focus-visible {
  color: #fff;
}

@media (max-width: 860px) {
  .site-footer__bottom-inner {
    display: grid !important;
    justify-items: center;
    gap: 14px;
    padding: 18px 0 20px;
    text-align: center;
  }

  .footer-copyright-wrap {
    display: grid !important;
    justify-items: center;
    gap: 10px;
    width: 100%;
  }

  .footer-owner-rights {
    max-width: 100%;
    font-size: 12.5px;
  }

  .developer-credit {
    max-width: 100%;
  }

  .legal-menu {
    margin-top: 0 !important;
    justify-content: center;
    gap: 10px 14px;
  }
}

@media (max-width: 390px) {
  .developer-credit {
    gap: 6px;
    padding-inline: 8px 5px;
  }

  .developer-credit__intro {
    font-size: 11px;
  }

  .developer-credit__brand {
    min-height: 32px;
    padding-inline: 10px 5px;
    font-size: 12px;
  }

  .developer-credit__mark {
    width: 21px;
    height: 21px;
    font-size: 11px;
  }
}

/* Specificity guard for legacy developer-credit anchor rules. */
.developer-credit .developer-credit__brand {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 34px;
  padding: 5px 12px 5px 6px;
  border: 1px solid rgba(213, 163, 53, .55);
  border-radius: 999px;
  color: var(--ferkla-deep) !important;
  background: linear-gradient(135deg, #f8d56a, var(--ferkla-accent));
  box-shadow: 0 9px 22px rgba(213, 163, 53, .22);
  font-weight: 900;
  letter-spacing: .15px;
  text-decoration: none;
}

.developer-credit .developer-credit__brand:hover,
.developer-credit .developer-credit__brand:focus-visible {
  color: var(--ferkla-deep) !important;
  background: linear-gradient(135deg, #ffe083, var(--ferkla-accent));
  border-color: rgba(213, 163, 53, .72);
}

/* Footer credit refinement — v2.3.5
   Subtle fixed Wasllet credit: visible for promotion, calm enough for municipality/client sites. */
.site-footer__bottom {
  background: rgba(4, 33, 54, .72) !important;
  border-top: 1px solid rgba(255, 255, 255, .08) !important;
}

.site-footer__bottom-inner {
  min-height: 52px !important;
  padding: 8px 0 !important;
  gap: 14px !important;
}

.footer-copyright-wrap {
  display: flex !important;
  align-items: center !important;
  gap: 10px !important;
  flex-wrap: wrap !important;
  min-width: 0 !important;
}

.footer-owner-rights {
  margin: 0 !important;
  color: rgba(255,255,255,.70) !important;
  font-size: 12.5px !important;
  line-height: 1.75 !important;
}

.footer-owner-rights span {
  color: rgba(255,255,255,.92) !important;
  font-weight: 750 !important;
}

.developer-credit {
  position: relative !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 4px !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  backdrop-filter: none !important;
  color: rgba(255,255,255,.52) !important;
  font-size: 11.5px !important;
  line-height: 1.6 !important;
}

.developer-credit::before {
  content: none !important;
}

.developer-credit__intro {
  padding: 0 !important;
  color: rgba(255,255,255,.48) !important;
  font-size: 11.5px !important;
  font-weight: 500 !important;
  white-space: nowrap !important;
}

.developer-credit__brand,
.developer-credit .developer-credit__brand {
  display: inline-flex !important;
  align-items: center !important;
  gap: 0 !important;
  min-height: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  color: rgba(213, 163, 53, .86) !important;
  background: transparent !important;
  box-shadow: none !important;
  font-size: 11.5px !important;
  font-weight: 750 !important;
  letter-spacing: 0 !important;
  line-height: 1.6 !important;
  text-decoration: none !important;
  transition: color .2s ease, opacity .2s ease !important;
}

.developer-credit__brand:hover,
.developer-credit__brand:focus-visible,
.developer-credit .developer-credit__brand:hover,
.developer-credit .developer-credit__brand:focus-visible {
  transform: none !important;
  filter: none !important;
  box-shadow: none !important;
  border-color: transparent !important;
  background: transparent !important;
  color: #f1c85a !important;
  text-decoration: underline !important;
  text-underline-offset: 3px !important;
}

.developer-credit__mark {
  display: none !important;
}

.developer-credit__text {
  white-space: nowrap !important;
}

@media (max-width: 860px) {
  .site-footer__bottom-inner {
    display: grid !important;
    justify-items: center !important;
    gap: 9px !important;
    padding: 12px 0 14px !important;
    text-align: center !important;
  }

  .footer-copyright-wrap {
    display: grid !important;
    justify-items: center !important;
    gap: 5px !important;
    width: 100% !important;
  }

  .footer-owner-rights {
    font-size: 12px !important;
  }

  .developer-credit,
  .developer-credit__intro,
  .developer-credit__brand,
  .developer-credit .developer-credit__brand {
    font-size: 11px !important;
  }
}

@media (max-width: 390px) {
  .developer-credit {
    gap: 3px !important;
    padding: 0 !important;
  }

  .developer-credit__intro,
  .developer-credit__brand,
  .developer-credit .developer-credit__brand {
    font-size: 10.5px !important;
  }
}

