/* FNAC Maroc — single blog posts. Loaded only on blog-related pages. */
#top .fnac-blog {
  --blog-blue: #063f7c;
  --blog-deep: #032f61;
  --blog-orange: #f2920a;
  --blog-pale: #eaf6ff;
  box-sizing: border-box;
  color: #17324f;
  background: #fff;
  font-size: 16px;
  line-height: 1.7;
}
#top .fnac-blog *, #top .fnac-blog *::before, #top .fnac-blog *::after { box-sizing: border-box; }
#top .fnac-blog-container { width: min(1220px, calc(100% - 48px)); margin-inline: auto; }

/* Banner */
#top .fnac-blog-banner {
  position: relative;
  isolation: isolate;
  padding: 95px 0 56px;
  background: linear-gradient(90deg, rgba(2,35,77,.96), rgba(3,47,97,.75)), url('../images/hero-hassan-ii.png') center 42% / cover no-repeat;
  color: #fff;
}
#top .fnac-blog-breadcrumb { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 25px; font-size: 13px; color: #e3edf8; }
#top .fnac-blog-breadcrumb a { color: #fff; text-decoration: none; }
#top .fnac-blog-breadcrumb a:hover { color: #ffb94f; }
#top .fnac-blog-eyebrow { margin: 0 0 10px; color: #fff; font-size: 12px; font-weight: 800; letter-spacing: .16em; }
#top .fnac-blog-banner-title { margin: 0 !important; color: #fff !important; font-size: clamp(32px,4vw,52px); line-height: 1.15; letter-spacing: -.03em; overflow-wrap: anywhere; }
#top .fnac-blog-banner-title::after { content: ''; display: block; width: 44px; height: 4px; margin-top: 18px; background: var(--blog-orange); border-radius: 3px; }

/* Article layout */
#top .fnac-blog-layout { display: grid; grid-template-columns: minmax(0,2.05fr) minmax(280px,1fr); gap: 42px; align-items: start; padding-top: 52px; padding-bottom: 78px; }
#top .fnac-blog-article, #top .fnac-blog-sidebar { min-width: 0; }
#top .fnac-blog-cover { position: relative; margin-bottom: 22px; }
#top .fnac-blog-featured-image { display: block; width: 100%; height: auto; max-height: 440px; aspect-ratio: 16 / 8.4; object-fit: cover; border-radius: 12px; }
#top .fnac-blog-cover-category { position: absolute; top: 16px; left: 16px; z-index: 1; max-width: calc(100% - 32px); padding: 7px 13px; border-radius: 7px; background: var(--blog-orange); color: #fff; font-size: 13px; font-weight: 700; line-height: 1.4; text-decoration: none; }
#top .fnac-blog-cover-category:hover { background: #c97300; color: #fff; }
#top .fnac-blog-post-title { margin: 0 0 15px !important; color: var(--blog-deep) !important; font-size: clamp(28px,3vw,38px); line-height: 1.13; letter-spacing: -.035em; overflow-wrap: anywhere; }
#top .fnac-blog-post-title::before, #top .fnac-blog-post-title::after { content: none !important; display: none !important; }
#top .fnac-blog-meta { display: flex; flex-wrap: wrap; gap: 8px 22px; margin-bottom: 25px; color: #53677e; font-size: 13px; }
#top .fnac-blog-meta i { margin-right: 5px; color: var(--blog-blue); }

/* Post content and headings */
#top .fnac-blog-entry { color: #253c56; font-size: 16px; line-height: 1.78; overflow-wrap: break-word; }
#top .fnac-blog-entry p { margin: 0 0 19px; }
#top .fnac-blog-entry h2, #top .fnac-blog-entry h3 { color: var(--blog-deep) !important; line-height: 1.25; margin: 32px 0 14px !important; text-transform: none; background: none !important; box-shadow: none !important; }
#top .fnac-blog-entry h2 { font-size: 25px; border: 0 !important; border-left: 4px solid var(--blog-orange) !important; padding: 0 0 0 14px !important; }
#top .fnac-blog-entry h3 { font-size: 21px; border: 0 !important; padding: 0 !important; }
#top .fnac-blog-entry h2::before, #top .fnac-blog-entry h2::after, #top .fnac-blog-entry h3::before, #top .fnac-blog-entry h3::after { content: none !important; display: none !important; }
#top .fnac-blog-entry a { color: var(--blog-blue); text-decoration: underline; text-underline-offset: 3px; }
#top .fnac-blog-entry a:hover { color: #b96c00; }
#top .fnac-blog-entry ul, #top .fnac-blog-entry ol { margin: 0 0 20px; padding-inline-start: 26px; }
#top .fnac-blog-entry li { margin-bottom: 7px; }
#top .fnac-blog-entry img { max-width: 100%; height: auto; border-radius: 8px; }
#top .fnac-blog-entry figure { max-width: 100%; }
#top .fnac-blog-entry blockquote { margin: 24px 0; padding: 14px 22px; border-left: 4px solid var(--blog-orange); background: #f6f9fc; color: #253c56; }
#top .fnac-blog-entry table { width: 100%; border-collapse: collapse; }
#top .fnac-blog-entry th, #top .fnac-blog-entry td { padding: 10px 12px; border: 1px solid #dbe5ee; text-align: start; }

/* Share and post navigation */
#top .fnac-blog-share { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; padding-top: 25px; margin-top: 32px; border-top: 1px solid #e2eaf2; color: var(--blog-deep); }
#top .fnac-blog-share a { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 6px; background: var(--blog-blue); color: #fff; text-decoration: none; transition: background .2s ease; }
#top .fnac-blog-share a:hover { background: var(--blog-orange); color: #fff; }
#top .fnac-blog-post-nav { display: flex; justify-content: space-between; gap: 24px; margin-top: 28px; padding-top: 20px; border-top: 1px solid #e2eaf2; }
#top .fnac-blog-post-nav > div { max-width: 48%; min-width: 0; overflow-wrap: anywhere; }
#top .fnac-blog-post-nav a { color: var(--blog-blue); font-weight: 700; text-decoration: none; }
#top .fnac-blog-post-nav a:hover { color: #b96c00; }

