/* ============================================================
   ديوان العرب — مركز قطر للشعر
   Static rebuild of the DNN/Camille skin. Values measured from the
   live site (www.diwanalarab.qa) at 1280px and 375px wide.
   ============================================================ */

:root {
  --primary: #95013d;        /* maroon — buttons, social squares, back-to-top */
  --primary-hover: #901235;
  --secondary: #5f5841;      /* olive — links, menu, header circles */
  --btn-alt: #8d7249;        /* registration button */
  --body-bg: #f5f5f5;
  --footer-bg: #f0f0ef;
  --text: #000000;
  --muted: #8f9294;
  --cat: #a6a7a8;
  --widget-border: #e6e3e3;
  /* The original requests Droid Arabic Kufi over http://, which browsers block on
     https, so the live site renders in the default sans-serif of an lang="en" page:
     Arial. Named explicitly because lang="ar" would make browsers pick a wider font. */
  --font: Arial, Helvetica, sans-serif;
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 14px;
  line-height: 25px;
  color: var(--text);
  background: var(--body-bg);
  direction: rtl;
}
h1, h2, h3, h4, h5, h6 { font-family: var(--font); font-weight: 500; line-height: 1.1; margin: 0 0 10px; }
img { max-width: 100%; height: auto; border: 0; vertical-align: middle; }
a { color: var(--secondary); text-decoration: none; }
a:hover, a:focus { color: var(--secondary); }
ul, ol { margin: 0; padding: 0; }
ul { list-style: none; }
p { margin: 0 0 10px; }
button { font-family: var(--font); }

.container { margin: 0 auto; padding: 0 15px; }
@media (min-width: 768px)  { .container { width: 750px; } }
@media (min-width: 992px)  { .container { width: 970px; } }
@media (min-width: 1200px) { .container { width: 1170px; } }

