/* ==========================================================
   Les amis du Père Henri Boulad — overrides on the Sadakat theme
   Palette: background #101010 · accent #F67D4A · headings #F3E9D4
            body text #D9D3C7 · navy #1B365D · olive #5B6745
   ========================================================== */
:root {
  --b-bg: #101010;
  --b-accent: #F67D4A;
  --b-cream: #F3E9D4;
  --b-text: #D9D3C7;
  --b-muted: #9a958c;
  --b-navy: #1B365D;
  --b-card: #1a1a1a;
}

body { background: var(--b-bg); color: var(--b-text); }
p, li { color: var(--b-text); }
h1, h2, h3, h4, h5, h6 { color: var(--b-cream); }
.theme-change-btn { display: none !important; }
.hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; opacity: 0; }

/* ---------- Header brand (icon + two-line name) ---------- */
.tp-site-header .navbar-brand.site-brand { display: flex; align-items: center; gap: 12px; height: auto; padding-top: 18px; padding-bottom: 18px; }
.site-brand .brand-icon { width: 52px; height: 52px; border-radius: 50%; flex: none; }
.site-brand .brand-text { display: flex; flex-direction: column; line-height: 1.05; }
.site-brand .brand-text small { font: 400 15px/1.2 "Poppins", "Rubik", sans-serif; color: #fff; letter-spacing: .2px; }
.site-brand .brand-text strong { font: 700 26px/1.1 "Poppins", "Rubik", sans-serif; color: var(--b-accent); white-space: nowrap; }
@media (max-width: 991px) {
  .site-brand .brand-icon { width: 44px; height: 44px; }
  .site-brand .brand-text strong { font-size: 22px; }
  .site-brand .brand-text small { font-size: 13px; }
}
.tp-site-header #navbar > ul > li.current-menu-item > a { color: var(--b-accent); }
.tp-site-header #navbar > ul > li > a { text-transform: none; font-size: 15px; }
@media (min-width: 992px) and (max-width: 1199px) {
  .tp-site-header #navbar > ul > li > a { padding-left: 8px; padding-right: 8px; font-size: 14px; }
}

/* Language switcher in the top bar */
.lang-switch a { display: inline-block; padding: 2px 8px; margin: 0 1px; border-radius: 3px; color: #fff; font-weight: 600; font-size: 13px; }
.lang-switch a.active, .lang-switch a:hover { background: var(--b-accent); color: #fff; }
.lang-switch a[lang="ar"] { font-family: "Noto Naskh Arabic", serif; font-size: 14px; }
.topbar .contact-intro a { color: inherit; }

/* ---------- Page banner (uses the page's first photo) ---------- */
.tp-breadcumb-area {
  background: linear-gradient(rgba(16,16,16,.55), rgba(16,16,16,.75)), var(--banner, none) no-repeat center 30% / cover, #1c2a3d;
  min-height: 300px;
}
.tp-breadcumb-area:before { display: none; }
.tp-breadcumb-wrap h2 { color: var(--b-cream); font-family: "Lora", Georgia, serif; font-weight: 700; }

/* ---------- Generic page body ---------- */
.boulad-page { background: var(--b-bg); }
.page-body { font-size: 17px; line-height: 1.75; }
.page-body .block-title, .home-about .block-title {
  font-family: "Lora", Georgia, serif; color: var(--b-cream); font-size: 26px; margin: 42px 0 16px;
  padding-bottom: 10px; border-bottom: 2px solid var(--b-accent); display: inline-block;
}
.page-body > .block-title:first-child { margin-top: 0; }
.page-text p { margin-bottom: 1em; }
.lang-note { background: #1c2a3d; border-inline-start: 4px solid var(--b-accent); padding: 14px 18px; margin-bottom: 30px; color: var(--b-cream); border-radius: 4px; }

/* Draft-mode boxes (only shown when DRAFT_MODE = true) */
.draft-box { border: 2px dashed #d4a359; background: rgba(212,163,89,.08); color: #e9d8b5; padding: 14px 18px; margin: 16px 0; border-radius: 6px; font-size: 14px; line-height: 1.5; }
.draft-box code { color: #fff; background: rgba(255,255,255,.08); padding: 1px 5px; border-radius: 3px; word-break: break-all; }
.draft-box a { color: var(--b-accent); word-break: break-all; }
.draft-box.warn { border-color: #c4683c; background: rgba(196,104,60,.08); }

/* Image galleries */
.boulad-gallery { display: grid; gap: 10px; margin: 20px 0 26px; }
.boulad-gallery.single { grid-template-columns: 1fr; }
.boulad-gallery.two { grid-template-columns: 1fr 1fr; }
.boulad-gallery.grid { grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); }
.boulad-gallery .gal-item { display: block; border-radius: 6px; overflow: hidden; background: #1c1c1c; }
.boulad-gallery img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .4s; }
.boulad-gallery.grid img, .boulad-gallery.two img { aspect-ratio: 4 / 3; }
.boulad-gallery.single img { max-height: 560px; object-fit: contain; background: #151515; }
.boulad-gallery .gal-item:hover img { transform: scale(1.04); }
.boulad-gallery .gal-item.missing { min-height: 120px; border: 1px dashed #444; }
.boulad-gallery .gal-item.missing img { visibility: hidden; }

/* Videos */
.video-block { margin: 22px 0 30px; }
.video-wrap { position: relative; padding-top: 56.25%; border-radius: 8px; overflow: hidden; background: #000; }
.video-wrap iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video-block figcaption { margin-top: 10px; font-size: 15px; color: var(--b-muted); }
.home-videos { background: #141414; }
.home-videos .video-block figcaption { color: var(--b-cream); font-family: "Lora", Georgia, serif; font-size: 17px; }

/* Buttons & links inside pages */
.small-btn { padding: 10px 22px !important; font-size: 14px !important; margin: 4px 6px 4px 0; }
.doc-link { margin: 8px 0; }
.ext-link a { color: var(--b-accent); word-break: break-word; }
.news-nav { display: flex; flex-wrap: wrap; gap: 10px; justify-content: space-between; margin-top: 50px; padding-top: 24px; border-top: 1px solid #2a2a2a; }

/* Home */
.hero-motto { font-family: "Lora", Georgia, serif; font-style: italic; font-size: 22px !important; color: var(--b-accent) !important; letter-spacing: .5px; }
.hero .slide-title h2 { font-family: "Lora", Georgia, serif; }
.medallion-wrap img { width: 100%; max-width: 420px; display: block; margin: 0 auto; filter: drop-shadow(0 10px 30px rgba(0,0,0,.5)); }
.home-about .about-content .section-title h2 { font-family: "Lora", Georgia, serif; }
.cause-item .cause-img { background: #1c1c1c; min-height: 240px; }
.cause-item .cause-img img { aspect-ratio: 4 / 3; object-fit: cover; width: 100%; }
.blog-grids .entry-media { display: block; background: #1c1c1c; aspect-ratio: 4 / 3; overflow: hidden; }
.blog-grids .entry-media img { width: 100%; height: 100%; object-fit: cover; }
.blog-grids .read-more { color: var(--b-accent); font-weight: 600; }
.tp-cta-area { background: linear-gradient(rgba(16,16,16,.6), rgba(16,16,16,.8)), url(../../images/07-enfants-sans-abri/03-enfantsdf.jpg) center / cover, #1c2a3d; }
.section-title span { color: var(--b-accent); }
.footer-medallion { width: 120px; height: 120px; }
.footer-motto { font-family: "Lora", Georgia, serif; font-style: italic; color: var(--b-accent) !important; margin-top: 18px; }
.video-row { margin-top: 50px; }

/* Forms */
.boulad-form label { display: block; color: var(--b-cream); font-weight: 600; margin-bottom: 16px; }
.boulad-form .form-control { margin-top: 6px; background: #1a1a1a; border: 1px solid #333; color: #fff; height: auto; padding: 12px 14px; }
.boulad-form textarea.form-control { resize: vertical; }
.form-ok, .form-err { padding: 12px 16px; border-radius: 4px; margin: 10px 0 20px; }
.form-ok { background: rgba(91,103,69,.35); color: #e6efd5 !important; }
.form-err { background: rgba(196,104,60,.3); color: #ffd9c7 !important; }
.contact-direct { text-align: center; margin-top: 30px; }
.contact-direct a { color: var(--b-accent); }

/* ==========================================================
   Arabic: right-to-left layout and font
   ========================================================== */
html[dir="rtl"] body { font-family: "Noto Naskh Arabic", "Open Sans", serif; }
html[dir="rtl"] h1, html[dir="rtl"] h2, html[dir="rtl"] h3, html[dir="rtl"] h4,
html[dir="rtl"] .tp-site-header #navbar > ul > li > a, html[dir="rtl"] .theme-btn, html[dir="rtl"] .theme-btn-s2 {
  font-family: "Noto Naskh Arabic", "Rubik", serif;
}
html[dir="rtl"] .site-brand .brand-text small, html[dir="rtl"] .site-brand .brand-text strong { font-family: "Noto Naskh Arabic", serif; }
html[dir="rtl"] body, html[dir="rtl"] .page-body, html[dir="rtl"] .about-content { text-align: right; }
html[dir="rtl"] .navbar-header, html[dir="rtl"] .navbar-brand { float: right; }
html[dir="rtl"] .navbar-right { float: left !important; }
html[dir="rtl"] .navbar-nav > li { float: right; }
html[dir="rtl"] .tp-site-header #navbar > ul .sub-menu { left: auto; right: 0; text-align: right; }
html[dir="rtl"] .col, html[dir="rtl"] [class*="col-"] { float: right; }
html[dir="rtl"] .col-lg-offset-1 { margin-left: 0; margin-right: 8.333%; }
html[dir="rtl"] .col-lg-offset-2 { margin-left: 0; margin-right: 16.666%; }
html[dir="rtl"] .col-md-offset-2 { margin-left: 0; margin-right: 16.666%; }
html[dir="rtl"] .contact-info { text-align: left; }
html[dir="rtl"] .contact-intro { text-align: right; }
html[dir="rtl"] .tp-breadcumb-wrap ul li + li:before { transform: scaleX(-1); }
html[dir="rtl"] .hero .slide-caption { float: right; text-align: right; }
html[dir="rtl"] .hero-motto, html[dir="rtl"] .footer-motto { font-family: "Noto Naskh Arabic", serif; font-style: normal; }
html[dir="rtl"] .news-letter-section .newsletter-form button { left: 0; right: auto; }
@media (max-width: 991px) {
  html[dir="rtl"] .col, html[dir="rtl"] [class*="col-"] { float: none; }
  html[dir="rtl"] .col-lg-offset-1, html[dir="rtl"] .col-lg-offset-2, html[dir="rtl"] .col-md-offset-2 { margin-right: 0; }
  html[dir="rtl"] .navbar-header { float: none; }
  html[dir="rtl"] .tp-site-header .navbar-header .open-btn { float: left; }
}

/* Page banner: leave room for the header that sits on top of it */
.tp-breadcumb-area { padding-top: 190px; padding-bottom: 60px; min-height: 0; }
@media (max-width: 991px) { .tp-breadcumb-area { padding-top: 150px; padding-bottom: 40px; } }
@media (max-width: 767px) { .tp-breadcumb-wrap h2 { font-size: 30px; } }

/* Headings always on their own line */
.page-body .block-title, .home-about .block-title { display: table; }
html[dir="rtl"] .page-body .block-title { margin-left: auto; margin-right: 0; }
.page-body .lang-note + .page-body { margin-top: 0; }

/* Medallion on the home page: no template frame */
.about-img.medallion-wrap { border: 0 !important; padding: 0 !important; background: none !important; box-shadow: none !important; }
.about-img.medallion-wrap:before, .about-img.medallion-wrap:after { display: none !important; }

/* Mobile: header is taller (top bar wraps), banner needs more room */
@media (max-width: 767px) { .tp-breadcumb-area { padding-top: 240px; } }

/* Arabic on mobile: brand on the right, menu button on the left, no overlap */
@media (max-width: 991px) {
  html[dir="rtl"] .navbar-header { display: flex; align-items: center; justify-content: space-between; float: none; width: 100%; }
  html[dir="rtl"] .navbar-header .navbar-brand { float: none; order: 1; }
  html[dir="rtl"] .tp-site-header .navbar-header .open-btn { float: none; order: 2; margin: 0; position: static; }
  html[dir="rtl"] .navbar-nav > li, html[dir="rtl"] .navbar-nav { float: none !important; width: 100%; }
  html[dir="rtl"] .tp-site-header #navbar > ul > li > a { text-align: right; }
  html[dir="rtl"] .tp-site-header #navbar > ul .sub-menu { position: static; text-align: right; }
}
.about-img.medallion-wrap img { padding: 0 !important; border: 0 !important; }
.about-img.medallion-wrap { margin-right: 0 !important; text-align: center !important; }

/* ---------- Auto-portrait: calligraphy quote + signature ---------- */
@font-face {
  font-family: "Petit Formal Script";
  src: url(../fonts/petit-formal-script.woff2) format("woff2");
  font-display: swap;
}
.autoportrait { background: radial-gradient(ellipse at center, #1a1612 0%, #101010 70%); }
.calli-quote { margin: 0; text-align: center; position: relative; padding: 40px 10px 10px; }
.calli-quote:before { content: "“"; position: absolute; top: -30px; left: 50%; transform: translateX(-50%); font: 140px/1 "Lora", Georgia, serif; color: rgba(246,125,74,.35); }
.calli-label { font: 600 13px/1 "Poppins", sans-serif; letter-spacing: 4px; text-transform: uppercase; color: var(--b-accent); margin-bottom: 26px; }
.calli-quote blockquote { border: 0; margin: 0; padding: 0; }
.calli-quote blockquote p { font-family: "Petit Formal Script", "Lora", cursive; font-size: 24px; line-height: 1.85; color: var(--b-cream); margin: 0 0 14px; }
.calli-quote .q-caps { color: var(--b-accent); }
.calli-sign { margin-top: 26px; display: flex; flex-direction: column; align-items: center; gap: 4px; }
.calli-sign img { width: 230px; max-width: 70%; height: auto; opacity: .95; }
.calli-sign span { font: italic 15px "Lora", Georgia, serif; color: var(--b-muted); }
@media (max-width: 767px) { .calli-quote blockquote p { font-size: 19px; line-height: 1.75; } .calli-sign img { width: 180px; } }

/* ---------- Photo gallery ---------- */
.gallery-intro { text-align: center; max-width: 680px; margin: 0 auto 40px; font-size: 17px; }
.album-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 22px; }
.album-card { display: block; background: #1a1a1a; border-radius: 10px; overflow: hidden; transition: transform .3s, box-shadow .3s; }
.album-card:hover { transform: translateY(-4px); box-shadow: 0 12px 30px rgba(0,0,0,.45); }
.album-cover { display: block; aspect-ratio: 4 / 3; overflow: hidden; background: #222; }
.album-cover img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.album-card:hover .album-cover img { transform: scale(1.05); }
.album-info { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; padding: 14px 16px; }
.album-info strong { color: var(--b-cream); font-family: "Lora", Georgia, serif; font-size: 17px; font-weight: 600; }
.album-info small { color: var(--b-accent); white-space: nowrap; font-weight: 600; }
.album-head { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; margin-bottom: 24px; }
.album-count { color: var(--b-muted); }
html[dir="rtl"] .album-info { flex-direction: row-reverse; }

/* ---------- Home banner without photo ---------- */
.hero-plain {
  padding: 230px 0 120px;
  background: radial-gradient(ellipse at 50% 35%, #1c2a3d 0%, #121418 55%, #101010 100%);
  text-align: center; position: relative; overflow: hidden;
}
.hero-plain:after { content: ""; position: absolute; left: 50%; bottom: 0; width: 140px; height: 2px; margin-left: -70px; background: var(--b-accent); }
.hero-plain h1 { font-family: "Lora", Georgia, serif; font-weight: 700; font-size: 58px; line-height: 1.15; color: var(--b-cream); margin: 0 0 18px; }
.hero-plain h1 span { color: var(--b-accent); }
.hero-plain .hero-motto { font-size: 26px !important; margin-bottom: 8px; }
.hero-plain .hero-tagline { font-family: "Lora", Georgia, serif; font-style: italic; color: var(--b-muted); font-size: 18px; margin-bottom: 34px; }
.hero-plain .btns a { margin: 0 6px; }
@media (max-width: 767px) {
  .hero-plain { padding: 250px 0 80px; }
  .hero-plain h1 { font-size: 38px; }
  .hero-plain .hero-motto { font-size: 21px !important; }
}
html[dir="rtl"] .hero-plain h1 { font-family: "Noto Naskh Arabic", serif; }

/* Menu: 8 items must fit on one line on desktop */
@media (min-width: 992px) {
  .tp-site-header #navbar > ul > li > a { padding-left: 9px !important; padding-right: 9px !important; font-size: 14.5px; }
  .tp-site-header .navigation .container { display: flex; align-items: center; justify-content: space-between; }
  .tp-site-header .navigation .container:before, .tp-site-header .navigation .container:after { display: none; }
  .tp-site-header #navbar { float: none !important; }
  .tp-site-header #navbar > ul { float: none; display: flex; flex-wrap: nowrap; }
  .tp-site-header #navbar > ul > li { float: none; white-space: nowrap; }
}
@media (min-width: 992px) and (max-width: 1199px) {
  .tp-site-header #navbar > ul > li > a { padding-left: 6px !important; padding-right: 6px !important; font-size: 13px; }
  .site-brand .brand-text strong { font-size: 22px; }
}

/* ---------- Menu clean-up ---------- */
/* no template "magic cursor" ring */
#magic-cursor, #ball { display: none !important; }
body, a, button { cursor: auto; }
a, button, .theme-btn, .theme-btn-s2 { cursor: pointer; }

/* top-level items: normal French capitalisation, aligned right */
.tp-site-header #navbar > ul > li > a { text-transform: none !important; letter-spacing: .1px; }
@media (min-width: 992px) {
  .tp-site-header #navbar { margin-left: auto; }
  html[dir="rtl"] .tp-site-header #navbar { margin-left: 0; margin-right: auto; }
}

/* drop-down menus: wide enough, sentence case, clear hover */
.tp-site-header #navbar > ul .sub-menu {
  min-width: 250px; width: max-content; max-width: 340px;
  background: #1b1b1b; border-top: 2px solid var(--b-accent); border-radius: 0 0 6px 6px;
  box-shadow: 0 14px 30px rgba(0,0,0,.5); padding: 6px 0;
}
.tp-site-header #navbar > ul .sub-menu li a {
  text-transform: none !important; white-space: normal; font-size: 14.5px; line-height: 1.4;
  padding: 10px 20px !important; color: var(--b-text);
}
.tp-site-header #navbar > ul .sub-menu li a:hover { color: var(--b-accent); background: rgba(246,125,74,.07); }
.tp-site-header #navbar > ul .sub-menu li + li a { border-top: 1px solid #262626; }
@media (max-width: 991px) {
  .tp-site-header #navbar > ul .sub-menu { width: auto; max-width: none; min-width: 0; box-shadow: none; border-top: 0; background: transparent; }
}
@media (min-width: 992px) {
  .tp-header-style-2 #navbar { margin-right: 0 !important; }
  html[dir="rtl"] .tp-header-style-2 #navbar { margin-left: 0 !important; }
}

/* ---------- Home banner: calligraphy quote (left) + portrait (right) ---------- */
.hero-quote {
  padding: 210px 0 70px;
  background: radial-gradient(ellipse at 30% 45%, #1d1814 0%, #121212 55%, #101010 100%);
}
.hero-quote-grid { display: grid; grid-template-columns: 1.25fr 1fr; gap: 40px; align-items: center; }
.hero-quote .calli-quote { padding: 0; }
.hero-quote .calli-quote:before { display: none; }
.hero-quote .calli-label { margin-bottom: 22px; font-size: 15px; letter-spacing: 5px; }
.hero-quote .calli-quote blockquote p { font-size: 29px; line-height: 1.75; margin-bottom: 18px; }
.calli-quote blockquote strong { font-weight: 400; -webkit-text-stroke: 0.55px currentColor; color: #FFF6E6; }
.calli-quote blockquote strong.q-caps { color: var(--b-accent); }
.hero-quote .calli-sign img { width: 260px; }
.hero-portrait { position: relative; height: 100%; min-height: 420px; }
.hero-portrait img {
  width: 100%; height: 100%; object-fit: cover; object-position: 45% 30%;
  filter: grayscale(1) contrast(1.05);
  -webkit-mask-image: radial-gradient(ellipse 75% 80% at 55% 50%, #000 55%, transparent 100%);
          mask-image: radial-gradient(ellipse 75% 80% at 55% 50%, #000 55%, transparent 100%);
}
@media (max-width: 1199px) { .hero-quote .calli-quote blockquote p { font-size: 25px; } }
@media (max-width: 991px) {
  .hero-quote { padding: 170px 0 50px; }
  .hero-quote-grid { grid-template-columns: 1fr; gap: 10px; }
  .hero-portrait { order: -1; min-height: 0; height: 300px; max-width: 460px; margin: 0 auto; width: 100%; }
  .hero-quote .calli-quote blockquote p { font-size: 22px; }
}
@media (max-width: 767px) {
  .hero-quote { padding-top: 240px; }
  .hero-portrait { height: 240px; }
  .hero-quote .calli-quote blockquote p { font-size: 19px; line-height: 1.7; }
  .hero-quote .calli-sign img { width: 190px; }
}

/* portrait: natural proportions (source is landscape), soft edges blended into the background */
.hero-portrait { height: auto !important; min-height: 0 !important; aspect-ratio: 547 / 365; border-radius: 8px; overflow: hidden; }
.hero-portrait img { height: 100%; object-position: center 35%; -webkit-mask-image: none; mask-image: none; }
.hero-portrait:after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background:
    linear-gradient(90deg, #131313 0%, rgba(19,19,19,0) 22%),
    linear-gradient(270deg, #111 0%, rgba(17,17,17,0) 12%),
    linear-gradient(180deg, #121212 0%, rgba(18,18,18,0) 14%),
    linear-gradient(0deg, #101010 0%, rgba(16,16,16,0) 18%);
}
@media (max-width: 991px) { .hero-portrait { max-width: 460px; } }
.hero-portrait img { filter: grayscale(1) contrast(1.08) brightness(.88); }
.hero-portrait:before {
  content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: radial-gradient(ellipse 70% 75% at 50% 45%, rgba(16,16,16,0) 45%, rgba(16,16,16,.55) 75%, #101010 100%);
}
.hero-portrait:after { z-index: 2; }

/* Banner balance: photo at least as tall as the quote (never smaller) */
@media (min-width: 992px) {
  .hero-quote-grid { grid-template-columns: 1fr 1fr; gap: 36px; align-items: stretch; }
  .hero-quote .calli-quote { align-self: center; }
  .hero-quote .calli-quote blockquote p { font-size: 24px; line-height: 1.7; margin-bottom: 12px; }
  .hero-quote .calli-sign { margin-top: 16px; }
  .hero-quote .calli-sign img { width: 220px; }
  .hero-portrait { aspect-ratio: auto !important; height: auto !important; min-height: 100% !important; align-self: stretch; }
  .hero-portrait img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 40%; }
}
@media (min-width: 1200px) { .hero-quote .calli-quote blockquote p { font-size: 26px; } }

/* ---------- Wider, modern layout on large screens ---------- */
@media (min-width: 1400px) { .container { width: 1360px; } }
/* top bar is slimmer now (no button) */
.topbar { padding: 6px 0; }
.topbar .contact-intro ul li, .topbar .contact-info ul li { padding-top: 10px; padding-bottom: 10px; }

/* home banner: wider than the rest of the site, bigger photo and text */
.hero-quote .container { width: auto; max-width: 1560px; padding-left: 40px; padding-right: 40px; }
@media (min-width: 1400px) {
  .hero-quote-grid { grid-template-columns: 1fr 1.1fr; gap: 60px; }
  .hero-quote .calli-quote blockquote p { font-size: 30px; }
  .hero-quote .calli-label { font-size: 16px; }
  .hero-quote .calli-sign img { width: 260px; }
}
@media (max-width: 767px) { .hero-quote .container { padding-left: 15px; padding-right: 15px; } }
/* header is shorter now: pull the banners up */
@media (min-width: 992px) {
  .hero-quote { padding-top: 175px; }
  .tp-breadcumb-area { padding-top: 165px; }
}

/* Quote in Arabic: Ruq'ah calligraphy, right to left */
.calli-ar blockquote p { font-family: "Aref Ruqaa", "Noto Naskh Arabic", serif !important; font-size: 30px !important; line-height: 2 !important; }
.calli-ar blockquote strong { -webkit-text-stroke: 0; font-weight: 700; }
.calli-ar .calli-label { letter-spacing: 0; font-family: "Noto Naskh Arabic", serif; font-size: 18px; }
@media (max-width: 767px) { .calli-ar blockquote p { font-size: 23px !important; } }
/* English keeps the French copperplate calligraphy */

/* Arabic quote: "immense harvest of love" on its own line */
.calli-ar .q-line { display: block; margin-top: 4px; }

/* ===== New menu (Oct 2026): logo only, bigger menu text ===== */
.site-brand .brand-icon { width: 64px; height: 64px; }
.tp-site-header .navbar-brand.site-brand { padding-top: 12px; padding-bottom: 12px; }
@media (min-width: 992px) {
  .tp-site-header #navbar > ul > li > a { font-size: 16px !important; font-weight: 500; padding-left: 13px !important; padding-right: 13px !important; }
}
@media (min-width: 1200px) {
  .tp-site-header #navbar > ul > li > a { font-size: 17.5px !important; padding-left: 18px !important; padding-right: 18px !important; }
}
.tp-site-header #navbar > ul .sub-menu li a { font-size: 15px; }
html[dir="rtl"] .tp-site-header #navbar > ul > li > a { font-size: 18px !important; }
@media (max-width: 991px) { .site-brand .brand-icon { width: 50px; height: 50px; } .tp-site-header #navbar > ul > li > a { font-size: 17px; } }

/* ===== Article pages (biography, books, tributes) ===== */
.article-body { font-size: 17px; line-height: 1.85; }
.article-body .lead { font-size: 20px; line-height: 1.7; color: var(--b-cream); font-family: "Lora", serif; margin-bottom: 26px; }
.article-body h3 { color: var(--b-accent); font-size: 24px; margin: 34px 0 14px; }
.article-body a:not(.theme-btn) { color: var(--b-accent); text-decoration: underline; text-underline-offset: 3px; }
.timeline { list-style: none; padding: 0; margin: 0 0 20px; border-left: 2px solid var(--b-accent); }
.timeline li { position: relative; padding: 0 0 16px 26px; }
.timeline li:before { content: ""; position: absolute; left: -7px; top: 9px; width: 12px; height: 12px; border-radius: 50%; background: var(--b-accent); }
.timeline b { display: inline-block; min-width: 92px; color: var(--b-accent); font-weight: 700; }
html[dir="rtl"] .timeline { border-left: 0; border-right: 2px solid var(--b-accent); }
html[dir="rtl"] .timeline li { padding: 0 26px 16px 0; }
html[dir="rtl"] .timeline li:before { left: auto; right: -7px; }
.bio-quote { border: 0; border-left: 3px solid var(--b-accent); margin: 30px 0; padding: 8px 0 8px 24px; font-family: "Lora", serif; font-style: italic; font-size: 21px; color: var(--b-cream); }
.bio-quote cite { display: block; margin-top: 10px; font-size: 14px; font-style: normal; color: #9b9b9b; }
html[dir="rtl"] .bio-quote { border-left: 0; border-right: 3px solid var(--b-accent); padding: 8px 24px 8px 0; font-family: "Noto Naskh Arabic", serif; font-style: normal; }
.bio-side { position: sticky; top: 110px; background: #161616; border: 1px solid #262626; border-radius: 10px; padding: 18px; }
.bio-side img { width: 100%; border-radius: 6px; filter: grayscale(1); }
.bio-dates { text-align: center; margin: 14px 0 10px; color: var(--b-cream); font-family: "Lora", serif; font-size: 18px; }
.bio-dates span { color: var(--b-accent); font-size: 16px; }
.bio-chapters { margin: 0; padding: 0 0 0 20px; }
html[dir="rtl"] .bio-chapters { padding: 0 20px 0 0; }
.bio-chapters li { padding: 7px 0; border-top: 1px solid #262626; color: #777; }
.bio-chapters li a { color: #d9d9d9; }
.bio-chapters li.active a, .bio-chapters li a:hover { color: var(--b-accent); }
.chapter-nav { display: flex; justify-content: space-between; gap: 16px; margin-top: 44px; padding-top: 22px; border-top: 1px solid #2a2a2a; }
.chapter-nav a { display: block; max-width: 48%; color: var(--b-cream); font-size: 17px; }
.chapter-nav a small { display: block; color: var(--b-accent); font-size: 13px; letter-spacing: 1px; text-transform: uppercase; }
.chapter-nav .next { text-align: right; margin-left: auto; }
html[dir="rtl"] .chapter-nav .next { text-align: left; margin-left: 0; margin-right: auto; }
@media (max-width: 991px) { .bio-side { position: static; margin-top: 40px; } }
.book-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 18px; margin: 10px 0 24px; }
.book { background: linear-gradient(160deg, #1f2a44, #121212); border: 1px solid #2c2c2c; border-left: 4px solid var(--b-accent); border-radius: 6px; padding: 22px 18px; min-height: 170px; display: flex; flex-direction: column; justify-content: space-between; }
.book .y { color: var(--b-accent); font-weight: 700; font-size: 14px; }
.book h4 { color: #fff; font-family: "Lora", serif; font-size: 19px; line-height: 1.35; margin: 10px 0 0; }
.book p { margin: 10px 0 0; font-size: 14px; }
.book.featured { border-color: var(--b-accent); box-shadow: 0 0 0 1px var(--b-accent) inset; }
.small-note { color: #9b9b9b; font-size: 14px; }

/* ===== Pensées page ===== */
.pensee-day { text-align: center; padding: 34px 20px 30px; border-top: 1px solid #2a2a2a; border-bottom: 1px solid #2a2a2a; margin-bottom: 30px; }
.pd-label { color: var(--b-accent); letter-spacing: 4px; text-transform: uppercase; font-size: 13px; font-weight: 600; }
.pensee-day blockquote { border: 0; margin: 16px auto; max-width: 820px; font-family: "Lora", serif; font-size: 27px; line-height: 1.5; color: var(--b-cream); }
.pd-meta { color: #9b9b9b; font-size: 14px; }
.pensee-tools { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; }
.pensee-tools input { flex: 1 1 260px; background: #161616; border: 1px solid #2c2c2c; color: #fff; height: 48px; }
#pcount { color: #9b9b9b; font-size: 14px; }
.pensee-chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 16px 0 10px; }
.pensee-chips .chip { background: #1b1b1b; color: #ddd; border: 1px solid #2c2c2c; border-radius: 999px; padding: 6px 14px; font-size: 13px; }
.pensee-chips .chip.on { background: var(--b-accent); border-color: var(--b-accent); color: #111; }
.pensee-list { list-style: none; padding: 0; margin: 10px 0 24px; }
.pensee-list li { padding: 20px 0; border-top: 1px solid #262626; }
.pensee-list p { margin: 0 0 6px; font-family: "Lora", serif; font-size: 19px; line-height: 1.6; color: var(--b-cream); }
.pensee-list small { color: var(--b-accent); }
.home-books .book-grid { grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); }
a.book { text-decoration: none; transition: transform .2s, border-color .2s; }
a.book:hover { transform: translateY(-4px); border-color: var(--b-accent); }
.home-books .section-title span { text-transform: none; }
@media (min-width: 992px) { .home-books .book-grid { grid-template-columns: repeat(6, 1fr); } }

/* ===== Projects ===== */
.project-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 20px; margin: 10px 0 20px; }
.project-card { display: block; background: #161616; border: 1px solid #2a2a2a; border-top: 3px solid var(--b-accent); border-radius: 8px; padding: 22px; text-decoration: none !important; transition: transform .2s, border-color .2s; }
.project-card:hover { transform: translateY(-4px); border-color: var(--b-accent); }
.project-card .y { color: var(--b-accent); font-size: 13px; font-weight: 700; letter-spacing: .5px; }
.project-card h4 { color: #fff; font-family: "Lora", serif; font-size: 20px; margin: 8px 0 10px; }
.project-card p { color: #c9c9c9; font-size: 15px; line-height: 1.65; margin: 0; }
.project-card.main { grid-column: 1 / -1; background: linear-gradient(135deg, #2a1a12, #161616 60%); border: 1px solid var(--b-accent); }
.project-card.main h4 { font-size: 26px; color: var(--b-accent); }
.project-card.main p { font-size: 17px; color: var(--b-cream); }
.page-intro { margin-bottom: 30px; }

/* ===== Home: his last dream ===== */
.home-dream { padding: 90px 0; background: linear-gradient(180deg, #121212, #1a120d 50%, #121212); }
.dream-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; align-items: center; }
.dream-img { border-radius: 10px; overflow: hidden; min-height: 360px; background: #1e1e1e url('../../images/logos/logo-medaillon-512.png') center / 45% no-repeat; }
.dream-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.dream-img.noimg img { display: none; }
.dream-kicker { color: var(--b-accent); letter-spacing: 4px; text-transform: uppercase; font-size: 13px; font-weight: 600; }
.dream-text h2 { font-size: 40px; margin: 10px 0 18px; }
.dream-text p { font-size: 18px; line-height: 1.8; color: #d6d6d6; }
.dream-facts { list-style: none; padding: 0; margin: 26px 0; display: flex; gap: 28px; flex-wrap: wrap; }
.dream-facts li { color: #bdbdbd; font-size: 14px; max-width: 150px; }
.dream-facts b { display: block; color: var(--b-accent); font-size: 34px; font-family: "Lora", serif; line-height: 1.1; }
.dream-text .btns { display: flex; gap: 14px; flex-wrap: wrap; }
html[dir="rtl"] .dream-kicker { letter-spacing: 0; }
@media (max-width: 991px) { .dream-grid { grid-template-columns: 1fr; gap: 26px; } .dream-img { min-height: 240px; } .dream-text h2 { font-size: 30px; } }
.contact-ft .ft-address { line-height: 1.6; }
.contact-ft .ft-address span { display: inline-block; vertical-align: top; }
.tp-site-footer .contact-ft ul li.ft-address { display: flex; align-items: flex-start; }
.tp-site-footer .contact-ft ul li.ft-address i { flex: 0 0 35px; font-size: 18px; padding-top: 3px; }
html[dir="rtl"] .tp-site-footer .contact-ft ul li.ft-address { flex-direction: row; }