/* Sidebar widgets */
#top .fnac-blog-widget { margin-bottom: 22px; padding: 26px; border-radius: 12px; background: var(--blog-pale); }
#top .fnac-blog-widget h2 { margin: 0 0 20px !important; padding: 0 !important; border: 0 !important; background: none !important; box-shadow: none !important; color: var(--blog-deep) !important; font-size: 20px; line-height: 1.3; text-transform: none; }
#top .fnac-blog-widget h2::before { content: none !important; display: none !important; }
#top .fnac-blog-widget h2::after { content: '' !important; display: block !important; width: 30px; height: 3px; margin: 12px 0 0 !important; background: var(--blog-orange); border: 0; }
#top .fnac-blog-search { display: flex; width: 100%; height: 46px; }
#top .fnac-blog-search input { min-width: 0; width: 100%; flex: 1; margin: 0; padding: 10px 12px; border: 1px solid #c9d9e8; border-radius: 6px 0 0 6px; background: #fff; color: #17324f; font-size: 14px; }
#top .fnac-blog-search button { flex: none; width: 48px; padding: 0; border: 0; border-radius: 0 6px 6px 0; background: var(--blog-deep); color: #fff; cursor: pointer; }
#top .fnac-blog-search button:hover { background: var(--blog-orange); }
#top .fnac-blog-category-list { margin: 0; padding: 0; list-style: none; }
#top .fnac-blog-category-list li { margin: 0; border-bottom: 1px solid #d5e5f2; }
#top .fnac-blog-category-list li:last-child { border-bottom: 0; }
#top .fnac-blog-category-list a { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 10px 0; color: var(--blog-deep); font-size: 14px; line-height: 1.4; text-decoration: none; }
#top .fnac-blog-category-list a:hover { color: #b96c00; }
#top .fnac-blog-category-list small { color: #6a8097; font-size: 12px; }
#top .fnac-blog-category-list i { font-size: 10px; }
#top .fnac-blog-recent-list { display: grid; gap: 16px; }
#top .fnac-blog-recent-item { display: grid; grid-template-columns: 92px minmax(0,1fr); gap: 12px; color: var(--blog-deep); text-decoration: none; }
#top .fnac-blog-recent-item img, #top .fnac-blog-recent-placeholder { display: block; width: 92px; height: 76px; border-radius: 7px; background: #d1e3f2; object-fit: cover; }
#top .fnac-blog-recent-item strong { display: block; font-size: 13px; line-height: 1.35; overflow-wrap: anywhere; }
#top .fnac-blog-recent-item small { display: block; margin-top: 5px; color: #61758a; font-size: 12px; }
#top .fnac-blog-recent-item:hover strong { color: #b96c00; }
#top .fnac-blog-help p { margin: 0 0 20px; font-size: 14px; line-height: 1.65; }
#top .fnac-blog-cta { display: inline-flex; align-items: center; gap: 10px; padding: 12px 16px; border-radius: 7px; background: var(--blog-orange); color: #fff !important; font-size: 13px; font-weight: 700; line-height: 1.4; text-decoration: none; transition: background .2s ease; }
#top .fnac-blog-cta:hover { background: #c97300; }

/* Accessibility and RTL */
#top .fnac-blog a:focus-visible, #top .fnac-blog button:focus-visible, #top .fnac-blog input:focus-visible { outline: 2px solid var(--blog-orange); outline-offset: 3px; }
#top .fnac-blog[dir='rtl'] .fnac-blog-entry h2, [dir='rtl'] #top .fnac-blog-entry h2 { border-left: 0 !important; border-right: 4px solid var(--blog-orange) !important; padding: 0 14px 0 0 !important; }
#top .fnac-blog[dir='rtl'] .fnac-blog-cover-category, [dir='rtl'] #top .fnac-blog-cover-category { left: auto; right: 16px; }
#top .fnac-blog[dir='rtl'] .fnac-blog-search input, [dir='rtl'] #top .fnac-blog-search input { border-radius: 0 6px 6px 0; }
#top .fnac-blog[dir='rtl'] .fnac-blog-search button, [dir='rtl'] #top .fnac-blog-search button { border-radius: 6px 0 0 6px; }

/* Responsive */
@media (max-width: 989px) {
  #top .fnac-blog-layout { grid-template-columns: minmax(0,1fr); gap: 35px; }
  #top .fnac-blog-sidebar { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 20px; }
  #top .fnac-blog-widget { margin-bottom: 0; }
}
@media (max-width: 650px) {
  #top .fnac-blog-container { width: calc(100% - 32px); }
  #top .fnac-blog-banner { padding: 62px 0 38px; }
  #top .fnac-blog-layout { padding-top: 30px; padding-bottom: 45px; }
  #top .fnac-blog-sidebar { grid-template-columns: minmax(0,1fr); }
  #top .fnac-blog-widget { padding: 20px; }
  #top .fnac-blog-featured-image { aspect-ratio: 16 / 10; }
  #top .fnac-blog-post-nav { gap: 14px; font-size: 13px; }
  #top .fnac-blog-entry h2 { font-size: 23px; }
  #top .fnac-blog-entry h3 { font-size: 20px; }
}
@media (prefers-reduced-motion: reduce) {
  #top .fnac-blog-share a, #top .fnac-blog-cta { transition: none; }
}
