/* =====================================================================================
   SECTION STYLES (SECSTYLE-20261128) - ready-made looks a section can opt into.
   Chosen in the section editor («نمط القسم» / Section style), which stores the class in
   tbl_Sections.CustomClass. Nothing here applies to a section that has not chosen a style,
   so every existing page renders exactly as before.
   Colours come from the theme: --primary / --secondary (theme colours), --accent-warm (call to
   action), --bg-surface / --border-subtle / --text-muted (light + dark mode). Corners: 4px.
     a1s-pagehead   hero      page header: the photo on one side fading into the page, title + accent bar
     a1s-cards      columns   picture cards (photo, icon, title, text, link) with an accent bottom edge
     a1s-boxes      columns   each column is a titled box; inside a box: features = numbered steps,
                              content lists = check lists, events = date rows, mini-calendar = month
     a1s-iconcards  features  icon cards (contact details, services)
     a1s-steps      features  numbered steps with arrows between them
     a1s-checklist  content   lists become check lists
     a1s-news       news      bordered news cards
     a1s-albums     gallery-db framed album cards (+ the gallery's own year filter)
     a1s-contact    contact   framed details + form
   Registry of the styles (labels, which section types): js/section-styles.js
   ===================================================================================== */
.site-section[class*="a1s-"] { --a1s-p: var(--primary, #15803D); --a1s-s: var(--secondary, #14532D); --a1s-hi: var(--accent-warm, #F97316);
  --a1s-line: var(--border-subtle, rgba(0,0,0,.10)); --a1s-card: var(--bg-surface, #fff); --a1s-soft: rgba(var(--primary-rgb, 21,128,61), .06);
  --a1s-ink: var(--text-primary, #1F2A24); --a1s-muted: var(--text-muted, #5B6660); --a1s-shadow: 0 6px 18px rgba(0,0,0,.07); }

/* ================================ page header ================================ */
/* Modifiers (simple editor «امتداد التدرّج» / «جهة الصورة», stored next to a1s-pagehead in CustomClass):
     a1s-fade-short / (none = medium) / a1s-fade-long / a1s-fade-none      how far the photo fades into the page
     a1s-photo-start                                                       photo on the START side, text on the END side
   The fade is ONE gradient driven by variables: --a1s-fdir (towards the photo), --a1s-f1 (solid page colour up to),
   --a1s-f2 (photo fully visible from). The photo side is --a1s-bgpos. RTL start = right, LTR start = left. */
.site-section.a1s-pagehead { --a1s-f1: 36%; --a1s-f2: 66%; --a1s-fdir: to left; --a1s-bgpos: left center; }
[dir="ltr"] .site-section.a1s-pagehead { --a1s-fdir: to right; --a1s-bgpos: right center; }
.site-section.a1s-pagehead.a1s-photo-start { --a1s-fdir: to right; --a1s-bgpos: right center; }
[dir="ltr"] .site-section.a1s-pagehead.a1s-photo-start { --a1s-fdir: to left; --a1s-bgpos: left center; }
.site-section.a1s-pagehead.a1s-fade-short { --a1s-f1: 40%; --a1s-f2: 52%; }
.site-section.a1s-pagehead.a1s-fade-long { --a1s-f1: 30%; --a1s-f2: 92%; }
.site-section.a1s-pagehead { position: relative; min-height: 260px !important; padding: 0 !important; display: flex; align-items: center; overflow: hidden;
  background-color: var(--a1s-card); background-size: cover !important; background-position: var(--a1s-bgpos) !important; border-bottom: 1px solid var(--a1s-line);
  background-clip: padding-box !important; }   /* the photo must not show through the semi-transparent bottom border */
/* the photo fades into the page colour behind the text; this layer replaces any decoration a theme hangs on ::after */
.site-section.a1s-pagehead::after { content: ""; position: absolute; top: 0 !important; bottom: 0 !important; left: 0 !important; right: 0 !important; width: auto !important; height: auto !important;
  border-radius: 0 !important; z-index: 1 !important; pointer-events: none; background: linear-gradient(var(--a1s-fdir), var(--a1s-card) 0%, var(--a1s-card) var(--a1s-f1), transparent var(--a1s-f2)) !important; }
.site-section.a1s-pagehead.a1s-fade-none::after { display: none !important; }
.site-section.a1s-pagehead.a1s-photo-start .a1-hero-content { margin-inline-start: auto; }
/* no fade: the photo runs the whole width, the text sits on its own page-colour panel */
.site-section.a1s-pagehead.a1s-fade-none .a1-hero-content { background: color-mix(in srgb, var(--a1s-card) 88%, transparent); padding: 24px 28px; border-radius: 4px; margin-block: 28px; }
.site-section.a1s-pagehead::before, .site-section.a1s-pagehead .a1-hero-glows { display: none !important; }
/* slideshow (several header pictures): the slides take the photo's place, under the fade and the text */
.site-section.a1s-pagehead .hero-slideshow { z-index: 0 !important; }
.site-section.a1s-pagehead .hero-slide { background-position: var(--a1s-bgpos) !important; }
/* «شفافية الصورة»: the renderer's overlay is black at the chosen strength; on a page header it is the PAGE colour
   instead (white in light mode - inverting rgba(0,0,0,a) gives rgba(255,255,255,a)), so a higher value = a fainter photo */
.site-section.a1s-pagehead .section-overlay { display: block !important; z-index: 1 !important; filter: invert(1); }
[data-theme="dark"] .site-section.a1s-pagehead .section-overlay { filter: none; }
.site-section.a1s-pagehead > .container-fluid, .site-section.a1s-pagehead > .container { position: relative; z-index: 2; width: 100%; max-width: none; padding-inline: max(16px, calc((100% - 1170px) / 2)); }
.site-section.a1s-pagehead .col-lg-12, .site-section.a1s-pagehead [class*="text-"] { text-align: start !important; }
.site-section.a1s-pagehead .a1-hero-content { max-width: 560px; margin: 0; padding: 40px 0; animation: none !important; }
.site-section.a1s-pagehead .a1-hero-heading { color: var(--a1s-s) !important; text-shadow: none !important; font-size: 2.6rem; font-weight: 700; line-height: 1.25; margin: 0 0 14px; animation: none !important; }
.site-section.a1s-pagehead .a1-hero-subheading { color: var(--a1s-ink) !important; text-shadow: none !important; font-size: 1.06rem; line-height: 1.8; margin: 0; opacity: 1 !important;
  padding-inline-start: 14px; border-inline-start: 4px solid var(--a1s-hi); animation: none !important; }
.site-section.a1s-pagehead .a1-hero-buttons, .site-section.a1s-pagehead .hero-buttons { justify-content: flex-start; }
.site-section.a1s-pagehead:not(.has-bg-media)::after { display: none; }
@media (max-width: 767.98px) {
  .site-section.a1s-pagehead { min-height: 0 !important; display: block; padding-top: 175px !important; background-size: 100% 190px !important; background-position: center top !important; background-repeat: no-repeat !important; }
  .site-section.a1s-pagehead:not(.has-bg-media) { padding-top: 0 !important; }
  .site-section.a1s-pagehead::after, [dir="ltr"] .site-section.a1s-pagehead::after { background: linear-gradient(to bottom, transparent 0, transparent 120px, var(--a1s-card) 190px) !important; }
  .site-section.a1s-pagehead.a1s-fade-none::after { display: block !important; background: linear-gradient(to bottom, transparent 0, transparent 175px, var(--a1s-card) 190px) !important; }
  .site-section.a1s-pagehead.a1s-fade-none .a1-hero-content { background: none; padding: 0 0 24px; margin: 0; }
  .site-section.a1s-pagehead.a1s-photo-start .a1-hero-content { margin-inline-start: 0; }
  /* phone: the slides form the same photo band on top as a single picture */
  .site-section.a1s-pagehead .hero-slideshow { height: 190px !important; bottom: auto !important; }
  .site-section.a1s-pagehead .hero-slide { background-position: center !important; }
  .site-section.a1s-pagehead .section-overlay { height: 190px !important; }
  .site-section.a1s-pagehead .a1-hero-content { padding: 0 0 24px; max-width: none; }
  .site-section.a1s-pagehead .a1-hero-heading { font-size: 1.9rem; }
  .site-section.a1s-pagehead .a1-hero-subheading { font-size: .98rem; }
}

/* ================================ picture cards ================================ */
.a1s-cards .column-card { background: var(--a1s-card); border: 1px solid var(--a1s-line); border-bottom: 3px solid var(--a1s-hi); border-radius: 4px !important;
  box-shadow: var(--a1s-shadow); overflow: hidden; text-align: center; padding-bottom: 18px; height: 100%; }
.a1s-cards .column-card-media { position: relative; overflow: visible; }
.a1s-cards .column-card-img { width: 100%; aspect-ratio: 16/10; object-fit: cover; border-radius: 0 !important; display: block; }
.a1s-cards .column-card-badge { position: static !important; display: flex !important; align-items: center; justify-content: center; margin: 14px auto 6px; width: auto !important; height: auto !important;
  background: none !important; box-shadow: none !important; color: var(--a1s-p) !important; font-size: 1.6rem; transform: none !important; }
.a1s-cards .column-card-title { color: var(--a1s-s); font-size: 1.2rem; font-weight: 700; margin: 4px 12px 6px; }
.a1s-cards .column-card-text { color: var(--a1s-muted); font-size: .92rem; margin: 0 14px 10px; }
.a1s-cards .column-card-link { color: var(--a1s-hi); font-weight: 600; font-size: .9rem; }

/* ================================ titled boxes ================================ */
.a1s-boxes .col-lg-12 > .row { align-items: stretch; }
.a1s-boxes .col-lg-12 > .row > [class*="col-"] { display: flex; flex-direction: column; }
@media (min-width: 768px) {   /* two boxes: the first (the steps / the list) a little wider, like a page of steps and a side box */
  .a1s-boxes .col-lg-12 > .row > .col-md-6:first-child { flex: 0 0 58%; max-width: 58%; }
  .a1s-boxes .col-lg-12 > .row > .col-md-6:last-child { flex: 0 0 42%; max-width: 42%; }
}
.a1s-boxes .column-title { background: var(--a1s-card); border: 1px solid var(--a1s-line); border-bottom: 0; border-radius: 4px 4px 0 0; margin: 0; padding: 14px 18px;
  color: var(--a1s-s); font-size: 1.2rem; font-weight: 700; text-align: start; }
.a1s-boxes .column-title ~ h2:empty, .a1s-boxes .column-title ~ .a1-section-header { display: none !important; }
.a1s-boxes .column-title ~ * { border: 1px solid var(--a1s-line); border-top: 0; border-radius: 0 0 4px 4px; background: var(--a1s-card); padding: 18px; margin: 0; flex: 1; }
.a1s-boxes .col-lg-12 > .row > [class*="col-"] > :not(.column-title):first-child { border: 1px solid var(--a1s-line); border-radius: 4px; }
/* features inside a box = numbered steps */
.a1s-boxes .column-title ~ .row, .a1s-steps .col-lg-12 > .row { counter-reset: a1step; flex-wrap: nowrap; background: none !important; box-shadow: none !important; }
.a1s-boxes .column-title ~ .row { padding: 18px 8px !important; margin: 0 !important; }
.a1s-boxes .column-title ~ .row > [class*="col"], .a1s-steps .col-lg-12 > .row > [class*="col"] { flex: 1 1 0 !important; max-width: none !important; width: auto !important;
  position: relative; counter-increment: a1step; padding-top: 44px; }
.a1s-boxes .column-title ~ .row > [class*="col"]::before, .a1s-steps .col-lg-12 > .row > [class*="col"]::before { content: counter(a1step); position: absolute; top: 0; left: 50%; transform: translateX(-50%);
  width: 34px; height: 34px; display: flex; align-items: center; justify-content: center; background: var(--a1s-p); color: #fff; font-weight: 700; border-radius: 50%; }
.a1s-boxes .column-title ~ .row > [class*="col"]:not(:last-child)::after, .a1s-steps .col-lg-12 > .row > [class*="col"]:not(:last-child)::after { content: "\f060"; font-family: "Font Awesome 6 Free", "Font Awesome 5 Free";
  font-weight: 900; color: var(--a1s-p); position: absolute; top: 96px; inset-inline-end: -10px; font-size: 1.1rem; }
[dir="ltr"] .a1s-boxes .column-title ~ .row > [class*="col"]:not(:last-child)::after, [dir="ltr"] .a1s-steps .col-lg-12 > .row > [class*="col"]:not(:last-child)::after { content: "\f061"; }
.a1s-boxes .feature-card, .a1s-steps .feature-card { background: none !important; border: 0 !important; box-shadow: none !important; padding: 0 6px !important; }
.a1s-boxes .feature-card::before, .a1s-steps .feature-card::before { display: none !important; }
.a1s-boxes .feature-card [class*="icon"], .a1s-steps .feature-card [class*="icon"] { background: none !important; box-shadow: none !important; border: 0 !important; }
.a1s-boxes .feature-card i, .a1s-steps .feature-card i { color: var(--a1s-p) !important; font-size: 2rem; }
.a1s-boxes .feature-card h3, .a1s-boxes .feature-card h4, .a1s-boxes .feature-card h5, .a1s-steps .feature-card h3, .a1s-steps .feature-card h4, .a1s-steps .feature-card h5 { color: var(--a1s-s); font-weight: 700; font-size: 1.02rem; }
.a1s-boxes .feature-card p, .a1s-steps .feature-card p { color: var(--a1s-muted); font-size: .9rem; }
@media (max-width: 767.98px) {
  .a1s-boxes .column-title ~ .row, .a1s-steps .col-lg-12 > .row { flex-wrap: wrap; }
  .a1s-boxes .column-title ~ .row > [class*="col"], .a1s-steps .col-lg-12 > .row > [class*="col"] { flex: 0 0 100% !important; }
  .a1s-boxes .column-title ~ .row > [class*="col"]::after, .a1s-steps .col-lg-12 > .row > [class*="col"]::after { display: none; }
}
/* lists inside a box, or in a check-list content section = check lists; a .btn in them is a full-width call to action */
.a1s-boxes .content-text ul, .a1s-checklist .content-text ul { list-style: none; padding: 0; margin: 0 0 18px; text-align: start; }
.a1s-boxes .content-text li, .a1s-checklist .content-text li { position: relative; padding: 9px 0; padding-inline-start: 30px; border-bottom: 1px dashed var(--a1s-line); color: var(--a1s-ink); }
.a1s-boxes .content-text li::before, .a1s-checklist .content-text li::before { content: "\f00c"; font-family: "Font Awesome 6 Free", "Font Awesome 5 Free"; font-weight: 900; color: var(--a1s-p);
  position: absolute; inset-inline-start: 4px; top: 9px; }
.a1s-boxes .content-text a.btn, .a1s-checklist .content-text a.btn { display: block; width: 100%; background: var(--a1s-hi) !important; color: #fff !important; border: 0; border-radius: 4px !important;
  padding: 12px 18px; font-weight: 700; font-size: 1.08rem; text-align: center; }
/* events inside a box = date rows; an empty list says so (events "emptyText") */
.a1s-boxes .column-title ~ .row:has(.event-card) { display: block; counter-reset: none; padding: 6px 14px 14px !important; }
.a1s-boxes .column-title ~ .row:has(.event-card) > [class*="col"] { padding: 0; width: 100% !important; max-width: 100% !important; }
.a1s-boxes .column-title ~ .row:has(.event-card) > [class*="col"]::before, .a1s-boxes .column-title ~ .row:has(.event-card) > [class*="col"]::after { display: none; }
.a1s-boxes .event-card { display: grid; grid-template-columns: 64px 1fr; column-gap: 14px; align-items: center; background: var(--a1s-soft); border: 0; border-radius: 4px !important;
  padding: 12px; margin-top: 10px; box-shadow: none; text-align: start; }
.a1s-boxes .event-card .event-date { grid-row: 1 / span 3; background: var(--a1s-card); border: 1px solid var(--a1s-line); border-radius: 4px; color: var(--a1s-s); font-weight: 700;
  font-size: .82rem; line-height: 1.3; text-align: center; padding: 8px 4px; }
.a1s-boxes .event-card h5 { color: var(--a1s-s); font-weight: 700; font-size: 1rem; margin: 0; }
.a1s-boxes .event-card p { margin: 2px 0 0; color: var(--a1s-muted); font-size: .86rem; }
.a1s-boxes .event-card .btn { justify-self: start; border: 0 !important; background: none !important; color: var(--a1s-hi) !important; padding: 0; font-size: .85rem; }
.a1s-boxes .events-empty { color: var(--a1s-muted); padding: 28px 18px !important; text-align: center; }
/* a month calendar inside a box: the theme colour header, today in the accent, compact rows */
.a1s-boxes .mini-cal { border: 1px solid var(--a1s-line); border-radius: 4px !important; box-shadow: none; background: var(--a1s-card); overflow: hidden; flex: 1; }
.a1s-boxes .mini-cal-head { background: var(--a1s-p) !important; color: #fff; border-radius: 0 !important; }
.a1s-boxes .mini-cal-title { color: #fff !important; }
.a1s-boxes .mini-cal-grid { gap: 2px !important; padding: 8px 10px 12px !important; }
.a1s-boxes .mini-cal-day { min-height: 0 !important; height: 40px !important; display: flex !important; align-items: center; justify-content: center; font-weight: 600; }
.a1s-boxes .mini-cal-day.is-today { background: var(--a1s-hi) !important; color: #fff !important; border-radius: 4px !important; }

/* ================================ icon cards ================================ */
.a1s-iconcards .col-lg-12 > .row { background: none !important; box-shadow: none !important; padding: 0 !important; row-gap: 18px; }
.a1s-iconcards .feature-card { background: var(--a1s-card) !important; border: 1px solid var(--a1s-line) !important; border-radius: 4px !important; box-shadow: var(--a1s-shadow) !important;
  height: 100%; padding: 26px 20px !important; }
.a1s-iconcards .feature-card i { color: var(--a1s-hi) !important; background: none !important; font-size: 2rem; }
.a1s-iconcards .feature-card [class*="icon"] { background: none !important; box-shadow: none !important; }
.a1s-iconcards .feature-card h3, .a1s-iconcards .feature-card h4, .a1s-iconcards .feature-card h5 { color: var(--a1s-s); font-weight: 700; }
.a1s-iconcards .feature-card p { color: var(--a1s-muted); }

/* ================================ news / albums / contact ================================ */
.a1s-news .news-card { border: 1px solid var(--a1s-line); border-radius: 4px !important; box-shadow: var(--a1s-shadow); overflow: hidden; background: var(--a1s-card); }
.a1s-news .news-card img { border-radius: 0 !important; aspect-ratio: 16/10; object-fit: cover; }
.a1s-news .news-date-chip { border-radius: 4px !important; }
.a1s-news .news-body h5, .a1s-news .news-body h3 { color: var(--a1s-s); font-weight: 700; }
.a1s-news .btn-outline-primary { border: 0 !important; background: none !important; color: var(--a1s-hi) !important; padding: 0; font-weight: 600; box-shadow: none !important; }
.a1s-albums .gallery-album-inner { border-radius: 4px !important; border: 1px solid var(--a1s-line); box-shadow: var(--a1s-shadow) !important; background: var(--a1s-card); }
.a1s-albums .gallery-album-caption > div:first-child { color: var(--a1s-s); font-weight: 700 !important; font-size: .98rem !important; }
.gallery-filter { display: flex; flex-wrap: wrap; gap: 12px 18px; align-items: center; margin: 0 0 26px; }
.gallery-filter label { font-weight: 700; margin: 0; }
.gallery-filter select { width: auto; min-width: 220px; border: 1px solid var(--border-subtle, rgba(0,0,0,.1)); border-radius: 4px; padding: 8px 12px; background: var(--bg-surface, #fff); color: inherit; }
.gallery-db > .is-filtered-out { display: none !important; }
.a1s-contact .contact-info { background: var(--a1s-soft); border: 1px solid var(--a1s-line); border-radius: 4px; padding: 14px 18px; text-align: start; }
.a1s-contact .form-control { border-radius: 4px !important; border: 1px solid var(--a1s-line); }
.a1s-contact .btn-primary { background: var(--a1s-hi) !important; border-color: var(--a1s-hi) !important; border-radius: 4px !important; font-weight: 700; padding: 10px 28px; }
.a1s-contact .leaflet-container, .a1s-contact iframe { border-radius: 4px !important; }

/* a designed page reads on the page colour, not on the theme's alternating tinted bands */
.site-section.a1s-pagehead ~ .site-section[class*="a1s-"] { background: var(--a1s-card) !important; }
/* inside a box the calendar sits beside its own page: no second «full calendar» link */
.a1s-boxes .mini-cal-more { display: none !important; }

/* ======== hero modifiers on ANY hero with a picture (simple editor «امتداد التدرّج» / «جهة الصورة», fork F) ========
   On a page header they only tune its own fade (rules above). On any other hero, a fade token ADDS a fade from the picture
   into the page colour, moves the text to the faded side and makes it dark so it stays readable; no token = the hero as it was. */
.section-hero.has-bg-media[class*="a1s-fade-"], .section-hero.has-bg-media.a1s-photo-start { --a1s-f1: 36%; --a1s-f2: 66%; --a1s-fdir: to left; --a1s-bgpos: left center; }
[dir="ltr"] .section-hero.has-bg-media[class*="a1s-fade-"], [dir="ltr"] .section-hero.has-bg-media.a1s-photo-start { --a1s-fdir: to right; --a1s-bgpos: right center; }
.section-hero.has-bg-media.a1s-photo-start { --a1s-fdir: to right; --a1s-bgpos: right center; }
[dir="ltr"] .section-hero.has-bg-media.a1s-photo-start { --a1s-fdir: to left; --a1s-bgpos: left center; }
.section-hero.has-bg-media.a1s-fade-short { --a1s-f1: 40%; --a1s-f2: 52%; }
.section-hero.has-bg-media.a1s-fade-long { --a1s-f1: 30%; --a1s-f2: 92%; }
.section-hero.has-bg-media:not(.a1s-pagehead).a1s-photo-start { background-position: var(--a1s-bgpos) !important; }
.section-hero.has-bg-media:not(.a1s-pagehead).a1s-photo-start .hero-slide { background-position: var(--a1s-bgpos) !important; }
.section-hero.has-bg-media:not(.a1s-pagehead):is(.a1s-fade-short, .a1s-fade-medium, .a1s-fade-long)::after {
  content: "" !important; position: absolute !important; top: 0 !important; bottom: 0 !important; left: 0 !important; right: 0 !important; width: auto !important; height: auto !important;
  border-radius: 0 !important; z-index: 1 !important; pointer-events: none;
  background: linear-gradient(var(--a1s-fdir), var(--a1s-card) 0%, var(--a1s-card) var(--a1s-f1), transparent var(--a1s-f2)) !important; }
.section-hero.has-bg-media:not(.a1s-pagehead):is(.a1s-fade-short, .a1s-fade-medium, .a1s-fade-long) .a1-hero-content { position: relative; z-index: 2; max-width: 560px; margin-inline-end: auto; text-align: start; }
.section-hero.has-bg-media:not(.a1s-pagehead):is(.a1s-fade-short, .a1s-fade-medium, .a1s-fade-long).a1s-photo-start .a1-hero-content { margin-inline-end: 0; margin-inline-start: auto; }
.section-hero.has-bg-media:not(.a1s-pagehead):is(.a1s-fade-short, .a1s-fade-medium, .a1s-fade-long) .col-lg-12 { text-align: start !important; }
.section-hero.has-bg-media:not(.a1s-pagehead):is(.a1s-fade-short, .a1s-fade-medium, .a1s-fade-long) .a1-hero-heading { color: var(--a1s-s) !important; text-shadow: none !important; }
.section-hero.has-bg-media:not(.a1s-pagehead):is(.a1s-fade-short, .a1s-fade-medium, .a1s-fade-long) .a1-hero-subheading { color: var(--a1s-ink) !important; text-shadow: none !important; }
/* transparency on a faded hero = the page colour, like the page header */
.section-hero.has-bg-media:not(.a1s-pagehead):is(.a1s-fade-short, .a1s-fade-medium, .a1s-fade-long) .section-overlay { filter: invert(1); }
[data-theme="dark"] .section-hero.has-bg-media:not(.a1s-pagehead):is(.a1s-fade-short, .a1s-fade-medium, .a1s-fade-long) .section-overlay { filter: none; }
@media (max-width: 767.98px) {   /* phone: the fade runs top -> bottom under the picture band */
  .section-hero.has-bg-media:not(.a1s-pagehead):is(.a1s-fade-short, .a1s-fade-medium, .a1s-fade-long)::after { background: linear-gradient(to bottom, transparent 0, transparent 45%, var(--a1s-card) 75%) !important; }
  .section-hero.has-bg-media:not(.a1s-pagehead):is(.a1s-fade-short, .a1s-fade-medium, .a1s-fade-long) .a1-hero-content { max-width: none; margin: 0; }
}
/* the page header has a straight edge: no slideshow bottom wave (the renderer adds one to every slideshow) */
.site-section.a1s-pagehead .hero-bottom-shape { display: none !important; }
/* a theme that adds slide dots (UCA: .uca-hero-dots): on a page header they sit on the photo, never on the text */
@media (max-width: 767.98px) { .site-section.a1s-pagehead .uca-hero-dots { top: 160px !important; bottom: auto !important; } }
.site-section.a1s-pagehead .uca-hero-dots { z-index: 2 !important; }

/* PHONE: a hero whose photo FADES (any a1s-fade-* except none) reads like the page header (owner 11-28:
   «الكتابه تظهر تحت الصوره عندما تكون الصوره بها تدرج في الشفافيه»): the photo is a band on top that fades into the
   page colour, and the title / text / buttons sit BELOW it on the page colour - never on the photo. Wins over theme
   rules that fix a hero's height (e.g. UCA hero-full-banner), so a long title and two buttons always fit. */
@media (max-width: 767.98px) {
  .site-section.section-hero.has-bg-media:not(.a1s-pagehead):is(.a1s-fade-short, .a1s-fade-medium, .a1s-fade-long) {
    height: auto !important; min-height: 0 !important; aspect-ratio: auto !important; display: block !important; border-radius: 0 !important;
    padding: 175px 0 0 !important; background-size: 100% 190px !important; background-position: center top !important; background-repeat: no-repeat !important; }
  .site-section.section-hero.has-bg-media:not(.a1s-pagehead):is(.a1s-fade-short, .a1s-fade-medium, .a1s-fade-long)::after {
    top: 0 !important; bottom: auto !important; height: 190px !important; inset: 0 0 auto 0 !important;
    background: linear-gradient(to bottom, transparent 0, transparent 120px, var(--a1s-card) 190px) !important; }
  .site-section.section-hero.has-bg-media:not(.a1s-pagehead):is(.a1s-fade-short, .a1s-fade-medium, .a1s-fade-long) .hero-slideshow { height: 190px !important; bottom: auto !important; }
  .site-section.section-hero.has-bg-media:not(.a1s-pagehead):is(.a1s-fade-short, .a1s-fade-medium, .a1s-fade-long) .hero-slide { background-size: cover !important; background-position: center !important; }
  .site-section.section-hero.has-bg-media:not(.a1s-pagehead):is(.a1s-fade-short, .a1s-fade-medium, .a1s-fade-long) .section-overlay { height: 190px !important; bottom: auto !important; }
  .site-section.section-hero.has-bg-media:not(.a1s-pagehead):is(.a1s-fade-short, .a1s-fade-medium, .a1s-fade-long) > .container,
  .site-section.section-hero.has-bg-media:not(.a1s-pagehead):is(.a1s-fade-short, .a1s-fade-medium, .a1s-fade-long) > .container-fluid { position: relative; z-index: 2; align-self: auto !important; }
  .site-section.section-hero.has-bg-media:not(.a1s-pagehead):is(.a1s-fade-short, .a1s-fade-medium, .a1s-fade-long) .a1-hero-content { padding: 0 0 24px !important; max-width: none; margin: 0 !important; }
  .site-section.section-hero.has-bg-media:not(.a1s-pagehead):is(.a1s-fade-short, .a1s-fade-medium, .a1s-fade-long) :is(h1, h2, .a1-hero-heading) { color: var(--a1s-s) !important; text-shadow: none !important; font-size: 1.75rem; line-height: 1.3; }
  .site-section.section-hero.has-bg-media:not(.a1s-pagehead):is(.a1s-fade-short, .a1s-fade-medium, .a1s-fade-long) :is(p, .a1-hero-subheading) { color: var(--a1s-ink) !important; text-shadow: none !important; }
  /* buttons: side by side when they fit, else stacked, at their normal height */
  .site-section.section-hero.has-bg-media:not(.a1s-pagehead):is(.a1s-fade-short, .a1s-fade-medium, .a1s-fade-long) :is(.a1-hero-buttons, .hero-buttons) { display: flex !important; flex-wrap: wrap; gap: 10px; justify-content: flex-start; }
  .site-section.section-hero.has-bg-media:not(.a1s-pagehead):is(.a1s-fade-short, .a1s-fade-medium, .a1s-fade-long) :is(.a1-hero-buttons, .hero-buttons) > a { flex: 1 1 140px; width: auto !important; min-height: 0 !important; margin: 0 !important; }
  /* slide dots stay on the photo band */
  .site-section.section-hero.has-bg-media:not(.a1s-pagehead):is(.a1s-fade-short, .a1s-fade-medium, .a1s-fade-long) .uca-hero-dots { top: 160px !important; bottom: auto !important; z-index: 3 !important; }
  .site-section.section-hero.has-bg-media:not(.a1s-pagehead):is(.a1s-fade-short, .a1s-fade-medium, .a1s-fade-long) .hero-bottom-shape { display: none !important; }
}
@media (max-width: 767.98px) {
  /* buttons under the band: one line of text each, normal height; side by side when both fit, else stacked */
  .site-section.section-hero.has-bg-media:not(.a1s-pagehead):is(.a1s-fade-short, .a1s-fade-medium, .a1s-fade-long) :is(.a1-hero-buttons, .hero-buttons) > a { flex: 1 1 auto; white-space: nowrap; padding: 11px 18px !important; height: auto !important; line-height: 1.3 !important; }
  /* a light/outline button drawn for a dark photo now sits on the page colour: give it the theme's outline */
  .site-section.section-hero.has-bg-media:not(.a1s-pagehead):is(.a1s-fade-short, .a1s-fade-medium, .a1s-fade-long) .a1-btn-secondary {
    color: var(--a1s-s) !important; border: 2px solid var(--a1s-p) !important; background: transparent !important; text-shadow: none !important; }
  .site-section.section-hero.has-bg-media:not(.a1s-pagehead):is(.a1s-fade-short, .a1s-fade-medium, .a1s-fade-long) .a1-btn-secondary * { color: inherit !important; }
}
/* any width: on a faded (non page-header) hero the text side is the page colour, so an outline button drawn for a dark photo
   (white text + white border) would vanish - give it the theme outline instead */
.site-section.section-hero.has-bg-media:not(.a1s-pagehead):is(.a1s-fade-short, .a1s-fade-medium, .a1s-fade-long) .a1-btn-secondary {
  color: var(--a1s-s) !important; border: 2px solid var(--a1s-p) !important; background: transparent !important; text-shadow: none !important; }
.site-section.section-hero.has-bg-media:not(.a1s-pagehead):is(.a1s-fade-short, .a1s-fade-medium, .a1s-fade-long) .a1-btn-secondary * { color: inherit !important; }
/* a STAND-ALONE content section in «قائمة تحقق»: site.css draws a 10px gradient dot on every content-section list item
   (.section-content ul > li::before: size, round corners, gradient, glow; dark mode swaps the colour). Undo that dot so the
   tick shows - same tick as inside a box - in light and dark, AR and EN, hovered or not. */
html .site-section.section-content.a1s-checklist .content-text ul > li::before,
html .site-section.section-content.a1s-checklist .content-text ul > li:hover::before,
html.dark-mode .site-section.section-content.a1s-checklist .content-text ul > li::before,
html[data-theme="dark"] .site-section.section-content.a1s-checklist .content-text ul > li::before {
  content: "\f00c" !important; font-family: "Font Awesome 6 Free", "Font Awesome 5 Free" !important; font-weight: 900 !important; font-size: .95rem; line-height: 1.7;
  width: auto !important; height: auto !important; border-radius: 0 !important; background: none !important; box-shadow: none !important; transform: none !important;
  color: var(--a1s-p) !important; left: auto !important; right: auto !important; inset-inline-start: 4px !important; top: 8px !important; }
html .site-section.section-content.a1s-checklist .content-text ul > li { padding-inline: 30px 0 !important; }
html .site-section.section-content.a1s-checklist .content-text { text-align: start; }

/* ---- gallery-db extras (fork Z3): featured album + pages; generic, any site ---- */
.gallery-featured { max-width: 980px; margin: 0 auto; }
.gallery-featured-card { position: relative; display: block; border-radius: 4px; overflow: hidden; border: 1px solid var(--border-subtle, rgba(0,0,0,.1)); box-shadow: 0 6px 18px rgba(0,0,0,.08); color: inherit; text-decoration: none; }
.gallery-featured-card img { display: block; width: 100%; aspect-ratio: 16/8; object-fit: cover; }
.gallery-featured-caption { position: absolute; inset-inline: 0; bottom: 0; display: flex; justify-content: space-between; align-items: flex-end; gap: 12px; padding: 40px 18px 14px;
  background: linear-gradient(to top, rgba(0,0,0,.65), rgba(0,0,0,0)); color: #fff; }
.gallery-featured-title { font-weight: 700; font-size: 1.15rem; }
.gallery-featured-count { font-size: .9rem; opacity: .9; white-space: nowrap; }
.gallery-featured-more { text-align: center; margin: 18px 0 0; }
.gallery-featured-more .btn { border-radius: 4px; }
@media (max-width: 575.98px) { .gallery-featured-card img { aspect-ratio: 4/3; } .gallery-featured-title { font-size: 1rem; } }
.gallery-pager { margin-top: 24px; }
.gallery-pager .page-link { border-radius: 4px !important; margin: 2px; }
/* events "addToCalendar" (fork Z3): only cards that carry the link may wrap, so the button never leaves the card */
.event-card:has(.event-ics) { flex-wrap: wrap; }
.event-card .event-ics { white-space: nowrap; flex: 0 0 auto; max-width: 100%; }
.event-detail .ev-ics { margin: 0 0 22px; }
.event-detail .ev-ics .btn { border-radius: 4px; }

/* ---- SECSTYLE-20261128 (owner «اذا كان مكرر»): the article's green cover REPEATS the page header above it ----
   When an a1s-pagehead section stands before the article section, the header already shows the title (and usually
   the intro line). The cover then loses its green box and its duplicate title + other-language name; the breadcrumb
   stays as a quiet line. The intro paragraph is hidden only when the header carries a1s-cover-in-head (its subheading
   IS that intro). Display only - the stored article HTML is untouched; pages without a page header keep the cover. */
.site-section.a1s-pagehead ~ .section-article .art-cover { background: none !important; padding: 0 !important; border-radius: 0 !important; color: inherit !important;
  text-align: start !important; margin: 0 0 1.2em !important; box-shadow: none !important; }
.site-section.a1s-pagehead ~ .section-article .art-cover .art-cover-title,
.site-section.a1s-pagehead ~ .section-article .art-cover .art-cover-sub { display: none !important; }
.site-section.a1s-pagehead ~ .section-article .art-cover p,
.site-section.a1s-pagehead ~ .section-article .art-cover strong,
.site-section.a1s-pagehead ~ .section-article .art-cover a { color: var(--text-primary, #1F2A24) !important; }
.site-section.a1s-pagehead ~ .section-article .art-cover .art-crumb { color: var(--text-muted, #5B6660) !important; font-size: .86rem; }
.site-section.a1s-pagehead.a1s-cover-in-head ~ .section-article .art-cover > p:not(.art-cover-sub):not(:has(.art-crumb)) { display: none !important; }
