/*
Theme Name: MDS Basic Theme
Theme URI: http://localhost:8083
Author: MDS
Author URI: http://localhost:8083
Description: Theme WordPress minimal pour le developpement local.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.5
Requires PHP: 8.0
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: mds-basic-theme
*/

:root {
  --mds-green: #97bf2f;
  --mds-green-dark: #6d9822;
  --mds-text: #36383d;
  --mds-muted: #8f969f;
  --mds-line: #e6e6e6;
  --mds-soft: #f4f5f6;
  --mds-placeholder: #e5e7eb;
  --mds-shadow: #2f3134;
  --mds-font: "Cairo", Tahoma, Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  direction: rtl;
}

body {
  margin: 0;
  background: #fff;
  color: var(--mds-text);
  font-family: var(--mds-font);
  line-height: 1.65;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  display: block;
  height: auto;
  max-width: 100%;
}

.site-header {
  background: #fff;
  border-bottom: 1px solid var(--mds-line);
  padding: 26px 22px 0;
}

.site-header__brand {
  align-items: center;
  display: flex;
  justify-content: flex-start;
  margin: 0 auto 28px;
  max-width: 1500px;
}

.custom-logo-link img {
  max-height: 112px;
  width: auto;
}

.brand-fallback {
  color: var(--mds-green-dark);
  display: grid;
  gap: 0;
  grid-template-columns: auto 58px;
  line-height: 1.05;
  min-height: 96px;
  position: relative;
  text-align: right;
}

.brand-fallback__arabic,
.brand-fallback__amazigh,
.brand-fallback__french {
  grid-column: 1;
  white-space: nowrap;
}

.brand-fallback__arabic {
  font-size: 21px;
  font-weight: 800;
}

.brand-fallback__amazigh {
  font-size: 17px;
  font-style: italic;
  font-weight: 700;
  opacity: 0.9;
}

.brand-fallback__french {
  font-size: 20px;
  font-weight: 800;
}

