/* Additions to the theme (main.css). */

/* Plan task 5.2: the contact form honeypot. Moved off screen rather than display:none, which some bots skip. */
.contact-hp {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* Plan task 5.7: floating WhatsApp button on every page. The theme's scroll-to-top button is at the
   bottom right, so this one sits at the bottom left (and swaps sides on the Arabic, right-to-left site). */
.whatsapp-float {
  position: fixed;
  bottom: 15px;
  left: 15px;
  z-index: 99998;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: #25d366;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, .2);
  transition: transform .2s;
}
.whatsapp-float:hover,
.whatsapp-float:focus {
  color: #fff;
  transform: scale(1.08);
}
body.rtl .whatsapp-float {
  left: auto;
  right: 15px;
}
body.rtl .scroll-top {
  right: auto;
  left: 15px;
}

/* Plan task 5.3: blog list and posts. */
.section-title h1 {
  font-size: 13px;
  letter-spacing: 1px;
  font-weight: 400;
  padding: 0;
  margin: 0;
  color: color-mix(in srgb, var(--default-color), transparent 50%);
  display: inline-block;
  text-transform: uppercase;
  font-family: var(--default-font);
}
.blog-card {
  background: var(--surface-color);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 16px rgba(0, 0, 0, .08);
  display: flex;
  flex-direction: column;
}
.blog-card-image img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  display: block;
}
.blog-card-body {
  padding: 20px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}
.blog-card-body time,
.blog-post time {
  font-size: 14px;
  color: color-mix(in srgb, var(--default-color), transparent 45%);
}
.blog-card-body h2 {
  margin: 8px 0 10px;
  font-family: var(--default-font);
  font-weight: 700;
}
.blog-card-body h2 a {
  color: var(--heading-color);
}
.blog-card-body h2 a:hover {
  color: var(--accent-color);
}
.blog-card-body p {
  flex-grow: 1;
  color: color-mix(in srgb, var(--default-color), transparent 25%);
}
.blog-card-more {
  font-weight: 600;
}
.blog-post h1 {
  font-family: var(--default-font);
  font-weight: 700;
  font-size: 34px;
  line-height: 1.3;
}
.blog-post-cover {
  width: 100%;
  height: auto;
  border-radius: 8px;
  margin-bottom: 24px;
}
.blog-post-summary {
  font-size: 19px;
  color: color-mix(in srgb, var(--default-color), transparent 20%);
}
.blog-post-body {
  font-size: 17px;
  line-height: 1.8;
}
.blog-post-body h2,
.blog-post-body h3 {
  font-family: var(--default-font);
  font-weight: 700;
  margin: 28px 0 12px;
}
.blog-post-body .ql-align-center { text-align: center; }
.blog-post-body .ql-align-right { text-align: right; }
.blog-post-body .ql-align-justify { text-align: justify; }
.blog-post-body .ql-direction-rtl { direction: rtl; }