.icon { width: 1em; height: 1em; display: inline-block; vertical-align: -0.125em; fill: currentColor; }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link { position: absolute; right: 10px; top: -60px; z-index: 5000; background: var(--primary); color: #fff; padding: 10px 16px; }
.skip-link:focus { top: 10px; color: #fff; }
:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; }

/* ---------- buttons ---------- */
.btn {
  display: inline-block;
  padding: 13px 30px;
  background: var(--primary);
  color: #fff;
  border: 1px solid var(--primary);
  font-family: var(--font);
  font-size: 10px;
  line-height: 1;
  letter-spacing: 1px;
  text-align: center;
  text-transform: uppercase;
  cursor: pointer;
}
.btn:hover, .btn:focus { background: #000; border-color: #000; color: #fff; }
.btn-sm { padding: 9px 22px; font-size: 12px; }

/* hover effect of the original theme: a white frame slides in 10px from the edges */
.hfx { position: relative; display: block; }
.hfx::before {
  content: ""; position: absolute; top: 0; right: 0; bottom: 0; left: 0;
  border: 1px solid #fff; opacity: 0; z-index: 2; pointer-events: none;
}
.hfx:hover::before, .welcome-card:hover .hfx::before { top: 10px; right: 10px; bottom: 10px; left: 10px; opacity: 1; }

/* ============================================================
   HEADER — scrolling calligraphy behind a 97%-opaque beige panel
   ============================================================ */
.site-header {
  background: #fff url('../assets/Pictures/header_caligraphy.png') 0 0 repeat-y;
  background-size: 100% auto;
  animation: animatedBackground 40s linear infinite;
}
@keyframes animatedBackground {
  from { background-position: 0 0; }
  to   { background-position: 0 100%; }
}
.header-top {
  background: url('../assets/Pictures/Header-Back.jpg') 0 0 / 100% 100% no-repeat;
  opacity: .97;
}
.header-social {
  margin-right: -10px;
  display: flex;
  justify-content: flex-start;          /* RTL: icons sit on the right */
  gap: 5px;
  height: 67px;
  padding: 22px 0 5px;
}
.header-social a {
  display: inline-flex; align-items: center; justify-content: center;
  width: 40px; height: 40px; border-radius: 50%;
  background: var(--secondary); color: #fff; font-size: 18px;
  transition: background .5s;
}
.header-social a:hover { background: var(--primary-hover); color: #fff; }
.header-logo { height: 170px; display: flex; justify-content: center; align-items: flex-start; }
.header-logo img { width: 270px; height: 150px; margin-top: -35px; }   /* overlaps into the icon row */

/* ============================================================
   MAIN MENU
   ============================================================ */
.main-nav { background: rgba(255, 255, 255, .3); position: relative; z-index: 900; }
.main-nav.fixed { position: fixed; top: 0; right: 0; left: 0; background: #fff; box-shadow: 0 0 5px rgba(0, 0, 0, .2); }
.nav-inner { position: relative; display: flex; justify-content: center; border-top: 1px solid rgba(0, 0, 0, .05); }
.nav-menu { display: flex; justify-content: center; }
.nav-menu > li { position: relative; padding: 18px 0; }
.nav-menu > li > a {
  display: block;
  padding: 5px 11px;
  font-size: 16px;
  font-weight: bold;
  line-height: 22.86px;
  color: var(--secondary);
  border: 1px solid transparent;
  border-left-color: rgba(0, 0, 0, .1);
}
.nav-menu > li:last-child > a { border-left-color: transparent; }
.nav-menu > li > a:hover { color: #f37879; }
.nav-menu .icon { margin: 0 10px 0 7px; font-size: 15px; }
.nav-menu .caret { margin: 0 10px 0 0; font-size: 11px; }
.sub-menu {
  display: none; position: absolute; top: 100%; right: 0;
  min-width: 200px; background: var(--secondary); z-index: 1000;
}
.nav-menu li:hover > .sub-menu, .nav-menu li.open > .sub-menu { display: block; }
.sub-menu li a {
  display: block; padding: 10px 20px; color: #fff; font-size: 14px; font-weight: bold;
  border-top: 1px solid rgba(255, 255, 255, .2); text-align: right;
}
.sub-menu li:last-child a { border-bottom: 1px solid rgba(255, 255, 255, .2); }
.sub-menu li a:hover { background: rgba(255, 255, 255, .3); color: #fff; }

.nav-toggle {
  display: none;
  background: transparent; border: 0; cursor: pointer;
  color: #000; font-size: 14px; text-transform: uppercase;
  padding: 14px 40px; width: 180px; margin: 9px auto 10px;
}
.nav-toggle { direction: ltr; }
.nav-toggle .icon { margin-left: 5px; }
.offcanvas-btn {
  position: absolute; right: 0; top: 50%; transform: translateY(-50%);
  background: none; border: 0; padding: 4px; cursor: pointer;
  color: #000; font-size: 14px;
}
.offcanvas-btn:hover { opacity: .5; }

/* ---------- off-canvas side panel ---------- */
.offcanvas {
  position: fixed; top: 0; right: -320px; width: 300px; height: 100%;
  background: #fff; z-index: 2000; overflow-y: auto; padding: 20px;
  transition: right .35s ease; box-shadow: -2px 0 10px rgba(0, 0, 0, .2);
  visibility: hidden;
}
.offcanvas.open { right: 0; visibility: visible; }
.offcanvas-close {
  position: absolute; right: 6px; top: 6px; width: 30px; height: 30px; line-height: 28px;
  text-align: center; background: var(--primary); color: #fff; font-size: 30px; font-family: Arial, serif;
  cursor: pointer; border: 0; padding: 0; z-index: 3;
}
.offcanvas-close:hover { background: #000; }
.offcanvas-widget {
  background: url('../assets/Pictures/side-about-bg.jpg') no-repeat 50% 0;
  padding: 230px 20px 30px; text-align: center; color: #444; font-size: 12px; line-height: 18px;
  border: 4px solid var(--widget-border); margin-bottom: 20px;
}
.offcanvas-widget .ow-title { font-size: 22px; line-height: 24.2px; margin: 0 0 15px; }
.offcanvas-widget .ow-sub { font-size: 15px; line-height: 16.5px; margin: 0 0 15px; }
.offcanvas-menu { border: 4px solid var(--widget-border); padding: 15px; }
.offcanvas-menu li { border-bottom: 1px solid var(--widget-border); padding: 10px 0; text-align: right; }
.offcanvas-menu li:last-child { border-bottom: 0; }
.offcanvas-menu li a { color: #000; font-weight: bold; }
.offcanvas-menu li a:hover { color: #f37879; }
.offcanvas-menu .has-sub > a { display: flex; justify-content: space-between; align-items: center; }
.offcanvas-menu .has-sub > a .caret { font-size: 11px; transition: transform .2s; }
.offcanvas-menu .has-sub.open > a .caret { transform: rotate(180deg); }
.offcanvas-menu .sub { display: none; margin-top: 10px; }
.offcanvas-menu .has-sub.open > .sub { display: block; }
.offcanvas-menu .sub li { padding-right: 15px; }
.offcanvas-menu .sub li a { font-weight: normal; }
.offcanvas-backdrop {
  position: fixed; inset: 0; background: rgba(0, 0, 0, .45); z-index: 1900;
  opacity: 0; visibility: hidden; transition: opacity .35s;
}
.offcanvas-backdrop.show { opacity: 1; visibility: visible; }

/* ============================================================
   HERO SLIDER — Ken Burns zoom per slide + cross-fade + timer ring
   (geometry is set by main.js exactly like the original plugin)
   ============================================================ */
.hero-slider {
  position: relative;
  width: 100%;
  aspect-ratio: 1920 / 390;
  overflow: hidden;
  direction: ltr;
}
.hero-slide { position: absolute; inset: 0; overflow: hidden; opacity: 0; display: none; }
.hero-slide.active, .hero-slide.leaving { display: block; opacity: 1; }
.hero-slide.active { z-index: 0; }
.hero-slide.leaving { z-index: 1; }
.hero-slide img {
  position: absolute; left: 0; top: -2px;
  width: 130.2083%; max-width: none; height: auto;
  -webkit-backface-visibility: hidden; backface-visibility: hidden;
}
.hero-timer { position: absolute; top: 8px; right: 10px; z-index: 16; width: 34px; height: 34px; cursor: pointer; }
.hero-nav {
  position: absolute; top: 50%; z-index: 20; transform: translateY(-50%);
  width: 46px; height: 60px; display: none; align-items: center; justify-content: center;
  border: 0; cursor: pointer; background: rgba(0, 0, 0, .35); color: #fff; font-size: 22px;
}
.hero-nav:hover { background: rgba(0, 0, 0, .6); }
.hero-nav.prev { left: 0; }
.hero-nav.next { right: 0; }
@media (hover: hover) and (min-width: 768px) {
  .hero-slider:hover .hero-nav { display: flex; }
}

/* ============================================================
   PAGE TEMPLATES
   ============================================================ */
.page-section { padding-top: 30px; }

/* homepage: main column LEFT, sidebar RIGHT (the original page is left-to-right) */
.home-layout {
  display: grid; direction: ltr; gap: 30px; align-items: start;
  grid-template-columns: minmax(0, 847.5fr) minmax(0, 262.5fr);
}
.home-layout > * { direction: rtl; }

/* inner pages: white box, content RIGHT, sidebar LEFT */
.layout.boxed {
  display: grid; gap: 30px; align-items: start;
  grid-template-columns: minmax(0, 832.5fr) minmax(0, 257.5fr);
  background: #fff; padding: 20px 25px; margin: 0 -15px;
}

.section-title { font-size: 25px; font-weight: 400; line-height: 27.5px; margin: 0 15px 15px; text-align: right; }
.section-title a { color: inherit; }
.section-gap { margin-top: 20px; }
.main-col > .section-title { margin: 0 0 15px; }

/* ---------- breadcrumbs ---------- */
.breadcrumbs { font-size: 12px; line-height: 20px; height: 20px; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; color: var(--muted); margin: -25px 0 5px; }
.breadcrumbs a { color: var(--secondary); }
.breadcrumbs .sep { margin: 0 7px; opacity: .6; }
.breadcrumbs [aria-current] { color: #666; }

/* ---------- homepage welcome blocks ---------- */
.welcome-blocks {
  display: grid; direction: ltr; gap: 30px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.welcome-card { position: relative; direction: rtl; background: #000; height: 247px; overflow: hidden; text-align: center; }
.welcome-card .thumb { height: 247px; }
.welcome-card .thumb img { width: 100%; height: 100%; object-fit: cover; }
.welcome-card .play-badge { position: absolute; top: 40%; left: 50%; z-index: 3; pointer-events: none; }
.welcome-overlay {
  position: absolute; right: 0; left: 0; bottom: 0; z-index: 3;
  background: #fff; color: #000; text-align: center; padding: 7px;
}
.welcome-overlay .wo-kicker { font-size: 12px; font-weight: 500; line-height: 13.2px; color: var(--muted); margin: 0 0 5px; }
.welcome-overlay .wo-title { font-size: 14px; font-weight: 500; line-height: 15.4px; margin: 0; }
.welcome-overlay .wo-title a { color: #000; line-height: 18px; }
.welcome-overlay .wo-title a:hover { color: #f37879; }

/* ---------- event / article cards ---------- */
.events-grid {
  display: grid; direction: ltr; gap: 15px; padding-left: 15px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.events-grid > * { direction: rtl; }
.post-card .thumb { height: 251px; overflow: hidden; margin-bottom: 10px; }
.post-card .thumb img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.events-list .post-card { margin-bottom: 30px; }
.events-list .post-card .thumb { height: auto; max-height: 450px; }
.events-list .post-card .thumb img { height: auto; min-height: 251px; }
.post-category { font-size: 12px; line-height: 25px; color: var(--cat); margin-bottom: 10px; }
.post-category::before {
  content: " "; display: inline-block; position: relative; top: -4px;
  width: 30px; border-bottom: 1px solid var(--secondary); margin-left: 20px;
}
.post-category a { color: var(--secondary); }
.post-title { font-size: 22px; font-weight: 400; line-height: 33px; margin: 0 0 5px; }
.post-title a { color: #000; }
.post-title a:hover { color: var(--secondary); }
.post-meta { display: flex; gap: 20px; margin: 15px 0 20px; font-size: 14px; line-height: 30px; }
.post-meta .views .icon { color: var(--secondary); margin-left: 10px; }

/* ---------- homepage video strip ---------- */
.video-strip {
  display: grid; direction: ltr; gap: 30px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.video-item { direction: rtl; text-align: right; }
.video-item .v-thumb { height: 170px; overflow: hidden; }
.video-item .v-thumb > img { width: 100%; height: 100%; object-fit: cover; }
.video-item .play-badge { position: absolute; top: 40%; left: 40%; z-index: 1; }
.video-item .v-title { margin: 20px 0 0; font-size: 16px; font-weight: 400; line-height: 25px; }
.video-item .v-title a { color: #000; }
.video-item .v-title a:hover { color: #f37879; }
.video-item .v-date { font-size: 12px; font-style: italic; color: var(--muted); }

/* ---------- homepage photo strip ---------- */
.photo-strip-wrap { margin-top: 32px; }
.photo-strip-wrap > h2 { text-align: center; font-size: 28px; font-weight: 500; line-height: 30.8px; margin: 0 0 20px; }
.photo-strip-wrap > h2 a { color: inherit; }
.photo-strip {
  display: grid; direction: ltr; gap: 0 30px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}
.photo-strip a { height: 270px; margin-bottom: 20px; overflow: hidden; }
.photo-strip a img { width: 100%; height: 100%; object-fit: cover; }

/* ============================================================
   SIDEBAR WIDGETS (4px grey frames, stacked with no gap)
   ============================================================ */
.sidebar .widget { border: 4px solid var(--widget-border); }
.widget-register {
  background: url('../assets/Pictures/E_Service.jpg') no-repeat 50% 0;
  padding: 90px 5px 95px; text-align: center; color: #fff; font-size: 12px; line-height: 18px;
}
.widget-register .btn { display: table; margin: 40px auto 0; background: var(--btn-alt); border-color: var(--btn-alt); }
.widget-register .btn:hover { background: var(--primary); border-color: var(--primary); }
.widget-ministry {
  background: url('../assets/Pictures/side-about-bg.jpg') no-repeat 50% 0;
  padding: 230px 20px 20px; text-align: center; color: #444; font-size: 12px; line-height: 18px;
}
.widget-ministry .wm-title { font-size: 22px; line-height: 24.2px; margin: 0 0 15px; }
.widget-ministry .wm-sub { font-size: 15px; line-height: 16.5px; margin: 0 0 15px; }
.social-icons { text-align: center; }
.social-icons a {
  display: inline-flex; align-items: center; justify-content: center;
  width: 32px; height: 32px; margin: 0 5px 10px;
  background: var(--primary); color: #fff; font-size: 14px;
}
.social-icons a:hover { background: #000; color: #fff; }

.widget-recent { padding: 15px; }
.widget-recent li { padding: 5px; overflow: hidden; }
.widget-recent .w-thumb { display: block; overflow: hidden; background: #ddd; }
.widget-recent .w-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.widget-recent .wl-first .w-thumb { height: 110px; margin-bottom: 10px; }
.widget-recent .wl-item { display: flex; flex-direction: row-reverse; justify-content: space-between; gap: 10px; }
.widget-recent .wl-item .w-thumb { flex: 0 0 90px; height: 60px; margin-top: 15px; }
.widget-recent .wl-item .w-details { flex: 1; min-width: 0; }
.widget-recent .date { display: block; font-size: 12px; color: var(--muted); }
.widget-recent .w-details a { color: var(--secondary); }
.widget-recent .w-details a:hover { color: #f37879; }

/* ============================================================
   ARTICLE / STATIC PAGES
   ============================================================ */
.article-full .thumb { display: block; margin-bottom: 10px; }
.article-full .thumb img { width: 100%; display: block; }
.entry-content { font-size: 14px; line-height: 25px; }
.entry-content p { margin: 0 0 15px; }
.entry-content a { color: var(--primary); }
.article-gallery {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
  gap: 12px; margin-top: 15px;
}
.article-gallery a { display: block; height: 130px; overflow: hidden; }
.article-gallery img { width: 100%; height: 100%; object-fit: cover; }
.post-nav {
  display: grid; grid-template-columns: 1fr 1fr; gap: 20px;
  margin-top: 25px; padding-top: 15px; border-top: 1px solid var(--widget-border);
}
.post-nav a { display: block; color: #000; font-size: 14px; }
.post-nav a span { display: block; color: var(--muted); font-size: 12px; }
.post-nav a:hover { color: var(--secondary); }
.post-nav .pn-older { text-align: left; }

.static-content { padding: 20px; font-size: 15px; line-height: 32px; }
.static-content .lead-heading { font-size: 22px; font-weight: bold; line-height: 32px; color: var(--secondary); margin: 0 0 15px; }
.static-content p { margin: 0 0 15px; }
.static-content ol { margin: 0 40px 15px 0; padding: 0; list-style: decimal; }
.static-content a { color: blue; }

/* ---------- pagination ---------- */
.pagination { display: flex; justify-content: center; flex-wrap: wrap; gap: 5px; margin: 10px 0 20px; }
.pagination a, .pagination span {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 40px; height: 40px; padding: 0 10px; background: #f5f5f5; color: #000; font-size: 13px;
}
.pagination a:hover, .pagination .current { background: var(--primary); color: #fff; }
.pagination .disabled { opacity: .4; }

/* ============================================================
   GALLERY
   ============================================================ */
.albums-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.album-card .a-cover { height: 196px; overflow: hidden; background: #ddd; }
.album-card .a-cover img { width: 100%; height: 100%; object-fit: cover; }
.album-card .a-info { padding: 10px 0 0; }
.album-card .a-title { font-size: 15px; font-weight: bold; margin: 0 0 3px; line-height: 1.4; }
.album-card .a-title a { color: #000; }
.album-card .a-title a:hover { color: var(--secondary); }
.album-card .a-meta { color: var(--muted); font-size: 11px; line-height: 18px; }
.album-desc { color: #444; }
.album-view-header { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 10px; margin-bottom: 15px; }
.album-view-header span { color: var(--muted); font-size: 13px; }
.photos-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.photos-grid a { height: 150px; overflow: hidden; background: #ddd; }
.photos-grid a img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- lightbox ---------- */
.lightbox {
  position: fixed; inset: 0; background: rgba(0, 0, 0, .92); z-index: 3000;
  display: none; align-items: center; justify-content: center; flex-direction: column;
}
.lightbox.open { display: flex; }
.lightbox img { max-width: 92vw; max-height: 82vh; object-fit: contain; }
.lightbox .lb-caption { color: #fff; padding: 12px 20px; text-align: center; font-size: 14px; }
.lightbox .lb-close {
  position: absolute; top: 15px; right: 20px; background: none; border: 0;
  color: #fff; font-size: 34px; cursor: pointer; line-height: 1;
}
.lightbox .lb-nav {
  position: absolute; top: 50%; transform: translateY(-50%);
  background: rgba(255, 255, 255, .12); border: 0; color: #fff;
  width: 48px; height: 48px; font-size: 20px; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
}
.lightbox .lb-nav:hover { background: var(--primary); }
.lightbox .lb-prev { right: 15px; }
.lightbox .lb-next { left: 15px; }

/* ============================================================
   VIDEOS
   ============================================================ */
.cat-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 20px; }
.cat-tabs a { padding: 5px 14px; background: #f5f5f5; color: var(--secondary); font-size: 13px; font-weight: bold; }
.cat-tabs a:hover { color: #f37879; }
.cat-tabs a.active { background: var(--primary); color: #fff; }
.videos-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.video-card .v-thumb { height: 150px; overflow: hidden; background: #000; }
.video-card .v-thumb > img { width: 100%; height: 100%; object-fit: cover; }
.video-card .v-len {
  position: absolute; bottom: 6px; left: 6px; z-index: 1;
  background: rgba(0, 0, 0, .75); color: #fff; font-size: 11px; line-height: 18px; padding: 0 6px;
}
.video-card .v-play { position: absolute; top: 40%; left: 40%; z-index: 1; }
.video-card .v-body { padding: 8px 0 0; }
.video-card .v-title { font-size: 14px; font-weight: bold; line-height: 1.5; margin: 0 0 2px; }
.video-card .v-title a { color: #000; }
.video-card .v-title a:hover { color: var(--secondary); }
.video-card .v-meta { color: var(--muted); font-size: 11.5px; line-height: 18px; }

.player-wrap h1 { font-size: 18px; font-weight: 500; line-height: 30px; margin: 0 0 12px; }
.player-frame { position: relative; width: 100%; background: #000; }
.player-frame video { display: block; width: 100%; max-height: 70vh; }
.player-frame iframe { display: block; width: 100%; aspect-ratio: 16 / 9; border: 0; }
.player-meta { display: flex; align-items: center; flex-wrap: wrap; gap: 15px; color: var(--muted); font-size: 13px; margin-top: 10px; }
.player-meta a { color: var(--secondary); font-weight: bold; }
.player-wrap .entry-content { margin-top: 15px; }
.quality-toggle { margin-right: auto; background: #fff; border: 1px solid var(--widget-border); font-size: 12px; padding: 4px 12px; cursor: pointer; }
.quality-toggle.hq { background: var(--primary); border-color: var(--primary); color: #fff; }

/* ---------- notice pages (membership, 404) ---------- */
.notice-box { max-width: 560px; margin: 0 auto; background: #fff; border-top: 4px solid var(--primary); padding: 35px 30px; text-align: center; }
.notice-box h1 { font-size: 22px; }
.notice-box p { color: #444; }
.notice-box .notice-contact { font-weight: bold; line-height: 2.2; }
.notice-box .btn { margin-top: 10px; font-size: 12px; }
.notice-box .nf-links a { font-weight: bold; }

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer { background: var(--footer-bg); padding: 30px 0; margin-top: 20px; }
main:has(.home-main) + .site-footer { margin-top: 72px; }
.footer-menu { text-align: center; padding-bottom: 30px; margin-bottom: 20px; }
.footer-menu ul { display: flex; justify-content: center; flex-wrap: wrap; gap: 25px; }
.footer-menu li { padding: 0 10px; }
.footer-menu a { color: var(--secondary); font-size: 13px; font-weight: bold; }
.footer-menu a:hover { color: var(--secondary); }
.footer-social {
  direction: ltr; text-align: center;
  margin-bottom: 30px; padding-bottom: 15px; border-bottom: 1px solid rgba(95, 88, 65, .1);
}
.footer-social a {
  display: inline-flex; align-items: center; gap: 10px;
  margin: 0 20px 10px; color: var(--secondary); font-size: 18px; line-height: 18px; font-weight: bold;
}
.footer-social a .icon { color: rgba(95, 88, 65, .5); }
.footer-social a:hover span { color: var(--primary-hover); }
.footer-copyright { text-align: center; font-size: 14px; color: rgba(95, 88, 65, .4); }
.footer-copyright a { color: var(--secondary); font-size: 13px; font-weight: bold; }

.back-to-top {
  position: fixed; right: 40px; bottom: -60px; z-index: 999;
  width: 40px; height: 40px; border: 0; cursor: pointer;
  background: var(--primary); color: #fff; font-size: 20px;
  display: flex; align-items: center; justify-content: center;
}
.back-to-top.show { bottom: 22px; }
.back-to-top:hover { background: var(--primary-hover); }

/* ============================================================
   RESPONSIVE (Bootstrap 3 breakpoints, as the original)
   ============================================================ */
@media (max-width: 1199px) {
  .home-layout { gap: 30px; }
}

@media (max-width: 991px) {
  .header-social { height: 68px; padding-top: 23px; margin-right: 5px; }
  .header-logo { height: 190px; align-items: flex-start; }
  .header-logo img { margin-top: 20px; }
  .home-layout, .layout.boxed { grid-template-columns: minmax(0, 1fr); }
  .welcome-blocks { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .photo-strip { grid-template-columns: minmax(0, 1fr); }
  .albums-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .videos-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 767px) {
  .nav-toggle { display: block; }
  .nav-inner { display: block; }
  .offcanvas-btn { display: none; }   /* one menu on phones: the MENU dropdown */
  .nav-menu { display: none; flex-direction: column; padding: 10px 0; }
  .nav-menu.open { display: flex; }
  .nav-menu > li { padding: 0; }
  .nav-menu > li > a { border-left-color: transparent; padding: 10px 15px; text-align: center; }
  .sub-menu { position: static; }
  .nav-menu li:hover > .sub-menu { display: none; }
  .nav-menu li.open > .sub-menu { display: block; }
  .sub-menu li a { text-align: center; }

  .welcome-blocks { grid-template-columns: minmax(0, 1fr); padding: 0 15px; }
  .events-grid { grid-template-columns: minmax(0, 1fr); padding-left: 0; gap: 0; }
  .video-strip { grid-template-columns: minmax(0, 1fr); gap: 10px; }
  .albums-grid, .videos-grid { grid-template-columns: minmax(0, 1fr); }
  .photos-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .photos-grid a { height: 130px; }
  .layout.boxed { padding: 15px; margin: 0 -15px; }
  .section-title { margin-right: 0; margin-left: 0; }
  .post-nav { grid-template-columns: 1fr; }
  .post-nav .pn-older { text-align: right; }
  .static-content { padding: 5px 0; }
  .notice-box { padding: 25px 18px; }
  .footer-social a { margin: 0 12px 10px; }
  .back-to-top { right: 20px; }
}