.brand-fallback__palm {
  align-self: center;
  background:
    linear-gradient(90deg, transparent 42%, #47321f 43% 57%, transparent 58%) 50% 66% / 26px 42px no-repeat,
    radial-gradient(ellipse at 50% 18%, #5da532 0 11%, transparent 12%),
    radial-gradient(ellipse at 28% 26%, #69ae39 0 10%, transparent 11%),
    radial-gradient(ellipse at 72% 27%, #7fbd44 0 10%, transparent 11%);
  grid-column: 2;
  grid-row: 1 / span 3;
  height: 86px;
  width: 58px;
}

.site-header__navigation {
  align-items: stretch;
  border-top: 1px solid var(--mds-line);
  display: flex;
  gap: 24px;
  justify-content: space-between;
  margin: 0 auto;
  max-width: 1500px;
  min-height: 64px;
}

.site-search-toggle {
  background: transparent;
  border: 0;
  border-right: 1px solid var(--mds-line);
  cursor: pointer;
  flex: 0 0 42px;
  position: relative;
}

.site-search-toggle::before {
  border: 4px solid var(--mds-text);
  border-radius: 50%;
  content: "";
  height: 14px;
  left: 12px;
  position: absolute;
  top: 22px;
  width: 14px;
}

.site-search-toggle::after {
  background: var(--mds-text);
  content: "";
  height: 4px;
  left: 8px;
  position: absolute;
  top: 38px;
  transform: rotate(-45deg);
  width: 13px;
}

.site-navigation {
  flex: 1;
}

.search-modal {
  align-items: flex-start;
  bottom: 0;
  display: flex;
  justify-content: center;
  left: 0;
  padding-top: 120px;
  position: fixed;
  right: 0;
  top: 0;
  z-index: 9999;
}

.search-modal[hidden] {
  display: none;
}

.search-modal__backdrop {
  background: rgba(0, 0, 0, 0.55);
  bottom: 0;
  left: 0;
  position: absolute;
  right: 0;
  top: 0;
}

.search-modal__box {
  background: #fff;
  border-radius: 4px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
  padding: 32px;
  position: relative;
  width: 100%;
  max-width: 620px;
  margin: 0 16px;
}

.search-modal__close {
  background: transparent;
  border: 0;
  color: var(--mds-muted);
  cursor: pointer;
  font-size: 20px;
  line-height: 1;
  padding: 4px 8px;
  position: absolute;
  top: 12px;
  left: 12px;
}

.search-modal__close:hover {
  color: var(--mds-text);
}

.primary-menu {
  align-items: stretch;
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start;
  list-style: none;
  margin: 0;
  padding: 0;
}

.primary-menu > li {
  position: relative;
}

.primary-menu > li > a {
  align-items: center;
  color: #3e4045;
  display: flex;
  font-size: 16px;
  font-weight: 800;
  min-height: 64px;
  padding: 0 16px;
  position: relative;
}

.primary-menu > li.current-menu-item > a::after,
.primary-menu > li.current-menu-ancestor > a::after {
  background: var(--mds-green);
  bottom: -1px;
  content: "";
  height: 4px;
  inset-inline: 12px;
  position: absolute;
}

.primary-menu .menu-item-has-children > a::before {
  border-bottom: 2px solid currentColor;
  border-left: 2px solid currentColor;
  content: "";
  height: 7px;
  margin-inline-start: 12px;
  transform: rotate(-45deg);
  width: 7px;
}

.primary-menu .sub-menu {
  background: #fff;
  border: 1px solid var(--mds-line);
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.08);
  display: none;
  list-style: none;
  margin: 0;
  min-width: 220px;
  padding: 8px 0;
  position: absolute;
  right: 0;
  top: 100%;
  z-index: 20;
}

.primary-menu li:hover > .sub-menu,
.primary-menu li:focus-within > .sub-menu {
  display: block;
}

.primary-menu .sub-menu a {
  color: var(--mds-text);
  display: block;
  font-size: 16px;
  font-weight: 700;
  padding: 10px 16px;
}

.primary-menu .sub-menu a:hover {
  background: var(--mds-soft);
  color: var(--mds-green-dark);
}

.site-main {
  margin: 24px auto 0;
  max-width: 1500px;
  padding: 0 22px 40px;
}

.home-layout {
  align-items: start;
  display: grid;
  gap: 26px;
  grid-template-columns: 360px minmax(420px, 1fr) 540px;
  grid-template-rows: auto auto;
}

.home-sidebar--left {
  grid-column: 1;
  grid-row: 1 / span 2;
}

.home-slider {
  grid-column: 2 / span 2;
  grid-row: 1;
}

.home-center {
  grid-column: 2;
  grid-row: 2;
}

.home-sidebar--right {
  grid-column: 3;
  grid-row: 2;
}

.home-panel {
  margin-bottom: 26px;
}

.section-title {
  background: var(--mds-green);
  border-bottom: 5px solid var(--mds-shadow);
  color: #fff;
  font-size: 19px;
  font-weight: 800;
  line-height: 1.2;
  margin: 0 0 28px;
  padding: 13px 18px 12px;
  text-align: center;
}

.secretary-card {
  text-align: center;
}

.secretary-card__image {
  display: inline-block;
  margin-bottom: 18px;
}

.secretary-card__image img,
.image-placeholder--portrait {
  height: 200px;
  object-fit: cover;
  width: 178px;
}

.secretary-card p {
  color: #85878d;
  font-size: 15px;
  font-weight: 700;
  margin: 0 auto 8px;
  max-width: 340px;
}

.read-more-link {
  color: var(--mds-green);
  display: inline-block;
  font-size: 15px;
  font-weight: 800;
  margin-top: 4px;
}

.image-placeholder {
  background: linear-gradient(180deg, #eceef1 0%, #e3e5e8 100%);
  display: block;
  position: relative;
}

.image-placeholder--hero {
  background: linear-gradient(180deg, #f6f6f6 0%, #dedede 50%, #8e8e8e 100%);
  height: 360px;
  width: 100%;
}

.image-placeholder--video {
  height: 246px;
  width: 100%;
}

.image-placeholder--video-small {
  height: 250px;
  width: 100%;
}

.image-placeholder--card {
  height: 180px;
  width: 100%;
}

.image-placeholder--thumb {
  height: 84px;
  width: 104px;
}

.home-slider {
  margin: 0 0 26px;
  min-height: 420px;
  overflow: hidden;
  position: relative;
}

.home-slider__track {
  direction: ltr;
  display: flex;
  transition: transform 450ms ease;
  width: 100%;
}

.home-slider__slide {
  direction: rtl;
  flex: 0 0 100%;
  min-width: 100%;
  position: relative;
}

.home-slider__media {
  display: block;
}

.home-slider__media img {
  height: 360px;
  object-fit: cover;
  width: 100%;
}

.home-slider__content {
  bottom: 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  position: absolute;
  right: 20px;
  z-index: 2;
}

.home-slider__content h2 {
  background: rgba(255, 255, 255, 0.92);
  color: var(--mds-text);
  font-size: 19px;
  line-height: 1.35;
  margin: 0;
  max-width: 620px;
  padding: 12px 16px;
}

.home-slider__fallback {
  min-height: 360px;
  position: relative;
}

.post-badge {
  align-self: flex-start;
  background: var(--mds-green);
  color: #fff;
  display: inline-block;
  font-size: 16px;
  font-weight: 700;
  line-height: 1;
  padding: 10px 12px;
  position: relative;
  z-index: 2;
}

.home-slider__arrow {
  background: rgba(255, 255, 255, 0.86);
  border: 0;
  border-radius: 50%;
  cursor: pointer;
  height: 42px;
  position: absolute;
  top: 160px;
  transform: translateY(-50%);
  width: 42px;
  z-index: 4;
}

.home-slider__arrow::before {
  border-color: var(--mds-green-dark);
  border-style: solid;
  border-width: 0 0 3px 3px;
  content: "";
  height: 12px;
  left: 14px;
  position: absolute;
  top: 14px;
  width: 12px;
}

.home-slider__arrow--prev {
  right: 14px;
}

.home-slider__arrow--prev::before {
  transform: rotate(-135deg);
}

.home-slider__arrow--next {
  left: 14px;
}

.home-slider__arrow--next::before {
  transform: rotate(45deg);
}

.home-slider__dots {
  bottom: 14px;
  display: flex;
  gap: 8px;
  left: 50%;
  position: absolute;
  transform: translateX(-50%);
  z-index: 5;
}

.home-slider__dots button {
  background: rgba(255, 255, 255, 0.65);
  border: 0;
  border-radius: 50%;
  cursor: pointer;
  height: 10px;
  padding: 0;
  width: 10px;
}

.home-slider__dots button.is-active {
  background: var(--mds-green);
}

.post-grid {
  display: grid;
  gap: 28px 30px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.news-card__image {
  display: block;
  margin-bottom: 10px;
  position: relative;
}

.news-card__image .post-badge,
.featured-video .post-badge {
  left: 0;
  position: absolute;
  top: 0;
}

.news-card__image img {
  height: 180px;
  object-fit: cover;
  width: 100%;
}

.news-card--featured {
  border-bottom: 1px solid #eeeeee;
  grid-column: 1 / -1;
  padding-bottom: 8px;
}

.news-card--featured .news-card__image img,
.news-card--featured .image-placeholder--card {
  height: 250px;
}

.news-card h3,
.featured-video h3 {
  color: #3c3f43;
  font-size: 18px;
  font-weight: 800;
  line-height: 1.35;
  margin: 0;
}

.featured-video {
  margin-bottom: 28px;
  position: relative;
}

.featured-video--selected {
  border-bottom: 1px solid #eeeeee;
  padding-bottom: 14px;
}

.featured-video__image {
  display: block;
  position: relative;
}

.featured-video__image img {
  height: 246px;
  object-fit: cover;
  width: 100%;
}

.featured-video--small .featured-video__image img {
  height: 250px;
}

.featured-video h3 {
  font-size: 15px;
  margin-top: 12px;
}

.statement-list {
  margin-top: -8px;
}

.statement-item {
  border-bottom: 1px solid #eeeeee;
  padding: 14px 0 18px;
}

.statement-item--featured h3 {
  color: var(--mds-text);
  font-weight: 800;
}

.statement-item h3 {
  color: #85878d;
  font-size: 15px;
  font-weight: 500;
  line-height: 1.6;
  margin: 0 0 5px;
}

.statement-item time {
  color: #b7bec7;
  display: block;
  font-size: 15px;
  font-weight: 800;
  text-align: left;
}

.compact-news-list {
  display: grid;
  gap: 16px;
}

.compact-news-item {
  border-bottom: 1px solid #eeeeee;
  display: grid;
  gap: 14px;
  grid-template-columns: 104px 1fr;
  padding-bottom: 16px;
}

.compact-news-item--featured {
  background: #fafafa;
  padding: 10px;
}

.compact-news-item__image img {
  height: 84px;
  object-fit: cover;
  width: 104px;
}

.compact-news-item .post-badge {
  font-size: 13px;
  padding: 7px 9px;
}

.compact-news-item h3 {
  color: #3c3f43;
  font-size: 16px;
  font-weight: 800;
  line-height: 1.45;
  margin: 8px 0 0;
}

.region-placeholder {
  background: var(--mds-soft);
  min-height: 160px;
}

/* ═══════════════════════════════════════════════
   FOOTER
   ═══════════════════════════════════════════════ */

.site-footer {
  background: #3a3c3f;
  color: #c8ccd0;
  font-size: 14px;
  margin-top: 20px;
  direction: rtl;
}

/* ── Footer main grid ── */
.footer-main {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 0;
  max-width: 1280px;
  margin: 0 auto;
}

.footer-contact,
.footer-map,
.footer-newsletter {
  padding: 40px 28px;
}

.footer-contact {
  border-inline-start: none;
}

.footer-map {
  border-inline-start: 1px solid rgba(255,255,255,.08);
  border-inline-end: 1px solid rgba(255,255,255,.08);
  padding: 40px 0;
}

/* ── Section title ── */
.footer-section-title {
  color: #e8eaed;
  font-size: 18px;
  font-weight: 700;
  margin: 0 0 6px;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-direction: row-reverse;
  justify-content: flex-end;
}

.footer-section-title__icon {
  font-size: 20px;
}

.footer-contact__divider {
  width: 60px;
  height: 3px;
  background: var(--mds-green);
  margin-block-end: 20px;
  margin-inline-start: 0;
}

/* ── Contact form inputs ── */
.footer-input {
  display: block;
  width: 100%;
  background: #4a4c50;
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 3px;
  color: #e8eaed;
  font-family: var(--mds-font);
  font-size: 14px;
  padding: 10px 14px;
  margin-block-end: 12px;
  text-align: right;
  direction: rtl;
  outline: none;
  transition: border-color .2s;
}

.footer-input::placeholder {
  color: #9a9da2;
}

.footer-input:focus {
  border-color: var(--mds-green);
}

.footer-textarea {
  resize: vertical;
  min-height: 110px;
}

.footer-contact__actions {
  text-align: left;
  direction: ltr;
}

.footer-btn,
.footer-newsletter__btn {
  background: var(--mds-green);
  border: none;
  border-radius: 3px;
  color: #fff;
  cursor: pointer;
  font-family: var(--mds-font);
  font-size: 15px;
  font-weight: 700;
  padding: 10px 28px;
  transition: background .2s;
}

.footer-btn:hover,
.footer-newsletter__btn:hover {
  background: var(--mds-green-dark);
}

/* ── CF7 notice / placeholder ── */
.footer-cf7-notice {
  color: #8f969f;
  font-size: 12px;
  margin-block-start: 10px;
}

/* ── CF7 form integration ── */
.footer-cf7-wrapper .wpcf7-form input[type="text"],
.footer-cf7-wrapper .wpcf7-form input[type="email"],
.footer-cf7-wrapper .wpcf7-form textarea {
  display: block;
  width: 100%;
  background: #4a4c50;
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 3px;
  color: #e8eaed;
  font-family: var(--mds-font);
  font-size: 14px;
  padding: 10px 14px;
  margin-block-end: 12px;
  text-align: right;
  direction: rtl;
  outline: none;
  transition: border-color .2s;
}

.footer-cf7-wrapper .wpcf7-form input[type="text"]:focus,
.footer-cf7-wrapper .wpcf7-form input[type="email"]:focus,
.footer-cf7-wrapper .wpcf7-form textarea:focus {
  border-color: var(--mds-green);
}

.footer-cf7-wrapper .wpcf7-form input[type="submit"] {
  background: var(--mds-green);
  border: none;
  border-radius: 3px;
  color: #fff;
  cursor: pointer;
  font-family: var(--mds-font);
  font-size: 15px;
  font-weight: 700;
  padding: 10px 28px;
  transition: background .2s;
}

.footer-cf7-wrapper .wpcf7-form input[type="submit"]:hover {
  background: var(--mds-green-dark);
}

/* ── Map ── */
.footer-map iframe {
  width: 100%;
  height: 100%;
  min-height: 280px;
  border: none;
  display: block;
}

.footer-map__placeholder {
  width: 100%;
  height: 100%;
  min-height: 280px;
  background: #2f3134;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  color: #6b7280;
  text-align: center;
  padding: 24px;
}

.footer-map__placeholder span {
  font-size: 48px;
  opacity: .4;
}

.footer-map__placeholder p {
  margin: 0;
  font-size: 13px;
  line-height: 1.6;
}

/* ── Newsletter ── */
.footer-newsletter__title {
  color: #e8eaed;
  font-size: 20px;
  font-weight: 800;
  line-height: 1.4;
  margin: 0 0 28px;
  text-align: right;
}

.footer-newsletter__input-row {
  display: flex;
  align-items: stretch;
  flex-direction: row-reverse;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 3px;
  overflow: hidden;
  margin-block-end: 12px;
}

.footer-newsletter__email {
  flex: 1;
  background: #4a4c50;
  border: none;
  color: #e8eaed;
  font-family: var(--mds-font);
  font-size: 14px;
  padding: 10px 14px;
  text-align: right;
  direction: rtl;
  outline: none;
}

.footer-newsletter__email::placeholder {
  color: #9a9da2;
}

.footer-newsletter__email-icon {
  background: #4a4c50;
  border-inline-start: 1px solid rgba(255,255,255,.08);
  color: #9a9da2;
  display: flex;
  align-items: center;
  padding: 0 12px;
  font-size: 16px;
}

.footer-newsletter__btn {
  border-radius: 0;
  padding: 10px 20px;
  flex-shrink: 0;
}

.footer-newsletter__hint {
  color: #8f969f;
  font-size: 12px;
  margin: 0;
  text-align: right;
}

.footer-newsletter__message {
  font-size: 13px;
  margin: 10px 0 0;
  min-height: 18px;
  text-align: right;
}

.footer-newsletter__message--success {
  color: var(--mds-green);
}

.footer-newsletter__message--error {
  color: #f87171;
}

/* ── Footer bar ── */
.footer-bar {
  background: #2f3134;
  border-top: 1px solid rgba(255,255,255,.06);
  color: #8f969f;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-direction: row;
  padding: 14px 28px;
  font-size: 13px;
  direction: rtl;
}

.footer-bar__credit-link {
  color: var(--mds-green);
  font-weight: 600;
}

.footer-bar__credit-link:hover {
  color: var(--mds-green-dark);
}

/* ── Footer Responsive ── */
@media (max-width: 1280px) {
  .footer-main {
    grid-template-columns: 1fr 1fr 1fr;
  }
}

@media (max-width: 900px) {
  .footer-main {
    grid-template-columns: 1fr;
  }

  .footer-contact,
  .footer-map,
  .footer-newsletter {
    padding: 28px 20px;
  }

  .footer-map {
    border-inline-start: none;
    border-inline-end: none;
    border-block: 1px solid rgba(255,255,255,.08);
    padding: 0;
  }

  .footer-map iframe,
  .footer-map__placeholder {
    min-height: 220px;
  }

  .footer-bar {
    flex-direction: column;
    gap: 6px;
    text-align: center;
    padding: 14px 16px;
  }
}

@media (max-width: 560px) {
  .footer-newsletter__input-row {
    flex-direction: column;
  }

  .footer-newsletter__email-icon {
    display: none;
  }

  .footer-newsletter__btn {
    border-radius: 0 0 3px 3px;
    width: 100%;
    padding: 10px;
  }

  .footer-newsletter__email {
    border-radius: 3px 3px 0 0;
  }
}

.inner-layout,
.archive-layout {
  max-width: 1120px;
}

.single-entry {
  margin: 0 auto;
  max-width: 920px;
}

.single-entry__header {
  border-bottom: 1px solid var(--mds-line);
  margin-bottom: 24px;
  padding-bottom: 20px;
}

.single-entry__header h1,
.archive-header h1,
.empty-state h1 {
  color: var(--mds-text);
  font-size: clamp(30px, 4vw, 46px);
  font-weight: 800;
  line-height: 1.25;
  margin: 14px 0 10px;
}

.single-entry__meta,
.archive-description,
.archive-card time {
  color: var(--mds-muted);
  font-size: 15px;
  font-weight: 700;
}

.single-entry__image {
  margin: 0 0 28px;
}

.single-entry__image img {
  max-height: 520px;
  object-fit: cover;
  width: 100%;
}

.single-entry__content {
  color: #4a4d52;
  font-size: 16px;
  line-height: 1.9;
}

.single-entry__content > * {
  max-width: 100%;
}

.single-entry__content a {
  color: var(--mds-green-dark);
  font-weight: 800;
}

.single-entry__content h2,
.single-entry__content h3 {
  color: var(--mds-text);
  line-height: 1.35;
}

.entry-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 28px;
}

.entry-tags a,
.post-navigation a,
.page-numbers,
.search-submit {
  background: var(--mds-green);
  color: #fff;
  display: inline-block;
  font-weight: 800;
  padding: 9px 13px;
}

.post-navigation {
  border-top: 1px solid var(--mds-line);
  display: flex;
  justify-content: space-between;
  margin: 34px auto 0;
  max-width: 920px;
  padding-top: 20px;
}

.archive-header {
  border-bottom: 1px solid var(--mds-line);
  margin-bottom: 28px;
  padding-bottom: 18px;
}

.archive-grid {
  display: grid;
  gap: 30px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.archive-card {
  border-bottom: 1px solid var(--mds-line);
  padding-bottom: 18px;
}

.archive-card__image {
  display: block;
  margin-bottom: 12px;
  position: relative;
}

.archive-card__image img,
.image-placeholder--archive {
  height: 190px;
  object-fit: cover;
  width: 100%;
}

.archive-card__image .post-badge {
  left: 0;
  position: absolute;
  top: 0;
}

.archive-card__body h2 {
  color: var(--mds-text);
  font-size: 20px;
  font-weight: 800;
  line-height: 1.4;
  margin: 0 0 6px;
}

.archive-card__body p {
  color: #6f747c;
  font-size: 15px;
  line-height: 1.7;
  margin: 10px 0 0;
}

.pagination,
.nav-links {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  margin-top: 30px;
}

.page-numbers.current {
  background: var(--mds-shadow);
}

.search-panel {
  margin-top: 14px;
}

.search-form {
  display: flex;
  gap: 8px;
  max-width: 620px;
}

.search-field {
  border: 1px solid var(--mds-line);
  color: var(--mds-text);
  flex: 1;
  font: inherit;
  min-height: 44px;
  padding: 8px 12px;
}

.search-submit {
  border: 0;
  cursor: pointer;
  font: inherit;
}

.empty-state {
  background: var(--mds-soft);
  border-top: 5px solid var(--mds-green);
  padding: 34px;
  text-align: center;
}

.empty-state--large {
  margin: 60px auto;
  max-width: 760px;
}

.comments-area {
  border-top: 1px solid var(--mds-line);
  margin: 34px auto 0;
  max-width: 920px;
  padding-top: 24px;
}

.comments-title {
  font-size: 24px;
  margin: 0 0 18px;
}

.comment-list {
  list-style: none;
  margin: 0 0 28px;
  padding: 0;
}

.comment-list .comment {
  border-bottom: 1px solid var(--mds-line);
  padding: 16px 0;
}

.comment-form input:not([type="submit"]),
.comment-form textarea {
  border: 1px solid var(--mds-line);
  display: block;
  font: inherit;
  margin-top: 6px;
  padding: 10px;
  width: 100%;
}

.comment-form input[type="submit"] {
  background: var(--mds-green);
  border: 0;
  color: #fff;
  cursor: pointer;
  font: inherit;
  font-weight: 800;
  padding: 10px 16px;
}

@media (max-width: 1280px) {
  .home-layout {
    grid-template-columns: 280px minmax(0, 1fr);
    grid-template-rows: auto auto auto;
  }

  .home-sidebar--left {
    grid-column: 1;
    grid-row: 1 / span 2;
  }

  .home-slider {
    grid-column: 2;
    grid-row: 1;
  }

  .home-center {
    grid-column: 2;
    grid-row: 2;
  }

  .home-sidebar--right {
    grid-column: 1 / -1;
    grid-row: 3;
  }
}

@media (max-width: 900px) {
  .site-header {
    padding-inline: 16px;
  }

  .site-header__brand {
    justify-content: center;
  }

  .site-header__navigation {
    display: block;
  }

  .site-search-toggle {
    display: none;
  }

  .primary-menu {
    justify-content: center;
  }

  .primary-menu > li > a {
    font-size: 17px;
    min-height: 48px;
    padding-inline: 10px;
  }

  .home-layout {
    display: block;
  }

  .home-slider {
    margin-top: 20px;
    min-height: 310px;
  }

  .home-slider__media img,
  .image-placeholder--hero {
    height: 280px;
  }

  .home-slider__content h2 {
    font-size: 18px;
    max-width: calc(100vw - 76px);
  }

  .post-grid {
    grid-template-columns: 1fr;
  }

  .archive-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 560px) {
  .brand-fallback {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .brand-fallback__arabic {
    font-size: 20px;
  }

  .brand-fallback__amazigh {
    font-size: 17px;
  }

  .brand-fallback__french {
    font-size: 16px;
  }

  .brand-fallback__palm {
    display: none;
  }

  .site-main {
    padding-inline: 14px;
  }

  .section-title {
    font-size: 20px;
  }

  .home-slider__arrow {
    display: none;
  }

  .archive-grid,
  .search-form {
    display: block;
  }

  .search-submit {
    margin-top: 8px;
    width: 100%;
  }

  .post-navigation {
    display: grid;
    gap: 10px;
  }
}